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