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