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