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