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