Annotation of embedaddon/rsync/configure.sh, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
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: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1"
176: if (eval "$as_required") 2>/dev/null; then :
177: as_have_required=yes
178: else
179: as_have_required=no
180: fi
181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182:
183: else
184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185: as_found=false
186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187: do
188: IFS=$as_save_IFS
189: test -z "$as_dir" && as_dir=.
190: as_found=:
191: case $as_dir in #(
192: /*)
193: for as_base in sh bash ksh sh5; do
194: # Try only shells that exist, to save several forks.
195: as_shell=$as_dir/$as_base
196: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198: CONFIG_SHELL=$as_shell as_have_required=yes
199: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: break 2
201: fi
202: fi
203: done;;
204: esac
205: as_found=false
206: done
207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209: CONFIG_SHELL=$SHELL as_have_required=yes
210: fi; }
211: IFS=$as_save_IFS
212:
213:
214: if test "x$CONFIG_SHELL" != x; then :
215: # We cannot yet assume a decent shell, so we have to provide a
216: # neutralization value for shells without unset; and this also
217: # works around shells that cannot unset nonexistent variables.
218: # Preserve -v and -x to the replacement shell.
219: BASH_ENV=/dev/null
220: ENV=/dev/null
221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222: export CONFIG_SHELL
223: case $- in # ((((
224: *v*x* | *x*v* ) as_opts=-vx ;;
225: *v* ) as_opts=-v ;;
226: *x* ) as_opts=-x ;;
227: * ) as_opts= ;;
228: esac
229: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230: fi
231:
232: if test x$as_have_required = xno; then :
233: $as_echo "$0: This script requires a shell more modern than all"
234: $as_echo "$0: the shells that I found on your system."
235: if test x${ZSH_VERSION+set} = xset ; then
236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238: else
239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240: $0: including any error possibly output before this
241: $0: message. Then install a modern shell, or manually run
242: $0: the script under such a shell if you do have one."
243: fi
244: exit 1
245: fi
246: fi
247: fi
248: SHELL=${CONFIG_SHELL-/bin/sh}
249: export SHELL
250: # Unset more variables known to interfere with behavior of common tools.
251: CLICOLOR_FORCE= GREP_OPTIONS=
252: unset CLICOLOR_FORCE GREP_OPTIONS
253:
254: ## --------------------- ##
255: ## M4sh Shell Functions. ##
256: ## --------------------- ##
257: # as_fn_unset VAR
258: # ---------------
259: # Portably unset VAR.
260: as_fn_unset ()
261: {
262: { eval $1=; unset $1;}
263: }
264: as_unset=as_fn_unset
265:
266: # as_fn_set_status STATUS
267: # -----------------------
268: # Set $? to STATUS, without forking.
269: as_fn_set_status ()
270: {
271: return $1
272: } # as_fn_set_status
273:
274: # as_fn_exit STATUS
275: # -----------------
276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277: as_fn_exit ()
278: {
279: set +e
280: as_fn_set_status $1
281: exit $1
282: } # as_fn_exit
283:
284: # as_fn_mkdir_p
285: # -------------
286: # Create "$as_dir" as a directory, including parents if necessary.
287: as_fn_mkdir_p ()
288: {
289:
290: case $as_dir in #(
291: -*) as_dir=./$as_dir;;
292: esac
293: test -d "$as_dir" || eval $as_mkdir_p || {
294: as_dirs=
295: while :; do
296: case $as_dir in #(
297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298: *) as_qdir=$as_dir;;
299: esac
300: as_dirs="'$as_qdir' $as_dirs"
301: as_dir=`$as_dirname -- "$as_dir" ||
302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303: X"$as_dir" : 'X\(//\)[^/]' \| \
304: X"$as_dir" : 'X\(//\)$' \| \
305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306: $as_echo X"$as_dir" |
307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\/\)[^/].*/{
312: s//\1/
313: q
314: }
315: /^X\(\/\/\)$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\).*/{
320: s//\1/
321: q
322: }
323: s/.*/./; q'`
324: test -d "$as_dir" && break
325: done
326: test -z "$as_dirs" || eval "mkdir $as_dirs"
327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328:
329:
330: } # as_fn_mkdir_p
331: # as_fn_append VAR VALUE
332: # ----------------------
333: # Append the text in VALUE to the end of the definition contained in VAR. Take
334: # advantage of any shell optimizations that allow amortized linear growth over
335: # repeated appends, instead of the typical quadratic growth present in naive
336: # implementations.
337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338: eval 'as_fn_append ()
339: {
340: eval $1+=\$2
341: }'
342: else
343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
348:
349: # as_fn_arith ARG...
350: # ------------------
351: # Perform arithmetic evaluation on the ARGs, and store the result in the
352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
353: # must be portable across $(()) and expr.
354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355: eval 'as_fn_arith ()
356: {
357: as_val=$(( $* ))
358: }'
359: else
360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
365:
366:
367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371: # script with STATUS, using 1 if that was 0.
372: as_fn_error ()
373: {
374: as_status=$1; test $as_status -eq 0 && as_status=1
375: if test "$4"; then
376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378: fi
379: $as_echo "$as_me: error: $2" >&2
380: as_fn_exit $as_status
381: } # as_fn_error
382:
383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
386: else
387: as_expr=false
388: fi
389:
390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
392: else
393: as_basename=false
394: fi
395:
396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
398: else
399: as_dirname=false
400: fi
401:
402: as_me=`$as_basename -- "$0" ||
403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406: $as_echo X/"$0" |
407: sed '/^.*\/\([^/][^/]*\)\/*$/{
408: s//\1/
409: q
410: }
411: /^X\/\(\/\/\)$/{
412: s//\1/
413: q
414: }
415: /^X\/\(\/\).*/{
416: s//\1/
417: q
418: }
419: s/.*/./; q'`
420:
421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
427:
428:
429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
438: sed '
439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
443: N
444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446: t loop
447: s/-\n.*//
448: ' >$as_me.lineno &&
449: chmod +x "$as_me.lineno" ||
450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
456: # Exit status is that of the last command.
457: exit
458: }
459:
460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
468: esac;;
469: *)
470: ECHO_N='-n';;
471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
478: mkdir conf$$.dir 2>/dev/null
479: fi
480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
492: as_ln_s='cp -p'
493: fi
494: else
495: as_ln_s='cp -p'
496: fi
497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
499:
500: if mkdir -p . 2>/dev/null; then
501: as_mkdir_p='mkdir -p "$as_dir"'
502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
518: test -d "$1/.";
519: else
520: case $1 in #(
521: -*)set "./$1";;
522: esac;
523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536:
537: test -n "$DJDIR" || exec 7<&0 </dev/null
538: exec 6>&1
539:
540: # Name of the host.
541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542: # so uname gets run too.
543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544:
545: #
546: # Initializations.
547: #
548: ac_default_prefix=/usr/local
549: ac_clean_files=
550: ac_config_libobj_dir=.
551: LIBOBJS=
552: cross_compiling=no
553: subdirs=
554: MFLAGS=
555: MAKEFLAGS=
556:
557: # Identity of this package.
558: PACKAGE_NAME=
559: PACKAGE_TARNAME=
560: PACKAGE_VERSION=
561: PACKAGE_STRING=
562: PACKAGE_BUGREPORT=
563: PACKAGE_URL=
564:
565: ac_unique_file="byteorder.h"
566: # Factoring default headers for most tests.
567: ac_includes_default="\
568: #include <stdio.h>
569: #ifdef HAVE_SYS_TYPES_H
570: # include <sys/types.h>
571: #endif
572: #ifdef HAVE_SYS_STAT_H
573: # include <sys/stat.h>
574: #endif
575: #ifdef STDC_HEADERS
576: # include <stdlib.h>
577: # include <stddef.h>
578: #else
579: # ifdef HAVE_STDLIB_H
580: # include <stdlib.h>
581: # endif
582: #endif
583: #ifdef HAVE_STRING_H
584: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585: # include <memory.h>
586: # endif
587: # include <string.h>
588: #endif
589: #ifdef HAVE_STRINGS_H
590: # include <strings.h>
591: #endif
592: #ifdef HAVE_INTTYPES_H
593: # include <inttypes.h>
594: #endif
595: #ifdef HAVE_STDINT_H
596: # include <stdint.h>
597: #endif
598: #ifdef HAVE_UNISTD_H
599: # include <unistd.h>
600: #endif"
601:
602: ac_header_list=
603: ac_subst_vars='LTLIBOBJS
604: MAKE_MAN
605: BUILD_POPT
606: CC_SHOBJ_FLAG
607: OBJ_RESTORE
608: OBJ_SAVE
609: ALLOCA
610: LIBOBJS
611: HAVE_YODL2MAN
612: HAVE_REMSH
613: INSTALL_DATA
614: INSTALL_SCRIPT
615: INSTALL_PROGRAM
616: EGREP
617: GREP
618: CPP
619: OBJEXT
620: EXEEXT
621: ac_ct_CC
622: CPPFLAGS
623: LDFLAGS
624: CFLAGS
625: CC
626: host_os
627: host_vendor
628: host_cpu
629: host
630: build_os
631: build_vendor
632: build_cpu
633: build
634: RSYNC_VERSION
635: target_alias
636: host_alias
637: build_alias
638: LIBS
639: ECHO_T
640: ECHO_N
641: ECHO_C
642: DEFS
643: mandir
644: localedir
645: libdir
646: psdir
647: pdfdir
648: dvidir
649: htmldir
650: infodir
651: docdir
652: oldincludedir
653: includedir
654: localstatedir
655: sharedstatedir
656: sysconfdir
657: datadir
658: datarootdir
659: libexecdir
660: sbindir
661: bindir
662: program_transform_name
663: prefix
664: exec_prefix
665: PACKAGE_URL
666: PACKAGE_BUGREPORT
667: PACKAGE_STRING
668: PACKAGE_VERSION
669: PACKAGE_TARNAME
670: PACKAGE_NAME
671: PATH_SEPARATOR
672: SHELL'
673: ac_subst_files=''
674: ac_user_opts='
675: enable_option_checking
676: enable_debug
677: enable_profile
678: enable_maintainer_mode
679: with_included_popt
680: with_rsync_path
681: with_rsyncd_conf
682: with_rsh
683: with_nobody_group
684: enable_largefile
685: enable_ipv6
686: enable_locale
687: enable_iconv_open
688: enable_iconv
689: enable_acl_support
690: enable_xattr_support
691: '
692: ac_precious_vars='build_alias
693: host_alias
694: target_alias
695: CC
696: CFLAGS
697: LDFLAGS
698: LIBS
699: CPPFLAGS
700: CPP'
701:
702:
703: # Initialize some variables set by options.
704: ac_init_help=
705: ac_init_version=false
706: ac_unrecognized_opts=
707: ac_unrecognized_sep=
708: # The variables have the same names as the options, with
709: # dashes changed to underlines.
710: cache_file=/dev/null
711: exec_prefix=NONE
712: no_create=
713: no_recursion=
714: prefix=NONE
715: program_prefix=NONE
716: program_suffix=NONE
717: program_transform_name=s,x,x,
718: silent=
719: site=
720: srcdir=
721: verbose=
722: x_includes=NONE
723: x_libraries=NONE
724:
725: # Installation directory options.
726: # These are left unexpanded so users can "make install exec_prefix=/foo"
727: # and all the variables that are supposed to be based on exec_prefix
728: # by default will actually change.
729: # Use braces instead of parens because sh, perl, etc. also accept them.
730: # (The list follows the same order as the GNU Coding Standards.)
731: bindir='${exec_prefix}/bin'
732: sbindir='${exec_prefix}/sbin'
733: libexecdir='${exec_prefix}/libexec'
734: datarootdir='${prefix}/share'
735: datadir='${datarootdir}'
736: sysconfdir='${prefix}/etc'
737: sharedstatedir='${prefix}/com'
738: localstatedir='${prefix}/var'
739: includedir='${prefix}/include'
740: oldincludedir='/usr/include'
741: docdir='${datarootdir}/doc/${PACKAGE}'
742: infodir='${datarootdir}/info'
743: htmldir='${docdir}'
744: dvidir='${docdir}'
745: pdfdir='${docdir}'
746: psdir='${docdir}'
747: libdir='${exec_prefix}/lib'
748: localedir='${datarootdir}/locale'
749: mandir='${datarootdir}/man'
750:
751: ac_prev=
752: ac_dashdash=
753: for ac_option
754: do
755: # If the previous option needs an argument, assign it.
756: if test -n "$ac_prev"; then
757: eval $ac_prev=\$ac_option
758: ac_prev=
759: continue
760: fi
761:
762: case $ac_option in
763: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
764: *=) ac_optarg= ;;
765: *) ac_optarg=yes ;;
766: esac
767:
768: # Accept the important Cygnus configure options, so we can diagnose typos.
769:
770: case $ac_dashdash$ac_option in
771: --)
772: ac_dashdash=yes ;;
773:
774: -bindir | --bindir | --bindi | --bind | --bin | --bi)
775: ac_prev=bindir ;;
776: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
777: bindir=$ac_optarg ;;
778:
779: -build | --build | --buil | --bui | --bu)
780: ac_prev=build_alias ;;
781: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
782: build_alias=$ac_optarg ;;
783:
784: -cache-file | --cache-file | --cache-fil | --cache-fi \
785: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
786: ac_prev=cache_file ;;
787: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
788: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
789: cache_file=$ac_optarg ;;
790:
791: --config-cache | -C)
792: cache_file=config.cache ;;
793:
794: -datadir | --datadir | --datadi | --datad)
795: ac_prev=datadir ;;
796: -datadir=* | --datadir=* | --datadi=* | --datad=*)
797: datadir=$ac_optarg ;;
798:
799: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
800: | --dataroo | --dataro | --datar)
801: ac_prev=datarootdir ;;
802: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
803: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
804: datarootdir=$ac_optarg ;;
805:
806: -disable-* | --disable-*)
807: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
808: # Reject names that are not valid shell variable names.
809: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810: as_fn_error $? "invalid feature name: $ac_useropt"
811: ac_useropt_orig=$ac_useropt
812: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813: case $ac_user_opts in
814: *"
815: "enable_$ac_useropt"
816: "*) ;;
817: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
818: ac_unrecognized_sep=', ';;
819: esac
820: eval enable_$ac_useropt=no ;;
821:
822: -docdir | --docdir | --docdi | --doc | --do)
823: ac_prev=docdir ;;
824: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825: docdir=$ac_optarg ;;
826:
827: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828: ac_prev=dvidir ;;
829: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830: dvidir=$ac_optarg ;;
831:
832: -enable-* | --enable-*)
833: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834: # Reject names that are not valid shell variable names.
835: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836: as_fn_error $? "invalid feature name: $ac_useropt"
837: ac_useropt_orig=$ac_useropt
838: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839: case $ac_user_opts in
840: *"
841: "enable_$ac_useropt"
842: "*) ;;
843: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
844: ac_unrecognized_sep=', ';;
845: esac
846: eval enable_$ac_useropt=\$ac_optarg ;;
847:
848: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850: | --exec | --exe | --ex)
851: ac_prev=exec_prefix ;;
852: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854: | --exec=* | --exe=* | --ex=*)
855: exec_prefix=$ac_optarg ;;
856:
857: -gas | --gas | --ga | --g)
858: # Obsolete; use --with-gas.
859: with_gas=yes ;;
860:
861: -help | --help | --hel | --he | -h)
862: ac_init_help=long ;;
863: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864: ac_init_help=recursive ;;
865: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866: ac_init_help=short ;;
867:
868: -host | --host | --hos | --ho)
869: ac_prev=host_alias ;;
870: -host=* | --host=* | --hos=* | --ho=*)
871: host_alias=$ac_optarg ;;
872:
873: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874: ac_prev=htmldir ;;
875: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876: | --ht=*)
877: htmldir=$ac_optarg ;;
878:
879: -includedir | --includedir | --includedi | --included | --include \
880: | --includ | --inclu | --incl | --inc)
881: ac_prev=includedir ;;
882: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883: | --includ=* | --inclu=* | --incl=* | --inc=*)
884: includedir=$ac_optarg ;;
885:
886: -infodir | --infodir | --infodi | --infod | --info | --inf)
887: ac_prev=infodir ;;
888: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889: infodir=$ac_optarg ;;
890:
891: -libdir | --libdir | --libdi | --libd)
892: ac_prev=libdir ;;
893: -libdir=* | --libdir=* | --libdi=* | --libd=*)
894: libdir=$ac_optarg ;;
895:
896: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897: | --libexe | --libex | --libe)
898: ac_prev=libexecdir ;;
899: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900: | --libexe=* | --libex=* | --libe=*)
901: libexecdir=$ac_optarg ;;
902:
903: -localedir | --localedir | --localedi | --localed | --locale)
904: ac_prev=localedir ;;
905: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906: localedir=$ac_optarg ;;
907:
908: -localstatedir | --localstatedir | --localstatedi | --localstated \
909: | --localstate | --localstat | --localsta | --localst | --locals)
910: ac_prev=localstatedir ;;
911: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913: localstatedir=$ac_optarg ;;
914:
915: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916: ac_prev=mandir ;;
917: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918: mandir=$ac_optarg ;;
919:
920: -nfp | --nfp | --nf)
921: # Obsolete; use --without-fp.
922: with_fp=no ;;
923:
924: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925: | --no-cr | --no-c | -n)
926: no_create=yes ;;
927:
928: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930: no_recursion=yes ;;
931:
932: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934: | --oldin | --oldi | --old | --ol | --o)
935: ac_prev=oldincludedir ;;
936: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939: oldincludedir=$ac_optarg ;;
940:
941: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942: ac_prev=prefix ;;
943: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944: prefix=$ac_optarg ;;
945:
946: -program-prefix | --program-prefix | --program-prefi | --program-pref \
947: | --program-pre | --program-pr | --program-p)
948: ac_prev=program_prefix ;;
949: -program-prefix=* | --program-prefix=* | --program-prefi=* \
950: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951: program_prefix=$ac_optarg ;;
952:
953: -program-suffix | --program-suffix | --program-suffi | --program-suff \
954: | --program-suf | --program-su | --program-s)
955: ac_prev=program_suffix ;;
956: -program-suffix=* | --program-suffix=* | --program-suffi=* \
957: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958: program_suffix=$ac_optarg ;;
959:
960: -program-transform-name | --program-transform-name \
961: | --program-transform-nam | --program-transform-na \
962: | --program-transform-n | --program-transform- \
963: | --program-transform | --program-transfor \
964: | --program-transfo | --program-transf \
965: | --program-trans | --program-tran \
966: | --progr-tra | --program-tr | --program-t)
967: ac_prev=program_transform_name ;;
968: -program-transform-name=* | --program-transform-name=* \
969: | --program-transform-nam=* | --program-transform-na=* \
970: | --program-transform-n=* | --program-transform-=* \
971: | --program-transform=* | --program-transfor=* \
972: | --program-transfo=* | --program-transf=* \
973: | --program-trans=* | --program-tran=* \
974: | --progr-tra=* | --program-tr=* | --program-t=*)
975: program_transform_name=$ac_optarg ;;
976:
977: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978: ac_prev=pdfdir ;;
979: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980: pdfdir=$ac_optarg ;;
981:
982: -psdir | --psdir | --psdi | --psd | --ps)
983: ac_prev=psdir ;;
984: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985: psdir=$ac_optarg ;;
986:
987: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988: | -silent | --silent | --silen | --sile | --sil)
989: silent=yes ;;
990:
991: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992: ac_prev=sbindir ;;
993: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994: | --sbi=* | --sb=*)
995: sbindir=$ac_optarg ;;
996:
997: -sharedstatedir | --sharedstatedir | --sharedstatedi \
998: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999: | --sharedst | --shareds | --shared | --share | --shar \
1000: | --sha | --sh)
1001: ac_prev=sharedstatedir ;;
1002: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005: | --sha=* | --sh=*)
1006: sharedstatedir=$ac_optarg ;;
1007:
1008: -site | --site | --sit)
1009: ac_prev=site ;;
1010: -site=* | --site=* | --sit=*)
1011: site=$ac_optarg ;;
1012:
1013: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014: ac_prev=srcdir ;;
1015: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016: srcdir=$ac_optarg ;;
1017:
1018: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019: | --syscon | --sysco | --sysc | --sys | --sy)
1020: ac_prev=sysconfdir ;;
1021: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023: sysconfdir=$ac_optarg ;;
1024:
1025: -target | --target | --targe | --targ | --tar | --ta | --t)
1026: ac_prev=target_alias ;;
1027: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028: target_alias=$ac_optarg ;;
1029:
1030: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031: verbose=yes ;;
1032:
1033: -version | --version | --versio | --versi | --vers | -V)
1034: ac_init_version=: ;;
1035:
1036: -with-* | --with-*)
1037: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038: # Reject names that are not valid shell variable names.
1039: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040: as_fn_error $? "invalid package name: $ac_useropt"
1041: ac_useropt_orig=$ac_useropt
1042: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043: case $ac_user_opts in
1044: *"
1045: "with_$ac_useropt"
1046: "*) ;;
1047: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1048: ac_unrecognized_sep=', ';;
1049: esac
1050: eval with_$ac_useropt=\$ac_optarg ;;
1051:
1052: -without-* | --without-*)
1053: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054: # Reject names that are not valid shell variable names.
1055: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056: as_fn_error $? "invalid package name: $ac_useropt"
1057: ac_useropt_orig=$ac_useropt
1058: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059: case $ac_user_opts in
1060: *"
1061: "with_$ac_useropt"
1062: "*) ;;
1063: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1064: ac_unrecognized_sep=', ';;
1065: esac
1066: eval with_$ac_useropt=no ;;
1067:
1068: --x)
1069: # Obsolete; use --with-x.
1070: with_x=yes ;;
1071:
1072: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1073: | --x-incl | --x-inc | --x-in | --x-i)
1074: ac_prev=x_includes ;;
1075: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1076: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1077: x_includes=$ac_optarg ;;
1078:
1079: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1080: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1081: ac_prev=x_libraries ;;
1082: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1083: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1084: x_libraries=$ac_optarg ;;
1085:
1086: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1087: Try \`$0 --help' for more information"
1088: ;;
1089:
1090: *=*)
1091: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092: # Reject names that are not valid shell variable names.
1093: case $ac_envvar in #(
1094: '' | [0-9]* | *[!_$as_cr_alnum]* )
1095: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1096: esac
1097: eval $ac_envvar=\$ac_optarg
1098: export $ac_envvar ;;
1099:
1100: *)
1101: # FIXME: should be removed in autoconf 3.0.
1102: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1103: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1106: ;;
1107:
1108: esac
1109: done
1110:
1111: if test -n "$ac_prev"; then
1112: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113: as_fn_error $? "missing argument to $ac_option"
1114: fi
1115:
1116: if test -n "$ac_unrecognized_opts"; then
1117: case $enable_option_checking in
1118: no) ;;
1119: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1120: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1121: esac
1122: fi
1123:
1124: # Check all directory arguments for consistency.
1125: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126: datadir sysconfdir sharedstatedir localstatedir includedir \
1127: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128: libdir localedir mandir
1129: do
1130: eval ac_val=\$$ac_var
1131: # Remove trailing slashes.
1132: case $ac_val in
1133: */ )
1134: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1135: eval $ac_var=\$ac_val;;
1136: esac
1137: # Be sure to have absolute directory names.
1138: case $ac_val in
1139: [\\/$]* | ?:[\\/]* ) continue;;
1140: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1141: esac
1142: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1143: done
1144:
1145: # There might be people who depend on the old broken behavior: `$host'
1146: # used to hold the argument of --host etc.
1147: # FIXME: To remove some day.
1148: build=$build_alias
1149: host=$host_alias
1150: target=$target_alias
1151:
1152: # FIXME: To remove some day.
1153: if test "x$host_alias" != x; then
1154: if test "x$build_alias" = x; then
1155: cross_compiling=maybe
1156: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1157: If a cross compiler is detected then cross compile mode will be used" >&2
1158: elif test "x$build_alias" != "x$host_alias"; then
1159: cross_compiling=yes
1160: fi
1161: fi
1162:
1163: ac_tool_prefix=
1164: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165:
1166: test "$silent" = yes && exec 6>/dev/null
1167:
1168:
1169: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170: ac_ls_di=`ls -di .` &&
1171: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172: as_fn_error $? "working directory cannot be determined"
1173: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1174: as_fn_error $? "pwd does not report name of working directory"
1175:
1176:
1177: # Find the source files, if location was not specified.
1178: if test -z "$srcdir"; then
1179: ac_srcdir_defaulted=yes
1180: # Try the directory containing this script, then the parent directory.
1181: ac_confdir=`$as_dirname -- "$as_myself" ||
1182: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183: X"$as_myself" : 'X\(//\)[^/]' \| \
1184: X"$as_myself" : 'X\(//\)$' \| \
1185: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1186: $as_echo X"$as_myself" |
1187: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188: s//\1/
1189: q
1190: }
1191: /^X\(\/\/\)[^/].*/{
1192: s//\1/
1193: q
1194: }
1195: /^X\(\/\/\)$/{
1196: s//\1/
1197: q
1198: }
1199: /^X\(\/\).*/{
1200: s//\1/
1201: q
1202: }
1203: s/.*/./; q'`
1204: srcdir=$ac_confdir
1205: if test ! -r "$srcdir/$ac_unique_file"; then
1206: srcdir=..
1207: fi
1208: else
1209: ac_srcdir_defaulted=no
1210: fi
1211: if test ! -r "$srcdir/$ac_unique_file"; then
1212: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1214: fi
1215: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216: ac_abs_confdir=`(
1217: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1218: pwd)`
1219: # When building in place, set srcdir=.
1220: if test "$ac_abs_confdir" = "$ac_pwd"; then
1221: srcdir=.
1222: fi
1223: # Remove unnecessary trailing slashes from srcdir.
1224: # Double slashes in file names in object file debugging info
1225: # mess up M-x gdb in Emacs.
1226: case $srcdir in
1227: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228: esac
1229: for ac_var in $ac_precious_vars; do
1230: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231: eval ac_env_${ac_var}_value=\$${ac_var}
1232: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234: done
1235:
1236: #
1237: # Report the --help message.
1238: #
1239: if test "$ac_init_help" = "long"; then
1240: # Omit some internal or obsolete options to make the list less imposing.
1241: # This message is too long to be a string in the A/UX 3.1 sh.
1242: cat <<_ACEOF
1243: \`configure' configures this package to adapt to many kinds of systems.
1244:
1245: Usage: $0 [OPTION]... [VAR=VALUE]...
1246:
1247: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248: VAR=VALUE. See below for descriptions of some of the useful variables.
1249:
1250: Defaults for the options are specified in brackets.
1251:
1252: Configuration:
1253: -h, --help display this help and exit
1254: --help=short display options specific to this package
1255: --help=recursive display the short help of all the included packages
1256: -V, --version display version information and exit
1257: -q, --quiet, --silent do not print \`checking ...' messages
1258: --cache-file=FILE cache test results in FILE [disabled]
1259: -C, --config-cache alias for \`--cache-file=config.cache'
1260: -n, --no-create do not create output files
1261: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262:
1263: Installation directories:
1264: --prefix=PREFIX install architecture-independent files in PREFIX
1265: [$ac_default_prefix]
1266: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267: [PREFIX]
1268:
1269: By default, \`make install' will install all the files in
1270: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272: for instance \`--prefix=\$HOME'.
1273:
1274: For better control, use the options below.
1275:
1276: Fine tuning of the installation directories:
1277: --bindir=DIR user executables [EPREFIX/bin]
1278: --sbindir=DIR system admin executables [EPREFIX/sbin]
1279: --libexecdir=DIR program executables [EPREFIX/libexec]
1280: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283: --libdir=DIR object code libraries [EPREFIX/lib]
1284: --includedir=DIR C header files [PREFIX/include]
1285: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288: --infodir=DIR info documentation [DATAROOTDIR/info]
1289: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290: --mandir=DIR man documentation [DATAROOTDIR/man]
1291: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292: --htmldir=DIR html documentation [DOCDIR]
1293: --dvidir=DIR dvi documentation [DOCDIR]
1294: --pdfdir=DIR pdf documentation [DOCDIR]
1295: --psdir=DIR ps documentation [DOCDIR]
1296: _ACEOF
1297:
1298: cat <<\_ACEOF
1299:
1300: System types:
1301: --build=BUILD configure for building on BUILD [guessed]
1302: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1303: _ACEOF
1304: fi
1305:
1306: if test -n "$ac_init_help"; then
1307:
1308: cat <<\_ACEOF
1309:
1310: Optional Features:
1311: --disable-option-checking ignore unrecognized --enable/--with options
1312: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314: --disable-debug disable debugging symbols and features
1315: --enable-profile turn on CPU profiling
1316: --enable-maintainer-mode
1317: turn on extra debug features
1318: --disable-largefile omit support for large files
1319: --disable-ipv6 do not even try to use IPv6
1320: --disable-locale disable locale features
1321: --disable-iconv-open disable all use of iconv_open() function
1322: --disable-iconv disable rsync's --iconv option
1323: --disable-acl-support disable ACL support
1324: --disable-xattr-support disable extended attributes
1325:
1326: Optional Packages:
1327: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329: --with-included-popt use bundled popt library, not from system
1330: --with-rsync-path=PATH set default --rsync-path to PATH (default: rsync)
1331: --with-rsyncd-conf=PATH set configuration file for rsync server to PATH
1332: (default: /etc/rsyncd.conf)
1333: --with-rsh=CMD set remote shell command to CMD (default: ssh)
1334: --with-nobody-group=GROUP
1335: set the default unprivileged group (default nobody
1336: or nogroup)
1337:
1338: Some influential environment variables:
1339: CC C compiler command
1340: CFLAGS C compiler flags
1341: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342: nonstandard directory <lib dir>
1343: LIBS libraries to pass to the linker, e.g. -l<library>
1344: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1345: you have headers in a nonstandard directory <include dir>
1346: CPP C preprocessor
1347:
1348: Use these variables to override the choices made by `configure' or to help
1349: it to find libraries and programs with nonstandard names/locations.
1350:
1351: Report bugs to the package provider.
1352: _ACEOF
1353: ac_status=$?
1354: fi
1355:
1356: if test "$ac_init_help" = "recursive"; then
1357: # If there are subdirs, report their specific --help.
1358: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359: test -d "$ac_dir" ||
1360: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361: continue
1362: ac_builddir=.
1363:
1364: case "$ac_dir" in
1365: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366: *)
1367: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368: # A ".." for each directory in $ac_dir_suffix.
1369: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370: case $ac_top_builddir_sub in
1371: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373: esac ;;
1374: esac
1375: ac_abs_top_builddir=$ac_pwd
1376: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377: # for backward compatibility:
1378: ac_top_builddir=$ac_top_build_prefix
1379:
1380: case $srcdir in
1381: .) # We are building in place.
1382: ac_srcdir=.
1383: ac_top_srcdir=$ac_top_builddir_sub
1384: ac_abs_top_srcdir=$ac_pwd ;;
1385: [\\/]* | ?:[\\/]* ) # Absolute name.
1386: ac_srcdir=$srcdir$ac_dir_suffix;
1387: ac_top_srcdir=$srcdir
1388: ac_abs_top_srcdir=$srcdir ;;
1389: *) # Relative name.
1390: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391: ac_top_srcdir=$ac_top_build_prefix$srcdir
1392: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393: esac
1394: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395:
1396: cd "$ac_dir" || { ac_status=$?; continue; }
1397: # Check for guested configure.
1398: if test -f "$ac_srcdir/configure.gnu"; then
1399: echo &&
1400: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401: elif test -f "$ac_srcdir/configure"; then
1402: echo &&
1403: $SHELL "$ac_srcdir/configure" --help=recursive
1404: else
1405: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406: fi || ac_status=$?
1407: cd "$ac_pwd" || { ac_status=$?; break; }
1408: done
1409: fi
1410:
1411: test -n "$ac_init_help" && exit $ac_status
1412: if $ac_init_version; then
1413: cat <<\_ACEOF
1414: configure
1415: generated by GNU Autoconf 2.68
1416:
1417: Copyright (C) 2010 Free Software Foundation, Inc.
1418: This configure script is free software; the Free Software Foundation
1419: gives unlimited permission to copy, distribute and modify it.
1420: _ACEOF
1421: exit
1422: fi
1423:
1424: ## ------------------------ ##
1425: ## Autoconf initialization. ##
1426: ## ------------------------ ##
1427:
1428: # ac_fn_c_try_compile LINENO
1429: # --------------------------
1430: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431: ac_fn_c_try_compile ()
1432: {
1433: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434: rm -f conftest.$ac_objext
1435: if { { ac_try="$ac_compile"
1436: case "(($ac_try" in
1437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438: *) ac_try_echo=$ac_try;;
1439: esac
1440: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441: $as_echo "$ac_try_echo"; } >&5
1442: (eval "$ac_compile") 2>conftest.err
1443: ac_status=$?
1444: if test -s conftest.err; then
1445: grep -v '^ *+' conftest.err >conftest.er1
1446: cat conftest.er1 >&5
1447: mv -f conftest.er1 conftest.err
1448: fi
1449: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450: test $ac_status = 0; } && {
1451: test -z "$ac_c_werror_flag" ||
1452: test ! -s conftest.err
1453: } && test -s conftest.$ac_objext; then :
1454: ac_retval=0
1455: else
1456: $as_echo "$as_me: failed program was:" >&5
1457: sed 's/^/| /' conftest.$ac_ext >&5
1458:
1459: ac_retval=1
1460: fi
1461: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462: as_fn_set_status $ac_retval
1463:
1464: } # ac_fn_c_try_compile
1465:
1466: # ac_fn_c_try_cpp LINENO
1467: # ----------------------
1468: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1469: ac_fn_c_try_cpp ()
1470: {
1471: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472: if { { ac_try="$ac_cpp conftest.$ac_ext"
1473: case "(($ac_try" in
1474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475: *) ac_try_echo=$ac_try;;
1476: esac
1477: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478: $as_echo "$ac_try_echo"; } >&5
1479: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1480: ac_status=$?
1481: if test -s conftest.err; then
1482: grep -v '^ *+' conftest.err >conftest.er1
1483: cat conftest.er1 >&5
1484: mv -f conftest.er1 conftest.err
1485: fi
1486: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487: test $ac_status = 0; } > conftest.i && {
1488: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489: test ! -s conftest.err
1490: }; then :
1491: ac_retval=0
1492: else
1493: $as_echo "$as_me: failed program was:" >&5
1494: sed 's/^/| /' conftest.$ac_ext >&5
1495:
1496: ac_retval=1
1497: fi
1498: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499: as_fn_set_status $ac_retval
1500:
1501: } # ac_fn_c_try_cpp
1502:
1503: # ac_fn_c_try_run LINENO
1504: # ----------------------
1505: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1506: # that executables *can* be run.
1507: ac_fn_c_try_run ()
1508: {
1509: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510: if { { ac_try="$ac_link"
1511: case "(($ac_try" in
1512: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513: *) ac_try_echo=$ac_try;;
1514: esac
1515: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516: $as_echo "$ac_try_echo"; } >&5
1517: (eval "$ac_link") 2>&5
1518: ac_status=$?
1519: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1521: { { case "(($ac_try" in
1522: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523: *) ac_try_echo=$ac_try;;
1524: esac
1525: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526: $as_echo "$ac_try_echo"; } >&5
1527: (eval "$ac_try") 2>&5
1528: ac_status=$?
1529: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530: test $ac_status = 0; }; }; then :
1531: ac_retval=0
1532: else
1533: $as_echo "$as_me: program exited with status $ac_status" >&5
1534: $as_echo "$as_me: failed program was:" >&5
1535: sed 's/^/| /' conftest.$ac_ext >&5
1536:
1537: ac_retval=$ac_status
1538: fi
1539: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1540: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541: as_fn_set_status $ac_retval
1542:
1543: } # ac_fn_c_try_run
1544:
1545: # ac_fn_c_try_link LINENO
1546: # -----------------------
1547: # Try to link conftest.$ac_ext, and return whether this succeeded.
1548: ac_fn_c_try_link ()
1549: {
1550: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551: rm -f conftest.$ac_objext conftest$ac_exeext
1552: if { { ac_try="$ac_link"
1553: case "(($ac_try" in
1554: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555: *) ac_try_echo=$ac_try;;
1556: esac
1557: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558: $as_echo "$ac_try_echo"; } >&5
1559: (eval "$ac_link") 2>conftest.err
1560: ac_status=$?
1561: if test -s conftest.err; then
1562: grep -v '^ *+' conftest.err >conftest.er1
1563: cat conftest.er1 >&5
1564: mv -f conftest.er1 conftest.err
1565: fi
1566: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567: test $ac_status = 0; } && {
1568: test -z "$ac_c_werror_flag" ||
1569: test ! -s conftest.err
1570: } && test -s conftest$ac_exeext && {
1571: test "$cross_compiling" = yes ||
1572: $as_test_x conftest$ac_exeext
1573: }; then :
1574: ac_retval=0
1575: else
1576: $as_echo "$as_me: failed program was:" >&5
1577: sed 's/^/| /' conftest.$ac_ext >&5
1578:
1579: ac_retval=1
1580: fi
1581: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1582: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1583: # interfere with the next link command; also delete a directory that is
1584: # left behind by Apple's compiler. We do this before executing the actions.
1585: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587: as_fn_set_status $ac_retval
1588:
1589: } # ac_fn_c_try_link
1590:
1591: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592: # -------------------------------------------------------
1593: # Tests whether HEADER exists and can be compiled using the include files in
1594: # INCLUDES, setting the cache variable VAR accordingly.
1595: ac_fn_c_check_header_compile ()
1596: {
1597: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599: $as_echo_n "checking for $2... " >&6; }
1600: if eval \${$3+:} false; then :
1601: $as_echo_n "(cached) " >&6
1602: else
1603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604: /* end confdefs.h. */
1605: $4
1606: #include <$2>
1607: _ACEOF
1608: if ac_fn_c_try_compile "$LINENO"; then :
1609: eval "$3=yes"
1610: else
1611: eval "$3=no"
1612: fi
1613: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1614: fi
1615: eval ac_res=\$$3
1616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617: $as_echo "$ac_res" >&6; }
1618: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619:
1620: } # ac_fn_c_check_header_compile
1621:
1622: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623: # -------------------------------------------------------
1624: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625: # the include files in INCLUDES and setting the cache variable VAR
1626: # accordingly.
1627: ac_fn_c_check_header_mongrel ()
1628: {
1629: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630: if eval \${$3+:} false; then :
1631: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632: $as_echo_n "checking for $2... " >&6; }
1633: if eval \${$3+:} false; then :
1634: $as_echo_n "(cached) " >&6
1635: fi
1636: eval ac_res=\$$3
1637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638: $as_echo "$ac_res" >&6; }
1639: else
1640: # Is the header compilable?
1641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642: $as_echo_n "checking $2 usability... " >&6; }
1643: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644: /* end confdefs.h. */
1645: $4
1646: #include <$2>
1647: _ACEOF
1648: if ac_fn_c_try_compile "$LINENO"; then :
1649: ac_header_compiler=yes
1650: else
1651: ac_header_compiler=no
1652: fi
1653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655: $as_echo "$ac_header_compiler" >&6; }
1656:
1657: # Is the header present?
1658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659: $as_echo_n "checking $2 presence... " >&6; }
1660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661: /* end confdefs.h. */
1662: #include <$2>
1663: _ACEOF
1664: if ac_fn_c_try_cpp "$LINENO"; then :
1665: ac_header_preproc=yes
1666: else
1667: ac_header_preproc=no
1668: fi
1669: rm -f conftest.err conftest.i conftest.$ac_ext
1670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671: $as_echo "$ac_header_preproc" >&6; }
1672:
1673: # So? What about this header?
1674: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1675: yes:no: )
1676: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680: ;;
1681: no:yes:* )
1682: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1685: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1686: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1689: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1690: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692: ;;
1693: esac
1694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695: $as_echo_n "checking for $2... " >&6; }
1696: if eval \${$3+:} false; then :
1697: $as_echo_n "(cached) " >&6
1698: else
1699: eval "$3=\$ac_header_compiler"
1700: fi
1701: eval ac_res=\$$3
1702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703: $as_echo "$ac_res" >&6; }
1704: fi
1705: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706:
1707: } # ac_fn_c_check_header_mongrel
1708:
1709: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1710: # --------------------------------------------
1711: # Tries to find the compile-time value of EXPR in a program that includes
1712: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1713: # computed
1714: ac_fn_c_compute_int ()
1715: {
1716: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717: if test "$cross_compiling" = yes; then
1718: # Depending upon the size, compute the lo and hi bounds.
1719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720: /* end confdefs.h. */
1721: $4
1722: int
1723: main ()
1724: {
1725: static int test_array [1 - 2 * !(($2) >= 0)];
1726: test_array [0] = 0
1727:
1728: ;
1729: return 0;
1730: }
1731: _ACEOF
1732: if ac_fn_c_try_compile "$LINENO"; then :
1733: ac_lo=0 ac_mid=0
1734: while :; do
1735: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736: /* end confdefs.h. */
1737: $4
1738: int
1739: main ()
1740: {
1741: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1742: test_array [0] = 0
1743:
1744: ;
1745: return 0;
1746: }
1747: _ACEOF
1748: if ac_fn_c_try_compile "$LINENO"; then :
1749: ac_hi=$ac_mid; break
1750: else
1751: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1752: if test $ac_lo -le $ac_mid; then
1753: ac_lo= ac_hi=
1754: break
1755: fi
1756: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1757: fi
1758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759: done
1760: else
1761: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762: /* end confdefs.h. */
1763: $4
1764: int
1765: main ()
1766: {
1767: static int test_array [1 - 2 * !(($2) < 0)];
1768: test_array [0] = 0
1769:
1770: ;
1771: return 0;
1772: }
1773: _ACEOF
1774: if ac_fn_c_try_compile "$LINENO"; then :
1775: ac_hi=-1 ac_mid=-1
1776: while :; do
1777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778: /* end confdefs.h. */
1779: $4
1780: int
1781: main ()
1782: {
1783: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1784: test_array [0] = 0
1785:
1786: ;
1787: return 0;
1788: }
1789: _ACEOF
1790: if ac_fn_c_try_compile "$LINENO"; then :
1791: ac_lo=$ac_mid; break
1792: else
1793: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1794: if test $ac_mid -le $ac_hi; then
1795: ac_lo= ac_hi=
1796: break
1797: fi
1798: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1799: fi
1800: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801: done
1802: else
1803: ac_lo= ac_hi=
1804: fi
1805: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806: fi
1807: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808: # Binary search between lo and hi bounds.
1809: while test "x$ac_lo" != "x$ac_hi"; do
1810: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812: /* end confdefs.h. */
1813: $4
1814: int
1815: main ()
1816: {
1817: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1818: test_array [0] = 0
1819:
1820: ;
1821: return 0;
1822: }
1823: _ACEOF
1824: if ac_fn_c_try_compile "$LINENO"; then :
1825: ac_hi=$ac_mid
1826: else
1827: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1828: fi
1829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830: done
1831: case $ac_lo in #((
1832: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1833: '') ac_retval=1 ;;
1834: esac
1835: else
1836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837: /* end confdefs.h. */
1838: $4
1839: static long int longval () { return $2; }
1840: static unsigned long int ulongval () { return $2; }
1841: #include <stdio.h>
1842: #include <stdlib.h>
1843: int
1844: main ()
1845: {
1846:
1847: FILE *f = fopen ("conftest.val", "w");
1848: if (! f)
1849: return 1;
1850: if (($2) < 0)
1851: {
1852: long int i = longval ();
1853: if (i != ($2))
1854: return 1;
1855: fprintf (f, "%ld", i);
1856: }
1857: else
1858: {
1859: unsigned long int i = ulongval ();
1860: if (i != ($2))
1861: return 1;
1862: fprintf (f, "%lu", i);
1863: }
1864: /* Do not output a trailing newline, as this causes \r\n confusion
1865: on some platforms. */
1866: return ferror (f) || fclose (f) != 0;
1867:
1868: ;
1869: return 0;
1870: }
1871: _ACEOF
1872: if ac_fn_c_try_run "$LINENO"; then :
1873: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1874: else
1875: ac_retval=1
1876: fi
1877: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1878: conftest.$ac_objext conftest.beam conftest.$ac_ext
1879: rm -f conftest.val
1880:
1881: fi
1882: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883: as_fn_set_status $ac_retval
1884:
1885: } # ac_fn_c_compute_int
1886:
1887: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1888: # -------------------------------------------
1889: # Tests whether TYPE exists after having included INCLUDES, setting cache
1890: # variable VAR accordingly.
1891: ac_fn_c_check_type ()
1892: {
1893: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895: $as_echo_n "checking for $2... " >&6; }
1896: if eval \${$3+:} false; then :
1897: $as_echo_n "(cached) " >&6
1898: else
1899: eval "$3=no"
1900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901: /* end confdefs.h. */
1902: $4
1903: int
1904: main ()
1905: {
1906: if (sizeof ($2))
1907: return 0;
1908: ;
1909: return 0;
1910: }
1911: _ACEOF
1912: if ac_fn_c_try_compile "$LINENO"; then :
1913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914: /* end confdefs.h. */
1915: $4
1916: int
1917: main ()
1918: {
1919: if (sizeof (($2)))
1920: return 0;
1921: ;
1922: return 0;
1923: }
1924: _ACEOF
1925: if ac_fn_c_try_compile "$LINENO"; then :
1926:
1927: else
1928: eval "$3=yes"
1929: fi
1930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931: fi
1932: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933: fi
1934: eval ac_res=\$$3
1935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936: $as_echo "$ac_res" >&6; }
1937: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938:
1939: } # ac_fn_c_check_type
1940:
1941: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1942: # ----------------------------------------------------
1943: # Tries to find if the field MEMBER exists in type AGGR, after including
1944: # INCLUDES, setting cache variable VAR accordingly.
1945: ac_fn_c_check_member ()
1946: {
1947: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1949: $as_echo_n "checking for $2.$3... " >&6; }
1950: if eval \${$4+:} false; then :
1951: $as_echo_n "(cached) " >&6
1952: else
1953: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954: /* end confdefs.h. */
1955: $5
1956: int
1957: main ()
1958: {
1959: static $2 ac_aggr;
1960: if (ac_aggr.$3)
1961: return 0;
1962: ;
1963: return 0;
1964: }
1965: _ACEOF
1966: if ac_fn_c_try_compile "$LINENO"; then :
1967: eval "$4=yes"
1968: else
1969: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970: /* end confdefs.h. */
1971: $5
1972: int
1973: main ()
1974: {
1975: static $2 ac_aggr;
1976: if (sizeof ac_aggr.$3)
1977: return 0;
1978: ;
1979: return 0;
1980: }
1981: _ACEOF
1982: if ac_fn_c_try_compile "$LINENO"; then :
1983: eval "$4=yes"
1984: else
1985: eval "$4=no"
1986: fi
1987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988: fi
1989: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990: fi
1991: eval ac_res=\$$4
1992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993: $as_echo "$ac_res" >&6; }
1994: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995:
1996: } # ac_fn_c_check_member
1997:
1998: # ac_fn_c_check_func LINENO FUNC VAR
1999: # ----------------------------------
2000: # Tests whether FUNC exists, setting the cache variable VAR accordingly
2001: ac_fn_c_check_func ()
2002: {
2003: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005: $as_echo_n "checking for $2... " >&6; }
2006: if eval \${$3+:} false; then :
2007: $as_echo_n "(cached) " >&6
2008: else
2009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010: /* end confdefs.h. */
2011: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2012: For example, HP-UX 11i <limits.h> declares gettimeofday. */
2013: #define $2 innocuous_$2
2014:
2015: /* System header to define __stub macros and hopefully few prototypes,
2016: which can conflict with char $2 (); below.
2017: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2018: <limits.h> exists even on freestanding compilers. */
2019:
2020: #ifdef __STDC__
2021: # include <limits.h>
2022: #else
2023: # include <assert.h>
2024: #endif
2025:
2026: #undef $2
2027:
2028: /* Override any GCC internal prototype to avoid an error.
2029: Use char because int might match the return type of a GCC
2030: builtin and then its argument prototype would still apply. */
2031: #ifdef __cplusplus
2032: extern "C"
2033: #endif
2034: char $2 ();
2035: /* The GNU C library defines this for functions which it implements
2036: to always fail with ENOSYS. Some functions are actually named
2037: something starting with __ and the normal name is an alias. */
2038: #if defined __stub_$2 || defined __stub___$2
2039: choke me
2040: #endif
2041:
2042: int
2043: main ()
2044: {
2045: return $2 ();
2046: ;
2047: return 0;
2048: }
2049: _ACEOF
2050: if ac_fn_c_try_link "$LINENO"; then :
2051: eval "$3=yes"
2052: else
2053: eval "$3=no"
2054: fi
2055: rm -f core conftest.err conftest.$ac_objext \
2056: conftest$ac_exeext conftest.$ac_ext
2057: fi
2058: eval ac_res=\$$3
2059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060: $as_echo "$ac_res" >&6; }
2061: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062:
2063: } # ac_fn_c_check_func
2064: cat >config.log <<_ACEOF
2065: This file contains any messages produced by compilers while
2066: running configure, to aid debugging if configure makes a mistake.
2067:
2068: It was created by $as_me, which was
2069: generated by GNU Autoconf 2.68. Invocation command line was
2070:
2071: $ $0 $@
2072:
2073: _ACEOF
2074: exec 5>>config.log
2075: {
2076: cat <<_ASUNAME
2077: ## --------- ##
2078: ## Platform. ##
2079: ## --------- ##
2080:
2081: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086:
2087: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089:
2090: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2094: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097:
2098: _ASUNAME
2099:
2100: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101: for as_dir in $PATH
2102: do
2103: IFS=$as_save_IFS
2104: test -z "$as_dir" && as_dir=.
2105: $as_echo "PATH: $as_dir"
2106: done
2107: IFS=$as_save_IFS
2108:
2109: } >&5
2110:
2111: cat >&5 <<_ACEOF
2112:
2113:
2114: ## ----------- ##
2115: ## Core tests. ##
2116: ## ----------- ##
2117:
2118: _ACEOF
2119:
2120:
2121: # Keep a trace of the command line.
2122: # Strip out --no-create and --no-recursion so they do not pile up.
2123: # Strip out --silent because we don't want to record it for future runs.
2124: # Also quote any args containing shell meta-characters.
2125: # Make two passes to allow for proper duplicate-argument suppression.
2126: ac_configure_args=
2127: ac_configure_args0=
2128: ac_configure_args1=
2129: ac_must_keep_next=false
2130: for ac_pass in 1 2
2131: do
2132: for ac_arg
2133: do
2134: case $ac_arg in
2135: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137: | -silent | --silent | --silen | --sile | --sil)
2138: continue ;;
2139: *\'*)
2140: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141: esac
2142: case $ac_pass in
2143: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144: 2)
2145: as_fn_append ac_configure_args1 " '$ac_arg'"
2146: if test $ac_must_keep_next = true; then
2147: ac_must_keep_next=false # Got value, back to normal.
2148: else
2149: case $ac_arg in
2150: *=* | --config-cache | -C | -disable-* | --disable-* \
2151: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153: | -with-* | --with-* | -without-* | --without-* | --x)
2154: case "$ac_configure_args0 " in
2155: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156: esac
2157: ;;
2158: -* ) ac_must_keep_next=true ;;
2159: esac
2160: fi
2161: as_fn_append ac_configure_args " '$ac_arg'"
2162: ;;
2163: esac
2164: done
2165: done
2166: { ac_configure_args0=; unset ac_configure_args0;}
2167: { ac_configure_args1=; unset ac_configure_args1;}
2168:
2169: # When interrupted or exit'd, cleanup temporary files, and complete
2170: # config.log. We remove comments because anyway the quotes in there
2171: # would cause problems or look ugly.
2172: # WARNING: Use '\'' to represent an apostrophe within the trap.
2173: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174: trap 'exit_status=$?
2175: # Save into config.log some information that might help in debugging.
2176: {
2177: echo
2178:
2179: $as_echo "## ---------------- ##
2180: ## Cache variables. ##
2181: ## ---------------- ##"
2182: echo
2183: # The following way of writing the cache mishandles newlines in values,
2184: (
2185: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2186: eval ac_val=\$$ac_var
2187: case $ac_val in #(
2188: *${as_nl}*)
2189: case $ac_var in #(
2190: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2191: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2192: esac
2193: case $ac_var in #(
2194: _ | IFS | as_nl) ;; #(
2195: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2196: *) { eval $ac_var=; unset $ac_var;} ;;
2197: esac ;;
2198: esac
2199: done
2200: (set) 2>&1 |
2201: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202: *${as_nl}ac_space=\ *)
2203: sed -n \
2204: "s/'\''/'\''\\\\'\'''\''/g;
2205: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206: ;; #(
2207: *)
2208: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2209: ;;
2210: esac |
2211: sort
2212: )
2213: echo
2214:
2215: $as_echo "## ----------------- ##
2216: ## Output variables. ##
2217: ## ----------------- ##"
2218: echo
2219: for ac_var in $ac_subst_vars
2220: do
2221: eval ac_val=\$$ac_var
2222: case $ac_val in
2223: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224: esac
2225: $as_echo "$ac_var='\''$ac_val'\''"
2226: done | sort
2227: echo
2228:
2229: if test -n "$ac_subst_files"; then
2230: $as_echo "## ------------------- ##
2231: ## File substitutions. ##
2232: ## ------------------- ##"
2233: echo
2234: for ac_var in $ac_subst_files
2235: do
2236: eval ac_val=\$$ac_var
2237: case $ac_val in
2238: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239: esac
2240: $as_echo "$ac_var='\''$ac_val'\''"
2241: done | sort
2242: echo
2243: fi
2244:
2245: if test -s confdefs.h; then
2246: $as_echo "## ----------- ##
2247: ## confdefs.h. ##
2248: ## ----------- ##"
2249: echo
2250: cat confdefs.h
2251: echo
2252: fi
2253: test "$ac_signal" != 0 &&
2254: $as_echo "$as_me: caught signal $ac_signal"
2255: $as_echo "$as_me: exit $exit_status"
2256: } >&5
2257: rm -f core *.core core.conftest.* &&
2258: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2259: exit $exit_status
2260: ' 0
2261: for ac_signal in 1 2 13 15; do
2262: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2263: done
2264: ac_signal=0
2265:
2266: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2267: rm -f -r conftest* confdefs.h
2268:
2269: $as_echo "/* confdefs.h */" > confdefs.h
2270:
2271: # Predefined preprocessor variables.
2272:
2273: cat >>confdefs.h <<_ACEOF
2274: #define PACKAGE_NAME "$PACKAGE_NAME"
2275: _ACEOF
2276:
2277: cat >>confdefs.h <<_ACEOF
2278: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279: _ACEOF
2280:
2281: cat >>confdefs.h <<_ACEOF
2282: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2283: _ACEOF
2284:
2285: cat >>confdefs.h <<_ACEOF
2286: #define PACKAGE_STRING "$PACKAGE_STRING"
2287: _ACEOF
2288:
2289: cat >>confdefs.h <<_ACEOF
2290: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2291: _ACEOF
2292:
2293: cat >>confdefs.h <<_ACEOF
2294: #define PACKAGE_URL "$PACKAGE_URL"
2295: _ACEOF
2296:
2297:
2298: # Let the site file select an alternate cache file if it wants to.
2299: # Prefer an explicitly selected file to automatically selected ones.
2300: ac_site_file1=NONE
2301: ac_site_file2=NONE
2302: if test -n "$CONFIG_SITE"; then
2303: # We do not want a PATH search for config.site.
2304: case $CONFIG_SITE in #((
2305: -*) ac_site_file1=./$CONFIG_SITE;;
2306: */*) ac_site_file1=$CONFIG_SITE;;
2307: *) ac_site_file1=./$CONFIG_SITE;;
2308: esac
2309: elif test "x$prefix" != xNONE; then
2310: ac_site_file1=$prefix/share/config.site
2311: ac_site_file2=$prefix/etc/config.site
2312: else
2313: ac_site_file1=$ac_default_prefix/share/config.site
2314: ac_site_file2=$ac_default_prefix/etc/config.site
2315: fi
2316: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317: do
2318: test "x$ac_site_file" = xNONE && continue
2319: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2320: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2321: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2322: sed 's/^/| /' "$ac_site_file" >&5
2323: . "$ac_site_file" \
2324: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326: as_fn_error $? "failed to load site script $ac_site_file
2327: See \`config.log' for more details" "$LINENO" 5; }
2328: fi
2329: done
2330:
2331: if test -r "$cache_file"; then
2332: # Some versions of bash will fail to source /dev/null (special files
2333: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2334: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2335: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2336: $as_echo "$as_me: loading cache $cache_file" >&6;}
2337: case $cache_file in
2338: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339: *) . "./$cache_file";;
2340: esac
2341: fi
2342: else
2343: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2344: $as_echo "$as_me: creating cache $cache_file" >&6;}
2345: >$cache_file
2346: fi
2347:
2348: as_fn_append ac_header_list " utime.h"
2349: # Check that the precious variables saved in the cache have kept the same
2350: # value.
2351: ac_cache_corrupted=false
2352: for ac_var in $ac_precious_vars; do
2353: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354: eval ac_new_set=\$ac_env_${ac_var}_set
2355: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356: eval ac_new_val=\$ac_env_${ac_var}_value
2357: case $ac_old_set,$ac_new_set in
2358: set,)
2359: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361: ac_cache_corrupted=: ;;
2362: ,set)
2363: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365: ac_cache_corrupted=: ;;
2366: ,);;
2367: *)
2368: if test "x$ac_old_val" != "x$ac_new_val"; then
2369: # differences in whitespace do not lead to failure.
2370: ac_old_val_w=`echo x $ac_old_val`
2371: ac_new_val_w=`echo x $ac_new_val`
2372: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375: ac_cache_corrupted=:
2376: else
2377: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379: eval $ac_var=\$ac_old_val
2380: fi
2381: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385: fi;;
2386: esac
2387: # Pass precious variables to config.status.
2388: if test "$ac_new_set" = set; then
2389: case $ac_new_val in
2390: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391: *) ac_arg=$ac_var=$ac_new_val ;;
2392: esac
2393: case " $ac_configure_args " in
2394: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396: esac
2397: fi
2398: done
2399: if $ac_cache_corrupted; then
2400: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405: fi
2406: ## -------------------- ##
2407: ## Main body of script. ##
2408: ## -------------------- ##
2409:
2410: ac_ext=c
2411: ac_cpp='$CPP $CPPFLAGS'
2412: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415:
2416:
2417:
2418: ac_config_headers="$ac_config_headers config.h"
2419:
2420:
2421:
2422: RSYNC_VERSION=3.0.9
2423:
2424: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $RSYNC_VERSION" >&5
2425: $as_echo "$as_me: Configuring rsync $RSYNC_VERSION" >&6;}
2426:
2427:
2428: cat >>confdefs.h <<_ACEOF
2429: #define RSYNC_VERSION "$RSYNC_VERSION"
2430: _ACEOF
2431:
2432:
2433: LDFLAGS=${LDFLAGS-""}
2434:
2435: ac_aux_dir=
2436: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2437: if test -f "$ac_dir/install-sh"; then
2438: ac_aux_dir=$ac_dir
2439: ac_install_sh="$ac_aux_dir/install-sh -c"
2440: break
2441: elif test -f "$ac_dir/install.sh"; then
2442: ac_aux_dir=$ac_dir
2443: ac_install_sh="$ac_aux_dir/install.sh -c"
2444: break
2445: elif test -f "$ac_dir/shtool"; then
2446: ac_aux_dir=$ac_dir
2447: ac_install_sh="$ac_aux_dir/shtool install -c"
2448: break
2449: fi
2450: done
2451: if test -z "$ac_aux_dir"; then
2452: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2453: fi
2454:
2455: # These three variables are undocumented and unsupported,
2456: # and are intended to be withdrawn in a future Autoconf release.
2457: # They can cause serious problems if a builder's source tree is in a directory
2458: # whose full name contains unusual characters.
2459: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2460: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2461: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2462:
2463:
2464: # Make sure we can run config.sub.
2465: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2466: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2467:
2468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2469: $as_echo_n "checking build system type... " >&6; }
2470: if ${ac_cv_build+:} false; then :
2471: $as_echo_n "(cached) " >&6
2472: else
2473: ac_build_alias=$build_alias
2474: test "x$ac_build_alias" = x &&
2475: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2476: test "x$ac_build_alias" = x &&
2477: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2478: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2479: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2480:
2481: fi
2482: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2483: $as_echo "$ac_cv_build" >&6; }
2484: case $ac_cv_build in
2485: *-*-*) ;;
2486: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2487: esac
2488: build=$ac_cv_build
2489: ac_save_IFS=$IFS; IFS='-'
2490: set x $ac_cv_build
2491: shift
2492: build_cpu=$1
2493: build_vendor=$2
2494: shift; shift
2495: # Remember, the first character of IFS is used to create $*,
2496: # except with old shells:
2497: build_os=$*
2498: IFS=$ac_save_IFS
2499: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2500:
2501:
2502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2503: $as_echo_n "checking host system type... " >&6; }
2504: if ${ac_cv_host+:} false; then :
2505: $as_echo_n "(cached) " >&6
2506: else
2507: if test "x$host_alias" = x; then
2508: ac_cv_host=$ac_cv_build
2509: else
2510: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2511: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2512: fi
2513:
2514: fi
2515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2516: $as_echo "$ac_cv_host" >&6; }
2517: case $ac_cv_host in
2518: *-*-*) ;;
2519: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2520: esac
2521: host=$ac_cv_host
2522: ac_save_IFS=$IFS; IFS='-'
2523: set x $ac_cv_host
2524: shift
2525: host_cpu=$1
2526: host_vendor=$2
2527: shift; shift
2528: # Remember, the first character of IFS is used to create $*,
2529: # except with old shells:
2530: host_os=$*
2531: IFS=$ac_save_IFS
2532: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2533:
2534:
2535:
2536: # We must decide this before testing the compiler.
2537:
2538: # Please allow this to default to yes, so that your users have more
2539: # chance of getting a useful stack trace if problems occur.
2540:
2541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
2542: $as_echo_n "checking whether to include debugging symbols... " >&6; }
2543: # Check whether --enable-debug was given.
2544: if test "${enable_debug+set}" = set; then :
2545: enableval=$enable_debug;
2546: fi
2547:
2548:
2549: if test x"$enable_debug" = x"no"; then
2550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551: $as_echo "no" >&6; }
2552: ac_cv_prog_cc_g=no
2553: else
2554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555: $as_echo "yes" >&6; }
2556: # leave ac_cv_prog_cc_g alone; AC_PROG_CC will try to include -g if it can
2557: fi
2558:
2559: ac_ext=c
2560: ac_cpp='$CPP $CPPFLAGS'
2561: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564: if test -n "$ac_tool_prefix"; then
2565: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2566: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568: $as_echo_n "checking for $ac_word... " >&6; }
2569: if ${ac_cv_prog_CC+:} false; then :
2570: $as_echo_n "(cached) " >&6
2571: else
2572: if test -n "$CC"; then
2573: ac_cv_prog_CC="$CC" # Let the user override the test.
2574: else
2575: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576: for as_dir in $PATH
2577: do
2578: IFS=$as_save_IFS
2579: test -z "$as_dir" && as_dir=.
2580: for ac_exec_ext in '' $ac_executable_extensions; do
2581: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2583: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584: break 2
2585: fi
2586: done
2587: done
2588: IFS=$as_save_IFS
2589:
2590: fi
2591: fi
2592: CC=$ac_cv_prog_CC
2593: if test -n "$CC"; then
2594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595: $as_echo "$CC" >&6; }
2596: else
2597: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598: $as_echo "no" >&6; }
2599: fi
2600:
2601:
2602: fi
2603: if test -z "$ac_cv_prog_CC"; then
2604: ac_ct_CC=$CC
2605: # Extract the first word of "gcc", so it can be a program name with args.
2606: set dummy gcc; ac_word=$2
2607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608: $as_echo_n "checking for $ac_word... " >&6; }
2609: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2610: $as_echo_n "(cached) " >&6
2611: else
2612: if test -n "$ac_ct_CC"; then
2613: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614: else
2615: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616: for as_dir in $PATH
2617: do
2618: IFS=$as_save_IFS
2619: test -z "$as_dir" && as_dir=.
2620: for ac_exec_ext in '' $ac_executable_extensions; do
2621: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622: ac_cv_prog_ac_ct_CC="gcc"
2623: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624: break 2
2625: fi
2626: done
2627: done
2628: IFS=$as_save_IFS
2629:
2630: fi
2631: fi
2632: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633: if test -n "$ac_ct_CC"; then
2634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2635: $as_echo "$ac_ct_CC" >&6; }
2636: else
2637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638: $as_echo "no" >&6; }
2639: fi
2640:
2641: if test "x$ac_ct_CC" = x; then
2642: CC=""
2643: else
2644: case $cross_compiling:$ac_tool_warned in
2645: yes:)
2646: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648: ac_tool_warned=yes ;;
2649: esac
2650: CC=$ac_ct_CC
2651: fi
2652: else
2653: CC="$ac_cv_prog_CC"
2654: fi
2655:
2656: if test -z "$CC"; then
2657: if test -n "$ac_tool_prefix"; then
2658: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2659: set dummy ${ac_tool_prefix}cc; ac_word=$2
2660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661: $as_echo_n "checking for $ac_word... " >&6; }
2662: if ${ac_cv_prog_CC+:} false; then :
2663: $as_echo_n "(cached) " >&6
2664: else
2665: if test -n "$CC"; then
2666: ac_cv_prog_CC="$CC" # Let the user override the test.
2667: else
2668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669: for as_dir in $PATH
2670: do
2671: IFS=$as_save_IFS
2672: test -z "$as_dir" && as_dir=.
2673: for ac_exec_ext in '' $ac_executable_extensions; do
2674: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675: ac_cv_prog_CC="${ac_tool_prefix}cc"
2676: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677: break 2
2678: fi
2679: done
2680: done
2681: IFS=$as_save_IFS
2682:
2683: fi
2684: fi
2685: CC=$ac_cv_prog_CC
2686: if test -n "$CC"; then
2687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688: $as_echo "$CC" >&6; }
2689: else
2690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691: $as_echo "no" >&6; }
2692: fi
2693:
2694:
2695: fi
2696: fi
2697: if test -z "$CC"; then
2698: # Extract the first word of "cc", so it can be a program name with args.
2699: set dummy cc; ac_word=$2
2700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701: $as_echo_n "checking for $ac_word... " >&6; }
2702: if ${ac_cv_prog_CC+:} false; then :
2703: $as_echo_n "(cached) " >&6
2704: else
2705: if test -n "$CC"; then
2706: ac_cv_prog_CC="$CC" # Let the user override the test.
2707: else
2708: ac_prog_rejected=no
2709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710: for as_dir in $PATH
2711: do
2712: IFS=$as_save_IFS
2713: test -z "$as_dir" && as_dir=.
2714: for ac_exec_ext in '' $ac_executable_extensions; do
2715: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2717: ac_prog_rejected=yes
2718: continue
2719: fi
2720: ac_cv_prog_CC="cc"
2721: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722: break 2
2723: fi
2724: done
2725: done
2726: IFS=$as_save_IFS
2727:
2728: if test $ac_prog_rejected = yes; then
2729: # We found a bogon in the path, so make sure we never use it.
2730: set dummy $ac_cv_prog_CC
2731: shift
2732: if test $# != 0; then
2733: # We chose a different compiler from the bogus one.
2734: # However, it has the same basename, so the bogon will be chosen
2735: # first if we set CC to just the basename; use the full file name.
2736: shift
2737: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2738: fi
2739: fi
2740: fi
2741: fi
2742: CC=$ac_cv_prog_CC
2743: if test -n "$CC"; then
2744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745: $as_echo "$CC" >&6; }
2746: else
2747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748: $as_echo "no" >&6; }
2749: fi
2750:
2751:
2752: fi
2753: if test -z "$CC"; then
2754: if test -n "$ac_tool_prefix"; then
2755: for ac_prog in cl.exe
2756: do
2757: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760: $as_echo_n "checking for $ac_word... " >&6; }
2761: if ${ac_cv_prog_CC+:} false; then :
2762: $as_echo_n "(cached) " >&6
2763: else
2764: if test -n "$CC"; then
2765: ac_cv_prog_CC="$CC" # Let the user override the test.
2766: else
2767: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768: for as_dir in $PATH
2769: do
2770: IFS=$as_save_IFS
2771: test -z "$as_dir" && as_dir=.
2772: for ac_exec_ext in '' $ac_executable_extensions; do
2773: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2775: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776: break 2
2777: fi
2778: done
2779: done
2780: IFS=$as_save_IFS
2781:
2782: fi
2783: fi
2784: CC=$ac_cv_prog_CC
2785: if test -n "$CC"; then
2786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787: $as_echo "$CC" >&6; }
2788: else
2789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790: $as_echo "no" >&6; }
2791: fi
2792:
2793:
2794: test -n "$CC" && break
2795: done
2796: fi
2797: if test -z "$CC"; then
2798: ac_ct_CC=$CC
2799: for ac_prog in cl.exe
2800: do
2801: # Extract the first word of "$ac_prog", so it can be a program name with args.
2802: set dummy $ac_prog; ac_word=$2
2803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804: $as_echo_n "checking for $ac_word... " >&6; }
2805: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2806: $as_echo_n "(cached) " >&6
2807: else
2808: if test -n "$ac_ct_CC"; then
2809: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810: else
2811: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812: for as_dir in $PATH
2813: do
2814: IFS=$as_save_IFS
2815: test -z "$as_dir" && as_dir=.
2816: for ac_exec_ext in '' $ac_executable_extensions; do
2817: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818: ac_cv_prog_ac_ct_CC="$ac_prog"
2819: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820: break 2
2821: fi
2822: done
2823: done
2824: IFS=$as_save_IFS
2825:
2826: fi
2827: fi
2828: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829: if test -n "$ac_ct_CC"; then
2830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831: $as_echo "$ac_ct_CC" >&6; }
2832: else
2833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834: $as_echo "no" >&6; }
2835: fi
2836:
2837:
2838: test -n "$ac_ct_CC" && break
2839: done
2840:
2841: if test "x$ac_ct_CC" = x; then
2842: CC=""
2843: else
2844: case $cross_compiling:$ac_tool_warned in
2845: yes:)
2846: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848: ac_tool_warned=yes ;;
2849: esac
2850: CC=$ac_ct_CC
2851: fi
2852: fi
2853:
2854: fi
2855:
2856:
2857: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859: as_fn_error $? "no acceptable C compiler found in \$PATH
2860: See \`config.log' for more details" "$LINENO" 5; }
2861:
2862: # Provide some information about the compiler.
2863: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2864: set X $ac_compile
2865: ac_compiler=$2
2866: for ac_option in --version -v -V -qversion; do
2867: { { ac_try="$ac_compiler $ac_option >&5"
2868: case "(($ac_try" in
2869: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870: *) ac_try_echo=$ac_try;;
2871: esac
2872: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873: $as_echo "$ac_try_echo"; } >&5
2874: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2875: ac_status=$?
2876: if test -s conftest.err; then
2877: sed '10a\
2878: ... rest of stderr output deleted ...
2879: 10q' conftest.err >conftest.er1
2880: cat conftest.er1 >&5
2881: fi
2882: rm -f conftest.er1 conftest.err
2883: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2884: test $ac_status = 0; }
2885: done
2886:
2887: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888: /* end confdefs.h. */
2889:
2890: int
2891: main ()
2892: {
2893:
2894: ;
2895: return 0;
2896: }
2897: _ACEOF
2898: ac_clean_files_save=$ac_clean_files
2899: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2900: # Try to create an executable without -o first, disregard a.out.
2901: # It will help us diagnose broken compilers, and finding out an intuition
2902: # of exeext.
2903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2904: $as_echo_n "checking whether the C compiler works... " >&6; }
2905: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906:
2907: # The possible output files:
2908: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2909:
2910: ac_rmfiles=
2911: for ac_file in $ac_files
2912: do
2913: case $ac_file in
2914: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2915: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2916: esac
2917: done
2918: rm -f $ac_rmfiles
2919:
2920: if { { ac_try="$ac_link_default"
2921: case "(($ac_try" in
2922: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923: *) ac_try_echo=$ac_try;;
2924: esac
2925: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926: $as_echo "$ac_try_echo"; } >&5
2927: (eval "$ac_link_default") 2>&5
2928: ac_status=$?
2929: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930: test $ac_status = 0; }; then :
2931: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2932: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2933: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2934: # so that the user can short-circuit this test for compilers unknown to
2935: # Autoconf.
2936: for ac_file in $ac_files ''
2937: do
2938: test -f "$ac_file" || continue
2939: case $ac_file in
2940: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2941: ;;
2942: [ab].out )
2943: # We found the default executable, but exeext='' is most
2944: # certainly right.
2945: break;;
2946: *.* )
2947: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2948: then :; else
2949: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950: fi
2951: # We set ac_cv_exeext here because the later test for it is not
2952: # safe: cross compilers may not add the suffix if given an `-o'
2953: # argument, so we may need to know it at that point already.
2954: # Even if this section looks crufty: it has the advantage of
2955: # actually working.
2956: break;;
2957: * )
2958: break;;
2959: esac
2960: done
2961: test "$ac_cv_exeext" = no && ac_cv_exeext=
2962:
2963: else
2964: ac_file=''
2965: fi
2966: if test -z "$ac_file"; then :
2967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968: $as_echo "no" >&6; }
2969: $as_echo "$as_me: failed program was:" >&5
2970: sed 's/^/| /' conftest.$ac_ext >&5
2971:
2972: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974: as_fn_error 77 "C compiler cannot create executables
2975: See \`config.log' for more details" "$LINENO" 5; }
2976: else
2977: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978: $as_echo "yes" >&6; }
2979: fi
2980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2981: $as_echo_n "checking for C compiler default output file name... " >&6; }
2982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2983: $as_echo "$ac_file" >&6; }
2984: ac_exeext=$ac_cv_exeext
2985:
2986: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2987: ac_clean_files=$ac_clean_files_save
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2989: $as_echo_n "checking for suffix of executables... " >&6; }
2990: if { { ac_try="$ac_link"
2991: case "(($ac_try" in
2992: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993: *) ac_try_echo=$ac_try;;
2994: esac
2995: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996: $as_echo "$ac_try_echo"; } >&5
2997: (eval "$ac_link") 2>&5
2998: ac_status=$?
2999: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000: test $ac_status = 0; }; then :
3001: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3002: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3003: # work properly (i.e., refer to `conftest.exe'), while it won't with
3004: # `rm'.
3005: for ac_file in conftest.exe conftest conftest.*; do
3006: test -f "$ac_file" || continue
3007: case $ac_file in
3008: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3009: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010: break;;
3011: * ) break;;
3012: esac
3013: done
3014: else
3015: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3018: See \`config.log' for more details" "$LINENO" 5; }
3019: fi
3020: rm -f conftest conftest$ac_cv_exeext
3021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3022: $as_echo "$ac_cv_exeext" >&6; }
3023:
3024: rm -f conftest.$ac_ext
3025: EXEEXT=$ac_cv_exeext
3026: ac_exeext=$EXEEXT
3027: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028: /* end confdefs.h. */
3029: #include <stdio.h>
3030: int
3031: main ()
3032: {
3033: FILE *f = fopen ("conftest.out", "w");
3034: return ferror (f) || fclose (f) != 0;
3035:
3036: ;
3037: return 0;
3038: }
3039: _ACEOF
3040: ac_clean_files="$ac_clean_files conftest.out"
3041: # Check that the compiler produces executables we can run. If not, either
3042: # the compiler is broken, or we cross compile.
3043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3044: $as_echo_n "checking whether we are cross compiling... " >&6; }
3045: if test "$cross_compiling" != yes; then
3046: { { ac_try="$ac_link"
3047: case "(($ac_try" in
3048: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049: *) ac_try_echo=$ac_try;;
3050: esac
3051: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052: $as_echo "$ac_try_echo"; } >&5
3053: (eval "$ac_link") 2>&5
3054: ac_status=$?
3055: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056: test $ac_status = 0; }
3057: if { ac_try='./conftest$ac_cv_exeext'
3058: { { case "(($ac_try" in
3059: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060: *) ac_try_echo=$ac_try;;
3061: esac
3062: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063: $as_echo "$ac_try_echo"; } >&5
3064: (eval "$ac_try") 2>&5
3065: ac_status=$?
3066: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067: test $ac_status = 0; }; }; then
3068: cross_compiling=no
3069: else
3070: if test "$cross_compiling" = maybe; then
3071: cross_compiling=yes
3072: else
3073: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075: as_fn_error $? "cannot run C compiled programs.
3076: If you meant to cross compile, use \`--host'.
3077: See \`config.log' for more details" "$LINENO" 5; }
3078: fi
3079: fi
3080: fi
3081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3082: $as_echo "$cross_compiling" >&6; }
3083:
3084: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3085: ac_clean_files=$ac_clean_files_save
3086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3087: $as_echo_n "checking for suffix of object files... " >&6; }
3088: if ${ac_cv_objext+:} false; then :
3089: $as_echo_n "(cached) " >&6
3090: else
3091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092: /* end confdefs.h. */
3093:
3094: int
3095: main ()
3096: {
3097:
3098: ;
3099: return 0;
3100: }
3101: _ACEOF
3102: rm -f conftest.o conftest.obj
3103: if { { ac_try="$ac_compile"
3104: case "(($ac_try" in
3105: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106: *) ac_try_echo=$ac_try;;
3107: esac
3108: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109: $as_echo "$ac_try_echo"; } >&5
3110: (eval "$ac_compile") 2>&5
3111: ac_status=$?
3112: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113: test $ac_status = 0; }; then :
3114: for ac_file in conftest.o conftest.obj conftest.*; do
3115: test -f "$ac_file" || continue;
3116: case $ac_file in
3117: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3118: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119: break;;
3120: esac
3121: done
3122: else
3123: $as_echo "$as_me: failed program was:" >&5
3124: sed 's/^/| /' conftest.$ac_ext >&5
3125:
3126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128: as_fn_error $? "cannot compute suffix of object files: cannot compile
3129: See \`config.log' for more details" "$LINENO" 5; }
3130: fi
3131: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3132: fi
3133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3134: $as_echo "$ac_cv_objext" >&6; }
3135: OBJEXT=$ac_cv_objext
3136: ac_objext=$OBJEXT
3137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3138: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3139: if ${ac_cv_c_compiler_gnu+:} false; then :
3140: $as_echo_n "(cached) " >&6
3141: else
3142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143: /* end confdefs.h. */
3144:
3145: int
3146: main ()
3147: {
3148: #ifndef __GNUC__
3149: choke me
3150: #endif
3151:
3152: ;
3153: return 0;
3154: }
3155: _ACEOF
3156: if ac_fn_c_try_compile "$LINENO"; then :
3157: ac_compiler_gnu=yes
3158: else
3159: ac_compiler_gnu=no
3160: fi
3161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163:
3164: fi
3165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3166: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3167: if test $ac_compiler_gnu = yes; then
3168: GCC=yes
3169: else
3170: GCC=
3171: fi
3172: ac_test_CFLAGS=${CFLAGS+set}
3173: ac_save_CFLAGS=$CFLAGS
3174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3175: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3176: if ${ac_cv_prog_cc_g+:} false; then :
3177: $as_echo_n "(cached) " >&6
3178: else
3179: ac_save_c_werror_flag=$ac_c_werror_flag
3180: ac_c_werror_flag=yes
3181: ac_cv_prog_cc_g=no
3182: CFLAGS="-g"
3183: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184: /* end confdefs.h. */
3185:
3186: int
3187: main ()
3188: {
3189:
3190: ;
3191: return 0;
3192: }
3193: _ACEOF
3194: if ac_fn_c_try_compile "$LINENO"; then :
3195: ac_cv_prog_cc_g=yes
3196: else
3197: CFLAGS=""
3198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199: /* end confdefs.h. */
3200:
3201: int
3202: main ()
3203: {
3204:
3205: ;
3206: return 0;
3207: }
3208: _ACEOF
3209: if ac_fn_c_try_compile "$LINENO"; then :
3210:
3211: else
3212: ac_c_werror_flag=$ac_save_c_werror_flag
3213: CFLAGS="-g"
3214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215: /* end confdefs.h. */
3216:
3217: int
3218: main ()
3219: {
3220:
3221: ;
3222: return 0;
3223: }
3224: _ACEOF
3225: if ac_fn_c_try_compile "$LINENO"; then :
3226: ac_cv_prog_cc_g=yes
3227: fi
3228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229: fi
3230: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231: fi
3232: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233: ac_c_werror_flag=$ac_save_c_werror_flag
3234: fi
3235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3236: $as_echo "$ac_cv_prog_cc_g" >&6; }
3237: if test "$ac_test_CFLAGS" = set; then
3238: CFLAGS=$ac_save_CFLAGS
3239: elif test $ac_cv_prog_cc_g = yes; then
3240: if test "$GCC" = yes; then
3241: CFLAGS="-g -O2"
3242: else
3243: CFLAGS="-g"
3244: fi
3245: else
3246: if test "$GCC" = yes; then
3247: CFLAGS="-O2"
3248: else
3249: CFLAGS=
3250: fi
3251: fi
3252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3253: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3254: if ${ac_cv_prog_cc_c89+:} false; then :
3255: $as_echo_n "(cached) " >&6
3256: else
3257: ac_cv_prog_cc_c89=no
3258: ac_save_CC=$CC
3259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260: /* end confdefs.h. */
3261: #include <stdarg.h>
3262: #include <stdio.h>
3263: #include <sys/types.h>
3264: #include <sys/stat.h>
3265: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266: struct buf { int x; };
3267: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268: static char *e (p, i)
3269: char **p;
3270: int i;
3271: {
3272: return p[i];
3273: }
3274: static char *f (char * (*g) (char **, int), char **p, ...)
3275: {
3276: char *s;
3277: va_list v;
3278: va_start (v,p);
3279: s = g (p, va_arg (v,int));
3280: va_end (v);
3281: return s;
3282: }
3283:
3284: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285: function prototypes and stuff, but not '\xHH' hex character constants.
3286: These don't provoke an error unfortunately, instead are silently treated
3287: as 'x'. The following induces an error, until -std is added to get
3288: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289: array size at least. It's necessary to write '\x00'==0 to get something
3290: that's true only with -std. */
3291: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292:
3293: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294: inside strings and character constants. */
3295: #define FOO(x) 'x'
3296: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297:
3298: int test (int i, double x);
3299: struct s1 {int (*f) (int a);};
3300: struct s2 {int (*f) (double a);};
3301: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302: int argc;
3303: char **argv;
3304: int
3305: main ()
3306: {
3307: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308: ;
3309: return 0;
3310: }
3311: _ACEOF
3312: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314: do
3315: CC="$ac_save_CC $ac_arg"
3316: if ac_fn_c_try_compile "$LINENO"; then :
3317: ac_cv_prog_cc_c89=$ac_arg
3318: fi
3319: rm -f core conftest.err conftest.$ac_objext
3320: test "x$ac_cv_prog_cc_c89" != "xno" && break
3321: done
3322: rm -f conftest.$ac_ext
3323: CC=$ac_save_CC
3324:
3325: fi
3326: # AC_CACHE_VAL
3327: case "x$ac_cv_prog_cc_c89" in
3328: x)
3329: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3330: $as_echo "none needed" >&6; } ;;
3331: xno)
3332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3333: $as_echo "unsupported" >&6; } ;;
3334: *)
3335: CC="$CC $ac_cv_prog_cc_c89"
3336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3337: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3338: esac
3339: if test "x$ac_cv_prog_cc_c89" != xno; then :
3340:
3341: fi
3342:
3343: ac_ext=c
3344: ac_cpp='$CPP $CPPFLAGS'
3345: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348:
3349: ac_ext=c
3350: ac_cpp='$CPP $CPPFLAGS'
3351: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3355: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3356: # On Suns, sometimes $CPP names a directory.
3357: if test -n "$CPP" && test -d "$CPP"; then
3358: CPP=
3359: fi
3360: if test -z "$CPP"; then
3361: if ${ac_cv_prog_CPP+:} false; then :
3362: $as_echo_n "(cached) " >&6
3363: else
3364: # Double quotes because CPP needs to be expanded
3365: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3366: do
3367: ac_preproc_ok=false
3368: for ac_c_preproc_warn_flag in '' yes
3369: do
3370: # Use a header file that comes with gcc, so configuring glibc
3371: # with a fresh cross-compiler works.
3372: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373: # <limits.h> exists even on freestanding compilers.
3374: # On the NeXT, cc -E runs the code through the compiler's parser,
3375: # not just through cpp. "Syntax error" is here to catch this case.
3376: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377: /* end confdefs.h. */
3378: #ifdef __STDC__
3379: # include <limits.h>
3380: #else
3381: # include <assert.h>
3382: #endif
3383: Syntax error
3384: _ACEOF
3385: if ac_fn_c_try_cpp "$LINENO"; then :
3386:
3387: else
3388: # Broken: fails on valid input.
3389: continue
3390: fi
3391: rm -f conftest.err conftest.i conftest.$ac_ext
3392:
3393: # OK, works on sane cases. Now check whether nonexistent headers
3394: # can be detected and how.
3395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396: /* end confdefs.h. */
3397: #include <ac_nonexistent.h>
3398: _ACEOF
3399: if ac_fn_c_try_cpp "$LINENO"; then :
3400: # Broken: success on invalid input.
3401: continue
3402: else
3403: # Passes both tests.
3404: ac_preproc_ok=:
3405: break
3406: fi
3407: rm -f conftest.err conftest.i conftest.$ac_ext
3408:
3409: done
3410: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3411: rm -f conftest.i conftest.err conftest.$ac_ext
3412: if $ac_preproc_ok; then :
3413: break
3414: fi
3415:
3416: done
3417: ac_cv_prog_CPP=$CPP
3418:
3419: fi
3420: CPP=$ac_cv_prog_CPP
3421: else
3422: ac_cv_prog_CPP=$CPP
3423: fi
3424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3425: $as_echo "$CPP" >&6; }
3426: ac_preproc_ok=false
3427: for ac_c_preproc_warn_flag in '' yes
3428: do
3429: # Use a header file that comes with gcc, so configuring glibc
3430: # with a fresh cross-compiler works.
3431: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432: # <limits.h> exists even on freestanding compilers.
3433: # On the NeXT, cc -E runs the code through the compiler's parser,
3434: # not just through cpp. "Syntax error" is here to catch this case.
3435: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436: /* end confdefs.h. */
3437: #ifdef __STDC__
3438: # include <limits.h>
3439: #else
3440: # include <assert.h>
3441: #endif
3442: Syntax error
3443: _ACEOF
3444: if ac_fn_c_try_cpp "$LINENO"; then :
3445:
3446: else
3447: # Broken: fails on valid input.
3448: continue
3449: fi
3450: rm -f conftest.err conftest.i conftest.$ac_ext
3451:
3452: # OK, works on sane cases. Now check whether nonexistent headers
3453: # can be detected and how.
3454: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455: /* end confdefs.h. */
3456: #include <ac_nonexistent.h>
3457: _ACEOF
3458: if ac_fn_c_try_cpp "$LINENO"; then :
3459: # Broken: success on invalid input.
3460: continue
3461: else
3462: # Passes both tests.
3463: ac_preproc_ok=:
3464: break
3465: fi
3466: rm -f conftest.err conftest.i conftest.$ac_ext
3467:
3468: done
3469: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470: rm -f conftest.i conftest.err conftest.$ac_ext
3471: if $ac_preproc_ok; then :
3472:
3473: else
3474: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3477: See \`config.log' for more details" "$LINENO" 5; }
3478: fi
3479:
3480: ac_ext=c
3481: ac_cpp='$CPP $CPPFLAGS'
3482: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485:
3486: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3487: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3488: if ${ac_cv_path_GREP+:} false; then :
3489: $as_echo_n "(cached) " >&6
3490: else
3491: if test -z "$GREP"; then
3492: ac_path_GREP_found=false
3493: # Loop through the user's path and test for each of PROGNAME-LIST
3494: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3496: do
3497: IFS=$as_save_IFS
3498: test -z "$as_dir" && as_dir=.
3499: for ac_prog in grep ggrep; do
3500: for ac_exec_ext in '' $ac_executable_extensions; do
3501: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3502: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3503: # Check for GNU ac_path_GREP and select it if it is found.
3504: # Check for GNU $ac_path_GREP
3505: case `"$ac_path_GREP" --version 2>&1` in
3506: *GNU*)
3507: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3508: *)
3509: ac_count=0
3510: $as_echo_n 0123456789 >"conftest.in"
3511: while :
3512: do
3513: cat "conftest.in" "conftest.in" >"conftest.tmp"
3514: mv "conftest.tmp" "conftest.in"
3515: cp "conftest.in" "conftest.nl"
3516: $as_echo 'GREP' >> "conftest.nl"
3517: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3518: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3519: as_fn_arith $ac_count + 1 && ac_count=$as_val
3520: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3521: # Best one so far, save it but keep looking for a better one
3522: ac_cv_path_GREP="$ac_path_GREP"
3523: ac_path_GREP_max=$ac_count
3524: fi
3525: # 10*(2^10) chars as input seems more than enough
3526: test $ac_count -gt 10 && break
3527: done
3528: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3529: esac
3530:
3531: $ac_path_GREP_found && break 3
3532: done
3533: done
3534: done
3535: IFS=$as_save_IFS
3536: if test -z "$ac_cv_path_GREP"; then
3537: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3538: fi
3539: else
3540: ac_cv_path_GREP=$GREP
3541: fi
3542:
3543: fi
3544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3545: $as_echo "$ac_cv_path_GREP" >&6; }
3546: GREP="$ac_cv_path_GREP"
3547:
3548:
3549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3550: $as_echo_n "checking for egrep... " >&6; }
3551: if ${ac_cv_path_EGREP+:} false; then :
3552: $as_echo_n "(cached) " >&6
3553: else
3554: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3555: then ac_cv_path_EGREP="$GREP -E"
3556: else
3557: if test -z "$EGREP"; then
3558: ac_path_EGREP_found=false
3559: # Loop through the user's path and test for each of PROGNAME-LIST
3560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562: do
3563: IFS=$as_save_IFS
3564: test -z "$as_dir" && as_dir=.
3565: for ac_prog in egrep; do
3566: for ac_exec_ext in '' $ac_executable_extensions; do
3567: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569: # Check for GNU ac_path_EGREP and select it if it is found.
3570: # Check for GNU $ac_path_EGREP
3571: case `"$ac_path_EGREP" --version 2>&1` in
3572: *GNU*)
3573: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3574: *)
3575: ac_count=0
3576: $as_echo_n 0123456789 >"conftest.in"
3577: while :
3578: do
3579: cat "conftest.in" "conftest.in" >"conftest.tmp"
3580: mv "conftest.tmp" "conftest.in"
3581: cp "conftest.in" "conftest.nl"
3582: $as_echo 'EGREP' >> "conftest.nl"
3583: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585: as_fn_arith $ac_count + 1 && ac_count=$as_val
3586: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587: # Best one so far, save it but keep looking for a better one
3588: ac_cv_path_EGREP="$ac_path_EGREP"
3589: ac_path_EGREP_max=$ac_count
3590: fi
3591: # 10*(2^10) chars as input seems more than enough
3592: test $ac_count -gt 10 && break
3593: done
3594: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595: esac
3596:
3597: $ac_path_EGREP_found && break 3
3598: done
3599: done
3600: done
3601: IFS=$as_save_IFS
3602: if test -z "$ac_cv_path_EGREP"; then
3603: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3604: fi
3605: else
3606: ac_cv_path_EGREP=$EGREP
3607: fi
3608:
3609: fi
3610: fi
3611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3612: $as_echo "$ac_cv_path_EGREP" >&6; }
3613: EGREP="$ac_cv_path_EGREP"
3614:
3615:
3616: # Find a good install program. We prefer a C program (faster),
3617: # so one script is as good as another. But avoid the broken or
3618: # incompatible versions:
3619: # SysV /etc/install, /usr/sbin/install
3620: # SunOS /usr/etc/install
3621: # IRIX /sbin/install
3622: # AIX /bin/install
3623: # AmigaOS /C/install, which installs bootblocks on floppy discs
3624: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3625: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3626: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3627: # OS/2's system install, which has a completely different semantic
3628: # ./install, which can be erroneously created by make from ./install.sh.
3629: # Reject install programs that cannot install multiple files.
3630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3631: $as_echo_n "checking for a BSD-compatible install... " >&6; }
3632: if test -z "$INSTALL"; then
3633: if ${ac_cv_path_install+:} false; then :
3634: $as_echo_n "(cached) " >&6
3635: else
3636: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637: for as_dir in $PATH
3638: do
3639: IFS=$as_save_IFS
3640: test -z "$as_dir" && as_dir=.
3641: # Account for people who put trailing slashes in PATH elements.
3642: case $as_dir/ in #((
3643: ./ | .// | /[cC]/* | \
3644: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3645: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3646: /usr/ucb/* ) ;;
3647: *)
3648: # OSF1 and SCO ODT 3.0 have their own names for install.
3649: # Don't use installbsd from OSF since it installs stuff as root
3650: # by default.
3651: for ac_prog in ginstall scoinst install; do
3652: for ac_exec_ext in '' $ac_executable_extensions; do
3653: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3654: if test $ac_prog = install &&
3655: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656: # AIX install. It has an incompatible calling convention.
3657: :
3658: elif test $ac_prog = install &&
3659: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3660: # program-specific install script used by HP pwplus--don't use.
3661: :
3662: else
3663: rm -rf conftest.one conftest.two conftest.dir
3664: echo one > conftest.one
3665: echo two > conftest.two
3666: mkdir conftest.dir
3667: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3668: test -s conftest.one && test -s conftest.two &&
3669: test -s conftest.dir/conftest.one &&
3670: test -s conftest.dir/conftest.two
3671: then
3672: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3673: break 3
3674: fi
3675: fi
3676: fi
3677: done
3678: done
3679: ;;
3680: esac
3681:
3682: done
3683: IFS=$as_save_IFS
3684:
3685: rm -rf conftest.one conftest.two conftest.dir
3686:
3687: fi
3688: if test "${ac_cv_path_install+set}" = set; then
3689: INSTALL=$ac_cv_path_install
3690: else
3691: # As a last resort, use the slow shell script. Don't cache a
3692: # value for INSTALL within a source directory, because that will
3693: # break other packages using the cache if that directory is
3694: # removed, or if the value is a relative name.
3695: INSTALL=$ac_install_sh
3696: fi
3697: fi
3698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3699: $as_echo "$INSTALL" >&6; }
3700:
3701: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3702: # It thinks the first close brace ends the variable substitution.
3703: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3704:
3705: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3706:
3707: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3708:
3709: case $ac_cv_prog_cc_stdc in #(
3710: no) :
3711: ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3712: *) :
3713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3714: $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3715: if ${ac_cv_prog_cc_c99+:} false; then :
3716: $as_echo_n "(cached) " >&6
3717: else
3718: ac_cv_prog_cc_c99=no
3719: ac_save_CC=$CC
3720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721: /* end confdefs.h. */
3722: #include <stdarg.h>
3723: #include <stdbool.h>
3724: #include <stdlib.h>
3725: #include <wchar.h>
3726: #include <stdio.h>
3727:
3728: // Check varargs macros. These examples are taken from C99 6.10.3.5.
3729: #define debug(...) fprintf (stderr, __VA_ARGS__)
3730: #define showlist(...) puts (#__VA_ARGS__)
3731: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3732: static void
3733: test_varargs_macros (void)
3734: {
3735: int x = 1234;
3736: int y = 5678;
3737: debug ("Flag");
3738: debug ("X = %d\n", x);
3739: showlist (The first, second, and third items.);
3740: report (x>y, "x is %d but y is %d", x, y);
3741: }
3742:
3743: // Check long long types.
3744: #define BIG64 18446744073709551615ull
3745: #define BIG32 4294967295ul
3746: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3747: #if !BIG_OK
3748: your preprocessor is broken;
3749: #endif
3750: #if BIG_OK
3751: #else
3752: your preprocessor is broken;
3753: #endif
3754: static long long int bignum = -9223372036854775807LL;
3755: static unsigned long long int ubignum = BIG64;
3756:
3757: struct incomplete_array
3758: {
3759: int datasize;
3760: double data[];
3761: };
3762:
3763: struct named_init {
3764: int number;
3765: const wchar_t *name;
3766: double average;
3767: };
3768:
3769: typedef const char *ccp;
3770:
3771: static inline int
3772: test_restrict (ccp restrict text)
3773: {
3774: // See if C++-style comments work.
3775: // Iterate through items via the restricted pointer.
3776: // Also check for declarations in for loops.
3777: for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3778: continue;
3779: return 0;
3780: }
3781:
3782: // Check varargs and va_copy.
3783: static void
3784: test_varargs (const char *format, ...)
3785: {
3786: va_list args;
3787: va_start (args, format);
3788: va_list args_copy;
3789: va_copy (args_copy, args);
3790:
3791: const char *str;
3792: int number;
3793: float fnumber;
3794:
3795: while (*format)
3796: {
3797: switch (*format++)
3798: {
3799: case 's': // string
3800: str = va_arg (args_copy, const char *);
3801: break;
3802: case 'd': // int
3803: number = va_arg (args_copy, int);
3804: break;
3805: case 'f': // float
3806: fnumber = va_arg (args_copy, double);
3807: break;
3808: default:
3809: break;
3810: }
3811: }
3812: va_end (args_copy);
3813: va_end (args);
3814: }
3815:
3816: int
3817: main ()
3818: {
3819:
3820: // Check bool.
3821: _Bool success = false;
3822:
3823: // Check restrict.
3824: if (test_restrict ("String literal") == 0)
3825: success = true;
3826: char *restrict newvar = "Another string";
3827:
3828: // Check varargs.
3829: test_varargs ("s, d' f .", "string", 65, 34.234);
3830: test_varargs_macros ();
3831:
3832: // Check flexible array members.
3833: struct incomplete_array *ia =
3834: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3835: ia->datasize = 10;
3836: for (int i = 0; i < ia->datasize; ++i)
3837: ia->data[i] = i * 1.234;
3838:
3839: // Check named initializers.
3840: struct named_init ni = {
3841: .number = 34,
3842: .name = L"Test wide string",
3843: .average = 543.34343,
3844: };
3845:
3846: ni.number = 58;
3847:
3848: int dynamic_array[ni.number];
3849: dynamic_array[ni.number - 1] = 543;
3850:
3851: // work around unused variable warnings
3852: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3853: || dynamic_array[ni.number - 1] != 543);
3854:
3855: ;
3856: return 0;
3857: }
3858: _ACEOF
3859: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3860: do
3861: CC="$ac_save_CC $ac_arg"
3862: if ac_fn_c_try_compile "$LINENO"; then :
3863: ac_cv_prog_cc_c99=$ac_arg
3864: fi
3865: rm -f core conftest.err conftest.$ac_objext
3866: test "x$ac_cv_prog_cc_c99" != "xno" && break
3867: done
3868: rm -f conftest.$ac_ext
3869: CC=$ac_save_CC
3870:
3871: fi
3872: # AC_CACHE_VAL
3873: case "x$ac_cv_prog_cc_c99" in
3874: x)
3875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876: $as_echo "none needed" >&6; } ;;
3877: xno)
3878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879: $as_echo "unsupported" >&6; } ;;
3880: *)
3881: CC="$CC $ac_cv_prog_cc_c99"
3882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3883: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3884: esac
3885: if test "x$ac_cv_prog_cc_c99" != xno; then :
3886: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3887: else
3888: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890: if ${ac_cv_prog_cc_c89+:} false; then :
3891: $as_echo_n "(cached) " >&6
3892: else
3893: ac_cv_prog_cc_c89=no
3894: ac_save_CC=$CC
3895: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896: /* end confdefs.h. */
3897: #include <stdarg.h>
3898: #include <stdio.h>
3899: #include <sys/types.h>
3900: #include <sys/stat.h>
3901: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3902: struct buf { int x; };
3903: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3904: static char *e (p, i)
3905: char **p;
3906: int i;
3907: {
3908: return p[i];
3909: }
3910: static char *f (char * (*g) (char **, int), char **p, ...)
3911: {
3912: char *s;
3913: va_list v;
3914: va_start (v,p);
3915: s = g (p, va_arg (v,int));
3916: va_end (v);
3917: return s;
3918: }
3919:
3920: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3921: function prototypes and stuff, but not '\xHH' hex character constants.
3922: These don't provoke an error unfortunately, instead are silently treated
3923: as 'x'. The following induces an error, until -std is added to get
3924: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3925: array size at least. It's necessary to write '\x00'==0 to get something
3926: that's true only with -std. */
3927: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3928:
3929: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3930: inside strings and character constants. */
3931: #define FOO(x) 'x'
3932: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3933:
3934: int test (int i, double x);
3935: struct s1 {int (*f) (int a);};
3936: struct s2 {int (*f) (double a);};
3937: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938: int argc;
3939: char **argv;
3940: int
3941: main ()
3942: {
3943: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3944: ;
3945: return 0;
3946: }
3947: _ACEOF
3948: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3949: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3950: do
3951: CC="$ac_save_CC $ac_arg"
3952: if ac_fn_c_try_compile "$LINENO"; then :
3953: ac_cv_prog_cc_c89=$ac_arg
3954: fi
3955: rm -f core conftest.err conftest.$ac_objext
3956: test "x$ac_cv_prog_cc_c89" != "xno" && break
3957: done
3958: rm -f conftest.$ac_ext
3959: CC=$ac_save_CC
3960:
3961: fi
3962: # AC_CACHE_VAL
3963: case "x$ac_cv_prog_cc_c89" in
3964: x)
3965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3966: $as_echo "none needed" >&6; } ;;
3967: xno)
3968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3969: $as_echo "unsupported" >&6; } ;;
3970: *)
3971: CC="$CC $ac_cv_prog_cc_c89"
3972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3973: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3974: esac
3975: if test "x$ac_cv_prog_cc_c89" != xno; then :
3976: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3977: else
3978: ac_cv_prog_cc_stdc=no
3979: fi
3980:
3981: fi
3982: ;;
3983: esac
3984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3985: $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3986: if ${ac_cv_prog_cc_stdc+:} false; then :
3987: $as_echo_n "(cached) " >&6
3988: fi
3989:
3990: case $ac_cv_prog_cc_stdc in #(
3991: no) :
3992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993: $as_echo "unsupported" >&6; } ;; #(
3994: '') :
3995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3996: $as_echo "none needed" >&6; } ;; #(
3997: *) :
3998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3999: $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4000: esac
4001:
4002:
4003:
4004:
4005: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4006:
4007:
4008: if test x"$ac_cv_prog_cc_stdc" = x"no"; then
4009: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&5
4010: $as_echo "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}
4011: fi
4012:
4013: # Check whether --enable-profile was given.
4014: if test "${enable_profile+set}" = set; then :
4015: enableval=$enable_profile;
4016: fi
4017:
4018: if test x"$enable_profile" = x"yes"; then
4019: CFLAGS="$CFLAGS -pg"
4020: fi
4021:
4022:
4023: # Specifically, this turns on panic_action handling.
4024: # Check whether --enable-maintainer-mode was given.
4025: if test "${enable_maintainer_mode+set}" = set; then :
4026: enableval=$enable_maintainer_mode;
4027: fi
4028:
4029: if test x"$enable_maintainer_mode" = x"yes"; then
4030: CFLAGS="$CFLAGS -DMAINTAINER_MODE"
4031: fi
4032:
4033:
4034: # This is needed for our included version of popt. Kind of silly, but
4035: # I don't want our version too far out of sync.
4036: CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
4037:
4038: # If GCC, turn on warnings.
4039: if test x"$GCC" = x"yes"; then
4040: CFLAGS="$CFLAGS -Wall -W"
4041: fi
4042:
4043:
4044: # Check whether --with-included-popt was given.
4045: if test "${with_included_popt+set}" = set; then :
4046: withval=$with_included_popt;
4047: fi
4048:
4049:
4050:
4051: # Check whether --with-rsync-path was given.
4052: if test "${with_rsync_path+set}" = set; then :
4053: withval=$with_rsync_path; RSYNC_PATH="$with_rsync_path"
4054: else
4055: RSYNC_PATH="rsync"
4056: fi
4057:
4058:
4059:
4060: cat >>confdefs.h <<_ACEOF
4061: #define RSYNC_PATH "$RSYNC_PATH"
4062: _ACEOF
4063:
4064:
4065:
4066: # Check whether --with-rsyncd-conf was given.
4067: if test "${with_rsyncd_conf+set}" = set; then :
4068: withval=$with_rsyncd_conf; if test ! -z "$with_rsyncd_conf" ; then
4069: case $with_rsyncd_conf in
4070: yes|no)
4071: RSYNCD_SYSCONF="/etc/rsyncd.conf"
4072: ;;
4073: /*)
4074: RSYNCD_SYSCONF="$with_rsyncd_conf"
4075: ;;
4076: *)
4077: as_fn_error $? "You must specify an absolute path to --with-rsyncd-conf=PATH" "$LINENO" 5
4078: ;;
4079: esac
4080: else
4081: RSYNCD_SYSCONF="/etc/rsyncd.conf"
4082: fi
4083: else
4084: RSYNCD_SYSCONF="/etc/rsyncd.conf"
4085: fi
4086:
4087:
4088:
4089: cat >>confdefs.h <<_ACEOF
4090: #define RSYNCD_SYSCONF "$RSYNCD_SYSCONF"
4091: _ACEOF
4092:
4093:
4094:
4095: # Check whether --with-rsh was given.
4096: if test "${with_rsh+set}" = set; then :
4097: withval=$with_rsh;
4098: fi
4099:
4100:
4101: # Extract the first word of "remsh", so it can be a program name with args.
4102: set dummy remsh; ac_word=$2
4103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104: $as_echo_n "checking for $ac_word... " >&6; }
4105: if ${ac_cv_prog_HAVE_REMSH+:} false; then :
4106: $as_echo_n "(cached) " >&6
4107: else
4108: if test -n "$HAVE_REMSH"; then
4109: ac_cv_prog_HAVE_REMSH="$HAVE_REMSH" # Let the user override the test.
4110: else
4111: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112: for as_dir in $PATH
4113: do
4114: IFS=$as_save_IFS
4115: test -z "$as_dir" && as_dir=.
4116: for ac_exec_ext in '' $ac_executable_extensions; do
4117: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118: ac_cv_prog_HAVE_REMSH="1"
4119: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120: break 2
4121: fi
4122: done
4123: done
4124: IFS=$as_save_IFS
4125:
4126: test -z "$ac_cv_prog_HAVE_REMSH" && ac_cv_prog_HAVE_REMSH="0"
4127: fi
4128: fi
4129: HAVE_REMSH=$ac_cv_prog_HAVE_REMSH
4130: if test -n "$HAVE_REMSH"; then
4131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_REMSH" >&5
4132: $as_echo "$HAVE_REMSH" >&6; }
4133: else
4134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135: $as_echo "no" >&6; }
4136: fi
4137:
4138:
4139: if test x$HAVE_REMSH = x1; then
4140:
4141: $as_echo "#define HAVE_REMSH 1" >>confdefs.h
4142:
4143: fi
4144:
4145: if test x"$with_rsh" != x; then
4146: RSYNC_RSH="$with_rsh"
4147: else
4148: RSYNC_RSH="ssh"
4149: fi
4150:
4151: cat >>confdefs.h <<_ACEOF
4152: #define RSYNC_RSH "$RSYNC_RSH"
4153: _ACEOF
4154:
4155:
4156: # Extract the first word of "yodl2man", so it can be a program name with args.
4157: set dummy yodl2man; ac_word=$2
4158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159: $as_echo_n "checking for $ac_word... " >&6; }
4160: if ${ac_cv_prog_HAVE_YODL2MAN+:} false; then :
4161: $as_echo_n "(cached) " >&6
4162: else
4163: if test -n "$HAVE_YODL2MAN"; then
4164: ac_cv_prog_HAVE_YODL2MAN="$HAVE_YODL2MAN" # Let the user override the test.
4165: else
4166: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167: for as_dir in $PATH
4168: do
4169: IFS=$as_save_IFS
4170: test -z "$as_dir" && as_dir=.
4171: for ac_exec_ext in '' $ac_executable_extensions; do
4172: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173: ac_cv_prog_HAVE_YODL2MAN="1"
4174: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175: break 2
4176: fi
4177: done
4178: done
4179: IFS=$as_save_IFS
4180:
4181: test -z "$ac_cv_prog_HAVE_YODL2MAN" && ac_cv_prog_HAVE_YODL2MAN="0"
4182: fi
4183: fi
4184: HAVE_YODL2MAN=$ac_cv_prog_HAVE_YODL2MAN
4185: if test -n "$HAVE_YODL2MAN"; then
4186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_YODL2MAN" >&5
4187: $as_echo "$HAVE_YODL2MAN" >&6; }
4188: else
4189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190: $as_echo "no" >&6; }
4191: fi
4192:
4193:
4194: if test x$HAVE_YODL2MAN = x1; then
4195: MAKE_MAN=man
4196: fi
4197:
4198:
4199: # Check whether --with-nobody-group was given.
4200: if test "${with_nobody_group+set}" = set; then :
4201: withval=$with_nobody_group; NOBODY_GROUP="$with_nobody_group"
4202: fi
4203:
4204:
4205: if test x"$with_nobody_group" = x; then
4206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the group for user \"nobody\"" >&5
4207: $as_echo_n "checking the group for user \"nobody\"... " >&6; }
4208: if grep '^nobody:' /etc/group >/dev/null 2>&1; then
4209: NOBODY_GROUP=nobody
4210: elif grep '^nogroup:' /etc/group >/dev/null 2>&1; then
4211: NOBODY_GROUP=nogroup
4212: else
4213: NOBODY_GROUP=nobody # test for others?
4214: fi
4215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOBODY_GROUP" >&5
4216: $as_echo "$NOBODY_GROUP" >&6; }
4217: fi
4218:
4219:
4220: cat >>confdefs.h <<_ACEOF
4221: #define NOBODY_USER "nobody"
4222: _ACEOF
4223:
4224:
4225: cat >>confdefs.h <<_ACEOF
4226: #define NOBODY_GROUP "$NOBODY_GROUP"
4227: _ACEOF
4228:
4229:
4230: # arrgh. libc in some old debian version screwed up the largefile
4231: # stuff, getting byte range locking wrong
4232:
4233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5
4234: $as_echo_n "checking for broken largefile support... " >&6; }
4235: if ${rsync_cv_HAVE_BROKEN_LARGEFILE+:} false; then :
4236: $as_echo_n "(cached) " >&6
4237: else
4238:
4239: if test "$cross_compiling" = yes; then :
4240: rsync_cv_HAVE_BROKEN_LARGEFILE=cross
4241: else
4242: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243: /* end confdefs.h. */
4244:
4245: #define _FILE_OFFSET_BITS 64
4246: #include <stdio.h>
4247: #include <fcntl.h>
4248: #include <sys/types.h>
4249: #include <sys/wait.h>
4250:
4251: int main(void)
4252: {
4253: struct flock lock;
4254: int status;
4255: char tpl[32] = "/tmp/locktest.XXXXXX";
4256: int fd = mkstemp(tpl);
4257: if (fd < 0) {
4258: strcpy(tpl, "conftest.dat");
4259: fd = open(tpl, O_CREAT|O_RDWR, 0600);
4260: }
4261:
4262: lock.l_type = F_WRLCK;
4263: lock.l_whence = SEEK_SET;
4264: lock.l_start = 0;
4265: lock.l_len = 1;
4266: lock.l_pid = 0;
4267: fcntl(fd,F_SETLK,&lock);
4268: if (fork() == 0) {
4269: lock.l_start = 1;
4270: _exit(fcntl(fd,F_SETLK,&lock) == 0);
4271: }
4272: wait(&status);
4273: unlink(tpl);
4274: exit(WEXITSTATUS(status));
4275: }
4276:
4277: _ACEOF
4278: if ac_fn_c_try_run "$LINENO"; then :
4279: rsync_cv_HAVE_BROKEN_LARGEFILE=yes
4280: else
4281: rsync_cv_HAVE_BROKEN_LARGEFILE=no
4282: fi
4283: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4284: conftest.$ac_objext conftest.beam conftest.$ac_ext
4285: fi
4286:
4287: fi
4288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_LARGEFILE" >&5
4289: $as_echo "$rsync_cv_HAVE_BROKEN_LARGEFILE" >&6; }
4290: if test x"$rsync_cv_HAVE_BROKEN_LARGEFILE" != x"yes"; then
4291: # Check whether --enable-largefile was given.
4292: if test "${enable_largefile+set}" = set; then :
4293: enableval=$enable_largefile;
4294: fi
4295:
4296: if test "$enable_largefile" != no; then
4297:
4298: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4299: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4300: if ${ac_cv_sys_largefile_CC+:} false; then :
4301: $as_echo_n "(cached) " >&6
4302: else
4303: ac_cv_sys_largefile_CC=no
4304: if test "$GCC" != yes; then
4305: ac_save_CC=$CC
4306: while :; do
4307: # IRIX 6.2 and later do not support large files by default,
4308: # so use the C compiler's -n32 option if that helps.
4309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310: /* end confdefs.h. */
4311: #include <sys/types.h>
4312: /* Check that off_t can represent 2**63 - 1 correctly.
4313: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4314: since some C++ compilers masquerading as C compilers
4315: incorrectly reject 9223372036854775807. */
4316: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4317: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4318: && LARGE_OFF_T % 2147483647 == 1)
4319: ? 1 : -1];
4320: int
4321: main ()
4322: {
4323:
4324: ;
4325: return 0;
4326: }
4327: _ACEOF
4328: if ac_fn_c_try_compile "$LINENO"; then :
4329: break
4330: fi
4331: rm -f core conftest.err conftest.$ac_objext
4332: CC="$CC -n32"
4333: if ac_fn_c_try_compile "$LINENO"; then :
4334: ac_cv_sys_largefile_CC=' -n32'; break
4335: fi
4336: rm -f core conftest.err conftest.$ac_objext
4337: break
4338: done
4339: CC=$ac_save_CC
4340: rm -f conftest.$ac_ext
4341: fi
4342: fi
4343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4344: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4345: if test "$ac_cv_sys_largefile_CC" != no; then
4346: CC=$CC$ac_cv_sys_largefile_CC
4347: fi
4348:
4349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4350: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4351: if ${ac_cv_sys_file_offset_bits+:} false; then :
4352: $as_echo_n "(cached) " >&6
4353: else
4354: while :; do
4355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356: /* end confdefs.h. */
4357: #include <sys/types.h>
4358: /* Check that off_t can represent 2**63 - 1 correctly.
4359: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4360: since some C++ compilers masquerading as C compilers
4361: incorrectly reject 9223372036854775807. */
4362: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4363: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4364: && LARGE_OFF_T % 2147483647 == 1)
4365: ? 1 : -1];
4366: int
4367: main ()
4368: {
4369:
4370: ;
4371: return 0;
4372: }
4373: _ACEOF
4374: if ac_fn_c_try_compile "$LINENO"; then :
4375: ac_cv_sys_file_offset_bits=no; break
4376: fi
4377: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379: /* end confdefs.h. */
4380: #define _FILE_OFFSET_BITS 64
4381: #include <sys/types.h>
4382: /* Check that off_t can represent 2**63 - 1 correctly.
4383: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4384: since some C++ compilers masquerading as C compilers
4385: incorrectly reject 9223372036854775807. */
4386: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4387: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4388: && LARGE_OFF_T % 2147483647 == 1)
4389: ? 1 : -1];
4390: int
4391: main ()
4392: {
4393:
4394: ;
4395: return 0;
4396: }
4397: _ACEOF
4398: if ac_fn_c_try_compile "$LINENO"; then :
4399: ac_cv_sys_file_offset_bits=64; break
4400: fi
4401: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402: ac_cv_sys_file_offset_bits=unknown
4403: break
4404: done
4405: fi
4406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4407: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4408: case $ac_cv_sys_file_offset_bits in #(
4409: no | unknown) ;;
4410: *)
4411: cat >>confdefs.h <<_ACEOF
4412: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4413: _ACEOF
4414: ;;
4415: esac
4416: rm -rf conftest*
4417: if test $ac_cv_sys_file_offset_bits = unknown; then
4418: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4419: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4420: if ${ac_cv_sys_large_files+:} false; then :
4421: $as_echo_n "(cached) " >&6
4422: else
4423: while :; do
4424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425: /* end confdefs.h. */
4426: #include <sys/types.h>
4427: /* Check that off_t can represent 2**63 - 1 correctly.
4428: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4429: since some C++ compilers masquerading as C compilers
4430: incorrectly reject 9223372036854775807. */
4431: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4432: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4433: && LARGE_OFF_T % 2147483647 == 1)
4434: ? 1 : -1];
4435: int
4436: main ()
4437: {
4438:
4439: ;
4440: return 0;
4441: }
4442: _ACEOF
4443: if ac_fn_c_try_compile "$LINENO"; then :
4444: ac_cv_sys_large_files=no; break
4445: fi
4446: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448: /* end confdefs.h. */
4449: #define _LARGE_FILES 1
4450: #include <sys/types.h>
4451: /* Check that off_t can represent 2**63 - 1 correctly.
4452: We can't simply define LARGE_OFF_T to be 9223372036854775807,
4453: since some C++ compilers masquerading as C compilers
4454: incorrectly reject 9223372036854775807. */
4455: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4456: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4457: && LARGE_OFF_T % 2147483647 == 1)
4458: ? 1 : -1];
4459: int
4460: main ()
4461: {
4462:
4463: ;
4464: return 0;
4465: }
4466: _ACEOF
4467: if ac_fn_c_try_compile "$LINENO"; then :
4468: ac_cv_sys_large_files=1; break
4469: fi
4470: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471: ac_cv_sys_large_files=unknown
4472: break
4473: done
4474: fi
4475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4476: $as_echo "$ac_cv_sys_large_files" >&6; }
4477: case $ac_cv_sys_large_files in #(
4478: no | unknown) ;;
4479: *)
4480: cat >>confdefs.h <<_ACEOF
4481: #define _LARGE_FILES $ac_cv_sys_large_files
4482: _ACEOF
4483: ;;
4484: esac
4485: rm -rf conftest*
4486: fi
4487: fi
4488:
4489: fi
4490:
4491: ipv6type=unknown
4492: ipv6lib=none
4493: ipv6trylibc=yes
4494:
4495: # Check whether --enable-ipv6 was given.
4496: if test "${enable_ipv6+set}" = set; then :
4497: enableval=$enable_ipv6;
4498: fi
4499:
4500: if test x"$enable_ipv6" != x"no"; then
4501: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
4502: $as_echo_n "checking ipv6 stack type... " >&6; }
4503: for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin; do
4504: case $i in
4505: inria)
4506: # http://www.kame.net/
4507:
4508: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509: /* end confdefs.h. */
4510:
4511: #include <netinet/in.h>
4512: #ifdef IPV6_INRIA_VERSION
4513: yes
4514: #endif
4515: _ACEOF
4516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517: $EGREP "yes" >/dev/null 2>&1; then :
4518: ipv6type=$i;
4519:
4520: $as_echo "#define INET6 1" >>confdefs.h
4521:
4522:
4523: fi
4524: rm -f conftest*
4525:
4526: ;;
4527: kame)
4528: # http://www.kame.net/
4529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530: /* end confdefs.h. */
4531:
4532: #include <netinet/in.h>
4533: #ifdef __KAME__
4534: yes
4535: #endif
4536: _ACEOF
4537: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538: $EGREP "yes" >/dev/null 2>&1; then :
4539: ipv6type=$i;
4540:
4541: $as_echo "#define INET6 1" >>confdefs.h
4542:
4543: fi
4544: rm -f conftest*
4545:
4546: ;;
4547: linux-glibc)
4548: # http://www.v6.linux.or.jp/
4549: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550: /* end confdefs.h. */
4551:
4552: #include <features.h>
4553: #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4554: yes
4555: #endif
4556: _ACEOF
4557: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558: $EGREP "yes" >/dev/null 2>&1; then :
4559: ipv6type=$i;
4560:
4561: $as_echo "#define INET6 1" >>confdefs.h
4562:
4563: fi
4564: rm -f conftest*
4565:
4566: ;;
4567: linux-inet6)
4568: # http://www.v6.linux.or.jp/
4569: if test -d /usr/inet6 -o -f /usr/inet6/lib/libinet6.a; then
4570: ipv6type=$i
4571: ipv6lib=inet6
4572: ipv6libdir=/usr/inet6/lib
4573: ipv6trylibc=yes;
4574:
4575: $as_echo "#define INET6 1" >>confdefs.h
4576:
4577: CFLAGS="-I/usr/inet6/include $CFLAGS"
4578: fi
4579: ;;
4580: solaris)
4581: # http://www.sun.com
4582: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583: /* end confdefs.h. */
4584:
4585: #include <netinet/ip6.h>
4586: #ifdef __sun
4587: yes
4588: #endif
4589: _ACEOF
4590: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591: $EGREP "yes" >/dev/null 2>&1; then :
4592: ipv6type=$i;
4593:
4594: $as_echo "#define INET6 1" >>confdefs.h
4595:
4596: fi
4597: rm -f conftest*
4598:
4599: ;;
4600: toshiba)
4601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602: /* end confdefs.h. */
4603:
4604: #include <sys/param.h>
4605: #ifdef _TOSHIBA_INET6
4606: yes
4607: #endif
4608: _ACEOF
4609: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610: $EGREP "yes" >/dev/null 2>&1; then :
4611: ipv6type=$i;
4612: ipv6lib=inet6;
4613: ipv6libdir=/usr/local/v6/lib;
4614:
4615: $as_echo "#define INET6 1" >>confdefs.h
4616:
4617: fi
4618: rm -f conftest*
4619:
4620: ;;
4621: v6d)
4622: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623: /* end confdefs.h. */
4624:
4625: #include </usr/local/v6/include/sys/v6config.h>
4626: #ifdef __V6D__
4627: yes
4628: #endif
4629: _ACEOF
4630: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631: $EGREP "yes" >/dev/null 2>&1; then :
4632: ipv6type=$i;
4633: ipv6lib=v6;
4634: ipv6libdir=/usr/local/v6/lib;
4635:
4636: $as_echo "#define INET6 1" >>confdefs.h
4637:
4638: fi
4639: rm -f conftest*
4640:
4641: ;;
4642: zeta)
4643: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644: /* end confdefs.h. */
4645:
4646: #include <sys/param.h>
4647: #ifdef _ZETA_MINAMI_INET6
4648: yes
4649: #endif
4650: _ACEOF
4651: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652: $EGREP "yes" >/dev/null 2>&1; then :
4653: ipv6type=$i;
4654: ipv6lib=inet6;
4655: ipv6libdir=/usr/local/v6/lib;
4656:
4657: $as_echo "#define INET6 1" >>confdefs.h
4658:
4659: fi
4660: rm -f conftest*
4661:
4662: ;;
4663: cygwin)
4664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665: /* end confdefs.h. */
4666:
4667: #include <netinet/in.h>
4668: #ifdef _CYGWIN_IN6_H
4669: yes
4670: #endif
4671: _ACEOF
4672: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4673: $EGREP "yes" >/dev/null 2>&1; then :
4674: ipv6type=$i;
4675:
4676: $as_echo "#define INET6 1" >>confdefs.h
4677:
4678: fi
4679: rm -f conftest*
4680:
4681: ;;
4682: esac
4683: if test "$ipv6type" != "unknown"; then
4684: break
4685: fi
4686: done
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
4688: $as_echo "$ipv6type" >&6; }
4689:
4690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
4691: $as_echo_n "checking for library containing getaddrinfo... " >&6; }
4692: if ${ac_cv_search_getaddrinfo+:} false; then :
4693: $as_echo_n "(cached) " >&6
4694: else
4695: ac_func_search_save_LIBS=$LIBS
4696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697: /* end confdefs.h. */
4698:
4699: /* Override any GCC internal prototype to avoid an error.
4700: Use char because int might match the return type of a GCC
4701: builtin and then its argument prototype would still apply. */
4702: #ifdef __cplusplus
4703: extern "C"
4704: #endif
4705: char getaddrinfo ();
4706: int
4707: main ()
4708: {
4709: return getaddrinfo ();
4710: ;
4711: return 0;
4712: }
4713: _ACEOF
4714: for ac_lib in '' inet6; do
4715: if test -z "$ac_lib"; then
4716: ac_res="none required"
4717: else
4718: ac_res=-l$ac_lib
4719: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4720: fi
4721: if ac_fn_c_try_link "$LINENO"; then :
4722: ac_cv_search_getaddrinfo=$ac_res
4723: fi
4724: rm -f core conftest.err conftest.$ac_objext \
4725: conftest$ac_exeext
4726: if ${ac_cv_search_getaddrinfo+:} false; then :
4727: break
4728: fi
4729: done
4730: if ${ac_cv_search_getaddrinfo+:} false; then :
4731:
4732: else
4733: ac_cv_search_getaddrinfo=no
4734: fi
4735: rm conftest.$ac_ext
4736: LIBS=$ac_func_search_save_LIBS
4737: fi
4738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
4739: $as_echo "$ac_cv_search_getaddrinfo" >&6; }
4740: ac_res=$ac_cv_search_getaddrinfo
4741: if test "$ac_res" != no; then :
4742: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4743:
4744: fi
4745:
4746: fi
4747:
4748: # Check whether --enable-locale was given.
4749: if test "${enable_locale+set}" = set; then :
4750: enableval=$enable_locale;
4751: fi
4752:
4753:
4754: if test x"$enable_locale" != x"no"; then
4755: $as_echo "#define CONFIG_LOCALE 1" >>confdefs.h
4756:
4757: fi
4758:
4759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to call shutdown on all sockets" >&5
4760: $as_echo_n "checking whether to call shutdown on all sockets... " >&6; }
4761: case $host_os in
4762: *cygwin* ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763: $as_echo "yes" >&6; }
4764:
4765: $as_echo "#define SHUTDOWN_ALL_SOCKETS 1" >>confdefs.h
4766:
4767: ;;
4768: * ) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769: $as_echo "no" >&6; };;
4770: esac
4771:
4772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4773: $as_echo_n "checking for ANSI C header files... " >&6; }
4774: if ${ac_cv_header_stdc+:} false; then :
4775: $as_echo_n "(cached) " >&6
4776: else
4777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778: /* end confdefs.h. */
4779: #include <stdlib.h>
4780: #include <stdarg.h>
4781: #include <string.h>
4782: #include <float.h>
4783:
4784: int
4785: main ()
4786: {
4787:
4788: ;
4789: return 0;
4790: }
4791: _ACEOF
4792: if ac_fn_c_try_compile "$LINENO"; then :
4793: ac_cv_header_stdc=yes
4794: else
4795: ac_cv_header_stdc=no
4796: fi
4797: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798:
4799: if test $ac_cv_header_stdc = yes; then
4800: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4801: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802: /* end confdefs.h. */
4803: #include <string.h>
4804:
4805: _ACEOF
4806: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807: $EGREP "memchr" >/dev/null 2>&1; then :
4808:
4809: else
4810: ac_cv_header_stdc=no
4811: fi
4812: rm -f conftest*
4813:
4814: fi
4815:
4816: if test $ac_cv_header_stdc = yes; then
4817: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4818: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819: /* end confdefs.h. */
4820: #include <stdlib.h>
4821:
4822: _ACEOF
4823: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824: $EGREP "free" >/dev/null 2>&1; then :
4825:
4826: else
4827: ac_cv_header_stdc=no
4828: fi
4829: rm -f conftest*
4830:
4831: fi
4832:
4833: if test $ac_cv_header_stdc = yes; then
4834: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4835: if test "$cross_compiling" = yes; then :
4836: :
4837: else
4838: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839: /* end confdefs.h. */
4840: #include <ctype.h>
4841: #include <stdlib.h>
4842: #if ((' ' & 0x0FF) == 0x020)
4843: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4844: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4845: #else
4846: # define ISLOWER(c) \
4847: (('a' <= (c) && (c) <= 'i') \
4848: || ('j' <= (c) && (c) <= 'r') \
4849: || ('s' <= (c) && (c) <= 'z'))
4850: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4851: #endif
4852:
4853: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4854: int
4855: main ()
4856: {
4857: int i;
4858: for (i = 0; i < 256; i++)
4859: if (XOR (islower (i), ISLOWER (i))
4860: || toupper (i) != TOUPPER (i))
4861: return 2;
4862: return 0;
4863: }
4864: _ACEOF
4865: if ac_fn_c_try_run "$LINENO"; then :
4866:
4867: else
4868: ac_cv_header_stdc=no
4869: fi
4870: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4871: conftest.$ac_objext conftest.beam conftest.$ac_ext
4872: fi
4873:
4874: fi
4875: fi
4876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4877: $as_echo "$ac_cv_header_stdc" >&6; }
4878: if test $ac_cv_header_stdc = yes; then
4879:
4880: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4881:
4882: fi
4883:
4884: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4885: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4886: inttypes.h stdint.h unistd.h
4887: do :
4888: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4889: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4890: "
4891: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4892: cat >>confdefs.h <<_ACEOF
4893: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4894: _ACEOF
4895:
4896: fi
4897:
4898: done
4899:
4900:
4901: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4902: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4903: if ${ac_cv_c_bigendian+:} false; then :
4904: $as_echo_n "(cached) " >&6
4905: else
4906: ac_cv_c_bigendian=unknown
4907: # See if we're dealing with a universal compiler.
4908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909: /* end confdefs.h. */
4910: #ifndef __APPLE_CC__
4911: not a universal capable compiler
4912: #endif
4913: typedef int dummy;
4914:
4915: _ACEOF
4916: if ac_fn_c_try_compile "$LINENO"; then :
4917:
4918: # Check for potential -arch flags. It is not universal unless
4919: # there are at least two -arch flags with different values.
4920: ac_arch=
4921: ac_prev=
4922: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4923: if test -n "$ac_prev"; then
4924: case $ac_word in
4925: i?86 | x86_64 | ppc | ppc64)
4926: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4927: ac_arch=$ac_word
4928: else
4929: ac_cv_c_bigendian=universal
4930: break
4931: fi
4932: ;;
4933: esac
4934: ac_prev=
4935: elif test "x$ac_word" = "x-arch"; then
4936: ac_prev=arch
4937: fi
4938: done
4939: fi
4940: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941: if test $ac_cv_c_bigendian = unknown; then
4942: # See if sys/param.h defines the BYTE_ORDER macro.
4943: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944: /* end confdefs.h. */
4945: #include <sys/types.h>
4946: #include <sys/param.h>
4947:
4948: int
4949: main ()
4950: {
4951: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4952: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4953: && LITTLE_ENDIAN)
4954: bogus endian macros
4955: #endif
4956:
4957: ;
4958: return 0;
4959: }
4960: _ACEOF
4961: if ac_fn_c_try_compile "$LINENO"; then :
4962: # It does; now see whether it defined to BIG_ENDIAN or not.
4963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964: /* end confdefs.h. */
4965: #include <sys/types.h>
4966: #include <sys/param.h>
4967:
4968: int
4969: main ()
4970: {
4971: #if BYTE_ORDER != BIG_ENDIAN
4972: not big endian
4973: #endif
4974:
4975: ;
4976: return 0;
4977: }
4978: _ACEOF
4979: if ac_fn_c_try_compile "$LINENO"; then :
4980: ac_cv_c_bigendian=yes
4981: else
4982: ac_cv_c_bigendian=no
4983: fi
4984: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985: fi
4986: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987: fi
4988: if test $ac_cv_c_bigendian = unknown; then
4989: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991: /* end confdefs.h. */
4992: #include <limits.h>
4993:
4994: int
4995: main ()
4996: {
4997: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4998: bogus endian macros
4999: #endif
5000:
5001: ;
5002: return 0;
5003: }
5004: _ACEOF
5005: if ac_fn_c_try_compile "$LINENO"; then :
5006: # It does; now see whether it defined to _BIG_ENDIAN or not.
5007: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008: /* end confdefs.h. */
5009: #include <limits.h>
5010:
5011: int
5012: main ()
5013: {
5014: #ifndef _BIG_ENDIAN
5015: not big endian
5016: #endif
5017:
5018: ;
5019: return 0;
5020: }
5021: _ACEOF
5022: if ac_fn_c_try_compile "$LINENO"; then :
5023: ac_cv_c_bigendian=yes
5024: else
5025: ac_cv_c_bigendian=no
5026: fi
5027: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028: fi
5029: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030: fi
5031: if test $ac_cv_c_bigendian = unknown; then
5032: # Compile a test program.
5033: if test "$cross_compiling" = yes; then :
5034: # Try to guess by grepping values from an object file.
5035: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036: /* end confdefs.h. */
5037: short int ascii_mm[] =
5038: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5039: short int ascii_ii[] =
5040: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5041: int use_ascii (int i) {
5042: return ascii_mm[i] + ascii_ii[i];
5043: }
5044: short int ebcdic_ii[] =
5045: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5046: short int ebcdic_mm[] =
5047: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5048: int use_ebcdic (int i) {
5049: return ebcdic_mm[i] + ebcdic_ii[i];
5050: }
5051: extern int foo;
5052:
5053: int
5054: main ()
5055: {
5056: return use_ascii (foo) == use_ebcdic (foo);
5057: ;
5058: return 0;
5059: }
5060: _ACEOF
5061: if ac_fn_c_try_compile "$LINENO"; then :
5062: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5063: ac_cv_c_bigendian=yes
5064: fi
5065: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5066: if test "$ac_cv_c_bigendian" = unknown; then
5067: ac_cv_c_bigendian=no
5068: else
5069: # finding both strings is unlikely to happen, but who knows?
5070: ac_cv_c_bigendian=unknown
5071: fi
5072: fi
5073: fi
5074: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075: else
5076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077: /* end confdefs.h. */
5078: $ac_includes_default
5079: int
5080: main ()
5081: {
5082:
5083: /* Are we little or big endian? From Harbison&Steele. */
5084: union
5085: {
5086: long int l;
5087: char c[sizeof (long int)];
5088: } u;
5089: u.l = 1;
5090: return u.c[sizeof (long int) - 1] == 1;
5091:
5092: ;
5093: return 0;
5094: }
5095: _ACEOF
5096: if ac_fn_c_try_run "$LINENO"; then :
5097: ac_cv_c_bigendian=no
5098: else
5099: ac_cv_c_bigendian=yes
5100: fi
5101: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5102: conftest.$ac_objext conftest.beam conftest.$ac_ext
5103: fi
5104:
5105: fi
5106: fi
5107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5108: $as_echo "$ac_cv_c_bigendian" >&6; }
5109: case $ac_cv_c_bigendian in #(
5110: yes)
5111: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5112: ;; #(
5113: no)
5114: ;; #(
5115: universal)
5116:
5117: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5118:
5119: ;; #(
5120: *)
5121: as_fn_error $? "unknown endianness
5122: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5123: esac
5124:
5125: ac_header_dirent=no
5126: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5127: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5129: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5130: if eval \${$as_ac_Header+:} false; then :
5131: $as_echo_n "(cached) " >&6
5132: else
5133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134: /* end confdefs.h. */
5135: #include <sys/types.h>
5136: #include <$ac_hdr>
5137:
5138: int
5139: main ()
5140: {
5141: if ((DIR *) 0)
5142: return 0;
5143: ;
5144: return 0;
5145: }
5146: _ACEOF
5147: if ac_fn_c_try_compile "$LINENO"; then :
5148: eval "$as_ac_Header=yes"
5149: else
5150: eval "$as_ac_Header=no"
5151: fi
5152: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153: fi
5154: eval ac_res=\$$as_ac_Header
5155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5156: $as_echo "$ac_res" >&6; }
5157: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5158: cat >>confdefs.h <<_ACEOF
5159: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5160: _ACEOF
5161:
5162: ac_header_dirent=$ac_hdr; break
5163: fi
5164:
5165: done
5166: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5167: if test $ac_header_dirent = dirent.h; then
5168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5169: $as_echo_n "checking for library containing opendir... " >&6; }
5170: if ${ac_cv_search_opendir+:} false; then :
5171: $as_echo_n "(cached) " >&6
5172: else
5173: ac_func_search_save_LIBS=$LIBS
5174: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175: /* end confdefs.h. */
5176:
5177: /* Override any GCC internal prototype to avoid an error.
5178: Use char because int might match the return type of a GCC
5179: builtin and then its argument prototype would still apply. */
5180: #ifdef __cplusplus
5181: extern "C"
5182: #endif
5183: char opendir ();
5184: int
5185: main ()
5186: {
5187: return opendir ();
5188: ;
5189: return 0;
5190: }
5191: _ACEOF
5192: for ac_lib in '' dir; do
5193: if test -z "$ac_lib"; then
5194: ac_res="none required"
5195: else
5196: ac_res=-l$ac_lib
5197: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5198: fi
5199: if ac_fn_c_try_link "$LINENO"; then :
5200: ac_cv_search_opendir=$ac_res
5201: fi
5202: rm -f core conftest.err conftest.$ac_objext \
5203: conftest$ac_exeext
5204: if ${ac_cv_search_opendir+:} false; then :
5205: break
5206: fi
5207: done
5208: if ${ac_cv_search_opendir+:} false; then :
5209:
5210: else
5211: ac_cv_search_opendir=no
5212: fi
5213: rm conftest.$ac_ext
5214: LIBS=$ac_func_search_save_LIBS
5215: fi
5216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5217: $as_echo "$ac_cv_search_opendir" >&6; }
5218: ac_res=$ac_cv_search_opendir
5219: if test "$ac_res" != no; then :
5220: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5221:
5222: fi
5223:
5224: else
5225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5226: $as_echo_n "checking for library containing opendir... " >&6; }
5227: if ${ac_cv_search_opendir+:} false; then :
5228: $as_echo_n "(cached) " >&6
5229: else
5230: ac_func_search_save_LIBS=$LIBS
5231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232: /* end confdefs.h. */
5233:
5234: /* Override any GCC internal prototype to avoid an error.
5235: Use char because int might match the return type of a GCC
5236: builtin and then its argument prototype would still apply. */
5237: #ifdef __cplusplus
5238: extern "C"
5239: #endif
5240: char opendir ();
5241: int
5242: main ()
5243: {
5244: return opendir ();
5245: ;
5246: return 0;
5247: }
5248: _ACEOF
5249: for ac_lib in '' x; do
5250: if test -z "$ac_lib"; then
5251: ac_res="none required"
5252: else
5253: ac_res=-l$ac_lib
5254: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5255: fi
5256: if ac_fn_c_try_link "$LINENO"; then :
5257: ac_cv_search_opendir=$ac_res
5258: fi
5259: rm -f core conftest.err conftest.$ac_objext \
5260: conftest$ac_exeext
5261: if ${ac_cv_search_opendir+:} false; then :
5262: break
5263: fi
5264: done
5265: if ${ac_cv_search_opendir+:} false; then :
5266:
5267: else
5268: ac_cv_search_opendir=no
5269: fi
5270: rm conftest.$ac_ext
5271: LIBS=$ac_func_search_save_LIBS
5272: fi
5273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5274: $as_echo "$ac_cv_search_opendir" >&6; }
5275: ac_res=$ac_cv_search_opendir
5276: if test "$ac_res" != no; then :
5277: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5278:
5279: fi
5280:
5281: fi
5282:
5283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5284: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5285: if ${ac_cv_header_time+:} false; then :
5286: $as_echo_n "(cached) " >&6
5287: else
5288: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289: /* end confdefs.h. */
5290: #include <sys/types.h>
5291: #include <sys/time.h>
5292: #include <time.h>
5293:
5294: int
5295: main ()
5296: {
5297: if ((struct tm *) 0)
5298: return 0;
5299: ;
5300: return 0;
5301: }
5302: _ACEOF
5303: if ac_fn_c_try_compile "$LINENO"; then :
5304: ac_cv_header_time=yes
5305: else
5306: ac_cv_header_time=no
5307: fi
5308: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309: fi
5310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5311: $as_echo "$ac_cv_header_time" >&6; }
5312: if test $ac_cv_header_time = yes; then
5313:
5314: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5315:
5316: fi
5317:
5318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5319: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5320: if ${ac_cv_header_sys_wait_h+:} false; then :
5321: $as_echo_n "(cached) " >&6
5322: else
5323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324: /* end confdefs.h. */
5325: #include <sys/types.h>
5326: #include <sys/wait.h>
5327: #ifndef WEXITSTATUS
5328: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5329: #endif
5330: #ifndef WIFEXITED
5331: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5332: #endif
5333:
5334: int
5335: main ()
5336: {
5337: int s;
5338: wait (&s);
5339: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5340: ;
5341: return 0;
5342: }
5343: _ACEOF
5344: if ac_fn_c_try_compile "$LINENO"; then :
5345: ac_cv_header_sys_wait_h=yes
5346: else
5347: ac_cv_header_sys_wait_h=no
5348: fi
5349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350: fi
5351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5352: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5353: if test $ac_cv_header_sys_wait_h = yes; then
5354:
5355: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5356:
5357: fi
5358:
5359: for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
5360: unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \
5361: sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \
5362: sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
5363: netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
5364: sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \
5365: popt.h popt/popt.h netinet/in_systm.h netinet/ip.h
5366: do :
5367: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5368: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5369: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5370: cat >>confdefs.h <<_ACEOF
5371: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372: _ACEOF
5373:
5374: fi
5375:
5376: done
5377:
5378: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
5379: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
5380: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
5381: $as_echo_n "(cached) " >&6
5382: else
5383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384: /* end confdefs.h. */
5385: #include <sys/types.h>
5386: int
5387: main ()
5388: {
5389: return makedev(0, 0);
5390: ;
5391: return 0;
5392: }
5393: _ACEOF
5394: if ac_fn_c_try_link "$LINENO"; then :
5395: ac_cv_header_sys_types_h_makedev=yes
5396: else
5397: ac_cv_header_sys_types_h_makedev=no
5398: fi
5399: rm -f core conftest.err conftest.$ac_objext \
5400: conftest$ac_exeext conftest.$ac_ext
5401:
5402: fi
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
5404: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
5405:
5406: if test $ac_cv_header_sys_types_h_makedev = no; then
5407: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
5408: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
5409:
5410: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
5411:
5412: fi
5413:
5414:
5415:
5416: if test $ac_cv_header_sys_mkdev_h = no; then
5417: ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
5418: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
5419:
5420: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
5421:
5422: fi
5423:
5424:
5425: fi
5426: fi
5427:
5428:
5429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5
5430: $as_echo_n "checking if makedev takes 3 args... " >&6; }
5431: if ${rsync_cv_MAKEDEV_TAKES_3_ARGS+:} false; then :
5432: $as_echo_n "(cached) " >&6
5433: else
5434:
5435: if test "$cross_compiling" = yes; then :
5436: rsync_cv_MAKEDEV_TAKES_3_ARGS=no
5437: else
5438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439: /* end confdefs.h. */
5440:
5441: #include <sys/types.h>
5442: #ifdef MAJOR_IN_MKDEV
5443: #include <sys/mkdev.h>
5444: # if !defined makedev && (defined mkdev || defined _WIN32 || defined __WIN32__)
5445: # define makedev mkdev
5446: # endif
5447: #elif defined MAJOR_IN_SYSMACROS
5448: #include <sys/sysmacros.h>
5449: #endif
5450:
5451: int main(void)
5452: {
5453: dev_t dev = makedev(0, 5, 7);
5454: if (major(dev) != 5 || minor(dev) != 7)
5455: exit(1);
5456: return 0;
5457: }
5458:
5459: _ACEOF
5460: if ac_fn_c_try_run "$LINENO"; then :
5461: rsync_cv_MAKEDEV_TAKES_3_ARGS=yes
5462: else
5463: rsync_cv_MAKEDEV_TAKES_3_ARGS=no
5464: fi
5465: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5466: conftest.$ac_objext conftest.beam conftest.$ac_ext
5467: fi
5468:
5469: fi
5470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MAKEDEV_TAKES_3_ARGS" >&5
5471: $as_echo "$rsync_cv_MAKEDEV_TAKES_3_ARGS" >&6; }
5472: if test x"$rsync_cv_MAKEDEV_TAKES_3_ARGS" = x"yes"; then
5473:
5474: $as_echo "#define MAKEDEV_TAKES_3_ARGS 1" >>confdefs.h
5475:
5476: fi
5477:
5478: # The cast to long int works around a bug in the HP C Compiler
5479: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5480: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5481: # This bug is HP SR number 8606223364.
5482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5483: $as_echo_n "checking size of int... " >&6; }
5484: if ${ac_cv_sizeof_int+:} false; then :
5485: $as_echo_n "(cached) " >&6
5486: else
5487: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5488:
5489: else
5490: if test "$ac_cv_type_int" = yes; then
5491: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5492: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5493: as_fn_error 77 "cannot compute sizeof (int)
5494: See \`config.log' for more details" "$LINENO" 5; }
5495: else
5496: ac_cv_sizeof_int=0
5497: fi
5498: fi
5499:
5500: fi
5501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5502: $as_echo "$ac_cv_sizeof_int" >&6; }
5503:
5504:
5505:
5506: cat >>confdefs.h <<_ACEOF
5507: #define SIZEOF_INT $ac_cv_sizeof_int
5508: _ACEOF
5509:
5510:
5511: # The cast to long int works around a bug in the HP C Compiler
5512: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514: # This bug is HP SR number 8606223364.
5515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5516: $as_echo_n "checking size of long... " >&6; }
5517: if ${ac_cv_sizeof_long+:} false; then :
5518: $as_echo_n "(cached) " >&6
5519: else
5520: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5521:
5522: else
5523: if test "$ac_cv_type_long" = yes; then
5524: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526: as_fn_error 77 "cannot compute sizeof (long)
5527: See \`config.log' for more details" "$LINENO" 5; }
5528: else
5529: ac_cv_sizeof_long=0
5530: fi
5531: fi
5532:
5533: fi
5534: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5535: $as_echo "$ac_cv_sizeof_long" >&6; }
5536:
5537:
5538:
5539: cat >>confdefs.h <<_ACEOF
5540: #define SIZEOF_LONG $ac_cv_sizeof_long
5541: _ACEOF
5542:
5543:
5544: # The cast to long int works around a bug in the HP C Compiler
5545: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5546: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5547: # This bug is HP SR number 8606223364.
5548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5549: $as_echo_n "checking size of long long... " >&6; }
5550: if ${ac_cv_sizeof_long_long+:} false; then :
5551: $as_echo_n "(cached) " >&6
5552: else
5553: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5554:
5555: else
5556: if test "$ac_cv_type_long_long" = yes; then
5557: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5558: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5559: as_fn_error 77 "cannot compute sizeof (long long)
5560: See \`config.log' for more details" "$LINENO" 5; }
5561: else
5562: ac_cv_sizeof_long_long=0
5563: fi
5564: fi
5565:
5566: fi
5567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5568: $as_echo "$ac_cv_sizeof_long_long" >&6; }
5569:
5570:
5571:
5572: cat >>confdefs.h <<_ACEOF
5573: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5574: _ACEOF
5575:
5576:
5577: # The cast to long int works around a bug in the HP C Compiler
5578: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5579: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5580: # This bug is HP SR number 8606223364.
5581: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5582: $as_echo_n "checking size of short... " >&6; }
5583: if ${ac_cv_sizeof_short+:} false; then :
5584: $as_echo_n "(cached) " >&6
5585: else
5586: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5587:
5588: else
5589: if test "$ac_cv_type_short" = yes; then
5590: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5591: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5592: as_fn_error 77 "cannot compute sizeof (short)
5593: See \`config.log' for more details" "$LINENO" 5; }
5594: else
5595: ac_cv_sizeof_short=0
5596: fi
5597: fi
5598:
5599: fi
5600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5601: $as_echo "$ac_cv_sizeof_short" >&6; }
5602:
5603:
5604:
5605: cat >>confdefs.h <<_ACEOF
5606: #define SIZEOF_SHORT $ac_cv_sizeof_short
5607: _ACEOF
5608:
5609:
5610: # The cast to long int works around a bug in the HP C Compiler
5611: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5612: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5613: # This bug is HP SR number 8606223364.
5614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
5615: $as_echo_n "checking size of int16_t... " >&6; }
5616: if ${ac_cv_sizeof_int16_t+:} false; then :
5617: $as_echo_n "(cached) " >&6
5618: else
5619: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
5620:
5621: else
5622: if test "$ac_cv_type_int16_t" = yes; then
5623: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5624: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5625: as_fn_error 77 "cannot compute sizeof (int16_t)
5626: See \`config.log' for more details" "$LINENO" 5; }
5627: else
5628: ac_cv_sizeof_int16_t=0
5629: fi
5630: fi
5631:
5632: fi
5633: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
5634: $as_echo "$ac_cv_sizeof_int16_t" >&6; }
5635:
5636:
5637:
5638: cat >>confdefs.h <<_ACEOF
5639: #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
5640: _ACEOF
5641:
5642:
5643: # The cast to long int works around a bug in the HP C Compiler
5644: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646: # This bug is HP SR number 8606223364.
5647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
5648: $as_echo_n "checking size of uint16_t... " >&6; }
5649: if ${ac_cv_sizeof_uint16_t+:} false; then :
5650: $as_echo_n "(cached) " >&6
5651: else
5652: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
5653:
5654: else
5655: if test "$ac_cv_type_uint16_t" = yes; then
5656: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658: as_fn_error 77 "cannot compute sizeof (uint16_t)
5659: See \`config.log' for more details" "$LINENO" 5; }
5660: else
5661: ac_cv_sizeof_uint16_t=0
5662: fi
5663: fi
5664:
5665: fi
5666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
5667: $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
5668:
5669:
5670:
5671: cat >>confdefs.h <<_ACEOF
5672: #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
5673: _ACEOF
5674:
5675:
5676: # The cast to long int works around a bug in the HP C Compiler
5677: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5678: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5679: # This bug is HP SR number 8606223364.
5680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
5681: $as_echo_n "checking size of int32_t... " >&6; }
5682: if ${ac_cv_sizeof_int32_t+:} false; then :
5683: $as_echo_n "(cached) " >&6
5684: else
5685: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
5686:
5687: else
5688: if test "$ac_cv_type_int32_t" = yes; then
5689: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691: as_fn_error 77 "cannot compute sizeof (int32_t)
5692: See \`config.log' for more details" "$LINENO" 5; }
5693: else
5694: ac_cv_sizeof_int32_t=0
5695: fi
5696: fi
5697:
5698: fi
5699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
5700: $as_echo "$ac_cv_sizeof_int32_t" >&6; }
5701:
5702:
5703:
5704: cat >>confdefs.h <<_ACEOF
5705: #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
5706: _ACEOF
5707:
5708:
5709: # The cast to long int works around a bug in the HP C Compiler
5710: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712: # This bug is HP SR number 8606223364.
5713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
5714: $as_echo_n "checking size of uint32_t... " >&6; }
5715: if ${ac_cv_sizeof_uint32_t+:} false; then :
5716: $as_echo_n "(cached) " >&6
5717: else
5718: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
5719:
5720: else
5721: if test "$ac_cv_type_uint32_t" = yes; then
5722: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724: as_fn_error 77 "cannot compute sizeof (uint32_t)
5725: See \`config.log' for more details" "$LINENO" 5; }
5726: else
5727: ac_cv_sizeof_uint32_t=0
5728: fi
5729: fi
5730:
5731: fi
5732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
5733: $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
5734:
5735:
5736:
5737: cat >>confdefs.h <<_ACEOF
5738: #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
5739: _ACEOF
5740:
5741:
5742: # The cast to long int works around a bug in the HP C Compiler
5743: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5744: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5745: # This bug is HP SR number 8606223364.
5746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
5747: $as_echo_n "checking size of int64_t... " >&6; }
5748: if ${ac_cv_sizeof_int64_t+:} false; then :
5749: $as_echo_n "(cached) " >&6
5750: else
5751: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
5752:
5753: else
5754: if test "$ac_cv_type_int64_t" = yes; then
5755: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5756: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5757: as_fn_error 77 "cannot compute sizeof (int64_t)
5758: See \`config.log' for more details" "$LINENO" 5; }
5759: else
5760: ac_cv_sizeof_int64_t=0
5761: fi
5762: fi
5763:
5764: fi
5765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
5766: $as_echo "$ac_cv_sizeof_int64_t" >&6; }
5767:
5768:
5769:
5770: cat >>confdefs.h <<_ACEOF
5771: #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
5772: _ACEOF
5773:
5774:
5775: # The cast to long int works around a bug in the HP C Compiler
5776: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5777: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5778: # This bug is HP SR number 8606223364.
5779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
5780: $as_echo_n "checking size of off_t... " >&6; }
5781: if ${ac_cv_sizeof_off_t+:} false; then :
5782: $as_echo_n "(cached) " >&6
5783: else
5784: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
5785:
5786: else
5787: if test "$ac_cv_type_off_t" = yes; then
5788: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5789: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5790: as_fn_error 77 "cannot compute sizeof (off_t)
5791: See \`config.log' for more details" "$LINENO" 5; }
5792: else
5793: ac_cv_sizeof_off_t=0
5794: fi
5795: fi
5796:
5797: fi
5798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
5799: $as_echo "$ac_cv_sizeof_off_t" >&6; }
5800:
5801:
5802:
5803: cat >>confdefs.h <<_ACEOF
5804: #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5805: _ACEOF
5806:
5807:
5808: # The cast to long int works around a bug in the HP C Compiler
5809: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5810: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5811: # This bug is HP SR number 8606223364.
5812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off64_t" >&5
5813: $as_echo_n "checking size of off64_t... " >&6; }
5814: if ${ac_cv_sizeof_off64_t+:} false; then :
5815: $as_echo_n "(cached) " >&6
5816: else
5817: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off64_t))" "ac_cv_sizeof_off64_t" "$ac_includes_default"; then :
5818:
5819: else
5820: if test "$ac_cv_type_off64_t" = yes; then
5821: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5822: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5823: as_fn_error 77 "cannot compute sizeof (off64_t)
5824: See \`config.log' for more details" "$LINENO" 5; }
5825: else
5826: ac_cv_sizeof_off64_t=0
5827: fi
5828: fi
5829:
5830: fi
5831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off64_t" >&5
5832: $as_echo "$ac_cv_sizeof_off64_t" >&6; }
5833:
5834:
5835:
5836: cat >>confdefs.h <<_ACEOF
5837: #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
5838: _ACEOF
5839:
5840:
5841: # The cast to long int works around a bug in the HP C Compiler
5842: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5843: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5844: # This bug is HP SR number 8606223364.
5845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
5846: $as_echo_n "checking size of time_t... " >&6; }
5847: if ${ac_cv_sizeof_time_t+:} false; then :
5848: $as_echo_n "(cached) " >&6
5849: else
5850: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
5851:
5852: else
5853: if test "$ac_cv_type_time_t" = yes; then
5854: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856: as_fn_error 77 "cannot compute sizeof (time_t)
5857: See \`config.log' for more details" "$LINENO" 5; }
5858: else
5859: ac_cv_sizeof_time_t=0
5860: fi
5861: fi
5862:
5863: fi
5864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
5865: $as_echo "$ac_cv_sizeof_time_t" >&6; }
5866:
5867:
5868:
5869: cat >>confdefs.h <<_ACEOF
5870: #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
5871: _ACEOF
5872:
5873:
5874:
5875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5876: $as_echo_n "checking for inline... " >&6; }
5877: if ${ac_cv_c_inline+:} false; then :
5878: $as_echo_n "(cached) " >&6
5879: else
5880: ac_cv_c_inline=no
5881: for ac_kw in inline __inline__ __inline; do
5882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883: /* end confdefs.h. */
5884: #ifndef __cplusplus
5885: typedef int foo_t;
5886: static $ac_kw foo_t static_foo () {return 0; }
5887: $ac_kw foo_t foo () {return 0; }
5888: #endif
5889:
5890: _ACEOF
5891: if ac_fn_c_try_compile "$LINENO"; then :
5892: ac_cv_c_inline=$ac_kw
5893: fi
5894: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895: test "$ac_cv_c_inline" != no && break
5896: done
5897:
5898: fi
5899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5900: $as_echo "$ac_cv_c_inline" >&6; }
5901:
5902: case $ac_cv_c_inline in
5903: inline | yes) ;;
5904: *)
5905: case $ac_cv_c_inline in
5906: no) ac_val=;;
5907: *) ac_val=$ac_cv_c_inline;;
5908: esac
5909: cat >>confdefs.h <<_ACEOF
5910: #ifndef __cplusplus
5911: #define inline $ac_val
5912: #endif
5913: _ACEOF
5914: ;;
5915: esac
5916:
5917:
5918:
5919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
5920: $as_echo_n "checking for long double with more range or precision than double... " >&6; }
5921: if ${ac_cv_type_long_double_wider+:} false; then :
5922: $as_echo_n "(cached) " >&6
5923: else
5924: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925: /* end confdefs.h. */
5926: #include <float.h>
5927: long double const a[] =
5928: {
5929: 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
5930: LDBL_MIN, LDBL_MAX, LDBL_EPSILON
5931: };
5932: long double
5933: f (long double x)
5934: {
5935: return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
5936: + (x ? f (x) : 'c'));
5937: }
5938:
5939: int
5940: main ()
5941: {
5942: static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
5943: + (DBL_MANT_DIG < LDBL_MANT_DIG)
5944: - (LDBL_MAX_EXP < DBL_MAX_EXP)
5945: - (LDBL_MANT_DIG < DBL_MANT_DIG)))
5946: && (int) LDBL_EPSILON == 0
5947: )];
5948: test_array [0] = 0
5949:
5950: ;
5951: return 0;
5952: }
5953: _ACEOF
5954: if ac_fn_c_try_compile "$LINENO"; then :
5955: ac_cv_type_long_double_wider=yes
5956: else
5957: ac_cv_type_long_double_wider=no
5958: fi
5959: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960: fi
5961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
5962: $as_echo "$ac_cv_type_long_double_wider" >&6; }
5963: if test $ac_cv_type_long_double_wider = yes; then
5964:
5965: $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
5966:
5967: fi
5968:
5969: ac_cv_c_long_double=$ac_cv_type_long_double_wider
5970: if test $ac_cv_c_long_double = yes; then
5971:
5972: $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
5973:
5974: fi
5975:
5976:
5977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5978: $as_echo_n "checking return type of signal handlers... " >&6; }
5979: if ${ac_cv_type_signal+:} false; then :
5980: $as_echo_n "(cached) " >&6
5981: else
5982: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983: /* end confdefs.h. */
5984: #include <sys/types.h>
5985: #include <signal.h>
5986:
5987: int
5988: main ()
5989: {
5990: return *(signal (0, 0)) (0) == 1;
5991: ;
5992: return 0;
5993: }
5994: _ACEOF
5995: if ac_fn_c_try_compile "$LINENO"; then :
5996: ac_cv_type_signal=int
5997: else
5998: ac_cv_type_signal=void
5999: fi
6000: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001: fi
6002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6003: $as_echo "$ac_cv_type_signal" >&6; }
6004:
6005: cat >>confdefs.h <<_ACEOF
6006: #define RETSIGTYPE $ac_cv_type_signal
6007: _ACEOF
6008:
6009:
6010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6011: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6012: if ${ac_cv_type_uid_t+:} false; then :
6013: $as_echo_n "(cached) " >&6
6014: else
6015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016: /* end confdefs.h. */
6017: #include <sys/types.h>
6018:
6019: _ACEOF
6020: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6021: $EGREP "uid_t" >/dev/null 2>&1; then :
6022: ac_cv_type_uid_t=yes
6023: else
6024: ac_cv_type_uid_t=no
6025: fi
6026: rm -f conftest*
6027:
6028: fi
6029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6030: $as_echo "$ac_cv_type_uid_t" >&6; }
6031: if test $ac_cv_type_uid_t = no; then
6032:
6033: $as_echo "#define uid_t int" >>confdefs.h
6034:
6035:
6036: $as_echo "#define gid_t int" >>confdefs.h
6037:
6038: fi
6039:
6040: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6041: if test "x$ac_cv_type_mode_t" = xyes; then :
6042:
6043: cat >>confdefs.h <<_ACEOF
6044: #define HAVE_MODE_T 1
6045: _ACEOF
6046:
6047:
6048: fi
6049: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6050: if test "x$ac_cv_type_off_t" = xyes; then :
6051:
6052: cat >>confdefs.h <<_ACEOF
6053: #define HAVE_OFF_T 1
6054: _ACEOF
6055:
6056:
6057: fi
6058: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6059: if test "x$ac_cv_type_size_t" = xyes; then :
6060:
6061: cat >>confdefs.h <<_ACEOF
6062: #define HAVE_SIZE_T 1
6063: _ACEOF
6064:
6065:
6066: fi
6067: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6068: if test "x$ac_cv_type_pid_t" = xyes; then :
6069:
6070: cat >>confdefs.h <<_ACEOF
6071: #define HAVE_PID_T 1
6072: _ACEOF
6073:
6074:
6075: fi
6076: ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
6077: if test "x$ac_cv_type_id_t" = xyes; then :
6078:
6079: cat >>confdefs.h <<_ACEOF
6080: #define HAVE_ID_T 1
6081: _ACEOF
6082:
6083:
6084: fi
6085:
6086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
6087: $as_echo_n "checking type of array argument to getgroups... " >&6; }
6088: if ${ac_cv_type_getgroups+:} false; then :
6089: $as_echo_n "(cached) " >&6
6090: else
6091: if test "$cross_compiling" = yes; then :
6092: ac_cv_type_getgroups=cross
6093: else
6094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095: /* end confdefs.h. */
6096: /* Thanks to Mike Rendell for this test. */
6097: $ac_includes_default
6098: #define NGID 256
6099: #undef MAX
6100: #define MAX(x, y) ((x) > (y) ? (x) : (y))
6101:
6102: int
6103: main ()
6104: {
6105: gid_t gidset[NGID];
6106: int i, n;
6107: union { gid_t gval; long int lval; } val;
6108:
6109: val.lval = -1;
6110: for (i = 0; i < NGID; i++)
6111: gidset[i] = val.gval;
6112: n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6113: gidset);
6114: /* Exit non-zero if getgroups seems to require an array of ints. This
6115: happens when gid_t is short int but getgroups modifies an array
6116: of ints. */
6117: return n > 0 && gidset[n] != val.gval;
6118: }
6119: _ACEOF
6120: if ac_fn_c_try_run "$LINENO"; then :
6121: ac_cv_type_getgroups=gid_t
6122: else
6123: ac_cv_type_getgroups=int
6124: fi
6125: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6126: conftest.$ac_objext conftest.beam conftest.$ac_ext
6127: fi
6128:
6129: if test $ac_cv_type_getgroups = cross; then
6130: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131: /* end confdefs.h. */
6132: #include <unistd.h>
6133:
6134: _ACEOF
6135: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136: $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6137: ac_cv_type_getgroups=gid_t
6138: else
6139: ac_cv_type_getgroups=int
6140: fi
6141: rm -f conftest*
6142:
6143: fi
6144: fi
6145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6146: $as_echo "$ac_cv_type_getgroups" >&6; }
6147:
6148: cat >>confdefs.h <<_ACEOF
6149: #define GETGROUPS_T $ac_cv_type_getgroups
6150: _ACEOF
6151:
6152:
6153: ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6154: if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6155:
6156: cat >>confdefs.h <<_ACEOF
6157: #define HAVE_STRUCT_STAT_ST_RDEV 1
6158: _ACEOF
6159:
6160:
6161: fi
6162:
6163:
6164:
6165: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6166: #include <sys/socket.h>
6167: "
6168: if test "x$ac_cv_type_socklen_t" = xyes; then :
6169:
6170: else
6171:
6172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
6173: $as_echo_n "checking for socklen_t equivalent... " >&6; }
6174: if ${rsync_cv_socklen_t_equiv+:} false; then :
6175: $as_echo_n "(cached) " >&6
6176: else
6177:
6178: # Systems have either "struct sockaddr *" or
6179: # "void *" as the second argument to getpeername
6180: rsync_cv_socklen_t_equiv=
6181: for arg2 in "struct sockaddr" void; do
6182: for t in int size_t unsigned long "unsigned long"; do
6183: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184: /* end confdefs.h. */
6185:
6186: #include <sys/types.h>
6187: #include <sys/socket.h>
6188:
6189: int getpeername (int, $arg2 *, $t *);
6190:
6191: int
6192: main ()
6193: {
6194:
6195: $t len;
6196: getpeername(0,0,&len);
6197:
6198: ;
6199: return 0;
6200: }
6201: _ACEOF
6202: if ac_fn_c_try_compile "$LINENO"; then :
6203:
6204: rsync_cv_socklen_t_equiv="$t"
6205: break
6206:
6207: fi
6208: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209: done
6210: done
6211:
6212: if test "x$rsync_cv_socklen_t_equiv" = x; then
6213: as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
6214: fi
6215:
6216: fi
6217:
6218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
6219: $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
6220:
6221: cat >>confdefs.h <<_ACEOF
6222: #define socklen_t $rsync_cv_socklen_t_equiv
6223: _ACEOF
6224:
6225: fi
6226:
6227:
6228:
6229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno in errno.h" >&5
6230: $as_echo_n "checking for errno in errno.h... " >&6; }
6231: if ${rsync_cv_errno+:} false; then :
6232: $as_echo_n "(cached) " >&6
6233: else
6234:
6235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236: /* end confdefs.h. */
6237: #include <errno.h>
6238: int
6239: main ()
6240: {
6241: int i = errno
6242: ;
6243: return 0;
6244: }
6245: _ACEOF
6246: if ac_fn_c_try_compile "$LINENO"; then :
6247: rsync_cv_errno=yes
6248: else
6249: rsync_cv_have_errno_decl=no
6250: fi
6251: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252: fi
6253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_errno" >&5
6254: $as_echo "$rsync_cv_errno" >&6; }
6255: if test x"$rsync_cv_errno" = x"yes"; then
6256:
6257: $as_echo "#define HAVE_ERRNO_DECL 1" >>confdefs.h
6258:
6259: fi
6260:
6261: # The following test taken from the cvs sources
6262: # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
6263: # These need checks to be before checks for any other functions that
6264: # might be in the same libraries.
6265: # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
6266: # libsocket.so which has a bad implementation of gethostbyname (it
6267: # only looks in /etc/hosts), so we only look for -lsocket if we need
6268: # it.
6269: for ac_func in connect
6270: do :
6271: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6272: if test "x$ac_cv_func_connect" = xyes; then :
6273: cat >>confdefs.h <<_ACEOF
6274: #define HAVE_CONNECT 1
6275: _ACEOF
6276:
6277: fi
6278: done
6279:
6280: if test x"$ac_cv_func_connect" = x"no"; then
6281: case "$LIBS" in
6282: *-lnsl*) ;;
6283: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl_s" >&5
6284: $as_echo_n "checking for printf in -lnsl_s... " >&6; }
6285: if ${ac_cv_lib_nsl_s_printf+:} false; then :
6286: $as_echo_n "(cached) " >&6
6287: else
6288: ac_check_lib_save_LIBS=$LIBS
6289: LIBS="-lnsl_s $LIBS"
6290: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291: /* end confdefs.h. */
6292:
6293: /* Override any GCC internal prototype to avoid an error.
6294: Use char because int might match the return type of a GCC
6295: builtin and then its argument prototype would still apply. */
6296: #ifdef __cplusplus
6297: extern "C"
6298: #endif
6299: char printf ();
6300: int
6301: main ()
6302: {
6303: return printf ();
6304: ;
6305: return 0;
6306: }
6307: _ACEOF
6308: if ac_fn_c_try_link "$LINENO"; then :
6309: ac_cv_lib_nsl_s_printf=yes
6310: else
6311: ac_cv_lib_nsl_s_printf=no
6312: fi
6313: rm -f core conftest.err conftest.$ac_objext \
6314: conftest$ac_exeext conftest.$ac_ext
6315: LIBS=$ac_check_lib_save_LIBS
6316: fi
6317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_printf" >&5
6318: $as_echo "$ac_cv_lib_nsl_s_printf" >&6; }
6319: if test "x$ac_cv_lib_nsl_s_printf" = xyes; then :
6320: cat >>confdefs.h <<_ACEOF
6321: #define HAVE_LIBNSL_S 1
6322: _ACEOF
6323:
6324: LIBS="-lnsl_s $LIBS"
6325:
6326: fi
6327: ;;
6328: esac
6329: case "$LIBS" in
6330: *-lnsl*) ;;
6331: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lnsl" >&5
6332: $as_echo_n "checking for printf in -lnsl... " >&6; }
6333: if ${ac_cv_lib_nsl_printf+:} false; then :
6334: $as_echo_n "(cached) " >&6
6335: else
6336: ac_check_lib_save_LIBS=$LIBS
6337: LIBS="-lnsl $LIBS"
6338: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339: /* end confdefs.h. */
6340:
6341: /* Override any GCC internal prototype to avoid an error.
6342: Use char because int might match the return type of a GCC
6343: builtin and then its argument prototype would still apply. */
6344: #ifdef __cplusplus
6345: extern "C"
6346: #endif
6347: char printf ();
6348: int
6349: main ()
6350: {
6351: return printf ();
6352: ;
6353: return 0;
6354: }
6355: _ACEOF
6356: if ac_fn_c_try_link "$LINENO"; then :
6357: ac_cv_lib_nsl_printf=yes
6358: else
6359: ac_cv_lib_nsl_printf=no
6360: fi
6361: rm -f core conftest.err conftest.$ac_objext \
6362: conftest$ac_exeext conftest.$ac_ext
6363: LIBS=$ac_check_lib_save_LIBS
6364: fi
6365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_printf" >&5
6366: $as_echo "$ac_cv_lib_nsl_printf" >&6; }
6367: if test "x$ac_cv_lib_nsl_printf" = xyes; then :
6368: cat >>confdefs.h <<_ACEOF
6369: #define HAVE_LIBNSL 1
6370: _ACEOF
6371:
6372: LIBS="-lnsl $LIBS"
6373:
6374: fi
6375: ;;
6376: esac
6377: case "$LIBS" in
6378: *-lsocket*) ;;
6379: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6380: $as_echo_n "checking for connect in -lsocket... " >&6; }
6381: if ${ac_cv_lib_socket_connect+:} false; then :
6382: $as_echo_n "(cached) " >&6
6383: else
6384: ac_check_lib_save_LIBS=$LIBS
6385: LIBS="-lsocket $LIBS"
6386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387: /* end confdefs.h. */
6388:
6389: /* Override any GCC internal prototype to avoid an error.
6390: Use char because int might match the return type of a GCC
6391: builtin and then its argument prototype would still apply. */
6392: #ifdef __cplusplus
6393: extern "C"
6394: #endif
6395: char connect ();
6396: int
6397: main ()
6398: {
6399: return connect ();
6400: ;
6401: return 0;
6402: }
6403: _ACEOF
6404: if ac_fn_c_try_link "$LINENO"; then :
6405: ac_cv_lib_socket_connect=yes
6406: else
6407: ac_cv_lib_socket_connect=no
6408: fi
6409: rm -f core conftest.err conftest.$ac_objext \
6410: conftest$ac_exeext conftest.$ac_ext
6411: LIBS=$ac_check_lib_save_LIBS
6412: fi
6413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6414: $as_echo "$ac_cv_lib_socket_connect" >&6; }
6415: if test "x$ac_cv_lib_socket_connect" = xyes; then :
6416: cat >>confdefs.h <<_ACEOF
6417: #define HAVE_LIBSOCKET 1
6418: _ACEOF
6419:
6420: LIBS="-lsocket $LIBS"
6421:
6422: fi
6423: ;;
6424: esac
6425: case "$LIBS" in
6426: *-linet*) ;;
6427: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -linet" >&5
6428: $as_echo_n "checking for connect in -linet... " >&6; }
6429: if ${ac_cv_lib_inet_connect+:} false; then :
6430: $as_echo_n "(cached) " >&6
6431: else
6432: ac_check_lib_save_LIBS=$LIBS
6433: LIBS="-linet $LIBS"
6434: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435: /* end confdefs.h. */
6436:
6437: /* Override any GCC internal prototype to avoid an error.
6438: Use char because int might match the return type of a GCC
6439: builtin and then its argument prototype would still apply. */
6440: #ifdef __cplusplus
6441: extern "C"
6442: #endif
6443: char connect ();
6444: int
6445: main ()
6446: {
6447: return connect ();
6448: ;
6449: return 0;
6450: }
6451: _ACEOF
6452: if ac_fn_c_try_link "$LINENO"; then :
6453: ac_cv_lib_inet_connect=yes
6454: else
6455: ac_cv_lib_inet_connect=no
6456: fi
6457: rm -f core conftest.err conftest.$ac_objext \
6458: conftest$ac_exeext conftest.$ac_ext
6459: LIBS=$ac_check_lib_save_LIBS
6460: fi
6461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_connect" >&5
6462: $as_echo "$ac_cv_lib_inet_connect" >&6; }
6463: if test "x$ac_cv_lib_inet_connect" = xyes; then :
6464: cat >>confdefs.h <<_ACEOF
6465: #define HAVE_LIBINET 1
6466: _ACEOF
6467:
6468: LIBS="-linet $LIBS"
6469:
6470: fi
6471: ;;
6472: esac
6473: if test x"$ac_cv_lib_socket_connect" = x"yes" ||
6474: test x"$ac_cv_lib_inet_connect" = x"yes"; then
6475: # ac_cv_func_connect=yes
6476: # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
6477:
6478: $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
6479:
6480: fi
6481: fi
6482:
6483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
6484: $as_echo_n "checking for library containing inet_ntop... " >&6; }
6485: if ${ac_cv_search_inet_ntop+:} false; then :
6486: $as_echo_n "(cached) " >&6
6487: else
6488: ac_func_search_save_LIBS=$LIBS
6489: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490: /* end confdefs.h. */
6491:
6492: /* Override any GCC internal prototype to avoid an error.
6493: Use char because int might match the return type of a GCC
6494: builtin and then its argument prototype would still apply. */
6495: #ifdef __cplusplus
6496: extern "C"
6497: #endif
6498: char inet_ntop ();
6499: int
6500: main ()
6501: {
6502: return inet_ntop ();
6503: ;
6504: return 0;
6505: }
6506: _ACEOF
6507: for ac_lib in '' resolv; do
6508: if test -z "$ac_lib"; then
6509: ac_res="none required"
6510: else
6511: ac_res=-l$ac_lib
6512: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6513: fi
6514: if ac_fn_c_try_link "$LINENO"; then :
6515: ac_cv_search_inet_ntop=$ac_res
6516: fi
6517: rm -f core conftest.err conftest.$ac_objext \
6518: conftest$ac_exeext
6519: if ${ac_cv_search_inet_ntop+:} false; then :
6520: break
6521: fi
6522: done
6523: if ${ac_cv_search_inet_ntop+:} false; then :
6524:
6525: else
6526: ac_cv_search_inet_ntop=no
6527: fi
6528: rm conftest.$ac_ext
6529: LIBS=$ac_func_search_save_LIBS
6530: fi
6531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
6532: $as_echo "$ac_cv_search_inet_ntop" >&6; }
6533: ac_res=$ac_cv_search_inet_ntop
6534: if test "$ac_res" != no; then :
6535: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6536:
6537: fi
6538:
6539:
6540: # For OS X, Solaris, HP-UX, etc.: figure out if -liconv is needed. We'll
6541: # accept either iconv_open or libiconv_open, since some include files map
6542: # the former to the latter.
6543: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
6544: $as_echo_n "checking for library containing iconv_open... " >&6; }
6545: if ${ac_cv_search_iconv_open+:} false; then :
6546: $as_echo_n "(cached) " >&6
6547: else
6548: ac_func_search_save_LIBS=$LIBS
6549: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550: /* end confdefs.h. */
6551:
6552: /* Override any GCC internal prototype to avoid an error.
6553: Use char because int might match the return type of a GCC
6554: builtin and then its argument prototype would still apply. */
6555: #ifdef __cplusplus
6556: extern "C"
6557: #endif
6558: char iconv_open ();
6559: int
6560: main ()
6561: {
6562: return iconv_open ();
6563: ;
6564: return 0;
6565: }
6566: _ACEOF
6567: for ac_lib in '' iconv; do
6568: if test -z "$ac_lib"; then
6569: ac_res="none required"
6570: else
6571: ac_res=-l$ac_lib
6572: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6573: fi
6574: if ac_fn_c_try_link "$LINENO"; then :
6575: ac_cv_search_iconv_open=$ac_res
6576: fi
6577: rm -f core conftest.err conftest.$ac_objext \
6578: conftest$ac_exeext
6579: if ${ac_cv_search_iconv_open+:} false; then :
6580: break
6581: fi
6582: done
6583: if ${ac_cv_search_iconv_open+:} false; then :
6584:
6585: else
6586: ac_cv_search_iconv_open=no
6587: fi
6588: rm conftest.$ac_ext
6589: LIBS=$ac_func_search_save_LIBS
6590: fi
6591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
6592: $as_echo "$ac_cv_search_iconv_open" >&6; }
6593: ac_res=$ac_cv_search_iconv_open
6594: if test "$ac_res" != no; then :
6595: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6596:
6597: fi
6598:
6599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
6600: $as_echo_n "checking for library containing libiconv_open... " >&6; }
6601: if ${ac_cv_search_libiconv_open+:} false; then :
6602: $as_echo_n "(cached) " >&6
6603: else
6604: ac_func_search_save_LIBS=$LIBS
6605: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606: /* end confdefs.h. */
6607:
6608: /* Override any GCC internal prototype to avoid an error.
6609: Use char because int might match the return type of a GCC
6610: builtin and then its argument prototype would still apply. */
6611: #ifdef __cplusplus
6612: extern "C"
6613: #endif
6614: char libiconv_open ();
6615: int
6616: main ()
6617: {
6618: return libiconv_open ();
6619: ;
6620: return 0;
6621: }
6622: _ACEOF
6623: for ac_lib in '' iconv; do
6624: if test -z "$ac_lib"; then
6625: ac_res="none required"
6626: else
6627: ac_res=-l$ac_lib
6628: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6629: fi
6630: if ac_fn_c_try_link "$LINENO"; then :
6631: ac_cv_search_libiconv_open=$ac_res
6632: fi
6633: rm -f core conftest.err conftest.$ac_objext \
6634: conftest$ac_exeext
6635: if ${ac_cv_search_libiconv_open+:} false; then :
6636: break
6637: fi
6638: done
6639: if ${ac_cv_search_libiconv_open+:} false; then :
6640:
6641: else
6642: ac_cv_search_libiconv_open=no
6643: fi
6644: rm conftest.$ac_ext
6645: LIBS=$ac_func_search_save_LIBS
6646: fi
6647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
6648: $as_echo "$ac_cv_search_libiconv_open" >&6; }
6649: ac_res=$ac_cv_search_libiconv_open
6650: if test "$ac_res" != no; then :
6651: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6652:
6653: fi
6654:
6655:
6656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6657: $as_echo_n "checking for iconv declaration... " >&6; }
6658: if ${am_cv_proto_iconv+:} false; then :
6659: $as_echo_n "(cached) " >&6
6660: else
6661:
6662: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663: /* end confdefs.h. */
6664:
6665: #include <stdlib.h>
6666: #include <iconv.h>
6667: extern
6668: #ifdef __cplusplus
6669: "C"
6670: #endif
6671: #if defined(__STDC__) || defined(__cplusplus)
6672: size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6673: #else
6674: size_t iconv();
6675: #endif
6676:
6677: int
6678: main ()
6679: {
6680:
6681: ;
6682: return 0;
6683: }
6684: _ACEOF
6685: if ac_fn_c_try_compile "$LINENO"; then :
6686: am_cv_proto_iconv_arg1=""
6687: else
6688: am_cv_proto_iconv_arg1="const"
6689: fi
6690: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691: 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);"
6692: fi
6693:
6694: am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6695: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6696: }$am_cv_proto_iconv" >&5
6697: $as_echo "${ac_t:-
6698: }$am_cv_proto_iconv" >&6; }
6699:
6700: cat >>confdefs.h <<_ACEOF
6701: #define ICONV_CONST $am_cv_proto_iconv_arg1
6702: _ACEOF
6703:
6704:
6705:
6706: for ac_func in inet_ntop
6707: do :
6708: ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
6709: if test "x$ac_cv_func_inet_ntop" = xyes; then :
6710: cat >>confdefs.h <<_ACEOF
6711: #define HAVE_INET_NTOP 1
6712: _ACEOF
6713:
6714: else
6715: case " $LIBOBJS " in
6716: *" lib/inet_ntop.$ac_objext "* ) ;;
6717: *) LIBOBJS="$LIBOBJS lib/inet_ntop.$ac_objext"
6718: ;;
6719: esac
6720:
6721: fi
6722: done
6723:
6724: for ac_func in inet_pton
6725: do :
6726: ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
6727: if test "x$ac_cv_func_inet_pton" = xyes; then :
6728: cat >>confdefs.h <<_ACEOF
6729: #define HAVE_INET_PTON 1
6730: _ACEOF
6731:
6732: else
6733: case " $LIBOBJS " in
6734: *" lib/inet_pton.$ac_objext "* ) ;;
6735: *) LIBOBJS="$LIBOBJS lib/inet_pton.$ac_objext"
6736: ;;
6737: esac
6738:
6739: fi
6740: done
6741:
6742:
6743:
6744:
6745: cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
6746: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
6747: $as_echo_n "checking for struct addrinfo... " >&6; }
6748: if eval \${ac_cv_type_$cv+:} false; then :
6749: $as_echo_n "(cached) " >&6
6750: else
6751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752: /* end confdefs.h. */
6753:
6754: $ac_includes_default
6755: #include <netdb.h>
6756: int
6757: main ()
6758: {
6759: struct addrinfo foo;
6760: ;
6761: return 0;
6762: }
6763: _ACEOF
6764: if ac_fn_c_try_compile "$LINENO"; then :
6765: eval "ac_cv_type_$cv=yes"
6766: else
6767: eval "ac_cv_type_$cv=no"
6768: fi
6769: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770: fi
6771: ac_foo=`eval echo \\$ac_cv_type_$cv`
6772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
6773: $as_echo "$ac_foo" >&6; }
6774: if test "$ac_foo" = yes; then
6775: ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
6776: if false; then
6777: ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$ac_includes_default"
6778: if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
6779:
6780: cat >>confdefs.h <<_ACEOF
6781: #define HAVE_STRUCT_ADDRINFO 1
6782: _ACEOF
6783:
6784:
6785: fi
6786:
6787: fi
6788:
6789: cat >>confdefs.h <<_ACEOF
6790: #define $ac_tr_hdr 1
6791: _ACEOF
6792:
6793: fi
6794:
6795:
6796:
6797: cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
6798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
6799: $as_echo_n "checking for struct sockaddr_storage... " >&6; }
6800: if eval \${ac_cv_type_$cv+:} false; then :
6801: $as_echo_n "(cached) " >&6
6802: else
6803: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804: /* end confdefs.h. */
6805:
6806: $ac_includes_default
6807: #include <sys/types.h>
6808: #include <sys/socket.h>
6809: int
6810: main ()
6811: {
6812: struct sockaddr_storage foo;
6813: ;
6814: return 0;
6815: }
6816: _ACEOF
6817: if ac_fn_c_try_compile "$LINENO"; then :
6818: eval "ac_cv_type_$cv=yes"
6819: else
6820: eval "ac_cv_type_$cv=no"
6821: fi
6822: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823: fi
6824: ac_foo=`eval echo \\$ac_cv_type_$cv`
6825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
6826: $as_echo "$ac_foo" >&6; }
6827: if test "$ac_foo" = yes; then
6828: ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
6829: if false; then
6830: ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
6831: if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
6832:
6833: cat >>confdefs.h <<_ACEOF
6834: #define HAVE_STRUCT_SOCKADDR_STORAGE 1
6835: _ACEOF
6836:
6837:
6838: fi
6839:
6840: fi
6841:
6842: cat >>confdefs.h <<_ACEOF
6843: #define $ac_tr_hdr 1
6844: _ACEOF
6845:
6846: fi
6847:
6848:
6849: # Irix 6.5 has getaddrinfo but not the corresponding defines, so use
6850: # builtin getaddrinfo if one of the defines don't exist
6851: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defines needed by getaddrinfo exist" >&5
6852: $as_echo_n "checking whether defines needed by getaddrinfo exist... " >&6; }
6853: if ${rsync_cv_HAVE_GETADDR_DEFINES+:} false; then :
6854: $as_echo_n "(cached) " >&6
6855: else
6856:
6857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858: /* end confdefs.h. */
6859:
6860: #include <sys/types.h>
6861: #include <sys/socket.h>
6862: #include <netdb.h>
6863: #ifdef AI_PASSIVE
6864: yes
6865: #endif
6866: _ACEOF
6867: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868: $EGREP "yes" >/dev/null 2>&1; then :
6869: rsync_cv_HAVE_GETADDR_DEFINES=yes
6870: else
6871: rsync_cv_HAVE_GETADDR_DEFINES=no
6872: fi
6873: rm -f conftest*
6874:
6875: fi
6876: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETADDR_DEFINES" >&5
6877: $as_echo "$rsync_cv_HAVE_GETADDR_DEFINES" >&6; }
6878: if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then
6879: # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
6880: # something else so we must include <netdb.h> to get the
6881: # redefinition.
6882: for ac_func in getaddrinfo
6883: do :
6884: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
6885: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
6886: cat >>confdefs.h <<_ACEOF
6887: #define HAVE_GETADDRINFO 1
6888: _ACEOF
6889:
6890: else
6891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo by including <netdb.h>" >&5
6892: $as_echo_n "checking for getaddrinfo by including <netdb.h>... " >&6; }
6893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894: /* end confdefs.h. */
6895: #include <sys/types.h>
6896: #include <sys/socket.h>
6897: #include <netdb.h>
6898: int
6899: main ()
6900: {
6901: getaddrinfo(NULL, NULL, NULL, NULL);
6902: ;
6903: return 0;
6904: }
6905: _ACEOF
6906: if ac_fn_c_try_link "$LINENO"; then :
6907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6908: $as_echo "yes" >&6; }
6909:
6910: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
6911:
6912: else
6913: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914: $as_echo "no" >&6; }
6915: case " $LIBOBJS " in
6916: *" lib/getaddrinfo.$ac_objext "* ) ;;
6917: *) LIBOBJS="$LIBOBJS lib/getaddrinfo.$ac_objext"
6918: ;;
6919: esac
6920:
6921: fi
6922: rm -f core conftest.err conftest.$ac_objext \
6923: conftest$ac_exeext conftest.$ac_ext
6924: fi
6925: done
6926:
6927: else
6928: case " $LIBOBJS " in
6929: *" lib/getaddrinfo.$ac_objext "* ) ;;
6930: *) LIBOBJS="$LIBOBJS lib/getaddrinfo.$ac_objext"
6931: ;;
6932: esac
6933:
6934: fi
6935:
6936: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
6937: #include <sys/types.h>
6938: #include <sys/socket.h>
6939:
6940: "
6941: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
6942:
6943: $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h
6944:
6945: fi
6946:
6947:
6948: ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
6949: #include <sys/types.h>
6950: #include <sys/socket.h>
6951: #include <netinet/in.h>
6952:
6953: "
6954: if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
6955:
6956: $as_echo "#define HAVE_SOCKADDR_IN_LEN 1" >>confdefs.h
6957:
6958: fi
6959:
6960:
6961: ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
6962: #include <sys/types.h>
6963: #include <sys/socket.h>
6964: #include <netinet/in.h>
6965:
6966: "
6967: if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
6968:
6969: $as_echo "#define HAVE_SOCKADDR_UN_LEN 1" >>confdefs.h
6970:
6971: fi
6972:
6973:
6974: ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
6975: #include <sys/types.h>
6976: #include <sys/socket.h>
6977: #include <netinet/in.h>
6978:
6979: "
6980: if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
6981:
6982: $as_echo "#define HAVE_SOCKADDR_IN6_SCOPE_ID 1" >>confdefs.h
6983:
6984: fi
6985:
6986:
6987:
6988:
6989: cv=`echo "struct stat64" | sed 'y%./+- %__p__%'`
6990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
6991: $as_echo_n "checking for struct stat64... " >&6; }
6992: if eval \${ac_cv_type_$cv+:} false; then :
6993: $as_echo_n "(cached) " >&6
6994: else
6995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996: /* end confdefs.h. */
6997:
6998: $ac_includes_default
6999: #include <stdio.h>
7000: #if HAVE_SYS_TYPES_H
7001: # include <sys/types.h>
7002: #endif
7003: #if HAVE_SYS_STAT_H
7004: # include <sys/stat.h>
7005: #endif
7006: #if STDC_HEADERS
7007: # include <stdlib.h>
7008: # include <stddef.h>
7009: #else
7010: # if HAVE_STDLIB_H
7011: # include <stdlib.h>
7012: # endif
7013: #endif
7014:
7015: int
7016: main ()
7017: {
7018: struct stat64 foo;
7019: ;
7020: return 0;
7021: }
7022: _ACEOF
7023: if ac_fn_c_try_compile "$LINENO"; then :
7024: eval "ac_cv_type_$cv=yes"
7025: else
7026: eval "ac_cv_type_$cv=no"
7027: fi
7028: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029: fi
7030: ac_foo=`eval echo \\$ac_cv_type_$cv`
7031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_foo" >&5
7032: $as_echo "$ac_foo" >&6; }
7033: if test "$ac_foo" = yes; then
7034: ac_tr_hdr=HAVE_`echo struct stat64 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
7035: if false; then
7036: ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "$ac_includes_default"
7037: if test "x$ac_cv_type_struct_stat64" = xyes; then :
7038:
7039: cat >>confdefs.h <<_ACEOF
7040: #define HAVE_STRUCT_STAT64 1
7041: _ACEOF
7042:
7043:
7044: fi
7045:
7046: fi
7047:
7048: cat >>confdefs.h <<_ACEOF
7049: #define $ac_tr_hdr 1
7050: _ACEOF
7051:
7052: fi
7053:
7054:
7055: # if we can't find strcasecmp, look in -lresolv (for Unixware at least)
7056: #
7057: for ac_func in strcasecmp
7058: do :
7059: ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
7060: if test "x$ac_cv_func_strcasecmp" = xyes; then :
7061: cat >>confdefs.h <<_ACEOF
7062: #define HAVE_STRCASECMP 1
7063: _ACEOF
7064:
7065: fi
7066: done
7067:
7068: if test x"$ac_cv_func_strcasecmp" = x"no"; then
7069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
7070: $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
7071: if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
7072: $as_echo_n "(cached) " >&6
7073: else
7074: ac_check_lib_save_LIBS=$LIBS
7075: LIBS="-lresolv $LIBS"
7076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077: /* end confdefs.h. */
7078:
7079: /* Override any GCC internal prototype to avoid an error.
7080: Use char because int might match the return type of a GCC
7081: builtin and then its argument prototype would still apply. */
7082: #ifdef __cplusplus
7083: extern "C"
7084: #endif
7085: char strcasecmp ();
7086: int
7087: main ()
7088: {
7089: return strcasecmp ();
7090: ;
7091: return 0;
7092: }
7093: _ACEOF
7094: if ac_fn_c_try_link "$LINENO"; then :
7095: ac_cv_lib_resolv_strcasecmp=yes
7096: else
7097: ac_cv_lib_resolv_strcasecmp=no
7098: fi
7099: rm -f core conftest.err conftest.$ac_objext \
7100: conftest$ac_exeext conftest.$ac_ext
7101: LIBS=$ac_check_lib_save_LIBS
7102: fi
7103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
7104: $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
7105: if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
7106: cat >>confdefs.h <<_ACEOF
7107: #define HAVE_LIBRESOLV 1
7108: _ACEOF
7109:
7110: LIBS="-lresolv $LIBS"
7111:
7112: fi
7113:
7114: fi
7115:
7116: for ac_func in aclsort
7117: do :
7118: ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
7119: if test "x$ac_cv_func_aclsort" = xyes; then :
7120: cat >>confdefs.h <<_ACEOF
7121: #define HAVE_ACLSORT 1
7122: _ACEOF
7123:
7124: fi
7125: done
7126:
7127: if test x"$ac_cv_func_aclsort" = x"no"; then
7128: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aclsort in -lsec" >&5
7129: $as_echo_n "checking for aclsort in -lsec... " >&6; }
7130: if ${ac_cv_lib_sec_aclsort+:} false; then :
7131: $as_echo_n "(cached) " >&6
7132: else
7133: ac_check_lib_save_LIBS=$LIBS
7134: LIBS="-lsec $LIBS"
7135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136: /* end confdefs.h. */
7137:
7138: /* Override any GCC internal prototype to avoid an error.
7139: Use char because int might match the return type of a GCC
7140: builtin and then its argument prototype would still apply. */
7141: #ifdef __cplusplus
7142: extern "C"
7143: #endif
7144: char aclsort ();
7145: int
7146: main ()
7147: {
7148: return aclsort ();
7149: ;
7150: return 0;
7151: }
7152: _ACEOF
7153: if ac_fn_c_try_link "$LINENO"; then :
7154: ac_cv_lib_sec_aclsort=yes
7155: else
7156: ac_cv_lib_sec_aclsort=no
7157: fi
7158: rm -f core conftest.err conftest.$ac_objext \
7159: conftest$ac_exeext conftest.$ac_ext
7160: LIBS=$ac_check_lib_save_LIBS
7161: fi
7162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_aclsort" >&5
7163: $as_echo "$ac_cv_lib_sec_aclsort" >&6; }
7164: if test "x$ac_cv_lib_sec_aclsort" = xyes; then :
7165: cat >>confdefs.h <<_ACEOF
7166: #define HAVE_LIBSEC 1
7167: _ACEOF
7168:
7169: LIBS="-lsec $LIBS"
7170:
7171: fi
7172:
7173: fi
7174:
7175:
7176:
7177:
7178:
7179: for ac_header in $ac_header_list
7180: do :
7181: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7182: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7183: "
7184: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7185: cat >>confdefs.h <<_ACEOF
7186: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7187: _ACEOF
7188:
7189: fi
7190:
7191: done
7192:
7193:
7194:
7195:
7196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
7197: $as_echo_n "checking whether utime accepts a null argument... " >&6; }
7198: if ${ac_cv_func_utime_null+:} false; then :
7199: $as_echo_n "(cached) " >&6
7200: else
7201: rm -f conftest.data; >conftest.data
7202: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
7203: if test "$cross_compiling" = yes; then :
7204: ac_cv_func_utime_null='guessing yes'
7205: else
7206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207: /* end confdefs.h. */
7208: $ac_includes_default
7209: #ifdef HAVE_UTIME_H
7210: # include <utime.h>
7211: #endif
7212: int
7213: main ()
7214: {
7215: struct stat s, t;
7216: return ! (stat ("conftest.data", &s) == 0
7217: && utime ("conftest.data", 0) == 0
7218: && stat ("conftest.data", &t) == 0
7219: && t.st_mtime >= s.st_mtime
7220: && t.st_mtime - s.st_mtime < 120);
7221: ;
7222: return 0;
7223: }
7224: _ACEOF
7225: if ac_fn_c_try_run "$LINENO"; then :
7226: ac_cv_func_utime_null=yes
7227: else
7228: ac_cv_func_utime_null=no
7229: fi
7230: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7231: conftest.$ac_objext conftest.beam conftest.$ac_ext
7232: fi
7233:
7234: fi
7235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
7236: $as_echo "$ac_cv_func_utime_null" >&6; }
7237: if test "x$ac_cv_func_utime_null" != xno; then
7238: ac_cv_func_utime_null=yes
7239:
7240: $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
7241:
7242: fi
7243: rm -f conftest.data
7244:
7245: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7246: if test "x$ac_cv_type_size_t" = xyes; then :
7247:
7248: else
7249:
7250: cat >>confdefs.h <<_ACEOF
7251: #define size_t unsigned int
7252: _ACEOF
7253:
7254: fi
7255:
7256: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7257: # for constant arguments. Useless!
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7259: $as_echo_n "checking for working alloca.h... " >&6; }
7260: if ${ac_cv_working_alloca_h+:} false; then :
7261: $as_echo_n "(cached) " >&6
7262: else
7263: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264: /* end confdefs.h. */
7265: #include <alloca.h>
7266: int
7267: main ()
7268: {
7269: char *p = (char *) alloca (2 * sizeof (int));
7270: if (p) return 0;
7271: ;
7272: return 0;
7273: }
7274: _ACEOF
7275: if ac_fn_c_try_link "$LINENO"; then :
7276: ac_cv_working_alloca_h=yes
7277: else
7278: ac_cv_working_alloca_h=no
7279: fi
7280: rm -f core conftest.err conftest.$ac_objext \
7281: conftest$ac_exeext conftest.$ac_ext
7282: fi
7283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7284: $as_echo "$ac_cv_working_alloca_h" >&6; }
7285: if test $ac_cv_working_alloca_h = yes; then
7286:
7287: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7288:
7289: fi
7290:
7291: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7292: $as_echo_n "checking for alloca... " >&6; }
7293: if ${ac_cv_func_alloca_works+:} false; then :
7294: $as_echo_n "(cached) " >&6
7295: else
7296: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297: /* end confdefs.h. */
7298: #ifdef __GNUC__
7299: # define alloca __builtin_alloca
7300: #else
7301: # ifdef _MSC_VER
7302: # include <malloc.h>
7303: # define alloca _alloca
7304: # else
7305: # ifdef HAVE_ALLOCA_H
7306: # include <alloca.h>
7307: # else
7308: # ifdef _AIX
7309: #pragma alloca
7310: # else
7311: # ifndef alloca /* predefined by HP cc +Olibcalls */
7312: void *alloca (size_t);
7313: # endif
7314: # endif
7315: # endif
7316: # endif
7317: #endif
7318:
7319: int
7320: main ()
7321: {
7322: char *p = (char *) alloca (1);
7323: if (p) return 0;
7324: ;
7325: return 0;
7326: }
7327: _ACEOF
7328: if ac_fn_c_try_link "$LINENO"; then :
7329: ac_cv_func_alloca_works=yes
7330: else
7331: ac_cv_func_alloca_works=no
7332: fi
7333: rm -f core conftest.err conftest.$ac_objext \
7334: conftest$ac_exeext conftest.$ac_ext
7335: fi
7336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7337: $as_echo "$ac_cv_func_alloca_works" >&6; }
7338:
7339: if test $ac_cv_func_alloca_works = yes; then
7340:
7341: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7342:
7343: else
7344: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7345: # that cause trouble. Some versions do not even contain alloca or
7346: # contain a buggy version. If you still want to use their alloca,
7347: # use ar to extract alloca.o from them instead of compiling alloca.c.
7348:
7349: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7350:
7351: $as_echo "#define C_ALLOCA 1" >>confdefs.h
7352:
7353:
7354: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7355: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7356: if ${ac_cv_os_cray+:} false; then :
7357: $as_echo_n "(cached) " >&6
7358: else
7359: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360: /* end confdefs.h. */
7361: #if defined CRAY && ! defined CRAY2
7362: webecray
7363: #else
7364: wenotbecray
7365: #endif
7366:
7367: _ACEOF
7368: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369: $EGREP "webecray" >/dev/null 2>&1; then :
7370: ac_cv_os_cray=yes
7371: else
7372: ac_cv_os_cray=no
7373: fi
7374: rm -f conftest*
7375:
7376: fi
7377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7378: $as_echo "$ac_cv_os_cray" >&6; }
7379: if test $ac_cv_os_cray = yes; then
7380: for ac_func in _getb67 GETB67 getb67; do
7381: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7383: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7384:
7385: cat >>confdefs.h <<_ACEOF
7386: #define CRAY_STACKSEG_END $ac_func
7387: _ACEOF
7388:
7389: break
7390: fi
7391:
7392: done
7393: fi
7394:
7395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7396: $as_echo_n "checking stack direction for C alloca... " >&6; }
7397: if ${ac_cv_c_stack_direction+:} false; then :
7398: $as_echo_n "(cached) " >&6
7399: else
7400: if test "$cross_compiling" = yes; then :
7401: ac_cv_c_stack_direction=0
7402: else
7403: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404: /* end confdefs.h. */
7405: $ac_includes_default
7406: int
7407: find_stack_direction ()
7408: {
7409: static char *addr = 0;
7410: auto char dummy;
7411: if (addr == 0)
7412: {
7413: addr = &dummy;
7414: return find_stack_direction ();
7415: }
7416: else
7417: return (&dummy > addr) ? 1 : -1;
7418: }
7419:
7420: int
7421: main ()
7422: {
7423: return find_stack_direction () < 0;
7424: }
7425: _ACEOF
7426: if ac_fn_c_try_run "$LINENO"; then :
7427: ac_cv_c_stack_direction=1
7428: else
7429: ac_cv_c_stack_direction=-1
7430: fi
7431: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7432: conftest.$ac_objext conftest.beam conftest.$ac_ext
7433: fi
7434:
7435: fi
7436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7437: $as_echo "$ac_cv_c_stack_direction" >&6; }
7438: cat >>confdefs.h <<_ACEOF
7439: #define STACK_DIRECTION $ac_cv_c_stack_direction
7440: _ACEOF
7441:
7442:
7443: fi
7444:
7445: for ac_func in waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \
7446: fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \
7447: memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \
7448: strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
7449: setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
7450: seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
7451: extattr_get_link sigaction sigprocmask setattrlist \
7452: utimensat
7453: do :
7454: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7455: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7456: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7457: cat >>confdefs.h <<_ACEOF
7458: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7459: _ACEOF
7460:
7461: fi
7462: done
7463:
7464:
7465: if test x"$ac_cv_func_iconv_open" != x"yes"; then
7466: ac_fn_c_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
7467: if test "x$ac_cv_func_libiconv_open" = xyes; then :
7468: ac_cv_func_iconv_open=yes; $as_echo "#define HAVE_ICONV_OPEN 1" >>confdefs.h
7469:
7470: fi
7471:
7472: fi
7473:
7474: for ac_func in getpgrp tcgetpgrp
7475: do :
7476: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7477: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7478: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7479: cat >>confdefs.h <<_ACEOF
7480: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7481: _ACEOF
7482:
7483: fi
7484: done
7485:
7486: if test $ac_cv_func_getpgrp = yes; then
7487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
7488: $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
7489: if ${ac_cv_func_getpgrp_void+:} false; then :
7490: $as_echo_n "(cached) " >&6
7491: else
7492: # Use it with a single arg.
7493: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494: /* end confdefs.h. */
7495: $ac_includes_default
7496: int
7497: main ()
7498: {
7499: getpgrp (0);
7500: ;
7501: return 0;
7502: }
7503: _ACEOF
7504: if ac_fn_c_try_compile "$LINENO"; then :
7505: ac_cv_func_getpgrp_void=no
7506: else
7507: ac_cv_func_getpgrp_void=yes
7508: fi
7509: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510:
7511: fi
7512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
7513: $as_echo "$ac_cv_func_getpgrp_void" >&6; }
7514: if test $ac_cv_func_getpgrp_void = yes; then
7515:
7516: $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
7517:
7518: fi
7519:
7520: fi
7521:
7522: # Check whether --enable-iconv-open was given.
7523: if test "${enable_iconv_open+set}" = set; then :
7524: enableval=$enable_iconv_open;
7525: else
7526: enable_iconv_open=$ac_cv_func_iconv_open
7527: fi
7528:
7529:
7530: if test x"$enable_iconv_open" != x"no"; then
7531:
7532: $as_echo "#define USE_ICONV_OPEN 1" >>confdefs.h
7533:
7534: fi
7535:
7536: # Check whether --enable-iconv was given.
7537: if test "${enable_iconv+set}" = set; then :
7538: enableval=$enable_iconv;
7539: else
7540: enable_iconv=$enable_iconv_open
7541: fi
7542:
7543:
7544: if test x"$enable_iconv" != x"no"; then
7545: if test x"$enable_iconv" = x"yes"; then
7546: $as_echo "#define ICONV_OPTION NULL" >>confdefs.h
7547:
7548: else
7549: cat >>confdefs.h <<_ACEOF
7550: #define ICONV_OPTION "$enable_iconv"
7551: _ACEOF
7552:
7553: fi
7554:
7555: $as_echo "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h
7556:
7557: fi
7558:
7559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5
7560: $as_echo_n "checking whether chown() modifies symlinks... " >&6; }
7561: if ${rsync_cv_chown_modifies_symlink+:} false; then :
7562: $as_echo_n "(cached) " >&6
7563: else
7564:
7565: if test "$cross_compiling" = yes; then :
7566: rsync_cv_chown_modifies_symlink=no
7567: else
7568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569: /* end confdefs.h. */
7570:
7571: #if HAVE_UNISTD_H
7572: # include <unistd.h>
7573: #endif
7574: #include <stdlib.h>
7575: #include <errno.h>
7576: main() {
7577: char const *dangling_symlink = "conftest.dangle";
7578: unlink(dangling_symlink);
7579: if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
7580: if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) exit(1);
7581: exit(0);
7582: }
7583: _ACEOF
7584: if ac_fn_c_try_run "$LINENO"; then :
7585: rsync_cv_chown_modifies_symlink=yes
7586: else
7587: rsync_cv_chown_modifies_symlink=no
7588: fi
7589: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7590: conftest.$ac_objext conftest.beam conftest.$ac_ext
7591: fi
7592:
7593: fi
7594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_chown_modifies_symlink" >&5
7595: $as_echo "$rsync_cv_chown_modifies_symlink" >&6; }
7596: if test $rsync_cv_chown_modifies_symlink = yes; then
7597:
7598: $as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
7599:
7600: fi
7601:
7602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link symlinks" >&5
7603: $as_echo_n "checking whether link() can hard-link symlinks... " >&6; }
7604: if ${rsync_cv_can_hardlink_symlink+:} false; then :
7605: $as_echo_n "(cached) " >&6
7606: else
7607:
7608: if test "$cross_compiling" = yes; then :
7609: rsync_cv_can_hardlink_symlink=no
7610: else
7611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612: /* end confdefs.h. */
7613:
7614: #if HAVE_UNISTD_H
7615: # include <unistd.h>
7616: #endif
7617: #include <stdlib.h>
7618: #include <errno.h>
7619: #define FILENAME "conftest.dangle"
7620: main() {
7621: unlink(FILENAME);
7622: if (symlink("conftest.no-such", FILENAME) < 0) abort();
7623: if (link(FILENAME, FILENAME "2") < 0) exit(1);
7624: exit(0);
7625: }
7626: _ACEOF
7627: if ac_fn_c_try_run "$LINENO"; then :
7628: rsync_cv_can_hardlink_symlink=yes
7629: else
7630: rsync_cv_can_hardlink_symlink=no
7631: fi
7632: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7633: conftest.$ac_objext conftest.beam conftest.$ac_ext
7634: fi
7635:
7636: fi
7637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_symlink" >&5
7638: $as_echo "$rsync_cv_can_hardlink_symlink" >&6; }
7639: if test $rsync_cv_can_hardlink_symlink = yes; then
7640:
7641: $as_echo "#define CAN_HARDLINK_SYMLINK 1" >>confdefs.h
7642:
7643: fi
7644:
7645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link() can hard-link special files" >&5
7646: $as_echo_n "checking whether link() can hard-link special files... " >&6; }
7647: if ${rsync_cv_can_hardlink_special+:} false; then :
7648: $as_echo_n "(cached) " >&6
7649: else
7650:
7651: if test "$cross_compiling" = yes; then :
7652: rsync_cv_can_hardlink_special=no
7653: else
7654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655: /* end confdefs.h. */
7656:
7657: #if HAVE_UNISTD_H
7658: # include <unistd.h>
7659: #endif
7660: #include <stdlib.h>
7661: #include <errno.h>
7662: #define FILENAME "conftest.fifi"
7663: main() {
7664: unlink(FILENAME);
7665: if (mkfifo(FILENAME, 0777) < 0) abort();
7666: if (link(FILENAME, FILENAME "2") < 0) exit(1);
7667: exit(0);
7668: }
7669: _ACEOF
7670: if ac_fn_c_try_run "$LINENO"; then :
7671: rsync_cv_can_hardlink_special=yes
7672: else
7673: rsync_cv_can_hardlink_special=no
7674: fi
7675: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7676: conftest.$ac_objext conftest.beam conftest.$ac_ext
7677: fi
7678:
7679: fi
7680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_can_hardlink_special" >&5
7681: $as_echo "$rsync_cv_can_hardlink_special" >&6; }
7682: if test $rsync_cv_can_hardlink_special = yes; then
7683:
7684: $as_echo "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h
7685:
7686: fi
7687:
7688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5
7689: $as_echo_n "checking for working socketpair... " >&6; }
7690: if ${rsync_cv_HAVE_SOCKETPAIR+:} false; then :
7691: $as_echo_n "(cached) " >&6
7692: else
7693:
7694: if test "$cross_compiling" = yes; then :
7695: rsync_cv_HAVE_SOCKETPAIR=cross
7696: else
7697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698: /* end confdefs.h. */
7699:
7700: #include <sys/types.h>
7701: #include <sys/socket.h>
7702:
7703: main() {
7704: int fd[2];
7705: #ifdef __CYGWIN__
7706: exit(1);
7707: #else
7708: exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1);
7709: #endif
7710: }
7711: _ACEOF
7712: if ac_fn_c_try_run "$LINENO"; then :
7713: rsync_cv_HAVE_SOCKETPAIR=yes
7714: else
7715: rsync_cv_HAVE_SOCKETPAIR=no
7716: fi
7717: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7718: conftest.$ac_objext conftest.beam conftest.$ac_ext
7719: fi
7720:
7721: fi
7722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SOCKETPAIR" >&5
7723: $as_echo "$rsync_cv_HAVE_SOCKETPAIR" >&6; }
7724: if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then
7725:
7726: $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
7727:
7728: fi
7729:
7730: if test x"$with_included_popt" != x"yes"; then
7731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
7732: $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
7733: if ${ac_cv_lib_popt_poptGetContext+:} false; then :
7734: $as_echo_n "(cached) " >&6
7735: else
7736: ac_check_lib_save_LIBS=$LIBS
7737: LIBS="-lpopt $LIBS"
7738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739: /* end confdefs.h. */
7740:
7741: /* Override any GCC internal prototype to avoid an error.
7742: Use char because int might match the return type of a GCC
7743: builtin and then its argument prototype would still apply. */
7744: #ifdef __cplusplus
7745: extern "C"
7746: #endif
7747: char poptGetContext ();
7748: int
7749: main ()
7750: {
7751: return poptGetContext ();
7752: ;
7753: return 0;
7754: }
7755: _ACEOF
7756: if ac_fn_c_try_link "$LINENO"; then :
7757: ac_cv_lib_popt_poptGetContext=yes
7758: else
7759: ac_cv_lib_popt_poptGetContext=no
7760: fi
7761: rm -f core conftest.err conftest.$ac_objext \
7762: conftest$ac_exeext conftest.$ac_ext
7763: LIBS=$ac_check_lib_save_LIBS
7764: fi
7765: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
7766: $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
7767: if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
7768: cat >>confdefs.h <<_ACEOF
7769: #define HAVE_LIBPOPT 1
7770: _ACEOF
7771:
7772: LIBS="-lpopt $LIBS"
7773:
7774: else
7775: with_included_popt=yes
7776: fi
7777:
7778: fi
7779: if test x"$ac_cv_header_popt_popt_h" = x"yes"; then
7780: # If the system has /usr/include/popt/popt.h, we enable the
7781: # included popt because an attempt to "#include <popt/popt.h>"
7782: # would use our included header file anyway (due to -I.), and
7783: # might conflict with the system popt.
7784: with_included_popt=yes
7785: elif test x"$ac_cv_header_popt_h" != x"yes"; then
7786: with_included_popt=yes
7787: fi
7788:
7789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included libpopt" >&5
7790: $as_echo_n "checking whether to use included libpopt... " >&6; }
7791: if test x"$with_included_popt" = x"yes"; then
7792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/popt" >&5
7793: $as_echo "$srcdir/popt" >&6; }
7794: BUILD_POPT='$(popt_OBJS)'
7795: CFLAGS="$CFLAGS -I$srcdir/popt"
7796: if test x"$ALLOCA" != x
7797: then
7798: # this can be removed when/if we add an included alloca.c;
7799: # see autoconf documentation on AC_FUNC_ALLOCA
7800: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&5
7801: $as_echo "$as_me: WARNING: included libpopt will use malloc, not alloca (which wastes a small amount of memory)" >&2;}
7802: fi
7803: else
7804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805: $as_echo "no" >&6; }
7806: fi
7807:
7808: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned char" >&5
7809: $as_echo_n "checking for unsigned char... " >&6; }
7810: if ${rsync_cv_SIGNED_CHAR_OK+:} false; then :
7811: $as_echo_n "(cached) " >&6
7812: else
7813:
7814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815: /* end confdefs.h. */
7816:
7817: int
7818: main ()
7819: {
7820: signed char *s = ""
7821: ;
7822: return 0;
7823: }
7824: _ACEOF
7825: if ac_fn_c_try_compile "$LINENO"; then :
7826: rsync_cv_SIGNED_CHAR_OK=yes
7827: else
7828: rsync_cv_SIGNED_CHAR_OK=no
7829: fi
7830: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831: fi
7832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_SIGNED_CHAR_OK" >&5
7833: $as_echo "$rsync_cv_SIGNED_CHAR_OK" >&6; }
7834: if test x"$rsync_cv_SIGNED_CHAR_OK" = x"yes"; then
7835:
7836: $as_echo "#define SIGNED_CHAR_OK 1" >>confdefs.h
7837:
7838: fi
7839:
7840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken readdir" >&5
7841: $as_echo_n "checking for broken readdir... " >&6; }
7842: if ${rsync_cv_HAVE_BROKEN_READDIR+:} false; then :
7843: $as_echo_n "(cached) " >&6
7844: else
7845:
7846: if test "$cross_compiling" = yes; then :
7847: rsync_cv_HAVE_BROKEN_READDIR=cross
7848: else
7849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850: /* end confdefs.h. */
7851: #include <sys/types.h>
7852: #include <dirent.h>
7853: main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7854: if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7855: di->d_name[0] == 0) exit(0); exit(1);}
7856: _ACEOF
7857: if ac_fn_c_try_run "$LINENO"; then :
7858: rsync_cv_HAVE_BROKEN_READDIR=yes
7859: else
7860: rsync_cv_HAVE_BROKEN_READDIR=no
7861: fi
7862: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7863: conftest.$ac_objext conftest.beam conftest.$ac_ext
7864: fi
7865:
7866: fi
7867: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_BROKEN_READDIR" >&5
7868: $as_echo "$rsync_cv_HAVE_BROKEN_READDIR" >&6; }
7869: if test x"$rsync_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7870:
7871: $as_echo "#define HAVE_BROKEN_READDIR 1" >>confdefs.h
7872:
7873: fi
7874:
7875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimbuf" >&5
7876: $as_echo_n "checking for utimbuf... " >&6; }
7877: if ${rsync_cv_HAVE_STRUCT_UTIMBUF+:} false; then :
7878: $as_echo_n "(cached) " >&6
7879: else
7880:
7881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882: /* end confdefs.h. */
7883: #include <sys/types.h>
7884: #include <utime.h>
7885: int
7886: main ()
7887: {
7888: struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7889: ;
7890: return 0;
7891: }
7892: _ACEOF
7893: if ac_fn_c_try_compile "$LINENO"; then :
7894: rsync_cv_HAVE_STRUCT_UTIMBUF=yes
7895: else
7896: rsync_cv_HAVE_STRUCT_UTIMBUF=no
7897: fi
7898: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899: fi
7900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_STRUCT_UTIMBUF" >&5
7901: $as_echo "$rsync_cv_HAVE_STRUCT_UTIMBUF" >&6; }
7902: if test x"$rsync_cv_HAVE_STRUCT_UTIMBUF" = x"yes"; then
7903:
7904: $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7905:
7906: fi
7907:
7908: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gettimeofday takes tz argument" >&5
7909: $as_echo_n "checking if gettimeofday takes tz argument... " >&6; }
7910: if ${rsync_cv_HAVE_GETTIMEOFDAY_TZ+:} false; then :
7911: $as_echo_n "(cached) " >&6
7912: else
7913:
7914: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915: /* end confdefs.h. */
7916: #include <sys/time.h>
7917: #include <unistd.h>
7918: int
7919: main ()
7920: {
7921: struct timeval tv; exit(gettimeofday(&tv, NULL));
7922: ;
7923: return 0;
7924: }
7925: _ACEOF
7926: if ac_fn_c_try_compile "$LINENO"; then :
7927: rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
7928: else
7929: rsync_cv_HAVE_GETTIMEOFDAY_TZ=no
7930: fi
7931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932: fi
7933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&5
7934: $as_echo "$rsync_cv_HAVE_GETTIMEOFDAY_TZ" >&6; }
7935: if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
7936:
7937: $as_echo "#define HAVE_GETTIMEOFDAY_TZ 1" >>confdefs.h
7938:
7939: fi
7940:
7941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
7942: $as_echo_n "checking for C99 vsnprintf... " >&6; }
7943: if ${rsync_cv_HAVE_C99_VSNPRINTF+:} false; then :
7944: $as_echo_n "(cached) " >&6
7945: else
7946:
7947: if test "$cross_compiling" = yes; then :
7948: rsync_cv_HAVE_C99_VSNPRINTF=cross
7949: else
7950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951: /* end confdefs.h. */
7952:
7953: #include <sys/types.h>
7954: #include <stdarg.h>
7955: void foo(const char *format, ...) {
7956: va_list ap;
7957: int len;
7958: char buf[5];
7959:
7960: va_start(ap, format);
7961: len = vsnprintf(0, 0, format, ap);
7962: va_end(ap);
7963: if (len != 5) exit(1);
7964:
7965: if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
7966:
7967: exit(0);
7968: }
7969: main() { foo("hello"); }
7970:
7971: _ACEOF
7972: if ac_fn_c_try_run "$LINENO"; then :
7973: rsync_cv_HAVE_C99_VSNPRINTF=yes
7974: else
7975: rsync_cv_HAVE_C99_VSNPRINTF=no
7976: fi
7977: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7978: conftest.$ac_objext conftest.beam conftest.$ac_ext
7979: fi
7980:
7981: fi
7982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_C99_VSNPRINTF" >&5
7983: $as_echo "$rsync_cv_HAVE_C99_VSNPRINTF" >&6; }
7984: if test x"$rsync_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
7985:
7986: $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
7987:
7988: fi
7989:
7990:
7991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for secure mkstemp" >&5
7992: $as_echo_n "checking for secure mkstemp... " >&6; }
7993: if ${rsync_cv_HAVE_SECURE_MKSTEMP+:} false; then :
7994: $as_echo_n "(cached) " >&6
7995: else
7996:
7997: if test "$cross_compiling" = yes; then :
7998: rsync_cv_HAVE_SECURE_MKSTEMP=cross
7999: else
8000: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001: /* end confdefs.h. */
8002: #include <stdlib.h>
8003: #include <sys/types.h>
8004: #include <sys/stat.h>
8005: #include <unistd.h>
8006: main() {
8007: struct stat st;
8008: char tpl[20]="/tmp/test.XXXXXX";
8009: int fd = mkstemp(tpl);
8010: if (fd == -1) exit(1);
8011: unlink(tpl);
8012: if (fstat(fd, &st) != 0) exit(1);
8013: if ((st.st_mode & 0777) != 0600) exit(1);
8014: exit(0);
8015: }
8016: _ACEOF
8017: if ac_fn_c_try_run "$LINENO"; then :
8018: rsync_cv_HAVE_SECURE_MKSTEMP=yes
8019: else
8020: rsync_cv_HAVE_SECURE_MKSTEMP=no
8021: fi
8022: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8023: conftest.$ac_objext conftest.beam conftest.$ac_ext
8024: fi
8025:
8026: fi
8027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_HAVE_SECURE_MKSTEMP" >&5
8028: $as_echo "$rsync_cv_HAVE_SECURE_MKSTEMP" >&6; }
8029: if test x"$rsync_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
8030: case $host_os in
8031: hpux*)
8032: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&5
8033: $as_echo "$as_me: WARNING: Skipping broken HP-UX mkstemp() -- using mktemp() instead" >&2;}
8034: ;;
8035: *)
8036:
8037: $as_echo "#define HAVE_SECURE_MKSTEMP 1" >>confdefs.h
8038:
8039: ;;
8040: esac
8041: fi
8042:
8043:
8044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates FIFOs" >&5
8045: $as_echo_n "checking if mknod creates FIFOs... " >&6; }
8046: if ${rsync_cv_MKNOD_CREATES_FIFOS+:} false; then :
8047: $as_echo_n "(cached) " >&6
8048: else
8049:
8050: if test "$cross_compiling" = yes; then :
8051: rsync_cv_MKNOD_CREATES_FIFOS=cross
8052: else
8053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054: /* end confdefs.h. */
8055:
8056: #include <stdio.h>
8057: #include <sys/stat.h>
8058: #include <errno.h>
8059: main() { int rc, ec; char *fn = "fifo-test";
8060: unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);
8061: if (rc) {printf("(%d %d) ",rc,ec); return ec;}
8062: return 0;}
8063: _ACEOF
8064: if ac_fn_c_try_run "$LINENO"; then :
8065: rsync_cv_MKNOD_CREATES_FIFOS=yes
8066: else
8067: rsync_cv_MKNOD_CREATES_FIFOS=no
8068: fi
8069: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8070: conftest.$ac_objext conftest.beam conftest.$ac_ext
8071: fi
8072:
8073: fi
8074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_FIFOS" >&5
8075: $as_echo "$rsync_cv_MKNOD_CREATES_FIFOS" >&6; }
8076: if test x"$rsync_cv_MKNOD_CREATES_FIFOS" = x"yes"; then
8077:
8078: $as_echo "#define MKNOD_CREATES_FIFOS 1" >>confdefs.h
8079:
8080: fi
8081:
8082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mknod creates sockets" >&5
8083: $as_echo_n "checking if mknod creates sockets... " >&6; }
8084: if ${rsync_cv_MKNOD_CREATES_SOCKETS+:} false; then :
8085: $as_echo_n "(cached) " >&6
8086: else
8087:
8088: if test "$cross_compiling" = yes; then :
8089: rsync_cv_MKNOD_CREATES_SOCKETS=cross
8090: else
8091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092: /* end confdefs.h. */
8093:
8094: #include <stdio.h>
8095: #include <sys/stat.h>
8096: #include <errno.h>
8097: main() { int rc, ec; char *fn = "sock-test";
8098: unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);
8099: if (rc) {printf("(%d %d) ",rc,ec); return ec;}
8100: return 0;}
8101: _ACEOF
8102: if ac_fn_c_try_run "$LINENO"; then :
8103: rsync_cv_MKNOD_CREATES_SOCKETS=yes
8104: else
8105: rsync_cv_MKNOD_CREATES_SOCKETS=no
8106: fi
8107: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8108: conftest.$ac_objext conftest.beam conftest.$ac_ext
8109: fi
8110:
8111: fi
8112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_MKNOD_CREATES_SOCKETS" >&5
8113: $as_echo "$rsync_cv_MKNOD_CREATES_SOCKETS" >&6; }
8114: if test x"$rsync_cv_MKNOD_CREATES_SOCKETS" = x"yes"; then
8115:
8116: $as_echo "#define MKNOD_CREATES_SOCKETS 1" >>confdefs.h
8117:
8118: fi
8119:
8120: #
8121: # The following test was mostly taken from the tcl/tk plus patches
8122: #
8123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -c -o works" >&5
8124: $as_echo_n "checking whether -c -o works... " >&6; }
8125: if ${rsync_cv_DASHC_WORKS_WITH_DASHO+:} false; then :
8126: $as_echo_n "(cached) " >&6
8127: else
8128:
8129: rm -rf conftest*
8130: cat > conftest.$ac_ext <<EOF
8131: int main() { return 0; }
8132: EOF
8133: ${CC-cc} -c -o conftest..o conftest.$ac_ext
8134: if test -f conftest..o; then
8135: rsync_cv_DASHC_WORKS_WITH_DASHO=yes
8136: else
8137: rsync_cv_DASHC_WORKS_WITH_DASHO=no
8138: fi
8139: rm -rf conftest*
8140:
8141: fi
8142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_DASHC_WORKS_WITH_DASHO" >&5
8143: $as_echo "$rsync_cv_DASHC_WORKS_WITH_DASHO" >&6; }
8144: if test x"$rsync_cv_DASHC_WORKS_WITH_DASHO" = x"yes"; then
8145: OBJ_SAVE="#"
8146: OBJ_RESTORE="#"
8147: CC_SHOBJ_FLAG='-o $@'
8148: else
8149: OBJ_SAVE=' @b=`basename $@ .o`;rm -f $$b.o.sav;if test -f $$b.o; then mv $$b.o $$b.o.sav;fi;'
8150: 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'
8151: CC_SHOBJ_FLAG=""
8152: fi
8153:
8154:
8155:
8156:
8157:
8158:
8159:
8160: for ac_func in _acl __acl _facl __facl
8161: do :
8162: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8163: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8164: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8165: cat >>confdefs.h <<_ACEOF
8166: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8167: _ACEOF
8168:
8169: fi
8170: done
8171:
8172: #################################################
8173: # check for ACL support
8174:
8175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ACLs" >&5
8176: $as_echo_n "checking whether to support ACLs... " >&6; }
8177: # Check whether --enable-acl-support was given.
8178: if test "${enable_acl_support+set}" = set; then :
8179: enableval=$enable_acl_support;
8180: fi
8181:
8182:
8183: if test x"$enable_acl_support" = x"no"; then
8184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185: $as_echo "no" >&6; }
8186: else
8187: case "$host_os" in
8188: *sysv5*)
8189: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using UnixWare ACLs" >&5
8190: $as_echo "Using UnixWare ACLs" >&6; }
8191:
8192: $as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
8193:
8194:
8195: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8196:
8197: ;;
8198: *solaris*|*cygwin*)
8199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
8200: $as_echo "Using solaris ACLs" >&6; }
8201:
8202: $as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
8203:
8204: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8205:
8206: ;;
8207: *hpux*)
8208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5
8209: $as_echo "Using HPUX ACLs" >&6; }
8210:
8211: $as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
8212:
8213: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8214:
8215: ;;
8216: *irix*)
8217: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5
8218: $as_echo "Using IRIX ACLs" >&6; }
8219:
8220: $as_echo "#define HAVE_IRIX_ACLS 1" >>confdefs.h
8221:
8222: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8223:
8224: ;;
8225: *aix*)
8226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using AIX ACLs" >&5
8227: $as_echo "Using AIX ACLs" >&6; }
8228:
8229: $as_echo "#define HAVE_AIX_ACLS 1" >>confdefs.h
8230:
8231: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8232:
8233: ;;
8234: *osf*)
8235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tru64 ACLs" >&5
8236: $as_echo "Using Tru64 ACLs" >&6; }
8237:
8238: $as_echo "#define HAVE_TRU64_ACLS 1" >>confdefs.h
8239:
8240: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8241:
8242: LIBS="$LIBS -lpacl"
8243: ;;
8244: darwin*)
8245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X ACLs" >&5
8246: $as_echo "Using OS X ACLs" >&6; }
8247:
8248: $as_echo "#define HAVE_OSX_ACLS 1" >>confdefs.h
8249:
8250: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8251:
8252: ;;
8253: *)
8254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5
8255: $as_echo "running tests:" >&6; }
8256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
8257: $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
8258: if ${ac_cv_lib_acl_acl_get_file+:} false; then :
8259: $as_echo_n "(cached) " >&6
8260: else
8261: ac_check_lib_save_LIBS=$LIBS
8262: LIBS="-lacl $LIBS"
8263: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264: /* end confdefs.h. */
8265:
8266: /* Override any GCC internal prototype to avoid an error.
8267: Use char because int might match the return type of a GCC
8268: builtin and then its argument prototype would still apply. */
8269: #ifdef __cplusplus
8270: extern "C"
8271: #endif
8272: char acl_get_file ();
8273: int
8274: main ()
8275: {
8276: return acl_get_file ();
8277: ;
8278: return 0;
8279: }
8280: _ACEOF
8281: if ac_fn_c_try_link "$LINENO"; then :
8282: ac_cv_lib_acl_acl_get_file=yes
8283: else
8284: ac_cv_lib_acl_acl_get_file=no
8285: fi
8286: rm -f core conftest.err conftest.$ac_objext \
8287: conftest$ac_exeext conftest.$ac_ext
8288: LIBS=$ac_check_lib_save_LIBS
8289: fi
8290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
8291: $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
8292: if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
8293: cat >>confdefs.h <<_ACEOF
8294: #define HAVE_LIBACL 1
8295: _ACEOF
8296:
8297: LIBS="-lacl $LIBS"
8298:
8299: fi
8300:
8301: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
8302: $as_echo_n "checking for ACL support... " >&6; }
8303: if ${samba_cv_HAVE_POSIX_ACLS+:} false; then :
8304: $as_echo_n "(cached) " >&6
8305: else
8306:
8307: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308: /* end confdefs.h. */
8309: #include <sys/types.h>
8310: #include <sys/acl.h>
8311: int
8312: main ()
8313: {
8314: acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
8315: ;
8316: return 0;
8317: }
8318: _ACEOF
8319: if ac_fn_c_try_link "$LINENO"; then :
8320: samba_cv_HAVE_POSIX_ACLS=yes
8321: else
8322: samba_cv_HAVE_POSIX_ACLS=no
8323: fi
8324: rm -f core conftest.err conftest.$ac_objext \
8325: conftest$ac_exeext conftest.$ac_ext
8326: fi
8327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_POSIX_ACLS" >&5
8328: $as_echo "$samba_cv_HAVE_POSIX_ACLS" >&6; }
8329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACL test results" >&5
8330: $as_echo_n "checking ACL test results... " >&6; }
8331: if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
8332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using posix ACLs" >&5
8333: $as_echo "Using posix ACLs" >&6; }
8334:
8335: $as_echo "#define HAVE_POSIX_ACLS 1" >>confdefs.h
8336:
8337: $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8338:
8339: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_perm_np" >&5
8340: $as_echo_n "checking for acl_get_perm_np... " >&6; }
8341: if ${samba_cv_HAVE_ACL_GET_PERM_NP+:} false; then :
8342: $as_echo_n "(cached) " >&6
8343: else
8344:
8345: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346: /* end confdefs.h. */
8347: #include <sys/types.h>
8348: #include <sys/acl.h>
8349: int
8350: main ()
8351: {
8352: acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
8353: ;
8354: return 0;
8355: }
8356: _ACEOF
8357: if ac_fn_c_try_link "$LINENO"; then :
8358: samba_cv_HAVE_ACL_GET_PERM_NP=yes
8359: else
8360: samba_cv_HAVE_ACL_GET_PERM_NP=no
8361: fi
8362: rm -f core conftest.err conftest.$ac_objext \
8363: conftest$ac_exeext conftest.$ac_ext
8364: fi
8365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
8366: $as_echo "$samba_cv_HAVE_ACL_GET_PERM_NP" >&6; }
8367: if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
8368:
8369: $as_echo "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
8370:
8371: fi
8372: else
8373: if test x"$enable_acl_support" = x"yes"; then
8374: as_fn_error $? "Failed to find ACL support" "$LINENO" 5
8375: else
8376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: No ACL support found" >&5
8377: $as_echo "No ACL support found" >&6; }
8378: fi
8379: fi
8380: ;;
8381: esac
8382: fi
8383:
8384: #################################################
8385: # check for extended attribute support
8386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support extended attributes" >&5
8387: $as_echo_n "checking whether to support extended attributes... " >&6; }
8388: # Check whether --enable-xattr-support was given.
8389: if test "${enable_xattr_support+set}" = set; then :
8390: enableval=$enable_xattr_support;
8391: else
8392: case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link" in
8393: *yes*) enable_xattr_support=maybe ;;
8394: *) enable_xattr_support=no ;;
8395: esac
8396: fi
8397:
8398:
8399: if test x"$enable_xattr_support" = x"no"; then
8400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401: $as_echo "no" >&6; }
8402: else
8403: case "$host_os" in
8404: *linux*)
8405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5
8406: $as_echo "Using Linux xattrs" >&6; }
8407:
8408: $as_echo "#define HAVE_LINUX_XATTRS 1" >>confdefs.h
8409:
8410: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
8411:
8412: ;;
8413: darwin*)
8414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5
8415: $as_echo "Using OS X xattrs" >&6; }
8416:
8417: $as_echo "#define HAVE_OSX_XATTRS 1" >>confdefs.h
8418:
8419: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
8420:
8421:
8422: $as_echo "#define NO_DEVICE_XATTRS 1" >>confdefs.h
8423:
8424:
8425: $as_echo "#define NO_SPECIAL_XATTRS 1" >>confdefs.h
8426:
8427: ;;
8428: freebsd*)
8429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using FreeBSD extattrs" >&5
8430: $as_echo "Using FreeBSD extattrs" >&6; }
8431:
8432: $as_echo "#define HAVE_FREEBSD_XATTRS 1" >>confdefs.h
8433:
8434: $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
8435:
8436: ;;
8437: solaris*)
8438: # Better Solaris support coming in 3.1.0...
8439:
8440: $as_echo "#define NO_SYMLINK_XATTRS 1" >>confdefs.h
8441:
8442: ;;
8443: *)
8444: if test x"$enable_xattr_support" = x"yes"; then
8445: as_fn_error $? "Failed to find extended attribute support" "$LINENO" 5
8446: else
8447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: No extended attribute support found" >&5
8448: $as_echo "No extended attribute support found" >&6; }
8449: fi
8450: ;;
8451: esac
8452: fi
8453:
8454: if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x"$enable_iconv" = x"no"; then
8455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
8456: $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
8457: OLD_CFLAGS="$CFLAGS"
8458: CFLAGS="$CFLAGS -Wno-unused-parameter"
8459: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460: /* end confdefs.h. */
8461: #include <stdio.h>
8462: int
8463: main ()
8464: {
8465: printf("hello\n");
8466: ;
8467: return 0;
8468: }
8469: _ACEOF
8470: if ac_fn_c_try_link "$LINENO"; then :
8471: rsync_warn_flag=yes
8472: else
8473: rsync_warn_flag=no
8474: fi
8475: rm -f core conftest.err conftest.$ac_objext \
8476: conftest$ac_exeext conftest.$ac_ext
8477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_warn_flag" >&5
8478: $as_echo "$rsync_warn_flag" >&6; }
8479: if test x"$rsync_warn_flag" = x"no"; then
8480: CFLAGS="$OLD_CFLAGS"
8481: fi
8482: fi
8483:
8484: case "$CC" in
8485: ' checker'*|checker*)
8486:
8487: $as_echo "#define FORCE_FD_ZERO_MEMSET 1" >>confdefs.h
8488:
8489: ;;
8490: esac
8491:
8492: ac_config_files="$ac_config_files Makefile lib/dummy zlib/dummy popt/dummy shconfig"
8493:
8494: cat >confcache <<\_ACEOF
8495: # This file is a shell script that caches the results of configure
8496: # tests run on this system so they can be shared between configure
8497: # scripts and configure runs, see configure's option --config-cache.
8498: # It is not useful on other systems. If it contains results you don't
8499: # want to keep, you may remove or edit it.
8500: #
8501: # config.status only pays attention to the cache file if you give it
8502: # the --recheck option to rerun configure.
8503: #
8504: # `ac_cv_env_foo' variables (set or unset) will be overridden when
8505: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8506: # following values.
8507:
8508: _ACEOF
8509:
8510: # The following way of writing the cache mishandles newlines in values,
8511: # but we know of no workaround that is simple, portable, and efficient.
8512: # So, we kill variables containing newlines.
8513: # Ultrix sh set writes to stderr and can't be redirected directly,
8514: # and sets the high bit in the cache file unless we assign to the vars.
8515: (
8516: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8517: eval ac_val=\$$ac_var
8518: case $ac_val in #(
8519: *${as_nl}*)
8520: case $ac_var in #(
8521: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8522: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8523: esac
8524: case $ac_var in #(
8525: _ | IFS | as_nl) ;; #(
8526: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8527: *) { eval $ac_var=; unset $ac_var;} ;;
8528: esac ;;
8529: esac
8530: done
8531:
8532: (set) 2>&1 |
8533: case $as_nl`(ac_space=' '; set) 2>&1` in #(
8534: *${as_nl}ac_space=\ *)
8535: # `set' does not quote correctly, so add quotes: double-quote
8536: # substitution turns \\\\ into \\, and sed turns \\ into \.
8537: sed -n \
8538: "s/'/'\\\\''/g;
8539: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8540: ;; #(
8541: *)
8542: # `set' quotes correctly as required by POSIX, so do not add quotes.
8543: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8544: ;;
8545: esac |
8546: sort
8547: ) |
8548: sed '
8549: /^ac_cv_env_/b end
8550: t clear
8551: :clear
8552: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8553: t end
8554: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8555: :end' >>confcache
8556: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8557: if test -w "$cache_file"; then
8558: if test "x$cache_file" != "x/dev/null"; then
8559: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8560: $as_echo "$as_me: updating cache $cache_file" >&6;}
8561: if test ! -f "$cache_file" || test -h "$cache_file"; then
8562: cat confcache >"$cache_file"
8563: else
8564: case $cache_file in #(
8565: */* | ?:*)
8566: mv -f confcache "$cache_file"$$ &&
8567: mv -f "$cache_file"$$ "$cache_file" ;; #(
8568: *)
8569: mv -f confcache "$cache_file" ;;
8570: esac
8571: fi
8572: fi
8573: else
8574: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8575: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8576: fi
8577: fi
8578: rm -f confcache
8579:
8580: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8581: # Let make expand exec_prefix.
8582: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8583:
8584: DEFS=-DHAVE_CONFIG_H
8585:
8586: ac_libobjs=
8587: ac_ltlibobjs=
8588: U=
8589: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8590: # 1. Remove the extension, and $U if already installed.
8591: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8592: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8593: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8594: # will be set to the directory where LIBOBJS objects are built.
8595: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8596: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8597: done
8598: LIBOBJS=$ac_libobjs
8599:
8600: LTLIBOBJS=$ac_ltlibobjs
8601:
8602:
8603:
8604:
8605: : "${CONFIG_STATUS=./config.status}"
8606: ac_write_fail=0
8607: ac_clean_files_save=$ac_clean_files
8608: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8609: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8610: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8611: as_write_fail=0
8612: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8613: #! $SHELL
8614: # Generated by $as_me.
8615: # Run this file to recreate the current configuration.
8616: # Compiler output produced by configure, useful for debugging
8617: # configure, is in config.log if it exists.
8618:
8619: debug=false
8620: ac_cs_recheck=false
8621: ac_cs_silent=false
8622:
8623: SHELL=\${CONFIG_SHELL-$SHELL}
8624: export SHELL
8625: _ASEOF
8626: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8627: ## -------------------- ##
8628: ## M4sh Initialization. ##
8629: ## -------------------- ##
8630:
8631: # Be more Bourne compatible
8632: DUALCASE=1; export DUALCASE # for MKS sh
8633: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8634: emulate sh
8635: NULLCMD=:
8636: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8637: # is contrary to our usage. Disable this feature.
8638: alias -g '${1+"$@"}'='"$@"'
8639: setopt NO_GLOB_SUBST
8640: else
8641: case `(set -o) 2>/dev/null` in #(
8642: *posix*) :
8643: set -o posix ;; #(
8644: *) :
8645: ;;
8646: esac
8647: fi
8648:
8649:
8650: as_nl='
8651: '
8652: export as_nl
8653: # Printing a long string crashes Solaris 7 /usr/bin/printf.
8654: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8655: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8656: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8657: # Prefer a ksh shell builtin over an external printf program on Solaris,
8658: # but without wasting forks for bash or zsh.
8659: if test -z "$BASH_VERSION$ZSH_VERSION" \
8660: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8661: as_echo='print -r --'
8662: as_echo_n='print -rn --'
8663: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8664: as_echo='printf %s\n'
8665: as_echo_n='printf %s'
8666: else
8667: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8668: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8669: as_echo_n='/usr/ucb/echo -n'
8670: else
8671: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8672: as_echo_n_body='eval
8673: arg=$1;
8674: case $arg in #(
8675: *"$as_nl"*)
8676: expr "X$arg" : "X\\(.*\\)$as_nl";
8677: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8678: esac;
8679: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8680: '
8681: export as_echo_n_body
8682: as_echo_n='sh -c $as_echo_n_body as_echo'
8683: fi
8684: export as_echo_body
8685: as_echo='sh -c $as_echo_body as_echo'
8686: fi
8687:
8688: # The user is always right.
8689: if test "${PATH_SEPARATOR+set}" != set; then
8690: PATH_SEPARATOR=:
8691: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8692: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8693: PATH_SEPARATOR=';'
8694: }
8695: fi
8696:
8697:
8698: # IFS
8699: # We need space, tab and new line, in precisely that order. Quoting is
8700: # there to prevent editors from complaining about space-tab.
8701: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8702: # splitting by setting IFS to empty value.)
8703: IFS=" "" $as_nl"
8704:
8705: # Find who we are. Look in the path if we contain no directory separator.
8706: as_myself=
8707: case $0 in #((
8708: *[\\/]* ) as_myself=$0 ;;
8709: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710: for as_dir in $PATH
8711: do
8712: IFS=$as_save_IFS
8713: test -z "$as_dir" && as_dir=.
8714: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8715: done
8716: IFS=$as_save_IFS
8717:
8718: ;;
8719: esac
8720: # We did not find ourselves, most probably we were run as `sh COMMAND'
8721: # in which case we are not to be found in the path.
8722: if test "x$as_myself" = x; then
8723: as_myself=$0
8724: fi
8725: if test ! -f "$as_myself"; then
8726: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8727: exit 1
8728: fi
8729:
8730: # Unset variables that we do not need and which cause bugs (e.g. in
8731: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8732: # suppresses any "Segmentation fault" message there. '((' could
8733: # trigger a bug in pdksh 5.2.14.
8734: for as_var in BASH_ENV ENV MAIL MAILPATH
8735: do eval test x\${$as_var+set} = xset \
8736: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8737: done
8738: PS1='$ '
8739: PS2='> '
8740: PS4='+ '
8741:
8742: # NLS nuisances.
8743: LC_ALL=C
8744: export LC_ALL
8745: LANGUAGE=C
8746: export LANGUAGE
8747:
8748: # CDPATH.
8749: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8750:
8751:
8752: # as_fn_error STATUS ERROR [LINENO LOG_FD]
8753: # ----------------------------------------
8754: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8755: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8756: # script with STATUS, using 1 if that was 0.
8757: as_fn_error ()
8758: {
8759: as_status=$1; test $as_status -eq 0 && as_status=1
8760: if test "$4"; then
8761: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8762: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8763: fi
8764: $as_echo "$as_me: error: $2" >&2
8765: as_fn_exit $as_status
8766: } # as_fn_error
8767:
8768:
8769: # as_fn_set_status STATUS
8770: # -----------------------
8771: # Set $? to STATUS, without forking.
8772: as_fn_set_status ()
8773: {
8774: return $1
8775: } # as_fn_set_status
8776:
8777: # as_fn_exit STATUS
8778: # -----------------
8779: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8780: as_fn_exit ()
8781: {
8782: set +e
8783: as_fn_set_status $1
8784: exit $1
8785: } # as_fn_exit
8786:
8787: # as_fn_unset VAR
8788: # ---------------
8789: # Portably unset VAR.
8790: as_fn_unset ()
8791: {
8792: { eval $1=; unset $1;}
8793: }
8794: as_unset=as_fn_unset
8795: # as_fn_append VAR VALUE
8796: # ----------------------
8797: # Append the text in VALUE to the end of the definition contained in VAR. Take
8798: # advantage of any shell optimizations that allow amortized linear growth over
8799: # repeated appends, instead of the typical quadratic growth present in naive
8800: # implementations.
8801: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8802: eval 'as_fn_append ()
8803: {
8804: eval $1+=\$2
8805: }'
8806: else
8807: as_fn_append ()
8808: {
8809: eval $1=\$$1\$2
8810: }
8811: fi # as_fn_append
8812:
8813: # as_fn_arith ARG...
8814: # ------------------
8815: # Perform arithmetic evaluation on the ARGs, and store the result in the
8816: # global $as_val. Take advantage of shells that can avoid forks. The arguments
8817: # must be portable across $(()) and expr.
8818: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8819: eval 'as_fn_arith ()
8820: {
8821: as_val=$(( $* ))
8822: }'
8823: else
8824: as_fn_arith ()
8825: {
8826: as_val=`expr "$@" || test $? -eq 1`
8827: }
8828: fi # as_fn_arith
8829:
8830:
8831: if expr a : '\(a\)' >/dev/null 2>&1 &&
8832: test "X`expr 00001 : '.*\(...\)'`" = X001; then
8833: as_expr=expr
8834: else
8835: as_expr=false
8836: fi
8837:
8838: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8839: as_basename=basename
8840: else
8841: as_basename=false
8842: fi
8843:
8844: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8845: as_dirname=dirname
8846: else
8847: as_dirname=false
8848: fi
8849:
8850: as_me=`$as_basename -- "$0" ||
8851: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8852: X"$0" : 'X\(//\)$' \| \
8853: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8854: $as_echo X/"$0" |
8855: sed '/^.*\/\([^/][^/]*\)\/*$/{
8856: s//\1/
8857: q
8858: }
8859: /^X\/\(\/\/\)$/{
8860: s//\1/
8861: q
8862: }
8863: /^X\/\(\/\).*/{
8864: s//\1/
8865: q
8866: }
8867: s/.*/./; q'`
8868:
8869: # Avoid depending upon Character Ranges.
8870: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8871: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8872: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8873: as_cr_digits='0123456789'
8874: as_cr_alnum=$as_cr_Letters$as_cr_digits
8875:
8876: ECHO_C= ECHO_N= ECHO_T=
8877: case `echo -n x` in #(((((
8878: -n*)
8879: case `echo 'xy\c'` in
8880: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8881: xy) ECHO_C='\c';;
8882: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8883: ECHO_T=' ';;
8884: esac;;
8885: *)
8886: ECHO_N='-n';;
8887: esac
8888:
8889: rm -f conf$$ conf$$.exe conf$$.file
8890: if test -d conf$$.dir; then
8891: rm -f conf$$.dir/conf$$.file
8892: else
8893: rm -f conf$$.dir
8894: mkdir conf$$.dir 2>/dev/null
8895: fi
8896: if (echo >conf$$.file) 2>/dev/null; then
8897: if ln -s conf$$.file conf$$ 2>/dev/null; then
8898: as_ln_s='ln -s'
8899: # ... but there are two gotchas:
8900: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8901: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8902: # In both cases, we have to default to `cp -p'.
8903: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8904: as_ln_s='cp -p'
8905: elif ln conf$$.file conf$$ 2>/dev/null; then
8906: as_ln_s=ln
8907: else
8908: as_ln_s='cp -p'
8909: fi
8910: else
8911: as_ln_s='cp -p'
8912: fi
8913: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8914: rmdir conf$$.dir 2>/dev/null
8915:
8916:
8917: # as_fn_mkdir_p
8918: # -------------
8919: # Create "$as_dir" as a directory, including parents if necessary.
8920: as_fn_mkdir_p ()
8921: {
8922:
8923: case $as_dir in #(
8924: -*) as_dir=./$as_dir;;
8925: esac
8926: test -d "$as_dir" || eval $as_mkdir_p || {
8927: as_dirs=
8928: while :; do
8929: case $as_dir in #(
8930: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8931: *) as_qdir=$as_dir;;
8932: esac
8933: as_dirs="'$as_qdir' $as_dirs"
8934: as_dir=`$as_dirname -- "$as_dir" ||
8935: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8936: X"$as_dir" : 'X\(//\)[^/]' \| \
8937: X"$as_dir" : 'X\(//\)$' \| \
8938: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8939: $as_echo X"$as_dir" |
8940: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8941: s//\1/
8942: q
8943: }
8944: /^X\(\/\/\)[^/].*/{
8945: s//\1/
8946: q
8947: }
8948: /^X\(\/\/\)$/{
8949: s//\1/
8950: q
8951: }
8952: /^X\(\/\).*/{
8953: s//\1/
8954: q
8955: }
8956: s/.*/./; q'`
8957: test -d "$as_dir" && break
8958: done
8959: test -z "$as_dirs" || eval "mkdir $as_dirs"
8960: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8961:
8962:
8963: } # as_fn_mkdir_p
8964: if mkdir -p . 2>/dev/null; then
8965: as_mkdir_p='mkdir -p "$as_dir"'
8966: else
8967: test -d ./-p && rmdir ./-p
8968: as_mkdir_p=false
8969: fi
8970:
8971: if test -x / >/dev/null 2>&1; then
8972: as_test_x='test -x'
8973: else
8974: if ls -dL / >/dev/null 2>&1; then
8975: as_ls_L_option=L
8976: else
8977: as_ls_L_option=
8978: fi
8979: as_test_x='
8980: eval sh -c '\''
8981: if test -d "$1"; then
8982: test -d "$1/.";
8983: else
8984: case $1 in #(
8985: -*)set "./$1";;
8986: esac;
8987: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8988: ???[sx]*):;;*)false;;esac;fi
8989: '\'' sh
8990: '
8991: fi
8992: as_executable_p=$as_test_x
8993:
8994: # Sed expression to map a string onto a valid CPP name.
8995: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8996:
8997: # Sed expression to map a string onto a valid variable name.
8998: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8999:
9000:
9001: exec 6>&1
9002: ## ----------------------------------- ##
9003: ## Main body of $CONFIG_STATUS script. ##
9004: ## ----------------------------------- ##
9005: _ASEOF
9006: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9007:
9008: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9009: # Save the log message, to keep $0 and so on meaningful, and to
9010: # report actual input values of CONFIG_FILES etc. instead of their
9011: # values after options handling.
9012: ac_log="
9013: This file was extended by $as_me, which was
9014: generated by GNU Autoconf 2.68. Invocation command line was
9015:
9016: CONFIG_FILES = $CONFIG_FILES
9017: CONFIG_HEADERS = $CONFIG_HEADERS
9018: CONFIG_LINKS = $CONFIG_LINKS
9019: CONFIG_COMMANDS = $CONFIG_COMMANDS
9020: $ $0 $@
9021:
9022: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9023: "
9024:
9025: _ACEOF
9026:
9027: case $ac_config_files in *"
9028: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9029: esac
9030:
9031: case $ac_config_headers in *"
9032: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9033: esac
9034:
9035:
9036: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9037: # Files that config.status was made for.
9038: config_files="$ac_config_files"
9039: config_headers="$ac_config_headers"
9040:
9041: _ACEOF
9042:
9043: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9044: ac_cs_usage="\
9045: \`$as_me' instantiates files and other configuration actions
9046: from templates according to the current configuration. Unless the files
9047: and actions are specified as TAGs, all are instantiated by default.
9048:
9049: Usage: $0 [OPTION]... [TAG]...
9050:
9051: -h, --help print this help, then exit
9052: -V, --version print version number and configuration settings, then exit
9053: --config print configuration, then exit
9054: -q, --quiet, --silent
9055: do not print progress messages
9056: -d, --debug don't remove temporary files
9057: --recheck update $as_me by reconfiguring in the same conditions
9058: --file=FILE[:TEMPLATE]
9059: instantiate the configuration file FILE
9060: --header=FILE[:TEMPLATE]
9061: instantiate the configuration header FILE
9062:
9063: Configuration files:
9064: $config_files
9065:
9066: Configuration headers:
9067: $config_headers
9068:
9069: Report bugs to the package provider."
9070:
9071: _ACEOF
9072: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9073: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9074: ac_cs_version="\\
9075: config.status
9076: configured by $0, generated by GNU Autoconf 2.68,
9077: with options \\"\$ac_cs_config\\"
9078:
9079: Copyright (C) 2010 Free Software Foundation, Inc.
9080: This config.status script is free software; the Free Software Foundation
9081: gives unlimited permission to copy, distribute and modify it."
9082:
9083: ac_pwd='$ac_pwd'
9084: srcdir='$srcdir'
9085: INSTALL='$INSTALL'
9086: test -n "\$AWK" || AWK=awk
9087: _ACEOF
9088:
9089: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9090: # The default lists apply if the user does not specify any file.
9091: ac_need_defaults=:
9092: while test $# != 0
9093: do
9094: case $1 in
9095: --*=?*)
9096: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9097: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9098: ac_shift=:
9099: ;;
9100: --*=)
9101: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9102: ac_optarg=
9103: ac_shift=:
9104: ;;
9105: *)
9106: ac_option=$1
9107: ac_optarg=$2
9108: ac_shift=shift
9109: ;;
9110: esac
9111:
9112: case $ac_option in
9113: # Handling of the options.
9114: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9115: ac_cs_recheck=: ;;
9116: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9117: $as_echo "$ac_cs_version"; exit ;;
9118: --config | --confi | --conf | --con | --co | --c )
9119: $as_echo "$ac_cs_config"; exit ;;
9120: --debug | --debu | --deb | --de | --d | -d )
9121: debug=: ;;
9122: --file | --fil | --fi | --f )
9123: $ac_shift
9124: case $ac_optarg in
9125: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9126: '') as_fn_error $? "missing file argument" ;;
9127: esac
9128: as_fn_append CONFIG_FILES " '$ac_optarg'"
9129: ac_need_defaults=false;;
9130: --header | --heade | --head | --hea )
9131: $ac_shift
9132: case $ac_optarg in
9133: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9134: esac
9135: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9136: ac_need_defaults=false;;
9137: --he | --h)
9138: # Conflict between --help and --header
9139: as_fn_error $? "ambiguous option: \`$1'
9140: Try \`$0 --help' for more information.";;
9141: --help | --hel | -h )
9142: $as_echo "$ac_cs_usage"; exit ;;
9143: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9144: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9145: ac_cs_silent=: ;;
9146:
9147: # This is an error.
9148: -*) as_fn_error $? "unrecognized option: \`$1'
9149: Try \`$0 --help' for more information." ;;
9150:
9151: *) as_fn_append ac_config_targets " $1"
9152: ac_need_defaults=false ;;
9153:
9154: esac
9155: shift
9156: done
9157:
9158: ac_configure_extra_args=
9159:
9160: if $ac_cs_silent; then
9161: exec 6>/dev/null
9162: ac_configure_extra_args="$ac_configure_extra_args --silent"
9163: fi
9164:
9165: _ACEOF
9166: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9167: if \$ac_cs_recheck; then
9168: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9169: shift
9170: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9171: CONFIG_SHELL='$SHELL'
9172: export CONFIG_SHELL
9173: exec "\$@"
9174: fi
9175:
9176: _ACEOF
9177: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9178: exec 5>>config.log
9179: {
9180: echo
9181: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9182: ## Running $as_me. ##
9183: _ASBOX
9184: $as_echo "$ac_log"
9185: } >&5
9186:
9187: _ACEOF
9188: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9189: _ACEOF
9190:
9191: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9192:
9193: # Handling of arguments.
9194: for ac_config_target in $ac_config_targets
9195: do
9196: case $ac_config_target in
9197: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9198: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9199: "lib/dummy") CONFIG_FILES="$CONFIG_FILES lib/dummy" ;;
9200: "zlib/dummy") CONFIG_FILES="$CONFIG_FILES zlib/dummy" ;;
9201: "popt/dummy") CONFIG_FILES="$CONFIG_FILES popt/dummy" ;;
9202: "shconfig") CONFIG_FILES="$CONFIG_FILES shconfig" ;;
9203:
9204: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9205: esac
9206: done
9207:
9208:
9209: # If the user did not use the arguments to specify the items to instantiate,
9210: # then the envvar interface is used. Set only those that are not.
9211: # We use the long form for the default assignment because of an extremely
9212: # bizarre bug on SunOS 4.1.3.
9213: if $ac_need_defaults; then
9214: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9215: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9216: fi
9217:
9218: # Have a temporary directory for convenience. Make it in the build tree
9219: # simply because there is no reason against having it here, and in addition,
9220: # creating and moving files from /tmp can sometimes cause problems.
9221: # Hook for its removal unless debugging.
9222: # Note that there is a small window in which the directory will not be cleaned:
9223: # after its creation but before its name has been assigned to `$tmp'.
9224: $debug ||
9225: {
9226: tmp= ac_tmp=
9227: trap 'exit_status=$?
9228: : "${ac_tmp:=$tmp}"
9229: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9230: ' 0
9231: trap 'as_fn_exit 1' 1 2 13 15
9232: }
9233: # Create a (secure) tmp directory for tmp files.
9234:
9235: {
9236: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9237: test -d "$tmp"
9238: } ||
9239: {
9240: tmp=./conf$$-$RANDOM
9241: (umask 077 && mkdir "$tmp")
9242: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9243: ac_tmp=$tmp
9244:
9245: # Set up the scripts for CONFIG_FILES section.
9246: # No need to generate them if there are no CONFIG_FILES.
9247: # This happens for instance with `./config.status config.h'.
9248: if test -n "$CONFIG_FILES"; then
9249:
9250:
9251: ac_cr=`echo X | tr X '\015'`
9252: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9253: # But we know of no other shell where ac_cr would be empty at this
9254: # point, so we can use a bashism as a fallback.
9255: if test "x$ac_cr" = x; then
9256: eval ac_cr=\$\'\\r\'
9257: fi
9258: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9259: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9260: ac_cs_awk_cr='\\r'
9261: else
9262: ac_cs_awk_cr=$ac_cr
9263: fi
9264:
9265: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9266: _ACEOF
9267:
9268:
9269: {
9270: echo "cat >conf$$subs.awk <<_ACEOF" &&
9271: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9272: echo "_ACEOF"
9273: } >conf$$subs.sh ||
9274: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9275: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9276: ac_delim='%!_!# '
9277: for ac_last_try in false false false false false :; do
9278: . ./conf$$subs.sh ||
9279: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9280:
9281: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9282: if test $ac_delim_n = $ac_delim_num; then
9283: break
9284: elif $ac_last_try; then
9285: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9286: else
9287: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9288: fi
9289: done
9290: rm -f conf$$subs.sh
9291:
9292: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9293: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9294: _ACEOF
9295: sed -n '
9296: h
9297: s/^/S["/; s/!.*/"]=/
9298: p
9299: g
9300: s/^[^!]*!//
9301: :repl
9302: t repl
9303: s/'"$ac_delim"'$//
9304: t delim
9305: :nl
9306: h
9307: s/\(.\{148\}\)..*/\1/
9308: t more1
9309: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9310: p
9311: n
9312: b repl
9313: :more1
9314: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9315: p
9316: g
9317: s/.\{148\}//
9318: t nl
9319: :delim
9320: h
9321: s/\(.\{148\}\)..*/\1/
9322: t more2
9323: s/["\\]/\\&/g; s/^/"/; s/$/"/
9324: p
9325: b
9326: :more2
9327: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9328: p
9329: g
9330: s/.\{148\}//
9331: t delim
9332: ' <conf$$subs.awk | sed '
9333: /^[^""]/{
9334: N
9335: s/\n//
9336: }
9337: ' >>$CONFIG_STATUS || ac_write_fail=1
9338: rm -f conf$$subs.awk
9339: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9340: _ACAWK
9341: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9342: for (key in S) S_is_set[key] = 1
9343: FS = ""
9344:
9345: }
9346: {
9347: line = $ 0
9348: nfields = split(line, field, "@")
9349: substed = 0
9350: len = length(field[1])
9351: for (i = 2; i < nfields; i++) {
9352: key = field[i]
9353: keylen = length(key)
9354: if (S_is_set[key]) {
9355: value = S[key]
9356: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9357: len += length(value) + length(field[++i])
9358: substed = 1
9359: } else
9360: len += 1 + keylen
9361: }
9362:
9363: print line
9364: }
9365:
9366: _ACAWK
9367: _ACEOF
9368: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9369: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9370: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9371: else
9372: cat
9373: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9374: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9375: _ACEOF
9376:
9377: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9378: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9379: # trailing colons and then remove the whole line if VPATH becomes empty
9380: # (actually we leave an empty line to preserve line numbers).
9381: if test "x$srcdir" = x.; then
9382: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9383: h
9384: s///
9385: s/^/:/
9386: s/[ ]*$/:/
9387: s/:\$(srcdir):/:/g
9388: s/:\${srcdir}:/:/g
9389: s/:@srcdir@:/:/g
9390: s/^:*//
9391: s/:*$//
9392: x
9393: s/\(=[ ]*\).*/\1/
9394: G
9395: s/\n//
9396: s/^[^=]*=[ ]*$//
9397: }'
9398: fi
9399:
9400: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9401: fi # test -n "$CONFIG_FILES"
9402:
9403: # Set up the scripts for CONFIG_HEADERS section.
9404: # No need to generate them if there are no CONFIG_HEADERS.
9405: # This happens for instance with `./config.status Makefile'.
9406: if test -n "$CONFIG_HEADERS"; then
9407: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9408: BEGIN {
9409: _ACEOF
9410:
9411: # Transform confdefs.h into an awk script `defines.awk', embedded as
9412: # here-document in config.status, that substitutes the proper values into
9413: # config.h.in to produce config.h.
9414:
9415: # Create a delimiter string that does not exist in confdefs.h, to ease
9416: # handling of long lines.
9417: ac_delim='%!_!# '
9418: for ac_last_try in false false :; do
9419: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9420: if test -z "$ac_tt"; then
9421: break
9422: elif $ac_last_try; then
9423: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9424: else
9425: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9426: fi
9427: done
9428:
9429: # For the awk script, D is an array of macro values keyed by name,
9430: # likewise P contains macro parameters if any. Preserve backslash
9431: # newline sequences.
9432:
9433: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9434: sed -n '
9435: s/.\{148\}/&'"$ac_delim"'/g
9436: t rset
9437: :rset
9438: s/^[ ]*#[ ]*define[ ][ ]*/ /
9439: t def
9440: d
9441: :def
9442: s/\\$//
9443: t bsnl
9444: s/["\\]/\\&/g
9445: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9446: D["\1"]=" \3"/p
9447: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9448: d
9449: :bsnl
9450: s/["\\]/\\&/g
9451: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9452: D["\1"]=" \3\\\\\\n"\\/p
9453: t cont
9454: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9455: t cont
9456: d
9457: :cont
9458: n
9459: s/.\{148\}/&'"$ac_delim"'/g
9460: t clear
9461: :clear
9462: s/\\$//
9463: t bsnlc
9464: s/["\\]/\\&/g; s/^/"/; s/$/"/p
9465: d
9466: :bsnlc
9467: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9468: b cont
9469: ' <confdefs.h | sed '
9470: s/'"$ac_delim"'/"\\\
9471: "/g' >>$CONFIG_STATUS || ac_write_fail=1
9472:
9473: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9474: for (key in D) D_is_set[key] = 1
9475: FS = ""
9476: }
9477: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9478: line = \$ 0
9479: split(line, arg, " ")
9480: if (arg[1] == "#") {
9481: defundef = arg[2]
9482: mac1 = arg[3]
9483: } else {
9484: defundef = substr(arg[1], 2)
9485: mac1 = arg[2]
9486: }
9487: split(mac1, mac2, "(") #)
9488: macro = mac2[1]
9489: prefix = substr(line, 1, index(line, defundef) - 1)
9490: if (D_is_set[macro]) {
9491: # Preserve the white space surrounding the "#".
9492: print prefix "define", macro P[macro] D[macro]
9493: next
9494: } else {
9495: # Replace #undef with comments. This is necessary, for example,
9496: # in the case of _POSIX_SOURCE, which is predefined and required
9497: # on some systems where configure will not decide to define it.
9498: if (defundef == "undef") {
9499: print "/*", prefix defundef, macro, "*/"
9500: next
9501: }
9502: }
9503: }
9504: { print }
9505: _ACAWK
9506: _ACEOF
9507: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9508: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9509: fi # test -n "$CONFIG_HEADERS"
9510:
9511:
9512: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9513: shift
9514: for ac_tag
9515: do
9516: case $ac_tag in
9517: :[FHLC]) ac_mode=$ac_tag; continue;;
9518: esac
9519: case $ac_mode$ac_tag in
9520: :[FHL]*:*);;
9521: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9522: :[FH]-) ac_tag=-:-;;
9523: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9524: esac
9525: ac_save_IFS=$IFS
9526: IFS=:
9527: set x $ac_tag
9528: IFS=$ac_save_IFS
9529: shift
9530: ac_file=$1
9531: shift
9532:
9533: case $ac_mode in
9534: :L) ac_source=$1;;
9535: :[FH])
9536: ac_file_inputs=
9537: for ac_f
9538: do
9539: case $ac_f in
9540: -) ac_f="$ac_tmp/stdin";;
9541: *) # Look for the file first in the build tree, then in the source tree
9542: # (if the path is not absolute). The absolute path cannot be DOS-style,
9543: # because $ac_f cannot contain `:'.
9544: test -f "$ac_f" ||
9545: case $ac_f in
9546: [\\/$]*) false;;
9547: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9548: esac ||
9549: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9550: esac
9551: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9552: as_fn_append ac_file_inputs " '$ac_f'"
9553: done
9554:
9555: # Let's still pretend it is `configure' which instantiates (i.e., don't
9556: # use $as_me), people would be surprised to read:
9557: # /* config.h. Generated by config.status. */
9558: configure_input='Generated from '`
9559: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9560: `' by configure.'
9561: if test x"$ac_file" != x-; then
9562: configure_input="$ac_file. $configure_input"
9563: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9564: $as_echo "$as_me: creating $ac_file" >&6;}
9565: fi
9566: # Neutralize special characters interpreted by sed in replacement strings.
9567: case $configure_input in #(
9568: *\&* | *\|* | *\\* )
9569: ac_sed_conf_input=`$as_echo "$configure_input" |
9570: sed 's/[\\\\&|]/\\\\&/g'`;; #(
9571: *) ac_sed_conf_input=$configure_input;;
9572: esac
9573:
9574: case $ac_tag in
9575: *:-:* | *:-) cat >"$ac_tmp/stdin" \
9576: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9577: esac
9578: ;;
9579: esac
9580:
9581: ac_dir=`$as_dirname -- "$ac_file" ||
9582: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9583: X"$ac_file" : 'X\(//\)[^/]' \| \
9584: X"$ac_file" : 'X\(//\)$' \| \
9585: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9586: $as_echo X"$ac_file" |
9587: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9588: s//\1/
9589: q
9590: }
9591: /^X\(\/\/\)[^/].*/{
9592: s//\1/
9593: q
9594: }
9595: /^X\(\/\/\)$/{
9596: s//\1/
9597: q
9598: }
9599: /^X\(\/\).*/{
9600: s//\1/
9601: q
9602: }
9603: s/.*/./; q'`
9604: as_dir="$ac_dir"; as_fn_mkdir_p
9605: ac_builddir=.
9606:
9607: case "$ac_dir" in
9608: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9609: *)
9610: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9611: # A ".." for each directory in $ac_dir_suffix.
9612: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9613: case $ac_top_builddir_sub in
9614: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9615: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9616: esac ;;
9617: esac
9618: ac_abs_top_builddir=$ac_pwd
9619: ac_abs_builddir=$ac_pwd$ac_dir_suffix
9620: # for backward compatibility:
9621: ac_top_builddir=$ac_top_build_prefix
9622:
9623: case $srcdir in
9624: .) # We are building in place.
9625: ac_srcdir=.
9626: ac_top_srcdir=$ac_top_builddir_sub
9627: ac_abs_top_srcdir=$ac_pwd ;;
9628: [\\/]* | ?:[\\/]* ) # Absolute name.
9629: ac_srcdir=$srcdir$ac_dir_suffix;
9630: ac_top_srcdir=$srcdir
9631: ac_abs_top_srcdir=$srcdir ;;
9632: *) # Relative name.
9633: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9634: ac_top_srcdir=$ac_top_build_prefix$srcdir
9635: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9636: esac
9637: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9638:
9639:
9640: case $ac_mode in
9641: :F)
9642: #
9643: # CONFIG_FILE
9644: #
9645:
9646: case $INSTALL in
9647: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9648: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9649: esac
9650: _ACEOF
9651:
9652: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9653: # If the template does not know about datarootdir, expand it.
9654: # FIXME: This hack should be removed a few years after 2.60.
9655: ac_datarootdir_hack=; ac_datarootdir_seen=
9656: ac_sed_dataroot='
9657: /datarootdir/ {
9658: p
9659: q
9660: }
9661: /@datadir@/p
9662: /@docdir@/p
9663: /@infodir@/p
9664: /@localedir@/p
9665: /@mandir@/p'
9666: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9667: *datarootdir*) ac_datarootdir_seen=yes;;
9668: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9669: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9670: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9671: _ACEOF
9672: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9673: ac_datarootdir_hack='
9674: s&@datadir@&$datadir&g
9675: s&@docdir@&$docdir&g
9676: s&@infodir@&$infodir&g
9677: s&@localedir@&$localedir&g
9678: s&@mandir@&$mandir&g
9679: s&\\\${datarootdir}&$datarootdir&g' ;;
9680: esac
9681: _ACEOF
9682:
9683: # Neutralize VPATH when `$srcdir' = `.'.
9684: # Shell code in configure.ac might set extrasub.
9685: # FIXME: do we really want to maintain this feature?
9686: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9687: ac_sed_extra="$ac_vpsub
9688: $extrasub
9689: _ACEOF
9690: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9691: :t
9692: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9693: s|@configure_input@|$ac_sed_conf_input|;t t
9694: s&@top_builddir@&$ac_top_builddir_sub&;t t
9695: s&@top_build_prefix@&$ac_top_build_prefix&;t t
9696: s&@srcdir@&$ac_srcdir&;t t
9697: s&@abs_srcdir@&$ac_abs_srcdir&;t t
9698: s&@top_srcdir@&$ac_top_srcdir&;t t
9699: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9700: s&@builddir@&$ac_builddir&;t t
9701: s&@abs_builddir@&$ac_abs_builddir&;t t
9702: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9703: s&@INSTALL@&$ac_INSTALL&;t t
9704: $ac_datarootdir_hack
9705: "
9706: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9707: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9708:
9709: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9710: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9711: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9712: "$ac_tmp/out"`; test -z "$ac_out"; } &&
9713: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9714: which seems to be undefined. Please make sure it is defined" >&5
9715: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9716: which seems to be undefined. Please make sure it is defined" >&2;}
9717:
9718: rm -f "$ac_tmp/stdin"
9719: case $ac_file in
9720: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9721: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9722: esac \
9723: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9724: ;;
9725: :H)
9726: #
9727: # CONFIG_HEADER
9728: #
9729: if test x"$ac_file" != x-; then
9730: {
9731: $as_echo "/* $configure_input */" \
9732: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9733: } >"$ac_tmp/config.h" \
9734: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9735: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9736: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9737: $as_echo "$as_me: $ac_file is unchanged" >&6;}
9738: else
9739: rm -f "$ac_file"
9740: mv "$ac_tmp/config.h" "$ac_file" \
9741: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9742: fi
9743: else
9744: $as_echo "/* $configure_input */" \
9745: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9746: || as_fn_error $? "could not create -" "$LINENO" 5
9747: fi
9748: ;;
9749:
9750:
9751: esac
9752:
9753: done # for ac_tag
9754:
9755:
9756: as_fn_exit 0
9757: _ACEOF
9758: ac_clean_files=$ac_clean_files_save
9759:
9760: test $ac_write_fail = 0 ||
9761: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9762:
9763:
9764: # configure is writing to config.log, and then calls config.status.
9765: # config.status does its own redirection, appending to config.log.
9766: # Unfortunately, on DOS this fails, as config.log is still kept open
9767: # by configure, so config.status won't be able to write to it; its
9768: # output is simply discarded. So we exec the FD to /dev/null,
9769: # effectively closing config.log, so it can be properly (re)opened and
9770: # appended to by config.status. When coming back to configure, we
9771: # need to make the FD available again.
9772: if test "$no_create" != yes; then
9773: ac_cs_success=:
9774: ac_config_status_args=
9775: test "$silent" = yes &&
9776: ac_config_status_args="$ac_config_status_args --quiet"
9777: exec 5>/dev/null
9778: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9779: exec 5>>config.log
9780: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9781: # would make configure fail if this is the last instruction.
9782: $ac_cs_success || as_fn_exit 1
9783: fi
9784: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9785: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9786: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9787: fi
9788:
9789:
9790: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
9791: $as_echo "" >&6; }
9792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: rsync ${RSYNC_VERSION} configuration successful" >&5
9793: $as_echo " rsync ${RSYNC_VERSION} configuration successful" >&6; }
9794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
9795: $as_echo "" >&6; }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>