Debian Codegraph @

configure.sh

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for rsync.
4 #
5 # Report bugs to <https://rsync.samba.org/bug-tracking.html>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell [email protected] and
274 $0: https://rsync.samba.org/bug-tracking.html about your
275 $0: system, including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi ;;
281 esac
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302
303 # as_fn_set_status STATUS
304 # -----------------------
305 # Set $? to STATUS, without forking.
306 as_fn_set_status ()
307 {
308 return $1
309 } # as_fn_set_status
310
311 # as_fn_exit STATUS
312 # -----------------
313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 as_fn_exit ()
315 {
316 set +e
317 as_fn_set_status $1
318 exit $1
319 } # as_fn_exit
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else case e in #(
389 e) as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 } ;;
393 esac
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402 then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else case e in #(
408 e) as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 } ;;
412 esac
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 printf "%s\n" "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 printf "%s\n" X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 t clear
489 :clear
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515
516 # Determine whether it's possible to make 'echo' print without a newline.
517 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
518 # for compatibility with existing Makefiles.
519 ECHO_C= ECHO_N= ECHO_T=
520 case `echo -n x` in #(((((
521 -n*)
522 case `echo 'xy\c'` in
523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
524 xy) ECHO_C='\c';;
525 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 ECHO_T=' ';;
527 esac;;
528 *)
529 ECHO_N='-n';;
530 esac
531
532 # For backward compatibility with old third-party macros, we provide
533 # the shell variables $as_echo and $as_echo_n. New code should use
534 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
535 as_echo='printf %s\n'
536 as_echo_n='printf %s'
537
538 rm -f conf$$ conf$$.exe conf$$.file
539 if test -d conf$$.dir; then
540 rm -f conf$$.dir/conf$$.file
541 else
542 rm -f conf$$.dir
543 mkdir conf$$.dir 2>/dev/null
544 fi
545 if (echo >conf$$.file) 2>/dev/null; then
546 if ln -s conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s='ln -s'
548 # ... but there are two gotchas:
549 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
550 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
551 # In both cases, we have to default to 'cp -pR'.
552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
553 as_ln_s='cp -pR'
554 elif ln conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s=ln
556 else
557 as_ln_s='cp -pR'
558 fi
559 else
560 as_ln_s='cp -pR'
561 fi
562 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
563 rmdir conf$$.dir 2>/dev/null
564
565 if mkdir -p . 2>/dev/null; then
566 as_mkdir_p='mkdir -p "$as_dir"'
567 else
568 test -d ./-p && rmdir ./-p
569 as_mkdir_p=false
570 fi
571
572 as_test_x='test -x'
573 as_executable_p=as_fn_executable_p
574
575 # Sed expression to map a string onto a valid CPP name.
576 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
578
579 # Sed expression to map a string onto a valid variable name.
580 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
581 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
582
583
584 test -n "$DJDIR" || exec 7<&0 </dev/null
585 exec 6>&1
586
587 # Name of the host.
588 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
589 # so uname gets run too.
590 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
591
592 #
593 # Initializations.
594 #
595 ac_default_prefix=/usr/local
596 ac_clean_files=
597 ac_config_libobj_dir=.
598 LIBOBJS=
599 cross_compiling=no
600 subdirs=
601 MFLAGS=
602 MAKEFLAGS=
603
604 # Identity of this package.
605 PACKAGE_NAME='rsync'
606 PACKAGE_TARNAME='rsync'
607 PACKAGE_VERSION=''
608 PACKAGE_STRING='rsync'
609 PACKAGE_BUGREPORT='https://rsync.samba.org/bug-tracking.html'
610 PACKAGE_URL=''
611
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 ac_unique_file="byteorder.h"
645 ac_config_libobj_dir=lib
646 enable_year2038=no
647 ac_subst_vars='LTLIBOBJS
648 MAKE_MAN
649 GEN_RRSYNC
650 MAKE_RRSYNC_1
651 MAKE_RRSYNC
652 BUILD_ZLIB
653 BUILD_POPT
654 CC_SHOBJ_FLAG
655 OBJ_RESTORE
656 OBJ_SAVE
657 ALLOCA
658 LIBOBJS
659 ROLL_ASM
660 MD5_ASM
661 NOEXECSTACK
662 ROLL_SIMD
663 FAKEROOT_PATH
664 SHELL_PATH
665 HAVE_REMSH
666 with_rrsync
667 PYTHON3
668 PERL
669 MKDIR_P
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 EGREP
674 GREP
675 AWK
676 ac_ct_CXX
677 CXXFLAGS
678 CXX
679 CPP
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 runstatedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 enable_debug
738 enable_profile
739 enable_coverage
740 enable_openat2
741 enable_md2man
742 enable_maintainer_mode
743 with_openssl_conf
744 with_rrsync
745 with_included_popt
746 with_included_zlib
747 with_secluded_args
748 with_rsync_path
749 with_rsyncd_conf
750 with_rsh
751 with_nobody_user
752 with_nobody_group
753 enable_roll_simd
754 enable_largefile
755 enable_ipv6
756 enable_locale
757 enable_openssl
758 enable_md5_asm
759 enable_roll_asm
760 enable_xxhash
761 enable_zstd
762 enable_lz4
763 enable_iconv_open
764 enable_iconv
765 enable_acl_support
766 enable_xattr_support
767 enable_year2038
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 CXX
779 CXXFLAGS
780 CCC'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 runstatedir='${localstatedir}/run'
820 includedir='${prefix}/include'
821 oldincludedir='/usr/include'
822 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir='${datarootdir}/info'
824 htmldir='${docdir}'
825 dvidir='${docdir}'
826 pdfdir='${docdir}'
827 psdir='${docdir}'
828 libdir='${exec_prefix}/lib'
829 localedir='${datarootdir}/locale'
830 mandir='${datarootdir}/man'
831
832 ac_prev=
833 ac_dashdash=
834 for ac_option
835 do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\$ac_option
839 ac_prev=
840 continue
841 fi
842
843 case $ac_option in
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: '$ac_useropt'"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: '$ac_useropt'"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -runstatedir | --runstatedir | --runstatedi | --runstated \
1071 | --runstate | --runstat | --runsta | --runst | --runs \
1072 | --run | --ru | --r)
1073 ac_prev=runstatedir ;;
1074 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1075 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1076 | --run=* | --ru=* | --r=*)
1077 runstatedir=$ac_optarg ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: '$ac_useropt'"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1139
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: '$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
1174 -*) as_fn_error $? "unrecognized option: '$ac_option'
1175 Try '$0 --help' for more information"
1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
1190 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 ;;
1195
1196 esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error $? "missing argument to $ac_option"
1202 fi
1203
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210 fi
1211
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir runstatedir
1217 do
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1232
1233 # There might be people who depend on the old broken behavior: '$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247 fi
1248
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252 test "$silent" = yes && exec 6>/dev/null
1253
1254
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error $? "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 printf "%s\n" X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1293 fi
1294 else
1295 ac_srcdir_defaulted=no
1296 fi
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 fi
1301 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 'configure' configures rsync to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print 'checking ...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for '--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or '..']
1348
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1354
1355 By default, 'make install' will install all the files in
1356 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than '$ac_default_prefix' using '--prefix',
1358 for instance '--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/rsync]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
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 rsync:";;
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 --disable-debug disable to omit debugging symbols and features
1404 --enable-profile enable to turn on CPU profiling
1405 --enable-coverage build with gcov instrumentation for `make coverage`
1406 --disable-openat2 do not use Linux openat2(RESOLVE_BENEATH); force the
1407 portable resolver (for exercising the fallback tier)
1408 --disable-md2man disable to omit manpage creation
1409 --enable-maintainer-mode
1410 enable to turn on extra debug features
1411 --enable-roll-simd enable/disable to control rolling-checksum SIMD
1412 optimizations (requires c++)
1413 --disable-largefile omit support for large files
1414 --disable-ipv6 disable to omit ipv6 support
1415 --disable-locale disable to omit locale features
1416 --disable-openssl disable to omit openssl crypto library
1417 --enable-md5-asm enable/disable to control MD5 ASM optimizations
1418 --enable-roll-asm enable/disable to control rolling-checksum ASM
1419 optimizations (requires --enable-roll-simd)
1420 --disable-xxhash disable to omit xxhash checksums
1421 --disable-zstd disable to omit zstd compression
1422 --disable-lz4 disable to omit LZ4 compression
1423 --disable-iconv-open disable to avoid all use of iconv_open()
1424 --disable-iconv disable to omit the --iconv option
1425 --disable-acl-support disable to omit ACL support
1426 --disable-xattr-support disable to omit extended attributes
1427 --enable-year2038 support timestamps after 2038
1428
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-openssl-conf=PATH
1433 set default OPENSSL_CONF path for rsync
1434 --with-rrsync also install the rrsync script and its manpage
1435 --with-included-popt use bundled popt library, not from system
1436 --with-included-zlib use bundled zlib library, not from system
1437 --with-secluded-args make --secluded-args option the default
1438 --with-rsync-path=PATH set default --rsync-path to PATH (default: rsync)
1439 --with-rsyncd-conf=PATH set configuration file for rsync server to PATH
1440 (default: /etc/rsyncd.conf)
1441 --with-rsh=CMD set remote shell command to CMD (default: ssh)
1442 --with-nobody-user=USER set the default unprivileged user (default nobody)
1443 --with-nobody-group=GROUP
1444 set the default unprivileged group (default nobody
1445 or nogroup)
1446
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
1456 CXX C++ compiler command
1457 CXXFLAGS C++ compiler flags
1458
1459 Use these variables to override the choices made by 'configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to <https://rsync.samba.org/bug-tracking.html>.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1474
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *)
1478 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1490
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for configure.gnu first; this name is used for a wrapper for
1509 # Metaconfig's "Configure" on case-insensitive file systems.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521 fi
1522
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 rsync configure
1527 generated by GNU Autoconf 2.72
1528
1529 Copyright (C) 2023 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1534 fi
1535
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1539
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1544 {
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext conftest.beam
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 printf "%s\n" "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext
1566 then :
1567 ac_retval=0
1568 else case e in #(
1569 e) printf "%s\n" "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1 ;;
1573 esac
1574 fi
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_link ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 printf "%s\n" "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 test -x conftest$ac_exeext
1608 }
1609 then :
1610 ac_retval=0
1611 else case e in #(
1612 e) printf "%s\n" "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1 ;;
1616 esac
1617 fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_try_run LINENO
1629 # ----------------------
1630 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1631 # executables *can* be run.
1632 ac_fn_c_try_run ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 printf "%s\n" "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>&5
1643 ac_status=$?
1644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646 { { case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 printf "%s\n" "$ac_try_echo"; } >&5
1652 (eval "$ac_try") 2>&5
1653 ac_status=$?
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; }; }
1656 then :
1657 ac_retval=0
1658 else case e in #(
1659 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1660 printf "%s\n" "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=$ac_status ;;
1664 esac
1665 fi
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_run
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 printf %s "checking for $2... " >&6; }
1681 if eval test \${$3+y}
1682 then :
1683 printf %s "(cached) " >&6
1684 else case e in #(
1685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"
1691 then :
1692 eval "$3=yes"
1693 else case e in #(
1694 e) eval "$3=no" ;;
1695 esac
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1698 esac
1699 fi
1700 eval ac_res=\$$3
1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 printf "%s\n" "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_compile
1706
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_cpp ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 printf "%s\n" "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }
1732 then :
1733 ac_retval=0
1734 else case e in #(
1735 e) printf "%s\n" "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1 ;;
1739 esac
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_cpp
1745
1746 # ac_fn_cxx_try_compile LINENO
1747 # ----------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_cxx_try_compile ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext conftest.beam
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 printf "%s\n" "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_cxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext
1772 then :
1773 ac_retval=0
1774 else case e in #(
1775 e) printf "%s\n" "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1 ;;
1779 esac
1780 fi
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_cxx_try_compile
1785
1786 # ac_fn_cxx_try_run LINENO
1787 # ------------------------
1788 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1789 # executables *can* be run.
1790 ac_fn_cxx_try_run ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 printf "%s\n" "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>&5
1801 ac_status=$?
1802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1804 { { case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 printf "%s\n" "$ac_try_echo"; } >&5
1810 (eval "$ac_try") 2>&5
1811 ac_status=$?
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; }; }
1814 then :
1815 ac_retval=0
1816 else case e in #(
1817 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1818 printf "%s\n" "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=$ac_status ;;
1822 esac
1823 fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_cxx_try_run
1829
1830 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1831 # --------------------------------------------
1832 # Tries to find the compile-time value of EXPR in a program that includes
1833 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1834 # computed
1835 ac_fn_c_compute_int ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if test "$cross_compiling" = yes; then
1839 # Depending upon the size, compute the lo and hi bounds.
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main (void)
1845 {
1846 static int test_array [1 - 2 * !(($2) >= 0)];
1847 test_array [0] = 0;
1848 return test_array [0];
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"
1855 then :
1856 ac_lo=0 ac_mid=0
1857 while :; do
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 int
1862 main (void)
1863 {
1864 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1865 test_array [0] = 0;
1866 return test_array [0];
1867
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"
1873 then :
1874 ac_hi=$ac_mid; break
1875 else case e in #(
1876 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1877 if test $ac_lo -le $ac_mid; then
1878 ac_lo= ac_hi=
1879 break
1880 fi
1881 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1882 esac
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1885 done
1886 else case e in #(
1887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main (void)
1892 {
1893 static int test_array [1 - 2 * !(($2) < 0)];
1894 test_array [0] = 0;
1895 return test_array [0];
1896
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"
1902 then :
1903 ac_hi=-1 ac_mid=-1
1904 while :; do
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main (void)
1910 {
1911 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1912 test_array [0] = 0;
1913 return test_array [0];
1914
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"
1920 then :
1921 ac_lo=$ac_mid; break
1922 else case e in #(
1923 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1924 if test $ac_mid -le $ac_hi; then
1925 ac_lo= ac_hi=
1926 break
1927 fi
1928 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1929 esac
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1932 done
1933 else case e in #(
1934 e) ac_lo= ac_hi= ;;
1935 esac
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1938 esac
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1941 # Binary search between lo and hi bounds.
1942 while test "x$ac_lo" != "x$ac_hi"; do
1943 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main (void)
1949 {
1950 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1951 test_array [0] = 0;
1952 return test_array [0];
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"
1959 then :
1960 ac_hi=$ac_mid
1961 else case e in #(
1962 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1963 esac
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1966 done
1967 case $ac_lo in #((
1968 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1969 '') ac_retval=1 ;;
1970 esac
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $4
1975 static long int longval (void) { return $2; }
1976 static unsigned long int ulongval (void) { return $2; }
1977 #include <stdio.h>
1978 #include <stdlib.h>
1979 int
1980 main (void)
1981 {
1982
1983 FILE *f = fopen ("conftest.val", "w");
1984 if (! f)
1985 return 1;
1986 if (($2) < 0)
1987 {
1988 long int i = longval ();
1989 if (i != ($2))
1990 return 1;
1991 fprintf (f, "%ld", i);
1992 }
1993 else
1994 {
1995 unsigned long int i = ulongval ();
1996 if (i != ($2))
1997 return 1;
1998 fprintf (f, "%lu", i);
1999 }
2000 /* Do not output a trailing newline, as this causes \r\n confusion
2001 on some platforms. */
2002 return ferror (f) || fclose (f) != 0;
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_run "$LINENO"
2009 then :
2010 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2011 else case e in #(
2012 e) ac_retval=1 ;;
2013 esac
2014 fi
2015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2016 conftest.$ac_objext conftest.beam conftest.$ac_ext
2017 rm -f conftest.val
2018
2019 fi
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_c_compute_int
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 printf %s "checking for $2... " >&6; }
2034 if eval test \${$3+y}
2035 then :
2036 printf %s "(cached) " >&6
2037 else case e in #(
2038 e) eval "$3=no"
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main (void)
2044 {
2045 if (sizeof ($2))
2046 return 0;
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"
2052 then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 int
2057 main (void)
2058 {
2059 if (sizeof (($2)))
2060 return 0;
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"
2066 then :
2067
2068 else case e in #(
2069 e) eval "$3=yes" ;;
2070 esac
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2075 esac
2076 fi
2077 eval ac_res=\$$3
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 printf "%s\n" "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082 } # ac_fn_c_check_type
2083
2084 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2085 # ----------------------------------------------------
2086 # Tries to find if the field MEMBER exists in type AGGR, after including
2087 # INCLUDES, setting cache variable VAR accordingly.
2088 ac_fn_c_check_member ()
2089 {
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2092 printf %s "checking for $2.$3... " >&6; }
2093 if eval test \${$4+y}
2094 then :
2095 printf %s "(cached) " >&6
2096 else case e in #(
2097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $5
2100 int
2101 main (void)
2102 {
2103 static $2 ac_aggr;
2104 if (ac_aggr.$3)
2105 return 0;
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"
2111 then :
2112 eval "$4=yes"
2113 else case e in #(
2114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $5
2117 int
2118 main (void)
2119 {
2120 static $2 ac_aggr;
2121 if (sizeof ac_aggr.$3)
2122 return 0;
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"
2128 then :
2129 eval "$4=yes"
2130 else case e in #(
2131 e) eval "$4=no" ;;
2132 esac
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2135 esac
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2138 esac
2139 fi
2140 eval ac_res=\$$4
2141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 printf "%s\n" "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145 } # ac_fn_c_check_member
2146
2147 # ac_fn_c_check_func LINENO FUNC VAR
2148 # ----------------------------------
2149 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2150 ac_fn_c_check_func ()
2151 {
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 printf %s "checking for $2... " >&6; }
2155 if eval test \${$3+y}
2156 then :
2157 printf %s "(cached) " >&6
2158 else case e in #(
2159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2163 #define $2 innocuous_$2
2164
2165 /* System header to define __stub macros and hopefully few prototypes,
2166 which can conflict with char $2 (void); below. */
2167
2168 #include <limits.h>
2169 #undef $2
2170
2171 /* Override any GCC internal prototype to avoid an error.
2172 Use char because int might match the return type of a GCC
2173 builtin and then its argument prototype would still apply. */
2174 #ifdef __cplusplus
2175 extern "C"
2176 #endif
2177 char $2 (void);
2178 /* The GNU C library defines this for functions which it implements
2179 to always fail with ENOSYS. Some functions are actually named
2180 something starting with __ and the normal name is an alias. */
2181 #if defined __stub_$2 || defined __stub___$2
2182 choke me
2183 #endif
2184
2185 int
2186 main (void)
2187 {
2188 return $2 ();
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_link "$LINENO"
2194 then :
2195 eval "$3=yes"
2196 else case e in #(
2197 e) eval "$3=no" ;;
2198 esac
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2201 conftest$ac_exeext conftest.$ac_ext ;;
2202 esac
2203 fi
2204 eval ac_res=\$$3
2205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2206 printf "%s\n" "$ac_res" >&6; }
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208
2209 } # ac_fn_c_check_func
2210 ac_configure_args_raw=
2211 for ac_arg
2212 do
2213 case $ac_arg in
2214 *\'*)
2215 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 esac
2217 as_fn_append ac_configure_args_raw " '$ac_arg'"
2218 done
2219
2220 case $ac_configure_args_raw in
2221 *$as_nl*)
2222 ac_safe_unquote= ;;
2223 *)
2224 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2225 ac_unsafe_a="$ac_unsafe_z#~"
2226 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2227 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2228 esac
2229
2230 cat >config.log <<_ACEOF
2231 This file contains any messages produced by compilers while
2232 running configure, to aid debugging if configure makes a mistake.
2233
2234 It was created by rsync $as_me, which was
2235 generated by GNU Autoconf 2.72. Invocation command line was
2236
2237 $ $0$ac_configure_args_raw
2238
2239 _ACEOF
2240 exec 5>>config.log
2241 {
2242 cat <<_ASUNAME
2243 ## --------- ##
2244 ## Platform. ##
2245 ## --------- ##
2246
2247 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2248 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2249 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2250 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2251 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2252
2253 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2254 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2255
2256 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2257 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2258 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2259 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2260 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2261 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2262 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2263
2264 _ASUNAME
2265
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 case $as_dir in #(((
2271 '') as_dir=./ ;;
2272 */) ;;
2273 *) as_dir=$as_dir/ ;;
2274 esac
2275 printf "%s\n" "PATH: $as_dir"
2276 done
2277 IFS=$as_save_IFS
2278
2279 } >&5
2280
2281 cat >&5 <<_ACEOF
2282
2283
2284 ## ----------- ##
2285 ## Core tests. ##
2286 ## ----------- ##
2287
2288 _ACEOF
2289
2290
2291 # Keep a trace of the command line.
2292 # Strip out --no-create and --no-recursion so they do not pile up.
2293 # Strip out --silent because we don't want to record it for future runs.
2294 # Also quote any args containing shell meta-characters.
2295 # Make two passes to allow for proper duplicate-argument suppression.
2296 ac_configure_args=
2297 ac_configure_args0=
2298 ac_configure_args1=
2299 ac_must_keep_next=false
2300 for ac_pass in 1 2
2301 do
2302 for ac_arg
2303 do
2304 case $ac_arg in
2305 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2307 | -silent | --silent | --silen | --sile | --sil)
2308 continue ;;
2309 *\'*)
2310 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 esac
2312 case $ac_pass in
2313 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2314 2)
2315 as_fn_append ac_configure_args1 " '$ac_arg'"
2316 if test $ac_must_keep_next = true; then
2317 ac_must_keep_next=false # Got value, back to normal.
2318 else
2319 case $ac_arg in
2320 *=* | --config-cache | -C | -disable-* | --disable-* \
2321 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2322 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2323 | -with-* | --with-* | -without-* | --without-* | --x)
2324 case "$ac_configure_args0 " in
2325 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2326 esac
2327 ;;
2328 -* ) ac_must_keep_next=true ;;
2329 esac
2330 fi
2331 as_fn_append ac_configure_args " '$ac_arg'"
2332 ;;
2333 esac
2334 done
2335 done
2336 { ac_configure_args0=; unset ac_configure_args0;}
2337 { ac_configure_args1=; unset ac_configure_args1;}
2338
2339 # When interrupted or exit'd, cleanup temporary files, and complete
2340 # config.log. We remove comments because anyway the quotes in there
2341 # would cause problems or look ugly.
2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2344 trap 'exit_status=$?
2345 # Sanitize IFS.
2346 IFS=" "" $as_nl"
2347 # Save into config.log some information that might help in debugging.
2348 {
2349 echo
2350
2351 printf "%s\n" "## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##"
2354 echo
2355 # The following way of writing the cache mishandles newlines in values,
2356 (
2357 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2358 eval ac_val=\$$ac_var
2359 case $ac_val in #(
2360 *${as_nl}*)
2361 case $ac_var in #(
2362 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2363 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2364 esac
2365 case $ac_var in #(
2366 _ | IFS | as_nl) ;; #(
2367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2368 *) { eval $ac_var=; unset $ac_var;} ;;
2369 esac ;;
2370 esac
2371 done
2372 (set) 2>&1 |
2373 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2374 *${as_nl}ac_space=\ *)
2375 sed -n \
2376 "s/'\''/'\''\\\\'\'''\''/g;
2377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2378 ;; #(
2379 *)
2380 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2381 ;;
2382 esac |
2383 sort
2384 )
2385 echo
2386
2387 printf "%s\n" "## ----------------- ##
2388 ## Output variables. ##
2389 ## ----------------- ##"
2390 echo
2391 for ac_var in $ac_subst_vars
2392 do
2393 eval ac_val=\$$ac_var
2394 case $ac_val in
2395 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 esac
2397 printf "%s\n" "$ac_var='\''$ac_val'\''"
2398 done | sort
2399 echo
2400
2401 if test -n "$ac_subst_files"; then
2402 printf "%s\n" "## ------------------- ##
2403 ## File substitutions. ##
2404 ## ------------------- ##"
2405 echo
2406 for ac_var in $ac_subst_files
2407 do
2408 eval ac_val=\$$ac_var
2409 case $ac_val in
2410 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411 esac
2412 printf "%s\n" "$ac_var='\''$ac_val'\''"
2413 done | sort
2414 echo
2415 fi
2416
2417 if test -s confdefs.h; then
2418 printf "%s\n" "## ----------- ##
2419 ## confdefs.h. ##
2420 ## ----------- ##"
2421 echo
2422 cat confdefs.h
2423 echo
2424 fi
2425 test "$ac_signal" != 0 &&
2426 printf "%s\n" "$as_me: caught signal $ac_signal"
2427 printf "%s\n" "$as_me: exit $exit_status"
2428 } >&5
2429 rm -f core *.core core.conftest.* &&
2430 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431 exit $exit_status
2432 ' 0
2433 for ac_signal in 1 2 13 15; do
2434 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2435 done
2436 ac_signal=0
2437
2438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2439 rm -f -r conftest* confdefs.h
2440
2441 printf "%s\n" "/* confdefs.h */" > confdefs.h
2442
2443 # Predefined preprocessor variables.
2444
2445 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2446
2447 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2448
2449 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2450
2451 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2452
2453 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2454
2455 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2456
2457
2458 # Let the site file select an alternate cache file if it wants to.
2459 # Prefer an explicitly selected file to automatically selected ones.
2460 if test -n "$CONFIG_SITE"; then
2461 ac_site_files="$CONFIG_SITE"
2462 elif test "x$prefix" != xNONE; then
2463 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2464 else
2465 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2466 fi
2467
2468 for ac_site_file in $ac_site_files
2469 do
2470 case $ac_site_file in #(
2471 */*) :
2472 ;; #(
2473 *) :
2474 ac_site_file=./$ac_site_file ;;
2475 esac
2476 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2479 sed 's/^/| /' "$ac_site_file" >&5
2480 . "$ac_site_file" \
2481 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2482 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2483 as_fn_error $? "failed to load site script $ac_site_file
2484 See 'config.log' for more details" "$LINENO" 5; }
2485 fi
2486 done
2487
2488 if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special files
2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2494 case $cache_file in
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2497 esac
2498 fi
2499 else
2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2502 >$cache_file
2503 fi
2504
2505 # Test code for whether the C compiler supports C89 (global declarations)
2506 ac_c_conftest_c89_globals='
2507 /* Does the compiler advertise C89 conformance?
2508 Do not test the value of __STDC__, because some compilers set it to 0
2509 while being otherwise adequately conformant. */
2510 #if !defined __STDC__
2511 # error "Compiler does not advertise C89 conformance"
2512 #endif
2513
2514 #include <stddef.h>
2515 #include <stdarg.h>
2516 struct stat;
2517 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2518 struct buf { int x; };
2519 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (char **p, int i)
2521 {
2522 return p[i];
2523 }
2524 static char *f (char * (*g) (char **, int), char **p, ...)
2525 {
2526 char *s;
2527 va_list v;
2528 va_start (v,p);
2529 s = g (p, va_arg (v,int));
2530 va_end (v);
2531 return s;
2532 }
2533
2534 /* C89 style stringification. */
2535 #define noexpand_stringify(a) #a
2536 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2537
2538 /* C89 style token pasting. Exercises some of the corner cases that
2539 e.g. old MSVC gets wrong, but not very hard. */
2540 #define noexpand_concat(a,b) a##b
2541 #define expand_concat(a,b) noexpand_concat(a,b)
2542 extern int vA;
2543 extern int vbee;
2544 #define aye A
2545 #define bee B
2546 int *pvA = &expand_concat(v,aye);
2547 int *pvbee = &noexpand_concat(v,bee);
2548
2549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2550 function prototypes and stuff, but not \xHH hex character constants.
2551 These do not provoke an error unfortunately, instead are silently treated
2552 as an "x". The following induces an error, until -std is added to get
2553 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2554 array size at least. It is necessary to write \x00 == 0 to get something
2555 that is true only with -std. */
2556 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2557
2558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2559 inside strings and character constants. */
2560 #define FOO(x) '\''x'\''
2561 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2562
2563 int test (int i, double x);
2564 struct s1 {int (*f) (int a);};
2565 struct s2 {int (*f) (double a);};
2566 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2567 int, int);'
2568
2569 # Test code for whether the C compiler supports C89 (body of main).
2570 ac_c_conftest_c89_main='
2571 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2572 '
2573
2574 # Test code for whether the C compiler supports C99 (global declarations)
2575 ac_c_conftest_c99_globals='
2576 /* Does the compiler advertise C99 conformance? */
2577 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2578 # error "Compiler does not advertise C99 conformance"
2579 #endif
2580
2581 // See if C++-style comments work.
2582
2583 #include <stdbool.h>
2584 extern int puts (const char *);
2585 extern int printf (const char *, ...);
2586 extern int dprintf (int, const char *, ...);
2587 extern void *malloc (size_t);
2588 extern void free (void *);
2589
2590 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2591 // dprintf is used instead of fprintf to avoid needing to declare
2592 // FILE and stderr.
2593 #define debug(...) dprintf (2, __VA_ARGS__)
2594 #define showlist(...) puts (#__VA_ARGS__)
2595 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2596 static void
2597 test_varargs_macros (void)
2598 {
2599 int x = 1234;
2600 int y = 5678;
2601 debug ("Flag");
2602 debug ("X = %d\n", x);
2603 showlist (The first, second, and third items.);
2604 report (x>y, "x is %d but y is %d", x, y);
2605 }
2606
2607 // Check long long types.
2608 #define BIG64 18446744073709551615ull
2609 #define BIG32 4294967295ul
2610 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2611 #if !BIG_OK
2612 #error "your preprocessor is broken"
2613 #endif
2614 #if BIG_OK
2615 #else
2616 #error "your preprocessor is broken"
2617 #endif
2618 static long long int bignum = -9223372036854775807LL;
2619 static unsigned long long int ubignum = BIG64;
2620
2621 struct incomplete_array
2622 {
2623 int datasize;
2624 double data[];
2625 };
2626
2627 struct named_init {
2628 int number;
2629 const wchar_t *name;
2630 double average;
2631 };
2632
2633 typedef const char *ccp;
2634
2635 static inline int
2636 test_restrict (ccp restrict text)
2637 {
2638 // Iterate through items via the restricted pointer.
2639 // Also check for declarations in for loops.
2640 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2641 continue;
2642 return 0;
2643 }
2644
2645 // Check varargs and va_copy.
2646 static bool
2647 test_varargs (const char *format, ...)
2648 {
2649 va_list args;
2650 va_start (args, format);
2651 va_list args_copy;
2652 va_copy (args_copy, args);
2653
2654 const char *str = "";
2655 int number = 0;
2656 float fnumber = 0;
2657
2658 while (*format)
2659 {
2660 switch (*format++)
2661 {
2662 case '\''s'\'': // string
2663 str = va_arg (args_copy, const char *);
2664 break;
2665 case '\''d'\'': // int
2666 number = va_arg (args_copy, int);
2667 break;
2668 case '\''f'\'': // float
2669 fnumber = va_arg (args_copy, double);
2670 break;
2671 default:
2672 break;
2673 }
2674 }
2675 va_end (args_copy);
2676 va_end (args);
2677
2678 return *str && number && fnumber;
2679 }
2680 '
2681
2682 # Test code for whether the C compiler supports C99 (body of main).
2683 ac_c_conftest_c99_main='
2684 // Check bool.
2685 _Bool success = false;
2686 success |= (argc != 0);
2687
2688 // Check restrict.
2689 if (test_restrict ("String literal") == 0)
2690 success = true;
2691 char *restrict newvar = "Another string";
2692
2693 // Check varargs.
2694 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2695 test_varargs_macros ();
2696
2697 // Check flexible array members.
2698 struct incomplete_array *ia =
2699 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2700 ia->datasize = 10;
2701 for (int i = 0; i < ia->datasize; ++i)
2702 ia->data[i] = i * 1.234;
2703 // Work around memory leak warnings.
2704 free (ia);
2705
2706 // Check named initializers.
2707 struct named_init ni = {
2708 .number = 34,
2709 .name = L"Test wide string",
2710 .average = 543.34343,
2711 };
2712
2713 ni.number = 58;
2714
2715 int dynamic_array[ni.number];
2716 dynamic_array[0] = argv[0][0];
2717 dynamic_array[ni.number - 1] = 543;
2718
2719 // work around unused variable warnings
2720 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2721 || dynamic_array[ni.number - 1] != 543);
2722 '
2723
2724 # Test code for whether the C compiler supports C11 (global declarations)
2725 ac_c_conftest_c11_globals='
2726 /* Does the compiler advertise C11 conformance? */
2727 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2728 # error "Compiler does not advertise C11 conformance"
2729 #endif
2730
2731 // Check _Alignas.
2732 char _Alignas (double) aligned_as_double;
2733 char _Alignas (0) no_special_alignment;
2734 extern char aligned_as_int;
2735 char _Alignas (0) _Alignas (int) aligned_as_int;
2736
2737 // Check _Alignof.
2738 enum
2739 {
2740 int_alignment = _Alignof (int),
2741 int_array_alignment = _Alignof (int[100]),
2742 char_alignment = _Alignof (char)
2743 };
2744 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2745
2746 // Check _Noreturn.
2747 int _Noreturn does_not_return (void) { for (;;) continue; }
2748
2749 // Check _Static_assert.
2750 struct test_static_assert
2751 {
2752 int x;
2753 _Static_assert (sizeof (int) <= sizeof (long int),
2754 "_Static_assert does not work in struct");
2755 long int y;
2756 };
2757
2758 // Check UTF-8 literals.
2759 #define u8 syntax error!
2760 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2761
2762 // Check duplicate typedefs.
2763 typedef long *long_ptr;
2764 typedef long int *long_ptr;
2765 typedef long_ptr long_ptr;
2766
2767 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2768 struct anonymous
2769 {
2770 union {
2771 struct { int i; int j; };
2772 struct { int k; long int l; } w;
2773 };
2774 int m;
2775 } v1;
2776 '
2777
2778 # Test code for whether the C compiler supports C11 (body of main).
2779 ac_c_conftest_c11_main='
2780 _Static_assert ((offsetof (struct anonymous, i)
2781 == offsetof (struct anonymous, w.k)),
2782 "Anonymous union alignment botch");
2783 v1.i = 2;
2784 v1.w.k = 5;
2785 ok |= v1.i != 5;
2786 '
2787
2788 # Test code for whether the C compiler supports C11 (complete).
2789 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2790 ${ac_c_conftest_c99_globals}
2791 ${ac_c_conftest_c11_globals}
2792
2793 int
2794 main (int argc, char **argv)
2795 {
2796 int ok = 0;
2797 ${ac_c_conftest_c89_main}
2798 ${ac_c_conftest_c99_main}
2799 ${ac_c_conftest_c11_main}
2800 return ok;
2801 }
2802 "
2803
2804 # Test code for whether the C compiler supports C99 (complete).
2805 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2806 ${ac_c_conftest_c99_globals}
2807
2808 int
2809 main (int argc, char **argv)
2810 {
2811 int ok = 0;
2812 ${ac_c_conftest_c89_main}
2813 ${ac_c_conftest_c99_main}
2814 return ok;
2815 }
2816 "
2817
2818 # Test code for whether the C compiler supports C89 (complete).
2819 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2820
2821 int
2822 main (int argc, char **argv)
2823 {
2824 int ok = 0;
2825 ${ac_c_conftest_c89_main}
2826 return ok;
2827 }
2828 "
2829
2830 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2831 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2832 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2833 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2834 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2835 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2836 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2837 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2838 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2839 # Test code for whether the C++ compiler supports C++98 (global declarations)
2840 ac_cxx_conftest_cxx98_globals='
2841 // Does the compiler advertise C++98 conformance?
2842 #if !defined __cplusplus || __cplusplus < 199711L
2843 # error "Compiler does not advertise C++98 conformance"
2844 #endif
2845
2846 // These inclusions are to reject old compilers that
2847 // lack the unsuffixed header files.
2848 #include <cstdlib>
2849 #include <exception>
2850
2851 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2852 extern void assert (int);
2853 namespace std {
2854 extern int strcmp (const char *, const char *);
2855 }
2856
2857 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2858 using std::exception;
2859 using std::strcmp;
2860
2861 namespace {
2862
2863 void test_exception_syntax()
2864 {
2865 try {
2866 throw "test";
2867 } catch (const char *s) {
2868 // Extra parentheses suppress a warning when building autoconf itself,
2869 // due to lint rules shared with more typical C programs.
2870 assert (!(strcmp) (s, "test"));
2871 }
2872 }
2873
2874 template <typename T> struct test_template
2875 {
2876 T const val;
2877 explicit test_template(T t) : val(t) {}
2878 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2879 };
2880
2881 } // anonymous namespace
2882 '
2883
2884 # Test code for whether the C++ compiler supports C++98 (body of main)
2885 ac_cxx_conftest_cxx98_main='
2886 assert (argc);
2887 assert (! argv[0]);
2888 {
2889 test_exception_syntax ();
2890 test_template<double> tt (2.0);
2891 assert (tt.add (4) == 6.0);
2892 assert (true && !false);
2893 }
2894 '
2895
2896 # Test code for whether the C++ compiler supports C++11 (global declarations)
2897 ac_cxx_conftest_cxx11_globals='
2898 // Does the compiler advertise C++ 2011 conformance?
2899 #if !defined __cplusplus || __cplusplus < 201103L
2900 # error "Compiler does not advertise C++11 conformance"
2901 #endif
2902
2903 namespace cxx11test
2904 {
2905 constexpr int get_val() { return 20; }
2906
2907 struct testinit
2908 {
2909 int i;
2910 double d;
2911 };
2912
2913 class delegate
2914 {
2915 public:
2916 delegate(int n) : n(n) {}
2917 delegate(): delegate(2354) {}
2918
2919 virtual int getval() { return this->n; };
2920 protected:
2921 int n;
2922 };
2923
2924 class overridden : public delegate
2925 {
2926 public:
2927 overridden(int n): delegate(n) {}
2928 virtual int getval() override final { return this->n * 2; }
2929 };
2930
2931 class nocopy
2932 {
2933 public:
2934 nocopy(int i): i(i) {}
2935 nocopy() = default;
2936 nocopy(const nocopy&) = delete;
2937 nocopy & operator=(const nocopy&) = delete;
2938 private:
2939 int i;
2940 };
2941
2942 // for testing lambda expressions
2943 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2944 {
2945 return f(v);
2946 }
2947
2948 // for testing variadic templates and trailing return types
2949 template <typename V> auto sum(V first) -> V
2950 {
2951 return first;
2952 }
2953 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2954 {
2955 return first + sum(rest...);
2956 }
2957 }
2958 '
2959
2960 # Test code for whether the C++ compiler supports C++11 (body of main)
2961 ac_cxx_conftest_cxx11_main='
2962 {
2963 // Test auto and decltype
2964 auto a1 = 6538;
2965 auto a2 = 48573953.4;
2966 auto a3 = "String literal";
2967
2968 int total = 0;
2969 for (auto i = a3; *i; ++i) { total += *i; }
2970
2971 decltype(a2) a4 = 34895.034;
2972 }
2973 {
2974 // Test constexpr
2975 short sa[cxx11test::get_val()] = { 0 };
2976 }
2977 {
2978 // Test initializer lists
2979 cxx11test::testinit il = { 4323, 435234.23544 };
2980 }
2981 {
2982 // Test range-based for
2983 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2984 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2985 for (auto &x : array) { x += 23; }
2986 }
2987 {
2988 // Test lambda expressions
2989 using cxx11test::eval;
2990 assert (eval ([](int x) { return x*2; }, 21) == 42);
2991 double d = 2.0;
2992 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2993 assert (d == 5.0);
2994 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2995 assert (d == 5.0);
2996 }
2997 {
2998 // Test use of variadic templates
2999 using cxx11test::sum;
3000 auto a = sum(1);
3001 auto b = sum(1, 2);
3002 auto c = sum(1.0, 2.0, 3.0);
3003 }
3004 {
3005 // Test constructor delegation
3006 cxx11test::delegate d1;
3007 cxx11test::delegate d2();
3008 cxx11test::delegate d3(45);
3009 }
3010 {
3011 // Test override and final
3012 cxx11test::overridden o1(55464);
3013 }
3014 {
3015 // Test nullptr
3016 char *c = nullptr;
3017 }
3018 {
3019 // Test template brackets
3020 test_template<::test_template<int>> v(test_template<int>(12));
3021 }
3022 {
3023 // Unicode literals
3024 char const *utf8 = u8"UTF-8 string \u2500";
3025 char16_t const *utf16 = u"UTF-8 string \u2500";
3026 char32_t const *utf32 = U"UTF-32 string \u2500";
3027 }
3028 '
3029
3030 # Test code for whether the C compiler supports C++11 (complete).
3031 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3032 ${ac_cxx_conftest_cxx11_globals}
3033
3034 int
3035 main (int argc, char **argv)
3036 {
3037 int ok = 0;
3038 ${ac_cxx_conftest_cxx98_main}
3039 ${ac_cxx_conftest_cxx11_main}
3040 return ok;
3041 }
3042 "
3043
3044 # Test code for whether the C compiler supports C++98 (complete).
3045 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3046 int
3047 main (int argc, char **argv)
3048 {
3049 int ok = 0;
3050 ${ac_cxx_conftest_cxx98_main}
3051 return ok;
3052 }
3053 "
3054
3055 as_fn_append ac_header_c_list " utime.h utime_h HAVE_UTIME_H"
3056
3057 # Auxiliary files required by this configure script.
3058 ac_aux_files="install-sh config.guess config.sub"
3059
3060 # Locations in which to look for auxiliary files.
3061 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3062
3063 # Search for a directory containing all of the required auxiliary files,
3064 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3065 # If we don't find one directory that contains all the files we need,
3066 # we report the set of missing files from the *first* directory in
3067 # $ac_aux_dir_candidates and give up.
3068 ac_missing_aux_files=""
3069 ac_first_candidate=:
3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 as_found=false
3073 for as_dir in $ac_aux_dir_candidates
3074 do
3075 IFS=$as_save_IFS
3076 case $as_dir in #(((
3077 '') as_dir=./ ;;
3078 */) ;;
3079 *) as_dir=$as_dir/ ;;
3080 esac
3081 as_found=:
3082
3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3084 ac_aux_dir_found=yes
3085 ac_install_sh=
3086 for ac_aux in $ac_aux_files
3087 do
3088 # As a special case, if "install-sh" is required, that requirement
3089 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3090 # and $ac_install_sh is set appropriately for whichever one is found.
3091 if test x"$ac_aux" = x"install-sh"
3092 then
3093 if test -f "${as_dir}install-sh"; then
3094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3095 ac_install_sh="${as_dir}install-sh -c"
3096 elif test -f "${as_dir}install.sh"; then
3097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3098 ac_install_sh="${as_dir}install.sh -c"
3099 elif test -f "${as_dir}shtool"; then
3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3101 ac_install_sh="${as_dir}shtool install -c"
3102 else
3103 ac_aux_dir_found=no
3104 if $ac_first_candidate; then
3105 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3106 else
3107 break
3108 fi
3109 fi
3110 else
3111 if test -f "${as_dir}${ac_aux}"; then
3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3113 else
3114 ac_aux_dir_found=no
3115 if $ac_first_candidate; then
3116 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3117 else
3118 break
3119 fi
3120 fi
3121 fi
3122 done
3123 if test "$ac_aux_dir_found" = yes; then
3124 ac_aux_dir="$as_dir"
3125 break
3126 fi
3127 ac_first_candidate=false
3128
3129 as_found=false
3130 done
3131 IFS=$as_save_IFS
3132 if $as_found
3133 then :
3134
3135 else case e in #(
3136 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3137 esac
3138 fi
3139
3140
3141 # These three variables are undocumented and unsupported,
3142 # and are intended to be withdrawn in a future Autoconf release.
3143 # They can cause serious problems if a builder's source tree is in a directory
3144 # whose full name contains unusual characters.
3145 if test -f "${ac_aux_dir}config.guess"; then
3146 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3147 fi
3148 if test -f "${ac_aux_dir}config.sub"; then
3149 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3150 fi
3151 if test -f "$ac_aux_dir/configure"; then
3152 ac_configure="$SHELL ${ac_aux_dir}configure"
3153 fi
3154
3155 # Check that the precious variables saved in the cache have kept the same
3156 # value.
3157 ac_cache_corrupted=false
3158 for ac_var in $ac_precious_vars; do
3159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3160 eval ac_new_set=\$ac_env_${ac_var}_set
3161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3162 eval ac_new_val=\$ac_env_${ac_var}_value
3163 case $ac_old_set,$ac_new_set in
3164 set,)
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3166 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3167 ac_cache_corrupted=: ;;
3168 ,set)
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3170 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3171 ac_cache_corrupted=: ;;
3172 ,);;
3173 *)
3174 if test "x$ac_old_val" != "x$ac_new_val"; then
3175 # differences in whitespace do not lead to failure.
3176 ac_old_val_w=`echo x $ac_old_val`
3177 ac_new_val_w=`echo x $ac_new_val`
3178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3180 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3181 ac_cache_corrupted=:
3182 else
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3184 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3185 eval $ac_var=\$ac_old_val
3186 fi
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3188 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3190 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3191 fi;;
3192 esac
3193 # Pass precious variables to config.status.
3194 if test "$ac_new_set" = set; then
3195 case $ac_new_val in
3196 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3197 *) ac_arg=$ac_var=$ac_new_val ;;
3198 esac
3199 case " $ac_configure_args " in
3200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3202 esac
3203 fi
3204 done
3205 if $ac_cache_corrupted; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3207 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3209 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3210 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3211 and start over" "$LINENO" 5
3212 fi
3213 ## -------------------- ##
3214 ## Main body of script. ##
3215 ## -------------------- ##
3216
3217 ac_ext=c
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 printf %s "checking for $ac_word... " >&6; }
3244 if test ${ac_cv_prog_CC+y}
3245 then :
3246 printf %s "(cached) " >&6
3247 else case e in #(
3248 e) if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254 IFS=$as_save_IFS
3255 case $as_dir in #(((
3256 '') as_dir=./ ;;
3257 */) ;;
3258 *) as_dir=$as_dir/ ;;
3259 esac
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi ;;
3271 esac
3272 fi
3273 CC=$ac_cv_prog_CC
3274 if test -n "$CC"; then
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 printf "%s\n" "$CC" >&6; }
3277 else
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 printf "%s\n" "no" >&6; }
3280 fi
3281
3282
3283 fi
3284 if test -z "$ac_cv_prog_CC"; then
3285 ac_ct_CC=$CC
3286 # Extract the first word of "gcc", so it can be a program name with args.
3287 set dummy gcc; ac_word=$2
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 printf %s "checking for $ac_word... " >&6; }
3290 if test ${ac_cv_prog_ac_ct_CC+y}
3291 then :
3292 printf %s "(cached) " >&6
3293 else case e in #(
3294 e) if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300 IFS=$as_save_IFS
3301 case $as_dir in #(((
3302 '') as_dir=./ ;;
3303 */) ;;
3304 *) as_dir=$as_dir/ ;;
3305 esac
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_ac_ct_CC="gcc"
3309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3310 break 2
3311 fi
3312 done
3313 done
3314 IFS=$as_save_IFS
3315
3316 fi ;;
3317 esac
3318 fi
3319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320 if test -n "$ac_ct_CC"; then
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322 printf "%s\n" "$ac_ct_CC" >&6; }
3323 else
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 printf "%s\n" "no" >&6; }
3326 fi
3327
3328 if test "x$ac_ct_CC" = x; then
3329 CC=""
3330 else
3331 case $cross_compiling:$ac_tool_warned in
3332 yes:)
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335 ac_tool_warned=yes ;;
3336 esac
3337 CC=$ac_ct_CC
3338 fi
3339 else
3340 CC="$ac_cv_prog_CC"
3341 fi
3342
3343 if test -z "$CC"; then
3344 if test -n "$ac_tool_prefix"; then
3345 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}cc; ac_word=$2
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 printf %s "checking for $ac_word... " >&6; }
3349 if test ${ac_cv_prog_CC+y}
3350 then :
3351 printf %s "(cached) " >&6
3352 else case e in #(
3353 e) if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 case $as_dir in #(((
3361 '') as_dir=./ ;;
3362 */) ;;
3363 *) as_dir=$as_dir/ ;;
3364 esac
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi ;;
3376 esac
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 printf "%s\n" "$CC" >&6; }
3382 else
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 printf "%s\n" "no" >&6; }
3385 fi
3386
3387
3388 fi
3389 fi
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 printf %s "checking for $ac_word... " >&6; }
3395 if test ${ac_cv_prog_CC+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else case e in #(
3399 e) if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 ac_prog_rejected=no
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406 IFS=$as_save_IFS
3407 case $as_dir in #(((
3408 '') as_dir=./ ;;
3409 */) ;;
3410 *) as_dir=$as_dir/ ;;
3411 esac
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3414 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3415 ac_prog_rejected=yes
3416 continue
3417 fi
3418 ac_cv_prog_CC="cc"
3419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422 done
3423 done
3424 IFS=$as_save_IFS
3425
3426 if test $ac_prog_rejected = yes; then
3427 # We found a bogon in the path, so make sure we never use it.
3428 set dummy $ac_cv_prog_CC
3429 shift
3430 if test $# != 0; then
3431 # We chose a different compiler from the bogus one.
3432 # However, it has the same basename, so the bogon will be chosen
3433 # first if we set CC to just the basename; use the full file name.
3434 shift
3435 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3436 fi
3437 fi
3438 fi ;;
3439 esac
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 printf "%s\n" "$CC" >&6; }
3445 else
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 printf "%s\n" "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 printf %s "checking for $ac_word... " >&6; }
3460 if test ${ac_cv_prog_CC+y}
3461 then :
3462 printf %s "(cached) " >&6
3463 else case e in #(
3464 e) if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470 IFS=$as_save_IFS
3471 case $as_dir in #(((
3472 '') as_dir=./ ;;
3473 */) ;;
3474 *) as_dir=$as_dir/ ;;
3475 esac
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482 done
3483 done
3484 IFS=$as_save_IFS
3485
3486 fi ;;
3487 esac
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 printf "%s\n" "$CC" >&6; }
3493 else
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 printf "%s\n" "no" >&6; }
3496 fi
3497
3498
3499 test -n "$CC" && break
3500 done
3501 fi
3502 if test -z "$CC"; then
3503 ac_ct_CC=$CC
3504 for ac_prog in cl.exe
3505 do
3506 # Extract the first word of "$ac_prog", so it can be a program name with args.
3507 set dummy $ac_prog; ac_word=$2
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 printf %s "checking for $ac_word... " >&6; }
3510 if test ${ac_cv_prog_ac_ct_CC+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else case e in #(
3514 e) if test -n "$ac_ct_CC"; then
3515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520 IFS=$as_save_IFS
3521 case $as_dir in #(((
3522 '') as_dir=./ ;;
3523 */) ;;
3524 *) as_dir=$as_dir/ ;;
3525 esac
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="$ac_prog"
3529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 fi ;;
3537 esac
3538 fi
3539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3540 if test -n "$ac_ct_CC"; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3542 printf "%s\n" "$ac_ct_CC" >&6; }
3543 else
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 printf "%s\n" "no" >&6; }
3546 fi
3547
3548
3549 test -n "$ac_ct_CC" && break
3550 done
3551
3552 if test "x$ac_ct_CC" = x; then
3553 CC=""
3554 else
3555 case $cross_compiling:$ac_tool_warned in
3556 yes:)
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3558 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3559 ac_tool_warned=yes ;;
3560 esac
3561 CC=$ac_ct_CC
3562 fi
3563 fi
3564
3565 fi
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3569 set dummy ${ac_tool_prefix}clang; ac_word=$2
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 printf %s "checking for $ac_word... " >&6; }
3572 if test ${ac_cv_prog_CC+y}
3573 then :
3574 printf %s "(cached) " >&6
3575 else case e in #(
3576 e) if test -n "$CC"; then
3577 ac_cv_prog_CC="$CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 case $as_dir in #(((
3584 '') as_dir=./ ;;
3585 */) ;;
3586 *) as_dir=$as_dir/ ;;
3587 esac
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_CC="${ac_tool_prefix}clang"
3591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 fi ;;
3599 esac
3600 fi
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 printf "%s\n" "$CC" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3608 fi
3609
3610
3611 fi
3612 if test -z "$ac_cv_prog_CC"; then
3613 ac_ct_CC=$CC
3614 # Extract the first word of "clang", so it can be a program name with args.
3615 set dummy clang; ac_word=$2
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 printf %s "checking for $ac_word... " >&6; }
3618 if test ${ac_cv_prog_ac_ct_CC+y}
3619 then :
3620 printf %s "(cached) " >&6
3621 else case e in #(
3622 e) if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 case $as_dir in #(((
3630 '') as_dir=./ ;;
3631 */) ;;
3632 *) as_dir=$as_dir/ ;;
3633 esac
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_ac_ct_CC="clang"
3637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi ;;
3645 esac
3646 fi
3647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3648 if test -n "$ac_ct_CC"; then
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3650 printf "%s\n" "$ac_ct_CC" >&6; }
3651 else
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 printf "%s\n" "no" >&6; }
3654 fi
3655
3656 if test "x$ac_ct_CC" = x; then
3657 CC=""
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665 CC=$ac_ct_CC
3666 fi
3667 else
3668 CC="$ac_cv_prog_CC"
3669 fi
3670
3671 fi
3672
3673
3674 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3675 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3676 as_fn_error $? "no acceptable C compiler found in \$PATH
3677 See 'config.log' for more details" "$LINENO" 5; }
3678
3679 # Provide some information about the compiler.
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3681 set X $ac_compile
3682 ac_compiler=$2
3683 for ac_option in --version -v -V -qversion -version; do
3684 { { ac_try="$ac_compiler $ac_option >&5"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 printf "%s\n" "$ac_try_echo"; } >&5
3691 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3692 ac_status=$?
3693 if test -s conftest.err; then
3694 sed '10a\
3695 ... rest of stderr output deleted ...
3696 10q' conftest.err >conftest.er1
3697 cat conftest.er1 >&5
3698 fi
3699 rm -f conftest.er1 conftest.err
3700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }
3702 done
3703
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main (void)
3709 {
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 ac_clean_files_save=$ac_clean_files
3716 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3717 # Try to create an executable without -o first, disregard a.out.
3718 # It will help us diagnose broken compilers, and finding out an intuition
3719 # of exeext.
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3721 printf %s "checking whether the C compiler works... " >&6; }
3722 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3723
3724 # The possible output files:
3725 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3726
3727 ac_rmfiles=
3728 for ac_file in $ac_files
3729 do
3730 case $ac_file in
3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3732 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3733 esac
3734 done
3735 rm -f $ac_rmfiles
3736
3737 if { { ac_try="$ac_link_default"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 printf "%s\n" "$ac_try_echo"; } >&5
3744 (eval "$ac_link_default") 2>&5
3745 ac_status=$?
3746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3748 then :
3749 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3750 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3752 # so that the user can short-circuit this test for compilers unknown to
3753 # Autoconf.
3754 for ac_file in $ac_files ''
3755 do
3756 test -f "$ac_file" || continue
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3759 ;;
3760 [ab].out )
3761 # We found the default executable, but exeext='' is most
3762 # certainly right.
3763 break;;
3764 *.* )
3765 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3766 then :; else
3767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3768 fi
3769 # We set ac_cv_exeext here because the later test for it is not
3770 # safe: cross compilers may not add the suffix if given an '-o'
3771 # argument, so we may need to know it at that point already.
3772 # Even if this section looks crufty: it has the advantage of
3773 # actually working.
3774 break;;
3775 * )
3776 break;;
3777 esac
3778 done
3779 test "$ac_cv_exeext" = no && ac_cv_exeext=
3780
3781 else case e in #(
3782 e) ac_file='' ;;
3783 esac
3784 fi
3785 if test -z "$ac_file"
3786 then :
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789 printf "%s\n" "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3793 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3794 as_fn_error 77 "C compiler cannot create executables
3795 See 'config.log' for more details" "$LINENO" 5; }
3796 else case e in #(
3797 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3798 printf "%s\n" "yes" >&6; } ;;
3799 esac
3800 fi
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3802 printf %s "checking for C compiler default output file name... " >&6; }
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3804 printf "%s\n" "$ac_file" >&6; }
3805 ac_exeext=$ac_cv_exeext
3806
3807 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3808 ac_clean_files=$ac_clean_files_save
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3810 printf %s "checking for suffix of executables... " >&6; }
3811 if { { ac_try="$ac_link"
3812 case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 printf "%s\n" "$ac_try_echo"; } >&5
3818 (eval "$ac_link") 2>&5
3819 ac_status=$?
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822 then :
3823 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3824 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3825 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3826 # 'rm'.
3827 for ac_file in conftest.exe conftest conftest.*; do
3828 test -f "$ac_file" || continue
3829 case $ac_file in
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3832 break;;
3833 * ) break;;
3834 esac
3835 done
3836 else case e in #(
3837 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3838 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3839 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3840 See 'config.log' for more details" "$LINENO" 5; } ;;
3841 esac
3842 fi
3843 rm -f conftest conftest$ac_cv_exeext
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3845 printf "%s\n" "$ac_cv_exeext" >&6; }
3846
3847 rm -f conftest.$ac_ext
3848 EXEEXT=$ac_cv_exeext
3849 ac_exeext=$EXEEXT
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <stdio.h>
3853 int
3854 main (void)
3855 {
3856 FILE *f = fopen ("conftest.out", "w");
3857 if (!f)
3858 return 1;
3859 return ferror (f) || fclose (f) != 0;
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 ac_clean_files="$ac_clean_files conftest.out"
3866 # Check that the compiler produces executables we can run. If not, either
3867 # the compiler is broken, or we cross compile.
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3869 printf %s "checking whether we are cross compiling... " >&6; }
3870 if test "$cross_compiling" != yes; then
3871 { { ac_try="$ac_link"
3872 case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 printf "%s\n" "$ac_try_echo"; } >&5
3878 (eval "$ac_link") 2>&5
3879 ac_status=$?
3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }
3882 if { ac_try='./conftest$ac_cv_exeext'
3883 { { case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 printf "%s\n" "$ac_try_echo"; } >&5
3889 (eval "$ac_try") 2>&5
3890 ac_status=$?
3891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; }; then
3893 cross_compiling=no
3894 else
3895 if test "$cross_compiling" = maybe; then
3896 cross_compiling=yes
3897 else
3898 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3899 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3900 as_fn_error 77 "cannot run C compiled programs.
3901 If you meant to cross compile, use '--host'.
3902 See 'config.log' for more details" "$LINENO" 5; }
3903 fi
3904 fi
3905 fi
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 printf "%s\n" "$cross_compiling" >&6; }
3908
3909 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3910 conftest.o conftest.obj conftest.out
3911 ac_clean_files=$ac_clean_files_save
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3913 printf %s "checking for suffix of object files... " >&6; }
3914 if test ${ac_cv_objext+y}
3915 then :
3916 printf %s "(cached) " >&6
3917 else case e in #(
3918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920
3921 int
3922 main (void)
3923 {
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.o conftest.obj
3930 if { { ac_try="$ac_compile"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 printf "%s\n" "$ac_try_echo"; } >&5
3937 (eval "$ac_compile") 2>&5
3938 ac_status=$?
3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }
3941 then :
3942 for ac_file in conftest.o conftest.obj conftest.*; do
3943 test -f "$ac_file" || continue;
3944 case $ac_file in
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3947 break;;
3948 esac
3949 done
3950 else case e in #(
3951 e) printf "%s\n" "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3956 as_fn_error $? "cannot compute suffix of object files: cannot compile
3957 See 'config.log' for more details" "$LINENO" 5; } ;;
3958 esac
3959 fi
3960 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3961 esac
3962 fi
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3964 printf "%s\n" "$ac_cv_objext" >&6; }
3965 OBJEXT=$ac_cv_objext
3966 ac_objext=$OBJEXT
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3968 printf %s "checking whether the compiler supports GNU C... " >&6; }
3969 if test ${ac_cv_c_compiler_gnu+y}
3970 then :
3971 printf %s "(cached) " >&6
3972 else case e in #(
3973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main (void)
3978 {
3979 #ifndef __GNUC__
3980 choke me
3981 #endif
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"
3988 then :
3989 ac_compiler_gnu=yes
3990 else case e in #(
3991 e) ac_compiler_gnu=no ;;
3992 esac
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3996 ;;
3997 esac
3998 fi
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003 if test $ac_compiler_gnu = yes; then
4004 GCC=yes
4005 else
4006 GCC=
4007 fi
4008 ac_test_CFLAGS=${CFLAGS+y}
4009 ac_save_CFLAGS=$CFLAGS
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4011 printf %s "checking whether $CC accepts -g... " >&6; }
4012 if test ${ac_cv_prog_cc_g+y}
4013 then :
4014 printf %s "(cached) " >&6
4015 else case e in #(
4016 e) ac_save_c_werror_flag=$ac_c_werror_flag
4017 ac_c_werror_flag=yes
4018 ac_cv_prog_cc_g=no
4019 CFLAGS="-g"
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022
4023 int
4024 main (void)
4025 {
4026
4027 ;
4028 return 0;
4029 }
4030 _ACEOF
4031 if ac_fn_c_try_compile "$LINENO"
4032 then :
4033 ac_cv_prog_cc_g=yes
4034 else case e in #(
4035 e) CFLAGS=""
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main (void)
4041 {
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"
4048 then :
4049
4050 else case e in #(
4051 e) ac_c_werror_flag=$ac_save_c_werror_flag
4052 CFLAGS="-g"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main (void)
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"
4065 then :
4066 ac_cv_prog_cc_g=yes
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4069 esac
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4072 esac
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4076 esac
4077 fi
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4080 if test $ac_test_CFLAGS; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4084 CFLAGS="-g -O2"
4085 else
4086 CFLAGS="-g"
4087 fi
4088 else
4089 if test "$GCC" = yes; then
4090 CFLAGS="-O2"
4091 else
4092 CFLAGS=
4093 fi
4094 fi
4095 ac_prog_cc_stdc=no
4096 if test x$ac_prog_cc_stdc = xno
4097 then :
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4099 printf %s "checking for $CC option to enable C11 features... " >&6; }
4100 if test ${ac_cv_prog_cc_c11+y}
4101 then :
4102 printf %s "(cached) " >&6
4103 else case e in #(
4104 e) ac_cv_prog_cc_c11=no
4105 ac_save_CC=$CC
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 $ac_c_conftest_c11_program
4109 _ACEOF
4110 for ac_arg in '' -std=gnu11
4111 do
4112 CC="$ac_save_CC $ac_arg"
4113 if ac_fn_c_try_compile "$LINENO"
4114 then :
4115 ac_cv_prog_cc_c11=$ac_arg
4116 fi
4117 rm -f core conftest.err conftest.$ac_objext conftest.beam
4118 test "x$ac_cv_prog_cc_c11" != "xno" && break
4119 done
4120 rm -f conftest.$ac_ext
4121 CC=$ac_save_CC ;;
4122 esac
4123 fi
4124
4125 if test "x$ac_cv_prog_cc_c11" = xno
4126 then :
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4128 printf "%s\n" "unsupported" >&6; }
4129 else case e in #(
4130 e) if test "x$ac_cv_prog_cc_c11" = x
4131 then :
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 printf "%s\n" "none needed" >&6; }
4134 else case e in #(
4135 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4136 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4137 CC="$CC $ac_cv_prog_cc_c11" ;;
4138 esac
4139 fi
4140 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4141 ac_prog_cc_stdc=c11 ;;
4142 esac
4143 fi
4144 fi
4145 if test x$ac_prog_cc_stdc = xno
4146 then :
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4148 printf %s "checking for $CC option to enable C99 features... " >&6; }
4149 if test ${ac_cv_prog_cc_c99+y}
4150 then :
4151 printf %s "(cached) " >&6
4152 else case e in #(
4153 e) ac_cv_prog_cc_c99=no
4154 ac_save_CC=$CC
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 $ac_c_conftest_c99_program
4158 _ACEOF
4159 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4160 do
4161 CC="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile "$LINENO"
4163 then :
4164 ac_cv_prog_cc_c99=$ac_arg
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.beam
4167 test "x$ac_cv_prog_cc_c99" != "xno" && break
4168 done
4169 rm -f conftest.$ac_ext
4170 CC=$ac_save_CC ;;
4171 esac
4172 fi
4173
4174 if test "x$ac_cv_prog_cc_c99" = xno
4175 then :
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 printf "%s\n" "unsupported" >&6; }
4178 else case e in #(
4179 e) if test "x$ac_cv_prog_cc_c99" = x
4180 then :
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182 printf "%s\n" "none needed" >&6; }
4183 else case e in #(
4184 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4185 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4186 CC="$CC $ac_cv_prog_cc_c99" ;;
4187 esac
4188 fi
4189 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4190 ac_prog_cc_stdc=c99 ;;
4191 esac
4192 fi
4193 fi
4194 if test x$ac_prog_cc_stdc = xno
4195 then :
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4197 printf %s "checking for $CC option to enable C89 features... " >&6; }
4198 if test ${ac_cv_prog_cc_c89+y}
4199 then :
4200 printf %s "(cached) " >&6
4201 else case e in #(
4202 e) ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 $ac_c_conftest_c89_program
4207 _ACEOF
4208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 do
4210 CC="$ac_save_CC $ac_arg"
4211 if ac_fn_c_try_compile "$LINENO"
4212 then :
4213 ac_cv_prog_cc_c89=$ac_arg
4214 fi
4215 rm -f core conftest.err conftest.$ac_objext conftest.beam
4216 test "x$ac_cv_prog_cc_c89" != "xno" && break
4217 done
4218 rm -f conftest.$ac_ext
4219 CC=$ac_save_CC ;;
4220 esac
4221 fi
4222
4223 if test "x$ac_cv_prog_cc_c89" = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 printf "%s\n" "unsupported" >&6; }
4227 else case e in #(
4228 e) if test "x$ac_cv_prog_cc_c89" = x
4229 then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 printf "%s\n" "none needed" >&6; }
4232 else case e in #(
4233 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4235 CC="$CC $ac_cv_prog_cc_c89" ;;
4236 esac
4237 fi
4238 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4239 ac_prog_cc_stdc=c89 ;;
4240 esac
4241 fi
4242 fi
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251 ac_header= ac_cache=
4252 for ac_item in $ac_header_c_list
4253 do
4254 if test $ac_cache; then
4255 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4256 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4257 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4258 fi
4259 ac_header= ac_cache=
4260 elif test $ac_header; then
4261 ac_cache=$ac_item
4262 else
4263 ac_header=$ac_item
4264 fi
4265 done
4266
4267
4268
4269
4270
4271
4272
4273
4274 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4275 then :
4276
4277 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4278
4279 fi
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4281 printf %s "checking whether byte ordering is bigendian... " >&6; }
4282 if test ${ac_cv_c_bigendian+y}
4283 then :
4284 printf %s "(cached) " >&6
4285 else case e in #(
4286 e) ac_cv_c_bigendian=unknown
4287 # See if we're dealing with a universal compiler.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #ifndef __APPLE_CC__
4291 not a universal capable compiler
4292 #endif
4293 typedef int dummy;
4294
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"
4297 then :
4298
4299 # Check for potential -arch flags. It is not universal unless
4300 # there are at least two -arch flags with different values.
4301 ac_arch=
4302 ac_prev=
4303 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4304 if test -n "$ac_prev"; then
4305 case $ac_word in
4306 i?86 | x86_64 | ppc | ppc64)
4307 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4308 ac_arch=$ac_word
4309 else
4310 ac_cv_c_bigendian=universal
4311 break
4312 fi
4313 ;;
4314 esac
4315 ac_prev=
4316 elif test "x$ac_word" = "x-arch"; then
4317 ac_prev=arch
4318 fi
4319 done
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4322 if test $ac_cv_c_bigendian = unknown; then
4323 # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <sys/types.h>
4327 #include <sys/param.h>
4328
4329 int
4330 main (void)
4331 {
4332 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
4333 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
4334 && LITTLE_ENDIAN)
4335 bogus endian macros
4336 #endif
4337
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"
4343 then :
4344 # It does; now see whether it defined to BIG_ENDIAN or not.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <sys/types.h>
4348 #include <sys/param.h>
4349
4350 int
4351 main (void)
4352 {
4353 #if BYTE_ORDER != BIG_ENDIAN
4354 not big endian
4355 #endif
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"
4362 then :
4363 ac_cv_c_bigendian=yes
4364 else case e in #(
4365 e) ac_cv_c_bigendian=no ;;
4366 esac
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4369 fi
4370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4371 fi
4372 if test $ac_cv_c_bigendian = unknown; then
4373 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4376 #include <limits.h>
4377
4378 int
4379 main (void)
4380 {
4381 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4382 bogus endian macros
4383 #endif
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"
4390 then :
4391 # It does; now see whether it defined to _BIG_ENDIAN or not.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <limits.h>
4395
4396 int
4397 main (void)
4398 {
4399 #ifndef _BIG_ENDIAN
4400 not big endian
4401 #endif
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"
4408 then :
4409 ac_cv_c_bigendian=yes
4410 else case e in #(
4411 e) ac_cv_c_bigendian=no ;;
4412 esac
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4415 fi
4416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4417 fi
4418 if test $ac_cv_c_bigendian = unknown; then
4419 # Compile a test program.
4420 if test "$cross_compiling" = yes
4421 then :
4422 # Try to guess by grepping values from an object file.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 unsigned short int ascii_mm[] =
4426 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4427 unsigned short int ascii_ii[] =
4428 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4429 int use_ascii (int i) {
4430 return ascii_mm[i] + ascii_ii[i];
4431 }
4432 unsigned short int ebcdic_ii[] =
4433 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4434 unsigned short int ebcdic_mm[] =
4435 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4436 int use_ebcdic (int i) {
4437 return ebcdic_mm[i] + ebcdic_ii[i];
4438 }
4439 int
4440 main (int argc, char **argv)
4441 {
4442 /* Intimidate the compiler so that it does not
4443 optimize the arrays away. */
4444 char *p = argv[0];
4445 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
4446 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
4447 return use_ascii (argc) == use_ebcdic (*p);
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_link "$LINENO"
4451 then :
4452 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
4453 ac_cv_c_bigendian=yes
4454 fi
4455 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
4456 if test "$ac_cv_c_bigendian" = unknown; then
4457 ac_cv_c_bigendian=no
4458 else
4459 # finding both strings is unlikely to happen, but who knows?
4460 ac_cv_c_bigendian=unknown
4461 fi
4462 fi
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4465 conftest$ac_exeext conftest.$ac_ext
4466 else case e in #(
4467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 $ac_includes_default
4470 int
4471 main (void)
4472 {
4473
4474 /* Are we little or big endian? From Harbison&Steele. */
4475 union
4476 {
4477 long int l;
4478 char c[sizeof (long int)];
4479 } u;
4480 u.l = 1;
4481 return u.c[sizeof (long int) - 1] == 1;
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_run "$LINENO"
4488 then :
4489 ac_cv_c_bigendian=no
4490 else case e in #(
4491 e) ac_cv_c_bigendian=yes ;;
4492 esac
4493 fi
4494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4495 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4496 esac
4497 fi
4498
4499 fi ;;
4500 esac
4501 fi
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4503 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4504 case $ac_cv_c_bigendian in #(
4505 yes)
4506 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
4507 ;; #(
4508 no)
4509 ;; #(
4510 universal)
4511
4512 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4513
4514 ;; #(
4515 *)
4516 as_fn_error $? "unknown endianness
4517 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4518 esac
4519
4520 ac_header_dirent=no
4521 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4522 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4524 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
4525 if eval test \${$as_ac_Header+y}
4526 then :
4527 printf %s "(cached) " >&6
4528 else case e in #(
4529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <sys/types.h>
4532 #include <$ac_hdr>
4533
4534 int
4535 main (void)
4536 {
4537 if ((DIR *) 0)
4538 return 0;
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"
4544 then :
4545 eval "$as_ac_Header=yes"
4546 else case e in #(
4547 e) eval "$as_ac_Header=no" ;;
4548 esac
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4551 esac
4552 fi
4553 eval ac_res=\$$as_ac_Header
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4555 printf "%s\n" "$ac_res" >&6; }
4556 if eval test \"x\$"$as_ac_Header"\" = x"yes"
4557 then :
4558 cat >>confdefs.h <<_ACEOF
4559 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
4560 _ACEOF
4561
4562 ac_header_dirent=$ac_hdr; break
4563 fi
4564
4565 done
4566 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4567 if test $ac_header_dirent = dirent.h; then
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4569 printf %s "checking for library containing opendir... " >&6; }
4570 if test ${ac_cv_search_opendir+y}
4571 then :
4572 printf %s "(cached) " >&6
4573 else case e in #(
4574 e) ac_func_search_save_LIBS=$LIBS
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577
4578 /* Override any GCC internal prototype to avoid an error.
4579 Use char because int might match the return type of a GCC
4580 builtin and then its argument prototype would still apply.
4581 The 'extern "C"' is for builds by C++ compilers;
4582 although this is not generally supported in C code supporting it here
4583 has little cost and some practical benefit (sr 110532). */
4584 #ifdef __cplusplus
4585 extern "C"
4586 #endif
4587 char opendir (void);
4588 int
4589 main (void)
4590 {
4591 return opendir ();
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 for ac_lib in '' dir
4597 do
4598 if test -z "$ac_lib"; then
4599 ac_res="none required"
4600 else
4601 ac_res=-l$ac_lib
4602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4603 fi
4604 if ac_fn_c_try_link "$LINENO"
4605 then :
4606 ac_cv_search_opendir=$ac_res
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4609 conftest$ac_exeext
4610 if test ${ac_cv_search_opendir+y}
4611 then :
4612 break
4613 fi
4614 done
4615 if test ${ac_cv_search_opendir+y}
4616 then :
4617
4618 else case e in #(
4619 e) ac_cv_search_opendir=no ;;
4620 esac
4621 fi
4622 rm conftest.$ac_ext
4623 LIBS=$ac_func_search_save_LIBS ;;
4624 esac
4625 fi
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4627 printf "%s\n" "$ac_cv_search_opendir" >&6; }
4628 ac_res=$ac_cv_search_opendir
4629 if test "$ac_res" != no
4630 then :
4631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4632
4633 fi
4634
4635 else
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4637 printf %s "checking for library containing opendir... " >&6; }
4638 if test ${ac_cv_search_opendir+y}
4639 then :
4640 printf %s "(cached) " >&6
4641 else case e in #(
4642 e) ac_func_search_save_LIBS=$LIBS
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645
4646 /* Override any GCC internal prototype to avoid an error.
4647 Use char because int might match the return type of a GCC
4648 builtin and then its argument prototype would still apply.
4649 The 'extern "C"' is for builds by C++ compilers;
4650 although this is not generally supported in C code supporting it here
4651 has little cost and some practical benefit (sr 110532). */
4652 #ifdef __cplusplus
4653 extern "C"
4654 #endif
4655 char opendir (void);
4656 int
4657 main (void)
4658 {
4659 return opendir ();
4660 ;
4661 return 0;
4662 }
4663 _ACEOF
4664 for ac_lib in '' x
4665 do
4666 if test -z "$ac_lib"; then
4667 ac_res="none required"
4668 else
4669 ac_res=-l$ac_lib
4670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4671 fi
4672 if ac_fn_c_try_link "$LINENO"
4673 then :
4674 ac_cv_search_opendir=$ac_res
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4677 conftest$ac_exeext
4678 if test ${ac_cv_search_opendir+y}
4679 then :
4680 break
4681 fi
4682 done
4683 if test ${ac_cv_search_opendir+y}
4684 then :
4685
4686 else case e in #(
4687 e) ac_cv_search_opendir=no ;;
4688 esac
4689 fi
4690 rm conftest.$ac_ext
4691 LIBS=$ac_func_search_save_LIBS ;;
4692 esac
4693 fi
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4695 printf "%s\n" "$ac_cv_search_opendir" >&6; }
4696 ac_res=$ac_cv_search_opendir
4697 if test "$ac_res" != no
4698 then :
4699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4700
4701 fi
4702
4703 fi
4704
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4706 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4707 if test ${ac_cv_header_sys_wait_h+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else case e in #(
4711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <sys/types.h>
4714 #include <sys/wait.h>
4715 #ifndef WEXITSTATUS
4716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4717 #endif
4718 #ifndef WIFEXITED
4719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4720 #endif
4721
4722 int
4723 main (void)
4724 {
4725 int s;
4726 wait (&s);
4727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"
4733 then :
4734 ac_cv_header_sys_wait_h=yes
4735 else case e in #(
4736 e) ac_cv_header_sys_wait_h=no ;;
4737 esac
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4740 esac
4741 fi
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4743 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
4744 if test $ac_cv_header_sys_wait_h = yes; then
4745
4746 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4747
4748 fi
4749
4750 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
4751 if test "x$ac_cv_header_poll_h" = xyes
4752 then :
4753 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
4754
4755 fi
4756 ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default"
4757 if test "x$ac_cv_header_sys_fcntl_h" = xyes
4758 then :
4759 printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h
4760
4761 fi
4762 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4763 if test "x$ac_cv_header_sys_select_h" = xyes
4764 then :
4765 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
4766
4767 fi
4768 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4769 if test "x$ac_cv_header_fcntl_h" = xyes
4770 then :
4771 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4772
4773 fi
4774 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4775 if test "x$ac_cv_header_sys_time_h" = xyes
4776 then :
4777 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
4778
4779 fi
4780 ac_fn_c_check_header_compile "$LINENO" "sys/unistd.h" "ac_cv_header_sys_unistd_h" "$ac_includes_default"
4781 if test "x$ac_cv_header_sys_unistd_h" = xyes
4782 then :
4783 printf "%s\n" "#define HAVE_SYS_UNISTD_H 1" >>confdefs.h
4784
4785 fi
4786 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4787 if test "x$ac_cv_header_unistd_h" = xyes
4788 then :
4789 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4790
4791 fi
4792 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
4793 if test "x$ac_cv_header_utime_h" = xyes
4794 then :
4795 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
4796
4797 fi
4798 ac_fn_c_check_header_compile "$LINENO" "compat.h" "ac_cv_header_compat_h" "$ac_includes_default"
4799 if test "x$ac_cv_header_compat_h" = xyes
4800 then :
4801 printf "%s\n" "#define HAVE_COMPAT_H 1" >>confdefs.h
4802
4803 fi
4804 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4805 if test "x$ac_cv_header_sys_param_h" = xyes
4806 then :
4807 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4808
4809 fi
4810 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4811 if test "x$ac_cv_header_ctype_h" = xyes
4812 then :
4813 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
4814
4815 fi
4816 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
4817 if test "x$ac_cv_header_sys_wait_h" = xyes
4818 then :
4819 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4820
4821 fi
4822 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4823 if test "x$ac_cv_header_sys_stat_h" = xyes
4824 then :
4825 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
4826
4827 fi
4828 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4829 if test "x$ac_cv_header_sys_ioctl_h" = xyes
4830 then :
4831 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4832
4833 fi
4834 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4835 if test "x$ac_cv_header_sys_filio_h" = xyes
4836 then :
4837 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
4838
4839 fi
4840 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4841 if test "x$ac_cv_header_string_h" = xyes
4842 then :
4843 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
4844
4845 fi
4846 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_stdlib_h" = xyes
4848 then :
4849 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4850
4851 fi
4852 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4853 if test "x$ac_cv_header_sys_socket_h" = xyes
4854 then :
4855 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
4856
4857 fi
4858 ac_fn_c_check_header_compile "$LINENO" "sys/mode.h" "ac_cv_header_sys_mode_h" "$ac_includes_default"
4859 if test "x$ac_cv_header_sys_mode_h" = xyes
4860 then :
4861 printf "%s\n" "#define HAVE_SYS_MODE_H 1" >>confdefs.h
4862
4863 fi
4864 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
4865 if test "x$ac_cv_header_grp_h" = xyes
4866 then :
4867 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
4868
4869 fi
4870 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
4871 if test "x$ac_cv_header_sys_un_h" = xyes
4872 then :
4873 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
4874
4875 fi
4876 ac_fn_c_check_header_compile "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
4877 if test "x$ac_cv_header_sys_attr_h" = xyes
4878 then :
4879 printf "%s\n" "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
4880
4881 fi
4882 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4883 if test "x$ac_cv_header_arpa_inet_h" = xyes
4884 then :
4885 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
4886
4887 fi
4888 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
4889 if test "x$ac_cv_header_arpa_nameser_h" = xyes
4890 then :
4891 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
4892
4893 fi
4894 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4895 if test "x$ac_cv_header_locale_h" = xyes
4896 then :
4897 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
4898
4899 fi
4900 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4901 if test "x$ac_cv_header_sys_types_h" = xyes
4902 then :
4903 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4904
4905 fi
4906 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4907 if test "x$ac_cv_header_netdb_h" = xyes
4908 then :
4909 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
4910
4911 fi
4912 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4913 if test "x$ac_cv_header_malloc_h" = xyes
4914 then :
4915 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
4916
4917 fi
4918 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
4919 if test "x$ac_cv_header_float_h" = xyes
4920 then :
4921 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
4922
4923 fi
4924 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4925 if test "x$ac_cv_header_limits_h" = xyes
4926 then :
4927 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4928
4929 fi
4930 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4931 if test "x$ac_cv_header_iconv_h" = xyes
4932 then :
4933 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
4934
4935 fi
4936 ac_fn_c_check_header_compile "$LINENO" "libcharset.h" "ac_cv_header_libcharset_h" "$ac_includes_default"
4937 if test "x$ac_cv_header_libcharset_h" = xyes
4938 then :
4939 printf "%s\n" "#define HAVE_LIBCHARSET_H 1" >>confdefs.h
4940
4941 fi
4942 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4943 if test "x$ac_cv_header_langinfo_h" = xyes
4944 then :
4945 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
4946
4947 fi
4948 ac_fn_c_check_header_compile "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default"
4949 if test "x$ac_cv_header_mcheck_h" = xyes
4950 then :
4951 printf "%s\n" "#define HAVE_MCHECK_H 1" >>confdefs.h
4952
4953 fi
4954 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
4955 if test "x$ac_cv_header_sys_acl_h" = xyes
4956 then :
4957 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
4958
4959 fi
4960 ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
4961 if test "x$ac_cv_header_acl_libacl_h" = xyes
4962 then :
4963 printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h
4964
4965 fi
4966 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
4967 if test "x$ac_cv_header_attr_xattr_h" = xyes
4968 then :
4969 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
4970
4971 fi
4972 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
4973 if test "x$ac_cv_header_sys_xattr_h" = xyes
4974 then :
4975 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
4976
4977 fi
4978 ac_fn_c_check_header_compile "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
4979 if test "x$ac_cv_header_sys_extattr_h" = xyes
4980 then :
4981 printf "%s\n" "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
4982
4983 fi
4984 ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
4985 if test "x$ac_cv_header_dl_h" = xyes
4986 then :
4987 printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
4988
4989 fi
4990 ac_fn_c_check_header_compile "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
4991 if test "x$ac_cv_header_popt_h" = xyes
4992 then :
4993 printf "%s\n" "#define HAVE_POPT_H 1" >>confdefs.h
4994
4995 fi
4996 ac_fn_c_check_header_compile "$LINENO" "popt/popt.h" "ac_cv_header_popt_popt_h" "$ac_includes_default"
4997 if test "x$ac_cv_header_popt_popt_h" = xyes
4998 then :
4999 printf "%s\n" "#define HAVE_POPT_POPT_H 1" >>confdefs.h
5000
5001 fi
5002 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
5003 if test "x$ac_cv_header_linux_falloc_h" = xyes
5004 then :
5005 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
5006
5007 fi
5008 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
5009 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
5010 then :
5011 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
5012
5013 fi
5014 ac_fn_c_check_header_compile "$LINENO" "netgroup.h" "ac_cv_header_netgroup_h" "$ac_includes_default"
5015 if test "x$ac_cv_header_netgroup_h" = xyes
5016 then :
5017 printf "%s\n" "#define HAVE_NETGROUP_H 1" >>confdefs.h
5018
5019 fi
5020 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5021 if test "x$ac_cv_header_zlib_h" = xyes
5022 then :
5023 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
5024
5025 fi
5026 ac_fn_c_check_header_compile "$LINENO" "xxhash.h" "ac_cv_header_xxhash_h" "$ac_includes_default"
5027 if test "x$ac_cv_header_xxhash_h" = xyes
5028 then :
5029 printf "%s\n" "#define HAVE_XXHASH_H 1" >>confdefs.h
5030
5031 fi
5032 ac_fn_c_check_header_compile "$LINENO" "openssl/md4.h" "ac_cv_header_openssl_md4_h" "$ac_includes_default"
5033 if test "x$ac_cv_header_openssl_md4_h" = xyes
5034 then :
5035 printf "%s\n" "#define HAVE_OPENSSL_MD4_H 1" >>confdefs.h
5036
5037 fi
5038 ac_fn_c_check_header_compile "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default"
5039 if test "x$ac_cv_header_openssl_md5_h" = xyes
5040 then :
5041 printf "%s\n" "#define HAVE_OPENSSL_MD5_H 1" >>confdefs.h
5042
5043 fi
5044 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
5045 if test "x$ac_cv_header_zstd_h" = xyes
5046 then :
5047 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
5048
5049 fi
5050 ac_fn_c_check_header_compile "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
5051 if test "x$ac_cv_header_lz4_h" = xyes
5052 then :
5053 printf "%s\n" "#define HAVE_LZ4_H 1" >>confdefs.h
5054
5055 fi
5056 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
5057 if test "x$ac_cv_header_sys_file_h" = xyes
5058 then :
5059 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
5060
5061 fi
5062 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
5063 if test "x$ac_cv_header_sys_resource_h" = xyes
5064 then :
5065 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
5066
5067 fi
5068 ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default"
5069 if test "x$ac_cv_header_bsd_string_h" = xyes
5070 then :
5071 printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h
5072
5073 fi
5074
5075 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#include <netinet/in.h>
5076 "
5077 if test "x$ac_cv_header_netinet_ip_h" = xyes
5078 then :
5079 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
5080
5081 fi
5082
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
5084 printf %s "checking whether sys/types.h defines makedev... " >&6; }
5085 if test ${ac_cv_header_sys_types_h_makedev+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else case e in #(
5089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 #include <sys/types.h>
5092 int
5093 main (void)
5094 {
5095 return makedev(0, 0);
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 if ac_fn_c_try_link "$LINENO"
5101 then :
5102 if grep sys/sysmacros.h conftest.err >/dev/null; then
5103 ac_cv_header_sys_types_h_makedev=no
5104 else
5105 ac_cv_header_sys_types_h_makedev=yes
5106 fi
5107 else case e in #(
5108 e) ac_cv_header_sys_types_h_makedev=no ;;
5109 esac
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5112 conftest$ac_exeext conftest.$ac_ext
5113 ;;
5114 esac
5115 fi
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
5117 printf "%s\n" "$ac_cv_header_sys_types_h_makedev" >&6; }
5118
5119 if test $ac_cv_header_sys_types_h_makedev = no; then
5120 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
5121 if test "x$ac_cv_header_sys_mkdev_h" = xyes
5122 then :
5123
5124 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
5125
5126 fi
5127
5128
5129 if test $ac_cv_header_sys_mkdev_h = no; then
5130 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
5131 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
5132 then :
5133
5134 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
5135
5136 fi
5137
5138 fi
5139 fi
5140
5141
5142
5143
5144 ac_config_headers="$ac_config_headers config.h"
5145
5146
5147
5148 PACKAGE_VERSION=`sed -n 's/.*RSYNC_VERSION.*"\(.*\)".*/\1/p' <$srcdir/version.h`
5149
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configuring rsync $PACKAGE_VERSION" >&5
5151 printf "%s\n" "$as_me: Configuring rsync $PACKAGE_VERSION" >&6;}
5152
5153 LDFLAGS=${LDFLAGS-""}
5154
5155
5156
5157
5158 # Make sure we can run config.sub.
5159 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5160 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5161
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5163 printf %s "checking build system type... " >&6; }
5164 if test ${ac_cv_build+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else case e in #(
5168 e) ac_build_alias=$build_alias
5169 test "x$ac_build_alias" = x &&
5170 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5171 test "x$ac_build_alias" = x &&
5172 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5173 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5174 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5175 ;;
5176 esac
5177 fi
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5179 printf "%s\n" "$ac_cv_build" >&6; }
5180 case $ac_cv_build in
5181 *-*-*) ;;
5182 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5183 esac
5184 build=$ac_cv_build
5185 ac_save_IFS=$IFS; IFS='-'
5186 set x $ac_cv_build
5187 shift
5188 build_cpu=$1
5189 build_vendor=$2
5190 shift; shift
5191 # Remember, the first character of IFS is used to create $*,
5192 # except with old shells:
5193 build_os=$*
5194 IFS=$ac_save_IFS
5195 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5196
5197
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5199 printf %s "checking host system type... " >&6; }
5200 if test ${ac_cv_host+y}
5201 then :
5202 printf %s "(cached) " >&6
5203 else case e in #(
5204 e) if test "x$host_alias" = x; then
5205 ac_cv_host=$ac_cv_build
5206 else
5207 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5208 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5209 fi
5210 ;;
5211 esac
5212 fi
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5214 printf "%s\n" "$ac_cv_host" >&6; }
5215 case $ac_cv_host in
5216 *-*-*) ;;
5217 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5218 esac
5219 host=$ac_cv_host
5220 ac_save_IFS=$IFS; IFS='-'
5221 set x $ac_cv_host
5222 shift
5223 host_cpu=$1
5224 host_vendor=$2
5225 shift; shift
5226 # Remember, the first character of IFS is used to create $*,
5227 # except with old shells:
5228 host_os=$*
5229 IFS=$ac_save_IFS
5230 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5231
5232
5233
5234
5235
5236 # We must decide this before testing the compiler.
5237
5238 # Please allow this to default to yes, so that your users have more
5239 # chance of getting a useful stack trace if problems occur.
5240
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
5242 printf %s "checking whether to include debugging symbols... " >&6; }
5243 # Check whether --enable-debug was given.
5244 if test ${enable_debug+y}
5245 then :
5246 enableval=$enable_debug;
5247 fi
5248
5249
5250 if test x"$enable_debug" = x"no"; then
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 printf "%s\n" "no" >&6; }
5253 ac_cv_prog_cc_g=no
5254 else
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 printf "%s\n" "yes" >&6; }
5257 # leave ac_cv_prog_cc_g alone; AC_PROG_CC will try to include -g if it can
5258 fi
5259
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5265 if test -n "$ac_tool_prefix"; then
5266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 printf %s "checking for $ac_word... " >&6; }
5270 if test ${ac_cv_prog_CC+y}
5271 then :
5272 printf %s "(cached) " >&6
5273 else case e in #(
5274 e) if test -n "$CC"; then
5275 ac_cv_prog_CC="$CC" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280 IFS=$as_save_IFS
5281 case $as_dir in #(((
5282 '') as_dir=./ ;;
5283 */) ;;
5284 *) as_dir=$as_dir/ ;;
5285 esac
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5290 break 2
5291 fi
5292 done
5293 done
5294 IFS=$as_save_IFS
5295
5296 fi ;;
5297 esac
5298 fi
5299 CC=$ac_cv_prog_CC
5300 if test -n "$CC"; then
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5302 printf "%s\n" "$CC" >&6; }
5303 else
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 printf "%s\n" "no" >&6; }
5306 fi
5307
5308
5309 fi
5310 if test -z "$ac_cv_prog_CC"; then
5311 ac_ct_CC=$CC
5312 # Extract the first word of "gcc", so it can be a program name with args.
5313 set dummy gcc; ac_word=$2
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 printf %s "checking for $ac_word... " >&6; }
5316 if test ${ac_cv_prog_ac_ct_CC+y}
5317 then :
5318 printf %s "(cached) " >&6
5319 else case e in #(
5320 e) if test -n "$ac_ct_CC"; then
5321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 case $as_dir in #(((
5328 '') as_dir=./ ;;
5329 */) ;;
5330 *) as_dir=$as_dir/ ;;
5331 esac
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_ac_ct_CC="gcc"
5335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi ;;
5343 esac
5344 fi
5345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5346 if test -n "$ac_ct_CC"; then
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5348 printf "%s\n" "$ac_ct_CC" >&6; }
5349 else
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 printf "%s\n" "no" >&6; }
5352 fi
5353
5354 if test "x$ac_ct_CC" = x; then
5355 CC=""
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 CC=$ac_ct_CC
5364 fi
5365 else
5366 CC="$ac_cv_prog_CC"
5367 fi
5368
5369 if test -z "$CC"; then
5370 if test -n "$ac_tool_prefix"; then
5371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5372 set dummy ${ac_tool_prefix}cc; ac_word=$2
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 printf %s "checking for $ac_word... " >&6; }
5375 if test ${ac_cv_prog_CC+y}
5376 then :
5377 printf %s "(cached) " >&6
5378 else case e in #(
5379 e) if test -n "$CC"; then
5380 ac_cv_prog_CC="$CC" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 case $as_dir in #(((
5387 '') as_dir=./ ;;
5388 */) ;;
5389 *) as_dir=$as_dir/ ;;
5390 esac
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_CC="${ac_tool_prefix}cc"
5394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi ;;
5402 esac
5403 fi
5404 CC=$ac_cv_prog_CC
5405 if test -n "$CC"; then
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5407 printf "%s\n" "$CC" >&6; }
5408 else
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 printf "%s\n" "no" >&6; }
5411 fi
5412
5413
5414 fi
5415 fi
5416 if test -z "$CC"; then
5417 # Extract the first word of "cc", so it can be a program name with args.
5418 set dummy cc; ac_word=$2
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 printf %s "checking for $ac_word... " >&6; }
5421 if test ${ac_cv_prog_CC+y}
5422 then :
5423 printf %s "(cached) " >&6
5424 else case e in #(
5425 e) if test -n "$CC"; then
5426 ac_cv_prog_CC="$CC" # Let the user override the test.
5427 else
5428 ac_prog_rejected=no
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 case $as_dir in #(((
5434 '') as_dir=./ ;;
5435 */) ;;
5436 *) as_dir=$as_dir/ ;;
5437 esac
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5440 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5441 ac_prog_rejected=yes
5442 continue
5443 fi
5444 ac_cv_prog_CC="cc"
5445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448 done
5449 done
5450 IFS=$as_save_IFS
5451
5452 if test $ac_prog_rejected = yes; then
5453 # We found a bogon in the path, so make sure we never use it.
5454 set dummy $ac_cv_prog_CC
5455 shift
5456 if test $# != 0; then
5457 # We chose a different compiler from the bogus one.
5458 # However, it has the same basename, so the bogon will be chosen
5459 # first if we set CC to just the basename; use the full file name.
5460 shift
5461 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5462 fi
5463 fi
5464 fi ;;
5465 esac
5466 fi
5467 CC=$ac_cv_prog_CC
5468 if test -n "$CC"; then
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5470 printf "%s\n" "$CC" >&6; }
5471 else
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 printf "%s\n" "no" >&6; }
5474 fi
5475
5476
5477 fi
5478 if test -z "$CC"; then
5479 if test -n "$ac_tool_prefix"; then
5480 for ac_prog in cl.exe
5481 do
5482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 printf %s "checking for $ac_word... " >&6; }
5486 if test ${ac_cv_prog_CC+y}
5487 then :
5488 printf %s "(cached) " >&6
5489 else case e in #(
5490 e) if test -n "$CC"; then
5491 ac_cv_prog_CC="$CC" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 case $as_dir in #(((
5498 '') as_dir=./ ;;
5499 */) ;;
5500 *) as_dir=$as_dir/ ;;
5501 esac
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi ;;
5513 esac
5514 fi
5515 CC=$ac_cv_prog_CC
5516 if test -n "$CC"; then
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5518 printf "%s\n" "$CC" >&6; }
5519 else
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 printf "%s\n" "no" >&6; }
5522 fi
5523
5524
5525 test -n "$CC" && break
5526 done
5527 fi
5528 if test -z "$CC"; then
5529 ac_ct_CC=$CC
5530 for ac_prog in cl.exe
5531 do
5532 # Extract the first word of "$ac_prog", so it can be a program name with args.
5533 set dummy $ac_prog; ac_word=$2
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 printf %s "checking for $ac_word... " >&6; }
5536 if test ${ac_cv_prog_ac_ct_CC+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else case e in #(
5540 e) if test -n "$ac_ct_CC"; then
5541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 case $as_dir in #(((
5548 '') as_dir=./ ;;
5549 */) ;;
5550 *) as_dir=$as_dir/ ;;
5551 esac
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_CC="$ac_prog"
5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi ;;
5563 esac
5564 fi
5565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5566 if test -n "$ac_ct_CC"; then
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5568 printf "%s\n" "$ac_ct_CC" >&6; }
5569 else
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 printf "%s\n" "no" >&6; }
5572 fi
5573
5574
5575 test -n "$ac_ct_CC" && break
5576 done
5577
5578 if test "x$ac_ct_CC" = x; then
5579 CC=""
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587 CC=$ac_ct_CC
5588 fi
5589 fi
5590
5591 fi
5592 if test -z "$CC"; then
5593 if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5595 set dummy ${ac_tool_prefix}clang; ac_word=$2
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 printf %s "checking for $ac_word... " >&6; }
5598 if test ${ac_cv_prog_CC+y}
5599 then :
5600 printf %s "(cached) " >&6
5601 else case e in #(
5602 e) if test -n "$CC"; then
5603 ac_cv_prog_CC="$CC" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608 IFS=$as_save_IFS
5609 case $as_dir in #(((
5610 '') as_dir=./ ;;
5611 */) ;;
5612 *) as_dir=$as_dir/ ;;
5613 esac
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_CC="${ac_tool_prefix}clang"
5617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi ;;
5625 esac
5626 fi
5627 CC=$ac_cv_prog_CC
5628 if test -n "$CC"; then
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5630 printf "%s\n" "$CC" >&6; }
5631 else
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 printf "%s\n" "no" >&6; }
5634 fi
5635
5636
5637 fi
5638 if test -z "$ac_cv_prog_CC"; then
5639 ac_ct_CC=$CC
5640 # Extract the first word of "clang", so it can be a program name with args.
5641 set dummy clang; ac_word=$2
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 printf %s "checking for $ac_word... " >&6; }
5644 if test ${ac_cv_prog_ac_ct_CC+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else case e in #(
5648 e) if test -n "$ac_ct_CC"; then
5649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654 IFS=$as_save_IFS
5655 case $as_dir in #(((
5656 '') as_dir=./ ;;
5657 */) ;;
5658 *) as_dir=$as_dir/ ;;
5659 esac
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_ac_ct_CC="clang"
5663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi ;;
5671 esac
5672 fi
5673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5674 if test -n "$ac_ct_CC"; then
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5676 printf "%s\n" "$ac_ct_CC" >&6; }
5677 else
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 printf "%s\n" "no" >&6; }
5680 fi
5681
5682 if test "x$ac_ct_CC" = x; then
5683 CC=""
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686 yes:)
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5689 ac_tool_warned=yes ;;
5690 esac
5691 CC=$ac_ct_CC
5692 fi
5693 else
5694 CC="$ac_cv_prog_CC"
5695 fi
5696
5697 fi
5698
5699
5700 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5701 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5702 as_fn_error $? "no acceptable C compiler found in \$PATH
5703 See 'config.log' for more details" "$LINENO" 5; }
5704
5705 # Provide some information about the compiler.
5706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5707 set X $ac_compile
5708 ac_compiler=$2
5709 for ac_option in --version -v -V -qversion -version; do
5710 { { ac_try="$ac_compiler $ac_option >&5"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 printf "%s\n" "$ac_try_echo"; } >&5
5717 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5718 ac_status=$?
5719 if test -s conftest.err; then
5720 sed '10a\
5721 ... rest of stderr output deleted ...
5722 10q' conftest.err >conftest.er1
5723 cat conftest.er1 >&5
5724 fi
5725 rm -f conftest.er1 conftest.err
5726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727 test $ac_status = 0; }
5728 done
5729
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5731 printf %s "checking whether the compiler supports GNU C... " >&6; }
5732 if test ${ac_cv_c_compiler_gnu+y}
5733 then :
5734 printf %s "(cached) " >&6
5735 else case e in #(
5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738
5739 int
5740 main (void)
5741 {
5742 #ifndef __GNUC__
5743 choke me
5744 #endif
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"
5751 then :
5752 ac_compiler_gnu=yes
5753 else case e in #(
5754 e) ac_compiler_gnu=no ;;
5755 esac
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5759 ;;
5760 esac
5761 fi
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5763 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765
5766 if test $ac_compiler_gnu = yes; then
5767 GCC=yes
5768 else
5769 GCC=
5770 fi
5771 ac_test_CFLAGS=${CFLAGS+y}
5772 ac_save_CFLAGS=$CFLAGS
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5774 printf %s "checking whether $CC accepts -g... " >&6; }
5775 if test ${ac_cv_prog_cc_g+y}
5776 then :
5777 printf %s "(cached) " >&6
5778 else case e in #(
5779 e) ac_save_c_werror_flag=$ac_c_werror_flag
5780 ac_c_werror_flag=yes
5781 ac_cv_prog_cc_g=no
5782 CFLAGS="-g"
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785
5786 int
5787 main (void)
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"
5795 then :
5796 ac_cv_prog_cc_g=yes
5797 else case e in #(
5798 e) CFLAGS=""
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801
5802 int
5803 main (void)
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_compile "$LINENO"
5811 then :
5812
5813 else case e in #(
5814 e) ac_c_werror_flag=$ac_save_c_werror_flag
5815 CFLAGS="-g"
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818
5819 int
5820 main (void)
5821 {
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 if ac_fn_c_try_compile "$LINENO"
5828 then :
5829 ac_cv_prog_cc_g=yes
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5832 esac
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5835 esac
5836 fi
5837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5838 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5839 esac
5840 fi
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5842 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5843 if test $ac_test_CFLAGS; then
5844 CFLAGS=$ac_save_CFLAGS
5845 elif test $ac_cv_prog_cc_g = yes; then
5846 if test "$GCC" = yes; then
5847 CFLAGS="-g -O2"
5848 else
5849 CFLAGS="-g"
5850 fi
5851 else
5852 if test "$GCC" = yes; then
5853 CFLAGS="-O2"
5854 else
5855 CFLAGS=
5856 fi
5857 fi
5858 ac_prog_cc_stdc=no
5859 if test x$ac_prog_cc_stdc = xno
5860 then :
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5862 printf %s "checking for $CC option to enable C11 features... " >&6; }
5863 if test ${ac_cv_prog_cc_c11+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else case e in #(
5867 e) ac_cv_prog_cc_c11=no
5868 ac_save_CC=$CC
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 $ac_c_conftest_c11_program
5872 _ACEOF
5873 for ac_arg in '' -std=gnu11
5874 do
5875 CC="$ac_save_CC $ac_arg"
5876 if ac_fn_c_try_compile "$LINENO"
5877 then :
5878 ac_cv_prog_cc_c11=$ac_arg
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.beam
5881 test "x$ac_cv_prog_cc_c11" != "xno" && break
5882 done
5883 rm -f conftest.$ac_ext
5884 CC=$ac_save_CC ;;
5885 esac
5886 fi
5887
5888 if test "x$ac_cv_prog_cc_c11" = xno
5889 then :
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5891 printf "%s\n" "unsupported" >&6; }
5892 else case e in #(
5893 e) if test "x$ac_cv_prog_cc_c11" = x
5894 then :
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5896 printf "%s\n" "none needed" >&6; }
5897 else case e in #(
5898 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5899 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5900 CC="$CC $ac_cv_prog_cc_c11" ;;
5901 esac
5902 fi
5903 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5904 ac_prog_cc_stdc=c11 ;;
5905 esac
5906 fi
5907 fi
5908 if test x$ac_prog_cc_stdc = xno
5909 then :
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5911 printf %s "checking for $CC option to enable C99 features... " >&6; }
5912 if test ${ac_cv_prog_cc_c99+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else case e in #(
5916 e) ac_cv_prog_cc_c99=no
5917 ac_save_CC=$CC
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 $ac_c_conftest_c99_program
5921 _ACEOF
5922 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5923 do
5924 CC="$ac_save_CC $ac_arg"
5925 if ac_fn_c_try_compile "$LINENO"
5926 then :
5927 ac_cv_prog_cc_c99=$ac_arg
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.beam
5930 test "x$ac_cv_prog_cc_c99" != "xno" && break
5931 done
5932 rm -f conftest.$ac_ext
5933 CC=$ac_save_CC ;;
5934 esac
5935 fi
5936
5937 if test "x$ac_cv_prog_cc_c99" = xno
5938 then :
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5940 printf "%s\n" "unsupported" >&6; }
5941 else case e in #(
5942 e) if test "x$ac_cv_prog_cc_c99" = x
5943 then :
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5945 printf "%s\n" "none needed" >&6; }
5946 else case e in #(
5947 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5948 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5949 CC="$CC $ac_cv_prog_cc_c99" ;;
5950 esac
5951 fi
5952 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5953 ac_prog_cc_stdc=c99 ;;
5954 esac
5955 fi
5956 fi
5957 if test x$ac_prog_cc_stdc = xno
5958 then :
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5960 printf %s "checking for $CC option to enable C89 features... " >&6; }
5961 if test ${ac_cv_prog_cc_c89+y}
5962 then :
5963 printf %s "(cached) " >&6
5964 else case e in #(
5965 e) ac_cv_prog_cc_c89=no
5966 ac_save_CC=$CC
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 $ac_c_conftest_c89_program
5970 _ACEOF
5971 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5972 do
5973 CC="$ac_save_CC $ac_arg"
5974 if ac_fn_c_try_compile "$LINENO"
5975 then :
5976 ac_cv_prog_cc_c89=$ac_arg
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.beam
5979 test "x$ac_cv_prog_cc_c89" != "xno" && break
5980 done
5981 rm -f conftest.$ac_ext
5982 CC=$ac_save_CC ;;
5983 esac
5984 fi
5985
5986 if test "x$ac_cv_prog_cc_c89" = xno
5987 then :
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5989 printf "%s\n" "unsupported" >&6; }
5990 else case e in #(
5991 e) if test "x$ac_cv_prog_cc_c89" = x
5992 then :
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5994 printf "%s\n" "none needed" >&6; }
5995 else case e in #(
5996 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5998 CC="$CC $ac_cv_prog_cc_c89" ;;
5999 esac
6000 fi
6001 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6002 ac_prog_cc_stdc=c89 ;;
6003 esac
6004 fi
6005 fi
6006
6007 ac_ext=c
6008 ac_cpp='$CPP $CPPFLAGS'
6009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012
6013 ac_ext=c
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6019 printf %s "checking how to run the C preprocessor... " >&6; }
6020 # On Suns, sometimes $CPP names a directory.
6021 if test -n "$CPP" && test -d "$CPP"; then
6022 CPP=
6023 fi
6024 if test -z "$CPP"; then
6025 if test ${ac_cv_prog_CPP+y}
6026 then :
6027 printf %s "(cached) " >&6
6028 else case e in #(
6029 e) # Double quotes because $CC needs to be expanded
6030 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6031 do
6032 ac_preproc_ok=false
6033 for ac_c_preproc_warn_flag in '' yes
6034 do
6035 # Use a header file that comes with gcc, so configuring glibc
6036 # with a fresh cross-compiler works.
6037 # On the NeXT, cc -E runs the code through the compiler's parser,
6038 # not just through cpp. "Syntax error" is here to catch this case.
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 #include <limits.h>
6042 Syntax error
6043 _ACEOF
6044 if ac_fn_c_try_cpp "$LINENO"
6045 then :
6046
6047 else case e in #(
6048 e) # Broken: fails on valid input.
6049 continue ;;
6050 esac
6051 fi
6052 rm -f conftest.err conftest.i conftest.$ac_ext
6053
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6059 _ACEOF
6060 if ac_fn_c_try_cpp "$LINENO"
6061 then :
6062 # Broken: success on invalid input.
6063 continue
6064 else case e in #(
6065 e) # Passes both tests.
6066 ac_preproc_ok=:
6067 break ;;
6068 esac
6069 fi
6070 rm -f conftest.err conftest.i conftest.$ac_ext
6071
6072 done
6073 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074 rm -f conftest.i conftest.err conftest.$ac_ext
6075 if $ac_preproc_ok
6076 then :
6077 break
6078 fi
6079
6080 done
6081 ac_cv_prog_CPP=$CPP
6082 ;;
6083 esac
6084 fi
6085 CPP=$ac_cv_prog_CPP
6086 else
6087 ac_cv_prog_CPP=$CPP
6088 fi
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6090 printf "%s\n" "$CPP" >&6; }
6091 ac_preproc_ok=false
6092 for ac_c_preproc_warn_flag in '' yes
6093 do
6094 # Use a header file that comes with gcc, so configuring glibc
6095 # with a fresh cross-compiler works.
6096 # On the NeXT, cc -E runs the code through the compiler's parser,
6097 # not just through cpp. "Syntax error" is here to catch this case.
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #include <limits.h>
6101 Syntax error
6102 _ACEOF
6103 if ac_fn_c_try_cpp "$LINENO"
6104 then :
6105
6106 else case e in #(
6107 e) # Broken: fails on valid input.
6108 continue ;;
6109 esac
6110 fi
6111 rm -f conftest.err conftest.i conftest.$ac_ext
6112
6113 # OK, works on sane cases. Now check whether nonexistent headers
6114 # can be detected and how.
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 #include <ac_nonexistent.h>
6118 _ACEOF
6119 if ac_fn_c_try_cpp "$LINENO"
6120 then :
6121 # Broken: success on invalid input.
6122 continue
6123 else case e in #(
6124 e) # Passes both tests.
6125 ac_preproc_ok=:
6126 break ;;
6127 esac
6128 fi
6129 rm -f conftest.err conftest.i conftest.$ac_ext
6130
6131 done
6132 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6133 rm -f conftest.i conftest.err conftest.$ac_ext
6134 if $ac_preproc_ok
6135 then :
6136
6137 else case e in #(
6138 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6139 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6140 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6141 See 'config.log' for more details" "$LINENO" 5; } ;;
6142 esac
6143 fi
6144
6145 ac_ext=c
6146 ac_cpp='$CPP $CPPFLAGS'
6147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6150
6151
6152
6153
6154
6155
6156
6157 ac_ext=cpp
6158 ac_cpp='$CXXCPP $CPPFLAGS'
6159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6162 if test -z "$CXX"; then
6163 if test -n "$CCC"; then
6164 CXX=$CCC
6165 else
6166 if test -n "$ac_tool_prefix"; then
6167 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6168 do
6169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 printf %s "checking for $ac_word... " >&6; }
6173 if test ${ac_cv_prog_CXX+y}
6174 then :
6175 printf %s "(cached) " >&6
6176 else case e in #(
6177 e) if test -n "$CXX"; then
6178 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 case $as_dir in #(((
6185 '') as_dir=./ ;;
6186 */) ;;
6187 *) as_dir=$as_dir/ ;;
6188 esac
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi ;;
6200 esac
6201 fi
6202 CXX=$ac_cv_prog_CXX
6203 if test -n "$CXX"; then
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6205 printf "%s\n" "$CXX" >&6; }
6206 else
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 printf "%s\n" "no" >&6; }
6209 fi
6210
6211
6212 test -n "$CXX" && break
6213 done
6214 fi
6215 if test -z "$CXX"; then
6216 ac_ct_CXX=$CXX
6217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6218 do
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 printf %s "checking for $ac_word... " >&6; }
6223 if test ${ac_cv_prog_ac_ct_CXX+y}
6224 then :
6225 printf %s "(cached) " >&6
6226 else case e in #(
6227 e) if test -n "$ac_ct_CXX"; then
6228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233 IFS=$as_save_IFS
6234 case $as_dir in #(((
6235 '') as_dir=./ ;;
6236 */) ;;
6237 *) as_dir=$as_dir/ ;;
6238 esac
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_ac_ct_CXX="$ac_prog"
6242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245 done
6246 done
6247 IFS=$as_save_IFS
6248
6249 fi ;;
6250 esac
6251 fi
6252 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6253 if test -n "$ac_ct_CXX"; then
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6255 printf "%s\n" "$ac_ct_CXX" >&6; }
6256 else
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 printf "%s\n" "no" >&6; }
6259 fi
6260
6261
6262 test -n "$ac_ct_CXX" && break
6263 done
6264
6265 if test "x$ac_ct_CXX" = x; then
6266 CXX="g++"
6267 else
6268 case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274 CXX=$ac_ct_CXX
6275 fi
6276 fi
6277
6278 fi
6279 fi
6280 # Provide some information about the compiler.
6281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6282 set X $ac_compile
6283 ac_compiler=$2
6284 for ac_option in --version -v -V -qversion; do
6285 { { ac_try="$ac_compiler $ac_option >&5"
6286 case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289 esac
6290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6291 printf "%s\n" "$ac_try_echo"; } >&5
6292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6293 ac_status=$?
6294 if test -s conftest.err; then
6295 sed '10a\
6296 ... rest of stderr output deleted ...
6297 10q' conftest.err >conftest.er1
6298 cat conftest.er1 >&5
6299 fi
6300 rm -f conftest.er1 conftest.err
6301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302 test $ac_status = 0; }
6303 done
6304
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6306 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6307 if test ${ac_cv_cxx_compiler_gnu+y}
6308 then :
6309 printf %s "(cached) " >&6
6310 else case e in #(
6311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313
6314 int
6315 main (void)
6316 {
6317 #ifndef __GNUC__
6318 choke me
6319 #endif
6320
6321 ;
6322 return 0;
6323 }
6324 _ACEOF
6325 if ac_fn_cxx_try_compile "$LINENO"
6326 then :
6327 ac_compiler_gnu=yes
6328 else case e in #(
6329 e) ac_compiler_gnu=no ;;
6330 esac
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6333 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6334 ;;
6335 esac
6336 fi
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6338 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6340
6341 if test $ac_compiler_gnu = yes; then
6342 GXX=yes
6343 else
6344 GXX=
6345 fi
6346 ac_test_CXXFLAGS=${CXXFLAGS+y}
6347 ac_save_CXXFLAGS=$CXXFLAGS
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6349 printf %s "checking whether $CXX accepts -g... " >&6; }
6350 if test ${ac_cv_prog_cxx_g+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else case e in #(
6354 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6355 ac_cxx_werror_flag=yes
6356 ac_cv_prog_cxx_g=no
6357 CXXFLAGS="-g"
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360
6361 int
6362 main (void)
6363 {
6364
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_cxx_try_compile "$LINENO"
6370 then :
6371 ac_cv_prog_cxx_g=yes
6372 else case e in #(
6373 e) CXXFLAGS=""
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376
6377 int
6378 main (void)
6379 {
6380
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 if ac_fn_cxx_try_compile "$LINENO"
6386 then :
6387
6388 else case e in #(
6389 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6390 CXXFLAGS="-g"
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6393
6394 int
6395 main (void)
6396 {
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 if ac_fn_cxx_try_compile "$LINENO"
6403 then :
6404 ac_cv_prog_cxx_g=yes
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6407 esac
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6410 esac
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6414 esac
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6417 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6418 if test $ac_test_CXXFLAGS; then
6419 CXXFLAGS=$ac_save_CXXFLAGS
6420 elif test $ac_cv_prog_cxx_g = yes; then
6421 if test "$GXX" = yes; then
6422 CXXFLAGS="-g -O2"
6423 else
6424 CXXFLAGS="-g"
6425 fi
6426 else
6427 if test "$GXX" = yes; then
6428 CXXFLAGS="-O2"
6429 else
6430 CXXFLAGS=
6431 fi
6432 fi
6433 ac_prog_cxx_stdcxx=no
6434 if test x$ac_prog_cxx_stdcxx = xno
6435 then :
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6437 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6438 if test ${ac_cv_prog_cxx_cxx11+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else case e in #(
6442 e) ac_cv_prog_cxx_cxx11=no
6443 ac_save_CXX=$CXX
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 $ac_cxx_conftest_cxx11_program
6447 _ACEOF
6448 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6449 do
6450 CXX="$ac_save_CXX $ac_arg"
6451 if ac_fn_cxx_try_compile "$LINENO"
6452 then :
6453 ac_cv_prog_cxx_cxx11=$ac_arg
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.beam
6456 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6457 done
6458 rm -f conftest.$ac_ext
6459 CXX=$ac_save_CXX ;;
6460 esac
6461 fi
6462
6463 if test "x$ac_cv_prog_cxx_cxx11" = xno
6464 then :
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6466 printf "%s\n" "unsupported" >&6; }
6467 else case e in #(
6468 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6469 then :
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6471 printf "%s\n" "none needed" >&6; }
6472 else case e in #(
6473 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6474 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6475 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6476 esac
6477 fi
6478 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6479 ac_prog_cxx_stdcxx=cxx11 ;;
6480 esac
6481 fi
6482 fi
6483 if test x$ac_prog_cxx_stdcxx = xno
6484 then :
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6486 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6487 if test ${ac_cv_prog_cxx_cxx98+y}
6488 then :
6489 printf %s "(cached) " >&6
6490 else case e in #(
6491 e) ac_cv_prog_cxx_cxx98=no
6492 ac_save_CXX=$CXX
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 $ac_cxx_conftest_cxx98_program
6496 _ACEOF
6497 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6498 do
6499 CXX="$ac_save_CXX $ac_arg"
6500 if ac_fn_cxx_try_compile "$LINENO"
6501 then :
6502 ac_cv_prog_cxx_cxx98=$ac_arg
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.beam
6505 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6506 done
6507 rm -f conftest.$ac_ext
6508 CXX=$ac_save_CXX ;;
6509 esac
6510 fi
6511
6512 if test "x$ac_cv_prog_cxx_cxx98" = xno
6513 then :
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6515 printf "%s\n" "unsupported" >&6; }
6516 else case e in #(
6517 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6518 then :
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6520 printf "%s\n" "none needed" >&6; }
6521 else case e in #(
6522 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6523 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6524 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6525 esac
6526 fi
6527 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6528 ac_prog_cxx_stdcxx=cxx98 ;;
6529 esac
6530 fi
6531 fi
6532
6533 ac_ext=c
6534 ac_cpp='$CPP $CPPFLAGS'
6535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6538
6539 for ac_prog in gawk mawk nawk awk
6540 do
6541 # Extract the first word of "$ac_prog", so it can be a program name with args.
6542 set dummy $ac_prog; ac_word=$2
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 printf %s "checking for $ac_word... " >&6; }
6545 if test ${ac_cv_prog_AWK+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else case e in #(
6549 e) if test -n "$AWK"; then
6550 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 case $as_dir in #(((
6557 '') as_dir=./ ;;
6558 */) ;;
6559 *) as_dir=$as_dir/ ;;
6560 esac
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_AWK="$ac_prog"
6564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi ;;
6572 esac
6573 fi
6574 AWK=$ac_cv_prog_AWK
6575 if test -n "$AWK"; then
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6577 printf "%s\n" "$AWK" >&6; }
6578 else
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 printf "%s\n" "no" >&6; }
6581 fi
6582
6583
6584 test -n "$AWK" && break
6585 done
6586
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6588 printf %s "checking for grep that handles long lines and -e... " >&6; }
6589 if test ${ac_cv_path_GREP+y}
6590 then :
6591 printf %s "(cached) " >&6
6592 else case e in #(
6593 e) if test -z "$GREP"; then
6594 ac_path_GREP_found=false
6595 # Loop through the user's path and test for each of PROGNAME-LIST
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6598 do
6599 IFS=$as_save_IFS
6600 case $as_dir in #(((
6601 '') as_dir=./ ;;
6602 */) ;;
6603 *) as_dir=$as_dir/ ;;
6604 esac
6605 for ac_prog in grep ggrep
6606 do
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6609 as_fn_executable_p "$ac_path_GREP" || continue
6610 # Check for GNU ac_path_GREP and select it if it is found.
6611 # Check for GNU $ac_path_GREP
6612 case `"$ac_path_GREP" --version 2>&1` in #(
6613 *GNU*)
6614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6615 #(
6616 *)
6617 ac_count=0
6618 printf %s 0123456789 >"conftest.in"
6619 while :
6620 do
6621 cat "conftest.in" "conftest.in" >"conftest.tmp"
6622 mv "conftest.tmp" "conftest.in"
6623 cp "conftest.in" "conftest.nl"
6624 printf "%s\n" 'GREP' >> "conftest.nl"
6625 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6627 as_fn_arith $ac_count + 1 && ac_count=$as_val
6628 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6629 # Best one so far, save it but keep looking for a better one
6630 ac_cv_path_GREP="$ac_path_GREP"
6631 ac_path_GREP_max=$ac_count
6632 fi
6633 # 10*(2^10) chars as input seems more than enough
6634 test $ac_count -gt 10 && break
6635 done
6636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6637 esac
6638
6639 $ac_path_GREP_found && break 3
6640 done
6641 done
6642 done
6643 IFS=$as_save_IFS
6644 if test -z "$ac_cv_path_GREP"; then
6645 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6646 fi
6647 else
6648 ac_cv_path_GREP=$GREP
6649 fi
6650 ;;
6651 esac
6652 fi
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6654 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6655 GREP="$ac_cv_path_GREP"
6656
6657
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6659 printf %s "checking for egrep... " >&6; }
6660 if test ${ac_cv_path_EGREP+y}
6661 then :
6662 printf %s "(cached) " >&6
6663 else case e in #(
6664 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6665 then ac_cv_path_EGREP="$GREP -E"
6666 else
6667 if test -z "$EGREP"; then
6668 ac_path_EGREP_found=false
6669 # Loop through the user's path and test for each of PROGNAME-LIST
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6672 do
6673 IFS=$as_save_IFS
6674 case $as_dir in #(((
6675 '') as_dir=./ ;;
6676 */) ;;
6677 *) as_dir=$as_dir/ ;;
6678 esac
6679 for ac_prog in egrep
6680 do
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6683 as_fn_executable_p "$ac_path_EGREP" || continue
6684 # Check for GNU ac_path_EGREP and select it if it is found.
6685 # Check for GNU $ac_path_EGREP
6686 case `"$ac_path_EGREP" --version 2>&1` in #(
6687 *GNU*)
6688 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6689 #(
6690 *)
6691 ac_count=0
6692 printf %s 0123456789 >"conftest.in"
6693 while :
6694 do
6695 cat "conftest.in" "conftest.in" >"conftest.tmp"
6696 mv "conftest.tmp" "conftest.in"
6697 cp "conftest.in" "conftest.nl"
6698 printf "%s\n" 'EGREP' >> "conftest.nl"
6699 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6701 as_fn_arith $ac_count + 1 && ac_count=$as_val
6702 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6703 # Best one so far, save it but keep looking for a better one
6704 ac_cv_path_EGREP="$ac_path_EGREP"
6705 ac_path_EGREP_max=$ac_count
6706 fi
6707 # 10*(2^10) chars as input seems more than enough
6708 test $ac_count -gt 10 && break
6709 done
6710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6711 esac
6712
6713 $ac_path_EGREP_found && break 3
6714 done
6715 done
6716 done
6717 IFS=$as_save_IFS
6718 if test -z "$ac_cv_path_EGREP"; then
6719 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6720 fi
6721 else
6722 ac_cv_path_EGREP=$EGREP
6723 fi
6724
6725 fi ;;
6726 esac
6727 fi
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6729 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6730 EGREP="$ac_cv_path_EGREP"
6731
6732 EGREP_TRADITIONAL=$EGREP
6733 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6734
6735
6736 # Find a good install program. We prefer a C program (faster),
6737 # so one script is as good as another. But avoid the broken or
6738 # incompatible versions:
6739 # SysV /etc/install, /usr/sbin/install
6740 # SunOS /usr/etc/install
6741 # IRIX /sbin/install
6742 # AIX /bin/install
6743 # AmigaOS /C/install, which installs bootblocks on floppy discs
6744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6747 # OS/2's system install, which has a completely different semantic
6748 # ./install, which can be erroneously created by make from ./install.sh.
6749 # Reject install programs that cannot install multiple files.
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6751 printf %s "checking for a BSD-compatible install... " >&6; }
6752 if test -z "$INSTALL"; then
6753 if test ${ac_cv_path_install+y}
6754 then :
6755 printf %s "(cached) " >&6
6756 else case e in #(
6757 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 case $as_dir in #(((
6762 '') as_dir=./ ;;
6763 */) ;;
6764 *) as_dir=$as_dir/ ;;
6765 esac
6766 # Account for fact that we put trailing slashes in our PATH walk.
6767 case $as_dir in #((
6768 ./ | /[cC]/* | \
6769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6770 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6771 /usr/ucb/* ) ;;
6772 *)
6773 # OSF1 and SCO ODT 3.0 have their own names for install.
6774 # Don't use installbsd from OSF since it installs stuff as root
6775 # by default.
6776 for ac_prog in ginstall scoinst install; do
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
6779 if test $ac_prog = install &&
6780 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6781 # AIX install. It has an incompatible calling convention.
6782 :
6783 elif test $ac_prog = install &&
6784 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6785 # program-specific install script used by HP pwplus--don't use.
6786 :
6787 else
6788 rm -rf conftest.one conftest.two conftest.dir
6789 echo one > conftest.one
6790 echo two > conftest.two
6791 mkdir conftest.dir
6792 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
6793 test -s conftest.one && test -s conftest.two &&
6794 test -s conftest.dir/conftest.one &&
6795 test -s conftest.dir/conftest.two
6796 then
6797 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
6798 break 3
6799 fi
6800 fi
6801 fi
6802 done
6803 done
6804 ;;
6805 esac
6806
6807 done
6808 IFS=$as_save_IFS
6809
6810 rm -rf conftest.one conftest.two conftest.dir
6811 ;;
6812 esac
6813 fi
6814 if test ${ac_cv_path_install+y}; then
6815 INSTALL=$ac_cv_path_install
6816 else
6817 # As a last resort, use the slow shell script. Don't cache a
6818 # value for INSTALL within a source directory, because that will
6819 # break other packages using the cache if that directory is
6820 # removed, or if the value is a relative name.
6821 INSTALL=$ac_install_sh
6822 fi
6823 fi
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6825 printf "%s\n" "$INSTALL" >&6; }
6826
6827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6828 # It thinks the first close brace ends the variable substitution.
6829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6830
6831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6832
6833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6834
6835
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6837 printf %s "checking for a race-free mkdir -p... " >&6; }
6838 if test -z "$MKDIR_P"; then
6839 if test ${ac_cv_path_mkdir+y}
6840 then :
6841 printf %s "(cached) " >&6
6842 else case e in #(
6843 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6845 do
6846 IFS=$as_save_IFS
6847 case $as_dir in #(((
6848 '') as_dir=./ ;;
6849 */) ;;
6850 *) as_dir=$as_dir/ ;;
6851 esac
6852 for ac_prog in mkdir gmkdir; do
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6855 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6856 'mkdir ('*'coreutils) '* | \
6857 *'BusyBox '* | \
6858 'mkdir (fileutils) '4.1*)
6859 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6860 break 3;;
6861 esac
6862 done
6863 done
6864 done
6865 IFS=$as_save_IFS
6866 ;;
6867 esac
6868 fi
6869
6870 test -d ./--version && rmdir ./--version
6871 if test ${ac_cv_path_mkdir+y}; then
6872 MKDIR_P="$ac_cv_path_mkdir -p"
6873 else
6874 # As a last resort, use plain mkdir -p,
6875 # in the hope it doesn't have the bugs of ancient mkdir.
6876 MKDIR_P='mkdir -p'
6877 fi
6878 fi
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6880 printf "%s\n" "$MKDIR_P" >&6; }
6881
6882
6883 # Extract the first word of "perl", so it can be a program name with args.
6884 set dummy perl; ac_word=$2
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 printf %s "checking for $ac_word... " >&6; }
6887 if test ${ac_cv_path_PERL+y}
6888 then :
6889 printf %s "(cached) " >&6
6890 else case e in #(
6891 e) case $PERL in
6892 [\\/]* | ?:[\\/]*)
6893 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6894 ;;
6895 *)
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 case $as_dir in #(((
6901 '') as_dir=./ ;;
6902 */) ;;
6903 *) as_dir=$as_dir/ ;;
6904 esac
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6907 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
6908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 ;;
6916 esac ;;
6917 esac
6918 fi
6919 PERL=$ac_cv_path_PERL
6920 if test -n "$PERL"; then
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6922 printf "%s\n" "$PERL" >&6; }
6923 else
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 printf "%s\n" "no" >&6; }
6926 fi
6927
6928
6929 # Extract the first word of "python3", so it can be a program name with args.
6930 set dummy python3; ac_word=$2
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 printf %s "checking for $ac_word... " >&6; }
6933 if test ${ac_cv_path_PYTHON3+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else case e in #(
6937 e) case $PYTHON3 in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
6940 ;;
6941 *)
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 case $as_dir in #(((
6947 '') as_dir=./ ;;
6948 */) ;;
6949 *) as_dir=$as_dir/ ;;
6950 esac
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6953 ac_cv_path_PYTHON3="$as_dir$ac_word$ac_exec_ext"
6954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 ;;
6962 esac ;;
6963 esac
6964 fi
6965 PYTHON3=$ac_cv_path_PYTHON3
6966 if test -n "$PYTHON3"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
6968 printf "%s\n" "$PYTHON3" >&6; }
6969 else
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6972 fi
6973
6974
6975
6976
6977 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6978
6979
6980 if test x"$ac_cv_prog_cc_stdc" = x"no"; then
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&5
6982 printf "%s\n" "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}
6983 fi
6984
6985 no_lib=''
6986 err_msg=''
6987 nl='
6988 '
6989
6990 # Check whether --enable-profile was given.
6991 if test ${enable_profile+y}
6992 then :
6993 enableval=$enable_profile;
6994 fi
6995
6996 if test x"$enable_profile" = x"yes"; then
6997 CFLAGS="$CFLAGS -pg"
6998 fi
6999
7000 # Check whether --enable-coverage was given.
7001 if test ${enable_coverage+y}
7002 then :
7003 enableval=$enable_coverage;
7004 fi
7005
7006 if test x"$enable_coverage" = x"yes"; then
7007 CFLAGS="$CFLAGS --coverage -fprofile-update=atomic -O0"
7008 CXXFLAGS="$CXXFLAGS --coverage -fprofile-update=atomic -O0"
7009 LDFLAGS="$LDFLAGS --coverage"
7010
7011 printf "%s\n" "#define GCOV_COVERAGE 1" >>confdefs.h
7012
7013 fi
7014
7015 # Check whether --enable-openat2 was given.
7016 if test ${enable_openat2+y}
7017 then :
7018 enableval=$enable_openat2;
7019 fi
7020
7021
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if md2man can create manpages" >&5
7023 printf %s "checking if md2man can create manpages... " >&6; }
7024 if test x"$ac_cv_path_PYTHON3" = x; then
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - python3 not found" >&5
7026 printf "%s\n" "no - python3 not found" >&6; }
7027 md2man_works=no
7028 else
7029 md2man_out=`"$srcdir/md2man" --test "$srcdir/rsync-ssl.1.md" 2>&1`
7030 if test $? = 0; then
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7032 printf "%s\n" "yes" >&6; }
7033 md2man_works=yes
7034 else
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 printf "%s\n" "no" >&6; }
7037 md2man_works=no
7038 echo "$md2man_out"
7039 fi
7040 fi
7041
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we require man-page building" >&5
7043 printf %s "checking if we require man-page building... " >&6; }
7044 # Check whether --enable-md2man was given.
7045 if test ${enable_md2man+y}
7046 then :
7047 enableval=$enable_md2man;
7048 fi
7049
7050 if test x"$enable_md2man" != x"no"; then
7051 if test -f "$srcdir/rsync.1"; then
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: optional" >&5
7053 printf "%s\n" "optional" >&6; }
7054 else
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: required" >&5
7056 printf "%s\n" "required" >&6; }
7057 if test x"$md2man_works" = x"no"; then
7058 err_msg="$err_msg$nl- You need python3 and either the cmarkgfm OR commonmark python3 lib in order"
7059 err_msg="$err_msg$nl to build manpages based on the git source (manpages are included in the"
7060 err_msg="$err_msg$nl official release tar files)."
7061 no_lib="$no_lib md2man"
7062 fi
7063 fi
7064 MAKE_MAN=man
7065 else
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 printf "%s\n" "no" >&6; }
7068 fi
7069
7070 # Specifically, this turns on panic_action handling.
7071 # Check whether --enable-maintainer-mode was given.
7072 if test ${enable_maintainer_mode+y}
7073 then :
7074 enableval=$enable_maintainer_mode;
7075 fi
7076
7077 if test x"$enable_maintainer_mode" = x"yes"; then
7078 CFLAGS="$CFLAGS -DMAINTAINER_MODE"
7079 fi
7080
7081 # This is needed for our included version of popt. Kind of silly, but
7082 # I don't want our version too far out of sync.
7083 CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
7084
7085 # If GCC, turn on warnings.
7086 if test x"$GCC" = x"yes"; then
7087 CFLAGS="$CFLAGS -Wall -W"
7088 fi
7089
7090
7091 # Check whether --with-openssl-conf was given.
7092 if test ${with_openssl_conf+y}
7093 then :
7094 withval=$with_openssl_conf;
7095 fi
7096
7097 case "$with_openssl_conf" in
7098 *^-/a-zA-Z0-9.,=@+_*) as_fn_error $? "Invalid path given to --with-openssl-conf" "$LINENO" 5 ;;
7099 /*) CFLAGS="$CFLAGS -DSET_OPENSSL_CONF=$with_openssl_conf" ;;
7100 no|'') ;;
7101 yes) as_fn_error $? "No path given to --with-openssl-conf" "$LINENO" 5 ;;
7102 *) as_fn_error $? "Non absolute path given to --with-openssl-conf" "$LINENO" 5 ;;
7103 esac
7104
7105
7106 # Check whether --with-rrsync was given.
7107 if test ${with_rrsync+y}
7108 then :
7109 withval=$with_rrsync;
7110 fi
7111
7112 if test x"$with_rrsync" != x"yes"; then
7113 with_rrsync=no
7114 else
7115 MAKE_RRSYNC='rrsync'
7116 MAKE_RRSYNC_1='rrsync.1'
7117 GEN_RRSYNC='rrsync.1 rrsync.1.html'
7118 fi
7119
7120
7121
7122 # Check whether --with-included-popt was given.
7123 if test ${with_included_popt+y}
7124 then :
7125 withval=$with_included_popt;
7126 fi
7127
7128
7129
7130 # Check whether --with-included-zlib was given.
7131 if test ${with_included_zlib+y}
7132 then :
7133 withval=$with_included_zlib;
7134 fi
7135
7136
7137
7138 # Check whether --with-secluded-args was given.
7139 if test ${with_secluded_args+y}
7140 then :
7141 withval=$with_secluded_args;
7142 fi
7143
7144 if test x"$with_secluded_args" = x"yes"; then
7145
7146 printf "%s\n" "#define RSYNC_USE_SECLUDED_ARGS 1" >>confdefs.h
7147
7148 fi
7149
7150
7151 # Check whether --with-rsync-path was given.
7152 if test ${with_rsync_path+y}
7153 then :
7154 withval=$with_rsync_path; RSYNC_PATH="$with_rsync_path"
7155 else case e in #(
7156 e) RSYNC_PATH="rsync" ;;
7157 esac
7158 fi
7159
7160
7161
7162 printf "%s\n" "#define RSYNC_PATH \"$RSYNC_PATH\"" >>confdefs.h
7163
7164
7165
7166 # Check whether --with-rsyncd-conf was given.
7167 if test ${with_rsyncd_conf+y}
7168 then :
7169 withval=$with_rsyncd_conf; if test ! -z "$with_rsyncd_conf" ; then
7170 case $with_rsyncd_conf in
7171 yes|no)
7172 RSYNCD_SYSCONF="/etc/rsyncd.conf"
7173 ;;
7174 /*)
7175 RSYNCD_SYSCONF="$with_rsyncd_conf"
7176 ;;
7177 *)
7178 as_fn_error $? "You must specify an absolute path to --with-rsyncd-conf=PATH" "$LINENO" 5
7179 ;;
7180 esac
7181 else
7182 RSYNCD_SYSCONF="/etc/rsyncd.conf"
7183 fi
7184 else case e in #(
7185 e) RSYNCD_SYSCONF="/etc/rsyncd.conf" ;;
7186 esac
7187 fi
7188
7189
7190
7191 printf "%s\n" "#define RSYNCD_SYSCONF \"$RSYNCD_SYSCONF\"" >>confdefs.h
7192
7193
7194
7195 # Check whether --with-rsh was given.
7196 if test ${with_rsh+y}
7197 then :
7198 withval=$with_rsh;
7199 fi
7200
7201
7202 # Extract the first word of "remsh", so it can be a program name with args.
7203 set dummy remsh; ac_word=$2
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 printf %s "checking for $ac_word... " >&6; }
7206 if test ${ac_cv_prog_HAVE_REMSH+y}
7207 then :
7208 printf %s "(cached) " >&6
7209 else case e in #(
7210 e) if test -n "$HAVE_REMSH"; then
7211 ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 case $as_dir in #(((
7218 '') as_dir=./ ;;
7219 */) ;;
7220 *) as_dir=$as_dir/ ;;
7221 esac
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_HAVE_REMSH="1"
7225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
7233 fi ;;
7234 esac
7235 fi
7236 HAVE_REMSH=$ac_cv_prog_HAVE_REMSH
7237 if test -n "$HAVE_REMSH"; then
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_REMSH" >&5
7239 printf "%s\n" "$HAVE_REMSH" >&6; }
7240 else
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 printf "%s\n" "no" >&6; }
7243 fi
7244
7245
7246 if test x$HAVE_REMSH = x1; then
7247
7248 printf "%s\n" "#define HAVE_REMSH 1" >>confdefs.h
7249
7250 fi
7251
7252 if test x"$with_rsh" != x; then
7253 RSYNC_RSH="$with_rsh"
7254 else
7255 RSYNC_RSH="ssh"
7256 fi
7257
7258 printf "%s\n" "#define RSYNC_RSH \"$RSYNC_RSH\"" >>confdefs.h
7259
7260
7261 # Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).
7262 # Extract the first word of "sh", so it can be a program name with args.
7263 set dummy sh; ac_word=$2
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 printf %s "checking for $ac_word... " >&6; }
7266 if test ${ac_cv_path_SHELL_PATH+y}
7267 then :
7268 printf %s "(cached) " >&6
7269 else case e in #(
7270 e) case $SHELL_PATH in
7271 [\\/]* | ?:[\\/]*)
7272 ac_cv_path_SHELL_PATH="$SHELL_PATH" # Let the user override the test with a path.
7273 ;;
7274 *)
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
7277 do
7278 IFS=$as_save_IFS
7279 case $as_dir in #(((
7280 '') as_dir=./ ;;
7281 */) ;;
7282 *) as_dir=$as_dir/ ;;
7283 esac
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7286 ac_cv_path_SHELL_PATH="$as_dir$ac_word$ac_exec_ext"
7287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 test -z "$ac_cv_path_SHELL_PATH" && ac_cv_path_SHELL_PATH="/bin/sh"
7295 ;;
7296 esac ;;
7297 esac
7298 fi
7299 SHELL_PATH=$ac_cv_path_SHELL_PATH
7300 if test -n "$SHELL_PATH"; then
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHELL_PATH" >&5
7302 printf "%s\n" "$SHELL_PATH" >&6; }
7303 else
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 printf "%s\n" "no" >&6; }
7306 fi
7307
7308
7309 # Extract the first word of "fakeroot", so it can be a program name with args.
7310 set dummy fakeroot; ac_word=$2
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 printf %s "checking for $ac_word... " >&6; }
7313 if test ${ac_cv_path_FAKEROOT_PATH+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else case e in #(
7317 e) case $FAKEROOT_PATH in
7318 [\\/]* | ?:[\\/]*)
7319 ac_cv_path_FAKEROOT_PATH="$FAKEROOT_PATH" # Let the user override the test with a path.
7320 ;;
7321 *)
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
7324 do
7325 IFS=$as_save_IFS
7326 case $as_dir in #(((
7327 '') as_dir=./ ;;
7328 */) ;;
7329 *) as_dir=$as_dir/ ;;
7330 esac
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7333 ac_cv_path_FAKEROOT_PATH="$as_dir$ac_word$ac_exec_ext"
7334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 test -z "$ac_cv_path_FAKEROOT_PATH" && ac_cv_path_FAKEROOT_PATH="/usr/bin/fakeroot"
7342 ;;
7343 esac ;;
7344 esac
7345 fi
7346 FAKEROOT_PATH=$ac_cv_path_FAKEROOT_PATH
7347 if test -n "$FAKEROOT_PATH"; then
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FAKEROOT_PATH" >&5
7349 printf "%s\n" "$FAKEROOT_PATH" >&6; }
7350 else
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 printf "%s\n" "no" >&6; }
7353 fi
7354
7355
7356
7357
7358 # Check whether --with-nobody-user was given.
7359 if test ${with_nobody_user+y}
7360 then :
7361 withval=$with_nobody_user; NOBODY_USER="$with_nobody_user"
7362 else case e in #(
7363 e) NOBODY_USER="nobody" ;;
7364 esac
7365 fi
7366
7367
7368
7369 # Check whether --with-nobody-group was given.
7370 if test ${with_nobody_group+y}
7371 then :
7372 withval=$with_nobody_group; NOBODY_GROUP="$with_nobody_group"
7373 fi
7374
7375
7376 if test x"$with_nobody_group" = x; then
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the group for user \"nobody\"" >&5
7378 printf %s "checking the group for user \"nobody\"... " >&6; }
7379 if grep '^nobody:' /etc/group >/dev/null 2>&1; then
7380 NOBODY_GROUP=nobody
7381 elif grep '^nogroup:' /etc/group >/dev/null 2>&1; then
7382 NOBODY_GROUP=nogroup
7383 else
7384 NOBODY_GROUP=nobody # test for others?
7385 fi
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOBODY_GROUP" >&5
7387 printf "%s\n" "$NOBODY_GROUP" >&6; }
7388 fi
7389
7390
7391 printf "%s\n" "#define NOBODY_USER \"$NOBODY_USER\"" >>confdefs.h
7392
7393
7394 printf "%s\n" "#define NOBODY_GROUP \"$NOBODY_GROUP\"" >>confdefs.h
7395
7396
7397 # rolling-checksum SIMD optimizations
7398 ROLL_SIMD=
7399
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable rolling-checksum SIMD optimizations" >&5
7401 printf %s "checking whether to enable rolling-checksum SIMD optimizations... " >&6; }
7402 # Check whether --enable-roll-simd was given.
7403 if test ${enable_roll_simd+y}
7404 then :
7405 enableval=$enable_roll_simd;
7406 fi
7407
7408
7409 # Clag is crashing with -g -O2, so we'll get rid of -g for now.
7410 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g //'`
7411
7412
7413 if test x"$enable_roll_simd" = x""; then
7414 case "$host_os" in
7415 *linux*) ;;
7416 *) enable_roll_simd=no ;;
7417 esac
7418 fi
7419
7420 if test x"$enable_roll_simd" != x"no"; then
7421 # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
7422 if test x"$host_cpu" = x"x86_64" || test x"$host_cpu" = x"amd64"; then
7423 ac_ext=cpp
7424 ac_cpp='$CXXCPP $CPPFLAGS'
7425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7428
7429 if test x"$host" = x"$build"; then
7430
7431 if test "$cross_compiling" = yes
7432 then :
7433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7434 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7435 as_fn_error $? "cannot run test program while cross compiling
7436 See 'config.log' for more details" "$LINENO" 5; }
7437 else case e in #(
7438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <stdio.h>
7441 #if HAVE_STDLIB_H
7442 #include <stdlib.h>
7443 #endif
7444 #include <immintrin.h>
7445 __attribute__ ((target("default"))) int test_ssse3(int x) { return x; }
7446 __attribute__ ((target("default"))) int test_sse2(int x) { return x; }
7447 __attribute__ ((target("default"))) int test_avx2(int x) { return x; }
7448 __attribute__ ((target("ssse3"))) int test_ssse3(int x) { return x; }
7449 __attribute__ ((target("sse2"))) int test_sse2(int x) { return x; }
7450 __attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
7451 typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
7452 typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
7453 __attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
7454 __attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
7455 {
7456 int i;
7457 for (i = 0; i < (len-32); i+=32) {
7458 __m128i in8_1, in8_2;
7459 in8_1 = _mm_lddqu_si128((__m128i_u*)&buf[i]);
7460 in8_2 = _mm_lddqu_si128((__m128i_u*)&buf[i + 16]);
7461 }
7462 }
7463
7464 int
7465 main (void)
7466 {
7467 if (test_ssse3(42) != 42 || test_sse2(42) != 42 || test_avx2(42) != 42) exit(1);
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_cxx_try_run "$LINENO"
7473 then :
7474 CXX_OK=yes
7475 else case e in #(
7476 e) CXX_OK=no ;;
7477 esac
7478 fi
7479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7480 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7481 esac
7482 fi
7483
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <stdio.h>
7488 #if HAVE_STDLIB_H
7489 #include <stdlib.h>
7490 #endif
7491 #include <immintrin.h>
7492 __attribute__ ((target("default"))) int test_ssse3(int x) { return x; }
7493 __attribute__ ((target("default"))) int test_sse2(int x) { return x; }
7494 __attribute__ ((target("default"))) int test_avx2(int x) { return x; }
7495 __attribute__ ((target("ssse3"))) int test_ssse3(int x) { return x; }
7496 __attribute__ ((target("sse2"))) int test_sse2(int x) { return x; }
7497 __attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
7498 typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
7499 typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
7500 __attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
7501 __attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
7502 {
7503 int i;
7504 for (i = 0; i < (len-32); i+=32) {
7505 __m128i in8_1, in8_2;
7506 in8_1 = _mm_lddqu_si128((__m128i_u*)&buf[i]);
7507 in8_2 = _mm_lddqu_si128((__m128i_u*)&buf[i + 16]);
7508 }
7509 }
7510
7511 int
7512 main (void)
7513 {
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_cxx_try_compile "$LINENO"
7520 then :
7521 CXX_OK=yes
7522 else case e in #(
7523 e) CXX_OK=no ;;
7524 esac
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7527 fi
7528 ac_ext=c
7529 ac_cpp='$CPP $CPPFLAGS'
7530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534 if test x"$CXX_OK" = x"yes"; then
7535 # AC_MSG_RESULT() is called below.
7536 ROLL_SIMD="$host_cpu"
7537 elif test x"$enable_roll_simd" = x"yes"; then
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error" >&5
7539 printf "%s\n" "error" >&6; }
7540 as_fn_error $? "The rolling-checksum SIMD compilation test failed.
7541 Omit --enable-roll-simd to continue without it." "$LINENO" 5
7542 fi
7543 elif test x"$enable_roll_simd" = x"yes"; then
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
7545 printf "%s\n" "unavailable" >&6; }
7546 as_fn_error $? "The rolling-checksum SIMD optimizations are currently x86_64|amd64 only.
7547 Omit --enable-roll-simd to continue without it." "$LINENO" 5
7548 fi
7549 fi
7550
7551 if test x"$ROLL_SIMD" != x""; then
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($ROLL_SIMD)" >&5
7553 printf "%s\n" "yes ($ROLL_SIMD)" >&6; }
7554
7555 printf "%s\n" "#define USE_ROLL_SIMD 1" >>confdefs.h
7556
7557 ROLL_SIMD='$(ROLL_SIMD_'"$ROLL_SIMD)"
7558 # We only use c++ for its target attribute dispatching, disable unneeded bulky features
7559 CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
7560 # Apple often has "g++" as a symlink for clang. Try to find out the truth.
7561 CXX_VERSION=`$CXX --version 2>/dev/null | head -n 2`
7562 case "$CXX_VERSION" in
7563 *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit
7564 esac
7565 else
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 printf "%s\n" "no" >&6; }
7568 fi
7569
7570
7571
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if assembler accepts noexecstack" >&5
7573 printf %s "checking if assembler accepts noexecstack... " >&6; }
7574 OLD_CFLAGS="$CFLAGS"
7575 CFLAGS="$CFLAGS -Wa,--noexecstack"
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578
7579 int
7580 main (void)
7581 {
7582 return 0;
7583 ;
7584 return 0;
7585 }
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"
7588 then :
7589 NOEXECSTACK='-Wa,--noexecstack' ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7590 printf "%s\n" "yes" >&6; }
7591 else case e in #(
7592 e) NOEXECSTACK='' ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 printf "%s\n" "no" >&6; } ;;
7594 esac
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7597 CFLAGS="$OLD_CFLAGS"
7598
7599
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openat2" >&5
7601 printf %s "checking for openat2... " >&6; }
7602 if test ${rsync_cv_HAVE_OPENAT2+y}
7603 then :
7604 printf %s "(cached) " >&6
7605 else case e in #(
7606 e)
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609
7610
7611 #include <sys/syscall.h>
7612 #include <linux/openat2.h>
7613
7614 int
7615 main (void)
7616 {
7617
7618 struct open_how how;
7619 how.resolve = RESOLVE_BENEATH;
7620 return SYS_openat2 + (int)how.resolve;
7621
7622 ;
7623 return 0;
7624 }
7625
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"
7628 then :
7629 rsync_cv_HAVE_OPENAT2=yes
7630 else case e in #(
7631 e) rsync_cv_HAVE_OPENAT2=no ;;
7632 esac
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7635 ;;
7636 esac
7637 fi
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_OPENAT2" >&5
7639 printf "%s\n" "$rsync_cv_HAVE_OPENAT2" >&6; }
7640 if test x"$enable_openat2" != x"no"; then
7641 if test x"$rsync_cv_HAVE_OPENAT2" = x"yes"; then
7642
7643 printf "%s\n" "#define HAVE_OPENAT2 1" >>confdefs.h
7644
7645 fi
7646 fi
7647
7648 # arrgh. libc in some old debian version screwed up the largefile
7649 # stuff, getting byte range locking wrong
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5
7651 printf %s "checking for broken largefile support... " >&6; }
7652 if test ${rsync_cv_HAVE_BROKEN_LARGEFILE+y}
7653 then :
7654 printf %s "(cached) " >&6
7655 else case e in #(
7656 e)
7657 if test "$cross_compiling" = yes
7658 then :
7659 rsync_cv_HAVE_BROKEN_LARGEFILE=cross
7660 else case e in #(
7661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663
7664 #define _FILE_OFFSET_BITS 64
7665 $ac_includes_default
7666 #ifdef HAVE_FCNTL_H
7667 # include <fcntl.h>
7668 #elif defined HAVE_SYS_FCNTL_H
7669 # include <sys/fcntl.h>
7670 #endif
7671 #ifdef HAVE_SYS_WAIT_H
7672 #include <sys/wait.h>
7673 #endif
7674
7675 int main(void)
7676 {
7677 struct flock lock;
7678 int status;
7679 char tpl[32] = "/tmp/locktest.XXXXXX";
7680 int fd = mkstemp(tpl);
7681 if (fd < 0) {
7682 strcpy(tpl, "conftest.dat");
7683 fd = open(tpl, O_CREAT|O_RDWR, 0600);
7684 }
7685
7686 lock.l_type = F_WRLCK;
7687 lock.l_whence = SEEK_SET;
7688 lock.l_start = 0;
7689 lock.l_len = 1;
7690 lock.l_pid = 0;
7691 fcntl(fd,F_SETLK,&lock);
7692 if (fork() == 0) {
7693 lock.l_start = 1;
7694 _exit(fcntl(fd,F_SETLK,&lock) == 0);
7695 }
7696 wait(&status);
7697 unlink(tpl);
7698 return WEXITSTATUS(status);
7699 }
7700
7701 _ACEOF
7702 if ac_fn_c_try_run "$LINENO"
7703 then :
7704 rsync_cv_HAVE_BROKEN_LARGEFILE=yes
7705 else case e in #(
7706 e) rsync_cv_HAVE_BROKEN_LARGEFILE=no ;;
7707 esac
7708 fi
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7710 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7711 esac
7712 fi
7713 ;;
7714 esac
7715 fi
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_LARGEFILE" >&5
7717 printf "%s\n" "$rsync_cv_HAVE_BROKEN_LARGEFILE" >&6; }
7718 if test x"$rsync_cv_HAVE_BROKEN_LARGEFILE" != x"yes"; then
7719 # Check whether --enable-largefile was given.
7720 if test ${enable_largefile+y}
7721 then :
7722 enableval=$enable_largefile;
7723 fi
7724 if test "$enable_largefile,$enable_year2038" != no,no
7725 then :
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
7727 printf %s "checking for $CPPFLAGS option for large files... " >&6; }
7728 if test ${ac_cv_sys_largefile_opts+y}
7729 then :
7730 printf %s "(cached) " >&6
7731 else case e in #(
7732 e) ac_save_CPPFLAGS=$CPPFLAGS
7733 ac_opt_found=no
7734 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
7735 if test x"$ac_opt" != x"none needed"
7736 then :
7737 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7738 fi
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 #include <sys/types.h>
7742 #ifndef FTYPE
7743 # define FTYPE off_t
7744 #endif
7745 /* Check that FTYPE can represent 2**63 - 1 correctly.
7746 We can't simply define LARGE_FTYPE to be 9223372036854775807,
7747 since some C++ compilers masquerading as C compilers
7748 incorrectly reject 9223372036854775807. */
7749 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
7750 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
7751 && LARGE_FTYPE % 2147483647 == 1)
7752 ? 1 : -1];
7753 int
7754 main (void)
7755 {
7756
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 if ac_fn_c_try_compile "$LINENO"
7762 then :
7763 if test x"$ac_opt" = x"none needed"
7764 then :
7765 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
7766 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
7767 if ac_fn_c_try_compile "$LINENO"
7768 then :
7769
7770 else case e in #(
7771 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
7772 if ac_fn_c_try_compile "$LINENO"
7773 then :
7774 ac_opt='-D_FILE_OFFSET_BITS=64'
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
7777 esac
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.beam
7780 fi
7781 ac_cv_sys_largefile_opts=$ac_opt
7782 ac_opt_found=yes
7783 fi
7784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7785 test $ac_opt_found = no || break
7786 done
7787 CPPFLAGS=$ac_save_CPPFLAGS
7788
7789 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
7790 esac
7791 fi
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
7793 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
7794
7795 ac_have_largefile=yes
7796 case $ac_cv_sys_largefile_opts in #(
7797 "none needed") :
7798 ;; #(
7799 "supported through gnulib") :
7800 ;; #(
7801 "support not detected") :
7802 ac_have_largefile=no ;; #(
7803 "-D_FILE_OFFSET_BITS=64") :
7804
7805 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7806 ;; #(
7807 "-D_LARGE_FILES=1") :
7808
7809 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
7810 ;; #(
7811 *) :
7812 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
7813 esac
7814
7815 if test "$enable_year2038" != no
7816 then :
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
7818 printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
7819 if test ${ac_cv_sys_year2038_opts+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else case e in #(
7823 e) ac_save_CPPFLAGS="$CPPFLAGS"
7824 ac_opt_found=no
7825 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
7826 if test x"$ac_opt" != x"none needed"
7827 then :
7828 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7829 fi
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832
7833 #include <time.h>
7834 /* Check that time_t can represent 2**32 - 1 correctly. */
7835 #define LARGE_TIME_T \\
7836 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7837 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7838 && LARGE_TIME_T % 65537 == 0)
7839 ? 1 : -1];
7840
7841 int
7842 main (void)
7843 {
7844
7845 ;
7846 return 0;
7847 }
7848 _ACEOF
7849 if ac_fn_c_try_compile "$LINENO"
7850 then :
7851 ac_cv_sys_year2038_opts="$ac_opt"
7852 ac_opt_found=yes
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7855 test $ac_opt_found = no || break
7856 done
7857 CPPFLAGS="$ac_save_CPPFLAGS"
7858 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
7859 esac
7860 fi
7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
7862 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
7863
7864 ac_have_year2038=yes
7865 case $ac_cv_sys_year2038_opts in #(
7866 "none needed") :
7867 ;; #(
7868 "support not detected") :
7869 ac_have_year2038=no ;; #(
7870 "-D_TIME_BITS=64") :
7871
7872 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7873 ;; #(
7874 "-D__MINGW_USE_VC2005_COMPAT") :
7875
7876 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7877 ;; #(
7878 "-U_USE_32_BIT_TIME_T"*) :
7879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7880 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7881 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
7882 will stop working after mid-January 2038. Remove
7883 _USE_32BIT_TIME_T from the compiler flags.
7884 See 'config.log' for more details" "$LINENO" 5; } ;; #(
7885 *) :
7886 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7887 esac
7888
7889 fi
7890
7891 fi
7892 fi
7893
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
7895 printf %s "checking whether to enable ipv6... " >&6; }
7896 # Check whether --enable-ipv6 was given.
7897 if test ${enable_ipv6+y}
7898 then :
7899 enableval=$enable_ipv6; case "$enableval" in
7900 no)
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 printf "%s\n" "no" >&6; }
7903 ;;
7904 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 printf "%s\n" "yes" >&6; }
7906
7907 printf "%s\n" "#define INET6 1" >>confdefs.h
7908
7909 ;;
7910 esac
7911 else case e in #(
7912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914
7915 #include <sys/types.h>
7916 #include <sys/socket.h>
7917 #include <netinet/in.h>
7918
7919 int
7920 main (void)
7921 {
7922
7923 struct sockaddr_in6 sa6;
7924 (void)sa6;
7925 (void)AF_INET6;
7926
7927 ;
7928 return 0;
7929 }
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"
7932 then :
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7934 printf "%s\n" "yes" >&6; }
7935
7936 printf "%s\n" "#define INET6 1" >>confdefs.h
7937
7938 else case e in #(
7939 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 printf "%s\n" "no" >&6; }
7941 ;;
7942 esac
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7945 esac
7946 fi
7947
7948
7949 # Check whether --enable-locale was given.
7950 if test ${enable_locale+y}
7951 then :
7952 enableval=$enable_locale;
7953 fi
7954
7955
7956 if test x"$enable_locale" != x"no"; then
7957 printf "%s\n" "#define CONFIG_LOCALE 1" >>confdefs.h
7958
7959 fi
7960
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to call shutdown on all sockets" >&5
7962 printf %s "checking whether to call shutdown on all sockets... " >&6; }
7963 case $host_os in
7964 *cygwin* ) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965 printf "%s\n" "yes" >&6; }
7966
7967 printf "%s\n" "#define SHUTDOWN_ALL_SOCKETS 1" >>confdefs.h
7968
7969 ;;
7970 * ) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 printf "%s\n" "no" >&6; };;
7972 esac
7973
7974 # We default to using our zlib unless --with-included-zlib=no is given.
7975 if test x"$with_included_zlib" != x"no"; then
7976 with_included_zlib=yes
7977 elif test x"$ac_cv_header_zlib_h" != x"yes"; then
7978 with_included_zlib=yes
7979 fi
7980 if test x"$with_included_zlib" != x"yes"; then
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflateParams in -lz" >&5
7982 printf %s "checking for deflateParams in -lz... " >&6; }
7983 if test ${ac_cv_lib_z_deflateParams+y}
7984 then :
7985 printf %s "(cached) " >&6
7986 else case e in #(
7987 e) ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-lz $LIBS"
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply.
7995 The 'extern "C"' is for builds by C++ compilers;
7996 although this is not generally supported in C code supporting it here
7997 has little cost and some practical benefit (sr 110532). */
7998 #ifdef __cplusplus
7999 extern "C"
8000 #endif
8001 char deflateParams (void);
8002 int
8003 main (void)
8004 {
8005 return deflateParams ();
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"
8011 then :
8012 ac_cv_lib_z_deflateParams=yes
8013 else case e in #(
8014 e) ac_cv_lib_z_deflateParams=no ;;
8015 esac
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8018 conftest$ac_exeext conftest.$ac_ext
8019 LIBS=$ac_check_lib_save_LIBS ;;
8020 esac
8021 fi
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateParams" >&5
8023 printf "%s\n" "$ac_cv_lib_z_deflateParams" >&6; }
8024 if test "x$ac_cv_lib_z_deflateParams" = xyes
8025 then :
8026 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
8027
8028 LIBS="-lz $LIBS"
8029
8030 else case e in #(
8031 e) with_included_zlib=yes ;;
8032 esac
8033 fi
8034
8035 fi
8036
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use included zlib" >&5
8038 printf %s "checking whether to use included zlib... " >&6; }
8039 if test x"$with_included_zlib" = x"yes"; then
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $srcdir/zlib" >&5
8041 printf "%s\n" "$srcdir/zlib" >&6; }
8042 BUILD_ZLIB='$(zlib_OBJS)'
8043 CFLAGS="-I$srcdir/zlib $CFLAGS"
8044 else
8045
8046 printf "%s\n" "#define EXTERNAL_ZLIB 1" >>confdefs.h
8047
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 printf "%s\n" "no" >&6; }
8050 fi
8051
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable use of openssl crypto library" >&5
8053 printf %s "checking whether to enable use of openssl crypto library... " >&6; }
8054 # Check whether --enable-openssl was given.
8055 if test ${enable_openssl+y}
8056 then :
8057 enableval=$enable_openssl;
8058 fi
8059
8060
8061 if test x"$enable_openssl" != x"no"; then
8062 if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064 printf "%s\n" "yes" >&6; }
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_MD_CTX_copy" >&5
8066 printf %s "checking for library containing EVP_MD_CTX_copy... " >&6; }
8067 if test ${ac_cv_search_EVP_MD_CTX_copy+y}
8068 then :
8069 printf %s "(cached) " >&6
8070 else case e in #(
8071 e) ac_func_search_save_LIBS=$LIBS
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074
8075 /* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply.
8078 The 'extern "C"' is for builds by C++ compilers;
8079 although this is not generally supported in C code supporting it here
8080 has little cost and some practical benefit (sr 110532). */
8081 #ifdef __cplusplus
8082 extern "C"
8083 #endif
8084 char EVP_MD_CTX_copy (void);
8085 int
8086 main (void)
8087 {
8088 return EVP_MD_CTX_copy ();
8089 ;
8090 return 0;
8091 }
8092 _ACEOF
8093 for ac_lib in '' crypto
8094 do
8095 if test -z "$ac_lib"; then
8096 ac_res="none required"
8097 else
8098 ac_res=-l$ac_lib
8099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8100 fi
8101 if ac_fn_c_try_link "$LINENO"
8102 then :
8103 ac_cv_search_EVP_MD_CTX_copy=$ac_res
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8106 conftest$ac_exeext
8107 if test ${ac_cv_search_EVP_MD_CTX_copy+y}
8108 then :
8109 break
8110 fi
8111 done
8112 if test ${ac_cv_search_EVP_MD_CTX_copy+y}
8113 then :
8114
8115 else case e in #(
8116 e) ac_cv_search_EVP_MD_CTX_copy=no ;;
8117 esac
8118 fi
8119 rm conftest.$ac_ext
8120 LIBS=$ac_func_search_save_LIBS ;;
8121 esac
8122 fi
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_MD_CTX_copy" >&5
8124 printf "%s\n" "$ac_cv_search_EVP_MD_CTX_copy" >&6; }
8125 ac_res=$ac_cv_search_EVP_MD_CTX_copy
8126 if test "$ac_res" != no
8127 then :
8128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8129 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
8130
8131 enable_openssl=yes
8132 else case e in #(
8133 e) err_msg="$err_msg$nl- Failed to find EVP_MD_CTX_copy function in openssl crypto lib.";
8134 no_lib="$no_lib openssl" ;;
8135 esac
8136 fi
8137
8138 else
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 printf "%s\n" "no" >&6; }
8141 err_msg="$err_msg$nl- Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support."
8142 no_lib="$no_lib openssl"
8143 fi
8144 if test x"$enable_md5_asm" != x"yes"; then
8145 enable_md5_asm=no
8146 fi
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152 MD5_ASM=
8153
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable MD5 ASM optimizations" >&5
8155 printf %s "checking whether to enable MD5 ASM optimizations... " >&6; }
8156 # Check whether --enable-md5-asm was given.
8157 if test ${enable_md5_asm+y}
8158 then :
8159 enableval=$enable_md5_asm;
8160 fi
8161
8162
8163 if test x"$enable_md5_asm" = x""; then
8164 case "$host_os" in
8165 *linux*) ;;
8166 *) enable_md5_asm=no ;;
8167 esac
8168 fi
8169
8170 if test x"$enable_md5_asm" != x"no"; then
8171 if test x"$host_cpu" = x"x86_64" || test x"$host_cpu" = x"amd64"; then
8172 MD5_ASM="$host_cpu"
8173 elif test x"$enable_md5_asm" = x"yes"; then
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
8175 printf "%s\n" "unavailable" >&6; }
8176 as_fn_error $? "The ASM optimizations are currently x86_64|amd64 only.
8177 Omit --enable-md5-asm to continue without it." "$LINENO" 5
8178 fi
8179 fi
8180
8181 if test x"$MD5_ASM" != x""; then
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($MD5_ASM)" >&5
8183 printf "%s\n" "yes ($MD5_ASM)" >&6; }
8184
8185 printf "%s\n" "#define USE_MD5_ASM 1" >>confdefs.h
8186
8187 MD5_ASM='$(MD5_ASM_'"$MD5_ASM)"
8188 else
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 printf "%s\n" "no" >&6; }
8191 fi
8192
8193
8194
8195 ROLL_ASM=
8196
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable rolling-checksum ASM optimizations" >&5
8198 printf %s "checking whether to enable rolling-checksum ASM optimizations... " >&6; }
8199 # Check whether --enable-roll-asm was given.
8200 if test ${enable_roll_asm+y}
8201 then :
8202 enableval=$enable_roll_asm;
8203 fi
8204
8205
8206 if test x"$ROLL_SIMD" = x""; then
8207 enable_roll_asm=no
8208 fi
8209
8210 if test x"$enable_roll_asm" = x"yes"; then
8211 ROLL_ASM="$host_cpu"
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($ROLL_ASM)" >&5
8213 printf "%s\n" "yes ($ROLL_ASM)" >&6; }
8214
8215 printf "%s\n" "#define USE_ROLL_ASM 1" >>confdefs.h
8216
8217 ROLL_ASM='$(ROLL_ASM_'"$ROLL_ASM)"
8218 else
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 printf "%s\n" "no" >&6; }
8221 fi
8222
8223
8224
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable xxhash checksum support" >&5
8226 printf %s "checking whether to enable xxhash checksum support... " >&6; }
8227 # Check whether --enable-xxhash was given.
8228 if test ${enable_xxhash+y}
8229 then :
8230 enableval=$enable_xxhash;
8231 fi
8232
8233
8234 if test x"$enable_xxhash" != x"no"; then
8235 if test x"$ac_cv_header_xxhash_h" = x"yes"; then
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8237 printf "%s\n" "yes" >&6; }
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing XXH64_createState" >&5
8239 printf %s "checking for library containing XXH64_createState... " >&6; }
8240 if test ${ac_cv_search_XXH64_createState+y}
8241 then :
8242 printf %s "(cached) " >&6
8243 else case e in #(
8244 e) ac_func_search_save_LIBS=$LIBS
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply.
8251 The 'extern "C"' is for builds by C++ compilers;
8252 although this is not generally supported in C code supporting it here
8253 has little cost and some practical benefit (sr 110532). */
8254 #ifdef __cplusplus
8255 extern "C"
8256 #endif
8257 char XXH64_createState (void);
8258 int
8259 main (void)
8260 {
8261 return XXH64_createState ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 for ac_lib in '' xxhash
8267 do
8268 if test -z "$ac_lib"; then
8269 ac_res="none required"
8270 else
8271 ac_res=-l$ac_lib
8272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8273 fi
8274 if ac_fn_c_try_link "$LINENO"
8275 then :
8276 ac_cv_search_XXH64_createState=$ac_res
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8279 conftest$ac_exeext
8280 if test ${ac_cv_search_XXH64_createState+y}
8281 then :
8282 break
8283 fi
8284 done
8285 if test ${ac_cv_search_XXH64_createState+y}
8286 then :
8287
8288 else case e in #(
8289 e) ac_cv_search_XXH64_createState=no ;;
8290 esac
8291 fi
8292 rm conftest.$ac_ext
8293 LIBS=$ac_func_search_save_LIBS ;;
8294 esac
8295 fi
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XXH64_createState" >&5
8297 printf "%s\n" "$ac_cv_search_XXH64_createState" >&6; }
8298 ac_res=$ac_cv_search_XXH64_createState
8299 if test "$ac_res" != no
8300 then :
8301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8302 printf "%s\n" "#define SUPPORT_XXHASH 1" >>confdefs.h
8303
8304 else case e in #(
8305 e) err_msg="$err_msg$nl- Failed to find XXH64_createState function in xxhash lib.";
8306 no_lib="$no_lib xxhash" ;;
8307 esac
8308 fi
8309
8310 else
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 printf "%s\n" "no" >&6; }
8313 err_msg="$err_msg$nl- Failed to find xxhash.h for xxhash checksum support.";
8314 no_lib="$no_lib xxhash"
8315 fi
8316 else
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 printf "%s\n" "no" >&6; }
8319 fi
8320
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable zstd compression" >&5
8322 printf %s "checking whether to enable zstd compression... " >&6; }
8323 # Check whether --enable-zstd was given.
8324 if test ${enable_zstd+y}
8325 then :
8326 enableval=$enable_zstd;
8327 fi
8328
8329
8330 if test x"$enable_zstd" != x"no"; then
8331 if test x"$ac_cv_header_zstd_h" = x"yes"; then
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8333 printf "%s\n" "yes" >&6; }
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_minCLevel" >&5
8335 printf %s "checking for library containing ZSTD_minCLevel... " >&6; }
8336 if test ${ac_cv_search_ZSTD_minCLevel+y}
8337 then :
8338 printf %s "(cached) " >&6
8339 else case e in #(
8340 e) ac_func_search_save_LIBS=$LIBS
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343
8344 /* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply.
8347 The 'extern "C"' is for builds by C++ compilers;
8348 although this is not generally supported in C code supporting it here
8349 has little cost and some practical benefit (sr 110532). */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 char ZSTD_minCLevel (void);
8354 int
8355 main (void)
8356 {
8357 return ZSTD_minCLevel ();
8358 ;
8359 return 0;
8360 }
8361 _ACEOF
8362 for ac_lib in '' zstd
8363 do
8364 if test -z "$ac_lib"; then
8365 ac_res="none required"
8366 else
8367 ac_res=-l$ac_lib
8368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8369 fi
8370 if ac_fn_c_try_link "$LINENO"
8371 then :
8372 ac_cv_search_ZSTD_minCLevel=$ac_res
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8375 conftest$ac_exeext
8376 if test ${ac_cv_search_ZSTD_minCLevel+y}
8377 then :
8378 break
8379 fi
8380 done
8381 if test ${ac_cv_search_ZSTD_minCLevel+y}
8382 then :
8383
8384 else case e in #(
8385 e) ac_cv_search_ZSTD_minCLevel=no ;;
8386 esac
8387 fi
8388 rm conftest.$ac_ext
8389 LIBS=$ac_func_search_save_LIBS ;;
8390 esac
8391 fi
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_minCLevel" >&5
8393 printf "%s\n" "$ac_cv_search_ZSTD_minCLevel" >&6; }
8394 ac_res=$ac_cv_search_ZSTD_minCLevel
8395 if test "$ac_res" != no
8396 then :
8397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8398 printf "%s\n" "#define SUPPORT_ZSTD 1" >>confdefs.h
8399
8400 else case e in #(
8401 e) err_msg="$err_msg$nl- Failed to find ZSTD_minCLevel function in zstd lib.";
8402 no_lib="$no_lib zstd" ;;
8403 esac
8404 fi
8405
8406 else
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 printf "%s\n" "no" >&6; }
8409 err_msg="$err_msg$nl- Failed to find zstd.h for zstd compression support.";
8410 no_lib="$no_lib zstd"
8411 fi
8412 else
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 printf "%s\n" "no" >&6; }
8415 fi
8416
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable LZ4 compression" >&5
8418 printf %s "checking whether to enable LZ4 compression... " >&6; }
8419 # Check whether --enable-lz4 was given.
8420 if test ${enable_lz4+y}
8421 then :
8422 enableval=$enable_lz4;
8423 fi
8424
8425
8426 if test x"$enable_lz4" != x"no"; then
8427 if test x"$ac_cv_header_lz4_h" = x"yes"; then
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8429 printf "%s\n" "yes" >&6; }
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing LZ4_compress_default" >&5
8431 printf %s "checking for library containing LZ4_compress_default... " >&6; }
8432 if test ${ac_cv_search_LZ4_compress_default+y}
8433 then :
8434 printf %s "(cached) " >&6
8435 else case e in #(
8436 e) ac_func_search_save_LIBS=$LIBS
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439
8440 /* Override any GCC internal prototype to avoid an error.
8441 Use char because int might match the return type of a GCC
8442 builtin and then its argument prototype would still apply.
8443 The 'extern "C"' is for builds by C++ compilers;
8444 although this is not generally supported in C code supporting it here
8445 has little cost and some practical benefit (sr 110532). */
8446 #ifdef __cplusplus
8447 extern "C"
8448 #endif
8449 char LZ4_compress_default (void);
8450 int
8451 main (void)
8452 {
8453 return LZ4_compress_default ();
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 for ac_lib in '' lz4
8459 do
8460 if test -z "$ac_lib"; then
8461 ac_res="none required"
8462 else
8463 ac_res=-l$ac_lib
8464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8465 fi
8466 if ac_fn_c_try_link "$LINENO"
8467 then :
8468 ac_cv_search_LZ4_compress_default=$ac_res
8469 fi
8470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8471 conftest$ac_exeext
8472 if test ${ac_cv_search_LZ4_compress_default+y}
8473 then :
8474 break
8475 fi
8476 done
8477 if test ${ac_cv_search_LZ4_compress_default+y}
8478 then :
8479
8480 else case e in #(
8481 e) ac_cv_search_LZ4_compress_default=no ;;
8482 esac
8483 fi
8484 rm conftest.$ac_ext
8485 LIBS=$ac_func_search_save_LIBS ;;
8486 esac
8487 fi
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_LZ4_compress_default" >&5
8489 printf "%s\n" "$ac_cv_search_LZ4_compress_default" >&6; }
8490 ac_res=$ac_cv_search_LZ4_compress_default
8491 if test "$ac_res" != no
8492 then :
8493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8494 printf "%s\n" "#define SUPPORT_LZ4 1" >>confdefs.h
8495
8496 else case e in #(
8497 e) err_msg="$err_msg$nl- Failed to find LZ4_compress_default function in lz4 lib.";
8498 no_lib="$no_lib lz4" ;;
8499 esac
8500 fi
8501
8502 else
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 printf "%s\n" "no" >&6; }
8505 err_msg="$err_msg$nl- Failed to find lz4.h for lz4 compression support."
8506 no_lib="$no_lib lz4"
8507 fi
8508 else
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 printf "%s\n" "no" >&6; }
8511 fi
8512
8513 if test x"$no_lib" != x; then
8514 echo ""
8515 echo "Configure found the following issues:"
8516 echo "$err_msg"
8517 echo ""
8518 echo "See the INSTALL file for hints on how to install the missing libraries and/or"
8519 echo "how to generate (or fetch) manpages:"
8520 echo " https://github.com/RsyncProject/rsync/blob/master/INSTALL.md"
8521 echo ""
8522 echo "To disable one or more features, the relevant configure options are:"
8523 for lib in $no_lib; do
8524 echo " --disable-$lib"
8525 done
8526 echo ""
8527 as_fn_error $? "Aborting configure run" "$LINENO" 5
8528 fi
8529
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5
8531 printf %s "checking if makedev takes 3 args... " >&6; }
8532 if test ${rsync_cv_MAKEDEV_TAKES_3_ARGS+y}
8533 then :
8534 printf %s "(cached) " >&6
8535 else case e in #(
8536 e)
8537 if test "$cross_compiling" = yes
8538 then :
8539 rsync_cv_MAKEDEV_TAKES_3_ARGS=no
8540 else case e in #(
8541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543
8544 #ifdef HAVE_SYS_TYPES_H
8545 #include <sys/types.h>
8546 #endif
8547 #ifdef MAJOR_IN_MKDEV
8548 #include <sys/mkdev.h>
8549 # if !defined makedev && (defined mkdev || defined _WIN32 || defined __WIN32__)
8550 # define makedev mkdev
8551 # endif
8552 #elif defined MAJOR_IN_SYSMACROS
8553 #include <sys/sysmacros.h>
8554 #endif
8555
8556 int main(void)
8557 {
8558 dev_t dev = makedev(0, 5, 7);
8559 if (major(dev) != 5 || minor(dev) != 7)
8560 return 1;
8561 return 0;
8562 }
8563
8564 _ACEOF
8565 if ac_fn_c_try_run "$LINENO"
8566 then :
8567 rsync_cv_MAKEDEV_TAKES_3_ARGS=yes
8568 else case e in #(
8569 e) rsync_cv_MAKEDEV_TAKES_3_ARGS=no ;;
8570 esac
8571 fi
8572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8573 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8574 esac
8575 fi
8576 ;;
8577 esac
8578 fi
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MAKEDEV_TAKES_3_ARGS" >&5
8580 printf "%s\n" "$rsync_cv_MAKEDEV_TAKES_3_ARGS" >&6; }
8581 if test x"$rsync_cv_MAKEDEV_TAKES_3_ARGS" = x"yes"; then
8582
8583 printf "%s\n" "#define MAKEDEV_TAKES_3_ARGS 1" >>confdefs.h
8584
8585 fi
8586
8587 # The cast to long int works around a bug in the HP C Compiler
8588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8589 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8590 # This bug is HP SR number 8606223364.
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8592 printf %s "checking size of int... " >&6; }
8593 if test ${ac_cv_sizeof_int+y}
8594 then :
8595 printf %s "(cached) " >&6
8596 else case e in #(
8597 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
8598 then :
8599
8600 else case e in #(
8601 e) if test "$ac_cv_type_int" = yes; then
8602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8603 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8604 as_fn_error 77 "cannot compute sizeof (int)
8605 See 'config.log' for more details" "$LINENO" 5; }
8606 else
8607 ac_cv_sizeof_int=0
8608 fi ;;
8609 esac
8610 fi
8611 ;;
8612 esac
8613 fi
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8615 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
8616
8617
8618
8619 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
8620
8621
8622 # The cast to long int works around a bug in the HP C Compiler
8623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8624 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8625 # This bug is HP SR number 8606223364.
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8627 printf %s "checking size of long... " >&6; }
8628 if test ${ac_cv_sizeof_long+y}
8629 then :
8630 printf %s "(cached) " >&6
8631 else case e in #(
8632 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
8633 then :
8634
8635 else case e in #(
8636 e) if test "$ac_cv_type_long" = yes; then
8637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8638 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8639 as_fn_error 77 "cannot compute sizeof (long)
8640 See 'config.log' for more details" "$LINENO" 5; }
8641 else
8642 ac_cv_sizeof_long=0
8643 fi ;;
8644 esac
8645 fi
8646 ;;
8647 esac
8648 fi
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8650 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
8651
8652
8653
8654 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
8655
8656
8657 # The cast to long int works around a bug in the HP C Compiler
8658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8659 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8660 # This bug is HP SR number 8606223364.
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
8662 printf %s "checking size of long long... " >&6; }
8663 if test ${ac_cv_sizeof_long_long+y}
8664 then :
8665 printf %s "(cached) " >&6
8666 else case e in #(
8667 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
8668 then :
8669
8670 else case e in #(
8671 e) if test "$ac_cv_type_long_long" = yes; then
8672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8673 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8674 as_fn_error 77 "cannot compute sizeof (long long)
8675 See 'config.log' for more details" "$LINENO" 5; }
8676 else
8677 ac_cv_sizeof_long_long=0
8678 fi ;;
8679 esac
8680 fi
8681 ;;
8682 esac
8683 fi
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
8685 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
8686
8687
8688
8689 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
8690
8691
8692 # The cast to long int works around a bug in the HP C Compiler
8693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8694 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8695 # This bug is HP SR number 8606223364.
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
8697 printf %s "checking size of short... " >&6; }
8698 if test ${ac_cv_sizeof_short+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else case e in #(
8702 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
8703 then :
8704
8705 else case e in #(
8706 e) if test "$ac_cv_type_short" = yes; then
8707 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8708 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8709 as_fn_error 77 "cannot compute sizeof (short)
8710 See 'config.log' for more details" "$LINENO" 5; }
8711 else
8712 ac_cv_sizeof_short=0
8713 fi ;;
8714 esac
8715 fi
8716 ;;
8717 esac
8718 fi
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
8720 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
8721
8722
8723
8724 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
8725
8726
8727 # The cast to long int works around a bug in the HP C Compiler
8728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8729 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8730 # This bug is HP SR number 8606223364.
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
8732 printf %s "checking size of int16_t... " >&6; }
8733 if test ${ac_cv_sizeof_int16_t+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else case e in #(
8737 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"
8738 then :
8739
8740 else case e in #(
8741 e) if test "$ac_cv_type_int16_t" = yes; then
8742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8743 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8744 as_fn_error 77 "cannot compute sizeof (int16_t)
8745 See 'config.log' for more details" "$LINENO" 5; }
8746 else
8747 ac_cv_sizeof_int16_t=0
8748 fi ;;
8749 esac
8750 fi
8751 ;;
8752 esac
8753 fi
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
8755 printf "%s\n" "$ac_cv_sizeof_int16_t" >&6; }
8756
8757
8758
8759 printf "%s\n" "#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t" >>confdefs.h
8760
8761
8762 # The cast to long int works around a bug in the HP C Compiler
8763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8764 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8765 # This bug is HP SR number 8606223364.
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
8767 printf %s "checking size of uint16_t... " >&6; }
8768 if test ${ac_cv_sizeof_uint16_t+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else case e in #(
8772 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"
8773 then :
8774
8775 else case e in #(
8776 e) if test "$ac_cv_type_uint16_t" = yes; then
8777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8778 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8779 as_fn_error 77 "cannot compute sizeof (uint16_t)
8780 See 'config.log' for more details" "$LINENO" 5; }
8781 else
8782 ac_cv_sizeof_uint16_t=0
8783 fi ;;
8784 esac
8785 fi
8786 ;;
8787 esac
8788 fi
8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
8790 printf "%s\n" "$ac_cv_sizeof_uint16_t" >&6; }
8791
8792
8793
8794 printf "%s\n" "#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t" >>confdefs.h
8795
8796
8797 # The cast to long int works around a bug in the HP C Compiler
8798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8799 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8800 # This bug is HP SR number 8606223364.
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
8802 printf %s "checking size of int32_t... " >&6; }
8803 if test ${ac_cv_sizeof_int32_t+y}
8804 then :
8805 printf %s "(cached) " >&6
8806 else case e in #(
8807 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"
8808 then :
8809
8810 else case e in #(
8811 e) if test "$ac_cv_type_int32_t" = yes; then
8812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8813 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8814 as_fn_error 77 "cannot compute sizeof (int32_t)
8815 See 'config.log' for more details" "$LINENO" 5; }
8816 else
8817 ac_cv_sizeof_int32_t=0
8818 fi ;;
8819 esac
8820 fi
8821 ;;
8822 esac
8823 fi
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
8825 printf "%s\n" "$ac_cv_sizeof_int32_t" >&6; }
8826
8827
8828
8829 printf "%s\n" "#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t" >>confdefs.h
8830
8831
8832 # The cast to long int works around a bug in the HP C Compiler
8833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8834 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8835 # This bug is HP SR number 8606223364.
8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
8837 printf %s "checking size of uint32_t... " >&6; }
8838 if test ${ac_cv_sizeof_uint32_t+y}
8839 then :
8840 printf %s "(cached) " >&6
8841 else case e in #(
8842 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"
8843 then :
8844
8845 else case e in #(
8846 e) if test "$ac_cv_type_uint32_t" = yes; then
8847 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8848 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8849 as_fn_error 77 "cannot compute sizeof (uint32_t)
8850 See 'config.log' for more details" "$LINENO" 5; }
8851 else
8852 ac_cv_sizeof_uint32_t=0
8853 fi ;;
8854 esac
8855 fi
8856 ;;
8857 esac
8858 fi
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
8860 printf "%s\n" "$ac_cv_sizeof_uint32_t" >&6; }
8861
8862
8863
8864 printf "%s\n" "#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t" >>confdefs.h
8865
8866
8867 # The cast to long int works around a bug in the HP C Compiler
8868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8869 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8870 # This bug is HP SR number 8606223364.
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
8872 printf %s "checking size of int64_t... " >&6; }
8873 if test ${ac_cv_sizeof_int64_t+y}
8874 then :
8875 printf %s "(cached) " >&6
8876 else case e in #(
8877 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"
8878 then :
8879
8880 else case e in #(
8881 e) if test "$ac_cv_type_int64_t" = yes; then
8882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8883 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8884 as_fn_error 77 "cannot compute sizeof (int64_t)
8885 See 'config.log' for more details" "$LINENO" 5; }
8886 else
8887 ac_cv_sizeof_int64_t=0
8888 fi ;;
8889 esac
8890 fi
8891 ;;
8892 esac
8893 fi
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
8895 printf "%s\n" "$ac_cv_sizeof_int64_t" >&6; }
8896
8897
8898
8899 printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h
8900
8901
8902 # The cast to long int works around a bug in the HP C Compiler
8903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8904 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8905 # This bug is HP SR number 8606223364.
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
8907 printf %s "checking size of off_t... " >&6; }
8908 if test ${ac_cv_sizeof_off_t+y}
8909 then :
8910 printf %s "(cached) " >&6
8911 else case e in #(
8912 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
8913 then :
8914
8915 else case e in #(
8916 e) if test "$ac_cv_type_off_t" = yes; then
8917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8918 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8919 as_fn_error 77 "cannot compute sizeof (off_t)
8920 See 'config.log' for more details" "$LINENO" 5; }
8921 else
8922 ac_cv_sizeof_off_t=0
8923 fi ;;
8924 esac
8925 fi
8926 ;;
8927 esac
8928 fi
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
8930 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
8931
8932
8933
8934 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
8935
8936
8937 # The cast to long int works around a bug in the HP C Compiler
8938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8939 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8940 # This bug is HP SR number 8606223364.
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
8942 printf %s "checking size of off64_t... " >&6; }
8943 if test ${ac_cv_sizeof_off64_t+y}
8944 then :
8945 printf %s "(cached) " >&6
8946 else case e in #(
8947 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"
8948 then :
8949
8950 else case e in #(
8951 e) if test "$ac_cv_type_off64_t" = yes; then
8952 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8953 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8954 as_fn_error 77 "cannot compute sizeof (off64_t)
8955 See 'config.log' for more details" "$LINENO" 5; }
8956 else
8957 ac_cv_sizeof_off64_t=0
8958 fi ;;
8959 esac
8960 fi
8961 ;;
8962 esac
8963 fi
8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
8965 printf "%s\n" "$ac_cv_sizeof_off64_t" >&6; }
8966
8967
8968
8969 printf "%s\n" "#define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t" >>confdefs.h
8970
8971
8972 # The cast to long int works around a bug in the HP C Compiler
8973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8974 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
8975 # This bug is HP SR number 8606223364.
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
8977 printf %s "checking size of time_t... " >&6; }
8978 if test ${ac_cv_sizeof_time_t+y}
8979 then :
8980 printf %s "(cached) " >&6
8981 else case e in #(
8982 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
8983 then :
8984
8985 else case e in #(
8986 e) if test "$ac_cv_type_time_t" = yes; then
8987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8988 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8989 as_fn_error 77 "cannot compute sizeof (time_t)
8990 See 'config.log' for more details" "$LINENO" 5; }
8991 else
8992 ac_cv_sizeof_time_t=0
8993 fi ;;
8994 esac
8995 fi
8996 ;;
8997 esac
8998 fi
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9000 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
9001
9002
9003
9004 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
9005
9006
9007 # The cast to long int works around a bug in the HP C Compiler
9008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9009 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
9010 # This bug is HP SR number 8606223364.
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
9012 printf %s "checking size of char*... " >&6; }
9013 if test ${ac_cv_sizeof_charp+y}
9014 then :
9015 printf %s "(cached) " >&6
9016 else case e in #(
9017 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"
9018 then :
9019
9020 else case e in #(
9021 e) if test "$ac_cv_type_charp" = yes; then
9022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9023 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9024 as_fn_error 77 "cannot compute sizeof (char*)
9025 See 'config.log' for more details" "$LINENO" 5; }
9026 else
9027 ac_cv_sizeof_charp=0
9028 fi ;;
9029 esac
9030 fi
9031 ;;
9032 esac
9033 fi
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
9035 printf "%s\n" "$ac_cv_sizeof_charp" >&6; }
9036
9037
9038
9039 printf "%s\n" "#define SIZEOF_CHARP $ac_cv_sizeof_charp" >>confdefs.h
9040
9041
9042
9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9044 printf %s "checking for inline... " >&6; }
9045 if test ${ac_cv_c_inline+y}
9046 then :
9047 printf %s "(cached) " >&6
9048 else case e in #(
9049 e) ac_cv_c_inline=no
9050 for ac_kw in inline __inline__ __inline; do
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #ifndef __cplusplus
9054 typedef int foo_t;
9055 static $ac_kw foo_t static_foo (void) {return 0; }
9056 $ac_kw foo_t foo (void) {return 0; }
9057 #endif
9058
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"
9061 then :
9062 ac_cv_c_inline=$ac_kw
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9065 test "$ac_cv_c_inline" != no && break
9066 done
9067 ;;
9068 esac
9069 fi
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9071 printf "%s\n" "$ac_cv_c_inline" >&6; }
9072
9073 case $ac_cv_c_inline in
9074 inline | yes) ;;
9075 *)
9076 case $ac_cv_c_inline in
9077 no) ac_val=;;
9078 *) ac_val=$ac_cv_c_inline;;
9079 esac
9080 cat >>confdefs.h <<_ACEOF
9081 #ifndef __cplusplus
9082 #define inline $ac_val
9083 #endif
9084 _ACEOF
9085 ;;
9086 esac
9087
9088
9089
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
9091 printf %s "checking for long double with more range or precision than double... " >&6; }
9092 if test ${ac_cv_type_long_double_wider+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else case e in #(
9096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #include <float.h>
9099 long double const a[] =
9100 {
9101 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
9102 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
9103 };
9104 long double
9105 f (long double x)
9106 {
9107 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
9108 + (x ? f (x) : 'c'));
9109 }
9110
9111 int
9112 main (void)
9113 {
9114 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
9115 + (DBL_MANT_DIG < LDBL_MANT_DIG)
9116 - (LDBL_MAX_EXP < DBL_MAX_EXP)
9117 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
9118 && (int) LDBL_EPSILON == 0
9119 )];
9120 test_array [0] = 0;
9121 return test_array [0];
9122
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"
9128 then :
9129 ac_cv_type_long_double_wider=yes
9130 else case e in #(
9131 e) ac_cv_type_long_double_wider=no ;;
9132 esac
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9135 esac
9136 fi
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
9138 printf "%s\n" "$ac_cv_type_long_double_wider" >&6; }
9139 if test $ac_cv_type_long_double_wider = yes; then
9140
9141 printf "%s\n" "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
9142
9143 fi
9144
9145 ac_cv_c_long_double=$ac_cv_type_long_double_wider
9146 if test $ac_cv_c_long_double = yes; then
9147
9148 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
9149
9150 fi
9151
9152 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
9153 if test "x$ac_cv_type_uid_t" = xyes
9154 then :
9155
9156 else case e in #(
9157 e)
9158 printf "%s\n" "#define uid_t int" >>confdefs.h
9159 ;;
9160 esac
9161 fi
9162
9163 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
9164 if test "x$ac_cv_type_gid_t" = xyes
9165 then :
9166
9167 else case e in #(
9168 e)
9169 printf "%s\n" "#define gid_t int" >>confdefs.h
9170 ;;
9171 esac
9172 fi
9173
9174 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9175 if test "x$ac_cv_type_mode_t" = xyes
9176 then :
9177
9178 printf "%s\n" "#define HAVE_MODE_T 1" >>confdefs.h
9179
9180
9181 fi
9182 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9183 if test "x$ac_cv_type_off_t" = xyes
9184 then :
9185
9186 printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h
9187
9188
9189 fi
9190 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9191 if test "x$ac_cv_type_size_t" = xyes
9192 then :
9193
9194 printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
9195
9196
9197 fi
9198 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9199 if test "x$ac_cv_type_pid_t" = xyes
9200 then :
9201
9202 printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
9203
9204
9205 fi
9206 ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
9207 if test "x$ac_cv_type_id_t" = xyes
9208 then :
9209
9210 printf "%s\n" "#define HAVE_ID_T 1" >>confdefs.h
9211
9212
9213 fi
9214
9215 if test "$cross_compiling" = no; then
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
9217 printf %s "checking type of array argument to getgroups... " >&6; }
9218 if test ${ac_cv_type_getgroups+y}
9219 then :
9220 printf %s "(cached) " >&6
9221 else case e in #(
9222 e) # If AC_TYPE_UID_T says there isn't any gid_t typedef, then we can skip
9223 # everything below.
9224 if test $ac_cv_type_gid_t = no
9225 then :
9226 ac_cv_type_getgroups=int
9227 else case e in #(
9228 e) # Test programs below rely on strict type checking of extern declarations:
9229 # 'extern int getgroups(int, int *); extern int getgroups(int, pid_t *);'
9230 # is valid in C89 if and only if pid_t is a typedef for int. Unlike
9231 # anything involving either an assignment or a function call, compilers
9232 # tend to make this kind of type mismatch a hard error, not just an
9233 # "incompatible pointer types" warning.
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 extern int getgroups(int, gid_t *);
9238 int
9239 main (void)
9240 {
9241 return !(getgroups(0, 0) >= 0);
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_compile "$LINENO"
9247 then :
9248 ac_getgroups_gidarray=yes
9249 else case e in #(
9250 e) ac_getgroups_gidarray=no ;;
9251 esac
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 extern int getgroups(int, int *);
9258 int
9259 main (void)
9260 {
9261 return !(getgroups(0, 0) >= 0);
9262 ;
9263 return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_c_try_compile "$LINENO"
9267 then :
9268 ac_getgroups_intarray=yes
9269 else case e in #(
9270 e) ac_getgroups_intarray=no ;;
9271 esac
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9274
9275 case int:$ac_getgroups_intarray,gid:$ac_getgroups_gidarray in #(
9276 int:yes,gid:no) :
9277 ac_cv_type_getgroups=int ;; #(
9278 int:no,gid:yes) :
9279 ac_cv_type_getgroups=gid_t ;; #(
9280 int:yes,gid:yes) :
9281
9282 # Both programs compiled - this means *either* that getgroups
9283 # was declared with no prototype, in which case we should use int,
9284 # or that it was declared prototyped but gid_t is a typedef for int,
9285 # in which case we should use gid_t. Distinguish the two cases
9286 # by testing if the compiler catches a blatantly incorrect function
9287 # signature for getgroups.
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 $ac_includes_default
9291 extern int getgroups(int, float);
9292 int
9293 main (void)
9294 {
9295 return !(getgroups(0, 0) >= 0);
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"
9301 then :
9302
9303 # Compiler did not catch incorrect argument list;
9304 # getgroups is unprototyped.
9305 ac_cv_type_getgroups=int
9306
9307 else case e in #(
9308 e)
9309 # Compiler caught incorrect argument list;
9310 # gid_t is a typedef for int.
9311 ac_cv_type_getgroups=gid_t
9312 ;;
9313 esac
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9316 ;; #(
9317 *) :
9318
9319 # Both programs failed to compile - this probably means getgroups
9320 # wasn't declared at all. Use 'int', as this is probably a very
9321 # old system where the type _would have been_ int.
9322 ac_cv_type_getgroups=int
9323 ;;
9324 esac
9325 ;;
9326 esac
9327 fi
9328 ;;
9329 esac
9330 fi
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9332 printf "%s\n" "$ac_cv_type_getgroups" >&6; }
9333 printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
9334
9335
9336 else
9337
9338 printf "%s\n" "#define GETGROUPS_T gid_t" >>confdefs.h
9339
9340 fi
9341 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "
9342 #ifdef HAVE_SYS_TYPES_H
9343 #include <sys/types.h>
9344 #endif
9345 #ifdef HAVE_SYS_STAT_H
9346 #include <sys/stat.h>
9347 #endif
9348 #ifdef HAVE_UNISTD_H
9349 #include <unistd.h>
9350 #endif
9351 "
9352 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
9353 then :
9354
9355 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
9356
9357
9358 fi
9359 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
9360 #ifdef HAVE_SYS_TYPES_H
9361 #include <sys/types.h>
9362 #endif
9363 #ifdef HAVE_SYS_STAT_H
9364 #include <sys/stat.h>
9365 #endif
9366 #ifdef HAVE_UNISTD_H
9367 #include <unistd.h>
9368 #endif
9369 "
9370 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
9371 then :
9372
9373 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
9374
9375
9376 fi
9377 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "
9378 #ifdef HAVE_SYS_TYPES_H
9379 #include <sys/types.h>
9380 #endif
9381 #ifdef HAVE_SYS_STAT_H
9382 #include <sys/stat.h>
9383 #endif
9384 #ifdef HAVE_UNISTD_H
9385 #include <unistd.h>
9386 #endif
9387 "
9388 if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
9389 then :
9390
9391 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
9392
9393
9394 fi
9395 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
9396 #ifdef HAVE_SYS_TYPES_H
9397 #include <sys/types.h>
9398 #endif
9399 #ifdef HAVE_SYS_STAT_H
9400 #include <sys/stat.h>
9401 #endif
9402 #ifdef HAVE_UNISTD_H
9403 #include <unistd.h>
9404 #endif
9405 "
9406 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
9407 then :
9408
9409 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
9410
9411
9412 fi
9413
9414
9415
9416 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9417 #include <sys/socket.h>
9418 "
9419 if test "x$ac_cv_type_socklen_t" = xyes
9420 then :
9421
9422 else case e in #(
9423 e)
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
9425 printf %s "checking for socklen_t equivalent... " >&6; }
9426 if test ${rsync_cv_socklen_t_equiv+y}
9427 then :
9428 printf %s "(cached) " >&6
9429 else case e in #(
9430 e)
9431 # Systems have either "struct sockaddr *" or
9432 # "void *" as the second argument to getpeername
9433 rsync_cv_socklen_t_equiv=
9434 for arg2 in "struct sockaddr" void; do
9435 for t in int size_t unsigned long "unsigned long"; do
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438
9439 #include <sys/types.h>
9440 #include <sys/socket.h>
9441
9442 int getpeername (int, $arg2 *, $t *);
9443
9444 int
9445 main (void)
9446 {
9447
9448 $t len;
9449 getpeername(0,0,&len);
9450
9451 ;
9452 return 0;
9453 }
9454 _ACEOF
9455 if ac_fn_c_try_compile "$LINENO"
9456 then :
9457
9458 rsync_cv_socklen_t_equiv="$t"
9459 break
9460
9461 fi
9462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9463 done
9464 done
9465
9466 if test "x$rsync_cv_socklen_t_equiv" = x; then
9467 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
9468 fi
9469 ;;
9470 esac
9471 fi
9472
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
9474 printf "%s\n" "$rsync_cv_socklen_t_equiv" >&6; }
9475
9476 printf "%s\n" "#define socklen_t $rsync_cv_socklen_t_equiv" >>confdefs.h
9477 ;;
9478 esac
9479 fi
9480
9481
9482
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for errno in errno.h" >&5
9484 printf %s "checking for errno in errno.h... " >&6; }
9485 if test ${rsync_cv_errno+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else case e in #(
9489 e)
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #include <errno.h>
9493 int
9494 main (void)
9495 {
9496 int i = errno
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_compile "$LINENO"
9502 then :
9503 rsync_cv_errno=yes
9504 else case e in #(
9505 e) rsync_cv_have_errno_decl=no ;;
9506 esac
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9509 esac
9510 fi
9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_errno" >&5
9512 printf "%s\n" "$rsync_cv_errno" >&6; }
9513 if test x"$rsync_cv_errno" = x"yes"; then
9514
9515 printf "%s\n" "#define HAVE_ERRNO_DECL 1" >>confdefs.h
9516
9517 fi
9518
9519 # The following test taken from the cvs sources
9520 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
9521 # These need checks to be before checks for any other functions that
9522 # might be in the same libraries.
9523 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
9524 # libsocket.so which has a bad implementation of gethostbyname (it
9525 # only looks in /etc/hosts), so we only look for -lsocket if we need
9526 # it.
9527 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9528 if test "x$ac_cv_func_connect" = xyes
9529 then :
9530 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
9531
9532 fi
9533
9534 if test x"$ac_cv_func_connect" = x"no"; then
9535 case "$LIBS" in
9536 *-lnsl*) ;;
9537 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl_s" >&5
9538 printf %s "checking for printf in -lnsl_s... " >&6; }
9539 if test ${ac_cv_lib_nsl_s_printf+y}
9540 then :
9541 printf %s "(cached) " >&6
9542 else case e in #(
9543 e) ac_check_lib_save_LIBS=$LIBS
9544 LIBS="-lnsl_s $LIBS"
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9547
9548 /* Override any GCC internal prototype to avoid an error.
9549 Use char because int might match the return type of a GCC
9550 builtin and then its argument prototype would still apply.
9551 The 'extern "C"' is for builds by C++ compilers;
9552 although this is not generally supported in C code supporting it here
9553 has little cost and some practical benefit (sr 110532). */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char printf (void);
9558 int
9559 main (void)
9560 {
9561 return printf ();
9562 ;
9563 return 0;
9564 }
9565 _ACEOF
9566 if ac_fn_c_try_link "$LINENO"
9567 then :
9568 ac_cv_lib_nsl_s_printf=yes
9569 else case e in #(
9570 e) ac_cv_lib_nsl_s_printf=no ;;
9571 esac
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9574 conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS ;;
9576 esac
9577 fi
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_printf" >&5
9579 printf "%s\n" "$ac_cv_lib_nsl_s_printf" >&6; }
9580 if test "x$ac_cv_lib_nsl_s_printf" = xyes
9581 then :
9582 printf "%s\n" "#define HAVE_LIBNSL_S 1" >>confdefs.h
9583
9584 LIBS="-lnsl_s $LIBS"
9585
9586 fi
9587 ;;
9588 esac
9589 case "$LIBS" in
9590 *-lnsl*) ;;
9591 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl" >&5
9592 printf %s "checking for printf in -lnsl... " >&6; }
9593 if test ${ac_cv_lib_nsl_printf+y}
9594 then :
9595 printf %s "(cached) " >&6
9596 else case e in #(
9597 e) ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-lnsl $LIBS"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply.
9605 The 'extern "C"' is for builds by C++ compilers;
9606 although this is not generally supported in C code supporting it here
9607 has little cost and some practical benefit (sr 110532). */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 char printf (void);
9612 int
9613 main (void)
9614 {
9615 return printf ();
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 if ac_fn_c_try_link "$LINENO"
9621 then :
9622 ac_cv_lib_nsl_printf=yes
9623 else case e in #(
9624 e) ac_cv_lib_nsl_printf=no ;;
9625 esac
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9628 conftest$ac_exeext conftest.$ac_ext
9629 LIBS=$ac_check_lib_save_LIBS ;;
9630 esac
9631 fi
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_printf" >&5
9633 printf "%s\n" "$ac_cv_lib_nsl_printf" >&6; }
9634 if test "x$ac_cv_lib_nsl_printf" = xyes
9635 then :
9636 printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
9637
9638 LIBS="-lnsl $LIBS"
9639
9640 fi
9641 ;;
9642 esac
9643 case "$LIBS" in
9644 *-lsocket*) ;;
9645 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9646 printf %s "checking for connect in -lsocket... " >&6; }
9647 if test ${ac_cv_lib_socket_connect+y}
9648 then :
9649 printf %s "(cached) " >&6
9650 else case e in #(
9651 e) ac_check_lib_save_LIBS=$LIBS
9652 LIBS="-lsocket $LIBS"
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply.
9659 The 'extern "C"' is for builds by C++ compilers;
9660 although this is not generally supported in C code supporting it here
9661 has little cost and some practical benefit (sr 110532). */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 char connect (void);
9666 int
9667 main (void)
9668 {
9669 return connect ();
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 if ac_fn_c_try_link "$LINENO"
9675 then :
9676 ac_cv_lib_socket_connect=yes
9677 else case e in #(
9678 e) ac_cv_lib_socket_connect=no ;;
9679 esac
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS ;;
9684 esac
9685 fi
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9687 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
9688 if test "x$ac_cv_lib_socket_connect" = xyes
9689 then :
9690 printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
9691
9692 LIBS="-lsocket $LIBS"
9693
9694 fi
9695 ;;
9696 esac
9697 case "$LIBS" in
9698 *-linet*) ;;
9699 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -linet" >&5
9700 printf %s "checking for connect in -linet... " >&6; }
9701 if test ${ac_cv_lib_inet_connect+y}
9702 then :
9703 printf %s "(cached) " >&6
9704 else case e in #(
9705 e) ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-linet $LIBS"
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply.
9713 The 'extern "C"' is for builds by C++ compilers;
9714 although this is not generally supported in C code supporting it here
9715 has little cost and some practical benefit (sr 110532). */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char connect (void);
9720 int
9721 main (void)
9722 {
9723 return connect ();
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"
9729 then :
9730 ac_cv_lib_inet_connect=yes
9731 else case e in #(
9732 e) ac_cv_lib_inet_connect=no ;;
9733 esac
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9736 conftest$ac_exeext conftest.$ac_ext
9737 LIBS=$ac_check_lib_save_LIBS ;;
9738 esac
9739 fi
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_connect" >&5
9741 printf "%s\n" "$ac_cv_lib_inet_connect" >&6; }
9742 if test "x$ac_cv_lib_inet_connect" = xyes
9743 then :
9744 printf "%s\n" "#define HAVE_LIBINET 1" >>confdefs.h
9745
9746 LIBS="-linet $LIBS"
9747
9748 fi
9749 ;;
9750 esac
9751 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
9752 test x"$ac_cv_lib_inet_connect" = x"yes"; then
9753 # ac_cv_func_connect=yes
9754 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
9755
9756 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
9757
9758 fi
9759 fi
9760
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
9762 printf %s "checking for library containing inet_ntop... " >&6; }
9763 if test ${ac_cv_search_inet_ntop+y}
9764 then :
9765 printf %s "(cached) " >&6
9766 else case e in #(
9767 e) ac_func_search_save_LIBS=$LIBS
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply.
9774 The 'extern "C"' is for builds by C++ compilers;
9775 although this is not generally supported in C code supporting it here
9776 has little cost and some practical benefit (sr 110532). */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char inet_ntop (void);
9781 int
9782 main (void)
9783 {
9784 return inet_ntop ();
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 for ac_lib in '' resolv
9790 do
9791 if test -z "$ac_lib"; then
9792 ac_res="none required"
9793 else
9794 ac_res=-l$ac_lib
9795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9796 fi
9797 if ac_fn_c_try_link "$LINENO"
9798 then :
9799 ac_cv_search_inet_ntop=$ac_res
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802 conftest$ac_exeext
9803 if test ${ac_cv_search_inet_ntop+y}
9804 then :
9805 break
9806 fi
9807 done
9808 if test ${ac_cv_search_inet_ntop+y}
9809 then :
9810
9811 else case e in #(
9812 e) ac_cv_search_inet_ntop=no ;;
9813 esac
9814 fi
9815 rm conftest.$ac_ext
9816 LIBS=$ac_func_search_save_LIBS ;;
9817 esac
9818 fi
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
9820 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
9821 ac_res=$ac_cv_search_inet_ntop
9822 if test "$ac_res" != no
9823 then :
9824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9825
9826 fi
9827
9828
9829 # For OS X, Solaris, HP-UX, etc.: figure out if -liconv is needed. We'll
9830 # accept either iconv_open or libiconv_open, since some include files map
9831 # the former to the latter.
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
9833 printf %s "checking for library containing iconv_open... " >&6; }
9834 if test ${ac_cv_search_iconv_open+y}
9835 then :
9836 printf %s "(cached) " >&6
9837 else case e in #(
9838 e) ac_func_search_save_LIBS=$LIBS
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply.
9845 The 'extern "C"' is for builds by C++ compilers;
9846 although this is not generally supported in C code supporting it here
9847 has little cost and some practical benefit (sr 110532). */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char iconv_open (void);
9852 int
9853 main (void)
9854 {
9855 return iconv_open ();
9856 ;
9857 return 0;
9858 }
9859 _ACEOF
9860 for ac_lib in '' iconv
9861 do
9862 if test -z "$ac_lib"; then
9863 ac_res="none required"
9864 else
9865 ac_res=-l$ac_lib
9866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9867 fi
9868 if ac_fn_c_try_link "$LINENO"
9869 then :
9870 ac_cv_search_iconv_open=$ac_res
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9873 conftest$ac_exeext
9874 if test ${ac_cv_search_iconv_open+y}
9875 then :
9876 break
9877 fi
9878 done
9879 if test ${ac_cv_search_iconv_open+y}
9880 then :
9881
9882 else case e in #(
9883 e) ac_cv_search_iconv_open=no ;;
9884 esac
9885 fi
9886 rm conftest.$ac_ext
9887 LIBS=$ac_func_search_save_LIBS ;;
9888 esac
9889 fi
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
9891 printf "%s\n" "$ac_cv_search_iconv_open" >&6; }
9892 ac_res=$ac_cv_search_iconv_open
9893 if test "$ac_res" != no
9894 then :
9895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9896
9897 fi
9898
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
9900 printf %s "checking for library containing libiconv_open... " >&6; }
9901 if test ${ac_cv_search_libiconv_open+y}
9902 then :
9903 printf %s "(cached) " >&6
9904 else case e in #(
9905 e) ac_func_search_save_LIBS=$LIBS
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply.
9912 The 'extern "C"' is for builds by C++ compilers;
9913 although this is not generally supported in C code supporting it here
9914 has little cost and some practical benefit (sr 110532). */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char libiconv_open (void);
9919 int
9920 main (void)
9921 {
9922 return libiconv_open ();
9923 ;
9924 return 0;
9925 }
9926 _ACEOF
9927 for ac_lib in '' iconv
9928 do
9929 if test -z "$ac_lib"; then
9930 ac_res="none required"
9931 else
9932 ac_res=-l$ac_lib
9933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9934 fi
9935 if ac_fn_c_try_link "$LINENO"
9936 then :
9937 ac_cv_search_libiconv_open=$ac_res
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9940 conftest$ac_exeext
9941 if test ${ac_cv_search_libiconv_open+y}
9942 then :
9943 break
9944 fi
9945 done
9946 if test ${ac_cv_search_libiconv_open+y}
9947 then :
9948
9949 else case e in #(
9950 e) ac_cv_search_libiconv_open=no ;;
9951 esac
9952 fi
9953 rm conftest.$ac_ext
9954 LIBS=$ac_func_search_save_LIBS ;;
9955 esac
9956 fi
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
9958 printf "%s\n" "$ac_cv_search_libiconv_open" >&6; }
9959 ac_res=$ac_cv_search_libiconv_open
9960 if test "$ac_res" != no
9961 then :
9962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9963
9964 fi
9965
9966
9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9968 printf %s "checking for iconv declaration... " >&6; }
9969 if test ${am_cv_proto_iconv+y}
9970 then :
9971 printf %s "(cached) " >&6
9972 else case e in #(
9973 e)
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976
9977 #if HAVE_STDLIB_H
9978 #include <stdlib.h>
9979 #endif
9980 #include <iconv.h>
9981 extern
9982 #ifdef __cplusplus
9983 "C"
9984 #endif
9985 #if defined(__STDC__) || defined(__cplusplus)
9986 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9987 #else
9988 size_t iconv();
9989 #endif
9990
9991 int
9992 main (void)
9993 {
9994
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"
10000 then :
10001 am_cv_proto_iconv_arg1=""
10002 else case e in #(
10003 e) am_cv_proto_iconv_arg1="const" ;;
10004 esac
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10007 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" ;;
10008 esac
10009 fi
10010
10011 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed 's/( /(/'`
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10013 }$am_cv_proto_iconv" >&5
10014 printf "%s\n" "${ac_t:-
10015 }$am_cv_proto_iconv" >&6; }
10016
10017 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
10018
10019
10020
10021 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
10022 if test "x$ac_cv_func_inet_ntop" = xyes
10023 then :
10024 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
10025
10026 else case e in #(
10027 e) case " $LIBOBJS " in
10028 *" inet_ntop.$ac_objext "* ) ;;
10029 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
10030 ;;
10031 esac
10032 ;;
10033 esac
10034 fi
10035 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
10036 if test "x$ac_cv_func_inet_pton" = xyes
10037 then :
10038 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
10039
10040 else case e in #(
10041 e) case " $LIBOBJS " in
10042 *" inet_pton.$ac_objext "* ) ;;
10043 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
10044 ;;
10045 esac
10046 ;;
10047 esac
10048 fi
10049
10050
10051
10052 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
10054 printf %s "checking for struct addrinfo... " >&6; }
10055 if eval test \${ac_cv_type_$cv+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else case e in #(
10059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061
10062 $ac_includes_default
10063 #include <netdb.h>
10064 int
10065 main (void)
10066 {
10067 struct addrinfo foo;
10068 ;
10069 return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_compile "$LINENO"
10073 then :
10074 eval "ac_cv_type_$cv=yes"
10075 else case e in #(
10076 e) eval "ac_cv_type_$cv=no" ;;
10077 esac
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10080 esac
10081 fi
10082 ac_foo=`eval echo \\$ac_cv_type_$cv`
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
10084 printf "%s\n" "$ac_foo" >&6; }
10085 if test "$ac_foo" = yes; then
10086 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10087 if false; then
10088 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
10089 if test "x$ac_cv_type_struct_addrinfo" = xyes
10090 then :
10091
10092 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
10093
10094
10095 fi
10096
10097 fi
10098
10099 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h
10100
10101 fi
10102
10103
10104 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
10106 printf %s "checking for struct sockaddr_storage... " >&6; }
10107 if eval test \${ac_cv_type_$cv+y}
10108 then :
10109 printf %s "(cached) " >&6
10110 else case e in #(
10111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113
10114 $ac_includes_default
10115
10116 #ifdef HAVE_SYS_TYPES_H
10117 #include <sys/types.h>
10118 #endif
10119 #ifdef HAVE_SYS_SOCKET_H
10120 #include <sys/socket.h>
10121 #endif
10122 int
10123 main (void)
10124 {
10125 struct sockaddr_storage foo;
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"
10131 then :
10132 eval "ac_cv_type_$cv=yes"
10133 else case e in #(
10134 e) eval "ac_cv_type_$cv=no" ;;
10135 esac
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138 esac
10139 fi
10140 ac_foo=`eval echo \\$ac_cv_type_$cv`
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
10142 printf "%s\n" "$ac_foo" >&6; }
10143 if test "$ac_foo" = yes; then
10144 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10145 if false; then
10146 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
10147 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
10148 then :
10149
10150 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
10151
10152
10153 fi
10154
10155 fi
10156
10157 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h
10158
10159 fi
10160
10161
10162 # Irix 6.5 has getaddrinfo but not the corresponding defines, so use
10163 # builtin getaddrinfo if one of the defines don't exist
10164
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
10166 printf %s "checking for egrep -e... " >&6; }
10167 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
10168 then :
10169 printf %s "(cached) " >&6
10170 else case e in #(
10171 e) if test -z "$EGREP_TRADITIONAL"; then
10172 ac_path_EGREP_TRADITIONAL_found=false
10173 # Loop through the user's path and test for each of PROGNAME-LIST
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10176 do
10177 IFS=$as_save_IFS
10178 case $as_dir in #(((
10179 '') as_dir=./ ;;
10180 */) ;;
10181 *) as_dir=$as_dir/ ;;
10182 esac
10183 for ac_prog in grep ggrep
10184 do
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10187 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10188 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10189 # Check for GNU $ac_path_EGREP_TRADITIONAL
10190 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10191 *GNU*)
10192 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10193 #(
10194 *)
10195 ac_count=0
10196 printf %s 0123456789 >"conftest.in"
10197 while :
10198 do
10199 cat "conftest.in" "conftest.in" >"conftest.tmp"
10200 mv "conftest.tmp" "conftest.in"
10201 cp "conftest.in" "conftest.nl"
10202 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10203 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10205 as_fn_arith $ac_count + 1 && ac_count=$as_val
10206 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10207 # Best one so far, save it but keep looking for a better one
10208 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10209 ac_path_EGREP_TRADITIONAL_max=$ac_count
10210 fi
10211 # 10*(2^10) chars as input seems more than enough
10212 test $ac_count -gt 10 && break
10213 done
10214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10215 esac
10216
10217 $ac_path_EGREP_TRADITIONAL_found && break 3
10218 done
10219 done
10220 done
10221 IFS=$as_save_IFS
10222 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10223 :
10224 fi
10225 else
10226 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10227 fi
10228
10229 if test "$ac_cv_path_EGREP_TRADITIONAL"
10230 then :
10231 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
10232 else case e in #(
10233 e) if test -z "$EGREP_TRADITIONAL"; then
10234 ac_path_EGREP_TRADITIONAL_found=false
10235 # Loop through the user's path and test for each of PROGNAME-LIST
10236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10238 do
10239 IFS=$as_save_IFS
10240 case $as_dir in #(((
10241 '') as_dir=./ ;;
10242 */) ;;
10243 *) as_dir=$as_dir/ ;;
10244 esac
10245 for ac_prog in egrep
10246 do
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10249 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10250 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10251 # Check for GNU $ac_path_EGREP_TRADITIONAL
10252 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10253 *GNU*)
10254 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10255 #(
10256 *)
10257 ac_count=0
10258 printf %s 0123456789 >"conftest.in"
10259 while :
10260 do
10261 cat "conftest.in" "conftest.in" >"conftest.tmp"
10262 mv "conftest.tmp" "conftest.in"
10263 cp "conftest.in" "conftest.nl"
10264 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10265 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10267 as_fn_arith $ac_count + 1 && ac_count=$as_val
10268 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10269 # Best one so far, save it but keep looking for a better one
10270 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10271 ac_path_EGREP_TRADITIONAL_max=$ac_count
10272 fi
10273 # 10*(2^10) chars as input seems more than enough
10274 test $ac_count -gt 10 && break
10275 done
10276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10277 esac
10278
10279 $ac_path_EGREP_TRADITIONAL_found && break 3
10280 done
10281 done
10282 done
10283 IFS=$as_save_IFS
10284 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10286 fi
10287 else
10288 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10289 fi
10290 ;;
10291 esac
10292 fi ;;
10293 esac
10294 fi
10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
10296 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
10297 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
10298
10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defines needed by getaddrinfo exist" >&5
10300 printf %s "checking whether defines needed by getaddrinfo exist... " >&6; }
10301 if test ${rsync_cv_HAVE_GETADDR_DEFINES+y}
10302 then :
10303 printf %s "(cached) " >&6
10304 else case e in #(
10305 e)
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10308
10309 #ifdef HAVE_SYS_TYPES_H
10310 #include <sys/types.h>
10311 #endif
10312 #ifdef HAVE_SYS_SOCKET_H
10313 #include <sys/socket.h>
10314 #endif
10315 #ifdef HAVE_NETDB_H
10316 #include <netdb.h>
10317 #endif
10318 #ifdef AI_PASSIVE
10319 yes
10320 #endif
10321 _ACEOF
10322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10323 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
10324 then :
10325 rsync_cv_HAVE_GETADDR_DEFINES=yes
10326 else case e in #(
10327 e) rsync_cv_HAVE_GETADDR_DEFINES=no ;;
10328 esac
10329 fi
10330 rm -rf conftest*
10331 ;;
10332 esac
10333 fi
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETADDR_DEFINES" >&5
10335 printf "%s\n" "$rsync_cv_HAVE_GETADDR_DEFINES" >&6; }
10336 if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" && test x"$ac_cv_type_struct_addrinfo" = x"yes"
10337 then :
10338
10339 # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
10340 # something else so we must include <netdb.h> to get the
10341 # redefinition.
10342
10343 for ac_func in getaddrinfo
10344 do :
10345 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
10346 if test "x$ac_cv_func_getaddrinfo" = xyes
10347 then :
10348 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
10349
10350 else case e in #(
10351 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo by including <netdb.h>" >&5
10352 printf %s "checking for getaddrinfo by including <netdb.h>... " >&6; }
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355
10356 #ifdef HAVE_SYS_TYPES_H
10357 #include <sys/types.h>
10358 #endif
10359 #ifdef HAVE_SYS_SOCKET_H
10360 #include <sys/socket.h>
10361 #endif
10362 #include <netdb.h>
10363 int
10364 main (void)
10365 {
10366 getaddrinfo(NULL, NULL, NULL, NULL);
10367 ;
10368 return 0;
10369 }
10370 _ACEOF
10371 if ac_fn_c_try_link "$LINENO"
10372 then :
10373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10374 printf "%s\n" "yes" >&6; }
10375
10376 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
10377
10378 else case e in #(
10379 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 printf "%s\n" "no" >&6; }
10381 case " $LIBOBJS " in
10382 *" getaddrinfo.$ac_objext "* ) ;;
10383 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
10384 ;;
10385 esac
10386 ;;
10387 esac
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10390 conftest$ac_exeext conftest.$ac_ext ;;
10391 esac
10392 fi
10393
10394 done
10395
10396 else case e in #(
10397 e) case " $LIBOBJS " in
10398 *" getaddrinfo.$ac_objext "* ) ;;
10399 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
10400 ;;
10401 esac
10402 ;;
10403 esac
10404 fi
10405
10406 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
10407 #ifdef HAVE_SYS_TYPES_H
10408 #include <sys/types.h>
10409 #endif
10410 #ifdef HAVE_SYS_SOCKET_H
10411 #include <sys/socket.h>
10412 #endif
10413
10414 "
10415 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
10416 then :
10417
10418 printf "%s\n" "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
10419
10420 fi
10421
10422
10423 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
10424 #ifdef HAVE_SYS_TYPES_H
10425 #include <sys/types.h>
10426 #endif
10427 #ifdef HAVE_SYS_SOCKET_H
10428 #include <sys/socket.h>
10429 #endif
10430 #include <netinet/in.h>
10431
10432 "
10433 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
10434 then :
10435
10436 printf "%s\n" "#define HAVE_SOCKADDR_IN_LEN 1" >>confdefs.h
10437
10438 fi
10439
10440
10441 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
10442 #ifdef HAVE_SYS_TYPES_H
10443 #include <sys/types.h>
10444 #endif
10445 #ifdef HAVE_SYS_SOCKET_H
10446 #include <sys/socket.h>
10447 #endif
10448 #include <netinet/in.h>
10449
10450 "
10451 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
10452 then :
10453
10454 printf "%s\n" "#define HAVE_SOCKADDR_UN_LEN 1" >>confdefs.h
10455
10456 fi
10457
10458
10459 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
10460 #ifdef HAVE_SYS_TYPES_H
10461 #include <sys/types.h>
10462 #endif
10463 #ifdef HAVE_SYS_SOCKET_H
10464 #include <sys/socket.h>
10465 #endif
10466 #include <netinet/in.h>
10467
10468 "
10469 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes
10470 then :
10471
10472 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SCOPE_ID 1" >>confdefs.h
10473
10474 fi
10475
10476
10477
10478 cv=`echo "struct stat64" | sed 'y%./+- %__p__%'`
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
10480 printf %s "checking for struct stat64... " >&6; }
10481 if eval test \${ac_cv_type_$cv+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else case e in #(
10485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487
10488 $ac_includes_default
10489 #include <stdio.h>
10490 #if HAVE_SYS_TYPES_H
10491 # include <sys/types.h>
10492 #endif
10493 #if HAVE_SYS_STAT_H
10494 # include <sys/stat.h>
10495 #endif
10496 #if STDC_HEADERS
10497 # include <stdlib.h>
10498 # include <stddef.h>
10499 #else
10500 # if HAVE_STDLIB_H
10501 # include <stdlib.h>
10502 # endif
10503 #endif
10504
10505 int
10506 main (void)
10507 {
10508 struct stat64 foo;
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 if ac_fn_c_try_compile "$LINENO"
10514 then :
10515 eval "ac_cv_type_$cv=yes"
10516 else case e in #(
10517 e) eval "ac_cv_type_$cv=no" ;;
10518 esac
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10521 esac
10522 fi
10523 ac_foo=`eval echo \\$ac_cv_type_$cv`
10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
10525 printf "%s\n" "$ac_foo" >&6; }
10526 if test "$ac_foo" = yes; then
10527 ac_tr_hdr=HAVE_`echo struct stat64 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10528 if false; then
10529 ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "$ac_includes_default"
10530 if test "x$ac_cv_type_struct_stat64" = xyes
10531 then :
10532
10533 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
10534
10535
10536 fi
10537
10538 fi
10539
10540 printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h
10541
10542 fi
10543
10544
10545 # if we can't find strcasecmp, look in -lresolv (for Unixware at least)
10546 #
10547
10548 for ac_func in poll
10549 do :
10550 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
10551 if test "x$ac_cv_func_poll" = xyes
10552 then :
10553 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
10554
10555 else case e in #(
10556 e) as_fn_error $? "rsync requires poll(); please report the platform to the rsync developers" "$LINENO" 5 ;;
10557 esac
10558 fi
10559
10560 done
10561 if test x"$ac_cv_header_poll_h" != x"yes"; then
10562 as_fn_error $? "rsync requires <poll.h>; please report the platform to the rsync developers" "$LINENO" 5
10563 fi
10564
10565 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10566 if test "x$ac_cv_func_strcasecmp" = xyes
10567 then :
10568 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
10569
10570 fi
10571
10572 if test x"$ac_cv_func_strcasecmp" = x"no"; then
10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
10574 printf %s "checking for strcasecmp in -lresolv... " >&6; }
10575 if test ${ac_cv_lib_resolv_strcasecmp+y}
10576 then :
10577 printf %s "(cached) " >&6
10578 else case e in #(
10579 e) ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-lresolv $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply.
10587 The 'extern "C"' is for builds by C++ compilers;
10588 although this is not generally supported in C code supporting it here
10589 has little cost and some practical benefit (sr 110532). */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 char strcasecmp (void);
10594 int
10595 main (void)
10596 {
10597 return strcasecmp ();
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"
10603 then :
10604 ac_cv_lib_resolv_strcasecmp=yes
10605 else case e in #(
10606 e) ac_cv_lib_resolv_strcasecmp=no ;;
10607 esac
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS ;;
10612 esac
10613 fi
10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
10615 printf "%s\n" "$ac_cv_lib_resolv_strcasecmp" >&6; }
10616 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes
10617 then :
10618 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
10619
10620 LIBS="-lresolv $LIBS"
10621
10622 fi
10623
10624 fi
10625
10626 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
10627 if test "x$ac_cv_func_aclsort" = xyes
10628 then :
10629 printf "%s\n" "#define HAVE_ACLSORT 1" >>confdefs.h
10630
10631 fi
10632
10633 if test x"$ac_cv_func_aclsort" = x"no"; then
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aclsort in -lsec" >&5
10635 printf %s "checking for aclsort in -lsec... " >&6; }
10636 if test ${ac_cv_lib_sec_aclsort+y}
10637 then :
10638 printf %s "(cached) " >&6
10639 else case e in #(
10640 e) ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lsec $LIBS"
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply.
10648 The 'extern "C"' is for builds by C++ compilers;
10649 although this is not generally supported in C code supporting it here
10650 has little cost and some practical benefit (sr 110532). */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char aclsort (void);
10655 int
10656 main (void)
10657 {
10658 return aclsort ();
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"
10664 then :
10665 ac_cv_lib_sec_aclsort=yes
10666 else case e in #(
10667 e) ac_cv_lib_sec_aclsort=no ;;
10668 esac
10669 fi
10670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10671 conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS ;;
10673 esac
10674 fi
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_aclsort" >&5
10676 printf "%s\n" "$ac_cv_lib_sec_aclsort" >&6; }
10677 if test "x$ac_cv_lib_sec_aclsort" = xyes
10678 then :
10679 printf "%s\n" "#define HAVE_LIBSEC 1" >>confdefs.h
10680
10681 LIBS="-lsec $LIBS"
10682
10683 fi
10684
10685 fi
10686
10687
10688
10689
10690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
10691 printf %s "checking whether utime accepts a null argument... " >&6; }
10692 if test ${ac_cv_func_utime_null+y}
10693 then :
10694 printf %s "(cached) " >&6
10695 else case e in #(
10696 e) rm -f conftest.data; >conftest.data
10697 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
10698 if test "$cross_compiling" = yes
10699 then :
10700 ac_cv_func_utime_null='guessing yes'
10701 else case e in #(
10702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 $ac_includes_default
10705 #ifdef HAVE_UTIME_H
10706 # include <utime.h>
10707 #endif
10708 int
10709 main (void)
10710 {
10711 struct stat s, t;
10712 return ! (stat ("conftest.data", &s) == 0
10713 && utime ("conftest.data", 0) == 0
10714 && stat ("conftest.data", &t) == 0
10715 && t.st_mtime >= s.st_mtime
10716 && t.st_mtime - s.st_mtime < 120);
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_run "$LINENO"
10722 then :
10723 ac_cv_func_utime_null=yes
10724 else case e in #(
10725 e) ac_cv_func_utime_null=no ;;
10726 esac
10727 fi
10728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10729 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10730 esac
10731 fi
10732 ;;
10733 esac
10734 fi
10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
10736 printf "%s\n" "$ac_cv_func_utime_null" >&6; }
10737 if test "x$ac_cv_func_utime_null" != xno; then
10738 ac_cv_func_utime_null=yes
10739
10740 printf "%s\n" "#define HAVE_UTIME_NULL 1" >>confdefs.h
10741
10742 fi
10743 rm -f conftest.data
10744
10745 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10746 if test "x$ac_cv_type_size_t" = xyes
10747 then :
10748
10749 else case e in #(
10750 e)
10751 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
10752 ;;
10753 esac
10754 fi
10755
10756 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10757 # for constant arguments. Useless!
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10759 printf %s "checking for working alloca.h... " >&6; }
10760 if test ${ac_cv_working_alloca_h+y}
10761 then :
10762 printf %s "(cached) " >&6
10763 else case e in #(
10764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 #include <alloca.h>
10767 int
10768 main (void)
10769 {
10770 char *p = (char *) alloca (2 * sizeof (int));
10771 if (p) return 0;
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"
10777 then :
10778 ac_cv_working_alloca_h=yes
10779 else case e in #(
10780 e) ac_cv_working_alloca_h=no ;;
10781 esac
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10784 conftest$ac_exeext conftest.$ac_ext ;;
10785 esac
10786 fi
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10788 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
10789 if test $ac_cv_working_alloca_h = yes; then
10790
10791 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
10792
10793 fi
10794
10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10796 printf %s "checking for alloca... " >&6; }
10797 if test ${ac_cv_func_alloca_works+y}
10798 then :
10799 printf %s "(cached) " >&6
10800 else case e in #(
10801 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
10802 if test "$ac_cv_func_alloca_works" != yes
10803 then :
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 #include <stdlib.h>
10807 #include <stddef.h>
10808 #ifndef alloca
10809 # ifdef __GNUC__
10810 # define alloca __builtin_alloca
10811 # elif defined _MSC_VER
10812 # include <malloc.h>
10813 # define alloca _alloca
10814 # else
10815 # ifdef __cplusplus
10816 extern "C"
10817 # endif
10818 void *alloca (size_t);
10819 # endif
10820 #endif
10821
10822 int
10823 main (void)
10824 {
10825 char *p = (char *) alloca (1);
10826 if (p) return 0;
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"
10832 then :
10833 ac_cv_func_alloca_works=yes
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10836 conftest$ac_exeext conftest.$ac_ext
10837 fi ;;
10838 esac
10839 fi
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10841 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
10842
10843 if test $ac_cv_func_alloca_works = yes; then
10844
10845 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
10846
10847 else
10848 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10849 # that cause trouble. Some versions do not even contain alloca or
10850 # contain a buggy version. If you still want to use their alloca,
10851 # use ar to extract alloca.o from them instead of compiling alloca.c.
10852
10853 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10854
10855 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
10856
10857
10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10859 printf %s "checking stack direction for C alloca... " >&6; }
10860 if test ${ac_cv_c_stack_direction+y}
10861 then :
10862 printf %s "(cached) " >&6
10863 else case e in #(
10864 e) if test "$cross_compiling" = yes
10865 then :
10866 ac_cv_c_stack_direction=0
10867 else case e in #(
10868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 int
10872 find_stack_direction (int *addr, int depth)
10873 {
10874 int dir, dummy = 0;
10875 if (! addr)
10876 addr = &dummy;
10877 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10878 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10879 return dir + dummy;
10880 }
10881
10882 int
10883 main (int argc, char **argv)
10884 {
10885 return find_stack_direction (0, argc + !argv + 20) < 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_run "$LINENO"
10889 then :
10890 ac_cv_c_stack_direction=1
10891 else case e in #(
10892 e) ac_cv_c_stack_direction=-1 ;;
10893 esac
10894 fi
10895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10896 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10897 esac
10898 fi
10899 ;;
10900 esac
10901 fi
10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10903 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
10904 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
10905
10906
10907 fi
10908
10909 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
10910 if test "x$ac_cv_func_waitpid" = xyes
10911 then :
10912 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
10913
10914 fi
10915 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
10916 if test "x$ac_cv_func_wait4" = xyes
10917 then :
10918 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
10919
10920 fi
10921 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
10922 if test "x$ac_cv_func_getcwd" = xyes
10923 then :
10924 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
10925
10926 fi
10927 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
10928 if test "x$ac_cv_func_chown" = xyes
10929 then :
10930 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
10931
10932 fi
10933 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
10934 if test "x$ac_cv_func_chmod" = xyes
10935 then :
10936 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
10937
10938 fi
10939 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
10940 if test "x$ac_cv_func_lchmod" = xyes
10941 then :
10942 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
10943
10944 fi
10945 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
10946 if test "x$ac_cv_func_mknod" = xyes
10947 then :
10948 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
10949
10950 fi
10951 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
10952 if test "x$ac_cv_func_mkfifo" = xyes
10953 then :
10954 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
10955
10956 fi
10957 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
10958 if test "x$ac_cv_func_fdopendir" = xyes
10959 then :
10960 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
10961
10962 fi
10963 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
10964 if test "x$ac_cv_func_getrlimit" = xyes
10965 then :
10966 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
10967
10968 fi
10969 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
10970 if test "x$ac_cv_func_setrlimit" = xyes
10971 then :
10972 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
10973
10974 fi
10975 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
10976 if test "x$ac_cv_func_fchmod" = xyes
10977 then :
10978 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
10979
10980 fi
10981 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
10982 if test "x$ac_cv_func_fstat" = xyes
10983 then :
10984 printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
10985
10986 fi
10987 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10988 if test "x$ac_cv_func_ftruncate" = xyes
10989 then :
10990 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
10991
10992 fi
10993 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
10994 if test "x$ac_cv_func_strchr" = xyes
10995 then :
10996 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
10997
10998 fi
10999 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
11000 if test "x$ac_cv_func_readlink" = xyes
11001 then :
11002 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
11003
11004 fi
11005 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
11006 if test "x$ac_cv_func_link" = xyes
11007 then :
11008 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
11009
11010 fi
11011 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
11012 if test "x$ac_cv_func_utime" = xyes
11013 then :
11014 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
11015
11016 fi
11017 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
11018 if test "x$ac_cv_func_utimes" = xyes
11019 then :
11020 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
11021
11022 fi
11023 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
11024 if test "x$ac_cv_func_lutimes" = xyes
11025 then :
11026 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
11027
11028 fi
11029 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11030 if test "x$ac_cv_func_strftime" = xyes
11031 then :
11032 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
11033
11034 fi
11035 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
11036 if test "x$ac_cv_func_chflags" = xyes
11037 then :
11038 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
11039
11040 fi
11041 ac_fn_c_check_func "$LINENO" "getattrlist" "ac_cv_func_getattrlist"
11042 if test "x$ac_cv_func_getattrlist" = xyes
11043 then :
11044 printf "%s\n" "#define HAVE_GETATTRLIST 1" >>confdefs.h
11045
11046 fi
11047 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
11048 if test "x$ac_cv_func_mktime" = xyes
11049 then :
11050 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
11051
11052 fi
11053 ac_fn_c_check_func "$LINENO" "innetgr" "ac_cv_func_innetgr"
11054 if test "x$ac_cv_func_innetgr" = xyes
11055 then :
11056 printf "%s\n" "#define HAVE_INNETGR 1" >>confdefs.h
11057
11058 fi
11059 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
11060 if test "x$ac_cv_func_linkat" = xyes
11061 then :
11062 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
11063
11064 fi
11065 ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat"
11066 if test "x$ac_cv_func_mknodat" = xyes
11067 then :
11068 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
11069
11070 fi
11071 ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
11072 if test "x$ac_cv_func_mkfifoat" = xyes
11073 then :
11074 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
11075
11076 fi
11077 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11078 if test "x$ac_cv_func_memmove" = xyes
11079 then :
11080 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
11081
11082 fi
11083 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
11084 if test "x$ac_cv_func_lchown" = xyes
11085 then :
11086 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
11087
11088 fi
11089 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
11090 if test "x$ac_cv_func_vsnprintf" = xyes
11091 then :
11092 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
11093
11094 fi
11095 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11096 if test "x$ac_cv_func_snprintf" = xyes
11097 then :
11098 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
11099
11100 fi
11101 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
11102 if test "x$ac_cv_func_vasprintf" = xyes
11103 then :
11104 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
11105
11106 fi
11107 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11108 if test "x$ac_cv_func_asprintf" = xyes
11109 then :
11110 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11111
11112 fi
11113 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
11114 if test "x$ac_cv_func_setsid" = xyes
11115 then :
11116 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
11117
11118 fi
11119 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
11120 if test "x$ac_cv_func_strpbrk" = xyes
11121 then :
11122 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
11123
11124 fi
11125 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11126 if test "x$ac_cv_func_strlcat" = xyes
11127 then :
11128 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
11129
11130 fi
11131 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11132 if test "x$ac_cv_func_strlcpy" = xyes
11133 then :
11134 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11135
11136 fi
11137 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
11138 if test "x$ac_cv_func_stpcpy" = xyes
11139 then :
11140 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
11141
11142 fi
11143 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
11144 if test "x$ac_cv_func_strtol" = xyes
11145 then :
11146 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
11147
11148 fi
11149 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
11150 if test "x$ac_cv_func_mallinfo" = xyes
11151 then :
11152 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
11153
11154 fi
11155 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
11156 if test "x$ac_cv_func_mallinfo2" = xyes
11157 then :
11158 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
11159
11160 fi
11161 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
11162 if test "x$ac_cv_func_getgroups" = xyes
11163 then :
11164 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
11165
11166 fi
11167 ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups"
11168 if test "x$ac_cv_func_setgroups" = xyes
11169 then :
11170 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
11171
11172 fi
11173 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
11174 if test "x$ac_cv_func_geteuid" = xyes
11175 then :
11176 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
11177
11178 fi
11179 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
11180 if test "x$ac_cv_func_getegid" = xyes
11181 then :
11182 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
11183
11184 fi
11185 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11186 if test "x$ac_cv_func_setlocale" = xyes
11187 then :
11188 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
11189
11190 fi
11191 ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode"
11192 if test "x$ac_cv_func_setmode" = xyes
11193 then :
11194 printf "%s\n" "#define HAVE_SETMODE 1" >>confdefs.h
11195
11196 fi
11197 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
11198 if test "x$ac_cv_func_open64" = xyes
11199 then :
11200 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
11201
11202 fi
11203 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
11204 if test "x$ac_cv_func_lseek64" = xyes
11205 then :
11206 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
11207
11208 fi
11209 ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64"
11210 if test "x$ac_cv_func_mkstemp64" = xyes
11211 then :
11212 printf "%s\n" "#define HAVE_MKSTEMP64 1" >>confdefs.h
11213
11214 fi
11215 ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
11216 if test "x$ac_cv_func_mtrace" = xyes
11217 then :
11218 printf "%s\n" "#define HAVE_MTRACE 1" >>confdefs.h
11219
11220 fi
11221 ac_fn_c_check_func "$LINENO" "va_copy" "ac_cv_func_va_copy"
11222 if test "x$ac_cv_func_va_copy" = xyes
11223 then :
11224 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
11225
11226 fi
11227 ac_fn_c_check_func "$LINENO" "__va_copy" "ac_cv_func___va_copy"
11228 if test "x$ac_cv_func___va_copy" = xyes
11229 then :
11230 printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h
11231
11232 fi
11233 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
11234 if test "x$ac_cv_func_seteuid" = xyes
11235 then :
11236 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
11237
11238 fi
11239 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11240 if test "x$ac_cv_func_strerror" = xyes
11241 then :
11242 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
11243
11244 fi
11245 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
11246 if test "x$ac_cv_func_putenv" = xyes
11247 then :
11248 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
11249
11250 fi
11251 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
11252 if test "x$ac_cv_func_iconv_open" = xyes
11253 then :
11254 printf "%s\n" "#define HAVE_ICONV_OPEN 1" >>confdefs.h
11255
11256 fi
11257 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
11258 if test "x$ac_cv_func_locale_charset" = xyes
11259 then :
11260 printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
11261
11262 fi
11263 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
11264 if test "x$ac_cv_func_nl_langinfo" = xyes
11265 then :
11266 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
11267
11268 fi
11269 ac_fn_c_check_func "$LINENO" "getxattr" "ac_cv_func_getxattr"
11270 if test "x$ac_cv_func_getxattr" = xyes
11271 then :
11272 printf "%s\n" "#define HAVE_GETXATTR 1" >>confdefs.h
11273
11274 fi
11275 ac_fn_c_check_func "$LINENO" "extattr_get_link" "ac_cv_func_extattr_get_link"
11276 if test "x$ac_cv_func_extattr_get_link" = xyes
11277 then :
11278 printf "%s\n" "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
11279
11280 fi
11281 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
11282 if test "x$ac_cv_func_sigaction" = xyes
11283 then :
11284 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
11285
11286 fi
11287 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
11288 if test "x$ac_cv_func_sigprocmask" = xyes
11289 then :
11290 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
11291
11292 fi
11293 ac_fn_c_check_func "$LINENO" "setattrlist" "ac_cv_func_setattrlist"
11294 if test "x$ac_cv_func_setattrlist" = xyes
11295 then :
11296 printf "%s\n" "#define HAVE_SETATTRLIST 1" >>confdefs.h
11297
11298 fi
11299 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
11300 if test "x$ac_cv_func_getgrouplist" = xyes
11301 then :
11302 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
11303
11304 fi
11305 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
11306 if test "x$ac_cv_func_initgroups" = xyes
11307 then :
11308 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
11309
11310 fi
11311 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
11312 if test "x$ac_cv_func_utimensat" = xyes
11313 then :
11314 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
11315
11316 fi
11317 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
11318 if test "x$ac_cv_func_futimens" = xyes
11319 then :
11320 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
11321
11322 fi
11323 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
11324 if test "x$ac_cv_func_posix_fallocate" = xyes
11325 then :
11326 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11327
11328 fi
11329 ac_fn_c_check_func "$LINENO" "attropen" "ac_cv_func_attropen"
11330 if test "x$ac_cv_func_attropen" = xyes
11331 then :
11332 printf "%s\n" "#define HAVE_ATTROPEN 1" >>confdefs.h
11333
11334 fi
11335 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
11336 if test "x$ac_cv_func_setvbuf" = xyes
11337 then :
11338 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
11339
11340 fi
11341 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
11342 if test "x$ac_cv_func_nanosleep" = xyes
11343 then :
11344 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
11345
11346 fi
11347 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
11348 if test "x$ac_cv_func_usleep" = xyes
11349 then :
11350 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
11351
11352 fi
11353 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
11354 if test "x$ac_cv_func_setenv" = xyes
11355 then :
11356 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
11357
11358 fi
11359 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11360 if test "x$ac_cv_func_unsetenv" = xyes
11361 then :
11362 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
11363
11364 fi
11365
11366
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
11368 printf %s "checking for dirfd... " >&6; }
11369 if test ${rsync_cv_HAVE_DIRFD+y}
11370 then :
11371 printf %s "(cached) " >&6
11372 else case e in #(
11373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375 #include <dirent.h>
11376 int
11377 main (void)
11378 {
11379 DIR *d = opendir("."); return d ? dirfd(d) < -1 : 0;
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"
11385 then :
11386 rsync_cv_HAVE_DIRFD=yes
11387 else case e in #(
11388 e) rsync_cv_HAVE_DIRFD=no ;;
11389 esac
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11392 conftest$ac_exeext conftest.$ac_ext ;;
11393 esac
11394 fi
11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_DIRFD" >&5
11396 printf "%s\n" "$rsync_cv_HAVE_DIRFD" >&6; }
11397 if test x"$rsync_cv_HAVE_DIRFD" = x"yes"; then
11398
11399 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
11400
11401 fi
11402
11403 if test x"$ac_cv_func_iconv_open" != x"yes"; then
11404 ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
11405 if test "x$ac_cv_func_libiconv_open" = xyes
11406 then :
11407 ac_cv_func_iconv_open=yes; printf "%s\n" "#define HAVE_ICONV_OPEN 1" >>confdefs.h
11408
11409 fi
11410
11411 fi
11412
11413
11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useable fallocate" >&5
11415 printf %s "checking for useable fallocate... " >&6; }
11416 if test ${rsync_cv_have_fallocate+y}
11417 then :
11418 printf %s "(cached) " >&6
11419 else case e in #(
11420 e)
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 #include <fcntl.h>
11424 #ifdef HAVE_SYS_TYPES_H
11425 #include <sys/types.h>
11426 #endif
11427 int
11428 main (void)
11429 {
11430 fallocate(0, 0, 0, 0);
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"
11436 then :
11437 rsync_cv_have_fallocate=yes
11438 else case e in #(
11439 e) rsync_cv_have_fallocate=no ;;
11440 esac
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11443 conftest$ac_exeext conftest.$ac_ext ;;
11444 esac
11445 fi
11446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_fallocate" >&5
11447 printf "%s\n" "$rsync_cv_have_fallocate" >&6; }
11448 if test x"$rsync_cv_have_fallocate" = x"yes"; then
11449
11450 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
11451
11452 fi
11453
11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_PUNCH_HOLE" >&5
11455 printf %s "checking for FALLOC_FL_PUNCH_HOLE... " >&6; }
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458
11459 #define _GNU_SOURCE 1
11460 #include <linux/falloc.h>
11461 #ifndef FALLOC_FL_PUNCH_HOLE
11462 #error FALLOC_FL_PUNCH_HOLE is missing
11463 #endif
11464
11465 _ACEOF
11466 if ac_fn_c_try_cpp "$LINENO"
11467 then :
11468
11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 printf "%s\n" "yes" >&6; }
11471
11472 printf "%s\n" "#define HAVE_FALLOC_FL_PUNCH_HOLE 1" >>confdefs.h
11473
11474
11475 else case e in #(
11476 e)
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 printf "%s\n" "no" >&6; }
11479
11480 ;;
11481 esac
11482 fi
11483 rm -f conftest.err conftest.i conftest.$ac_ext
11484
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_ZERO_RANGE" >&5
11486 printf %s "checking for FALLOC_FL_ZERO_RANGE... " >&6; }
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489
11490 #define _GNU_SOURCE 1
11491 #include <linux/falloc.h>
11492 #ifndef FALLOC_FL_ZERO_RANGE
11493 #error FALLOC_FL_ZERO_RANGE is missing
11494 #endif
11495
11496 _ACEOF
11497 if ac_fn_c_try_cpp "$LINENO"
11498 then :
11499
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11501 printf "%s\n" "yes" >&6; }
11502
11503 printf "%s\n" "#define HAVE_FALLOC_FL_ZERO_RANGE 1" >>confdefs.h
11504
11505
11506 else case e in #(
11507 e)
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 printf "%s\n" "no" >&6; }
11510
11511 ;;
11512 esac
11513 fi
11514 rm -f conftest.err conftest.i conftest.$ac_ext
11515
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11517 printf %s "checking for SYS_fallocate... " >&6; }
11518 if test ${rsync_cv_have_sys_fallocate+y}
11519 then :
11520 printf %s "(cached) " >&6
11521 else case e in #(
11522 e)
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 #include <sys/syscall.h>
11526 #ifdef HAVE_UNISTD_H
11527 #include <unistd.h>
11528 #endif
11529 #ifdef HAVE_SYS_TYPES_H
11530 #include <sys/types.h>
11531 #endif
11532 int
11533 main (void)
11534 {
11535 syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_compile "$LINENO"
11541 then :
11542 rsync_cv_have_sys_fallocate=yes
11543 else case e in #(
11544 e) rsync_cv_have_sys_fallocate=no ;;
11545 esac
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11548 esac
11549 fi
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_sys_fallocate" >&5
11551 printf "%s\n" "$rsync_cv_have_sys_fallocate" >&6; }
11552 if test x"$rsync_cv_have_sys_fallocate" = x"yes"; then
11553
11554 printf "%s\n" "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11555
11556 fi
11557
11558 if test x"$ac_cv_func_posix_fallocate" = x"yes"; then
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether posix_fallocate is efficient" >&5
11560 printf %s "checking whether posix_fallocate is efficient... " >&6; }
11561 case $host_os in
11562 *cygwin*)
11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11564 printf "%s\n" "yes" >&6; }
11565
11566 printf "%s\n" "#define HAVE_EFFICIENT_POSIX_FALLOCATE 1" >>confdefs.h
11567
11568 ;;
11569 *)
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 printf "%s\n" "no" >&6; }
11572 ;;
11573 esac
11574 fi
11575
11576
11577 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
11578 if test "x$ac_cv_func_getpgrp" = xyes
11579 then :
11580 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
11581
11582 fi
11583 ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
11584 if test "x$ac_cv_func_tcgetpgrp" = xyes
11585 then :
11586 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
11587
11588 fi
11589
11590 if test $ac_cv_func_getpgrp = yes; then
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11592 printf %s "checking whether getpgrp requires zero arguments... " >&6; }
11593 if test ${ac_cv_func_getpgrp_void+y}
11594 then :
11595 printf %s "(cached) " >&6
11596 else case e in #(
11597 e) # Use it with a single arg.
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600 $ac_includes_default
11601 int
11602 main (void)
11603 {
11604 getpgrp (0);
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 if ac_fn_c_try_compile "$LINENO"
11610 then :
11611 ac_cv_func_getpgrp_void=no
11612 else case e in #(
11613 e) ac_cv_func_getpgrp_void=yes ;;
11614 esac
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11617 ;;
11618 esac
11619 fi
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11621 printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; }
11622 if test $ac_cv_func_getpgrp_void = yes; then
11623
11624 printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
11625
11626 fi
11627
11628 fi
11629
11630 # Check whether --enable-iconv-open was given.
11631 if test ${enable_iconv_open+y}
11632 then :
11633 enableval=$enable_iconv_open;
11634 else case e in #(
11635 e) enable_iconv_open=$ac_cv_func_iconv_open ;;
11636 esac
11637 fi
11638
11639
11640 if test x"$enable_iconv_open" != x"no"; then
11641
11642 printf "%s\n" "#define USE_ICONV_OPEN 1" >>confdefs.h
11643
11644 fi
11645
11646 # Check whether --enable-iconv was given.
11647 if test ${enable_iconv+y}
11648 then :
11649 enableval=$enable_iconv;
11650 else case e in #(
11651 e) enable_iconv=$enable_iconv_open ;;
11652 esac
11653 fi
11654
11655
11656 if test x"$enable_iconv" != x"no"; then
11657 if test x"$enable_iconv" = x"yes"; then
11658 printf "%s\n" "#define ICONV_OPTION NULL" >>confdefs.h
11659
11660 else
11661 printf "%s\n" "#define ICONV_OPTION \"$enable_iconv\"" >>confdefs.h
11662
11663 fi
11664
11665 printf "%s\n" "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h
11666
11667 fi
11668
11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5
11670 printf %s "checking whether chown() modifies symlinks... " >&6; }
11671 if test ${rsync_cv_chown_modifies_symlink+y}
11672 then :
11673 printf %s "(cached) " >&6
11674 else case e in #(
11675 e)
11676 if test "$cross_compiling" = yes
11677 then :
11678 rsync_cv_chown_modifies_symlink=no
11679 else case e in #(
11680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 #if HAVE_UNISTD_H
11684 # include <unistd.h>
11685 #endif
11686 #include <stdlib.h>
11687 #include <errno.h>
11688 int main(void) {
11689 char const *dangling_symlink = "conftest.dangle";
11690 unlink(dangling_symlink);
11691 if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
11692 if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) return 1;
11693 return 0;
11694 }
11695 _ACEOF
11696 if ac_fn_c_try_run "$LINENO"
11697 then :
11698 rsync_cv_chown_modifies_symlink=yes
11699 else case e in #(
11700 e) rsync_cv_chown_modifies_symlink=no ;;
11701 esac
11702 fi
11703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11704 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11705 esac
11706 fi
11707 ;;
11708 esac
11709 fi
11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_chown_modifies_symlink" >&5
11711 printf "%s\n" "$rsync_cv_chown_modifies_symlink" >&6; }
11712 if test $rsync_cv_chown_modifies_symlink = yes; then
11713
11714 printf "%s\n" "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
11715
11716 fi
11717
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link symlinks" >&5
11719 printf %s "checking whether link() can hard-link symlinks... " >&6; }
11720 if test ${rsync_cv_can_hardlink_symlink+y}
11721 then :
11722 printf %s "(cached) " >&6
11723 else case e in #(
11724 e)
11725 if test "$cross_compiling" = yes
11726 then :
11727 rsync_cv_can_hardlink_symlink=no
11728 else case e in #(
11729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11731
11732 #ifdef HAVE_FCNTL_H
11733 # include <fcntl.h>
11734 #elif defined HAVE_SYS_FCNTL_H
11735 # include <sys/fcntl.h>
11736 #endif
11737 #if HAVE_UNISTD_H
11738 # include <unistd.h>
11739 #endif
11740 #include <stdlib.h>
11741 #include <errno.h>
11742 #define FILENAME "conftest.dangle"
11743 int main(void) {
11744 unlink(FILENAME);
11745 if (symlink("conftest.no-such", FILENAME) < 0) abort();
11746 unlink(FILENAME "2");
11747 #ifdef HAVE_LINKAT
11748 if (linkat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME "2", 0) < 0) return 1;
11749 #else
11750 if (link(FILENAME, FILENAME "2") < 0) return 1;
11751 #endif
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_run "$LINENO"
11756 then :
11757 rsync_cv_can_hardlink_symlink=yes
11758 else case e in #(
11759 e) rsync_cv_can_hardlink_symlink=no ;;
11760 esac
11761 fi
11762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11763 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11764 esac
11765 fi
11766 ;;
11767 esac
11768 fi
11769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_symlink" >&5
11770 printf "%s\n" "$rsync_cv_can_hardlink_symlink" >&6; }
11771 if test $rsync_cv_can_hardlink_symlink = yes; then
11772
11773 printf "%s\n" "#define CAN_HARDLINK_SYMLINK 1" >>confdefs.h
11774
11775 fi
11776
11777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link special files" >&5
11778 printf %s "checking whether link() can hard-link special files... " >&6; }
11779 if test ${rsync_cv_can_hardlink_special+y}
11780 then :
11781 printf %s "(cached) " >&6
11782 else case e in #(
11783 e)
11784 if test "$cross_compiling" = yes
11785 then :
11786 rsync_cv_can_hardlink_special=no
11787 else case e in #(
11788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790
11791 #if HAVE_UNISTD_H
11792 # include <unistd.h>
11793 #endif
11794 #ifdef HAVE_SYS_STAT_H
11795 #include <sys/stat.h>
11796 #endif
11797 #include <stdlib.h>
11798 #include <errno.h>
11799 #define FILENAME "conftest.fifi"
11800 int main(void) {
11801 unlink(FILENAME);
11802 if (mkfifo(FILENAME, 0777) < 0) abort();
11803 unlink(FILENAME "2");
11804 if (link(FILENAME, FILENAME "2") < 0) return 1;
11805 return 0;
11806 }
11807 _ACEOF
11808 if ac_fn_c_try_run "$LINENO"
11809 then :
11810 rsync_cv_can_hardlink_special=yes
11811 else case e in #(
11812 e) rsync_cv_can_hardlink_special=no ;;
11813 esac
11814 fi
11815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11816 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11817 esac
11818 fi
11819 ;;
11820 esac
11821 fi
11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_special" >&5
11823 printf "%s\n" "$rsync_cv_can_hardlink_special" >&6; }
11824 if test $rsync_cv_can_hardlink_special = yes; then
11825
11826 printf "%s\n" "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h
11827
11828 fi
11829
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5
11831 printf %s "checking for working socketpair... " >&6; }
11832 if test ${rsync_cv_HAVE_SOCKETPAIR+y}
11833 then :
11834 printf %s "(cached) " >&6
11835 else case e in #(
11836 e)
11837 if test "$cross_compiling" = yes
11838 then :
11839 rsync_cv_HAVE_SOCKETPAIR=cross
11840 else case e in #(
11841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843
11844 #ifdef HAVE_SYS_TYPES_H
11845 #include <sys/types.h>
11846 #endif
11847 #ifdef HAVE_SYS_SOCKET_H
11848 #include <sys/socket.h>
11849 #endif
11850
11851 int main(void) {
11852 int fd[2];
11853 return (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1;
11854 }
11855 _ACEOF
11856 if ac_fn_c_try_run "$LINENO"
11857 then :
11858 rsync_cv_HAVE_SOCKETPAIR=yes
11859 else case e in #(
11860 e) rsync_cv_HAVE_SOCKETPAIR=no ;;
11861 esac
11862 fi
11863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11864 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11865 esac
11866 fi
11867 ;;
11868 esac
11869 fi
11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SOCKETPAIR" >&5
11871 printf "%s\n" "$rsync_cv_HAVE_SOCKETPAIR" >&6; }
11872 if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then
11873
11874 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
11875
11876 fi
11877
11878 ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
11879 if test "x$ac_cv_func_getpass" = xyes
11880 then :
11881 printf "%s\n" "#define HAVE_GETPASS 1" >>confdefs.h
11882
11883 else case e in #(
11884 e) case " $LIBOBJS " in
11885 *" getpass.$ac_objext "* ) ;;
11886 *) LIBOBJS="$LIBOBJS getpass.$ac_objext"
11887 ;;
11888 esac
11889 ;;
11890 esac
11891 fi
11892
11893
11894 if test x"$with_included_popt" != x"yes"; then
11895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
11896 printf %s "checking for poptGetContext in -lpopt... " >&6; }
11897 if test ${ac_cv_lib_popt_poptGetContext+y}
11898 then :
11899 printf %s "(cached) " >&6
11900 else case e in #(
11901 e) ac_check_lib_save_LIBS=$LIBS
11902 LIBS="-lpopt $LIBS"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905
11906 /* Override any GCC internal prototype to avoid an error.
11907 Use char because int might match the return type of a GCC
11908 builtin and then its argument prototype would still apply.
11909 The 'extern "C"' is for builds by C++ compilers;
11910 although this is not generally supported in C code supporting it here
11911 has little cost and some practical benefit (sr 110532). */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char poptGetContext (void);
11916 int
11917 main (void)
11918 {
11919 return poptGetContext ();
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"
11925 then :
11926 ac_cv_lib_popt_poptGetContext=yes
11927 else case e in #(
11928 e) ac_cv_lib_popt_poptGetContext=no ;;
11929 esac
11930 fi
11931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS ;;
11934 esac
11935 fi
11936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
11937 printf "%s\n" "$ac_cv_lib_popt_poptGetContext" >&6; }
11938 if test "x$ac_cv_lib_popt_poptGetContext" = xyes
11939 then :
11940 printf "%s\n" "#define HAVE_LIBPOPT 1" >>confdefs.h
11941
11942 LIBS="-lpopt $LIBS"
11943
11944 else case e in #(
11945 e) with_included_popt=yes ;;
11946 esac
11947 fi
11948
11949 fi
11950 if test x"$ac_cv_header_popt_popt_h" = x"yes"; then
11951 # If the system has /usr/include/popt/popt.h, we enable the
11952 # included popt because an attempt to "#include <popt/popt.h>"
11953 # would use our included header file anyway (due to -I.), and
11954 # might conflict with the system popt.
11955 with_included_popt=yes
11956 elif test x"$ac_cv_header_popt_h" != x"yes"; then
11957 with_included_popt=yes
11958 fi
11959
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use included libpopt" >&5
11961 printf %s "checking whether to use included libpopt... " >&6; }
11962 if test x"$with_included_popt" = x"yes"; then
11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $srcdir/popt" >&5
11964 printf "%s\n" "$srcdir/popt" >&6; }
11965 BUILD_POPT='$(popt_OBJS)'
11966 CFLAGS="-I$srcdir/popt $CFLAGS"
11967
11968 printf "%s\n" "#define POPT_SYSCONFDIR \"/etc\"" >>confdefs.h
11969
11970
11971 printf "%s\n" "#define PACKAGE \"rsync\"" >>confdefs.h
11972
11973 if test x"$ALLOCA" != x
11974 then
11975 # this can be removed when/if we add an included alloca.c;
11976 # see autoconf documentation on AC_FUNC_ALLOCA
11977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&5
11978 printf "%s\n" "$as_me: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&2;}
11979 fi
11980 else
11981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 printf "%s\n" "no" >&6; }
11983 fi
11984
11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned char" >&5
11986 printf %s "checking for unsigned char... " >&6; }
11987 if test ${rsync_cv_SIGNED_CHAR_OK+y}
11988 then :
11989 printf %s "(cached) " >&6
11990 else case e in #(
11991 e)
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994
11995 int
11996 main (void)
11997 {
11998 signed char *s = (signed char *)""
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_compile "$LINENO"
12004 then :
12005 rsync_cv_SIGNED_CHAR_OK=yes
12006 else case e in #(
12007 e) rsync_cv_SIGNED_CHAR_OK=no ;;
12008 esac
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12011 esac
12012 fi
12013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_SIGNED_CHAR_OK" >&5
12014 printf "%s\n" "$rsync_cv_SIGNED_CHAR_OK" >&6; }
12015 if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then
12016
12017 printf "%s\n" "#define SIGNED_CHAR_OK 1" >>confdefs.h
12018
12019 fi
12020
12021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken readdir" >&5
12022 printf %s "checking for broken readdir... " >&6; }
12023 if test ${rsync_cv_HAVE_BROKEN_READDIR+y}
12024 then :
12025 printf %s "(cached) " >&6
12026 else case e in #(
12027 e)
12028 if test "$cross_compiling" = yes
12029 then :
12030 rsync_cv_HAVE_BROKEN_READDIR=cross
12031 else case e in #(
12032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034
12035 #ifdef HAVE_SYS_TYPES_H
12036 #include <sys/types.h>
12037 #endif
12038 #include <dirent.h>
12039 int main(void) { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
12040 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
12041 di->d_name[0] == 0) return 0; return 1;}
12042 _ACEOF
12043 if ac_fn_c_try_run "$LINENO"
12044 then :
12045 rsync_cv_HAVE_BROKEN_READDIR=yes
12046 else case e in #(
12047 e) rsync_cv_HAVE_BROKEN_READDIR=no ;;
12048 esac
12049 fi
12050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12052 esac
12053 fi
12054 ;;
12055 esac
12056 fi
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_READDIR" >&5
12058 printf "%s\n" "$rsync_cv_HAVE_BROKEN_READDIR" >&6; }
12059 if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then
12060
12061 printf "%s\n" "#define HAVE_BROKEN_READDIR 1" >>confdefs.h
12062
12063 fi
12064
12065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utimbuf" >&5
12066 printf %s "checking for utimbuf... " >&6; }
12067 if test ${rsync_cv_HAVE_STRUCT_UTIMBUF+y}
12068 then :
12069 printf %s "(cached) " >&6
12070 else case e in #(
12071 e)
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074
12075 #ifdef HAVE_SYS_TYPES_H
12076 #include <sys/types.h>
12077 #endif
12078 #include <utime.h>
12079 int
12080 main (void)
12081 {
12082 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; return utime("foo.c",&tbuf);
12083 ;
12084 return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_c_try_compile "$LINENO"
12088 then :
12089 rsync_cv_HAVE_STRUCT_UTIMBUF=yes
12090 else case e in #(
12091 e) rsync_cv_HAVE_STRUCT_UTIMBUF=no ;;
12092 esac
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12095 esac
12096 fi
12097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_STRUCT_UTIMBUF" >&5
12098 printf "%s\n" "$rsync_cv_HAVE_STRUCT_UTIMBUF" >&6; }
12099 if test x"$rsync_cv_HAVE_STRUCT_UTIMBUF" = x"yes"; then
12100
12101 printf "%s\n" "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12102
12103 fi
12104
12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes tz argument" >&5
12106 printf %s "checking if gettimeofday takes tz argument... " >&6; }
12107 if test ${rsync_cv_HAVE_GETTIMEOFDAY_TZ+y}
12108 then :
12109 printf %s "(cached) " >&6
12110 else case e in #(
12111 e)
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #include <sys/time.h>
12115 #ifdef HAVE_UNISTD_H
12116 #include <unistd.h>
12117 #endif
12118 int
12119 main (void)
12120 {
12121 struct timeval tv; return gettimeofday(&tv, NULL);
12122 ;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_compile "$LINENO"
12127 then :
12128 rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
12129 else case e in #(
12130 e) rsync_cv_HAVE_GETTIMEOFDAY_TZ=no ;;
12131 esac
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12134 esac
12135 fi
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&5
12137 printf "%s\n" "$rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
12138 if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
12139
12140 printf "%s\n" "#define HAVE_GETTIMEOFDAY_TZ 1" >>confdefs.h
12141
12142 fi
12143
12144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
12145 printf %s "checking for C99 vsnprintf... " >&6; }
12146 if test ${rsync_cv_HAVE_C99_VSNPRINTF+y}
12147 then :
12148 printf %s "(cached) " >&6
12149 else case e in #(
12150 e)
12151 if test "$cross_compiling" = yes
12152 then :
12153 rsync_cv_HAVE_C99_VSNPRINTF=cross
12154 else case e in #(
12155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157
12158 #ifdef HAVE_SYS_TYPES_H
12159 #include <sys/types.h>
12160 #endif
12161 #include <stdarg.h>
12162 #include <stdio.h>
12163 #if HAVE_STDLIB_H
12164 #include <stdlib.h>
12165 #endif
12166 #include <string.h>
12167 void foo(const char *format, ...) {
12168 va_list ap;
12169 int len;
12170 static char buf[] = "12345678901234567890";
12171
12172 va_start(ap, format);
12173 len = vsnprintf(0, 0, format, ap);
12174 va_end(ap);
12175 if (len != 5) exit(1);
12176
12177 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
12178 }
12179 int main(void) { foo("hello"); return 0; }
12180
12181 _ACEOF
12182 if ac_fn_c_try_run "$LINENO"
12183 then :
12184 rsync_cv_HAVE_C99_VSNPRINTF=yes
12185 else case e in #(
12186 e) rsync_cv_HAVE_C99_VSNPRINTF=no ;;
12187 esac
12188 fi
12189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12190 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12191 esac
12192 fi
12193 ;;
12194 esac
12195 fi
12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_C99_VSNPRINTF" >&5
12197 printf "%s\n" "$rsync_cv_HAVE_C99_VSNPRINTF" >&6; }
12198 if test x"$rsync_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
12199
12200 printf "%s\n" "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
12201
12202 fi
12203
12204
12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for secure mkstemp" >&5
12206 printf %s "checking for secure mkstemp... " >&6; }
12207 if test ${rsync_cv_HAVE_SECURE_MKSTEMP+y}
12208 then :
12209 printf %s "(cached) " >&6
12210 else case e in #(
12211 e)
12212 if test "$cross_compiling" = yes
12213 then :
12214 rsync_cv_HAVE_SECURE_MKSTEMP=cross
12215 else case e in #(
12216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218 #include <stdlib.h>
12219 #ifdef HAVE_SYS_TYPES_H
12220 #include <sys/types.h>
12221 #endif
12222 #include <sys/stat.h>
12223 #ifdef HAVE_UNISTD_H
12224 #include <unistd.h>
12225 #endif
12226 int main(void) {
12227 struct stat st;
12228 char tpl[20]="/tmp/test.XXXXXX";
12229 int fd = mkstemp(tpl);
12230 if (fd == -1) return 1;
12231 unlink(tpl);
12232 if (fstat(fd, &st) != 0) return 1;
12233 if ((st.st_mode & 0777) != 0600) return 1;
12234 return 0;
12235 }
12236 _ACEOF
12237 if ac_fn_c_try_run "$LINENO"
12238 then :
12239 rsync_cv_HAVE_SECURE_MKSTEMP=yes
12240 else case e in #(
12241 e) rsync_cv_HAVE_SECURE_MKSTEMP=no ;;
12242 esac
12243 fi
12244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12245 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12246 esac
12247 fi
12248 ;;
12249 esac
12250 fi
12251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SECURE_MKSTEMP" >&5
12252 printf "%s\n" "$rsync_cv_HAVE_SECURE_MKSTEMP" >&6; }
12253 if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
12254 case $host_os in
12255 hpux*)
12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&5
12257 printf "%s\n" "$as_me: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&2;}
12258 ;;
12259 *)
12260
12261 printf "%s\n" "#define HAVE_SECURE_MKSTEMP 1" >>confdefs.h
12262
12263 ;;
12264 esac
12265 fi
12266
12267
12268 # Whether mknod()/mknodat() can create a FIFO or a unix-domain socket is a
12269 # property of the target filesystem, not a build-time constant -- e.g. mknod
12270 # makes sockets on Linux but not the BSDs/macOS/Solaris, and a single transfer
12271 # can write to filesystems with different capabilities. So rsync no longer
12272 # probes this at configure time (a run-test that also misfired when cross-
12273 # compiling); do_mknod*() just try mknod[at]() and, on failure, fall back to
12274 # mkfifo[at]()/socket+bind() per call. We only need the libc symbols, checked
12275 # above via AC_CHECK_FUNCS (mknod mknodat mkfifo mkfifoat) -- all link tests.
12276
12277 #
12278 # The following test was mostly taken from the tcl/tk plus patches
12279 #
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -c -o works" >&5
12281 printf %s "checking whether -c -o works... " >&6; }
12282 if test ${rsync_cv_DASHC_WORKS_WITH_DASHO+y}
12283 then :
12284 printf %s "(cached) " >&6
12285 else case e in #(
12286 e)
12287 rm -rf conftest*
12288 cat > conftest.$ac_ext <<EOF
12289 int main(void) { return 0; }
12290 EOF
12291 ${CC-cc} -c -o conftest..o conftest.$ac_ext
12292 if test -f conftest..o; then
12293 rsync_cv_DASHC_WORKS_WITH_DASHO=yes
12294 else
12295 rsync_cv_DASHC_WORKS_WITH_DASHO=no
12296 fi
12297 rm -rf conftest*
12298 ;;
12299 esac
12300 fi
12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_DASHC_WORKS_WITH_DASHO" >&5
12302 printf "%s\n" "$rsync_cv_DASHC_WORKS_WITH_DASHO" >&6; }
12303 if test x"$rsync_cv_DASHC_WORKS_WITH_DASHO" = x"yes"; then
12304 OBJ_SAVE="#"
12305 OBJ_RESTORE="#"
12306 CC_SHOBJ_FLAG='-o $@'
12307 else
12308 OBJ_SAVE=' @b=`basename $@ .o`;rm -f $$b.o.sav;if test -f $$b.o; then mv $$b.o $$b.o.sav;fi;'
12309 OBJ_RESTORE=' @b=`basename $@ .o`;if test "$$b.o" != "$@"; then mv $$b.o $@; if test -f $$b.o.sav; then mv $$b.o.sav $$b.o; fi; fi'
12310 CC_SHOBJ_FLAG=""
12311 fi
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 ac_fn_c_check_func "$LINENO" "_acl" "ac_cv_func__acl"
12324 if test "x$ac_cv_func__acl" = xyes
12325 then :
12326 printf "%s\n" "#define HAVE__ACL 1" >>confdefs.h
12327
12328 fi
12329 ac_fn_c_check_func "$LINENO" "__acl" "ac_cv_func___acl"
12330 if test "x$ac_cv_func___acl" = xyes
12331 then :
12332 printf "%s\n" "#define HAVE___ACL 1" >>confdefs.h
12333
12334 fi
12335 ac_fn_c_check_func "$LINENO" "_facl" "ac_cv_func__facl"
12336 if test "x$ac_cv_func__facl" = xyes
12337 then :
12338 printf "%s\n" "#define HAVE__FACL 1" >>confdefs.h
12339
12340 fi
12341 ac_fn_c_check_func "$LINENO" "__facl" "ac_cv_func___facl"
12342 if test "x$ac_cv_func___facl" = xyes
12343 then :
12344 printf "%s\n" "#define HAVE___FACL 1" >>confdefs.h
12345
12346 fi
12347
12348 #################################################
12349 # check for ACL support
12350
12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
12352 printf %s "checking whether to support ACLs... " >&6; }
12353 # Check whether --enable-acl-support was given.
12354 if test ${enable_acl_support+y}
12355 then :
12356 enableval=$enable_acl_support;
12357 fi
12358
12359
12360 if test x"$enable_acl_support" = x"no"; then
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 printf "%s\n" "no" >&6; }
12363 else
12364 case "$host_os" in
12365 *sysv5*)
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using UnixWare ACLs" >&5
12367 printf "%s\n" "Using UnixWare ACLs" >&6; }
12368
12369 printf "%s\n" "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
12370
12371
12372 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12373
12374 ;;
12375 solaris*)
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
12377 printf "%s\n" "Using solaris ACLs" >&6; }
12378
12379 printf "%s\n" "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
12380
12381 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12382
12383 ;;
12384 *irix*)
12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5
12386 printf "%s\n" "Using IRIX ACLs" >&6; }
12387
12388 printf "%s\n" "#define HAVE_IRIX_ACLS 1" >>confdefs.h
12389
12390 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12391
12392 ;;
12393 *aix*)
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using AIX ACLs" >&5
12395 printf "%s\n" "Using AIX ACLs" >&6; }
12396
12397 printf "%s\n" "#define HAVE_AIX_ACLS 1" >>confdefs.h
12398
12399 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12400
12401 ;;
12402 *osf*)
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Tru64 ACLs" >&5
12404 printf "%s\n" "Using Tru64 ACLs" >&6; }
12405
12406 printf "%s\n" "#define HAVE_TRU64_ACLS 1" >>confdefs.h
12407
12408 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12409
12410 LIBS="$LIBS -lpacl"
12411 ;;
12412 darwin*)
12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OS X ACLs" >&5
12414 printf "%s\n" "Using OS X ACLs" >&6; }
12415
12416 printf "%s\n" "#define HAVE_OSX_ACLS 1" >>confdefs.h
12417
12418 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12419
12420 ;;
12421 *hpux*|*nsk*)
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5
12423 printf "%s\n" "Using HPUX ACLs" >&6; }
12424
12425 printf "%s\n" "#define HAVE_HPUX_ACLS 1" >>confdefs.h
12426
12427 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12428
12429 ;;
12430 *)
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5
12432 printf "%s\n" "running tests:" >&6; }
12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
12434 printf %s "checking for acl_get_file in -lacl... " >&6; }
12435 if test ${ac_cv_lib_acl_acl_get_file+y}
12436 then :
12437 printf %s "(cached) " >&6
12438 else case e in #(
12439 e) ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-lacl $LIBS"
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply.
12447 The 'extern "C"' is for builds by C++ compilers;
12448 although this is not generally supported in C code supporting it here
12449 has little cost and some practical benefit (sr 110532). */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 char acl_get_file (void);
12454 int
12455 main (void)
12456 {
12457 return acl_get_file ();
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 if ac_fn_c_try_link "$LINENO"
12463 then :
12464 ac_cv_lib_acl_acl_get_file=yes
12465 else case e in #(
12466 e) ac_cv_lib_acl_acl_get_file=no ;;
12467 esac
12468 fi
12469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS ;;
12472 esac
12473 fi
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
12475 printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; }
12476 if test "x$ac_cv_lib_acl_acl_get_file" = xyes
12477 then :
12478 printf "%s\n" "#define HAVE_LIBACL 1" >>confdefs.h
12479
12480 LIBS="-lacl $LIBS"
12481
12482 fi
12483
12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
12485 printf %s "checking for ACL support... " >&6; }
12486 if test ${samba_cv_HAVE_POSIX_ACLS+y}
12487 then :
12488 printf %s "(cached) " >&6
12489 else case e in #(
12490 e)
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493
12494 #ifdef HAVE_SYS_TYPES_H
12495 #include <sys/types.h>
12496 #endif
12497 #ifdef HAVE_SYS_ACL_H
12498 #include <sys/acl.h>
12499 #endif
12500 int
12501 main (void)
12502 {
12503 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 if ac_fn_c_try_link "$LINENO"
12509 then :
12510 samba_cv_HAVE_POSIX_ACLS=yes
12511 else case e in #(
12512 e) samba_cv_HAVE_POSIX_ACLS=no ;;
12513 esac
12514 fi
12515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12516 conftest$ac_exeext conftest.$ac_ext ;;
12517 esac
12518 fi
12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_POSIX_ACLS" >&5
12520 printf "%s\n" "$samba_cv_HAVE_POSIX_ACLS" >&6; }
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ACL test results" >&5
12522 printf %s "checking ACL test results... " >&6; }
12523 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using posix ACLs" >&5
12525 printf "%s\n" "Using posix ACLs" >&6; }
12526
12527 printf "%s\n" "#define HAVE_POSIX_ACLS 1" >>confdefs.h
12528
12529 printf "%s\n" "#define SUPPORT_ACLS 1" >>confdefs.h
12530
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
12532 printf %s "checking for acl_get_perm_np... " >&6; }
12533 if test ${samba_cv_HAVE_ACL_GET_PERM_NP+y}
12534 then :
12535 printf %s "(cached) " >&6
12536 else case e in #(
12537 e)
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540
12541 #ifdef HAVE_SYS_TYPES_H
12542 #include <sys/types.h>
12543 #endif
12544 #ifdef HAVE_SYS_ACL_H
12545 #include <sys/acl.h>
12546 #endif
12547 int
12548 main (void)
12549 {
12550 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12551 ;
12552 return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"
12556 then :
12557 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12558 else case e in #(
12559 e) samba_cv_HAVE_ACL_GET_PERM_NP=no ;;
12560 esac
12561 fi
12562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12563 conftest$ac_exeext conftest.$ac_ext ;;
12564 esac
12565 fi
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
12567 printf "%s\n" "$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
12568 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12569
12570 printf "%s\n" "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
12571
12572 fi
12573 else
12574 if test x"$enable_acl_support" = x"yes"; then
12575 as_fn_error $? "Failed to find ACL support" "$LINENO" 5
12576 else
12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: No ACL support found" >&5
12578 printf "%s\n" "No ACL support found" >&6; }
12579 fi
12580 fi
12581 ;;
12582 esac
12583 fi
12584
12585 #################################################
12586 # check for extended attribute support
12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support extended attributes" >&5
12588 printf %s "checking whether to support extended attributes... " >&6; }
12589 # Check whether --enable-xattr-support was given.
12590 if test ${enable_xattr_support+y}
12591 then :
12592 enableval=$enable_xattr_support;
12593 else case e in #(
12594 e) case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in
12595 *yes*) enable_xattr_support=maybe ;;
12596 *) enable_xattr_support=no ;;
12597 esac ;;
12598 esac
12599 fi
12600
12601
12602 if test x"$enable_xattr_support" = x"no"; then
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 printf "%s\n" "no" >&6; }
12605 else
12606 case "$host_os" in
12607 *linux*|*netbsd*|*cygwin*)
12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5
12609 printf "%s\n" "Using Linux xattrs" >&6; }
12610
12611 printf "%s\n" "#define HAVE_LINUX_XATTRS 1" >>confdefs.h
12612
12613 printf "%s\n" "#define SUPPORT_XATTRS 1" >>confdefs.h
12614
12615
12616 printf "%s\n" "#define NO_SYMLINK_USER_XATTRS 1" >>confdefs.h
12617
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getxattr" >&5
12619 printf %s "checking for library containing getxattr... " >&6; }
12620 if test ${ac_cv_search_getxattr+y}
12621 then :
12622 printf %s "(cached) " >&6
12623 else case e in #(
12624 e) ac_func_search_save_LIBS=$LIBS
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627
12628 /* Override any GCC internal prototype to avoid an error.
12629 Use char because int might match the return type of a GCC
12630 builtin and then its argument prototype would still apply.
12631 The 'extern "C"' is for builds by C++ compilers;
12632 although this is not generally supported in C code supporting it here
12633 has little cost and some practical benefit (sr 110532). */
12634 #ifdef __cplusplus
12635 extern "C"
12636 #endif
12637 char getxattr (void);
12638 int
12639 main (void)
12640 {
12641 return getxattr ();
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 for ac_lib in '' attr
12647 do
12648 if test -z "$ac_lib"; then
12649 ac_res="none required"
12650 else
12651 ac_res=-l$ac_lib
12652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12653 fi
12654 if ac_fn_c_try_link "$LINENO"
12655 then :
12656 ac_cv_search_getxattr=$ac_res
12657 fi
12658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12659 conftest$ac_exeext
12660 if test ${ac_cv_search_getxattr+y}
12661 then :
12662 break
12663 fi
12664 done
12665 if test ${ac_cv_search_getxattr+y}
12666 then :
12667
12668 else case e in #(
12669 e) ac_cv_search_getxattr=no ;;
12670 esac
12671 fi
12672 rm conftest.$ac_ext
12673 LIBS=$ac_func_search_save_LIBS ;;
12674 esac
12675 fi
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getxattr" >&5
12677 printf "%s\n" "$ac_cv_search_getxattr" >&6; }
12678 ac_res=$ac_cv_search_getxattr
12679 if test "$ac_res" != no
12680 then :
12681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682
12683 fi
12684
12685 ;;
12686 darwin*)
12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5
12688 printf "%s\n" "Using OS X xattrs" >&6; }
12689
12690 printf "%s\n" "#define HAVE_OSX_XATTRS 1" >>confdefs.h
12691
12692 printf "%s\n" "#define SUPPORT_XATTRS 1" >>confdefs.h
12693
12694
12695 printf "%s\n" "#define NO_DEVICE_XATTRS 1" >>confdefs.h
12696
12697
12698 printf "%s\n" "#define NO_SPECIAL_XATTRS 1" >>confdefs.h
12699
12700 ;;
12701 freebsd*)
12702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using FreeBSD extattrs" >&5
12703 printf "%s\n" "Using FreeBSD extattrs" >&6; }
12704
12705 printf "%s\n" "#define HAVE_FREEBSD_XATTRS 1" >>confdefs.h
12706
12707 printf "%s\n" "#define SUPPORT_XATTRS 1" >>confdefs.h
12708
12709 ;;
12710 solaris*)
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Solaris xattrs" >&5
12712 printf "%s\n" "Using Solaris xattrs" >&6; }
12713
12714 printf "%s\n" "#define HAVE_SOLARIS_XATTRS 1" >>confdefs.h
12715
12716 printf "%s\n" "#define SUPPORT_XATTRS 1" >>confdefs.h
12717
12718
12719 printf "%s\n" "#define NO_SYMLINK_XATTRS 1" >>confdefs.h
12720
12721 ;;
12722 *)
12723 if test x"$enable_xattr_support" = x"yes"; then
12724 as_fn_error $? "Failed to find extended attribute support" "$LINENO" 5
12725 else
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: No extended attribute support found" >&5
12727 printf "%s\n" "No extended attribute support found" >&6; }
12728 fi
12729 ;;
12730 esac
12731 fi
12732
12733 #################################################
12734 # On Linux, POSIX ACLs are stored as the "system.posix_acl_{access,default}"
12735 # xattrs, so we can get/set them through a held O_NOFOLLOW fd (fsetxattr) or a
12736 # dirfd+leaf (setxattrat, AT_SYMLINK_NOFOLLOW) instead of the path-based libacl
12737 # acl_*_file() calls -- making the operation safe against a parent-symlink race.
12738 # This needs POSIX ACLs and the f/at xattr syscalls, which on Linux are
12739 # available whenever <sys/xattr.h> (or <attr/xattr.h>) is -- independent of the
12740 # -X feature (--disable-xattr-support), so we gate on the header, not
12741 # enable_xattr_support.
12742
12743
12744 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes" \
12745 && { test x"$ac_cv_header_sys_xattr_h" = x"yes" || test x"$ac_cv_header_attr_xattr_h" = x"yes"; }; then
12746 case "$host_os" in
12747 *linux*)
12748 printf "%s\n" "#define SUPPORT_ACL_FD 1" >>confdefs.h
12749
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYS_setxattrat" >&5
12751 printf %s "checking for SYS_setxattrat... " >&6; }
12752 if test ${rsync_cv_have_sys_setxattrat+y}
12753 then :
12754 printf %s "(cached) " >&6
12755 else case e in #(
12756 e)
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 #include <sys/syscall.h>
12760 #include <stdint.h>
12761 #ifdef HAVE_UNISTD_H
12762 #include <unistd.h>
12763 #endif
12764 struct xattr_args { uint64_t value; uint32_t size; uint32_t flags; };
12765 int
12766 main (void)
12767 {
12768 struct xattr_args a; a.value = 0; a.size = 0; a.flags = 0;
12769 syscall(SYS_setxattrat, 0, ".", 0, "n", &a, sizeof a);
12770 syscall(SYS_getxattrat, 0, ".", 0, "n", &a, sizeof a);
12771 syscall(SYS_removexattrat, 0, ".", 0, "n");
12772 ;
12773 return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_compile "$LINENO"
12777 then :
12778 rsync_cv_have_sys_setxattrat=yes
12779 else case e in #(
12780 e) rsync_cv_have_sys_setxattrat=no ;;
12781 esac
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12784 esac
12785 fi
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_sys_setxattrat" >&5
12787 printf "%s\n" "$rsync_cv_have_sys_setxattrat" >&6; }
12788 if test x"$rsync_cv_have_sys_setxattrat" = x"yes"; then
12789 printf "%s\n" "#define HAVE_XATTRAT_SYSCALLS 1" >>confdefs.h
12790
12791 fi
12792 ;;
12793 esac
12794 fi
12795
12796 #################################################
12797 # Detect a patched libacl providing the race-safe
12798 # *_at ACL entry points (acl_get_file_at/acl_set_file_at/acl_delete_def_file_at,
12799 # ACL_1.3, unreleased upstream). When present we route the race-safe ACL get/
12800 # set/delete through them on Linux -- race-safe on every kernel (6.13+ uses
12801 # *xattrat; older uses libacl's /proc/self/fd compat). A stock -lacl lacks these
12802 # symbols, so this stays undefined and the build falls back to lib/acl.c;
12803 # detection must therefore run against the patched lib (CPPFLAGS/LDFLAGS).
12804
12805 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12806 case "$host_os" in
12807 *linux*)
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file_at in -lacl" >&5
12809 printf %s "checking for acl_get_file_at in -lacl... " >&6; }
12810 if test ${ac_cv_lib_acl_acl_get_file_at+y}
12811 then :
12812 printf %s "(cached) " >&6
12813 else case e in #(
12814 e) ac_check_lib_save_LIBS=$LIBS
12815 LIBS="-lacl $LIBS"
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply.
12822 The 'extern "C"' is for builds by C++ compilers;
12823 although this is not generally supported in C code supporting it here
12824 has little cost and some practical benefit (sr 110532). */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 char acl_get_file_at (void);
12829 int
12830 main (void)
12831 {
12832 return acl_get_file_at ();
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_link "$LINENO"
12838 then :
12839 ac_cv_lib_acl_acl_get_file_at=yes
12840 else case e in #(
12841 e) ac_cv_lib_acl_acl_get_file_at=no ;;
12842 esac
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12845 conftest$ac_exeext conftest.$ac_ext
12846 LIBS=$ac_check_lib_save_LIBS ;;
12847 esac
12848 fi
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file_at" >&5
12850 printf "%s\n" "$ac_cv_lib_acl_acl_get_file_at" >&6; }
12851 if test "x$ac_cv_lib_acl_acl_get_file_at" = xyes
12852 then :
12853 rsync_have_libacl_at=yes
12854 else case e in #(
12855 e) rsync_have_libacl_at=no ;;
12856 esac
12857 fi
12858
12859 if test x"$rsync_have_libacl_at" = x"yes"; then
12860
12861 for ac_func in acl_set_file_at acl_delete_def_file_at
12862 do :
12863 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
12864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12865 if eval test \"x\$"$as_ac_var"\" = x"yes"
12866 then :
12867 cat >>confdefs.h <<_ACEOF
12868 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
12869 _ACEOF
12870
12871 else case e in #(
12872 e) rsync_have_libacl_at=no ;;
12873 esac
12874 fi
12875
12876 done
12877 fi
12878 if test x"$rsync_have_libacl_at" = x"yes"; then
12879 printf "%s\n" "#define HAVE_LIBACL_AT 1" >>confdefs.h
12880
12881 fi
12882 ;;
12883 esac
12884 fi
12885
12886 if test x"$enable_acl_support" = x"no" || test x"$enable_xattr_support" = x"no" || test x"$enable_iconv" = x"no"; then
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
12888 printf %s "checking whether $CC supports -Wno-unused-parameter... " >&6; }
12889 OLD_CFLAGS="$CFLAGS"
12890 CFLAGS="$CFLAGS -Wno-unused-parameter"
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893 #include <stdio.h>
12894 int
12895 main (void)
12896 {
12897 printf("hello\n");
12898 ;
12899 return 0;
12900 }
12901 _ACEOF
12902 if ac_fn_c_try_link "$LINENO"
12903 then :
12904 rsync_warn_flag=yes
12905 else case e in #(
12906 e) rsync_warn_flag=no ;;
12907 esac
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12910 conftest$ac_exeext conftest.$ac_ext
12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_warn_flag" >&5
12912 printf "%s\n" "$rsync_warn_flag" >&6; }
12913 if test x"$rsync_warn_flag" = x"no"; then
12914 CFLAGS="$OLD_CFLAGS"
12915 fi
12916 fi
12917
12918 case "$CC" in
12919 ' checker'*|checker*)
12920
12921 printf "%s\n" "#define FORCE_FD_ZERO_MEMSET 1" >>confdefs.h
12922
12923 ;;
12924 esac
12925
12926 ac_config_files="$ac_config_files Makefile lib/dummy zlib/dummy popt/dummy shconfig"
12927
12928 cat >confcache <<\_ACEOF
12929 # This file is a shell script that caches the results of configure
12930 # tests run on this system so they can be shared between configure
12931 # scripts and configure runs, see configure's option --config-cache.
12932 # It is not useful on other systems. If it contains results you don't
12933 # want to keep, you may remove or edit it.
12934 #
12935 # config.status only pays attention to the cache file if you give it
12936 # the --recheck option to rerun configure.
12937 #
12938 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12939 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12940 # following values.
12941
12942 _ACEOF
12943
12944 # The following way of writing the cache mishandles newlines in values,
12945 # but we know of no workaround that is simple, portable, and efficient.
12946 # So, we kill variables containing newlines.
12947 # Ultrix sh set writes to stderr and can't be redirected directly,
12948 # and sets the high bit in the cache file unless we assign to the vars.
12949 (
12950 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12951 eval ac_val=\$$ac_var
12952 case $ac_val in #(
12953 *${as_nl}*)
12954 case $ac_var in #(
12955 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12956 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12957 esac
12958 case $ac_var in #(
12959 _ | IFS | as_nl) ;; #(
12960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12961 *) { eval $ac_var=; unset $ac_var;} ;;
12962 esac ;;
12963 esac
12964 done
12965
12966 (set) 2>&1 |
12967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12968 *${as_nl}ac_space=\ *)
12969 # 'set' does not quote correctly, so add quotes: double-quote
12970 # substitution turns \\\\ into \\, and sed turns \\ into \.
12971 sed -n \
12972 "s/'/'\\\\''/g;
12973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12974 ;; #(
12975 *)
12976 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12978 ;;
12979 esac |
12980 sort
12981 ) |
12982 sed '
12983 /^ac_cv_env_/b end
12984 t clear
12985 :clear
12986 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12987 t end
12988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12989 :end' >>confcache
12990 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12991 if test -w "$cache_file"; then
12992 if test "x$cache_file" != "x/dev/null"; then
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12994 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12995 if test ! -f "$cache_file" || test -h "$cache_file"; then
12996 cat confcache >"$cache_file"
12997 else
12998 case $cache_file in #(
12999 */* | ?:*)
13000 mv -f confcache "$cache_file"$$ &&
13001 mv -f "$cache_file"$$ "$cache_file" ;; #(
13002 *)
13003 mv -f confcache "$cache_file" ;;
13004 esac
13005 fi
13006 fi
13007 else
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13009 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13010 fi
13011 fi
13012 rm -f confcache
13013
13014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13015 # Let make expand exec_prefix.
13016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13017
13018 DEFS=-DHAVE_CONFIG_H
13019
13020 ac_libobjs=
13021 ac_ltlibobjs=
13022 U=
13023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13024 # 1. Remove the extension, and $U if already installed.
13025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13026 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13028 # will be set to the directory where LIBOBJS objects are built.
13029 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13030 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13031 done
13032 LIBOBJS=$ac_libobjs
13033
13034 LTLIBOBJS=$ac_ltlibobjs
13035
13036
13037
13038 # Check whether --enable-year2038 was given.
13039 if test ${enable_year2038+y}
13040 then :
13041 enableval=$enable_year2038;
13042 fi
13043
13044
13045 : "${CONFIG_STATUS=./config.status}"
13046 ac_write_fail=0
13047 ac_clean_files_save=$ac_clean_files
13048 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13050 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13051 as_write_fail=0
13052 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13053 #! $SHELL
13054 # Generated by $as_me.
13055 # Run this file to recreate the current configuration.
13056 # Compiler output produced by configure, useful for debugging
13057 # configure, is in config.log if it exists.
13058
13059 debug=false
13060 ac_cs_recheck=false
13061 ac_cs_silent=false
13062
13063 SHELL=\${CONFIG_SHELL-$SHELL}
13064 export SHELL
13065 _ASEOF
13066 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13067 ## -------------------- ##
13068 ## M4sh Initialization. ##
13069 ## -------------------- ##
13070
13071 # Be more Bourne compatible
13072 DUALCASE=1; export DUALCASE # for MKS sh
13073 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13074 then :
13075 emulate sh
13076 NULLCMD=:
13077 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13078 # is contrary to our usage. Disable this feature.
13079 alias -g '${1+"$@"}'='"$@"'
13080 setopt NO_GLOB_SUBST
13081 else case e in #(
13082 e) case `(set -o) 2>/dev/null` in #(
13083 *posix*) :
13084 set -o posix ;; #(
13085 *) :
13086 ;;
13087 esac ;;
13088 esac
13089 fi
13090
13091
13092
13093 # Reset variables that may have inherited troublesome values from
13094 # the environment.
13095
13096 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13097 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13098 # side effect of setting IFS to empty, thus disabling word splitting.)
13099 # Quoting is to prevent editors from complaining about space-tab.
13100 as_nl='
13101 '
13102 export as_nl
13103 IFS=" "" $as_nl"
13104
13105 PS1='$ '
13106 PS2='> '
13107 PS4='+ '
13108
13109 # Ensure predictable behavior from utilities with locale-dependent output.
13110 LC_ALL=C
13111 export LC_ALL
13112 LANGUAGE=C
13113 export LANGUAGE
13114
13115 # We cannot yet rely on "unset" to work, but we need these variables
13116 # to be unset--not just set to an empty or harmless value--now, to
13117 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13118 # also avoids known problems related to "unset" and subshell syntax
13119 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13120 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13121 do eval test \${$as_var+y} \
13122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13123 done
13124
13125 # Ensure that fds 0, 1, and 2 are open.
13126 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13127 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13128 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13129
13130 # The user is always right.
13131 if ${PATH_SEPARATOR+false} :; then
13132 PATH_SEPARATOR=:
13133 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13134 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13135 PATH_SEPARATOR=';'
13136 }
13137 fi
13138
13139
13140 # Find who we are. Look in the path if we contain no directory separator.
13141 as_myself=
13142 case $0 in #((
13143 *[\\/]* ) as_myself=$0 ;;
13144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147 IFS=$as_save_IFS
13148 case $as_dir in #(((
13149 '') as_dir=./ ;;
13150 */) ;;
13151 *) as_dir=$as_dir/ ;;
13152 esac
13153 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13154 done
13155 IFS=$as_save_IFS
13156
13157 ;;
13158 esac
13159 # We did not find ourselves, most probably we were run as 'sh COMMAND'
13160 # in which case we are not to be found in the path.
13161 if test "x$as_myself" = x; then
13162 as_myself=$0
13163 fi
13164 if test ! -f "$as_myself"; then
13165 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13166 exit 1
13167 fi
13168
13169
13170
13171 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13172 # ----------------------------------------
13173 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13174 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13175 # script with STATUS, using 1 if that was 0.
13176 as_fn_error ()
13177 {
13178 as_status=$1; test $as_status -eq 0 && as_status=1
13179 if test "$4"; then
13180 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13182 fi
13183 printf "%s\n" "$as_me: error: $2" >&2
13184 as_fn_exit $as_status
13185 } # as_fn_error
13186
13187
13188 # as_fn_set_status STATUS
13189 # -----------------------
13190 # Set $? to STATUS, without forking.
13191 as_fn_set_status ()
13192 {
13193 return $1
13194 } # as_fn_set_status
13195
13196 # as_fn_exit STATUS
13197 # -----------------
13198 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13199 as_fn_exit ()
13200 {
13201 set +e
13202 as_fn_set_status $1
13203 exit $1
13204 } # as_fn_exit
13205
13206 # as_fn_unset VAR
13207 # ---------------
13208 # Portably unset VAR.
13209 as_fn_unset ()
13210 {
13211 { eval $1=; unset $1;}
13212 }
13213 as_unset=as_fn_unset
13214
13215 # as_fn_append VAR VALUE
13216 # ----------------------
13217 # Append the text in VALUE to the end of the definition contained in VAR. Take
13218 # advantage of any shell optimizations that allow amortized linear growth over
13219 # repeated appends, instead of the typical quadratic growth present in naive
13220 # implementations.
13221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13222 then :
13223 eval 'as_fn_append ()
13224 {
13225 eval $1+=\$2
13226 }'
13227 else case e in #(
13228 e) as_fn_append ()
13229 {
13230 eval $1=\$$1\$2
13231 } ;;
13232 esac
13233 fi # as_fn_append
13234
13235 # as_fn_arith ARG...
13236 # ------------------
13237 # Perform arithmetic evaluation on the ARGs, and store the result in the
13238 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13239 # must be portable across $(()) and expr.
13240 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13241 then :
13242 eval 'as_fn_arith ()
13243 {
13244 as_val=$(( $* ))
13245 }'
13246 else case e in #(
13247 e) as_fn_arith ()
13248 {
13249 as_val=`expr "$@" || test $? -eq 1`
13250 } ;;
13251 esac
13252 fi # as_fn_arith
13253
13254
13255 if expr a : '\(a\)' >/dev/null 2>&1 &&
13256 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13257 as_expr=expr
13258 else
13259 as_expr=false
13260 fi
13261
13262 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13263 as_basename=basename
13264 else
13265 as_basename=false
13266 fi
13267
13268 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13269 as_dirname=dirname
13270 else
13271 as_dirname=false
13272 fi
13273
13274 as_me=`$as_basename -- "$0" ||
13275 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13276 X"$0" : 'X\(//\)$' \| \
13277 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13278 printf "%s\n" X/"$0" |
13279 sed '/^.*\/\([^/][^/]*\)\/*$/{
13280 s//\1/
13281 q
13282 }
13283 /^X\/\(\/\/\)$/{
13284 s//\1/
13285 q
13286 }
13287 /^X\/\(\/\).*/{
13288 s//\1/
13289 q
13290 }
13291 s/.*/./; q'`
13292
13293 # Avoid depending upon Character Ranges.
13294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13297 as_cr_digits='0123456789'
13298 as_cr_alnum=$as_cr_Letters$as_cr_digits
13299
13300
13301 # Determine whether it's possible to make 'echo' print without a newline.
13302 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13303 # for compatibility with existing Makefiles.
13304 ECHO_C= ECHO_N= ECHO_T=
13305 case `echo -n x` in #(((((
13306 -n*)
13307 case `echo 'xy\c'` in
13308 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13309 xy) ECHO_C='\c';;
13310 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13311 ECHO_T=' ';;
13312 esac;;
13313 *)
13314 ECHO_N='-n';;
13315 esac
13316
13317 # For backward compatibility with old third-party macros, we provide
13318 # the shell variables $as_echo and $as_echo_n. New code should use
13319 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13320 as_echo='printf %s\n'
13321 as_echo_n='printf %s'
13322
13323 rm -f conf$$ conf$$.exe conf$$.file
13324 if test -d conf$$.dir; then
13325 rm -f conf$$.dir/conf$$.file
13326 else
13327 rm -f conf$$.dir
13328 mkdir conf$$.dir 2>/dev/null
13329 fi
13330 if (echo >conf$$.file) 2>/dev/null; then
13331 if ln -s conf$$.file conf$$ 2>/dev/null; then
13332 as_ln_s='ln -s'
13333 # ... but there are two gotchas:
13334 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13335 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13336 # In both cases, we have to default to 'cp -pR'.
13337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13338 as_ln_s='cp -pR'
13339 elif ln conf$$.file conf$$ 2>/dev/null; then
13340 as_ln_s=ln
13341 else
13342 as_ln_s='cp -pR'
13343 fi
13344 else
13345 as_ln_s='cp -pR'
13346 fi
13347 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13348 rmdir conf$$.dir 2>/dev/null
13349
13350
13351 # as_fn_mkdir_p
13352 # -------------
13353 # Create "$as_dir" as a directory, including parents if necessary.
13354 as_fn_mkdir_p ()
13355 {
13356
13357 case $as_dir in #(
13358 -*) as_dir=./$as_dir;;
13359 esac
13360 test -d "$as_dir" || eval $as_mkdir_p || {
13361 as_dirs=
13362 while :; do
13363 case $as_dir in #(
13364 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13365 *) as_qdir=$as_dir;;
13366 esac
13367 as_dirs="'$as_qdir' $as_dirs"
13368 as_dir=`$as_dirname -- "$as_dir" ||
13369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13370 X"$as_dir" : 'X\(//\)[^/]' \| \
13371 X"$as_dir" : 'X\(//\)$' \| \
13372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13373 printf "%s\n" X"$as_dir" |
13374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13375 s//\1/
13376 q
13377 }
13378 /^X\(\/\/\)[^/].*/{
13379 s//\1/
13380 q
13381 }
13382 /^X\(\/\/\)$/{
13383 s//\1/
13384 q
13385 }
13386 /^X\(\/\).*/{
13387 s//\1/
13388 q
13389 }
13390 s/.*/./; q'`
13391 test -d "$as_dir" && break
13392 done
13393 test -z "$as_dirs" || eval "mkdir $as_dirs"
13394 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13395
13396
13397 } # as_fn_mkdir_p
13398 if mkdir -p . 2>/dev/null; then
13399 as_mkdir_p='mkdir -p "$as_dir"'
13400 else
13401 test -d ./-p && rmdir ./-p
13402 as_mkdir_p=false
13403 fi
13404
13405
13406 # as_fn_executable_p FILE
13407 # -----------------------
13408 # Test if FILE is an executable regular file.
13409 as_fn_executable_p ()
13410 {
13411 test -f "$1" && test -x "$1"
13412 } # as_fn_executable_p
13413 as_test_x='test -x'
13414 as_executable_p=as_fn_executable_p
13415
13416 # Sed expression to map a string onto a valid CPP name.
13417 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13418 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13419
13420 # Sed expression to map a string onto a valid variable name.
13421 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13422 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13423
13424
13425 exec 6>&1
13426 ## ----------------------------------- ##
13427 ## Main body of $CONFIG_STATUS script. ##
13428 ## ----------------------------------- ##
13429 _ASEOF
13430 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13431
13432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13433 # Save the log message, to keep $0 and so on meaningful, and to
13434 # report actual input values of CONFIG_FILES etc. instead of their
13435 # values after options handling.
13436 ac_log="
13437 This file was extended by rsync $as_me, which was
13438 generated by GNU Autoconf 2.72. Invocation command line was
13439
13440 CONFIG_FILES = $CONFIG_FILES
13441 CONFIG_HEADERS = $CONFIG_HEADERS
13442 CONFIG_LINKS = $CONFIG_LINKS
13443 CONFIG_COMMANDS = $CONFIG_COMMANDS
13444 $ $0 $@
13445
13446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13447 "
13448
13449 _ACEOF
13450
13451 case $ac_config_files in *"
13452 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13453 esac
13454
13455 case $ac_config_headers in *"
13456 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13457 esac
13458
13459
13460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13461 # Files that config.status was made for.
13462 config_files="$ac_config_files"
13463 config_headers="$ac_config_headers"
13464
13465 _ACEOF
13466
13467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13468 ac_cs_usage="\
13469 '$as_me' instantiates files and other configuration actions
13470 from templates according to the current configuration. Unless the files
13471 and actions are specified as TAGs, all are instantiated by default.
13472
13473 Usage: $0 [OPTION]... [TAG]...
13474
13475 -h, --help print this help, then exit
13476 -V, --version print version number and configuration settings, then exit
13477 --config print configuration, then exit
13478 -q, --quiet, --silent
13479 do not print progress messages
13480 -d, --debug don't remove temporary files
13481 --recheck update $as_me by reconfiguring in the same conditions
13482 --file=FILE[:TEMPLATE]
13483 instantiate the configuration file FILE
13484 --header=FILE[:TEMPLATE]
13485 instantiate the configuration header FILE
13486
13487 Configuration files:
13488 $config_files
13489
13490 Configuration headers:
13491 $config_headers
13492
13493 Report bugs to <https://rsync.samba.org/bug-tracking.html>."
13494
13495 _ACEOF
13496 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13497 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13499 ac_cs_config='$ac_cs_config_escaped'
13500 ac_cs_version="\\
13501 rsync config.status
13502 configured by $0, generated by GNU Autoconf 2.72,
13503 with options \\"\$ac_cs_config\\"
13504
13505 Copyright (C) 2023 Free Software Foundation, Inc.
13506 This config.status script is free software; the Free Software Foundation
13507 gives unlimited permission to copy, distribute and modify it."
13508
13509 ac_pwd='$ac_pwd'
13510 srcdir='$srcdir'
13511 INSTALL='$INSTALL'
13512 MKDIR_P='$MKDIR_P'
13513 AWK='$AWK'
13514 test -n "\$AWK" || AWK=awk
13515 _ACEOF
13516
13517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518 # The default lists apply if the user does not specify any file.
13519 ac_need_defaults=:
13520 while test $# != 0
13521 do
13522 case $1 in
13523 --*=?*)
13524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13526 ac_shift=:
13527 ;;
13528 --*=)
13529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13530 ac_optarg=
13531 ac_shift=:
13532 ;;
13533 *)
13534 ac_option=$1
13535 ac_optarg=$2
13536 ac_shift=shift
13537 ;;
13538 esac
13539
13540 case $ac_option in
13541 # Handling of the options.
13542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13543 ac_cs_recheck=: ;;
13544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13545 printf "%s\n" "$ac_cs_version"; exit ;;
13546 --config | --confi | --conf | --con | --co | --c )
13547 printf "%s\n" "$ac_cs_config"; exit ;;
13548 --debug | --debu | --deb | --de | --d | -d )
13549 debug=: ;;
13550 --file | --fil | --fi | --f )
13551 $ac_shift
13552 case $ac_optarg in
13553 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13554 '') as_fn_error $? "missing file argument" ;;
13555 esac
13556 as_fn_append CONFIG_FILES " '$ac_optarg'"
13557 ac_need_defaults=false;;
13558 --header | --heade | --head | --hea )
13559 $ac_shift
13560 case $ac_optarg in
13561 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13562 esac
13563 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13564 ac_need_defaults=false;;
13565 --he | --h)
13566 # Conflict between --help and --header
13567 as_fn_error $? "ambiguous option: '$1'
13568 Try '$0 --help' for more information.";;
13569 --help | --hel | -h )
13570 printf "%s\n" "$ac_cs_usage"; exit ;;
13571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13573 ac_cs_silent=: ;;
13574
13575 # This is an error.
13576 -*) as_fn_error $? "unrecognized option: '$1'
13577 Try '$0 --help' for more information." ;;
13578
13579 *) as_fn_append ac_config_targets " $1"
13580 ac_need_defaults=false ;;
13581
13582 esac
13583 shift
13584 done
13585
13586 ac_configure_extra_args=
13587
13588 if $ac_cs_silent; then
13589 exec 6>/dev/null
13590 ac_configure_extra_args="$ac_configure_extra_args --silent"
13591 fi
13592
13593 _ACEOF
13594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13595 if \$ac_cs_recheck; then
13596 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13597 shift
13598 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13599 CONFIG_SHELL='$SHELL'
13600 export CONFIG_SHELL
13601 exec "\$@"
13602 fi
13603
13604 _ACEOF
13605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13606 exec 5>>config.log
13607 {
13608 echo
13609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13610 ## Running $as_me. ##
13611 _ASBOX
13612 printf "%s\n" "$ac_log"
13613 } >&5
13614
13615 _ACEOF
13616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13617 _ACEOF
13618
13619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13620
13621 # Handling of arguments.
13622 for ac_config_target in $ac_config_targets
13623 do
13624 case $ac_config_target in
13625 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13626 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13627 "lib/dummy") CONFIG_FILES="$CONFIG_FILES lib/dummy" ;;
13628 "zlib/dummy") CONFIG_FILES="$CONFIG_FILES zlib/dummy" ;;
13629 "popt/dummy") CONFIG_FILES="$CONFIG_FILES popt/dummy" ;;
13630 "shconfig") CONFIG_FILES="$CONFIG_FILES shconfig" ;;
13631
13632 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13633 esac
13634 done
13635
13636
13637 # If the user did not use the arguments to specify the items to instantiate,
13638 # then the envvar interface is used. Set only those that are not.
13639 # We use the long form for the default assignment because of an extremely
13640 # bizarre bug on SunOS 4.1.3.
13641 if $ac_need_defaults; then
13642 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13643 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13644 fi
13645
13646 # Have a temporary directory for convenience. Make it in the build tree
13647 # simply because there is no reason against having it here, and in addition,
13648 # creating and moving files from /tmp can sometimes cause problems.
13649 # Hook for its removal unless debugging.
13650 # Note that there is a small window in which the directory will not be cleaned:
13651 # after its creation but before its name has been assigned to '$tmp'.
13652 $debug ||
13653 {
13654 tmp= ac_tmp=
13655 trap 'exit_status=$?
13656 : "${ac_tmp:=$tmp}"
13657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13658 ' 0
13659 trap 'as_fn_exit 1' 1 2 13 15
13660 }
13661 # Create a (secure) tmp directory for tmp files.
13662
13663 {
13664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13665 test -d "$tmp"
13666 } ||
13667 {
13668 tmp=./conf$$-$RANDOM
13669 (umask 077 && mkdir "$tmp")
13670 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13671 ac_tmp=$tmp
13672
13673 # Set up the scripts for CONFIG_FILES section.
13674 # No need to generate them if there are no CONFIG_FILES.
13675 # This happens for instance with './config.status config.h'.
13676 if test -n "$CONFIG_FILES"; then
13677
13678
13679 ac_cr=`echo X | tr X '\015'`
13680 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13681 # But we know of no other shell where ac_cr would be empty at this
13682 # point, so we can use a bashism as a fallback.
13683 if test "x$ac_cr" = x; then
13684 eval ac_cr=\$\'\\r\'
13685 fi
13686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13688 ac_cs_awk_cr='\\r'
13689 else
13690 ac_cs_awk_cr=$ac_cr
13691 fi
13692
13693 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13694 _ACEOF
13695
13696
13697 {
13698 echo "cat >conf$$subs.awk <<_ACEOF" &&
13699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13700 echo "_ACEOF"
13701 } >conf$$subs.sh ||
13702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13703 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13704 ac_delim='%!_!# '
13705 for ac_last_try in false false false false false :; do
13706 . ./conf$$subs.sh ||
13707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13708
13709 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13710 if test $ac_delim_n = $ac_delim_num; then
13711 break
13712 elif $ac_last_try; then
13713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13714 else
13715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13716 fi
13717 done
13718 rm -f conf$$subs.sh
13719
13720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13722 _ACEOF
13723 sed -n '
13724 h
13725 s/^/S["/; s/!.*/"]=/
13726 p
13727 g
13728 s/^[^!]*!//
13729 :repl
13730 t repl
13731 s/'"$ac_delim"'$//
13732 t delim
13733 :nl
13734 h
13735 s/\(.\{148\}\)..*/\1/
13736 t more1
13737 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13738 p
13739 n
13740 b repl
13741 :more1
13742 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13743 p
13744 g
13745 s/.\{148\}//
13746 t nl
13747 :delim
13748 h
13749 s/\(.\{148\}\)..*/\1/
13750 t more2
13751 s/["\\]/\\&/g; s/^/"/; s/$/"/
13752 p
13753 b
13754 :more2
13755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13756 p
13757 g
13758 s/.\{148\}//
13759 t delim
13760 ' <conf$$subs.awk | sed '
13761 /^[^""]/{
13762 N
13763 s/\n//
13764 }
13765 ' >>$CONFIG_STATUS || ac_write_fail=1
13766 rm -f conf$$subs.awk
13767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13768 _ACAWK
13769 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13770 for (key in S) S_is_set[key] = 1
13771 FS = ""
13772
13773 }
13774 {
13775 line = $ 0
13776 nfields = split(line, field, "@")
13777 substed = 0
13778 len = length(field[1])
13779 for (i = 2; i < nfields; i++) {
13780 key = field[i]
13781 keylen = length(key)
13782 if (S_is_set[key]) {
13783 value = S[key]
13784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13785 len += length(value) + length(field[++i])
13786 substed = 1
13787 } else
13788 len += 1 + keylen
13789 }
13790
13791 print line
13792 }
13793
13794 _ACAWK
13795 _ACEOF
13796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13799 else
13800 cat
13801 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13802 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13803 _ACEOF
13804
13805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13807 # trailing colons and then remove the whole line if VPATH becomes empty
13808 # (actually we leave an empty line to preserve line numbers).
13809 if test "x$srcdir" = x.; then
13810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13811 h
13812 s///
13813 s/^/:/
13814 s/[ ]*$/:/
13815 s/:\$(srcdir):/:/g
13816 s/:\${srcdir}:/:/g
13817 s/:@srcdir@:/:/g
13818 s/^:*//
13819 s/:*$//
13820 x
13821 s/\(=[ ]*\).*/\1/
13822 G
13823 s/\n//
13824 s/^[^=]*=[ ]*$//
13825 }'
13826 fi
13827
13828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13829 fi # test -n "$CONFIG_FILES"
13830
13831 # Set up the scripts for CONFIG_HEADERS section.
13832 # No need to generate them if there are no CONFIG_HEADERS.
13833 # This happens for instance with './config.status Makefile'.
13834 if test -n "$CONFIG_HEADERS"; then
13835 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13836 BEGIN {
13837 _ACEOF
13838
13839 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13840 # here-document in config.status, that substitutes the proper values into
13841 # config.h.in to produce config.h.
13842
13843 # Create a delimiter string that does not exist in confdefs.h, to ease
13844 # handling of long lines.
13845 ac_delim='%!_!# '
13846 for ac_last_try in false false :; do
13847 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13848 if test -z "$ac_tt"; then
13849 break
13850 elif $ac_last_try; then
13851 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13852 else
13853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13854 fi
13855 done
13856
13857 # For the awk script, D is an array of macro values keyed by name,
13858 # likewise P contains macro parameters if any. Preserve backslash
13859 # newline sequences.
13860
13861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13862 sed -n '
13863 s/.\{148\}/&'"$ac_delim"'/g
13864 t rset
13865 :rset
13866 s/^[ ]*#[ ]*define[ ][ ]*/ /
13867 t def
13868 d
13869 :def
13870 s/\\$//
13871 t bsnl
13872 s/["\\]/\\&/g
13873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13874 D["\1"]=" \3"/p
13875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13876 d
13877 :bsnl
13878 s/["\\]/\\&/g
13879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13880 D["\1"]=" \3\\\\\\n"\\/p
13881 t cont
13882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13883 t cont
13884 d
13885 :cont
13886 n
13887 s/.\{148\}/&'"$ac_delim"'/g
13888 t clear
13889 :clear
13890 s/\\$//
13891 t bsnlc
13892 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13893 d
13894 :bsnlc
13895 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13896 b cont
13897 ' <confdefs.h | sed '
13898 s/'"$ac_delim"'/"\\\
13899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13900
13901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13902 for (key in D) D_is_set[key] = 1
13903 FS = ""
13904 }
13905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13906 line = \$ 0
13907 split(line, arg, " ")
13908 if (arg[1] == "#") {
13909 defundef = arg[2]
13910 mac1 = arg[3]
13911 } else {
13912 defundef = substr(arg[1], 2)
13913 mac1 = arg[2]
13914 }
13915 split(mac1, mac2, "(") #)
13916 macro = mac2[1]
13917 prefix = substr(line, 1, index(line, defundef) - 1)
13918 if (D_is_set[macro]) {
13919 # Preserve the white space surrounding the "#".
13920 print prefix "define", macro P[macro] D[macro]
13921 next
13922 } else {
13923 # Replace #undef with comments. This is necessary, for example,
13924 # in the case of _POSIX_SOURCE, which is predefined and required
13925 # on some systems where configure will not decide to define it.
13926 if (defundef == "undef") {
13927 print "/*", prefix defundef, macro, "*/"
13928 next
13929 }
13930 }
13931 }
13932 { print }
13933 _ACAWK
13934 _ACEOF
13935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13936 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13937 fi # test -n "$CONFIG_HEADERS"
13938
13939
13940 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
13941 shift
13942 for ac_tag
13943 do
13944 case $ac_tag in
13945 :[FHLC]) ac_mode=$ac_tag; continue;;
13946 esac
13947 case $ac_mode$ac_tag in
13948 :[FHL]*:*);;
13949 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13950 :[FH]-) ac_tag=-:-;;
13951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13952 esac
13953 ac_save_IFS=$IFS
13954 IFS=:
13955 set x $ac_tag
13956 IFS=$ac_save_IFS
13957 shift
13958 ac_file=$1
13959 shift
13960
13961 case $ac_mode in
13962 :L) ac_source=$1;;
13963 :[FH])
13964 ac_file_inputs=
13965 for ac_f
13966 do
13967 case $ac_f in
13968 -) ac_f="$ac_tmp/stdin";;
13969 *) # Look for the file first in the build tree, then in the source tree
13970 # (if the path is not absolute). The absolute path cannot be DOS-style,
13971 # because $ac_f cannot contain ':'.
13972 test -f "$ac_f" ||
13973 case $ac_f in
13974 [\\/$]*) false;;
13975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13976 esac ||
13977 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13978 esac
13979 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13980 as_fn_append ac_file_inputs " '$ac_f'"
13981 done
13982
13983 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13984 # use $as_me), people would be surprised to read:
13985 # /* config.h. Generated by config.status. */
13986 configure_input='Generated from '`
13987 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13988 `' by configure.'
13989 if test x"$ac_file" != x-; then
13990 configure_input="$ac_file. $configure_input"
13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13992 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13993 fi
13994 # Neutralize special characters interpreted by sed in replacement strings.
13995 case $configure_input in #(
13996 *\&* | *\|* | *\\* )
13997 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13999 *) ac_sed_conf_input=$configure_input;;
14000 esac
14001
14002 case $ac_tag in
14003 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14005 esac
14006 ;;
14007 esac
14008
14009 ac_dir=`$as_dirname -- "$ac_file" ||
14010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14011 X"$ac_file" : 'X\(//\)[^/]' \| \
14012 X"$ac_file" : 'X\(//\)$' \| \
14013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14014 printf "%s\n" X"$ac_file" |
14015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14016 s//\1/
14017 q
14018 }
14019 /^X\(\/\/\)[^/].*/{
14020 s//\1/
14021 q
14022 }
14023 /^X\(\/\/\)$/{
14024 s//\1/
14025 q
14026 }
14027 /^X\(\/\).*/{
14028 s//\1/
14029 q
14030 }
14031 s/.*/./; q'`
14032 as_dir="$ac_dir"; as_fn_mkdir_p
14033 ac_builddir=.
14034
14035 case "$ac_dir" in
14036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14037 *)
14038 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14039 # A ".." for each directory in $ac_dir_suffix.
14040 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14041 case $ac_top_builddir_sub in
14042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14044 esac ;;
14045 esac
14046 ac_abs_top_builddir=$ac_pwd
14047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14048 # for backward compatibility:
14049 ac_top_builddir=$ac_top_build_prefix
14050
14051 case $srcdir in
14052 .) # We are building in place.
14053 ac_srcdir=.
14054 ac_top_srcdir=$ac_top_builddir_sub
14055 ac_abs_top_srcdir=$ac_pwd ;;
14056 [\\/]* | ?:[\\/]* ) # Absolute name.
14057 ac_srcdir=$srcdir$ac_dir_suffix;
14058 ac_top_srcdir=$srcdir
14059 ac_abs_top_srcdir=$srcdir ;;
14060 *) # Relative name.
14061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14062 ac_top_srcdir=$ac_top_build_prefix$srcdir
14063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14064 esac
14065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14066
14067
14068 case $ac_mode in
14069 :F)
14070 #
14071 # CONFIG_FILE
14072 #
14073
14074 case $INSTALL in
14075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14077 esac
14078 ac_MKDIR_P=$MKDIR_P
14079 case $MKDIR_P in
14080 [\\/$]* | ?:[\\/]* ) ;;
14081 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14082 esac
14083 _ACEOF
14084
14085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086 # If the template does not know about datarootdir, expand it.
14087 # FIXME: This hack should be removed a few years after 2.60.
14088 ac_datarootdir_hack=; ac_datarootdir_seen=
14089 ac_sed_dataroot='
14090 /datarootdir/ {
14091 p
14092 q
14093 }
14094 /@datadir@/p
14095 /@docdir@/p
14096 /@infodir@/p
14097 /@localedir@/p
14098 /@mandir@/p'
14099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14100 *datarootdir*) ac_datarootdir_seen=yes;;
14101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14103 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14104 _ACEOF
14105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14106 ac_datarootdir_hack='
14107 s&@datadir@&$datadir&g
14108 s&@docdir@&$docdir&g
14109 s&@infodir@&$infodir&g
14110 s&@localedir@&$localedir&g
14111 s&@mandir@&$mandir&g
14112 s&\\\${datarootdir}&$datarootdir&g' ;;
14113 esac
14114 _ACEOF
14115
14116 # Neutralize VPATH when '$srcdir' = '.'.
14117 # Shell code in configure.ac might set extrasub.
14118 # FIXME: do we really want to maintain this feature?
14119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120 ac_sed_extra="$ac_vpsub
14121 $extrasub
14122 _ACEOF
14123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124 :t
14125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14126 s|@configure_input@|$ac_sed_conf_input|;t t
14127 s&@top_builddir@&$ac_top_builddir_sub&;t t
14128 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14129 s&@srcdir@&$ac_srcdir&;t t
14130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14131 s&@top_srcdir@&$ac_top_srcdir&;t t
14132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14133 s&@builddir@&$ac_builddir&;t t
14134 s&@abs_builddir@&$ac_abs_builddir&;t t
14135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14136 s&@INSTALL@&$ac_INSTALL&;t t
14137 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14138 $ac_datarootdir_hack
14139 "
14140 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14141 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14142
14143 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14144 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14145 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14146 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14148 which seems to be undefined. Please make sure it is defined" >&5
14149 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14150 which seems to be undefined. Please make sure it is defined" >&2;}
14151
14152 rm -f "$ac_tmp/stdin"
14153 case $ac_file in
14154 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14155 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14156 esac \
14157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14158 ;;
14159 :H)
14160 #
14161 # CONFIG_HEADER
14162 #
14163 if test x"$ac_file" != x-; then
14164 {
14165 printf "%s\n" "/* $configure_input */" >&1 \
14166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14167 } >"$ac_tmp/config.h" \
14168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14169 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14171 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14172 else
14173 rm -f "$ac_file"
14174 mv "$ac_tmp/config.h" "$ac_file" \
14175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14176 fi
14177 else
14178 printf "%s\n" "/* $configure_input */" >&1 \
14179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14180 || as_fn_error $? "could not create -" "$LINENO" 5
14181 fi
14182 ;;
14183
14184
14185 esac
14186
14187 done # for ac_tag
14188
14189
14190 as_fn_exit 0
14191 _ACEOF
14192 ac_clean_files=$ac_clean_files_save
14193
14194 test $ac_write_fail = 0 ||
14195 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14196
14197
14198 # configure is writing to config.log, and then calls config.status.
14199 # config.status does its own redirection, appending to config.log.
14200 # Unfortunately, on DOS this fails, as config.log is still kept open
14201 # by configure, so config.status won't be able to write to it; its
14202 # output is simply discarded. So we exec the FD to /dev/null,
14203 # effectively closing config.log, so it can be properly (re)opened and
14204 # appended to by config.status. When coming back to configure, we
14205 # need to make the FD available again.
14206 if test "$no_create" != yes; then
14207 ac_cs_success=:
14208 ac_config_status_args=
14209 test "$silent" = yes &&
14210 ac_config_status_args="$ac_config_status_args --quiet"
14211 exec 5>/dev/null
14212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14213 exec 5>>config.log
14214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14215 # would make configure fail if this is the last instruction.
14216 $ac_cs_success || as_fn_exit 1
14217 fi
14218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14220 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14221 fi
14222
14223
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
14225 printf "%s\n" "" >&6; }
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: rsync $PACKAGE_VERSION configuration successful" >&5
14227 printf "%s\n" " rsync $PACKAGE_VERSION configuration successful" >&6; }
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
14229 printf "%s\n" "" >&6; }
14230