Annotation of libaitrpc/configure, revision 1.39.2.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.39.2.1! misho 3: # Generated by GNU Autoconf 2.71 for libaitrpc 9.6.
1.1 misho 4: #
1.5 misho 5: # Report bugs to <misho@elwix.org>.
1.1 misho 6: #
1.7 misho 7: #
1.39 misho 8: # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9: # Inc.
1.2 misho 10: #
1.7 misho 11: #
1.1 misho 12: # This configure script is free software; the Free Software Foundation
13: # gives unlimited permission to copy, distribute and modify it.
1.2 misho 14: ## -------------------- ##
15: ## M4sh Initialization. ##
16: ## -------------------- ##
1.1 misho 17:
18: # Be more Bourne compatible
19: DUALCASE=1; export DUALCASE # for MKS sh
1.39 misho 20: as_nop=:
21: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22: then :
1.1 misho 23: emulate sh
24: NULLCMD=:
25: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26: # is contrary to our usage. Disable this feature.
27: alias -g '${1+"$@"}'='"$@"'
28: setopt NO_GLOB_SUBST
1.39 misho 29: else $as_nop
1.2 misho 30: case `(set -o) 2>/dev/null` in #(
31: *posix*) :
32: set -o posix ;; #(
33: *) :
34: ;;
1.1 misho 35: esac
36: fi
37:
38:
1.39 misho 39:
40: # Reset variables that may have inherited troublesome values from
41: # the environment.
42:
43: # IFS needs to be set, to space, tab, and newline, in precisely that order.
44: # (If _AS_PATH_WALK were called with IFS unset, it would have the
45: # side effect of setting IFS to empty, thus disabling word splitting.)
46: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 47: as_nl='
48: '
49: export as_nl
1.39 misho 50: IFS=" "" $as_nl"
51:
52: PS1='$ '
53: PS2='> '
54: PS4='+ '
55:
56: # Ensure predictable behavior from utilities with locale-dependent output.
57: LC_ALL=C
58: export LC_ALL
59: LANGUAGE=C
60: export LANGUAGE
61:
62: # We cannot yet rely on "unset" to work, but we need these variables
63: # to be unset--not just set to an empty or harmless value--now, to
64: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65: # also avoids known problems related to "unset" and subshell syntax
66: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68: do eval test \${$as_var+y} \
69: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70: done
71:
72: # Ensure that fds 0, 1, and 2 are open.
73: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 76:
77: # The user is always right.
1.39 misho 78: if ${PATH_SEPARATOR+false} :; then
1.1 misho 79: PATH_SEPARATOR=:
80: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82: PATH_SEPARATOR=';'
83: }
84: fi
85:
86:
87: # Find who we are. Look in the path if we contain no directory separator.
1.7 misho 88: as_myself=
1.2 misho 89: case $0 in #((
1.1 misho 90: *[\\/]* ) as_myself=$0 ;;
91: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92: for as_dir in $PATH
93: do
94: IFS=$as_save_IFS
1.39 misho 95: case $as_dir in #(((
96: '') as_dir=./ ;;
97: */) ;;
98: *) as_dir=$as_dir/ ;;
99: esac
100: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.2 misho 101: done
1.1 misho 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
1.39 misho 112: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.2 misho 113: exit 1
1.1 misho 114: fi
115:
116:
1.12 misho 117: # Use a proper internal environment variable to ensure we don't fall
118: # into an infinite loop, continuously re-executing ourselves.
119: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120: _as_can_reexec=no; export _as_can_reexec;
121: # We cannot yet assume a decent shell, so we have to provide a
122: # neutralization value for shells without unset; and this also
123: # works around shells that cannot unset nonexistent variables.
124: # Preserve -v and -x to the replacement shell.
125: BASH_ENV=/dev/null
126: ENV=/dev/null
127: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128: case $- in # ((((
129: *v*x* | *x*v* ) as_opts=-vx ;;
130: *v* ) as_opts=-v ;;
131: *x* ) as_opts=-x ;;
132: * ) as_opts= ;;
133: esac
134: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135: # Admittedly, this is quite paranoid, since all the known shells bail
136: # out after a failed `exec'.
1.39 misho 137: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138: exit 255
1.12 misho 139: fi
140: # We don't want this to propagate to other subprocesses.
141: { _as_can_reexec=; unset _as_can_reexec;}
1.1 misho 142: if test "x$CONFIG_SHELL" = x; then
1.39 misho 143: as_bourne_compatible="as_nop=:
144: if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145: then :
1.2 misho 146: emulate sh
147: NULLCMD=:
148: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149: # is contrary to our usage. Disable this feature.
150: alias -g '\${1+\"\$@\"}'='\"\$@\"'
151: setopt NO_GLOB_SUBST
1.39 misho 152: else \$as_nop
1.2 misho 153: case \`(set -o) 2>/dev/null\` in #(
154: *posix*) :
155: set -o posix ;; #(
156: *) :
157: ;;
158: esac
1.1 misho 159: fi
1.2 misho 160: "
161: as_required="as_fn_return () { (exit \$1); }
162: as_fn_success () { as_fn_return 0; }
163: as_fn_failure () { as_fn_return 1; }
164: as_fn_ret_success () { return 0; }
165: as_fn_ret_failure () { return 1; }
1.1 misho 166:
167: exitcode=0
1.2 misho 168: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.39 misho 172: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173: then :
1.2 misho 174:
1.39 misho 175: else \$as_nop
1.2 misho 176: exitcode=1; echo positional parameters were not saved.
177: fi
1.12 misho 178: test x\$exitcode = x0 || exit 1
1.39 misho 179: blah=\$(echo \$(echo blah))
180: test x\"\$blah\" = xblah || exit 1
1.12 misho 181: test -x / || exit 1"
1.2 misho 182: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1.39 misho 185: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186: if (eval "$as_required") 2>/dev/null
187: then :
1.2 misho 188: as_have_required=yes
1.39 misho 189: else $as_nop
1.2 misho 190: as_have_required=no
1.1 misho 191: fi
1.39 misho 192: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193: then :
1.1 misho 194:
1.39 misho 195: else $as_nop
1.2 misho 196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197: as_found=false
1.1 misho 198: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199: do
200: IFS=$as_save_IFS
1.39 misho 201: case $as_dir in #(((
202: '') as_dir=./ ;;
203: */) ;;
204: *) as_dir=$as_dir/ ;;
205: esac
1.2 misho 206: as_found=:
207: case $as_dir in #(
1.1 misho 208: /*)
209: for as_base in sh bash ksh sh5; do
1.2 misho 210: # Try only shells that exist, to save several forks.
1.39 misho 211: as_shell=$as_dir$as_base
1.2 misho 212: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.39 misho 213: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214: then :
1.2 misho 215: CONFIG_SHELL=$as_shell as_have_required=yes
1.39 misho 216: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217: then :
1.2 misho 218: break 2
219: fi
220: fi
1.1 misho 221: done;;
222: esac
1.2 misho 223: as_found=false
1.1 misho 224: done
1.39 misho 225: IFS=$as_save_IFS
226: if $as_found
227: then :
228:
229: else $as_nop
230: if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232: then :
1.2 misho 233: CONFIG_SHELL=$SHELL as_have_required=yes
1.39 misho 234: fi
235: fi
1.1 misho 236:
237:
1.39 misho 238: if test "x$CONFIG_SHELL" != x
239: then :
1.12 misho 240: export CONFIG_SHELL
241: # We cannot yet assume a decent shell, so we have to provide a
242: # neutralization value for shells without unset; and this also
243: # works around shells that cannot unset nonexistent variables.
244: # Preserve -v and -x to the replacement shell.
245: BASH_ENV=/dev/null
246: ENV=/dev/null
247: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248: case $- in # ((((
249: *v*x* | *x*v* ) as_opts=-vx ;;
250: *v* ) as_opts=-v ;;
251: *x* ) as_opts=-x ;;
252: * ) as_opts= ;;
253: esac
254: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255: # Admittedly, this is quite paranoid, since all the known shells bail
256: # out after a failed `exec'.
1.39 misho 257: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.12 misho 258: exit 255
1.2 misho 259: fi
1.1 misho 260:
1.39 misho 261: if test x$as_have_required = xno
262: then :
263: printf "%s\n" "$0: This script requires a shell more modern than all"
264: printf "%s\n" "$0: the shells that I found on your system."
265: if test ${ZSH_VERSION+y} ; then
266: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.2 misho 268: else
1.39 misho 269: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and misho@elwix.org
1.5 misho 270: $0: about your system, including any error possibly output
271: $0: before this message. Then install a modern shell, or
272: $0: manually run the script under such a shell if you do
273: $0: have one."
1.2 misho 274: fi
275: exit 1
276: fi
1.1 misho 277: fi
278: fi
1.2 misho 279: SHELL=${CONFIG_SHELL-/bin/sh}
280: export SHELL
281: # Unset more variables known to interfere with behavior of common tools.
282: CLICOLOR_FORCE= GREP_OPTIONS=
283: unset CLICOLOR_FORCE GREP_OPTIONS
1.1 misho 284:
1.2 misho 285: ## --------------------- ##
286: ## M4sh Shell Functions. ##
287: ## --------------------- ##
288: # as_fn_unset VAR
289: # ---------------
290: # Portably unset VAR.
291: as_fn_unset ()
292: {
293: { eval $1=; unset $1;}
294: }
295: as_unset=as_fn_unset
296:
1.39 misho 297:
1.2 misho 298: # as_fn_set_status STATUS
299: # -----------------------
300: # Set $? to STATUS, without forking.
301: as_fn_set_status ()
302: {
303: return $1
304: } # as_fn_set_status
305:
306: # as_fn_exit STATUS
307: # -----------------
308: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309: as_fn_exit ()
310: {
311: set +e
312: as_fn_set_status $1
313: exit $1
314: } # as_fn_exit
1.39 misho 315: # as_fn_nop
316: # ---------
317: # Do nothing but, unlike ":", preserve the value of $?.
318: as_fn_nop ()
319: {
320: return $?
321: }
322: as_nop=as_fn_nop
1.2 misho 323:
324: # as_fn_mkdir_p
325: # -------------
326: # Create "$as_dir" as a directory, including parents if necessary.
327: as_fn_mkdir_p ()
328: {
1.1 misho 329:
1.2 misho 330: case $as_dir in #(
331: -*) as_dir=./$as_dir;;
332: esac
333: test -d "$as_dir" || eval $as_mkdir_p || {
334: as_dirs=
335: while :; do
336: case $as_dir in #(
1.39 misho 337: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.2 misho 338: *) as_qdir=$as_dir;;
339: esac
340: as_dirs="'$as_qdir' $as_dirs"
341: as_dir=`$as_dirname -- "$as_dir" ||
342: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343: X"$as_dir" : 'X\(//\)[^/]' \| \
344: X"$as_dir" : 'X\(//\)$' \| \
345: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.39 misho 346: printf "%s\n" X"$as_dir" |
1.2 misho 347: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)[^/].*/{
352: s//\1/
353: q
354: }
355: /^X\(\/\/\)$/{
356: s//\1/
357: q
358: }
359: /^X\(\/\).*/{
360: s//\1/
361: q
362: }
363: s/.*/./; q'`
364: test -d "$as_dir" && break
365: done
366: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.7 misho 367: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 misho 368:
369:
1.2 misho 370: } # as_fn_mkdir_p
1.12 misho 371:
372: # as_fn_executable_p FILE
373: # -----------------------
374: # Test if FILE is an executable regular file.
375: as_fn_executable_p ()
376: {
377: test -f "$1" && test -x "$1"
378: } # as_fn_executable_p
1.2 misho 379: # as_fn_append VAR VALUE
380: # ----------------------
381: # Append the text in VALUE to the end of the definition contained in VAR. Take
382: # advantage of any shell optimizations that allow amortized linear growth over
383: # repeated appends, instead of the typical quadratic growth present in naive
384: # implementations.
1.39 misho 385: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386: then :
1.2 misho 387: eval 'as_fn_append ()
388: {
389: eval $1+=\$2
390: }'
1.39 misho 391: else $as_nop
1.2 misho 392: as_fn_append ()
393: {
394: eval $1=\$$1\$2
395: }
396: fi # as_fn_append
1.1 misho 397:
1.2 misho 398: # as_fn_arith ARG...
399: # ------------------
400: # Perform arithmetic evaluation on the ARGs, and store the result in the
401: # global $as_val. Take advantage of shells that can avoid forks. The arguments
402: # must be portable across $(()) and expr.
1.39 misho 403: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404: then :
1.2 misho 405: eval 'as_fn_arith ()
406: {
407: as_val=$(( $* ))
408: }'
1.39 misho 409: else $as_nop
1.2 misho 410: as_fn_arith ()
411: {
412: as_val=`expr "$@" || test $? -eq 1`
413: }
414: fi # as_fn_arith
1.1 misho 415:
1.39 misho 416: # as_fn_nop
417: # ---------
418: # Do nothing but, unlike ":", preserve the value of $?.
419: as_fn_nop ()
420: {
421: return $?
422: }
423: as_nop=as_fn_nop
1.1 misho 424:
1.7 misho 425: # as_fn_error STATUS ERROR [LINENO LOG_FD]
426: # ----------------------------------------
1.2 misho 427: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.7 misho 429: # script with STATUS, using 1 if that was 0.
1.2 misho 430: as_fn_error ()
431: {
1.7 misho 432: as_status=$1; test $as_status -eq 0 && as_status=1
433: if test "$4"; then
434: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 435: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.2 misho 436: fi
1.39 misho 437: printf "%s\n" "$as_me: error: $2" >&2
1.2 misho 438: as_fn_exit $as_status
439: } # as_fn_error
1.1 misho 440:
1.2 misho 441: if expr a : '\(a\)' >/dev/null 2>&1 &&
442: test "X`expr 00001 : '.*\(...\)'`" = X001; then
443: as_expr=expr
1.1 misho 444: else
1.2 misho 445: as_expr=false
1.1 misho 446: fi
447:
1.2 misho 448: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449: as_basename=basename
1.1 misho 450: else
1.2 misho 451: as_basename=false
1.1 misho 452: fi
453:
1.2 misho 454: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455: as_dirname=dirname
1.1 misho 456: else
1.2 misho 457: as_dirname=false
1.1 misho 458: fi
459:
1.2 misho 460: as_me=`$as_basename -- "$0" ||
461: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462: X"$0" : 'X\(//\)$' \| \
463: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.39 misho 464: printf "%s\n" X/"$0" |
1.2 misho 465: sed '/^.*\/\([^/][^/]*\)\/*$/{
466: s//\1/
467: q
468: }
469: /^X\/\(\/\/\)$/{
470: s//\1/
471: q
472: }
473: /^X\/\(\/\).*/{
474: s//\1/
475: q
476: }
477: s/.*/./; q'`
1.1 misho 478:
1.2 misho 479: # Avoid depending upon Character Ranges.
480: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483: as_cr_digits='0123456789'
484: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 misho 485:
486:
1.2 misho 487: as_lineno_1=$LINENO as_lineno_1a=$LINENO
488: as_lineno_2=$LINENO as_lineno_2a=$LINENO
489: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.1 misho 492: sed -n '
493: p
494: /[$]LINENO/=
495: ' <$as_myself |
496: sed '
497: s/[$]LINENO.*/&-/
498: t lineno
499: b
500: :lineno
501: N
502: :loop
503: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504: t loop
505: s/-\n.*//
506: ' >$as_me.lineno &&
507: chmod +x "$as_me.lineno" ||
1.39 misho 508: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misho 509:
1.12 misho 510: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511: # already done that, so ensure we don't try to do so again and fall
512: # in an infinite loop. This has already happened in practice.
513: _as_can_reexec=no; export _as_can_reexec
1.1 misho 514: # Don't try to exec as it changes $[0], causing all sort of problems
515: # (the dirname of $[0] is not the place where we might find the
516: # original and so on. Autoconf is especially sensitive to this).
517: . "./$as_me.lineno"
518: # Exit status is that of the last command.
519: exit
520: }
521:
1.39 misho 522:
523: # Determine whether it's possible to make 'echo' print without a newline.
524: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525: # for compatibility with existing Makefiles.
1.2 misho 526: ECHO_C= ECHO_N= ECHO_T=
527: case `echo -n x` in #(((((
528: -n*)
529: case `echo 'xy\c'` in
530: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531: xy) ECHO_C='\c';;
532: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533: ECHO_T=' ';;
1.1 misho 534: esac;;
535: *)
536: ECHO_N='-n';;
537: esac
538:
1.39 misho 539: # For backward compatibility with old third-party macros, we provide
540: # the shell variables $as_echo and $as_echo_n. New code should use
541: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542: as_echo='printf %s\n'
543: as_echo_n='printf %s'
544:
545:
1.1 misho 546: rm -f conf$$ conf$$.exe conf$$.file
547: if test -d conf$$.dir; then
548: rm -f conf$$.dir/conf$$.file
549: else
550: rm -f conf$$.dir
551: mkdir conf$$.dir 2>/dev/null
552: fi
553: if (echo >conf$$.file) 2>/dev/null; then
554: if ln -s conf$$.file conf$$ 2>/dev/null; then
555: as_ln_s='ln -s'
556: # ... but there are two gotchas:
557: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.12 misho 559: # In both cases, we have to default to `cp -pR'.
1.1 misho 560: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.12 misho 561: as_ln_s='cp -pR'
1.1 misho 562: elif ln conf$$.file conf$$ 2>/dev/null; then
563: as_ln_s=ln
564: else
1.12 misho 565: as_ln_s='cp -pR'
1.1 misho 566: fi
567: else
1.12 misho 568: as_ln_s='cp -pR'
1.1 misho 569: fi
570: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571: rmdir conf$$.dir 2>/dev/null
572:
573: if mkdir -p . 2>/dev/null; then
1.2 misho 574: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misho 575: else
576: test -d ./-p && rmdir ./-p
577: as_mkdir_p=false
578: fi
579:
1.12 misho 580: as_test_x='test -x'
581: as_executable_p=as_fn_executable_p
1.1 misho 582:
583: # Sed expression to map a string onto a valid CPP name.
584: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585:
586: # Sed expression to map a string onto a valid variable name.
587: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588:
589:
1.7 misho 590: test -n "$DJDIR" || exec 7<&0 </dev/null
591: exec 6>&1
1.1 misho 592:
593: # Name of the host.
1.7 misho 594: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misho 595: # so uname gets run too.
596: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597:
598: #
599: # Initializations.
600: #
601: ac_default_prefix=/usr/local
602: ac_clean_files=
603: ac_config_libobj_dir=.
604: LIBOBJS=
605: cross_compiling=no
606: subdirs=
607: MFLAGS=
608: MAKEFLAGS=
609:
610: # Identity of this package.
611: PACKAGE_NAME='libaitrpc'
612: PACKAGE_TARNAME='libaitrpc'
1.39.2.1! misho 613: PACKAGE_VERSION='9.6'
! 614: PACKAGE_STRING='libaitrpc 9.6'
1.5 misho 615: PACKAGE_BUGREPORT='misho@elwix.org'
1.2 misho 616: PACKAGE_URL=''
1.1 misho 617:
618: ac_unique_file="src/aitrpc.c"
619: # Factoring default headers for most tests.
620: ac_includes_default="\
1.39 misho 621: #include <stddef.h>
622: #ifdef HAVE_STDIO_H
623: # include <stdio.h>
1.1 misho 624: #endif
1.39 misho 625: #ifdef HAVE_STDLIB_H
1.1 misho 626: # include <stdlib.h>
627: #endif
628: #ifdef HAVE_STRING_H
629: # include <string.h>
630: #endif
631: #ifdef HAVE_INTTYPES_H
632: # include <inttypes.h>
633: #endif
634: #ifdef HAVE_STDINT_H
635: # include <stdint.h>
636: #endif
1.39 misho 637: #ifdef HAVE_STRINGS_H
638: # include <strings.h>
639: #endif
640: #ifdef HAVE_SYS_TYPES_H
641: # include <sys/types.h>
642: #endif
643: #ifdef HAVE_SYS_STAT_H
644: # include <sys/stat.h>
645: #endif
1.1 misho 646: #ifdef HAVE_UNISTD_H
647: # include <unistd.h>
648: #endif"
649:
1.39 misho 650: ac_header_c_list=
651: ac_func_c_list=
1.2 misho 652: ac_subst_vars='LTLIBOBJS
1.35 misho 653: ONLY_CLI
1.2 misho 654: LIBOBJS
655: MKDEP
656: target_os
657: target_vendor
658: target_cpu
659: target
660: host_os
661: host_vendor
662: host_cpu
663: host
664: build_os
665: build_vendor
666: build_cpu
667: build
1.37 misho 668: RANLIB
1.2 misho 669: INSTALL_DATA
670: INSTALL_SCRIPT
671: INSTALL_PROGRAM
672: OBJEXT
673: EXEEXT
674: ac_ct_CC
675: CPPFLAGS
676: LDFLAGS
677: CFLAGS
678: CC
679: target_alias
680: host_alias
681: build_alias
682: LIBS
683: ECHO_T
684: ECHO_N
685: ECHO_C
686: DEFS
687: mandir
688: localedir
689: libdir
690: psdir
691: pdfdir
692: dvidir
693: htmldir
694: infodir
695: docdir
696: oldincludedir
697: includedir
1.39 misho 698: runstatedir
1.2 misho 699: localstatedir
700: sharedstatedir
701: sysconfdir
702: datadir
703: datarootdir
704: libexecdir
705: sbindir
706: bindir
707: program_transform_name
708: prefix
709: exec_prefix
710: PACKAGE_URL
711: PACKAGE_BUGREPORT
712: PACKAGE_STRING
713: PACKAGE_VERSION
714: PACKAGE_TARNAME
715: PACKAGE_NAME
1.1 misho 716: PATH_SEPARATOR
1.2 misho 717: SHELL'
1.1 misho 718: ac_subst_files=''
719: ac_user_opts='
720: enable_option_checking
721: enable_debug
1.35 misho 722: enable_server
1.12 misho 723: enable_cli_res_zcpy
1.24 misho 724: enable_tcp_sess_exp
725: with_timeout_period
1.35 misho 726: with_blob_timeout
1.1 misho 727: '
728: ac_precious_vars='build_alias
729: host_alias
730: target_alias
731: CC
732: CFLAGS
733: LDFLAGS
734: LIBS
1.39 misho 735: CPPFLAGS'
1.1 misho 736:
737:
738: # Initialize some variables set by options.
739: ac_init_help=
740: ac_init_version=false
741: ac_unrecognized_opts=
742: ac_unrecognized_sep=
743: # The variables have the same names as the options, with
744: # dashes changed to underlines.
745: cache_file=/dev/null
746: exec_prefix=NONE
747: no_create=
748: no_recursion=
749: prefix=NONE
750: program_prefix=NONE
751: program_suffix=NONE
752: program_transform_name=s,x,x,
753: silent=
754: site=
755: srcdir=
756: verbose=
757: x_includes=NONE
758: x_libraries=NONE
759:
760: # Installation directory options.
761: # These are left unexpanded so users can "make install exec_prefix=/foo"
762: # and all the variables that are supposed to be based on exec_prefix
763: # by default will actually change.
764: # Use braces instead of parens because sh, perl, etc. also accept them.
765: # (The list follows the same order as the GNU Coding Standards.)
766: bindir='${exec_prefix}/bin'
767: sbindir='${exec_prefix}/sbin'
768: libexecdir='${exec_prefix}/libexec'
769: datarootdir='${prefix}/share'
770: datadir='${datarootdir}'
771: sysconfdir='${prefix}/etc'
772: sharedstatedir='${prefix}/com'
773: localstatedir='${prefix}/var'
1.39 misho 774: runstatedir='${localstatedir}/run'
1.1 misho 775: includedir='${prefix}/include'
776: oldincludedir='/usr/include'
777: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778: infodir='${datarootdir}/info'
779: htmldir='${docdir}'
780: dvidir='${docdir}'
781: pdfdir='${docdir}'
782: psdir='${docdir}'
783: libdir='${exec_prefix}/lib'
784: localedir='${datarootdir}/locale'
785: mandir='${datarootdir}/man'
786:
787: ac_prev=
788: ac_dashdash=
789: for ac_option
790: do
791: # If the previous option needs an argument, assign it.
792: if test -n "$ac_prev"; then
793: eval $ac_prev=\$ac_option
794: ac_prev=
795: continue
796: fi
797:
798: case $ac_option in
1.7 misho 799: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800: *=) ac_optarg= ;;
801: *) ac_optarg=yes ;;
1.1 misho 802: esac
803:
804: case $ac_dashdash$ac_option in
805: --)
806: ac_dashdash=yes ;;
807:
808: -bindir | --bindir | --bindi | --bind | --bin | --bi)
809: ac_prev=bindir ;;
810: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811: bindir=$ac_optarg ;;
812:
813: -build | --build | --buil | --bui | --bu)
814: ac_prev=build_alias ;;
815: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816: build_alias=$ac_optarg ;;
817:
818: -cache-file | --cache-file | --cache-fil | --cache-fi \
819: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820: ac_prev=cache_file ;;
821: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823: cache_file=$ac_optarg ;;
824:
825: --config-cache | -C)
826: cache_file=config.cache ;;
827:
828: -datadir | --datadir | --datadi | --datad)
829: ac_prev=datadir ;;
830: -datadir=* | --datadir=* | --datadi=* | --datad=*)
831: datadir=$ac_optarg ;;
832:
833: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834: | --dataroo | --dataro | --datar)
835: ac_prev=datarootdir ;;
836: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838: datarootdir=$ac_optarg ;;
839:
840: -disable-* | --disable-*)
841: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842: # Reject names that are not valid shell variable names.
843: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.39 misho 844: as_fn_error $? "invalid feature name: \`$ac_useropt'"
1.1 misho 845: ac_useropt_orig=$ac_useropt
1.39 misho 846: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 847: case $ac_user_opts in
848: *"
849: "enable_$ac_useropt"
850: "*) ;;
851: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852: ac_unrecognized_sep=', ';;
853: esac
854: eval enable_$ac_useropt=no ;;
855:
856: -docdir | --docdir | --docdi | --doc | --do)
857: ac_prev=docdir ;;
858: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859: docdir=$ac_optarg ;;
860:
861: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862: ac_prev=dvidir ;;
863: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864: dvidir=$ac_optarg ;;
865:
866: -enable-* | --enable-*)
867: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868: # Reject names that are not valid shell variable names.
869: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.39 misho 870: as_fn_error $? "invalid feature name: \`$ac_useropt'"
1.1 misho 871: ac_useropt_orig=$ac_useropt
1.39 misho 872: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 873: case $ac_user_opts in
874: *"
875: "enable_$ac_useropt"
876: "*) ;;
877: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
878: ac_unrecognized_sep=', ';;
879: esac
880: eval enable_$ac_useropt=\$ac_optarg ;;
881:
882: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884: | --exec | --exe | --ex)
885: ac_prev=exec_prefix ;;
886: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888: | --exec=* | --exe=* | --ex=*)
889: exec_prefix=$ac_optarg ;;
890:
891: -gas | --gas | --ga | --g)
892: # Obsolete; use --with-gas.
893: with_gas=yes ;;
894:
895: -help | --help | --hel | --he | -h)
896: ac_init_help=long ;;
897: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898: ac_init_help=recursive ;;
899: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900: ac_init_help=short ;;
901:
902: -host | --host | --hos | --ho)
903: ac_prev=host_alias ;;
904: -host=* | --host=* | --hos=* | --ho=*)
905: host_alias=$ac_optarg ;;
906:
907: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908: ac_prev=htmldir ;;
909: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910: | --ht=*)
911: htmldir=$ac_optarg ;;
912:
913: -includedir | --includedir | --includedi | --included | --include \
914: | --includ | --inclu | --incl | --inc)
915: ac_prev=includedir ;;
916: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917: | --includ=* | --inclu=* | --incl=* | --inc=*)
918: includedir=$ac_optarg ;;
919:
920: -infodir | --infodir | --infodi | --infod | --info | --inf)
921: ac_prev=infodir ;;
922: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923: infodir=$ac_optarg ;;
924:
925: -libdir | --libdir | --libdi | --libd)
926: ac_prev=libdir ;;
927: -libdir=* | --libdir=* | --libdi=* | --libd=*)
928: libdir=$ac_optarg ;;
929:
930: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931: | --libexe | --libex | --libe)
932: ac_prev=libexecdir ;;
933: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934: | --libexe=* | --libex=* | --libe=*)
935: libexecdir=$ac_optarg ;;
936:
937: -localedir | --localedir | --localedi | --localed | --locale)
938: ac_prev=localedir ;;
939: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940: localedir=$ac_optarg ;;
941:
942: -localstatedir | --localstatedir | --localstatedi | --localstated \
943: | --localstate | --localstat | --localsta | --localst | --locals)
944: ac_prev=localstatedir ;;
945: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947: localstatedir=$ac_optarg ;;
948:
949: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950: ac_prev=mandir ;;
951: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952: mandir=$ac_optarg ;;
953:
954: -nfp | --nfp | --nf)
955: # Obsolete; use --without-fp.
956: with_fp=no ;;
957:
958: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959: | --no-cr | --no-c | -n)
960: no_create=yes ;;
961:
962: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964: no_recursion=yes ;;
965:
966: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968: | --oldin | --oldi | --old | --ol | --o)
969: ac_prev=oldincludedir ;;
970: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973: oldincludedir=$ac_optarg ;;
974:
975: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976: ac_prev=prefix ;;
977: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978: prefix=$ac_optarg ;;
979:
980: -program-prefix | --program-prefix | --program-prefi | --program-pref \
981: | --program-pre | --program-pr | --program-p)
982: ac_prev=program_prefix ;;
983: -program-prefix=* | --program-prefix=* | --program-prefi=* \
984: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985: program_prefix=$ac_optarg ;;
986:
987: -program-suffix | --program-suffix | --program-suffi | --program-suff \
988: | --program-suf | --program-su | --program-s)
989: ac_prev=program_suffix ;;
990: -program-suffix=* | --program-suffix=* | --program-suffi=* \
991: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992: program_suffix=$ac_optarg ;;
993:
994: -program-transform-name | --program-transform-name \
995: | --program-transform-nam | --program-transform-na \
996: | --program-transform-n | --program-transform- \
997: | --program-transform | --program-transfor \
998: | --program-transfo | --program-transf \
999: | --program-trans | --program-tran \
1000: | --progr-tra | --program-tr | --program-t)
1001: ac_prev=program_transform_name ;;
1002: -program-transform-name=* | --program-transform-name=* \
1003: | --program-transform-nam=* | --program-transform-na=* \
1004: | --program-transform-n=* | --program-transform-=* \
1005: | --program-transform=* | --program-transfor=* \
1006: | --program-transfo=* | --program-transf=* \
1007: | --program-trans=* | --program-tran=* \
1008: | --progr-tra=* | --program-tr=* | --program-t=*)
1009: program_transform_name=$ac_optarg ;;
1010:
1011: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012: ac_prev=pdfdir ;;
1013: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014: pdfdir=$ac_optarg ;;
1015:
1016: -psdir | --psdir | --psdi | --psd | --ps)
1017: ac_prev=psdir ;;
1018: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019: psdir=$ac_optarg ;;
1020:
1021: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022: | -silent | --silent | --silen | --sile | --sil)
1023: silent=yes ;;
1024:
1.39 misho 1025: -runstatedir | --runstatedir | --runstatedi | --runstated \
1026: | --runstate | --runstat | --runsta | --runst | --runs \
1027: | --run | --ru | --r)
1028: ac_prev=runstatedir ;;
1029: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1030: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1031: | --run=* | --ru=* | --r=*)
1032: runstatedir=$ac_optarg ;;
1033:
1.1 misho 1034: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035: ac_prev=sbindir ;;
1036: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037: | --sbi=* | --sb=*)
1038: sbindir=$ac_optarg ;;
1039:
1040: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042: | --sharedst | --shareds | --shared | --share | --shar \
1043: | --sha | --sh)
1044: ac_prev=sharedstatedir ;;
1045: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048: | --sha=* | --sh=*)
1049: sharedstatedir=$ac_optarg ;;
1050:
1051: -site | --site | --sit)
1052: ac_prev=site ;;
1053: -site=* | --site=* | --sit=*)
1054: site=$ac_optarg ;;
1055:
1056: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057: ac_prev=srcdir ;;
1058: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059: srcdir=$ac_optarg ;;
1060:
1061: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062: | --syscon | --sysco | --sysc | --sys | --sy)
1063: ac_prev=sysconfdir ;;
1064: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066: sysconfdir=$ac_optarg ;;
1067:
1068: -target | --target | --targe | --targ | --tar | --ta | --t)
1069: ac_prev=target_alias ;;
1070: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071: target_alias=$ac_optarg ;;
1072:
1073: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074: verbose=yes ;;
1075:
1076: -version | --version | --versio | --versi | --vers | -V)
1077: ac_init_version=: ;;
1078:
1079: -with-* | --with-*)
1080: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081: # Reject names that are not valid shell variable names.
1082: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.39 misho 1083: as_fn_error $? "invalid package name: \`$ac_useropt'"
1.1 misho 1084: ac_useropt_orig=$ac_useropt
1.39 misho 1085: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 1086: case $ac_user_opts in
1087: *"
1088: "with_$ac_useropt"
1089: "*) ;;
1090: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091: ac_unrecognized_sep=', ';;
1092: esac
1093: eval with_$ac_useropt=\$ac_optarg ;;
1094:
1095: -without-* | --without-*)
1096: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097: # Reject names that are not valid shell variable names.
1098: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.39 misho 1099: as_fn_error $? "invalid package name: \`$ac_useropt'"
1.1 misho 1100: ac_useropt_orig=$ac_useropt
1.39 misho 1101: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 misho 1102: case $ac_user_opts in
1103: *"
1104: "with_$ac_useropt"
1105: "*) ;;
1106: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107: ac_unrecognized_sep=', ';;
1108: esac
1109: eval with_$ac_useropt=no ;;
1110:
1111: --x)
1112: # Obsolete; use --with-x.
1113: with_x=yes ;;
1114:
1115: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116: | --x-incl | --x-inc | --x-in | --x-i)
1117: ac_prev=x_includes ;;
1118: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120: x_includes=$ac_optarg ;;
1121:
1122: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124: ac_prev=x_libraries ;;
1125: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127: x_libraries=$ac_optarg ;;
1128:
1.7 misho 1129: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130: Try \`$0 --help' for more information"
1.1 misho 1131: ;;
1132:
1133: *=*)
1134: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135: # Reject names that are not valid shell variable names.
1.2 misho 1136: case $ac_envvar in #(
1137: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.7 misho 1138: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.2 misho 1139: esac
1.1 misho 1140: eval $ac_envvar=\$ac_optarg
1141: export $ac_envvar ;;
1142:
1143: *)
1144: # FIXME: should be removed in autoconf 3.0.
1.39 misho 1145: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misho 1146: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.39 misho 1147: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.7 misho 1148: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misho 1149: ;;
1150:
1151: esac
1152: done
1153:
1154: if test -n "$ac_prev"; then
1155: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.7 misho 1156: as_fn_error $? "missing argument to $ac_option"
1.1 misho 1157: fi
1158:
1159: if test -n "$ac_unrecognized_opts"; then
1160: case $enable_option_checking in
1161: no) ;;
1.7 misho 1162: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.39 misho 1163: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.1 misho 1164: esac
1165: fi
1166:
1167: # Check all directory arguments for consistency.
1168: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169: datadir sysconfdir sharedstatedir localstatedir includedir \
1170: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.39 misho 1171: libdir localedir mandir runstatedir
1.1 misho 1172: do
1173: eval ac_val=\$$ac_var
1174: # Remove trailing slashes.
1175: case $ac_val in
1176: */ )
1177: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178: eval $ac_var=\$ac_val;;
1179: esac
1180: # Be sure to have absolute directory names.
1181: case $ac_val in
1182: [\\/$]* | ?:[\\/]* ) continue;;
1183: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184: esac
1.7 misho 1185: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misho 1186: done
1187:
1188: # There might be people who depend on the old broken behavior: `$host'
1189: # used to hold the argument of --host etc.
1190: # FIXME: To remove some day.
1191: build=$build_alias
1192: host=$host_alias
1193: target=$target_alias
1194:
1195: # FIXME: To remove some day.
1196: if test "x$host_alias" != x; then
1197: if test "x$build_alias" = x; then
1198: cross_compiling=maybe
1199: elif test "x$build_alias" != "x$host_alias"; then
1200: cross_compiling=yes
1201: fi
1202: fi
1203:
1204: ac_tool_prefix=
1205: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206:
1207: test "$silent" = yes && exec 6>/dev/null
1208:
1209:
1210: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211: ac_ls_di=`ls -di .` &&
1212: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.7 misho 1213: as_fn_error $? "working directory cannot be determined"
1.1 misho 1214: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.7 misho 1215: as_fn_error $? "pwd does not report name of working directory"
1.1 misho 1216:
1217:
1218: # Find the source files, if location was not specified.
1219: if test -z "$srcdir"; then
1220: ac_srcdir_defaulted=yes
1221: # Try the directory containing this script, then the parent directory.
1222: ac_confdir=`$as_dirname -- "$as_myself" ||
1223: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224: X"$as_myself" : 'X\(//\)[^/]' \| \
1225: X"$as_myself" : 'X\(//\)$' \| \
1226: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.39 misho 1227: printf "%s\n" X"$as_myself" |
1.1 misho 1228: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229: s//\1/
1230: q
1231: }
1232: /^X\(\/\/\)[^/].*/{
1233: s//\1/
1234: q
1235: }
1236: /^X\(\/\/\)$/{
1237: s//\1/
1238: q
1239: }
1240: /^X\(\/\).*/{
1241: s//\1/
1242: q
1243: }
1244: s/.*/./; q'`
1245: srcdir=$ac_confdir
1246: if test ! -r "$srcdir/$ac_unique_file"; then
1247: srcdir=..
1248: fi
1249: else
1250: ac_srcdir_defaulted=no
1251: fi
1252: if test ! -r "$srcdir/$ac_unique_file"; then
1253: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.7 misho 1254: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 misho 1255: fi
1256: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257: ac_abs_confdir=`(
1.7 misho 1258: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 misho 1259: pwd)`
1260: # When building in place, set srcdir=.
1261: if test "$ac_abs_confdir" = "$ac_pwd"; then
1262: srcdir=.
1263: fi
1264: # Remove unnecessary trailing slashes from srcdir.
1265: # Double slashes in file names in object file debugging info
1266: # mess up M-x gdb in Emacs.
1267: case $srcdir in
1268: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269: esac
1270: for ac_var in $ac_precious_vars; do
1271: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272: eval ac_env_${ac_var}_value=\$${ac_var}
1273: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275: done
1276:
1277: #
1278: # Report the --help message.
1279: #
1280: if test "$ac_init_help" = "long"; then
1281: # Omit some internal or obsolete options to make the list less imposing.
1282: # This message is too long to be a string in the A/UX 3.1 sh.
1283: cat <<_ACEOF
1.39.2.1! misho 1284: \`configure' configures libaitrpc 9.6 to adapt to many kinds of systems.
1.1 misho 1285:
1286: Usage: $0 [OPTION]... [VAR=VALUE]...
1287:
1288: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289: VAR=VALUE. See below for descriptions of some of the useful variables.
1290:
1291: Defaults for the options are specified in brackets.
1292:
1293: Configuration:
1294: -h, --help display this help and exit
1295: --help=short display options specific to this package
1296: --help=recursive display the short help of all the included packages
1297: -V, --version display version information and exit
1.7 misho 1298: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misho 1299: --cache-file=FILE cache test results in FILE [disabled]
1300: -C, --config-cache alias for \`--cache-file=config.cache'
1301: -n, --no-create do not create output files
1302: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303:
1304: Installation directories:
1305: --prefix=PREFIX install architecture-independent files in PREFIX
1306: [$ac_default_prefix]
1307: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308: [PREFIX]
1309:
1310: By default, \`make install' will install all the files in
1311: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313: for instance \`--prefix=\$HOME'.
1314:
1315: For better control, use the options below.
1316:
1317: Fine tuning of the installation directories:
1318: --bindir=DIR user executables [EPREFIX/bin]
1319: --sbindir=DIR system admin executables [EPREFIX/sbin]
1320: --libexecdir=DIR program executables [EPREFIX/libexec]
1321: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.39 misho 1324: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 misho 1325: --libdir=DIR object code libraries [EPREFIX/lib]
1326: --includedir=DIR C header files [PREFIX/include]
1327: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330: --infodir=DIR info documentation [DATAROOTDIR/info]
1331: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332: --mandir=DIR man documentation [DATAROOTDIR/man]
1333: --docdir=DIR documentation root [DATAROOTDIR/doc/libaitrpc]
1334: --htmldir=DIR html documentation [DOCDIR]
1335: --dvidir=DIR dvi documentation [DOCDIR]
1336: --pdfdir=DIR pdf documentation [DOCDIR]
1337: --psdir=DIR ps documentation [DOCDIR]
1338: _ACEOF
1339:
1340: cat <<\_ACEOF
1341:
1342: System types:
1343: --build=BUILD configure for building on BUILD [guessed]
1344: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345: --target=TARGET configure for building compilers for TARGET [HOST]
1346: _ACEOF
1347: fi
1348:
1349: if test -n "$ac_init_help"; then
1350: case $ac_init_help in
1.39.2.1! misho 1351: short | recursive ) echo "Configuration of libaitrpc 9.6:";;
1.1 misho 1352: esac
1353: cat <<\_ACEOF
1354:
1355: Optional Features:
1356: --disable-option-checking ignore unrecognized --enable/--with options
1357: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1358: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1359: --enable-debug Build library with debug information and additional messages
1.35 misho 1360: --disable-server Disable RPC server
1.12 misho 1361: --enable-cli-res-zcpy Build library with zero-copy return array from RPC client
1.24 misho 1362: --enable-tcp_sess_exp Build library with TCP session expiration
1363:
1364: Optional Packages:
1365: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.35 misho 1367: --with-timeout_period=s Build library with RPC timeout period
1368: --with-blob_timeout=sec Build library with BLOB timeout period
1.1 misho 1369:
1370: Some influential environment variables:
1371: CC C compiler command
1372: CFLAGS C compiler flags
1373: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374: nonstandard directory <lib dir>
1375: LIBS libraries to pass to the linker, e.g. -l<library>
1.7 misho 1376: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 misho 1377: you have headers in a nonstandard directory <include dir>
1378:
1379: Use these variables to override the choices made by `configure' or to help
1380: it to find libraries and programs with nonstandard names/locations.
1381:
1.5 misho 1382: Report bugs to <misho@elwix.org>.
1.1 misho 1383: _ACEOF
1384: ac_status=$?
1385: fi
1386:
1387: if test "$ac_init_help" = "recursive"; then
1388: # If there are subdirs, report their specific --help.
1389: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390: test -d "$ac_dir" ||
1391: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392: continue
1393: ac_builddir=.
1394:
1395: case "$ac_dir" in
1396: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397: *)
1.39 misho 1398: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 1399: # A ".." for each directory in $ac_dir_suffix.
1.39 misho 1400: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 1401: case $ac_top_builddir_sub in
1402: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404: esac ;;
1405: esac
1406: ac_abs_top_builddir=$ac_pwd
1407: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408: # for backward compatibility:
1409: ac_top_builddir=$ac_top_build_prefix
1410:
1411: case $srcdir in
1412: .) # We are building in place.
1413: ac_srcdir=.
1414: ac_top_srcdir=$ac_top_builddir_sub
1415: ac_abs_top_srcdir=$ac_pwd ;;
1416: [\\/]* | ?:[\\/]* ) # Absolute name.
1417: ac_srcdir=$srcdir$ac_dir_suffix;
1418: ac_top_srcdir=$srcdir
1419: ac_abs_top_srcdir=$srcdir ;;
1420: *) # Relative name.
1421: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422: ac_top_srcdir=$ac_top_build_prefix$srcdir
1423: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424: esac
1425: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426:
1427: cd "$ac_dir" || { ac_status=$?; continue; }
1.39 misho 1428: # Check for configure.gnu first; this name is used for a wrapper for
1429: # Metaconfig's "Configure" on case-insensitive file systems.
1.1 misho 1430: if test -f "$ac_srcdir/configure.gnu"; then
1431: echo &&
1432: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433: elif test -f "$ac_srcdir/configure"; then
1434: echo &&
1435: $SHELL "$ac_srcdir/configure" --help=recursive
1436: else
1.39 misho 1437: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 misho 1438: fi || ac_status=$?
1439: cd "$ac_pwd" || { ac_status=$?; break; }
1440: done
1441: fi
1442:
1443: test -n "$ac_init_help" && exit $ac_status
1444: if $ac_init_version; then
1445: cat <<\_ACEOF
1.39.2.1! misho 1446: libaitrpc configure 9.6
1.39 misho 1447: generated by GNU Autoconf 2.71
1.1 misho 1448:
1.39 misho 1449: Copyright (C) 2021 Free Software Foundation, Inc.
1.1 misho 1450: This configure script is free software; the Free Software Foundation
1451: gives unlimited permission to copy, distribute and modify it.
1452: _ACEOF
1453: exit
1454: fi
1455:
1.2 misho 1456: ## ------------------------ ##
1457: ## Autoconf initialization. ##
1458: ## ------------------------ ##
1459:
1460: # ac_fn_c_try_compile LINENO
1461: # --------------------------
1462: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463: ac_fn_c_try_compile ()
1.1 misho 1464: {
1.2 misho 1465: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1466: rm -f conftest.$ac_objext conftest.beam
1.2 misho 1467: if { { ac_try="$ac_compile"
1468: case "(($ac_try" in
1469: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470: *) ac_try_echo=$ac_try;;
1471: esac
1472: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 1473: printf "%s\n" "$ac_try_echo"; } >&5
1.2 misho 1474: (eval "$ac_compile") 2>conftest.err
1475: ac_status=$?
1476: if test -s conftest.err; then
1477: grep -v '^ *+' conftest.err >conftest.er1
1478: cat conftest.er1 >&5
1479: mv -f conftest.er1 conftest.err
1480: fi
1.39 misho 1481: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.2 misho 1482: test $ac_status = 0; } && {
1483: test -z "$ac_c_werror_flag" ||
1484: test ! -s conftest.err
1.39 misho 1485: } && test -s conftest.$ac_objext
1486: then :
1.2 misho 1487: ac_retval=0
1.39 misho 1488: else $as_nop
1489: printf "%s\n" "$as_me: failed program was:" >&5
1.2 misho 1490: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 1491:
1.2 misho 1492: ac_retval=1
1493: fi
1.7 misho 1494: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495: as_fn_set_status $ac_retval
1.1 misho 1496:
1.2 misho 1497: } # ac_fn_c_try_compile
1.1 misho 1498:
1.2 misho 1499: # ac_fn_c_try_link LINENO
1500: # -----------------------
1501: # Try to link conftest.$ac_ext, and return whether this succeeded.
1502: ac_fn_c_try_link ()
1503: {
1504: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1505: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.2 misho 1506: if { { ac_try="$ac_link"
1507: case "(($ac_try" in
1508: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509: *) ac_try_echo=$ac_try;;
1510: esac
1511: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 1512: printf "%s\n" "$ac_try_echo"; } >&5
1.2 misho 1513: (eval "$ac_link") 2>conftest.err
1514: ac_status=$?
1515: if test -s conftest.err; then
1516: grep -v '^ *+' conftest.err >conftest.er1
1517: cat conftest.er1 >&5
1518: mv -f conftest.er1 conftest.err
1519: fi
1.39 misho 1520: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.2 misho 1521: test $ac_status = 0; } && {
1522: test -z "$ac_c_werror_flag" ||
1523: test ! -s conftest.err
1524: } && test -s conftest$ac_exeext && {
1525: test "$cross_compiling" = yes ||
1.12 misho 1526: test -x conftest$ac_exeext
1.39 misho 1527: }
1528: then :
1.2 misho 1529: ac_retval=0
1.39 misho 1530: else $as_nop
1531: printf "%s\n" "$as_me: failed program was:" >&5
1.2 misho 1532: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misho 1533:
1.2 misho 1534: ac_retval=1
1535: fi
1536: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1537: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1538: # interfere with the next link command; also delete a directory that is
1539: # left behind by Apple's compiler. We do this before executing the actions.
1540: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.7 misho 1541: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542: as_fn_set_status $ac_retval
1.1 misho 1543:
1.2 misho 1544: } # ac_fn_c_try_link
1.1 misho 1545:
1.2 misho 1546: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1547: # -------------------------------------------------------
1548: # Tests whether HEADER exists and can be compiled using the include files in
1549: # INCLUDES, setting the cache variable VAR accordingly.
1550: ac_fn_c_check_header_compile ()
1551: {
1552: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1553: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1554: printf %s "checking for $2... " >&6; }
1555: if eval test \${$3+y}
1556: then :
1557: printf %s "(cached) " >&6
1558: else $as_nop
1.2 misho 1559: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1560: /* end confdefs.h. */
1561: $4
1562: #include <$2>
1563: _ACEOF
1.39 misho 1564: if ac_fn_c_try_compile "$LINENO"
1565: then :
1.2 misho 1566: eval "$3=yes"
1.39 misho 1567: else $as_nop
1.2 misho 1568: eval "$3=no"
1569: fi
1.39 misho 1570: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.2 misho 1571: fi
1572: eval ac_res=\$$3
1.39 misho 1573: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574: printf "%s\n" "$ac_res" >&6; }
1.7 misho 1575: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1576:
1577: } # ac_fn_c_check_header_compile
1578:
1579: # ac_fn_c_find_intX_t LINENO BITS VAR
1580: # -----------------------------------
1581: # Finds a signed integer type with width BITS, setting cache variable VAR
1582: # accordingly.
1583: ac_fn_c_find_intX_t ()
1584: {
1585: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1587: printf %s "checking for int$2_t... " >&6; }
1588: if eval test \${$3+y}
1589: then :
1590: printf %s "(cached) " >&6
1591: else $as_nop
1.2 misho 1592: eval "$3=no"
1.7 misho 1593: # Order is important - never check a type that is potentially smaller
1594: # than half of the expected target width.
1.2 misho 1595: for ac_type in int$2_t 'int' 'long int' \
1596: 'long long int' 'short int' 'signed char'; do
1597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598: /* end confdefs.h. */
1599: $ac_includes_default
1.7 misho 1600: enum { N = $2 / 2 - 1 };
1.2 misho 1601: int
1.39 misho 1602: main (void)
1.2 misho 1603: {
1.7 misho 1604: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1.12 misho 1605: test_array [0] = 0;
1606: return test_array [0];
1.2 misho 1607:
1608: ;
1609: return 0;
1610: }
1611: _ACEOF
1.39 misho 1612: if ac_fn_c_try_compile "$LINENO"
1613: then :
1.2 misho 1614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615: /* end confdefs.h. */
1616: $ac_includes_default
1.7 misho 1617: enum { N = $2 / 2 - 1 };
1.2 misho 1618: int
1.39 misho 1619: main (void)
1.2 misho 1620: {
1.7 misho 1621: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1622: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1.12 misho 1623: test_array [0] = 0;
1624: return test_array [0];
1.2 misho 1625:
1626: ;
1627: return 0;
1628: }
1629: _ACEOF
1.39 misho 1630: if ac_fn_c_try_compile "$LINENO"
1631: then :
1.2 misho 1632:
1.39 misho 1633: else $as_nop
1.2 misho 1634: case $ac_type in #(
1635: int$2_t) :
1636: eval "$3=yes" ;; #(
1637: *) :
1638: eval "$3=\$ac_type" ;;
1639: esac
1640: fi
1.39 misho 1641: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.2 misho 1642: fi
1.39 misho 1643: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1644: if eval test \"x\$"$3"\" = x"no"
1645: then :
1.2 misho 1646:
1.39 misho 1647: else $as_nop
1.2 misho 1648: break
1649: fi
1650: done
1651: fi
1652: eval ac_res=\$$3
1.39 misho 1653: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654: printf "%s\n" "$ac_res" >&6; }
1.7 misho 1655: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1656:
1657: } # ac_fn_c_find_intX_t
1658:
1.5 misho 1659: # ac_fn_c_find_uintX_t LINENO BITS VAR
1660: # ------------------------------------
1661: # Finds an unsigned integer type with width BITS, setting cache variable VAR
1662: # accordingly.
1663: ac_fn_c_find_uintX_t ()
1664: {
1665: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1666: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1667: printf %s "checking for uint$2_t... " >&6; }
1668: if eval test \${$3+y}
1669: then :
1670: printf %s "(cached) " >&6
1671: else $as_nop
1.5 misho 1672: eval "$3=no"
1.7 misho 1673: # Order is important - never check a type that is potentially smaller
1674: # than half of the expected target width.
1.5 misho 1675: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1676: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1677: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678: /* end confdefs.h. */
1679: $ac_includes_default
1680: int
1.39 misho 1681: main (void)
1.5 misho 1682: {
1.7 misho 1683: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.12 misho 1684: test_array [0] = 0;
1685: return test_array [0];
1.5 misho 1686:
1687: ;
1688: return 0;
1689: }
1690: _ACEOF
1.39 misho 1691: if ac_fn_c_try_compile "$LINENO"
1692: then :
1.5 misho 1693: case $ac_type in #(
1694: uint$2_t) :
1695: eval "$3=yes" ;; #(
1696: *) :
1697: eval "$3=\$ac_type" ;;
1698: esac
1699: fi
1.39 misho 1700: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701: if eval test \"x\$"$3"\" = x"no"
1702: then :
1.5 misho 1703:
1.39 misho 1704: else $as_nop
1.5 misho 1705: break
1706: fi
1707: done
1708: fi
1709: eval ac_res=\$$3
1.39 misho 1710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711: printf "%s\n" "$ac_res" >&6; }
1.7 misho 1712: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.5 misho 1713:
1714: } # ac_fn_c_find_uintX_t
1715:
1.2 misho 1716: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1717: # -------------------------------------------
1718: # Tests whether TYPE exists after having included INCLUDES, setting cache
1719: # variable VAR accordingly.
1720: ac_fn_c_check_type ()
1721: {
1722: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1723: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724: printf %s "checking for $2... " >&6; }
1725: if eval test \${$3+y}
1726: then :
1727: printf %s "(cached) " >&6
1728: else $as_nop
1.2 misho 1729: eval "$3=no"
1730: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731: /* end confdefs.h. */
1732: $4
1733: int
1.39 misho 1734: main (void)
1.2 misho 1735: {
1736: if (sizeof ($2))
1737: return 0;
1738: ;
1739: return 0;
1740: }
1741: _ACEOF
1.39 misho 1742: if ac_fn_c_try_compile "$LINENO"
1743: then :
1.2 misho 1744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745: /* end confdefs.h. */
1746: $4
1747: int
1.39 misho 1748: main (void)
1.2 misho 1749: {
1750: if (sizeof (($2)))
1751: return 0;
1752: ;
1753: return 0;
1754: }
1755: _ACEOF
1.39 misho 1756: if ac_fn_c_try_compile "$LINENO"
1757: then :
1.2 misho 1758:
1.39 misho 1759: else $as_nop
1.2 misho 1760: eval "$3=yes"
1761: fi
1.39 misho 1762: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.2 misho 1763: fi
1.39 misho 1764: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.2 misho 1765: fi
1766: eval ac_res=\$$3
1.39 misho 1767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768: printf "%s\n" "$ac_res" >&6; }
1.7 misho 1769: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1770:
1771: } # ac_fn_c_check_type
1772:
1773: # ac_fn_c_check_func LINENO FUNC VAR
1774: # ----------------------------------
1775: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776: ac_fn_c_check_func ()
1777: {
1778: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 1779: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780: printf %s "checking for $2... " >&6; }
1781: if eval test \${$3+y}
1782: then :
1783: printf %s "(cached) " >&6
1784: else $as_nop
1.2 misho 1785: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786: /* end confdefs.h. */
1787: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789: #define $2 innocuous_$2
1790:
1791: /* System header to define __stub macros and hopefully few prototypes,
1.39 misho 1792: which can conflict with char $2 (); below. */
1.2 misho 1793:
1.39 misho 1794: #include <limits.h>
1.2 misho 1795: #undef $2
1796:
1797: /* Override any GCC internal prototype to avoid an error.
1798: Use char because int might match the return type of a GCC
1799: builtin and then its argument prototype would still apply. */
1800: #ifdef __cplusplus
1801: extern "C"
1802: #endif
1803: char $2 ();
1804: /* The GNU C library defines this for functions which it implements
1805: to always fail with ENOSYS. Some functions are actually named
1806: something starting with __ and the normal name is an alias. */
1807: #if defined __stub_$2 || defined __stub___$2
1808: choke me
1809: #endif
1810:
1811: int
1.39 misho 1812: main (void)
1.2 misho 1813: {
1814: return $2 ();
1815: ;
1816: return 0;
1817: }
1818: _ACEOF
1.39 misho 1819: if ac_fn_c_try_link "$LINENO"
1820: then :
1.2 misho 1821: eval "$3=yes"
1.39 misho 1822: else $as_nop
1.2 misho 1823: eval "$3=no"
1824: fi
1.39 misho 1825: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.2 misho 1826: conftest$ac_exeext conftest.$ac_ext
1827: fi
1828: eval ac_res=\$$3
1.39 misho 1829: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830: printf "%s\n" "$ac_res" >&6; }
1.7 misho 1831: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1832:
1833: } # ac_fn_c_check_func
1.39 misho 1834:
1835: # ac_fn_c_try_run LINENO
1836: # ----------------------
1837: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1838: # executables *can* be run.
1839: ac_fn_c_try_run ()
1840: {
1841: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842: if { { ac_try="$ac_link"
1843: case "(($ac_try" in
1844: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845: *) ac_try_echo=$ac_try;;
1846: esac
1847: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848: printf "%s\n" "$ac_try_echo"; } >&5
1849: (eval "$ac_link") 2>&5
1850: ac_status=$?
1851: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1853: { { case "(($ac_try" in
1854: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855: *) ac_try_echo=$ac_try;;
1856: esac
1857: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858: printf "%s\n" "$ac_try_echo"; } >&5
1859: (eval "$ac_try") 2>&5
1860: ac_status=$?
1861: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862: test $ac_status = 0; }; }
1863: then :
1864: ac_retval=0
1865: else $as_nop
1866: printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1867: printf "%s\n" "$as_me: failed program was:" >&5
1868: sed 's/^/| /' conftest.$ac_ext >&5
1869:
1870: ac_retval=$ac_status
1871: fi
1872: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874: as_fn_set_status $ac_retval
1875:
1876: } # ac_fn_c_try_run
1877: ac_configure_args_raw=
1878: for ac_arg
1879: do
1880: case $ac_arg in
1881: *\'*)
1882: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883: esac
1884: as_fn_append ac_configure_args_raw " '$ac_arg'"
1885: done
1886:
1887: case $ac_configure_args_raw in
1888: *$as_nl*)
1889: ac_safe_unquote= ;;
1890: *)
1891: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1892: ac_unsafe_a="$ac_unsafe_z#~"
1893: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1894: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1895: esac
1896:
1.2 misho 1897: cat >config.log <<_ACEOF
1898: This file contains any messages produced by compilers while
1899: running configure, to aid debugging if configure makes a mistake.
1900:
1.39.2.1! misho 1901: It was created by libaitrpc $as_me 9.6, which was
1.39 misho 1902: generated by GNU Autoconf 2.71. Invocation command line was
1.2 misho 1903:
1.39 misho 1904: $ $0$ac_configure_args_raw
1.2 misho 1905:
1906: _ACEOF
1907: exec 5>>config.log
1908: {
1909: cat <<_ASUNAME
1910: ## --------- ##
1911: ## Platform. ##
1912: ## --------- ##
1913:
1914: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919:
1920: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1922:
1923: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930:
1931: _ASUNAME
1932:
1933: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934: for as_dir in $PATH
1935: do
1936: IFS=$as_save_IFS
1.39 misho 1937: case $as_dir in #(((
1938: '') as_dir=./ ;;
1939: */) ;;
1940: *) as_dir=$as_dir/ ;;
1941: esac
1942: printf "%s\n" "PATH: $as_dir"
1.2 misho 1943: done
1944: IFS=$as_save_IFS
1945:
1946: } >&5
1947:
1948: cat >&5 <<_ACEOF
1949:
1950:
1951: ## ----------- ##
1952: ## Core tests. ##
1953: ## ----------- ##
1.1 misho 1954:
1955: _ACEOF
1956:
1957:
1958: # Keep a trace of the command line.
1959: # Strip out --no-create and --no-recursion so they do not pile up.
1960: # Strip out --silent because we don't want to record it for future runs.
1961: # Also quote any args containing shell meta-characters.
1962: # Make two passes to allow for proper duplicate-argument suppression.
1963: ac_configure_args=
1964: ac_configure_args0=
1965: ac_configure_args1=
1966: ac_must_keep_next=false
1967: for ac_pass in 1 2
1968: do
1969: for ac_arg
1970: do
1971: case $ac_arg in
1972: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974: | -silent | --silent | --silen | --sile | --sil)
1975: continue ;;
1976: *\'*)
1.39 misho 1977: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 1978: esac
1979: case $ac_pass in
1.2 misho 1980: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.1 misho 1981: 2)
1.2 misho 1982: as_fn_append ac_configure_args1 " '$ac_arg'"
1.1 misho 1983: if test $ac_must_keep_next = true; then
1984: ac_must_keep_next=false # Got value, back to normal.
1985: else
1986: case $ac_arg in
1987: *=* | --config-cache | -C | -disable-* | --disable-* \
1988: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990: | -with-* | --with-* | -without-* | --without-* | --x)
1991: case "$ac_configure_args0 " in
1992: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993: esac
1994: ;;
1995: -* ) ac_must_keep_next=true ;;
1996: esac
1997: fi
1.2 misho 1998: as_fn_append ac_configure_args " '$ac_arg'"
1.1 misho 1999: ;;
2000: esac
2001: done
2002: done
1.2 misho 2003: { ac_configure_args0=; unset ac_configure_args0;}
2004: { ac_configure_args1=; unset ac_configure_args1;}
1.1 misho 2005:
2006: # When interrupted or exit'd, cleanup temporary files, and complete
2007: # config.log. We remove comments because anyway the quotes in there
2008: # would cause problems or look ugly.
2009: # WARNING: Use '\'' to represent an apostrophe within the trap.
2010: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011: trap 'exit_status=$?
1.39 misho 2012: # Sanitize IFS.
2013: IFS=" "" $as_nl"
1.1 misho 2014: # Save into config.log some information that might help in debugging.
2015: {
2016: echo
2017:
1.39 misho 2018: printf "%s\n" "## ---------------- ##
1.1 misho 2019: ## Cache variables. ##
1.7 misho 2020: ## ---------------- ##"
1.1 misho 2021: echo
2022: # The following way of writing the cache mishandles newlines in values,
2023: (
2024: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025: eval ac_val=\$$ac_var
2026: case $ac_val in #(
2027: *${as_nl}*)
2028: case $ac_var in #(
1.39 misho 2029: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 2031: esac
2032: case $ac_var in #(
2033: _ | IFS | as_nl) ;; #(
2034: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.2 misho 2035: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 misho 2036: esac ;;
2037: esac
2038: done
2039: (set) 2>&1 |
2040: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041: *${as_nl}ac_space=\ *)
2042: sed -n \
2043: "s/'\''/'\''\\\\'\'''\''/g;
2044: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045: ;; #(
2046: *)
2047: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048: ;;
2049: esac |
2050: sort
2051: )
2052: echo
2053:
1.39 misho 2054: printf "%s\n" "## ----------------- ##
1.1 misho 2055: ## Output variables. ##
1.7 misho 2056: ## ----------------- ##"
1.1 misho 2057: echo
2058: for ac_var in $ac_subst_vars
2059: do
2060: eval ac_val=\$$ac_var
2061: case $ac_val in
1.39 misho 2062: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 2063: esac
1.39 misho 2064: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 misho 2065: done | sort
2066: echo
2067:
2068: if test -n "$ac_subst_files"; then
1.39 misho 2069: printf "%s\n" "## ------------------- ##
1.1 misho 2070: ## File substitutions. ##
1.7 misho 2071: ## ------------------- ##"
1.1 misho 2072: echo
2073: for ac_var in $ac_subst_files
2074: do
2075: eval ac_val=\$$ac_var
2076: case $ac_val in
1.39 misho 2077: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 misho 2078: esac
1.39 misho 2079: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 misho 2080: done | sort
2081: echo
2082: fi
2083:
2084: if test -s confdefs.h; then
1.39 misho 2085: printf "%s\n" "## ----------- ##
1.1 misho 2086: ## confdefs.h. ##
1.7 misho 2087: ## ----------- ##"
1.1 misho 2088: echo
2089: cat confdefs.h
2090: echo
2091: fi
2092: test "$ac_signal" != 0 &&
1.39 misho 2093: printf "%s\n" "$as_me: caught signal $ac_signal"
2094: printf "%s\n" "$as_me: exit $exit_status"
1.1 misho 2095: } >&5
2096: rm -f core *.core core.conftest.* &&
2097: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098: exit $exit_status
2099: ' 0
2100: for ac_signal in 1 2 13 15; do
1.2 misho 2101: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.1 misho 2102: done
2103: ac_signal=0
2104:
2105: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2106: rm -f -r conftest* confdefs.h
2107:
1.39 misho 2108: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.2 misho 2109:
1.1 misho 2110: # Predefined preprocessor variables.
2111:
1.39 misho 2112: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.1 misho 2113:
1.39 misho 2114: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.1 misho 2115:
1.39 misho 2116: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.1 misho 2117:
1.39 misho 2118: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.1 misho 2119:
1.39 misho 2120: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.1 misho 2121:
1.39 misho 2122: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.1 misho 2123:
2124:
2125: # Let the site file select an alternate cache file if it wants to.
2126: # Prefer an explicitly selected file to automatically selected ones.
2127: if test -n "$CONFIG_SITE"; then
1.39 misho 2128: ac_site_files="$CONFIG_SITE"
1.1 misho 2129: elif test "x$prefix" != xNONE; then
1.39 misho 2130: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.1 misho 2131: else
1.39 misho 2132: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1 misho 2133: fi
1.39 misho 2134:
2135: for ac_site_file in $ac_site_files
1.1 misho 2136: do
1.39 misho 2137: case $ac_site_file in #(
2138: */*) :
2139: ;; #(
2140: *) :
2141: ac_site_file=./$ac_site_file ;;
2142: esac
2143: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2144: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.1 misho 2146: sed 's/^/| /' "$ac_site_file" >&5
1.7 misho 2147: . "$ac_site_file" \
1.39 misho 2148: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.7 misho 2150: as_fn_error $? "failed to load site script $ac_site_file
2151: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2152: fi
2153: done
2154:
2155: if test -r "$cache_file"; then
1.7 misho 2156: # Some versions of bash will fail to source /dev/null (special files
2157: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2158: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.39 misho 2159: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.1 misho 2161: case $cache_file in
2162: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163: *) . "./$cache_file";;
2164: esac
2165: fi
2166: else
1.39 misho 2167: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.1 misho 2169: >$cache_file
2170: fi
2171:
1.39 misho 2172: # Test code for whether the C compiler supports C89 (global declarations)
2173: ac_c_conftest_c89_globals='
2174: /* Does the compiler advertise C89 conformance?
2175: Do not test the value of __STDC__, because some compilers set it to 0
2176: while being otherwise adequately conformant. */
2177: #if !defined __STDC__
2178: # error "Compiler does not advertise C89 conformance"
2179: #endif
2180:
2181: #include <stddef.h>
2182: #include <stdarg.h>
2183: struct stat;
2184: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2185: struct buf { int x; };
2186: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2187: static char *e (p, i)
2188: char **p;
2189: int i;
2190: {
2191: return p[i];
2192: }
2193: static char *f (char * (*g) (char **, int), char **p, ...)
2194: {
2195: char *s;
2196: va_list v;
2197: va_start (v,p);
2198: s = g (p, va_arg (v,int));
2199: va_end (v);
2200: return s;
2201: }
2202:
2203: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2204: function prototypes and stuff, but not \xHH hex character constants.
2205: These do not provoke an error unfortunately, instead are silently treated
2206: as an "x". The following induces an error, until -std is added to get
2207: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2208: array size at least. It is necessary to write \x00 == 0 to get something
2209: that is true only with -std. */
2210: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2211:
2212: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2213: inside strings and character constants. */
2214: #define FOO(x) '\''x'\''
2215: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2216:
2217: int test (int i, double x);
2218: struct s1 {int (*f) (int a);};
2219: struct s2 {int (*f) (double a);};
2220: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2221: int, int);'
2222:
2223: # Test code for whether the C compiler supports C89 (body of main).
2224: ac_c_conftest_c89_main='
2225: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2226: '
2227:
2228: # Test code for whether the C compiler supports C99 (global declarations)
2229: ac_c_conftest_c99_globals='
2230: // Does the compiler advertise C99 conformance?
2231: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2232: # error "Compiler does not advertise C99 conformance"
2233: #endif
2234:
2235: #include <stdbool.h>
2236: extern int puts (const char *);
2237: extern int printf (const char *, ...);
2238: extern int dprintf (int, const char *, ...);
2239: extern void *malloc (size_t);
2240:
2241: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2242: // dprintf is used instead of fprintf to avoid needing to declare
2243: // FILE and stderr.
2244: #define debug(...) dprintf (2, __VA_ARGS__)
2245: #define showlist(...) puts (#__VA_ARGS__)
2246: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2247: static void
2248: test_varargs_macros (void)
2249: {
2250: int x = 1234;
2251: int y = 5678;
2252: debug ("Flag");
2253: debug ("X = %d\n", x);
2254: showlist (The first, second, and third items.);
2255: report (x>y, "x is %d but y is %d", x, y);
2256: }
2257:
2258: // Check long long types.
2259: #define BIG64 18446744073709551615ull
2260: #define BIG32 4294967295ul
2261: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2262: #if !BIG_OK
2263: #error "your preprocessor is broken"
2264: #endif
2265: #if BIG_OK
2266: #else
2267: #error "your preprocessor is broken"
2268: #endif
2269: static long long int bignum = -9223372036854775807LL;
2270: static unsigned long long int ubignum = BIG64;
2271:
2272: struct incomplete_array
2273: {
2274: int datasize;
2275: double data[];
2276: };
2277:
2278: struct named_init {
2279: int number;
2280: const wchar_t *name;
2281: double average;
2282: };
2283:
2284: typedef const char *ccp;
2285:
2286: static inline int
2287: test_restrict (ccp restrict text)
2288: {
2289: // See if C++-style comments work.
2290: // Iterate through items via the restricted pointer.
2291: // Also check for declarations in for loops.
2292: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2293: continue;
2294: return 0;
2295: }
2296:
2297: // Check varargs and va_copy.
2298: static bool
2299: test_varargs (const char *format, ...)
2300: {
2301: va_list args;
2302: va_start (args, format);
2303: va_list args_copy;
2304: va_copy (args_copy, args);
2305:
2306: const char *str = "";
2307: int number = 0;
2308: float fnumber = 0;
2309:
2310: while (*format)
2311: {
2312: switch (*format++)
2313: {
2314: case '\''s'\'': // string
2315: str = va_arg (args_copy, const char *);
2316: break;
2317: case '\''d'\'': // int
2318: number = va_arg (args_copy, int);
2319: break;
2320: case '\''f'\'': // float
2321: fnumber = va_arg (args_copy, double);
2322: break;
2323: default:
2324: break;
2325: }
2326: }
2327: va_end (args_copy);
2328: va_end (args);
2329:
2330: return *str && number && fnumber;
2331: }
2332: '
2333:
2334: # Test code for whether the C compiler supports C99 (body of main).
2335: ac_c_conftest_c99_main='
2336: // Check bool.
2337: _Bool success = false;
2338: success |= (argc != 0);
2339:
2340: // Check restrict.
2341: if (test_restrict ("String literal") == 0)
2342: success = true;
2343: char *restrict newvar = "Another string";
2344:
2345: // Check varargs.
2346: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2347: test_varargs_macros ();
2348:
2349: // Check flexible array members.
2350: struct incomplete_array *ia =
2351: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2352: ia->datasize = 10;
2353: for (int i = 0; i < ia->datasize; ++i)
2354: ia->data[i] = i * 1.234;
2355:
2356: // Check named initializers.
2357: struct named_init ni = {
2358: .number = 34,
2359: .name = L"Test wide string",
2360: .average = 543.34343,
2361: };
2362:
2363: ni.number = 58;
2364:
2365: int dynamic_array[ni.number];
2366: dynamic_array[0] = argv[0][0];
2367: dynamic_array[ni.number - 1] = 543;
2368:
2369: // work around unused variable warnings
2370: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2371: || dynamic_array[ni.number - 1] != 543);
2372: '
2373:
2374: # Test code for whether the C compiler supports C11 (global declarations)
2375: ac_c_conftest_c11_globals='
2376: // Does the compiler advertise C11 conformance?
2377: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2378: # error "Compiler does not advertise C11 conformance"
2379: #endif
2380:
2381: // Check _Alignas.
2382: char _Alignas (double) aligned_as_double;
2383: char _Alignas (0) no_special_alignment;
2384: extern char aligned_as_int;
2385: char _Alignas (0) _Alignas (int) aligned_as_int;
2386:
2387: // Check _Alignof.
2388: enum
2389: {
2390: int_alignment = _Alignof (int),
2391: int_array_alignment = _Alignof (int[100]),
2392: char_alignment = _Alignof (char)
2393: };
2394: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2395:
2396: // Check _Noreturn.
2397: int _Noreturn does_not_return (void) { for (;;) continue; }
2398:
2399: // Check _Static_assert.
2400: struct test_static_assert
2401: {
2402: int x;
2403: _Static_assert (sizeof (int) <= sizeof (long int),
2404: "_Static_assert does not work in struct");
2405: long int y;
2406: };
2407:
2408: // Check UTF-8 literals.
2409: #define u8 syntax error!
2410: char const utf8_literal[] = u8"happens to be ASCII" "another string";
2411:
2412: // Check duplicate typedefs.
2413: typedef long *long_ptr;
2414: typedef long int *long_ptr;
2415: typedef long_ptr long_ptr;
2416:
2417: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2418: struct anonymous
2419: {
2420: union {
2421: struct { int i; int j; };
2422: struct { int k; long int l; } w;
2423: };
2424: int m;
2425: } v1;
2426: '
2427:
2428: # Test code for whether the C compiler supports C11 (body of main).
2429: ac_c_conftest_c11_main='
2430: _Static_assert ((offsetof (struct anonymous, i)
2431: == offsetof (struct anonymous, w.k)),
2432: "Anonymous union alignment botch");
2433: v1.i = 2;
2434: v1.w.k = 5;
2435: ok |= v1.i != 5;
2436: '
2437:
2438: # Test code for whether the C compiler supports C11 (complete).
2439: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2440: ${ac_c_conftest_c99_globals}
2441: ${ac_c_conftest_c11_globals}
2442:
2443: int
2444: main (int argc, char **argv)
2445: {
2446: int ok = 0;
2447: ${ac_c_conftest_c89_main}
2448: ${ac_c_conftest_c99_main}
2449: ${ac_c_conftest_c11_main}
2450: return ok;
2451: }
2452: "
2453:
2454: # Test code for whether the C compiler supports C99 (complete).
2455: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2456: ${ac_c_conftest_c99_globals}
2457:
2458: int
2459: main (int argc, char **argv)
2460: {
2461: int ok = 0;
2462: ${ac_c_conftest_c89_main}
2463: ${ac_c_conftest_c99_main}
2464: return ok;
2465: }
2466: "
2467:
2468: # Test code for whether the C compiler supports C89 (complete).
2469: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2470:
2471: int
2472: main (int argc, char **argv)
2473: {
2474: int ok = 0;
2475: ${ac_c_conftest_c89_main}
2476: return ok;
2477: }
2478: "
2479:
2480: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2481: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2482: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2483: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2484: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2485: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2486: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2487: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2488: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2489: as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2490: as_fn_append ac_func_c_list " fork HAVE_FORK"
2491: as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2492:
2493: # Auxiliary files required by this configure script.
2494: ac_aux_files="config.guess config.sub install-sh"
2495:
2496: # Locations in which to look for auxiliary files.
2497: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2498:
2499: # Search for a directory containing all of the required auxiliary files,
2500: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2501: # If we don't find one directory that contains all the files we need,
2502: # we report the set of missing files from the *first* directory in
2503: # $ac_aux_dir_candidates and give up.
2504: ac_missing_aux_files=""
2505: ac_first_candidate=:
2506: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2507: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508: as_found=false
2509: for as_dir in $ac_aux_dir_candidates
2510: do
2511: IFS=$as_save_IFS
2512: case $as_dir in #(((
2513: '') as_dir=./ ;;
2514: */) ;;
2515: *) as_dir=$as_dir/ ;;
2516: esac
2517: as_found=:
2518:
2519: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2520: ac_aux_dir_found=yes
2521: ac_install_sh=
2522: for ac_aux in $ac_aux_files
2523: do
2524: # As a special case, if "install-sh" is required, that requirement
2525: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2526: # and $ac_install_sh is set appropriately for whichever one is found.
2527: if test x"$ac_aux" = x"install-sh"
2528: then
2529: if test -f "${as_dir}install-sh"; then
2530: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2531: ac_install_sh="${as_dir}install-sh -c"
2532: elif test -f "${as_dir}install.sh"; then
2533: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2534: ac_install_sh="${as_dir}install.sh -c"
2535: elif test -f "${as_dir}shtool"; then
2536: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2537: ac_install_sh="${as_dir}shtool install -c"
2538: else
2539: ac_aux_dir_found=no
2540: if $ac_first_candidate; then
2541: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2542: else
2543: break
2544: fi
2545: fi
2546: else
2547: if test -f "${as_dir}${ac_aux}"; then
2548: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2549: else
2550: ac_aux_dir_found=no
2551: if $ac_first_candidate; then
2552: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2553: else
2554: break
2555: fi
2556: fi
2557: fi
2558: done
2559: if test "$ac_aux_dir_found" = yes; then
2560: ac_aux_dir="$as_dir"
2561: break
2562: fi
2563: ac_first_candidate=false
2564:
2565: as_found=false
2566: done
2567: IFS=$as_save_IFS
2568: if $as_found
2569: then :
2570:
2571: else $as_nop
2572: as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2573: fi
2574:
2575:
2576: # These three variables are undocumented and unsupported,
2577: # and are intended to be withdrawn in a future Autoconf release.
2578: # They can cause serious problems if a builder's source tree is in a directory
2579: # whose full name contains unusual characters.
2580: if test -f "${ac_aux_dir}config.guess"; then
2581: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2582: fi
2583: if test -f "${ac_aux_dir}config.sub"; then
2584: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2585: fi
2586: if test -f "$ac_aux_dir/configure"; then
2587: ac_configure="$SHELL ${ac_aux_dir}configure"
2588: fi
2589:
1.1 misho 2590: # Check that the precious variables saved in the cache have kept the same
2591: # value.
2592: ac_cache_corrupted=false
2593: for ac_var in $ac_precious_vars; do
2594: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595: eval ac_new_set=\$ac_env_${ac_var}_set
2596: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597: eval ac_new_val=\$ac_env_${ac_var}_value
2598: case $ac_old_set,$ac_new_set in
2599: set,)
1.39 misho 2600: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601: printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misho 2602: ac_cache_corrupted=: ;;
2603: ,set)
1.39 misho 2604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605: printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misho 2606: ac_cache_corrupted=: ;;
2607: ,);;
2608: *)
2609: if test "x$ac_old_val" != "x$ac_new_val"; then
2610: # differences in whitespace do not lead to failure.
2611: ac_old_val_w=`echo x $ac_old_val`
2612: ac_new_val_w=`echo x $ac_new_val`
2613: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.39 misho 2614: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615: printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1 misho 2616: ac_cache_corrupted=:
2617: else
1.39 misho 2618: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619: printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1.1 misho 2620: eval $ac_var=\$ac_old_val
2621: fi
1.39 misho 2622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623: printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2624: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625: printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1.1 misho 2626: fi;;
2627: esac
2628: # Pass precious variables to config.status.
2629: if test "$ac_new_set" = set; then
2630: case $ac_new_val in
1.39 misho 2631: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 2632: *) ac_arg=$ac_var=$ac_new_val ;;
2633: esac
2634: case " $ac_configure_args " in
2635: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.2 misho 2636: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.1 misho 2637: esac
2638: fi
2639: done
2640: if $ac_cache_corrupted; then
1.39 misho 2641: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2643: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2645: as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2646: and start over" "$LINENO" 5
1.1 misho 2647: fi
1.2 misho 2648: ## -------------------- ##
2649: ## Main body of script. ##
2650: ## -------------------- ##
1.1 misho 2651:
1.2 misho 2652: ac_ext=c
2653: ac_cpp='$CPP $CPPFLAGS'
2654: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misho 2657:
2658:
2659:
1.2 misho 2660: ac_config_headers="$ac_config_headers inc/config.h"
1.1 misho 2661:
2662:
1.17 misho 2663: ac_cv_func_malloc_0_nonnull="yes"
2664: ac_cv_func_realloc_0_nonnull="yes"
2665:
1.2 misho 2666: # Checks for programs.
1.39 misho 2667:
2668:
2669:
2670:
2671:
2672:
2673:
2674:
2675:
1.2 misho 2676: ac_ext=c
2677: ac_cpp='$CPP $CPPFLAGS'
2678: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681: if test -n "$ac_tool_prefix"; then
2682: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.39 misho 2684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685: printf %s "checking for $ac_word... " >&6; }
2686: if test ${ac_cv_prog_CC+y}
2687: then :
2688: printf %s "(cached) " >&6
2689: else $as_nop
1.1 misho 2690: if test -n "$CC"; then
2691: ac_cv_prog_CC="$CC" # Let the user override the test.
2692: else
2693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694: for as_dir in $PATH
2695: do
2696: IFS=$as_save_IFS
1.39 misho 2697: case $as_dir in #(((
2698: '') as_dir=./ ;;
2699: */) ;;
2700: *) as_dir=$as_dir/ ;;
2701: esac
1.2 misho 2702: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 2703: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2704: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.39 misho 2705: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2706: break 2
2707: fi
2708: done
1.2 misho 2709: done
1.1 misho 2710: IFS=$as_save_IFS
2711:
2712: fi
2713: fi
2714: CC=$ac_cv_prog_CC
2715: if test -n "$CC"; then
1.39 misho 2716: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717: printf "%s\n" "$CC" >&6; }
1.1 misho 2718: else
1.39 misho 2719: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720: printf "%s\n" "no" >&6; }
1.1 misho 2721: fi
2722:
2723:
2724: fi
2725: if test -z "$ac_cv_prog_CC"; then
2726: ac_ct_CC=$CC
2727: # Extract the first word of "gcc", so it can be a program name with args.
2728: set dummy gcc; ac_word=$2
1.39 misho 2729: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730: printf %s "checking for $ac_word... " >&6; }
2731: if test ${ac_cv_prog_ac_ct_CC+y}
2732: then :
2733: printf %s "(cached) " >&6
2734: else $as_nop
1.1 misho 2735: if test -n "$ac_ct_CC"; then
2736: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2737: else
2738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739: for as_dir in $PATH
2740: do
2741: IFS=$as_save_IFS
1.39 misho 2742: case $as_dir in #(((
2743: '') as_dir=./ ;;
2744: */) ;;
2745: *) as_dir=$as_dir/ ;;
2746: esac
1.2 misho 2747: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 2748: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2749: ac_cv_prog_ac_ct_CC="gcc"
1.39 misho 2750: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2751: break 2
2752: fi
2753: done
1.2 misho 2754: done
1.1 misho 2755: IFS=$as_save_IFS
2756:
2757: fi
2758: fi
2759: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760: if test -n "$ac_ct_CC"; then
1.39 misho 2761: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 misho 2763: else
1.39 misho 2764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765: printf "%s\n" "no" >&6; }
1.1 misho 2766: fi
2767:
2768: if test "x$ac_ct_CC" = x; then
2769: CC=""
2770: else
2771: case $cross_compiling:$ac_tool_warned in
2772: yes:)
1.39 misho 2773: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 2775: ac_tool_warned=yes ;;
2776: esac
2777: CC=$ac_ct_CC
2778: fi
2779: else
2780: CC="$ac_cv_prog_CC"
2781: fi
2782:
2783: if test -z "$CC"; then
2784: if test -n "$ac_tool_prefix"; then
2785: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.39 misho 2787: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788: printf %s "checking for $ac_word... " >&6; }
2789: if test ${ac_cv_prog_CC+y}
2790: then :
2791: printf %s "(cached) " >&6
2792: else $as_nop
1.1 misho 2793: if test -n "$CC"; then
2794: ac_cv_prog_CC="$CC" # Let the user override the test.
2795: else
2796: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797: for as_dir in $PATH
2798: do
2799: IFS=$as_save_IFS
1.39 misho 2800: case $as_dir in #(((
2801: '') as_dir=./ ;;
2802: */) ;;
2803: *) as_dir=$as_dir/ ;;
2804: esac
1.2 misho 2805: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 2806: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2807: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.39 misho 2808: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2809: break 2
2810: fi
2811: done
1.2 misho 2812: done
1.1 misho 2813: IFS=$as_save_IFS
2814:
2815: fi
2816: fi
2817: CC=$ac_cv_prog_CC
2818: if test -n "$CC"; then
1.39 misho 2819: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820: printf "%s\n" "$CC" >&6; }
1.1 misho 2821: else
1.39 misho 2822: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823: printf "%s\n" "no" >&6; }
1.1 misho 2824: fi
2825:
2826:
2827: fi
2828: fi
2829: if test -z "$CC"; then
2830: # Extract the first word of "cc", so it can be a program name with args.
2831: set dummy cc; ac_word=$2
1.39 misho 2832: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833: printf %s "checking for $ac_word... " >&6; }
2834: if test ${ac_cv_prog_CC+y}
2835: then :
2836: printf %s "(cached) " >&6
2837: else $as_nop
1.1 misho 2838: if test -n "$CC"; then
2839: ac_cv_prog_CC="$CC" # Let the user override the test.
2840: else
2841: ac_prog_rejected=no
2842: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843: for as_dir in $PATH
2844: do
2845: IFS=$as_save_IFS
1.39 misho 2846: case $as_dir in #(((
2847: '') as_dir=./ ;;
2848: */) ;;
2849: *) as_dir=$as_dir/ ;;
2850: esac
1.2 misho 2851: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 2852: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2853: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1 misho 2854: ac_prog_rejected=yes
2855: continue
2856: fi
2857: ac_cv_prog_CC="cc"
1.39 misho 2858: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2859: break 2
2860: fi
2861: done
1.2 misho 2862: done
1.1 misho 2863: IFS=$as_save_IFS
2864:
2865: if test $ac_prog_rejected = yes; then
2866: # We found a bogon in the path, so make sure we never use it.
2867: set dummy $ac_cv_prog_CC
2868: shift
2869: if test $# != 0; then
2870: # We chose a different compiler from the bogus one.
2871: # However, it has the same basename, so the bogon will be chosen
2872: # first if we set CC to just the basename; use the full file name.
2873: shift
1.39 misho 2874: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1 misho 2875: fi
2876: fi
2877: fi
2878: fi
2879: CC=$ac_cv_prog_CC
2880: if test -n "$CC"; then
1.39 misho 2881: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882: printf "%s\n" "$CC" >&6; }
1.1 misho 2883: else
1.39 misho 2884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885: printf "%s\n" "no" >&6; }
1.1 misho 2886: fi
2887:
2888:
2889: fi
2890: if test -z "$CC"; then
2891: if test -n "$ac_tool_prefix"; then
2892: for ac_prog in cl.exe
2893: do
2894: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.39 misho 2896: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897: printf %s "checking for $ac_word... " >&6; }
2898: if test ${ac_cv_prog_CC+y}
2899: then :
2900: printf %s "(cached) " >&6
2901: else $as_nop
1.1 misho 2902: if test -n "$CC"; then
2903: ac_cv_prog_CC="$CC" # Let the user override the test.
2904: else
2905: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906: for as_dir in $PATH
2907: do
2908: IFS=$as_save_IFS
1.39 misho 2909: case $as_dir in #(((
2910: '') as_dir=./ ;;
2911: */) ;;
2912: *) as_dir=$as_dir/ ;;
2913: esac
1.2 misho 2914: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 2915: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2916: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.39 misho 2917: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2918: break 2
2919: fi
2920: done
1.2 misho 2921: done
1.1 misho 2922: IFS=$as_save_IFS
2923:
2924: fi
2925: fi
2926: CC=$ac_cv_prog_CC
2927: if test -n "$CC"; then
1.39 misho 2928: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2929: printf "%s\n" "$CC" >&6; }
1.1 misho 2930: else
1.39 misho 2931: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932: printf "%s\n" "no" >&6; }
1.1 misho 2933: fi
2934:
2935:
2936: test -n "$CC" && break
2937: done
2938: fi
2939: if test -z "$CC"; then
2940: ac_ct_CC=$CC
2941: for ac_prog in cl.exe
2942: do
2943: # Extract the first word of "$ac_prog", so it can be a program name with args.
2944: set dummy $ac_prog; ac_word=$2
1.39 misho 2945: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946: printf %s "checking for $ac_word... " >&6; }
2947: if test ${ac_cv_prog_ac_ct_CC+y}
2948: then :
2949: printf %s "(cached) " >&6
2950: else $as_nop
1.1 misho 2951: if test -n "$ac_ct_CC"; then
2952: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953: else
2954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955: for as_dir in $PATH
2956: do
2957: IFS=$as_save_IFS
1.39 misho 2958: case $as_dir in #(((
2959: '') as_dir=./ ;;
2960: */) ;;
2961: *) as_dir=$as_dir/ ;;
2962: esac
1.2 misho 2963: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 2964: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 2965: ac_cv_prog_ac_ct_CC="$ac_prog"
1.39 misho 2966: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 2967: break 2
2968: fi
2969: done
1.2 misho 2970: done
1.1 misho 2971: IFS=$as_save_IFS
2972:
2973: fi
2974: fi
2975: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976: if test -n "$ac_ct_CC"; then
1.39 misho 2977: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 misho 2979: else
1.39 misho 2980: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981: printf "%s\n" "no" >&6; }
1.1 misho 2982: fi
2983:
2984:
2985: test -n "$ac_ct_CC" && break
2986: done
2987:
2988: if test "x$ac_ct_CC" = x; then
2989: CC=""
2990: else
2991: case $cross_compiling:$ac_tool_warned in
2992: yes:)
1.39 misho 2993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995: ac_tool_warned=yes ;;
2996: esac
2997: CC=$ac_ct_CC
2998: fi
2999: fi
3000:
3001: fi
3002: if test -z "$CC"; then
3003: if test -n "$ac_tool_prefix"; then
3004: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3005: set dummy ${ac_tool_prefix}clang; ac_word=$2
3006: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007: printf %s "checking for $ac_word... " >&6; }
3008: if test ${ac_cv_prog_CC+y}
3009: then :
3010: printf %s "(cached) " >&6
3011: else $as_nop
3012: if test -n "$CC"; then
3013: ac_cv_prog_CC="$CC" # Let the user override the test.
3014: else
3015: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016: for as_dir in $PATH
3017: do
3018: IFS=$as_save_IFS
3019: case $as_dir in #(((
3020: '') as_dir=./ ;;
3021: */) ;;
3022: *) as_dir=$as_dir/ ;;
3023: esac
3024: for ac_exec_ext in '' $ac_executable_extensions; do
3025: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3026: ac_cv_prog_CC="${ac_tool_prefix}clang"
3027: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3028: break 2
3029: fi
3030: done
3031: done
3032: IFS=$as_save_IFS
3033:
3034: fi
3035: fi
3036: CC=$ac_cv_prog_CC
3037: if test -n "$CC"; then
3038: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039: printf "%s\n" "$CC" >&6; }
3040: else
3041: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042: printf "%s\n" "no" >&6; }
3043: fi
3044:
3045:
3046: fi
3047: if test -z "$ac_cv_prog_CC"; then
3048: ac_ct_CC=$CC
3049: # Extract the first word of "clang", so it can be a program name with args.
3050: set dummy clang; ac_word=$2
3051: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052: printf %s "checking for $ac_word... " >&6; }
3053: if test ${ac_cv_prog_ac_ct_CC+y}
3054: then :
3055: printf %s "(cached) " >&6
3056: else $as_nop
3057: if test -n "$ac_ct_CC"; then
3058: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059: else
3060: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061: for as_dir in $PATH
3062: do
3063: IFS=$as_save_IFS
3064: case $as_dir in #(((
3065: '') as_dir=./ ;;
3066: */) ;;
3067: *) as_dir=$as_dir/ ;;
3068: esac
3069: for ac_exec_ext in '' $ac_executable_extensions; do
3070: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071: ac_cv_prog_ac_ct_CC="clang"
3072: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073: break 2
3074: fi
3075: done
3076: done
3077: IFS=$as_save_IFS
3078:
3079: fi
3080: fi
3081: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082: if test -n "$ac_ct_CC"; then
3083: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084: printf "%s\n" "$ac_ct_CC" >&6; }
3085: else
3086: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087: printf "%s\n" "no" >&6; }
3088: fi
3089:
3090: if test "x$ac_ct_CC" = x; then
3091: CC=""
3092: else
3093: case $cross_compiling:$ac_tool_warned in
3094: yes:)
3095: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 3097: ac_tool_warned=yes ;;
3098: esac
3099: CC=$ac_ct_CC
3100: fi
1.39 misho 3101: else
3102: CC="$ac_cv_prog_CC"
1.1 misho 3103: fi
3104:
3105: fi
3106:
3107:
1.39 misho 3108: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.7 misho 3110: as_fn_error $? "no acceptable C compiler found in \$PATH
3111: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3112:
3113: # Provide some information about the compiler.
1.39 misho 3114: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 misho 3115: set X $ac_compile
3116: ac_compiler=$2
1.39 misho 3117: for ac_option in --version -v -V -qversion -version; do
1.2 misho 3118: { { ac_try="$ac_compiler $ac_option >&5"
1.1 misho 3119: case "(($ac_try" in
3120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121: *) ac_try_echo=$ac_try;;
3122: esac
1.2 misho 3123: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 3124: printf "%s\n" "$ac_try_echo"; } >&5
1.2 misho 3125: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.1 misho 3126: ac_status=$?
1.2 misho 3127: if test -s conftest.err; then
3128: sed '10a\
3129: ... rest of stderr output deleted ...
3130: 10q' conftest.err >conftest.er1
3131: cat conftest.er1 >&5
3132: fi
1.7 misho 3133: rm -f conftest.er1 conftest.err
1.39 misho 3134: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.2 misho 3135: test $ac_status = 0; }
3136: done
1.1 misho 3137:
1.2 misho 3138: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3139: /* end confdefs.h. */
1.7 misho 3140:
1.1 misho 3141: int
1.39 misho 3142: main (void)
1.1 misho 3143: {
3144:
3145: ;
3146: return 0;
3147: }
3148: _ACEOF
3149: ac_clean_files_save=$ac_clean_files
1.7 misho 3150: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1 misho 3151: # Try to create an executable without -o first, disregard a.out.
3152: # It will help us diagnose broken compilers, and finding out an intuition
3153: # of exeext.
1.39 misho 3154: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3155: printf %s "checking whether the C compiler works... " >&6; }
3156: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1 misho 3157:
3158: # The possible output files:
3159: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3160:
3161: ac_rmfiles=
3162: for ac_file in $ac_files
3163: do
3164: case $ac_file in
3165: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3167: esac
3168: done
3169: rm -f $ac_rmfiles
3170:
1.2 misho 3171: if { { ac_try="$ac_link_default"
1.1 misho 3172: case "(($ac_try" in
3173: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174: *) ac_try_echo=$ac_try;;
3175: esac
1.2 misho 3176: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 3177: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3178: (eval "$ac_link_default") 2>&5
3179: ac_status=$?
1.39 misho 3180: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181: test $ac_status = 0; }
3182: then :
1.1 misho 3183: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3184: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3185: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3186: # so that the user can short-circuit this test for compilers unknown to
3187: # Autoconf.
3188: for ac_file in $ac_files ''
3189: do
3190: test -f "$ac_file" || continue
3191: case $ac_file in
3192: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3193: ;;
3194: [ab].out )
3195: # We found the default executable, but exeext='' is most
3196: # certainly right.
3197: break;;
3198: *.* )
1.39 misho 3199: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.1 misho 3200: then :; else
3201: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3202: fi
3203: # We set ac_cv_exeext here because the later test for it is not
3204: # safe: cross compilers may not add the suffix if given an `-o'
3205: # argument, so we may need to know it at that point already.
3206: # Even if this section looks crufty: it has the advantage of
3207: # actually working.
3208: break;;
3209: * )
3210: break;;
3211: esac
3212: done
3213: test "$ac_cv_exeext" = no && ac_cv_exeext=
3214:
1.39 misho 3215: else $as_nop
1.1 misho 3216: ac_file=''
3217: fi
1.39 misho 3218: if test -z "$ac_file"
3219: then :
3220: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221: printf "%s\n" "no" >&6; }
3222: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 3223: sed 's/^/| /' conftest.$ac_ext >&5
3224:
1.39 misho 3225: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.7 misho 3227: as_fn_error 77 "C compiler cannot create executables
3228: See \`config.log' for more details" "$LINENO" 5; }
1.39 misho 3229: else $as_nop
3230: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231: printf "%s\n" "yes" >&6; }
3232: fi
3233: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3234: printf %s "checking for C compiler default output file name... " >&6; }
3235: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3236: printf "%s\n" "$ac_file" >&6; }
1.1 misho 3237: ac_exeext=$ac_cv_exeext
3238:
1.7 misho 3239: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1 misho 3240: ac_clean_files=$ac_clean_files_save
1.39 misho 3241: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3242: printf %s "checking for suffix of executables... " >&6; }
1.2 misho 3243: if { { ac_try="$ac_link"
1.1 misho 3244: case "(($ac_try" in
3245: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246: *) ac_try_echo=$ac_try;;
3247: esac
1.2 misho 3248: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 3249: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3250: (eval "$ac_link") 2>&5
3251: ac_status=$?
1.39 misho 3252: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253: test $ac_status = 0; }
3254: then :
1.1 misho 3255: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3256: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3257: # work properly (i.e., refer to `conftest.exe'), while it won't with
3258: # `rm'.
3259: for ac_file in conftest.exe conftest conftest.*; do
3260: test -f "$ac_file" || continue
3261: case $ac_file in
3262: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3263: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264: break;;
3265: * ) break;;
3266: esac
3267: done
1.39 misho 3268: else $as_nop
3269: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.7 misho 3271: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3272: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3273: fi
1.7 misho 3274: rm -f conftest conftest$ac_cv_exeext
1.39 misho 3275: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3276: printf "%s\n" "$ac_cv_exeext" >&6; }
1.1 misho 3277:
3278: rm -f conftest.$ac_ext
3279: EXEEXT=$ac_cv_exeext
3280: ac_exeext=$EXEEXT
1.7 misho 3281: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282: /* end confdefs.h. */
3283: #include <stdio.h>
3284: int
1.39 misho 3285: main (void)
1.7 misho 3286: {
3287: FILE *f = fopen ("conftest.out", "w");
3288: return ferror (f) || fclose (f) != 0;
3289:
3290: ;
3291: return 0;
3292: }
3293: _ACEOF
3294: ac_clean_files="$ac_clean_files conftest.out"
3295: # Check that the compiler produces executables we can run. If not, either
3296: # the compiler is broken, or we cross compile.
1.39 misho 3297: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3298: printf %s "checking whether we are cross compiling... " >&6; }
1.7 misho 3299: if test "$cross_compiling" != yes; then
3300: { { ac_try="$ac_link"
3301: case "(($ac_try" in
3302: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303: *) ac_try_echo=$ac_try;;
3304: esac
3305: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 3306: printf "%s\n" "$ac_try_echo"; } >&5
1.7 misho 3307: (eval "$ac_link") 2>&5
3308: ac_status=$?
1.39 misho 3309: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.7 misho 3310: test $ac_status = 0; }
3311: if { ac_try='./conftest$ac_cv_exeext'
3312: { { case "(($ac_try" in
3313: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314: *) ac_try_echo=$ac_try;;
3315: esac
3316: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 3317: printf "%s\n" "$ac_try_echo"; } >&5
1.7 misho 3318: (eval "$ac_try") 2>&5
3319: ac_status=$?
1.39 misho 3320: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.7 misho 3321: test $ac_status = 0; }; }; then
3322: cross_compiling=no
3323: else
3324: if test "$cross_compiling" = maybe; then
3325: cross_compiling=yes
3326: else
1.39 misho 3327: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3329: as_fn_error 77 "cannot run C compiled programs.
1.7 misho 3330: If you meant to cross compile, use \`--host'.
3331: See \`config.log' for more details" "$LINENO" 5; }
3332: fi
3333: fi
3334: fi
1.39 misho 3335: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3336: printf "%s\n" "$cross_compiling" >&6; }
1.7 misho 3337:
3338: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3339: ac_clean_files=$ac_clean_files_save
1.39 misho 3340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3341: printf %s "checking for suffix of object files... " >&6; }
3342: if test ${ac_cv_objext+y}
3343: then :
3344: printf %s "(cached) " >&6
3345: else $as_nop
1.2 misho 3346: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3347: /* end confdefs.h. */
3348:
3349: int
1.39 misho 3350: main (void)
1.1 misho 3351: {
3352:
3353: ;
3354: return 0;
3355: }
3356: _ACEOF
3357: rm -f conftest.o conftest.obj
1.2 misho 3358: if { { ac_try="$ac_compile"
1.1 misho 3359: case "(($ac_try" in
3360: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361: *) ac_try_echo=$ac_try;;
3362: esac
1.2 misho 3363: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.39 misho 3364: printf "%s\n" "$ac_try_echo"; } >&5
1.1 misho 3365: (eval "$ac_compile") 2>&5
3366: ac_status=$?
1.39 misho 3367: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368: test $ac_status = 0; }
3369: then :
1.1 misho 3370: for ac_file in conftest.o conftest.obj conftest.*; do
3371: test -f "$ac_file" || continue;
3372: case $ac_file in
3373: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3374: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375: break;;
3376: esac
3377: done
1.39 misho 3378: else $as_nop
3379: printf "%s\n" "$as_me: failed program was:" >&5
1.1 misho 3380: sed 's/^/| /' conftest.$ac_ext >&5
3381:
1.39 misho 3382: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383: printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1.7 misho 3384: as_fn_error $? "cannot compute suffix of object files: cannot compile
3385: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3386: fi
3387: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388: fi
1.39 misho 3389: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3390: printf "%s\n" "$ac_cv_objext" >&6; }
1.1 misho 3391: OBJEXT=$ac_cv_objext
3392: ac_objext=$OBJEXT
1.39 misho 3393: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3394: printf %s "checking whether the compiler supports GNU C... " >&6; }
3395: if test ${ac_cv_c_compiler_gnu+y}
3396: then :
3397: printf %s "(cached) " >&6
3398: else $as_nop
1.2 misho 3399: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3400: /* end confdefs.h. */
3401:
3402: int
1.39 misho 3403: main (void)
1.1 misho 3404: {
3405: #ifndef __GNUC__
3406: choke me
3407: #endif
3408:
3409: ;
3410: return 0;
3411: }
3412: _ACEOF
1.39 misho 3413: if ac_fn_c_try_compile "$LINENO"
3414: then :
1.1 misho 3415: ac_compiler_gnu=yes
1.39 misho 3416: else $as_nop
1.2 misho 3417: ac_compiler_gnu=no
1.1 misho 3418: fi
1.39 misho 3419: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3420: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421:
3422: fi
1.39 misho 3423: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3425: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426:
1.1 misho 3427: if test $ac_compiler_gnu = yes; then
3428: GCC=yes
3429: else
3430: GCC=
3431: fi
1.39 misho 3432: ac_test_CFLAGS=${CFLAGS+y}
1.1 misho 3433: ac_save_CFLAGS=$CFLAGS
1.39 misho 3434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3435: printf %s "checking whether $CC accepts -g... " >&6; }
3436: if test ${ac_cv_prog_cc_g+y}
3437: then :
3438: printf %s "(cached) " >&6
3439: else $as_nop
1.1 misho 3440: ac_save_c_werror_flag=$ac_c_werror_flag
3441: ac_c_werror_flag=yes
3442: ac_cv_prog_cc_g=no
3443: CFLAGS="-g"
1.2 misho 3444: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3445: /* end confdefs.h. */
3446:
3447: int
1.39 misho 3448: main (void)
1.1 misho 3449: {
3450:
3451: ;
3452: return 0;
3453: }
3454: _ACEOF
1.39 misho 3455: if ac_fn_c_try_compile "$LINENO"
3456: then :
1.1 misho 3457: ac_cv_prog_cc_g=yes
1.39 misho 3458: else $as_nop
1.2 misho 3459: CFLAGS=""
3460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3461: /* end confdefs.h. */
3462:
3463: int
1.39 misho 3464: main (void)
1.1 misho 3465: {
3466:
3467: ;
3468: return 0;
3469: }
3470: _ACEOF
1.39 misho 3471: if ac_fn_c_try_compile "$LINENO"
3472: then :
1.2 misho 3473:
1.39 misho 3474: else $as_nop
1.2 misho 3475: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misho 3476: CFLAGS="-g"
1.2 misho 3477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3478: /* end confdefs.h. */
3479:
3480: int
1.39 misho 3481: main (void)
1.1 misho 3482: {
3483:
3484: ;
3485: return 0;
3486: }
3487: _ACEOF
1.39 misho 3488: if ac_fn_c_try_compile "$LINENO"
3489: then :
1.1 misho 3490: ac_cv_prog_cc_g=yes
3491: fi
1.39 misho 3492: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3493: fi
1.39 misho 3494: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3495: fi
1.39 misho 3496: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 3497: ac_c_werror_flag=$ac_save_c_werror_flag
3498: fi
1.39 misho 3499: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3500: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3501: if test $ac_test_CFLAGS; then
1.1 misho 3502: CFLAGS=$ac_save_CFLAGS
3503: elif test $ac_cv_prog_cc_g = yes; then
3504: if test "$GCC" = yes; then
3505: CFLAGS="-g -O2"
3506: else
3507: CFLAGS="-g"
3508: fi
3509: else
3510: if test "$GCC" = yes; then
3511: CFLAGS="-O2"
3512: else
3513: CFLAGS=
3514: fi
3515: fi
1.39 misho 3516: ac_prog_cc_stdc=no
3517: if test x$ac_prog_cc_stdc = xno
3518: then :
3519: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3520: printf %s "checking for $CC option to enable C11 features... " >&6; }
3521: if test ${ac_cv_prog_cc_c11+y}
3522: then :
3523: printf %s "(cached) " >&6
3524: else $as_nop
3525: ac_cv_prog_cc_c11=no
1.1 misho 3526: ac_save_CC=$CC
1.2 misho 3527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 3528: /* end confdefs.h. */
1.39 misho 3529: $ac_c_conftest_c11_program
3530: _ACEOF
3531: for ac_arg in '' -std=gnu11
3532: do
3533: CC="$ac_save_CC $ac_arg"
3534: if ac_fn_c_try_compile "$LINENO"
3535: then :
3536: ac_cv_prog_cc_c11=$ac_arg
3537: fi
3538: rm -f core conftest.err conftest.$ac_objext conftest.beam
3539: test "x$ac_cv_prog_cc_c11" != "xno" && break
3540: done
3541: rm -f conftest.$ac_ext
3542: CC=$ac_save_CC
3543: fi
1.1 misho 3544:
1.39 misho 3545: if test "x$ac_cv_prog_cc_c11" = xno
3546: then :
3547: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3548: printf "%s\n" "unsupported" >&6; }
3549: else $as_nop
3550: if test "x$ac_cv_prog_cc_c11" = x
3551: then :
3552: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3553: printf "%s\n" "none needed" >&6; }
3554: else $as_nop
3555: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3556: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3557: CC="$CC $ac_cv_prog_cc_c11"
3558: fi
3559: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3560: ac_prog_cc_stdc=c11
3561: fi
3562: fi
3563: if test x$ac_prog_cc_stdc = xno
3564: then :
3565: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3566: printf %s "checking for $CC option to enable C99 features... " >&6; }
3567: if test ${ac_cv_prog_cc_c99+y}
3568: then :
3569: printf %s "(cached) " >&6
3570: else $as_nop
3571: ac_cv_prog_cc_c99=no
3572: ac_save_CC=$CC
3573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574: /* end confdefs.h. */
3575: $ac_c_conftest_c99_program
3576: _ACEOF
3577: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3578: do
3579: CC="$ac_save_CC $ac_arg"
3580: if ac_fn_c_try_compile "$LINENO"
3581: then :
3582: ac_cv_prog_cc_c99=$ac_arg
3583: fi
3584: rm -f core conftest.err conftest.$ac_objext conftest.beam
3585: test "x$ac_cv_prog_cc_c99" != "xno" && break
3586: done
3587: rm -f conftest.$ac_ext
3588: CC=$ac_save_CC
3589: fi
1.1 misho 3590:
1.39 misho 3591: if test "x$ac_cv_prog_cc_c99" = xno
3592: then :
3593: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3594: printf "%s\n" "unsupported" >&6; }
3595: else $as_nop
3596: if test "x$ac_cv_prog_cc_c99" = x
3597: then :
3598: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599: printf "%s\n" "none needed" >&6; }
3600: else $as_nop
3601: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3602: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3603: CC="$CC $ac_cv_prog_cc_c99"
3604: fi
3605: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3606: ac_prog_cc_stdc=c99
3607: fi
3608: fi
3609: if test x$ac_prog_cc_stdc = xno
3610: then :
3611: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3612: printf %s "checking for $CC option to enable C89 features... " >&6; }
3613: if test ${ac_cv_prog_cc_c89+y}
3614: then :
3615: printf %s "(cached) " >&6
3616: else $as_nop
3617: ac_cv_prog_cc_c89=no
3618: ac_save_CC=$CC
3619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620: /* end confdefs.h. */
3621: $ac_c_conftest_c89_program
1.1 misho 3622: _ACEOF
1.39 misho 3623: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misho 3624: do
3625: CC="$ac_save_CC $ac_arg"
1.39 misho 3626: if ac_fn_c_try_compile "$LINENO"
3627: then :
1.1 misho 3628: ac_cv_prog_cc_c89=$ac_arg
3629: fi
1.39 misho 3630: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.1 misho 3631: test "x$ac_cv_prog_cc_c89" != "xno" && break
3632: done
3633: rm -f conftest.$ac_ext
3634: CC=$ac_save_CC
1.39 misho 3635: fi
1.1 misho 3636:
1.39 misho 3637: if test "x$ac_cv_prog_cc_c89" = xno
3638: then :
3639: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640: printf "%s\n" "unsupported" >&6; }
3641: else $as_nop
3642: if test "x$ac_cv_prog_cc_c89" = x
3643: then :
3644: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645: printf "%s\n" "none needed" >&6; }
3646: else $as_nop
3647: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3648: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3649: CC="$CC $ac_cv_prog_cc_c89"
3650: fi
3651: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3652: ac_prog_cc_stdc=c89
1.1 misho 3653: fi
1.2 misho 3654: fi
1.1 misho 3655:
3656: ac_ext=c
3657: ac_cpp='$CPP $CPPFLAGS'
3658: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661:
3662:
3663:
1.39 misho 3664: # Find a good install program. We prefer a C program (faster),
1.1 misho 3665: # so one script is as good as another. But avoid the broken or
3666: # incompatible versions:
3667: # SysV /etc/install, /usr/sbin/install
3668: # SunOS /usr/etc/install
3669: # IRIX /sbin/install
3670: # AIX /bin/install
3671: # AmigaOS /C/install, which installs bootblocks on floppy discs
3672: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3673: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3674: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3675: # OS/2's system install, which has a completely different semantic
3676: # ./install, which can be erroneously created by make from ./install.sh.
3677: # Reject install programs that cannot install multiple files.
1.39 misho 3678: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3679: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 misho 3680: if test -z "$INSTALL"; then
1.39 misho 3681: if test ${ac_cv_path_install+y}
3682: then :
3683: printf %s "(cached) " >&6
3684: else $as_nop
1.1 misho 3685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686: for as_dir in $PATH
3687: do
3688: IFS=$as_save_IFS
1.39 misho 3689: case $as_dir in #(((
3690: '') as_dir=./ ;;
3691: */) ;;
3692: *) as_dir=$as_dir/ ;;
3693: esac
3694: # Account for fact that we put trailing slashes in our PATH walk.
3695: case $as_dir in #((
3696: ./ | /[cC]/* | \
1.1 misho 3697: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.2 misho 3698: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.1 misho 3699: /usr/ucb/* ) ;;
3700: *)
3701: # OSF1 and SCO ODT 3.0 have their own names for install.
3702: # Don't use installbsd from OSF since it installs stuff as root
3703: # by default.
3704: for ac_prog in ginstall scoinst install; do
3705: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 3706: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.1 misho 3707: if test $ac_prog = install &&
1.39 misho 3708: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 misho 3709: # AIX install. It has an incompatible calling convention.
3710: :
3711: elif test $ac_prog = install &&
1.39 misho 3712: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1 misho 3713: # program-specific install script used by HP pwplus--don't use.
3714: :
3715: else
3716: rm -rf conftest.one conftest.two conftest.dir
3717: echo one > conftest.one
3718: echo two > conftest.two
3719: mkdir conftest.dir
1.39 misho 3720: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.1 misho 3721: test -s conftest.one && test -s conftest.two &&
3722: test -s conftest.dir/conftest.one &&
3723: test -s conftest.dir/conftest.two
3724: then
1.39 misho 3725: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.1 misho 3726: break 3
3727: fi
3728: fi
3729: fi
3730: done
3731: done
3732: ;;
3733: esac
3734:
1.2 misho 3735: done
1.1 misho 3736: IFS=$as_save_IFS
3737:
3738: rm -rf conftest.one conftest.two conftest.dir
3739:
3740: fi
1.39 misho 3741: if test ${ac_cv_path_install+y}; then
1.1 misho 3742: INSTALL=$ac_cv_path_install
3743: else
3744: # As a last resort, use the slow shell script. Don't cache a
3745: # value for INSTALL within a source directory, because that will
3746: # break other packages using the cache if that directory is
3747: # removed, or if the value is a relative name.
3748: INSTALL=$ac_install_sh
3749: fi
3750: fi
1.39 misho 3751: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3752: printf "%s\n" "$INSTALL" >&6; }
1.1 misho 3753:
3754: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3755: # It thinks the first close brace ends the variable substitution.
3756: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3757:
3758: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3759:
3760: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3761:
1.37 misho 3762: if test -n "$ac_tool_prefix"; then
3763: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3764: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.39 misho 3765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766: printf %s "checking for $ac_word... " >&6; }
3767: if test ${ac_cv_prog_RANLIB+y}
3768: then :
3769: printf %s "(cached) " >&6
3770: else $as_nop
1.37 misho 3771: if test -n "$RANLIB"; then
3772: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3773: else
3774: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775: for as_dir in $PATH
3776: do
3777: IFS=$as_save_IFS
1.39 misho 3778: case $as_dir in #(((
3779: '') as_dir=./ ;;
3780: */) ;;
3781: *) as_dir=$as_dir/ ;;
3782: esac
1.37 misho 3783: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 3784: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.37 misho 3785: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.39 misho 3786: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.37 misho 3787: break 2
3788: fi
3789: done
3790: done
3791: IFS=$as_save_IFS
3792:
3793: fi
3794: fi
3795: RANLIB=$ac_cv_prog_RANLIB
3796: if test -n "$RANLIB"; then
1.39 misho 3797: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3798: printf "%s\n" "$RANLIB" >&6; }
1.37 misho 3799: else
1.39 misho 3800: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801: printf "%s\n" "no" >&6; }
1.37 misho 3802: fi
3803:
3804:
3805: fi
3806: if test -z "$ac_cv_prog_RANLIB"; then
3807: ac_ct_RANLIB=$RANLIB
3808: # Extract the first word of "ranlib", so it can be a program name with args.
3809: set dummy ranlib; ac_word=$2
1.39 misho 3810: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811: printf %s "checking for $ac_word... " >&6; }
3812: if test ${ac_cv_prog_ac_ct_RANLIB+y}
3813: then :
3814: printf %s "(cached) " >&6
3815: else $as_nop
1.37 misho 3816: if test -n "$ac_ct_RANLIB"; then
3817: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3818: else
3819: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820: for as_dir in $PATH
3821: do
3822: IFS=$as_save_IFS
1.39 misho 3823: case $as_dir in #(((
3824: '') as_dir=./ ;;
3825: */) ;;
3826: *) as_dir=$as_dir/ ;;
3827: esac
1.37 misho 3828: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 3829: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.37 misho 3830: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.39 misho 3831: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.37 misho 3832: break 2
3833: fi
3834: done
3835: done
3836: IFS=$as_save_IFS
3837:
3838: fi
3839: fi
3840: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3841: if test -n "$ac_ct_RANLIB"; then
1.39 misho 3842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3843: printf "%s\n" "$ac_ct_RANLIB" >&6; }
1.37 misho 3844: else
1.39 misho 3845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846: printf "%s\n" "no" >&6; }
1.37 misho 3847: fi
3848:
3849: if test "x$ac_ct_RANLIB" = x; then
3850: RANLIB=":"
3851: else
3852: case $cross_compiling:$ac_tool_warned in
3853: yes:)
1.39 misho 3854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3855: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.37 misho 3856: ac_tool_warned=yes ;;
3857: esac
3858: RANLIB=$ac_ct_RANLIB
3859: fi
3860: else
3861: RANLIB="$ac_cv_prog_RANLIB"
3862: fi
3863:
1.1 misho 3864:
1.39 misho 3865:
3866:
3867: # Make sure we can run config.sub.
3868: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3869: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3870:
3871: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3872: printf %s "checking build system type... " >&6; }
3873: if test ${ac_cv_build+y}
3874: then :
3875: printf %s "(cached) " >&6
3876: else $as_nop
1.1 misho 3877: ac_build_alias=$build_alias
3878: test "x$ac_build_alias" = x &&
1.39 misho 3879: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.1 misho 3880: test "x$ac_build_alias" = x &&
1.7 misho 3881: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.39 misho 3882: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3883: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
1.1 misho 3884:
3885: fi
1.39 misho 3886: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3887: printf "%s\n" "$ac_cv_build" >&6; }
1.1 misho 3888: case $ac_cv_build in
3889: *-*-*) ;;
1.7 misho 3890: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.1 misho 3891: esac
3892: build=$ac_cv_build
3893: ac_save_IFS=$IFS; IFS='-'
3894: set x $ac_cv_build
3895: shift
3896: build_cpu=$1
3897: build_vendor=$2
3898: shift; shift
3899: # Remember, the first character of IFS is used to create $*,
3900: # except with old shells:
3901: build_os=$*
3902: IFS=$ac_save_IFS
3903: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3904:
3905:
1.39 misho 3906: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3907: printf %s "checking host system type... " >&6; }
3908: if test ${ac_cv_host+y}
3909: then :
3910: printf %s "(cached) " >&6
3911: else $as_nop
1.1 misho 3912: if test "x$host_alias" = x; then
3913: ac_cv_host=$ac_cv_build
3914: else
1.39 misho 3915: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3916: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.1 misho 3917: fi
3918:
3919: fi
1.39 misho 3920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3921: printf "%s\n" "$ac_cv_host" >&6; }
1.1 misho 3922: case $ac_cv_host in
3923: *-*-*) ;;
1.7 misho 3924: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.1 misho 3925: esac
3926: host=$ac_cv_host
3927: ac_save_IFS=$IFS; IFS='-'
3928: set x $ac_cv_host
3929: shift
3930: host_cpu=$1
3931: host_vendor=$2
3932: shift; shift
3933: # Remember, the first character of IFS is used to create $*,
3934: # except with old shells:
3935: host_os=$*
3936: IFS=$ac_save_IFS
3937: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3938:
3939:
1.39 misho 3940: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3941: printf %s "checking target system type... " >&6; }
3942: if test ${ac_cv_target+y}
3943: then :
3944: printf %s "(cached) " >&6
3945: else $as_nop
1.1 misho 3946: if test "x$target_alias" = x; then
3947: ac_cv_target=$ac_cv_host
3948: else
1.39 misho 3949: ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3950: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
1.1 misho 3951: fi
3952:
3953: fi
1.39 misho 3954: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3955: printf "%s\n" "$ac_cv_target" >&6; }
1.1 misho 3956: case $ac_cv_target in
3957: *-*-*) ;;
1.7 misho 3958: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.1 misho 3959: esac
3960: target=$ac_cv_target
3961: ac_save_IFS=$IFS; IFS='-'
3962: set x $ac_cv_target
3963: shift
3964: target_cpu=$1
3965: target_vendor=$2
3966: shift; shift
3967: # Remember, the first character of IFS is used to create $*,
3968: # except with old shells:
3969: target_os=$*
3970: IFS=$ac_save_IFS
3971: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3972:
3973:
3974: # The aliases save the names the user supplied, while $host etc.
3975: # will get canonicalized.
3976: test -n "$target_alias" &&
3977: test "$program_prefix$program_suffix$program_transform_name" = \
3978: NONENONEs,x,x, &&
3979: program_prefix=${target_alias}-
3980:
3981: if test -n "$ac_tool_prefix"; then
3982: # Extract the first word of "${ac_tool_prefix}mkdep", so it can be a program name with args.
3983: set dummy ${ac_tool_prefix}mkdep; ac_word=$2
1.39 misho 3984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985: printf %s "checking for $ac_word... " >&6; }
3986: if test ${ac_cv_prog_MKDEP+y}
3987: then :
3988: printf %s "(cached) " >&6
3989: else $as_nop
1.1 misho 3990: if test -n "$MKDEP"; then
3991: ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
3992: else
3993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994: for as_dir in $PATH
3995: do
3996: IFS=$as_save_IFS
1.39 misho 3997: case $as_dir in #(((
3998: '') as_dir=./ ;;
3999: */) ;;
4000: *) as_dir=$as_dir/ ;;
4001: esac
1.2 misho 4002: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 4003: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 4004: ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
1.39 misho 4005: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 4006: break 2
4007: fi
4008: done
1.2 misho 4009: done
1.1 misho 4010: IFS=$as_save_IFS
4011:
4012: fi
4013: fi
4014: MKDEP=$ac_cv_prog_MKDEP
4015: if test -n "$MKDEP"; then
1.39 misho 4016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4017: printf "%s\n" "$MKDEP" >&6; }
1.1 misho 4018: else
1.39 misho 4019: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020: printf "%s\n" "no" >&6; }
1.1 misho 4021: fi
4022:
4023:
4024: fi
4025: if test -z "$ac_cv_prog_MKDEP"; then
4026: ac_ct_MKDEP=$MKDEP
4027: # Extract the first word of "mkdep", so it can be a program name with args.
4028: set dummy mkdep; ac_word=$2
1.39 misho 4029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030: printf %s "checking for $ac_word... " >&6; }
4031: if test ${ac_cv_prog_ac_ct_MKDEP+y}
4032: then :
4033: printf %s "(cached) " >&6
4034: else $as_nop
1.1 misho 4035: if test -n "$ac_ct_MKDEP"; then
4036: ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
4037: else
4038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039: for as_dir in $PATH
4040: do
4041: IFS=$as_save_IFS
1.39 misho 4042: case $as_dir in #(((
4043: '') as_dir=./ ;;
4044: */) ;;
4045: *) as_dir=$as_dir/ ;;
4046: esac
1.2 misho 4047: for ac_exec_ext in '' $ac_executable_extensions; do
1.39 misho 4048: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 misho 4049: ac_cv_prog_ac_ct_MKDEP="mkdep"
1.39 misho 4050: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 misho 4051: break 2
4052: fi
4053: done
1.2 misho 4054: done
1.1 misho 4055: IFS=$as_save_IFS
4056:
4057: fi
4058: fi
4059: ac_ct_MKDEP=$ac_cv_prog_ac_ct_MKDEP
4060: if test -n "$ac_ct_MKDEP"; then
1.39 misho 4061: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDEP" >&5
4062: printf "%s\n" "$ac_ct_MKDEP" >&6; }
1.1 misho 4063: else
1.39 misho 4064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065: printf "%s\n" "no" >&6; }
1.1 misho 4066: fi
4067:
4068: if test "x$ac_ct_MKDEP" = x; then
1.37 misho 4069: MKDEP="../mkdep"
1.1 misho 4070: else
4071: case $cross_compiling:$ac_tool_warned in
4072: yes:)
1.39 misho 4073: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 misho 4075: ac_tool_warned=yes ;;
4076: esac
4077: MKDEP=$ac_ct_MKDEP
4078: fi
4079: else
4080: MKDEP="$ac_cv_prog_MKDEP"
4081: fi
4082:
4083:
4084:
1.28 misho 4085: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
4086: LDFLAGS="${LDFLAGS}"
1.1 misho 4087:
4088: # Checks for libraries.
4089:
1.39 misho 4090: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4091: printf %s "checking for pthread_create in -lpthread... " >&6; }
4092: if test ${ac_cv_lib_pthread_pthread_create+y}
4093: then :
4094: printf %s "(cached) " >&6
4095: else $as_nop
4096: ac_check_lib_save_LIBS=$LIBS
4097: LIBS="-lpthread $LIBS"
4098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4099: /* end confdefs.h. */
4100:
1.39 misho 4101: /* Override any GCC internal prototype to avoid an error.
4102: Use char because int might match the return type of a GCC
4103: builtin and then its argument prototype would still apply. */
4104: char pthread_create ();
1.1 misho 4105: int
1.39 misho 4106: main (void)
1.1 misho 4107: {
1.39 misho 4108: return pthread_create ();
1.1 misho 4109: ;
4110: return 0;
4111: }
4112: _ACEOF
1.39 misho 4113: if ac_fn_c_try_link "$LINENO"
4114: then :
4115: ac_cv_lib_pthread_pthread_create=yes
4116: else $as_nop
4117: ac_cv_lib_pthread_pthread_create=no
4118: fi
4119: rm -f core conftest.err conftest.$ac_objext conftest.beam \
4120: conftest$ac_exeext conftest.$ac_ext
4121: LIBS=$ac_check_lib_save_LIBS
1.1 misho 4122: fi
1.39 misho 4123: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4124: printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
4125: if test "x$ac_cv_lib_pthread_pthread_create" = xyes
4126: then :
4127: printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
1.1 misho 4128:
1.39 misho 4129: LIBS="-lpthread $LIBS"
1.2 misho 4130:
1.1 misho 4131: fi
4132:
1.39 misho 4133: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for array_Init in -lelwix" >&5
4134: printf %s "checking for array_Init in -lelwix... " >&6; }
4135: if test ${ac_cv_lib_elwix_array_Init+y}
4136: then :
4137: printf %s "(cached) " >&6
4138: else $as_nop
4139: ac_check_lib_save_LIBS=$LIBS
4140: LIBS="-lelwix $LIBS"
4141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4142: /* end confdefs.h. */
4143:
1.39 misho 4144: /* Override any GCC internal prototype to avoid an error.
4145: Use char because int might match the return type of a GCC
4146: builtin and then its argument prototype would still apply. */
4147: char array_Init ();
4148: int
4149: main (void)
4150: {
4151: return array_Init ();
4152: ;
4153: return 0;
4154: }
1.1 misho 4155: _ACEOF
1.39 misho 4156: if ac_fn_c_try_link "$LINENO"
4157: then :
4158: ac_cv_lib_elwix_array_Init=yes
4159: else $as_nop
4160: ac_cv_lib_elwix_array_Init=no
4161: fi
4162: rm -f core conftest.err conftest.$ac_objext conftest.beam \
4163: conftest$ac_exeext conftest.$ac_ext
4164: LIBS=$ac_check_lib_save_LIBS
4165: fi
4166: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elwix_array_Init" >&5
4167: printf "%s\n" "$ac_cv_lib_elwix_array_Init" >&6; }
4168: if test "x$ac_cv_lib_elwix_array_Init" = xyes
4169: then :
4170: printf "%s\n" "#define HAVE_LIBELWIX 1" >>confdefs.h
1.2 misho 4171:
1.39 misho 4172: LIBS="-lelwix $LIBS"
1.1 misho 4173:
4174: fi
4175:
1.39 misho 4176: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for schedInit in -laitsched" >&5
4177: printf %s "checking for schedInit in -laitsched... " >&6; }
4178: if test ${ac_cv_lib_aitsched_schedInit+y}
4179: then :
4180: printf %s "(cached) " >&6
4181: else $as_nop
4182: ac_check_lib_save_LIBS=$LIBS
4183: LIBS="-laitsched $LIBS"
4184: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4185: /* end confdefs.h. */
4186:
1.39 misho 4187: /* Override any GCC internal prototype to avoid an error.
4188: Use char because int might match the return type of a GCC
4189: builtin and then its argument prototype would still apply. */
4190: char schedInit ();
1.1 misho 4191: int
1.39 misho 4192: main (void)
1.1 misho 4193: {
1.39 misho 4194: return schedInit ();
4195: ;
1.1 misho 4196: return 0;
4197: }
4198: _ACEOF
1.39 misho 4199: if ac_fn_c_try_link "$LINENO"
4200: then :
4201: ac_cv_lib_aitsched_schedInit=yes
4202: else $as_nop
4203: ac_cv_lib_aitsched_schedInit=no
1.1 misho 4204: fi
1.39 misho 4205: rm -f core conftest.err conftest.$ac_objext conftest.beam \
4206: conftest$ac_exeext conftest.$ac_ext
4207: LIBS=$ac_check_lib_save_LIBS
1.1 misho 4208: fi
1.39 misho 4209: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitsched_schedInit" >&5
4210: printf "%s\n" "$ac_cv_lib_aitsched_schedInit" >&6; }
4211: if test "x$ac_cv_lib_aitsched_schedInit" = xyes
4212: then :
4213: printf "%s\n" "#define HAVE_LIBAITSCHED 1" >>confdefs.h
4214:
4215: LIBS="-laitsched $LIBS"
1.1 misho 4216:
4217: fi
1.39 misho 4218:
4219:
4220: # Checks for header files.
4221: ac_header= ac_cache=
4222: for ac_item in $ac_header_c_list
4223: do
4224: if test $ac_cache; then
4225: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4226: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4227: printf "%s\n" "#define $ac_item 1" >> confdefs.h
4228: fi
4229: ac_header= ac_cache=
4230: elif test $ac_header; then
4231: ac_cache=$ac_item
4232: else
4233: ac_header=$ac_item
4234: fi
4235: done
4236:
4237:
4238:
4239:
4240:
4241:
4242:
4243:
4244: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4245: then :
4246:
4247: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4248:
1.1 misho 4249: fi
1.39 misho 4250: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4251: if test "x$ac_cv_header_arpa_inet_h" = xyes
4252: then :
4253: printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
1.1 misho 4254:
1.39 misho 4255: fi
4256: ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4257: if test "x$ac_cv_header_netdb_h" = xyes
4258: then :
4259: printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
1.1 misho 4260:
4261: fi
1.39 misho 4262: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4263: if test "x$ac_cv_header_netinet_in_h" = xyes
4264: then :
4265: printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
1.1 misho 4266:
1.39 misho 4267: fi
4268: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4269: if test "x$ac_cv_header_stdlib_h" = xyes
4270: then :
4271: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
1.1 misho 4272:
4273: fi
1.39 misho 4274: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4275: if test "x$ac_cv_header_string_h" = xyes
4276: then :
4277: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
1.1 misho 4278:
1.39 misho 4279: fi
4280: ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4281: if test "x$ac_cv_header_sys_param_h" = xyes
4282: then :
4283: printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
1.1 misho 4284:
1.39 misho 4285: fi
4286: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4287: if test "x$ac_cv_header_sys_socket_h" = xyes
4288: then :
4289: printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
1.1 misho 4290:
1.39 misho 4291: fi
4292: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4293: if test "x$ac_cv_header_unistd_h" = xyes
4294: then :
4295: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
1.1 misho 4296:
4297: fi
4298:
4299:
4300: # Checks for typedefs, structures, and compiler characteristics.
1.39 misho 4301: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4302: printf %s "checking for inline... " >&6; }
4303: if test ${ac_cv_c_inline+y}
4304: then :
4305: printf %s "(cached) " >&6
4306: else $as_nop
1.1 misho 4307: ac_cv_c_inline=no
4308: for ac_kw in inline __inline__ __inline; do
1.2 misho 4309: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4310: /* end confdefs.h. */
4311: #ifndef __cplusplus
4312: typedef int foo_t;
1.39 misho 4313: static $ac_kw foo_t static_foo (void) {return 0; }
4314: $ac_kw foo_t foo (void) {return 0; }
1.1 misho 4315: #endif
4316:
4317: _ACEOF
1.39 misho 4318: if ac_fn_c_try_compile "$LINENO"
4319: then :
1.1 misho 4320: ac_cv_c_inline=$ac_kw
4321: fi
1.39 misho 4322: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4323: test "$ac_cv_c_inline" != no && break
4324: done
4325:
4326: fi
1.39 misho 4327: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4328: printf "%s\n" "$ac_cv_c_inline" >&6; }
1.1 misho 4329:
4330: case $ac_cv_c_inline in
4331: inline | yes) ;;
4332: *)
4333: case $ac_cv_c_inline in
4334: no) ac_val=;;
4335: *) ac_val=$ac_cv_c_inline;;
4336: esac
4337: cat >>confdefs.h <<_ACEOF
4338: #ifndef __cplusplus
4339: #define inline $ac_val
4340: #endif
4341: _ACEOF
4342: ;;
4343: esac
4344:
1.2 misho 4345: ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
4346: case $ac_cv_c_int16_t in #(
4347: no|yes) ;; #(
4348: *)
1.1 misho 4349:
1.39 misho 4350: printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
1.2 misho 4351: ;;
4352: esac
4353:
4354: ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
4355: case $ac_cv_c_int32_t in #(
4356: no|yes) ;; #(
4357: *)
1.1 misho 4358:
1.39 misho 4359: printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
1.2 misho 4360: ;;
1.1 misho 4361: esac
4362:
1.2 misho 4363: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
4364: case $ac_cv_c_int64_t in #(
4365: no|yes) ;; #(
4366: *)
4367:
1.39 misho 4368: printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
1.2 misho 4369: ;;
1.1 misho 4370: esac
4371:
1.2 misho 4372: ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
4373: case $ac_cv_c_int8_t in #(
1.1 misho 4374: no|yes) ;; #(
4375: *)
4376:
1.39 misho 4377: printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
1.2 misho 4378: ;;
1.1 misho 4379: esac
4380:
1.2 misho 4381: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4382: case $ac_cv_c_uint16_t in #(
4383: no|yes) ;; #(
4384: *)
4385:
1.1 misho 4386:
1.39 misho 4387: printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
1.2 misho 4388: ;;
4389: esac
4390:
4391: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4392: case $ac_cv_c_uint32_t in #(
4393: no|yes) ;; #(
4394: *)
1.1 misho 4395:
1.39 misho 4396: printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
1.1 misho 4397:
4398:
1.39 misho 4399: printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
1.2 misho 4400: ;;
4401: esac
1.1 misho 4402:
1.2 misho 4403: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
4404: case $ac_cv_c_uint64_t in #(
4405: no|yes) ;; #(
4406: *)
1.1 misho 4407:
1.39 misho 4408: printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
1.1 misho 4409:
4410:
1.39 misho 4411: printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
1.2 misho 4412: ;;
4413: esac
1.1 misho 4414:
1.2 misho 4415: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4416: case $ac_cv_c_uint8_t in #(
4417: no|yes) ;; #(
4418: *)
1.1 misho 4419:
1.39 misho 4420: printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
1.1 misho 4421:
4422:
1.39 misho 4423: printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
1.2 misho 4424: ;;
4425: esac
1.1 misho 4426:
4427:
1.2 misho 4428: # Checks for library functions.
1.1 misho 4429:
1.39 misho 4430: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4431: "
4432: if test "x$ac_cv_type_pid_t" = xyes
4433: then :
4434:
4435: else $as_nop
4436: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437: /* end confdefs.h. */
4438:
4439: #if defined _WIN64 && !defined __CYGWIN__
4440: LLP64
4441: #endif
4442:
4443: int
4444: main (void)
4445: {
4446:
4447: ;
4448: return 0;
4449: }
1.1 misho 4450:
1.2 misho 4451: _ACEOF
1.39 misho 4452: if ac_fn_c_try_compile "$LINENO"
4453: then :
4454: ac_pid_type='int'
4455: else $as_nop
4456: ac_pid_type='__int64'
4457: fi
4458: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4459:
4460: printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
4461:
1.1 misho 4462:
1.2 misho 4463: fi
1.1 misho 4464:
4465:
4466:
1.39 misho 4467: ac_func=
4468: for ac_item in $ac_func_c_list
4469: do
4470: if test $ac_func; then
4471: ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
4472: if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
4473: echo "#define $ac_item 1" >> confdefs.h
4474: fi
4475: ac_func=
4476: else
4477: ac_func=$ac_item
4478: fi
1.2 misho 4479: done
4480:
1.1 misho 4481:
4482:
4483: if test "x$ac_cv_func_fork" = xyes; then
1.39 misho 4484: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4485: printf %s "checking for working fork... " >&6; }
4486: if test ${ac_cv_func_fork_works+y}
4487: then :
4488: printf %s "(cached) " >&6
4489: else $as_nop
4490: if test "$cross_compiling" = yes
4491: then :
1.1 misho 4492: ac_cv_func_fork_works=cross
1.39 misho 4493: else $as_nop
1.2 misho 4494: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4495: /* end confdefs.h. */
4496: $ac_includes_default
4497: int
1.39 misho 4498: main (void)
1.1 misho 4499: {
4500:
4501: /* By Ruediger Kuhlmann. */
4502: return fork () < 0;
4503:
4504: ;
4505: return 0;
4506: }
4507: _ACEOF
1.39 misho 4508: if ac_fn_c_try_run "$LINENO"
4509: then :
1.1 misho 4510: ac_cv_func_fork_works=yes
1.39 misho 4511: else $as_nop
1.2 misho 4512: ac_cv_func_fork_works=no
1.1 misho 4513: fi
1.2 misho 4514: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4515: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4516: fi
4517:
4518: fi
1.39 misho 4519: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4520: printf "%s\n" "$ac_cv_func_fork_works" >&6; }
1.1 misho 4521:
4522: else
4523: ac_cv_func_fork_works=$ac_cv_func_fork
4524: fi
4525: if test "x$ac_cv_func_fork_works" = xcross; then
4526: case $host in
4527: *-*-amigaos* | *-*-msdosdjgpp*)
4528: # Override, as these systems have only a dummy fork() stub
4529: ac_cv_func_fork_works=no
4530: ;;
4531: *)
4532: ac_cv_func_fork_works=yes
4533: ;;
4534: esac
1.39 misho 4535: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4536: printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
1.1 misho 4537: fi
4538: ac_cv_func_vfork_works=$ac_cv_func_vfork
4539: if test "x$ac_cv_func_vfork" = xyes; then
1.39 misho 4540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4541: printf %s "checking for working vfork... " >&6; }
4542: if test ${ac_cv_func_vfork_works+y}
4543: then :
4544: printf %s "(cached) " >&6
4545: else $as_nop
4546: if test "$cross_compiling" = yes
4547: then :
1.1 misho 4548: ac_cv_func_vfork_works=cross
1.39 misho 4549: else $as_nop
1.2 misho 4550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4551: /* end confdefs.h. */
4552: /* Thanks to Paul Eggert for this test. */
4553: $ac_includes_default
1.39 misho 4554: #include <signal.h>
1.1 misho 4555: #include <sys/wait.h>
4556: #ifdef HAVE_VFORK_H
4557: # include <vfork.h>
4558: #endif
1.39 misho 4559:
4560: static void
4561: do_nothing (int sig)
4562: {
4563: (void) sig;
4564: }
4565:
1.1 misho 4566: /* On some sparc systems, changes by the child to local and incoming
4567: argument registers are propagated back to the parent. The compiler
4568: is told about this with #include <vfork.h>, but some compilers
4569: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4570: static variable whose address is put into a register that is
4571: clobbered by the vfork. */
4572: static void
4573: sparc_address_test (int arg)
4574: {
4575: static pid_t child;
4576: if (!child) {
4577: child = vfork ();
4578: if (child < 0) {
4579: perror ("vfork");
4580: _exit(2);
4581: }
4582: if (!child) {
4583: arg = getpid();
4584: write(-1, "", 0);
4585: _exit (arg);
4586: }
4587: }
4588: }
4589:
4590: int
1.39 misho 4591: main (void)
1.1 misho 4592: {
4593: pid_t parent = getpid ();
4594: pid_t child;
4595:
4596: sparc_address_test (0);
4597:
1.39 misho 4598: /* On Solaris 2.4, changes by the child to the signal handler
4599: also munge signal handlers in the parent. To detect this,
4600: start by putting the parent's handler in a known state. */
4601: signal (SIGTERM, SIG_DFL);
4602:
1.1 misho 4603: child = vfork ();
4604:
4605: if (child == 0) {
4606: /* Here is another test for sparc vfork register problems. This
4607: test uses lots of local variables, at least as many local
4608: variables as main has allocated so far including compiler
4609: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4610: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4611: reuse the register of parent for one of the local variables,
4612: since it will think that parent can't possibly be used any more
4613: in this routine. Assigning to the local variable will thus
4614: munge parent in the parent process. */
4615: pid_t
4616: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4617: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4618: /* Convince the compiler that p..p7 are live; otherwise, it might
4619: use the same hardware register for all 8 local variables. */
4620: if (p != p1 || p != p2 || p != p3 || p != p4
4621: || p != p5 || p != p6 || p != p7)
4622: _exit(1);
4623:
1.39 misho 4624: /* Alter the child's signal handler. */
4625: if (signal (SIGTERM, do_nothing) != SIG_DFL)
4626: _exit(1);
4627:
1.1 misho 4628: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4629: from child file descriptors. If the child closes a descriptor
4630: before it execs or exits, this munges the parent's descriptor
4631: as well. Test for this by closing stdout in the child. */
4632: _exit(close(fileno(stdout)) != 0);
4633: } else {
4634: int status;
4635: struct stat st;
4636:
4637: while (wait(&status) != child)
4638: ;
4639: return (
4640: /* Was there some problem with vforking? */
4641: child < 0
4642:
1.39 misho 4643: /* Did the child munge the parent's signal handler? */
4644: || signal (SIGTERM, SIG_DFL) != SIG_DFL
4645:
1.1 misho 4646: /* Did the child fail? (This shouldn't happen.) */
4647: || status
4648:
4649: /* Did the vfork/compiler bug occur? */
4650: || parent != getpid()
4651:
4652: /* Did the file descriptor bug occur? */
4653: || fstat(fileno(stdout), &st) != 0
4654: );
4655: }
4656: }
4657: _ACEOF
1.39 misho 4658: if ac_fn_c_try_run "$LINENO"
4659: then :
1.2 misho 4660: ac_cv_func_vfork_works=yes
1.39 misho 4661: else $as_nop
1.2 misho 4662: ac_cv_func_vfork_works=no
4663: fi
4664: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4665: conftest.$ac_objext conftest.beam conftest.$ac_ext
4666: fi
4667:
4668: fi
1.39 misho 4669: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4670: printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
1.1 misho 4671:
1.2 misho 4672: fi;
4673: if test "x$ac_cv_func_fork_works" = xcross; then
4674: ac_cv_func_vfork_works=$ac_cv_func_vfork
1.39 misho 4675: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4676: printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
1.1 misho 4677: fi
4678:
1.2 misho 4679: if test "x$ac_cv_func_vfork_works" = xyes; then
4680:
1.39 misho 4681: printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
1.1 misho 4682:
4683: else
4684:
1.39 misho 4685: printf "%s\n" "#define vfork fork" >>confdefs.h
1.2 misho 4686:
1.1 misho 4687: fi
1.2 misho 4688: if test "x$ac_cv_func_fork_works" = xyes; then
1.1 misho 4689:
1.39 misho 4690: printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
1.1 misho 4691:
4692: fi
4693:
1.39 misho 4694: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4695: printf %s "checking for GNU libc compatible malloc... " >&6; }
4696: if test ${ac_cv_func_malloc_0_nonnull+y}
4697: then :
4698: printf %s "(cached) " >&6
4699: else $as_nop
4700: if test "$cross_compiling" = yes
4701: then :
4702: case "$host_os" in # ((
4703: # Guess yes on platforms where we know the result.
4704: *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4705: | hpux* | solaris* | cygwin* | mingw* | msys* )
4706: ac_cv_func_malloc_0_nonnull=yes ;;
4707: # If we don't know, assume the worst.
4708: *) ac_cv_func_malloc_0_nonnull=no ;;
4709: esac
4710: else $as_nop
1.2 misho 4711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4712: /* end confdefs.h. */
1.39 misho 4713: #include <stdlib.h>
1.1 misho 4714:
4715: int
1.39 misho 4716: main (void)
1.1 misho 4717: {
1.39 misho 4718: void *p = malloc (0);
4719: int result = !p;
4720: free (p);
4721: return result;
1.1 misho 4722: ;
4723: return 0;
4724: }
4725: _ACEOF
1.39 misho 4726: if ac_fn_c_try_run "$LINENO"
4727: then :
1.1 misho 4728: ac_cv_func_malloc_0_nonnull=yes
1.39 misho 4729: else $as_nop
1.2 misho 4730: ac_cv_func_malloc_0_nonnull=no
1.1 misho 4731: fi
1.2 misho 4732: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4733: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4734: fi
4735:
4736: fi
1.39 misho 4737: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4738: printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
4739: if test $ac_cv_func_malloc_0_nonnull = yes
4740: then :
1.1 misho 4741:
1.39 misho 4742: printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
1.1 misho 4743:
1.39 misho 4744: else $as_nop
4745: printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
1.1 misho 4746:
4747: case " $LIBOBJS " in
4748: *" malloc.$ac_objext "* ) ;;
4749: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4750: ;;
4751: esac
4752:
4753:
1.39 misho 4754: printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
1.1 misho 4755:
4756: fi
4757:
4758:
1.39 misho 4759: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4760: printf %s "checking for GNU libc compatible realloc... " >&6; }
4761: if test ${ac_cv_func_realloc_0_nonnull+y}
4762: then :
4763: printf %s "(cached) " >&6
4764: else $as_nop
4765: if test "$cross_compiling" = yes
4766: then :
4767: case "$host_os" in # ((
4768: # Guess yes on platforms where we know the result.
4769: *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
4770: | hpux* | solaris* | cygwin* | mingw* | msys* )
4771: ac_cv_func_realloc_0_nonnull=yes ;;
4772: # If we don't know, assume the worst.
4773: *) ac_cv_func_realloc_0_nonnull=no ;;
4774: esac
4775: else $as_nop
1.2 misho 4776: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 4777: /* end confdefs.h. */
1.39 misho 4778: #include <stdlib.h>
1.1 misho 4779:
4780: int
1.39 misho 4781: main (void)
1.1 misho 4782: {
1.39 misho 4783: void *p = realloc (0, 0);
4784: int result = !p;
4785: free (p);
4786: return result;
1.1 misho 4787: ;
4788: return 0;
4789: }
4790: _ACEOF
1.39 misho 4791: if ac_fn_c_try_run "$LINENO"
4792: then :
1.1 misho 4793: ac_cv_func_realloc_0_nonnull=yes
1.39 misho 4794: else $as_nop
1.2 misho 4795: ac_cv_func_realloc_0_nonnull=no
1.1 misho 4796: fi
1.2 misho 4797: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4798: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 misho 4799: fi
4800:
4801: fi
1.39 misho 4802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4803: printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
4804: if test $ac_cv_func_realloc_0_nonnull = yes
4805: then :
1.1 misho 4806:
1.39 misho 4807: printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
1.1 misho 4808:
1.39 misho 4809: else $as_nop
4810: printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
1.1 misho 4811:
1.2 misho 4812: case " $LIBOBJS " in
4813: *" realloc.$ac_objext "* ) ;;
4814: *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4815: ;;
4816: esac
1.1 misho 4817:
4818:
1.39 misho 4819: printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
4820:
4821: fi
4822:
4823:
4824: ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
4825: if test "x$ac_cv_func_memset" = xyes
4826: then :
4827: printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
4828:
4829: fi
4830: ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4831: if test "x$ac_cv_func_select" = xyes
4832: then :
4833: printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
1.1 misho 4834:
1.2 misho 4835: fi
1.39 misho 4836: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
4837: if test "x$ac_cv_func_socket" = xyes
4838: then :
4839: printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
1.1 misho 4840:
1.39 misho 4841: fi
4842: ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
4843: if test "x$ac_cv_func_strdup" = xyes
4844: then :
4845: printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
1.1 misho 4846:
1.39 misho 4847: fi
4848: ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
4849: if test "x$ac_cv_func_strerror" = xyes
4850: then :
4851: printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
1.1 misho 4852:
4853: fi
1.2 misho 4854:
1.39 misho 4855: ac_fn_c_check_func "$LINENO" "srandomdev" "ac_cv_func_srandomdev"
4856: if test "x$ac_cv_func_srandomdev" = xyes
4857: then :
4858: printf "%s\n" "#define HAVE_SRANDOMDEV 1" >>confdefs.h
1.1 misho 4859:
4860: fi
1.2 misho 4861:
1.39 misho 4862: ac_fn_c_check_func "$LINENO" "crcFletcher16" "ac_cv_func_crcFletcher16"
4863: if test "x$ac_cv_func_crcFletcher16" = xyes
4864: then :
4865: printf "%s\n" "#define HAVE_CRCFLETCHER16 1" >>confdefs.h
4866:
4867: fi
4868: ac_fn_c_check_func "$LINENO" "hash_fnv1" "ac_cv_func_hash_fnv1"
4869: if test "x$ac_cv_func_hash_fnv1" = xyes
4870: then :
4871: printf "%s\n" "#define HAVE_HASH_FNV1 1" >>confdefs.h
1.1 misho 4872:
4873: fi
4874:
1.39 misho 4875: ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
4876: if test "x$ac_cv_func_pthread_yield" = xyes
4877: then :
4878: printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
1.4 misho 4879:
4880: fi
4881:
1.39 misho 4882: ac_fn_c_check_func "$LINENO" "array_Init" "ac_cv_func_array_Init"
4883: if test "x$ac_cv_func_array_Init" = xyes
4884: then :
4885: printf "%s\n" "#define HAVE_ARRAY_INIT 1" >>confdefs.h
4886:
4887: fi
4888: ac_fn_c_check_func "$LINENO" "array_Destroy" "ac_cv_func_array_Destroy"
4889: if test "x$ac_cv_func_array_Destroy" = xyes
4890: then :
4891: printf "%s\n" "#define HAVE_ARRAY_DESTROY 1" >>confdefs.h
1.7 misho 4892:
4893: fi
4894:
1.39 misho 4895: ac_fn_c_check_func "$LINENO" "schedInit" "ac_cv_func_schedInit"
4896: if test "x$ac_cv_func_schedInit" = xyes
4897: then :
4898: printf "%s\n" "#define HAVE_SCHEDINIT 1" >>confdefs.h
4899:
4900: fi
4901: ac_fn_c_check_func "$LINENO" "schedEnd" "ac_cv_func_schedEnd"
4902: if test "x$ac_cv_func_schedEnd" = xyes
4903: then :
4904: printf "%s\n" "#define HAVE_SCHEDEND 1" >>confdefs.h
1.5 misho 4905:
4906: fi
4907:
1.1 misho 4908:
4909: DEBUG=no
1.39 misho 4910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
4911: printf %s "checking Debug Build... " >&6; }
1.1 misho 4912: # Check whether --enable-debug was given.
1.39 misho 4913: if test ${enable_debug+y}
4914: then :
1.1 misho 4915: enableval=$enable_debug; DEBUG=$enableval
4916: case "$enableval" in
4917: yes)
4918:
1.39 misho 4919: printf "%s\n" "#define __DEBUG /**/" >>confdefs.h
1.1 misho 4920:
4921: CFLAGS="-g ${CFLAGS}"
4922: ;;
4923: *)
4924:
1.39 misho 4925: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
1.1 misho 4926:
4927: ;;
4928: esac
4929: fi
4930:
1.39 misho 4931: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
4932: printf "%s\n" "$DEBUG" >&6; }
1.1 misho 4933:
1.35 misho 4934: ONLY_CLI=no
1.39 misho 4935: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Build only RPC client" >&5
4936: printf %s "checking Build only RPC client... " >&6; }
1.35 misho 4937: # Check whether --enable-server was given.
1.39 misho 4938: if test ${enable_server+y}
4939: then :
1.35 misho 4940: enableval=$enable_server; if [ "$enableval" = "no" ]; then
4941: ONLY_CLI="yes"
4942:
1.39 misho 4943: printf "%s\n" "#define ONLY_CLI 1" >>confdefs.h
1.35 misho 4944:
4945: else
4946:
1.39 misho 4947: printf "%s\n" "#define ONLY_CLI 0" >>confdefs.h
1.35 misho 4948:
4949: fi
1.39 misho 4950: else $as_nop
1.35 misho 4951:
1.39 misho 4952: printf "%s\n" "#define ONLY_CLI 0" >>confdefs.h
1.35 misho 4953:
4954: fi
4955:
1.39 misho 4956: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ONLY_CLI" >&5
4957: printf "%s\n" "$ONLY_CLI" >&6; }
1.35 misho 4958:
4959:
1.12 misho 4960: CLI_RES_ZC=no
1.39 misho 4961: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Client zero-copy return variables" >&5
4962: printf %s "checking Client zero-copy return variables... " >&6; }
1.12 misho 4963: # Check whether --enable-cli-res-zcpy was given.
1.39 misho 4964: if test ${enable_cli_res_zcpy+y}
4965: then :
1.12 misho 4966: enableval=$enable_cli_res_zcpy; CLI_RES_ZC=$enableval
4967: case "$enableval" in
4968: yes)
4969:
1.39 misho 4970: printf "%s\n" "#define CLI_RES_ZCOPY /**/" >>confdefs.h
1.12 misho 4971:
4972: ;;
4973: *)
4974: ;;
4975: esac
4976: fi
4977:
1.39 misho 4978: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLI_RES_ZC" >&5
4979: printf "%s\n" "$CLI_RES_ZC" >&6; }
1.12 misho 4980:
1.24 misho 4981: TCP_SESSION_TIMEOUT=no
1.39 misho 4982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RPC server can to do expiring for TCP sessions" >&5
4983: printf %s "checking RPC server can to do expiring for TCP sessions... " >&6; }
1.24 misho 4984: # Check whether --enable-tcp_sess_exp was given.
1.39 misho 4985: if test ${enable_tcp_sess_exp+y}
4986: then :
1.24 misho 4987: enableval=$enable_tcp_sess_exp; TCP_SESSION_TIMEOUT=$enableval
4988: case "$enableval" in
4989: yes)
4990:
1.39 misho 4991: printf "%s\n" "#define TCP_SESSION_TIMEOUT /**/" >>confdefs.h
1.24 misho 4992:
4993: ;;
4994: *)
4995: ;;
4996: esac
4997: fi
4998:
1.39 misho 4999: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCP_SESSION_TIMEOUT" >&5
5000: printf "%s\n" "$TCP_SESSION_TIMEOUT" >&6; }
1.24 misho 5001:
5002: DEF_RPC_TIMEOUT=60
1.39 misho 5003: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RPC server timeout period" >&5
5004: printf %s "checking RPC server timeout period... " >&6; }
1.24 misho 5005:
5006: # Check whether --with-timeout_period was given.
1.39 misho 5007: if test ${with_timeout_period+y}
5008: then :
1.24 misho 5009: withval=$with_timeout_period; DEF_RPC_TIMEOUT=$withval
5010: fi
5011:
5012:
1.39 misho 5013: printf "%s\n" "#define DEF_RPC_TIMEOUT $DEF_RPC_TIMEOUT" >>confdefs.h
1.24 misho 5014:
1.39 misho 5015: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEF_RPC_TIMEOUT" >&5
5016: printf "%s\n" "$DEF_RPC_TIMEOUT" >&6; }
1.24 misho 5017:
1.35 misho 5018: DEF_RPC_BLOB_TIMEOUT=60
1.39 misho 5019: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RPC BLOB server timeout period" >&5
5020: printf %s "checking RPC BLOB server timeout period... " >&6; }
1.35 misho 5021:
5022: # Check whether --with-blob_timeout was given.
1.39 misho 5023: if test ${with_blob_timeout+y}
5024: then :
1.35 misho 5025: withval=$with_blob_timeout; DEF_RPC_BLOB_TIMEOUT=$withval
5026: fi
5027:
5028:
1.39 misho 5029: printf "%s\n" "#define DEF_RPC_BLOB_TIMEOUT $DEF_RPC_BLOB_TIMEOUT" >>confdefs.h
1.35 misho 5030:
1.39 misho 5031: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEF_RPC_BLOB_TIMEOUT" >&5
5032: printf "%s\n" "$DEF_RPC_BLOB_TIMEOUT" >&6; }
1.35 misho 5033:
1.25 misho 5034:
1.39 misho 5035: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile debian/Makefile src/Makefile"
1.1 misho 5036:
5037: cat >confcache <<\_ACEOF
5038: # This file is a shell script that caches the results of configure
5039: # tests run on this system so they can be shared between configure
5040: # scripts and configure runs, see configure's option --config-cache.
5041: # It is not useful on other systems. If it contains results you don't
5042: # want to keep, you may remove or edit it.
5043: #
5044: # config.status only pays attention to the cache file if you give it
5045: # the --recheck option to rerun configure.
5046: #
5047: # `ac_cv_env_foo' variables (set or unset) will be overridden when
5048: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5049: # following values.
5050:
5051: _ACEOF
5052:
5053: # The following way of writing the cache mishandles newlines in values,
5054: # but we know of no workaround that is simple, portable, and efficient.
5055: # So, we kill variables containing newlines.
5056: # Ultrix sh set writes to stderr and can't be redirected directly,
5057: # and sets the high bit in the cache file unless we assign to the vars.
5058: (
5059: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5060: eval ac_val=\$$ac_var
5061: case $ac_val in #(
5062: *${as_nl}*)
5063: case $ac_var in #(
1.39 misho 5064: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5065: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 misho 5066: esac
5067: case $ac_var in #(
5068: _ | IFS | as_nl) ;; #(
5069: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.2 misho 5070: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 misho 5071: esac ;;
5072: esac
5073: done
5074:
5075: (set) 2>&1 |
5076: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5077: *${as_nl}ac_space=\ *)
1.2 misho 5078: # `set' does not quote correctly, so add quotes: double-quote
5079: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 misho 5080: sed -n \
5081: "s/'/'\\\\''/g;
5082: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5083: ;; #(
5084: *)
5085: # `set' quotes correctly as required by POSIX, so do not add quotes.
5086: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5087: ;;
5088: esac |
5089: sort
5090: ) |
5091: sed '
5092: /^ac_cv_env_/b end
5093: t clear
5094: :clear
1.39 misho 5095: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.1 misho 5096: t end
5097: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5098: :end' >>confcache
5099: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5100: if test -w "$cache_file"; then
1.7 misho 5101: if test "x$cache_file" != "x/dev/null"; then
1.39 misho 5102: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5103: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.7 misho 5104: if test ! -f "$cache_file" || test -h "$cache_file"; then
5105: cat confcache >"$cache_file"
5106: else
5107: case $cache_file in #(
5108: */* | ?:*)
5109: mv -f confcache "$cache_file"$$ &&
5110: mv -f "$cache_file"$$ "$cache_file" ;; #(
5111: *)
5112: mv -f confcache "$cache_file" ;;
5113: esac
5114: fi
5115: fi
1.1 misho 5116: else
1.39 misho 5117: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5118: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 misho 5119: fi
5120: fi
5121: rm -f confcache
5122:
5123: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5124: # Let make expand exec_prefix.
5125: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5126:
5127: DEFS=-DHAVE_CONFIG_H
5128:
5129: ac_libobjs=
5130: ac_ltlibobjs=
1.7 misho 5131: U=
1.1 misho 5132: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5133: # 1. Remove the extension, and $U if already installed.
5134: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.39 misho 5135: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.1 misho 5136: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5137: # will be set to the directory where LIBOBJS objects are built.
1.2 misho 5138: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5139: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 misho 5140: done
5141: LIBOBJS=$ac_libobjs
5142:
5143: LTLIBOBJS=$ac_ltlibobjs
5144:
5145:
5146:
1.7 misho 5147: : "${CONFIG_STATUS=./config.status}"
1.1 misho 5148: ac_write_fail=0
5149: ac_clean_files_save=$ac_clean_files
5150: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.39 misho 5151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5152: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.2 misho 5153: as_write_fail=0
5154: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 misho 5155: #! $SHELL
5156: # Generated by $as_me.
5157: # Run this file to recreate the current configuration.
5158: # Compiler output produced by configure, useful for debugging
5159: # configure, is in config.log if it exists.
5160:
5161: debug=false
5162: ac_cs_recheck=false
5163: ac_cs_silent=false
1.2 misho 5164:
1.1 misho 5165: SHELL=\${CONFIG_SHELL-$SHELL}
1.2 misho 5166: export SHELL
5167: _ASEOF
5168: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5169: ## -------------------- ##
5170: ## M4sh Initialization. ##
5171: ## -------------------- ##
1.1 misho 5172:
5173: # Be more Bourne compatible
5174: DUALCASE=1; export DUALCASE # for MKS sh
1.39 misho 5175: as_nop=:
5176: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5177: then :
1.1 misho 5178: emulate sh
5179: NULLCMD=:
5180: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5181: # is contrary to our usage. Disable this feature.
5182: alias -g '${1+"$@"}'='"$@"'
5183: setopt NO_GLOB_SUBST
1.39 misho 5184: else $as_nop
1.2 misho 5185: case `(set -o) 2>/dev/null` in #(
5186: *posix*) :
5187: set -o posix ;; #(
5188: *) :
5189: ;;
1.1 misho 5190: esac
5191: fi
5192:
5193:
1.39 misho 5194:
5195: # Reset variables that may have inherited troublesome values from
5196: # the environment.
5197:
5198: # IFS needs to be set, to space, tab, and newline, in precisely that order.
5199: # (If _AS_PATH_WALK were called with IFS unset, it would have the
5200: # side effect of setting IFS to empty, thus disabling word splitting.)
5201: # Quoting is to prevent editors from complaining about space-tab.
1.1 misho 5202: as_nl='
5203: '
5204: export as_nl
1.39 misho 5205: IFS=" "" $as_nl"
5206:
5207: PS1='$ '
5208: PS2='> '
5209: PS4='+ '
5210:
5211: # Ensure predictable behavior from utilities with locale-dependent output.
5212: LC_ALL=C
5213: export LC_ALL
5214: LANGUAGE=C
5215: export LANGUAGE
5216:
5217: # We cannot yet rely on "unset" to work, but we need these variables
5218: # to be unset--not just set to an empty or harmless value--now, to
5219: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5220: # also avoids known problems related to "unset" and subshell syntax
5221: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5222: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5223: do eval test \${$as_var+y} \
5224: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5225: done
5226:
5227: # Ensure that fds 0, 1, and 2 are open.
5228: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5229: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5230: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 misho 5231:
5232: # The user is always right.
1.39 misho 5233: if ${PATH_SEPARATOR+false} :; then
1.1 misho 5234: PATH_SEPARATOR=:
5235: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5236: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5237: PATH_SEPARATOR=';'
5238: }
5239: fi
5240:
5241:
5242: # Find who we are. Look in the path if we contain no directory separator.
1.7 misho 5243: as_myself=
1.2 misho 5244: case $0 in #((
1.1 misho 5245: *[\\/]* ) as_myself=$0 ;;
5246: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247: for as_dir in $PATH
5248: do
5249: IFS=$as_save_IFS
1.39 misho 5250: case $as_dir in #(((
5251: '') as_dir=./ ;;
5252: */) ;;
5253: *) as_dir=$as_dir/ ;;
5254: esac
5255: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.2 misho 5256: done
1.1 misho 5257: IFS=$as_save_IFS
5258:
5259: ;;
5260: esac
5261: # We did not find ourselves, most probably we were run as `sh COMMAND'
5262: # in which case we are not to be found in the path.
5263: if test "x$as_myself" = x; then
5264: as_myself=$0
5265: fi
5266: if test ! -f "$as_myself"; then
1.39 misho 5267: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.2 misho 5268: exit 1
1.1 misho 5269: fi
5270:
1.2 misho 5271:
5272:
1.7 misho 5273: # as_fn_error STATUS ERROR [LINENO LOG_FD]
5274: # ----------------------------------------
1.2 misho 5275: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5276: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.7 misho 5277: # script with STATUS, using 1 if that was 0.
1.2 misho 5278: as_fn_error ()
5279: {
1.7 misho 5280: as_status=$1; test $as_status -eq 0 && as_status=1
5281: if test "$4"; then
5282: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.39 misho 5283: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.2 misho 5284: fi
1.39 misho 5285: printf "%s\n" "$as_me: error: $2" >&2
1.2 misho 5286: as_fn_exit $as_status
5287: } # as_fn_error
5288:
5289:
1.39 misho 5290:
1.2 misho 5291: # as_fn_set_status STATUS
5292: # -----------------------
5293: # Set $? to STATUS, without forking.
5294: as_fn_set_status ()
5295: {
5296: return $1
5297: } # as_fn_set_status
5298:
5299: # as_fn_exit STATUS
5300: # -----------------
5301: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5302: as_fn_exit ()
5303: {
5304: set +e
5305: as_fn_set_status $1
5306: exit $1
5307: } # as_fn_exit
5308:
5309: # as_fn_unset VAR
5310: # ---------------
5311: # Portably unset VAR.
5312: as_fn_unset ()
5313: {
5314: { eval $1=; unset $1;}
5315: }
5316: as_unset=as_fn_unset
1.39 misho 5317:
1.2 misho 5318: # as_fn_append VAR VALUE
5319: # ----------------------
5320: # Append the text in VALUE to the end of the definition contained in VAR. Take
5321: # advantage of any shell optimizations that allow amortized linear growth over
5322: # repeated appends, instead of the typical quadratic growth present in naive
5323: # implementations.
1.39 misho 5324: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
5325: then :
1.2 misho 5326: eval 'as_fn_append ()
5327: {
5328: eval $1+=\$2
5329: }'
1.39 misho 5330: else $as_nop
1.2 misho 5331: as_fn_append ()
5332: {
5333: eval $1=\$$1\$2
5334: }
5335: fi # as_fn_append
5336:
5337: # as_fn_arith ARG...
5338: # ------------------
5339: # Perform arithmetic evaluation on the ARGs, and store the result in the
5340: # global $as_val. Take advantage of shells that can avoid forks. The arguments
5341: # must be portable across $(()) and expr.
1.39 misho 5342: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5343: then :
1.2 misho 5344: eval 'as_fn_arith ()
5345: {
5346: as_val=$(( $* ))
5347: }'
1.39 misho 5348: else $as_nop
1.2 misho 5349: as_fn_arith ()
5350: {
5351: as_val=`expr "$@" || test $? -eq 1`
5352: }
5353: fi # as_fn_arith
5354:
5355:
1.1 misho 5356: if expr a : '\(a\)' >/dev/null 2>&1 &&
5357: test "X`expr 00001 : '.*\(...\)'`" = X001; then
5358: as_expr=expr
5359: else
5360: as_expr=false
5361: fi
5362:
5363: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5364: as_basename=basename
5365: else
5366: as_basename=false
5367: fi
5368:
1.2 misho 5369: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5370: as_dirname=dirname
5371: else
5372: as_dirname=false
5373: fi
1.1 misho 5374:
5375: as_me=`$as_basename -- "$0" ||
5376: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5377: X"$0" : 'X\(//\)$' \| \
5378: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.39 misho 5379: printf "%s\n" X/"$0" |
1.1 misho 5380: sed '/^.*\/\([^/][^/]*\)\/*$/{
5381: s//\1/
5382: q
5383: }
5384: /^X\/\(\/\/\)$/{
5385: s//\1/
5386: q
5387: }
5388: /^X\/\(\/\).*/{
5389: s//\1/
5390: q
5391: }
5392: s/.*/./; q'`
5393:
1.2 misho 5394: # Avoid depending upon Character Ranges.
5395: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5396: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5397: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5398: as_cr_digits='0123456789'
5399: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 misho 5400:
1.39 misho 5401:
5402: # Determine whether it's possible to make 'echo' print without a newline.
5403: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5404: # for compatibility with existing Makefiles.
1.1 misho 5405: ECHO_C= ECHO_N= ECHO_T=
1.2 misho 5406: case `echo -n x` in #(((((
1.1 misho 5407: -n*)
1.2 misho 5408: case `echo 'xy\c'` in
1.1 misho 5409: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.2 misho 5410: xy) ECHO_C='\c';;
5411: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5412: ECHO_T=' ';;
1.1 misho 5413: esac;;
5414: *)
5415: ECHO_N='-n';;
5416: esac
5417:
1.39 misho 5418: # For backward compatibility with old third-party macros, we provide
5419: # the shell variables $as_echo and $as_echo_n. New code should use
5420: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5421: as_echo='printf %s\n'
5422: as_echo_n='printf %s'
5423:
1.1 misho 5424: rm -f conf$$ conf$$.exe conf$$.file
5425: if test -d conf$$.dir; then
5426: rm -f conf$$.dir/conf$$.file
5427: else
5428: rm -f conf$$.dir
5429: mkdir conf$$.dir 2>/dev/null
5430: fi
5431: if (echo >conf$$.file) 2>/dev/null; then
5432: if ln -s conf$$.file conf$$ 2>/dev/null; then
5433: as_ln_s='ln -s'
5434: # ... but there are two gotchas:
5435: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5436: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.12 misho 5437: # In both cases, we have to default to `cp -pR'.
1.1 misho 5438: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.12 misho 5439: as_ln_s='cp -pR'
1.1 misho 5440: elif ln conf$$.file conf$$ 2>/dev/null; then
5441: as_ln_s=ln
5442: else
1.12 misho 5443: as_ln_s='cp -pR'
1.1 misho 5444: fi
5445: else
1.12 misho 5446: as_ln_s='cp -pR'
1.1 misho 5447: fi
5448: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5449: rmdir conf$$.dir 2>/dev/null
5450:
1.2 misho 5451:
5452: # as_fn_mkdir_p
5453: # -------------
5454: # Create "$as_dir" as a directory, including parents if necessary.
5455: as_fn_mkdir_p ()
5456: {
5457:
5458: case $as_dir in #(
5459: -*) as_dir=./$as_dir;;
5460: esac
5461: test -d "$as_dir" || eval $as_mkdir_p || {
5462: as_dirs=
5463: while :; do
5464: case $as_dir in #(
1.39 misho 5465: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.2 misho 5466: *) as_qdir=$as_dir;;
5467: esac
5468: as_dirs="'$as_qdir' $as_dirs"
5469: as_dir=`$as_dirname -- "$as_dir" ||
5470: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5471: X"$as_dir" : 'X\(//\)[^/]' \| \
5472: X"$as_dir" : 'X\(//\)$' \| \
5473: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.39 misho 5474: printf "%s\n" X"$as_dir" |
1.2 misho 5475: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5476: s//\1/
5477: q
5478: }
5479: /^X\(\/\/\)[^/].*/{
5480: s//\1/
5481: q
5482: }
5483: /^X\(\/\/\)$/{
5484: s//\1/
5485: q
5486: }
5487: /^X\(\/\).*/{
5488: s//\1/
5489: q
5490: }
5491: s/.*/./; q'`
5492: test -d "$as_dir" && break
5493: done
5494: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.7 misho 5495: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.2 misho 5496:
5497:
5498: } # as_fn_mkdir_p
1.1 misho 5499: if mkdir -p . 2>/dev/null; then
1.2 misho 5500: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misho 5501: else
5502: test -d ./-p && rmdir ./-p
5503: as_mkdir_p=false
5504: fi
5505:
1.12 misho 5506:
5507: # as_fn_executable_p FILE
5508: # -----------------------
5509: # Test if FILE is an executable regular file.
5510: as_fn_executable_p ()
5511: {
5512: test -f "$1" && test -x "$1"
5513: } # as_fn_executable_p
5514: as_test_x='test -x'
5515: as_executable_p=as_fn_executable_p
1.1 misho 5516:
5517: # Sed expression to map a string onto a valid CPP name.
5518: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5519:
5520: # Sed expression to map a string onto a valid variable name.
5521: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5522:
5523:
5524: exec 6>&1
1.2 misho 5525: ## ----------------------------------- ##
5526: ## Main body of $CONFIG_STATUS script. ##
5527: ## ----------------------------------- ##
5528: _ASEOF
5529: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 misho 5530:
1.2 misho 5531: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5532: # Save the log message, to keep $0 and so on meaningful, and to
1.1 misho 5533: # report actual input values of CONFIG_FILES etc. instead of their
5534: # values after options handling.
5535: ac_log="
1.39.2.1! misho 5536: This file was extended by libaitrpc $as_me 9.6, which was
1.39 misho 5537: generated by GNU Autoconf 2.71. Invocation command line was
1.1 misho 5538:
5539: CONFIG_FILES = $CONFIG_FILES
5540: CONFIG_HEADERS = $CONFIG_HEADERS
5541: CONFIG_LINKS = $CONFIG_LINKS
5542: CONFIG_COMMANDS = $CONFIG_COMMANDS
5543: $ $0 $@
5544:
5545: on `(hostname || uname -n) 2>/dev/null | sed 1q`
5546: "
5547:
5548: _ACEOF
5549:
1.2 misho 5550: case $ac_config_files in *"
5551: "*) set x $ac_config_files; shift; ac_config_files=$*;;
5552: esac
5553:
5554: case $ac_config_headers in *"
5555: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5556: esac
5557:
5558:
1.1 misho 5559: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5560: # Files that config.status was made for.
5561: config_files="$ac_config_files"
5562: config_headers="$ac_config_headers"
5563:
5564: _ACEOF
5565:
5566: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5567: ac_cs_usage="\
1.2 misho 5568: \`$as_me' instantiates files and other configuration actions
5569: from templates according to the current configuration. Unless the files
5570: and actions are specified as TAGs, all are instantiated by default.
1.1 misho 5571:
1.2 misho 5572: Usage: $0 [OPTION]... [TAG]...
1.1 misho 5573:
5574: -h, --help print this help, then exit
5575: -V, --version print version number and configuration settings, then exit
1.7 misho 5576: --config print configuration, then exit
1.2 misho 5577: -q, --quiet, --silent
5578: do not print progress messages
1.1 misho 5579: -d, --debug don't remove temporary files
5580: --recheck update $as_me by reconfiguring in the same conditions
1.2 misho 5581: --file=FILE[:TEMPLATE]
1.1 misho 5582: instantiate the configuration file FILE
1.2 misho 5583: --header=FILE[:TEMPLATE]
1.1 misho 5584: instantiate the configuration header FILE
5585:
5586: Configuration files:
5587: $config_files
5588:
5589: Configuration headers:
5590: $config_headers
5591:
1.5 misho 5592: Report bugs to <misho@elwix.org>."
1.1 misho 5593:
5594: _ACEOF
1.39 misho 5595: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5596: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.1 misho 5597: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.39 misho 5598: ac_cs_config='$ac_cs_config_escaped'
1.1 misho 5599: ac_cs_version="\\
1.39.2.1! misho 5600: libaitrpc config.status 9.6
1.39 misho 5601: configured by $0, generated by GNU Autoconf 2.71,
1.7 misho 5602: with options \\"\$ac_cs_config\\"
1.1 misho 5603:
1.39 misho 5604: Copyright (C) 2021 Free Software Foundation, Inc.
1.1 misho 5605: This config.status script is free software; the Free Software Foundation
5606: gives unlimited permission to copy, distribute and modify it."
5607:
5608: ac_pwd='$ac_pwd'
5609: srcdir='$srcdir'
5610: INSTALL='$INSTALL'
5611: test -n "\$AWK" || AWK=awk
5612: _ACEOF
5613:
5614: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5615: # The default lists apply if the user does not specify any file.
5616: ac_need_defaults=:
5617: while test $# != 0
5618: do
5619: case $1 in
1.7 misho 5620: --*=?*)
1.1 misho 5621: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5622: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5623: ac_shift=:
5624: ;;
1.7 misho 5625: --*=)
5626: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5627: ac_optarg=
5628: ac_shift=:
5629: ;;
1.1 misho 5630: *)
5631: ac_option=$1
5632: ac_optarg=$2
5633: ac_shift=shift
5634: ;;
5635: esac
5636:
5637: case $ac_option in
5638: # Handling of the options.
5639: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5640: ac_cs_recheck=: ;;
5641: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.39 misho 5642: printf "%s\n" "$ac_cs_version"; exit ;;
1.7 misho 5643: --config | --confi | --conf | --con | --co | --c )
1.39 misho 5644: printf "%s\n" "$ac_cs_config"; exit ;;
1.1 misho 5645: --debug | --debu | --deb | --de | --d | -d )
5646: debug=: ;;
5647: --file | --fil | --fi | --f )
5648: $ac_shift
5649: case $ac_optarg in
1.39 misho 5650: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.7 misho 5651: '') as_fn_error $? "missing file argument" ;;
1.1 misho 5652: esac
1.2 misho 5653: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 misho 5654: ac_need_defaults=false;;
5655: --header | --heade | --head | --hea )
5656: $ac_shift
5657: case $ac_optarg in
1.39 misho 5658: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misho 5659: esac
1.2 misho 5660: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 misho 5661: ac_need_defaults=false;;
5662: --he | --h)
5663: # Conflict between --help and --header
1.7 misho 5664: as_fn_error $? "ambiguous option: \`$1'
1.2 misho 5665: Try \`$0 --help' for more information.";;
1.1 misho 5666: --help | --hel | -h )
1.39 misho 5667: printf "%s\n" "$ac_cs_usage"; exit ;;
1.1 misho 5668: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5669: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5670: ac_cs_silent=: ;;
5671:
5672: # This is an error.
1.7 misho 5673: -*) as_fn_error $? "unrecognized option: \`$1'
1.2 misho 5674: Try \`$0 --help' for more information." ;;
1.1 misho 5675:
1.2 misho 5676: *) as_fn_append ac_config_targets " $1"
1.1 misho 5677: ac_need_defaults=false ;;
5678:
5679: esac
5680: shift
5681: done
5682:
5683: ac_configure_extra_args=
5684:
5685: if $ac_cs_silent; then
5686: exec 6>/dev/null
5687: ac_configure_extra_args="$ac_configure_extra_args --silent"
5688: fi
5689:
5690: _ACEOF
5691: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5692: if \$ac_cs_recheck; then
1.12 misho 5693: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 5694: shift
1.39 misho 5695: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.1 misho 5696: CONFIG_SHELL='$SHELL'
5697: export CONFIG_SHELL
5698: exec "\$@"
5699: fi
5700:
5701: _ACEOF
5702: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5703: exec 5>>config.log
5704: {
5705: echo
5706: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5707: ## Running $as_me. ##
5708: _ASBOX
1.39 misho 5709: printf "%s\n" "$ac_log"
1.1 misho 5710: } >&5
5711:
5712: _ACEOF
5713: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5714: _ACEOF
5715:
5716: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5717:
5718: # Handling of arguments.
5719: for ac_config_target in $ac_config_targets
5720: do
5721: case $ac_config_target in
5722: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
5723: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5724: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
5725: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
1.39 misho 5726: "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
1.1 misho 5727: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5728:
1.7 misho 5729: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 misho 5730: esac
5731: done
5732:
5733:
5734: # If the user did not use the arguments to specify the items to instantiate,
5735: # then the envvar interface is used. Set only those that are not.
5736: # We use the long form for the default assignment because of an extremely
5737: # bizarre bug on SunOS 4.1.3.
5738: if $ac_need_defaults; then
1.39 misho 5739: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5740: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1.1 misho 5741: fi
5742:
5743: # Have a temporary directory for convenience. Make it in the build tree
5744: # simply because there is no reason against having it here, and in addition,
5745: # creating and moving files from /tmp can sometimes cause problems.
5746: # Hook for its removal unless debugging.
5747: # Note that there is a small window in which the directory will not be cleaned:
5748: # after its creation but before its name has been assigned to `$tmp'.
5749: $debug ||
5750: {
1.7 misho 5751: tmp= ac_tmp=
1.1 misho 5752: trap 'exit_status=$?
1.7 misho 5753: : "${ac_tmp:=$tmp}"
5754: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 misho 5755: ' 0
1.2 misho 5756: trap 'as_fn_exit 1' 1 2 13 15
1.1 misho 5757: }
5758: # Create a (secure) tmp directory for tmp files.
5759:
5760: {
5761: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.7 misho 5762: test -d "$tmp"
1.1 misho 5763: } ||
5764: {
5765: tmp=./conf$$-$RANDOM
5766: (umask 077 && mkdir "$tmp")
1.7 misho 5767: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5768: ac_tmp=$tmp
1.1 misho 5769:
5770: # Set up the scripts for CONFIG_FILES section.
5771: # No need to generate them if there are no CONFIG_FILES.
5772: # This happens for instance with `./config.status config.h'.
5773: if test -n "$CONFIG_FILES"; then
5774:
5775:
1.2 misho 5776: ac_cr=`echo X | tr X '\015'`
5777: # On cygwin, bash can eat \r inside `` if the user requested igncr.
5778: # But we know of no other shell where ac_cr would be empty at this
5779: # point, so we can use a bashism as a fallback.
5780: if test "x$ac_cr" = x; then
5781: eval ac_cr=\$\'\\r\'
5782: fi
1.1 misho 5783: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5784: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.7 misho 5785: ac_cs_awk_cr='\\r'
1.1 misho 5786: else
5787: ac_cs_awk_cr=$ac_cr
5788: fi
5789:
1.7 misho 5790: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.1 misho 5791: _ACEOF
5792:
5793:
5794: {
5795: echo "cat >conf$$subs.awk <<_ACEOF" &&
5796: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5797: echo "_ACEOF"
5798: } >conf$$subs.sh ||
1.7 misho 5799: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5800: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.1 misho 5801: ac_delim='%!_!# '
5802: for ac_last_try in false false false false false :; do
5803: . ./conf$$subs.sh ||
1.7 misho 5804: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 5805:
1.2 misho 5806: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5807: if test $ac_delim_n = $ac_delim_num; then
1.1 misho 5808: break
5809: elif $ac_last_try; then
1.7 misho 5810: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 5811: else
5812: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5813: fi
5814: done
5815: rm -f conf$$subs.sh
5816:
5817: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.7 misho 5818: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 5819: _ACEOF
5820: sed -n '
5821: h
5822: s/^/S["/; s/!.*/"]=/
5823: p
5824: g
5825: s/^[^!]*!//
5826: :repl
5827: t repl
5828: s/'"$ac_delim"'$//
5829: t delim
5830: :nl
5831: h
1.7 misho 5832: s/\(.\{148\}\)..*/\1/
1.1 misho 5833: t more1
5834: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5835: p
5836: n
5837: b repl
5838: :more1
5839: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5840: p
5841: g
5842: s/.\{148\}//
5843: t nl
5844: :delim
5845: h
1.7 misho 5846: s/\(.\{148\}\)..*/\1/
1.1 misho 5847: t more2
5848: s/["\\]/\\&/g; s/^/"/; s/$/"/
5849: p
5850: b
5851: :more2
5852: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5853: p
5854: g
5855: s/.\{148\}//
5856: t delim
5857: ' <conf$$subs.awk | sed '
5858: /^[^""]/{
5859: N
5860: s/\n//
5861: }
5862: ' >>$CONFIG_STATUS || ac_write_fail=1
5863: rm -f conf$$subs.awk
5864: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5865: _ACAWK
1.7 misho 5866: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.1 misho 5867: for (key in S) S_is_set[key] = 1
5868: FS = ""
5869:
5870: }
5871: {
5872: line = $ 0
5873: nfields = split(line, field, "@")
5874: substed = 0
5875: len = length(field[1])
5876: for (i = 2; i < nfields; i++) {
5877: key = field[i]
5878: keylen = length(key)
5879: if (S_is_set[key]) {
5880: value = S[key]
5881: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5882: len += length(value) + length(field[++i])
5883: substed = 1
5884: } else
5885: len += 1 + keylen
5886: }
5887:
5888: print line
5889: }
5890:
5891: _ACAWK
5892: _ACEOF
5893: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5894: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5895: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5896: else
5897: cat
1.7 misho 5898: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5899: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 misho 5900: _ACEOF
5901:
1.7 misho 5902: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5903: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 misho 5904: # trailing colons and then remove the whole line if VPATH becomes empty
5905: # (actually we leave an empty line to preserve line numbers).
5906: if test "x$srcdir" = x.; then
1.7 misho 5907: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5908: h
5909: s///
5910: s/^/:/
5911: s/[ ]*$/:/
5912: s/:\$(srcdir):/:/g
5913: s/:\${srcdir}:/:/g
5914: s/:@srcdir@:/:/g
5915: s/^:*//
1.1 misho 5916: s/:*$//
1.7 misho 5917: x
5918: s/\(=[ ]*\).*/\1/
5919: G
5920: s/\n//
1.1 misho 5921: s/^[^=]*=[ ]*$//
5922: }'
5923: fi
5924:
5925: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5926: fi # test -n "$CONFIG_FILES"
5927:
5928: # Set up the scripts for CONFIG_HEADERS section.
5929: # No need to generate them if there are no CONFIG_HEADERS.
5930: # This happens for instance with `./config.status Makefile'.
5931: if test -n "$CONFIG_HEADERS"; then
1.7 misho 5932: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.1 misho 5933: BEGIN {
5934: _ACEOF
5935:
5936: # Transform confdefs.h into an awk script `defines.awk', embedded as
5937: # here-document in config.status, that substitutes the proper values into
5938: # config.h.in to produce config.h.
5939:
5940: # Create a delimiter string that does not exist in confdefs.h, to ease
5941: # handling of long lines.
5942: ac_delim='%!_!# '
5943: for ac_last_try in false false :; do
1.7 misho 5944: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5945: if test -z "$ac_tt"; then
1.1 misho 5946: break
5947: elif $ac_last_try; then
1.7 misho 5948: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.1 misho 5949: else
5950: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5951: fi
5952: done
5953:
5954: # For the awk script, D is an array of macro values keyed by name,
5955: # likewise P contains macro parameters if any. Preserve backslash
5956: # newline sequences.
5957:
5958: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5959: sed -n '
5960: s/.\{148\}/&'"$ac_delim"'/g
5961: t rset
5962: :rset
5963: s/^[ ]*#[ ]*define[ ][ ]*/ /
5964: t def
5965: d
5966: :def
5967: s/\\$//
5968: t bsnl
5969: s/["\\]/\\&/g
5970: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5971: D["\1"]=" \3"/p
5972: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5973: d
5974: :bsnl
5975: s/["\\]/\\&/g
5976: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5977: D["\1"]=" \3\\\\\\n"\\/p
5978: t cont
5979: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5980: t cont
5981: d
5982: :cont
5983: n
5984: s/.\{148\}/&'"$ac_delim"'/g
5985: t clear
5986: :clear
5987: s/\\$//
5988: t bsnlc
5989: s/["\\]/\\&/g; s/^/"/; s/$/"/p
5990: d
5991: :bsnlc
5992: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5993: b cont
5994: ' <confdefs.h | sed '
5995: s/'"$ac_delim"'/"\\\
5996: "/g' >>$CONFIG_STATUS || ac_write_fail=1
5997:
5998: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5999: for (key in D) D_is_set[key] = 1
6000: FS = ""
6001: }
6002: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6003: line = \$ 0
6004: split(line, arg, " ")
6005: if (arg[1] == "#") {
6006: defundef = arg[2]
6007: mac1 = arg[3]
6008: } else {
6009: defundef = substr(arg[1], 2)
6010: mac1 = arg[2]
6011: }
6012: split(mac1, mac2, "(") #)
6013: macro = mac2[1]
1.2 misho 6014: prefix = substr(line, 1, index(line, defundef) - 1)
1.1 misho 6015: if (D_is_set[macro]) {
6016: # Preserve the white space surrounding the "#".
6017: print prefix "define", macro P[macro] D[macro]
6018: next
6019: } else {
6020: # Replace #undef with comments. This is necessary, for example,
6021: # in the case of _POSIX_SOURCE, which is predefined and required
6022: # on some systems where configure will not decide to define it.
6023: if (defundef == "undef") {
1.2 misho 6024: print "/*", prefix defundef, macro, "*/"
1.1 misho 6025: next
6026: }
6027: }
6028: }
6029: { print }
6030: _ACAWK
6031: _ACEOF
6032: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.7 misho 6033: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.1 misho 6034: fi # test -n "$CONFIG_HEADERS"
6035:
6036:
6037: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6038: shift
6039: for ac_tag
6040: do
6041: case $ac_tag in
6042: :[FHLC]) ac_mode=$ac_tag; continue;;
6043: esac
6044: case $ac_mode$ac_tag in
6045: :[FHL]*:*);;
1.7 misho 6046: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 misho 6047: :[FH]-) ac_tag=-:-;;
6048: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6049: esac
6050: ac_save_IFS=$IFS
6051: IFS=:
6052: set x $ac_tag
6053: IFS=$ac_save_IFS
6054: shift
6055: ac_file=$1
6056: shift
6057:
6058: case $ac_mode in
6059: :L) ac_source=$1;;
6060: :[FH])
6061: ac_file_inputs=
6062: for ac_f
6063: do
6064: case $ac_f in
1.7 misho 6065: -) ac_f="$ac_tmp/stdin";;
1.1 misho 6066: *) # Look for the file first in the build tree, then in the source tree
6067: # (if the path is not absolute). The absolute path cannot be DOS-style,
6068: # because $ac_f cannot contain `:'.
6069: test -f "$ac_f" ||
6070: case $ac_f in
6071: [\\/$]*) false;;
6072: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6073: esac ||
1.7 misho 6074: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 misho 6075: esac
1.39 misho 6076: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.2 misho 6077: as_fn_append ac_file_inputs " '$ac_f'"
1.1 misho 6078: done
6079:
6080: # Let's still pretend it is `configure' which instantiates (i.e., don't
6081: # use $as_me), people would be surprised to read:
6082: # /* config.h. Generated by config.status. */
6083: configure_input='Generated from '`
1.39 misho 6084: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.1 misho 6085: `' by configure.'
6086: if test x"$ac_file" != x-; then
6087: configure_input="$ac_file. $configure_input"
1.39 misho 6088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6089: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.1 misho 6090: fi
6091: # Neutralize special characters interpreted by sed in replacement strings.
6092: case $configure_input in #(
6093: *\&* | *\|* | *\\* )
1.39 misho 6094: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.1 misho 6095: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6096: *) ac_sed_conf_input=$configure_input;;
6097: esac
6098:
6099: case $ac_tag in
1.7 misho 6100: *:-:* | *:-) cat >"$ac_tmp/stdin" \
6101: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 misho 6102: esac
6103: ;;
6104: esac
6105:
6106: ac_dir=`$as_dirname -- "$ac_file" ||
6107: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6108: X"$ac_file" : 'X\(//\)[^/]' \| \
6109: X"$ac_file" : 'X\(//\)$' \| \
6110: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.39 misho 6111: printf "%s\n" X"$ac_file" |
1.1 misho 6112: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6113: s//\1/
6114: q
6115: }
6116: /^X\(\/\/\)[^/].*/{
6117: s//\1/
6118: q
6119: }
6120: /^X\(\/\/\)$/{
6121: s//\1/
6122: q
6123: }
6124: /^X\(\/\).*/{
6125: s//\1/
6126: q
6127: }
6128: s/.*/./; q'`
1.2 misho 6129: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 misho 6130: ac_builddir=.
6131:
6132: case "$ac_dir" in
6133: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6134: *)
1.39 misho 6135: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 misho 6136: # A ".." for each directory in $ac_dir_suffix.
1.39 misho 6137: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 misho 6138: case $ac_top_builddir_sub in
6139: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6140: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6141: esac ;;
6142: esac
6143: ac_abs_top_builddir=$ac_pwd
6144: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6145: # for backward compatibility:
6146: ac_top_builddir=$ac_top_build_prefix
6147:
6148: case $srcdir in
6149: .) # We are building in place.
6150: ac_srcdir=.
6151: ac_top_srcdir=$ac_top_builddir_sub
6152: ac_abs_top_srcdir=$ac_pwd ;;
6153: [\\/]* | ?:[\\/]* ) # Absolute name.
6154: ac_srcdir=$srcdir$ac_dir_suffix;
6155: ac_top_srcdir=$srcdir
6156: ac_abs_top_srcdir=$srcdir ;;
6157: *) # Relative name.
6158: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6159: ac_top_srcdir=$ac_top_build_prefix$srcdir
6160: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6161: esac
6162: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6163:
6164:
6165: case $ac_mode in
6166: :F)
6167: #
6168: # CONFIG_FILE
6169: #
6170:
6171: case $INSTALL in
6172: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6173: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6174: esac
6175: _ACEOF
6176:
6177: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6178: # If the template does not know about datarootdir, expand it.
6179: # FIXME: This hack should be removed a few years after 2.60.
6180: ac_datarootdir_hack=; ac_datarootdir_seen=
6181: ac_sed_dataroot='
6182: /datarootdir/ {
6183: p
6184: q
6185: }
6186: /@datadir@/p
6187: /@docdir@/p
6188: /@infodir@/p
6189: /@localedir@/p
1.2 misho 6190: /@mandir@/p'
1.1 misho 6191: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6192: *datarootdir*) ac_datarootdir_seen=yes;;
6193: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.39 misho 6194: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6195: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 misho 6196: _ACEOF
6197: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6198: ac_datarootdir_hack='
6199: s&@datadir@&$datadir&g
6200: s&@docdir@&$docdir&g
6201: s&@infodir@&$infodir&g
6202: s&@localedir@&$localedir&g
6203: s&@mandir@&$mandir&g
1.2 misho 6204: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 misho 6205: esac
6206: _ACEOF
6207:
6208: # Neutralize VPATH when `$srcdir' = `.'.
6209: # Shell code in configure.ac might set extrasub.
6210: # FIXME: do we really want to maintain this feature?
6211: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6212: ac_sed_extra="$ac_vpsub
6213: $extrasub
6214: _ACEOF
6215: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6216: :t
6217: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6218: s|@configure_input@|$ac_sed_conf_input|;t t
6219: s&@top_builddir@&$ac_top_builddir_sub&;t t
6220: s&@top_build_prefix@&$ac_top_build_prefix&;t t
6221: s&@srcdir@&$ac_srcdir&;t t
6222: s&@abs_srcdir@&$ac_abs_srcdir&;t t
6223: s&@top_srcdir@&$ac_top_srcdir&;t t
6224: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6225: s&@builddir@&$ac_builddir&;t t
6226: s&@abs_builddir@&$ac_abs_builddir&;t t
6227: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6228: s&@INSTALL@&$ac_INSTALL&;t t
6229: $ac_datarootdir_hack
6230: "
1.7 misho 6231: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6232: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 6233:
6234: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.7 misho 6235: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6236: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6237: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.39 misho 6238: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.7 misho 6239: which seems to be undefined. Please make sure it is defined" >&5
1.39 misho 6240: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.7 misho 6241: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 misho 6242:
1.7 misho 6243: rm -f "$ac_tmp/stdin"
1.1 misho 6244: case $ac_file in
1.7 misho 6245: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6246: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.1 misho 6247: esac \
1.7 misho 6248: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 6249: ;;
6250: :H)
6251: #
6252: # CONFIG_HEADER
6253: #
6254: if test x"$ac_file" != x-; then
6255: {
1.39 misho 6256: printf "%s\n" "/* $configure_input */" >&1 \
1.7 misho 6257: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6258: } >"$ac_tmp/config.h" \
6259: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6260: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.39 misho 6261: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6262: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.1 misho 6263: else
6264: rm -f "$ac_file"
1.7 misho 6265: mv "$ac_tmp/config.h" "$ac_file" \
6266: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 6267: fi
6268: else
1.39 misho 6269: printf "%s\n" "/* $configure_input */" >&1 \
1.7 misho 6270: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6271: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 misho 6272: fi
6273: ;;
6274:
6275:
6276: esac
6277:
6278: done # for ac_tag
6279:
6280:
1.2 misho 6281: as_fn_exit 0
1.1 misho 6282: _ACEOF
6283: ac_clean_files=$ac_clean_files_save
6284:
6285: test $ac_write_fail = 0 ||
1.7 misho 6286: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.1 misho 6287:
6288:
6289: # configure is writing to config.log, and then calls config.status.
6290: # config.status does its own redirection, appending to config.log.
6291: # Unfortunately, on DOS this fails, as config.log is still kept open
6292: # by configure, so config.status won't be able to write to it; its
6293: # output is simply discarded. So we exec the FD to /dev/null,
6294: # effectively closing config.log, so it can be properly (re)opened and
6295: # appended to by config.status. When coming back to configure, we
6296: # need to make the FD available again.
6297: if test "$no_create" != yes; then
6298: ac_cs_success=:
6299: ac_config_status_args=
6300: test "$silent" = yes &&
6301: ac_config_status_args="$ac_config_status_args --quiet"
6302: exec 5>/dev/null
6303: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6304: exec 5>>config.log
6305: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6306: # would make configure fail if this is the last instruction.
1.7 misho 6307: $ac_cs_success || as_fn_exit 1
1.1 misho 6308: fi
6309: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.39 misho 6310: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6311: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.1 misho 6312: fi
6313:
1.39 misho 6314:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>