Annotation of embedtools/configure, revision 1.1.2.2
1.1.2.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68 for embedtools 1.0.
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'
563: PACKAGE_VERSION='1.0'
564: PACKAGE_STRING='embedtools 1.0'
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
611: MKDEP
612: target_os
613: target_vendor
614: target_cpu
615: target
616: host_os
617: host_vendor
618: host_cpu
619: host
620: build_os
621: build_vendor
622: build_cpu
623: build
624: INSTALL_DATA
625: INSTALL_SCRIPT
626: INSTALL_PROGRAM
627: OBJEXT
628: EXEEXT
629: ac_ct_CC
630: CPPFLAGS
631: LDFLAGS
632: CFLAGS
633: CC
634: target_alias
635: host_alias
636: build_alias
637: LIBS
638: ECHO_T
639: ECHO_N
640: ECHO_C
641: DEFS
642: mandir
643: localedir
644: libdir
645: psdir
646: pdfdir
647: dvidir
648: htmldir
649: infodir
650: docdir
651: oldincludedir
652: includedir
653: localstatedir
654: sharedstatedir
655: sysconfdir
656: datadir
657: datarootdir
658: libexecdir
659: sbindir
660: bindir
661: program_transform_name
662: prefix
663: exec_prefix
664: PACKAGE_URL
665: PACKAGE_BUGREPORT
666: PACKAGE_STRING
667: PACKAGE_VERSION
668: PACKAGE_TARNAME
669: PACKAGE_NAME
670: PATH_SEPARATOR
671: SHELL'
672: ac_subst_files=''
673: ac_user_opts='
674: enable_option_checking
675: enable_debug
676: '
677: ac_precious_vars='build_alias
678: host_alias
679: target_alias
680: CC
681: CFLAGS
682: LDFLAGS
683: LIBS
684: CPPFLAGS
685: CPP
686: CPPFLAGS'
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
1229: \`configure' configures embedtools 1.0 to adapt to many kinds of systems.
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
1295: short | recursive ) echo "Configuration of embedtools 1.0:";;
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
1381: embedtools configure 1.0
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:
1857: It was created by embedtools $as_me 1.0, which was
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:
3331: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
3332: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
3333:
3334: # Checks for libraries.
3335:
3336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LoadConfig in -laitcfg" >&5
3337: $as_echo_n "checking for LoadConfig in -laitcfg... " >&6; }
3338: if ${ac_cv_lib_aitcfg_LoadConfig+:} false; then :
3339: $as_echo_n "(cached) " >&6
3340: else
3341: ac_check_lib_save_LIBS=$LIBS
3342: LIBS="-laitcfg $LIBS"
3343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344: /* end confdefs.h. */
3345:
3346: /* Override any GCC internal prototype to avoid an error.
3347: Use char because int might match the return type of a GCC
3348: builtin and then its argument prototype would still apply. */
3349: #ifdef __cplusplus
3350: extern "C"
3351: #endif
3352: char LoadConfig ();
3353: int
3354: main ()
3355: {
3356: return LoadConfig ();
3357: ;
3358: return 0;
3359: }
3360: _ACEOF
3361: if ac_fn_c_try_link "$LINENO"; then :
3362: ac_cv_lib_aitcfg_LoadConfig=yes
3363: else
3364: ac_cv_lib_aitcfg_LoadConfig=no
3365: fi
3366: rm -f core conftest.err conftest.$ac_objext \
3367: conftest$ac_exeext conftest.$ac_ext
3368: LIBS=$ac_check_lib_save_LIBS
3369: fi
3370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitcfg_LoadConfig" >&5
3371: $as_echo "$ac_cv_lib_aitcfg_LoadConfig" >&6; }
3372: if test "x$ac_cv_lib_aitcfg_LoadConfig" = xyes; then :
3373: cat >>confdefs.h <<_ACEOF
3374: #define HAVE_LIBAITCFG 1
3375: _ACEOF
3376:
3377: LIBS="-laitcfg $LIBS"
3378:
3379: fi
3380:
3381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crcAdler in -laitcrc" >&5
3382: $as_echo_n "checking for crcAdler in -laitcrc... " >&6; }
3383: if ${ac_cv_lib_aitcrc_crcAdler+:} false; then :
3384: $as_echo_n "(cached) " >&6
3385: else
3386: ac_check_lib_save_LIBS=$LIBS
3387: LIBS="-laitcrc $LIBS"
3388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389: /* end confdefs.h. */
3390:
3391: /* Override any GCC internal prototype to avoid an error.
3392: Use char because int might match the return type of a GCC
3393: builtin and then its argument prototype would still apply. */
3394: #ifdef __cplusplus
3395: extern "C"
3396: #endif
3397: char crcAdler ();
3398: int
3399: main ()
3400: {
3401: return crcAdler ();
3402: ;
3403: return 0;
3404: }
3405: _ACEOF
3406: if ac_fn_c_try_link "$LINENO"; then :
3407: ac_cv_lib_aitcrc_crcAdler=yes
3408: else
3409: ac_cv_lib_aitcrc_crcAdler=no
3410: fi
3411: rm -f core conftest.err conftest.$ac_objext \
3412: conftest$ac_exeext conftest.$ac_ext
3413: LIBS=$ac_check_lib_save_LIBS
3414: fi
3415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitcrc_crcAdler" >&5
3416: $as_echo "$ac_cv_lib_aitcrc_crcAdler" >&6; }
3417: if test "x$ac_cv_lib_aitcrc_crcAdler" = xyes; then :
3418: cat >>confdefs.h <<_ACEOF
3419: #define HAVE_LIBAITCRC 1
3420: _ACEOF
3421:
3422: LIBS="-laitcrc $LIBS"
3423:
3424: fi
3425:
3426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for io_TrimStr in -laitio" >&5
3427: $as_echo_n "checking for io_TrimStr in -laitio... " >&6; }
3428: if ${ac_cv_lib_aitio_io_TrimStr+:} false; then :
3429: $as_echo_n "(cached) " >&6
3430: else
3431: ac_check_lib_save_LIBS=$LIBS
3432: LIBS="-laitio $LIBS"
3433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434: /* end confdefs.h. */
3435:
3436: /* Override any GCC internal prototype to avoid an error.
3437: Use char because int might match the return type of a GCC
3438: builtin and then its argument prototype would still apply. */
3439: #ifdef __cplusplus
3440: extern "C"
3441: #endif
3442: char io_TrimStr ();
3443: int
3444: main ()
3445: {
3446: return io_TrimStr ();
3447: ;
3448: return 0;
3449: }
3450: _ACEOF
3451: if ac_fn_c_try_link "$LINENO"; then :
3452: ac_cv_lib_aitio_io_TrimStr=yes
3453: else
3454: ac_cv_lib_aitio_io_TrimStr=no
3455: fi
3456: rm -f core conftest.err conftest.$ac_objext \
3457: conftest$ac_exeext conftest.$ac_ext
3458: LIBS=$ac_check_lib_save_LIBS
3459: fi
3460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitio_io_TrimStr" >&5
3461: $as_echo "$ac_cv_lib_aitio_io_TrimStr" >&6; }
3462: if test "x$ac_cv_lib_aitio_io_TrimStr" = xyes; then :
3463: cat >>confdefs.h <<_ACEOF
3464: #define HAVE_LIBAITIO 1
3465: _ACEOF
3466:
3467: LIBS="-laitio $LIBS"
3468:
3469: fi
3470:
3471: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncDelta in -laitsync" >&5
3472: $as_echo_n "checking for syncDelta in -laitsync... " >&6; }
3473: if ${ac_cv_lib_aitsync_syncDelta+:} false; then :
3474: $as_echo_n "(cached) " >&6
3475: else
3476: ac_check_lib_save_LIBS=$LIBS
3477: LIBS="-laitsync $LIBS"
3478: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479: /* end confdefs.h. */
3480:
3481: /* Override any GCC internal prototype to avoid an error.
3482: Use char because int might match the return type of a GCC
3483: builtin and then its argument prototype would still apply. */
3484: #ifdef __cplusplus
3485: extern "C"
3486: #endif
3487: char syncDelta ();
3488: int
3489: main ()
3490: {
3491: return syncDelta ();
3492: ;
3493: return 0;
3494: }
3495: _ACEOF
3496: if ac_fn_c_try_link "$LINENO"; then :
3497: ac_cv_lib_aitsync_syncDelta=yes
3498: else
3499: ac_cv_lib_aitsync_syncDelta=no
3500: fi
3501: rm -f core conftest.err conftest.$ac_objext \
3502: conftest$ac_exeext conftest.$ac_ext
3503: LIBS=$ac_check_lib_save_LIBS
3504: fi
3505: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aitsync_syncDelta" >&5
3506: $as_echo "$ac_cv_lib_aitsync_syncDelta" >&6; }
3507: if test "x$ac_cv_lib_aitsync_syncDelta" = xyes; then :
3508: cat >>confdefs.h <<_ACEOF
3509: #define HAVE_LIBAITSYNC 1
3510: _ACEOF
3511:
3512: LIBS="-laitsync $LIBS"
3513:
3514: fi
3515:
3516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for axl_init in -laxl" >&5
3517: $as_echo_n "checking for axl_init in -laxl... " >&6; }
3518: if ${ac_cv_lib_axl_axl_init+:} false; then :
3519: $as_echo_n "(cached) " >&6
3520: else
3521: ac_check_lib_save_LIBS=$LIBS
3522: LIBS="-laxl $LIBS"
3523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524: /* end confdefs.h. */
3525:
3526: /* Override any GCC internal prototype to avoid an error.
3527: Use char because int might match the return type of a GCC
3528: builtin and then its argument prototype would still apply. */
3529: #ifdef __cplusplus
3530: extern "C"
3531: #endif
3532: char axl_init ();
3533: int
3534: main ()
3535: {
3536: return axl_init ();
3537: ;
3538: return 0;
3539: }
3540: _ACEOF
3541: if ac_fn_c_try_link "$LINENO"; then :
3542: ac_cv_lib_axl_axl_init=yes
3543: else
3544: ac_cv_lib_axl_axl_init=no
3545: fi
3546: rm -f core conftest.err conftest.$ac_objext \
3547: conftest$ac_exeext conftest.$ac_ext
3548: LIBS=$ac_check_lib_save_LIBS
3549: fi
3550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axl_axl_init" >&5
3551: $as_echo "$ac_cv_lib_axl_axl_init" >&6; }
3552: if test "x$ac_cv_lib_axl_axl_init" = xyes; then :
3553: cat >>confdefs.h <<_ACEOF
3554: #define HAVE_LIBAXL 1
3555: _ACEOF
3556:
3557: LIBS="-laxl $LIBS"
3558:
3559: fi
3560:
3561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Init in -lcrypto" >&5
3562: $as_echo_n "checking for MD5_Init in -lcrypto... " >&6; }
3563: if ${ac_cv_lib_crypto_MD5_Init+:} false; then :
3564: $as_echo_n "(cached) " >&6
3565: else
3566: ac_check_lib_save_LIBS=$LIBS
3567: LIBS="-lcrypto $LIBS"
3568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569: /* end confdefs.h. */
3570:
3571: /* Override any GCC internal prototype to avoid an error.
3572: Use char because int might match the return type of a GCC
3573: builtin and then its argument prototype would still apply. */
3574: #ifdef __cplusplus
3575: extern "C"
3576: #endif
3577: char MD5_Init ();
3578: int
3579: main ()
3580: {
3581: return MD5_Init ();
3582: ;
3583: return 0;
3584: }
3585: _ACEOF
3586: if ac_fn_c_try_link "$LINENO"; then :
3587: ac_cv_lib_crypto_MD5_Init=yes
3588: else
3589: ac_cv_lib_crypto_MD5_Init=no
3590: fi
3591: rm -f core conftest.err conftest.$ac_objext \
3592: conftest$ac_exeext conftest.$ac_ext
3593: LIBS=$ac_check_lib_save_LIBS
3594: fi
3595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Init" >&5
3596: $as_echo "$ac_cv_lib_crypto_MD5_Init" >&6; }
3597: if test "x$ac_cv_lib_crypto_MD5_Init" = xyes; then :
3598: cat >>confdefs.h <<_ACEOF
3599: #define HAVE_LIBCRYPTO 1
3600: _ACEOF
3601:
3602: LIBS="-lcrypto $LIBS"
3603:
3604: fi
3605:
3606: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
3607: $as_echo_n "checking for openpty in -lutil... " >&6; }
3608: if ${ac_cv_lib_util_openpty+:} false; then :
3609: $as_echo_n "(cached) " >&6
3610: else
3611: ac_check_lib_save_LIBS=$LIBS
3612: LIBS="-lutil $LIBS"
3613: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614: /* end confdefs.h. */
3615:
3616: /* Override any GCC internal prototype to avoid an error.
3617: Use char because int might match the return type of a GCC
3618: builtin and then its argument prototype would still apply. */
3619: #ifdef __cplusplus
3620: extern "C"
3621: #endif
3622: char openpty ();
3623: int
3624: main ()
3625: {
3626: return openpty ();
3627: ;
3628: return 0;
3629: }
3630: _ACEOF
3631: if ac_fn_c_try_link "$LINENO"; then :
3632: ac_cv_lib_util_openpty=yes
3633: else
3634: ac_cv_lib_util_openpty=no
3635: fi
3636: rm -f core conftest.err conftest.$ac_objext \
3637: conftest$ac_exeext conftest.$ac_ext
3638: LIBS=$ac_check_lib_save_LIBS
3639: fi
3640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
3641: $as_echo "$ac_cv_lib_util_openpty" >&6; }
3642: if test "x$ac_cv_lib_util_openpty" = xyes; then :
3643: cat >>confdefs.h <<_ACEOF
3644: #define HAVE_LIBUTIL 1
3645: _ACEOF
3646:
3647: LIBS="-lutil $LIBS"
3648:
3649: fi
3650:
3651:
3652: # Checks for header files.
3653: ac_ext=c
3654: ac_cpp='$CPP $CPPFLAGS'
3655: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3659: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3660: # On Suns, sometimes $CPP names a directory.
3661: if test -n "$CPP" && test -d "$CPP"; then
3662: CPP=
3663: fi
3664: if test -z "$CPP"; then
3665: if ${ac_cv_prog_CPP+:} false; then :
3666: $as_echo_n "(cached) " >&6
3667: else
3668: # Double quotes because CPP needs to be expanded
3669: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3670: do
3671: ac_preproc_ok=false
3672: for ac_c_preproc_warn_flag in '' yes
3673: do
3674: # Use a header file that comes with gcc, so configuring glibc
3675: # with a fresh cross-compiler works.
3676: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677: # <limits.h> exists even on freestanding compilers.
3678: # On the NeXT, cc -E runs the code through the compiler's parser,
3679: # not just through cpp. "Syntax error" is here to catch this case.
3680: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681: /* end confdefs.h. */
3682: #ifdef __STDC__
3683: # include <limits.h>
3684: #else
3685: # include <assert.h>
3686: #endif
3687: Syntax error
3688: _ACEOF
3689: if ac_fn_c_try_cpp "$LINENO"; then :
3690:
3691: else
3692: # Broken: fails on valid input.
3693: continue
3694: fi
3695: rm -f conftest.err conftest.i conftest.$ac_ext
3696:
3697: # OK, works on sane cases. Now check whether nonexistent headers
3698: # can be detected and how.
3699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700: /* end confdefs.h. */
3701: #include <ac_nonexistent.h>
3702: _ACEOF
3703: if ac_fn_c_try_cpp "$LINENO"; then :
3704: # Broken: success on invalid input.
3705: continue
3706: else
3707: # Passes both tests.
3708: ac_preproc_ok=:
3709: break
3710: fi
3711: rm -f conftest.err conftest.i conftest.$ac_ext
3712:
3713: done
3714: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715: rm -f conftest.i conftest.err conftest.$ac_ext
3716: if $ac_preproc_ok; then :
3717: break
3718: fi
3719:
3720: done
3721: ac_cv_prog_CPP=$CPP
3722:
3723: fi
3724: CPP=$ac_cv_prog_CPP
3725: else
3726: ac_cv_prog_CPP=$CPP
3727: fi
3728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3729: $as_echo "$CPP" >&6; }
3730: ac_preproc_ok=false
3731: for ac_c_preproc_warn_flag in '' yes
3732: do
3733: # Use a header file that comes with gcc, so configuring glibc
3734: # with a fresh cross-compiler works.
3735: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736: # <limits.h> exists even on freestanding compilers.
3737: # On the NeXT, cc -E runs the code through the compiler's parser,
3738: # not just through cpp. "Syntax error" is here to catch this case.
3739: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740: /* end confdefs.h. */
3741: #ifdef __STDC__
3742: # include <limits.h>
3743: #else
3744: # include <assert.h>
3745: #endif
3746: Syntax error
3747: _ACEOF
3748: if ac_fn_c_try_cpp "$LINENO"; then :
3749:
3750: else
3751: # Broken: fails on valid input.
3752: continue
3753: fi
3754: rm -f conftest.err conftest.i conftest.$ac_ext
3755:
3756: # OK, works on sane cases. Now check whether nonexistent headers
3757: # can be detected and how.
3758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759: /* end confdefs.h. */
3760: #include <ac_nonexistent.h>
3761: _ACEOF
3762: if ac_fn_c_try_cpp "$LINENO"; then :
3763: # Broken: success on invalid input.
3764: continue
3765: else
3766: # Passes both tests.
3767: ac_preproc_ok=:
3768: break
3769: fi
3770: rm -f conftest.err conftest.i conftest.$ac_ext
3771:
3772: done
3773: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774: rm -f conftest.i conftest.err conftest.$ac_ext
3775: if $ac_preproc_ok; then :
3776:
3777: else
3778: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3781: See \`config.log' for more details" "$LINENO" 5; }
3782: fi
3783:
3784: ac_ext=c
3785: ac_cpp='$CPP $CPPFLAGS'
3786: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789:
3790:
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3792: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3793: if ${ac_cv_path_GREP+:} false; then :
3794: $as_echo_n "(cached) " >&6
3795: else
3796: if test -z "$GREP"; then
3797: ac_path_GREP_found=false
3798: # Loop through the user's path and test for each of PROGNAME-LIST
3799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3801: do
3802: IFS=$as_save_IFS
3803: test -z "$as_dir" && as_dir=.
3804: for ac_prog in grep ggrep; do
3805: for ac_exec_ext in '' $ac_executable_extensions; do
3806: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3807: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3808: # Check for GNU ac_path_GREP and select it if it is found.
3809: # Check for GNU $ac_path_GREP
3810: case `"$ac_path_GREP" --version 2>&1` in
3811: *GNU*)
3812: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3813: *)
3814: ac_count=0
3815: $as_echo_n 0123456789 >"conftest.in"
3816: while :
3817: do
3818: cat "conftest.in" "conftest.in" >"conftest.tmp"
3819: mv "conftest.tmp" "conftest.in"
3820: cp "conftest.in" "conftest.nl"
3821: $as_echo 'GREP' >> "conftest.nl"
3822: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824: as_fn_arith $ac_count + 1 && ac_count=$as_val
3825: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3826: # Best one so far, save it but keep looking for a better one
3827: ac_cv_path_GREP="$ac_path_GREP"
3828: ac_path_GREP_max=$ac_count
3829: fi
3830: # 10*(2^10) chars as input seems more than enough
3831: test $ac_count -gt 10 && break
3832: done
3833: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834: esac
3835:
3836: $ac_path_GREP_found && break 3
3837: done
3838: done
3839: done
3840: IFS=$as_save_IFS
3841: if test -z "$ac_cv_path_GREP"; then
3842: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3843: fi
3844: else
3845: ac_cv_path_GREP=$GREP
3846: fi
3847:
3848: fi
3849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3850: $as_echo "$ac_cv_path_GREP" >&6; }
3851: GREP="$ac_cv_path_GREP"
3852:
3853:
3854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3855: $as_echo_n "checking for egrep... " >&6; }
3856: if ${ac_cv_path_EGREP+:} false; then :
3857: $as_echo_n "(cached) " >&6
3858: else
3859: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860: then ac_cv_path_EGREP="$GREP -E"
3861: else
3862: if test -z "$EGREP"; then
3863: ac_path_EGREP_found=false
3864: # Loop through the user's path and test for each of PROGNAME-LIST
3865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867: do
3868: IFS=$as_save_IFS
3869: test -z "$as_dir" && as_dir=.
3870: for ac_prog in egrep; do
3871: for ac_exec_ext in '' $ac_executable_extensions; do
3872: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3873: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3874: # Check for GNU ac_path_EGREP and select it if it is found.
3875: # Check for GNU $ac_path_EGREP
3876: case `"$ac_path_EGREP" --version 2>&1` in
3877: *GNU*)
3878: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3879: *)
3880: ac_count=0
3881: $as_echo_n 0123456789 >"conftest.in"
3882: while :
3883: do
3884: cat "conftest.in" "conftest.in" >"conftest.tmp"
3885: mv "conftest.tmp" "conftest.in"
3886: cp "conftest.in" "conftest.nl"
3887: $as_echo 'EGREP' >> "conftest.nl"
3888: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890: as_fn_arith $ac_count + 1 && ac_count=$as_val
3891: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892: # Best one so far, save it but keep looking for a better one
3893: ac_cv_path_EGREP="$ac_path_EGREP"
3894: ac_path_EGREP_max=$ac_count
3895: fi
3896: # 10*(2^10) chars as input seems more than enough
3897: test $ac_count -gt 10 && break
3898: done
3899: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900: esac
3901:
3902: $ac_path_EGREP_found && break 3
3903: done
3904: done
3905: done
3906: IFS=$as_save_IFS
3907: if test -z "$ac_cv_path_EGREP"; then
3908: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3909: fi
3910: else
3911: ac_cv_path_EGREP=$EGREP
3912: fi
3913:
3914: fi
3915: fi
3916: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3917: $as_echo "$ac_cv_path_EGREP" >&6; }
3918: EGREP="$ac_cv_path_EGREP"
3919:
3920:
3921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3922: $as_echo_n "checking for ANSI C header files... " >&6; }
3923: if ${ac_cv_header_stdc+:} false; then :
3924: $as_echo_n "(cached) " >&6
3925: else
3926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927: /* end confdefs.h. */
3928: #include <stdlib.h>
3929: #include <stdarg.h>
3930: #include <string.h>
3931: #include <float.h>
3932:
3933: int
3934: main ()
3935: {
3936:
3937: ;
3938: return 0;
3939: }
3940: _ACEOF
3941: if ac_fn_c_try_compile "$LINENO"; then :
3942: ac_cv_header_stdc=yes
3943: else
3944: ac_cv_header_stdc=no
3945: fi
3946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947:
3948: if test $ac_cv_header_stdc = yes; then
3949: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951: /* end confdefs.h. */
3952: #include <string.h>
3953:
3954: _ACEOF
3955: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3956: $EGREP "memchr" >/dev/null 2>&1; then :
3957:
3958: else
3959: ac_cv_header_stdc=no
3960: fi
3961: rm -f conftest*
3962:
3963: fi
3964:
3965: if test $ac_cv_header_stdc = yes; then
3966: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968: /* end confdefs.h. */
3969: #include <stdlib.h>
3970:
3971: _ACEOF
3972: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973: $EGREP "free" >/dev/null 2>&1; then :
3974:
3975: else
3976: ac_cv_header_stdc=no
3977: fi
3978: rm -f conftest*
3979:
3980: fi
3981:
3982: if test $ac_cv_header_stdc = yes; then
3983: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3984: if test "$cross_compiling" = yes; then :
3985: :
3986: else
3987: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988: /* end confdefs.h. */
3989: #include <ctype.h>
3990: #include <stdlib.h>
3991: #if ((' ' & 0x0FF) == 0x020)
3992: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3993: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3994: #else
3995: # define ISLOWER(c) \
3996: (('a' <= (c) && (c) <= 'i') \
3997: || ('j' <= (c) && (c) <= 'r') \
3998: || ('s' <= (c) && (c) <= 'z'))
3999: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4000: #endif
4001:
4002: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4003: int
4004: main ()
4005: {
4006: int i;
4007: for (i = 0; i < 256; i++)
4008: if (XOR (islower (i), ISLOWER (i))
4009: || toupper (i) != TOUPPER (i))
4010: return 2;
4011: return 0;
4012: }
4013: _ACEOF
4014: if ac_fn_c_try_run "$LINENO"; then :
4015:
4016: else
4017: ac_cv_header_stdc=no
4018: fi
4019: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4020: conftest.$ac_objext conftest.beam conftest.$ac_ext
4021: fi
4022:
4023: fi
4024: fi
4025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4026: $as_echo "$ac_cv_header_stdc" >&6; }
4027: if test $ac_cv_header_stdc = yes; then
4028:
4029: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4030:
4031: fi
4032:
4033: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035: inttypes.h stdint.h unistd.h
4036: do :
4037: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4039: "
4040: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4041: cat >>confdefs.h <<_ACEOF
4042: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4043: _ACEOF
4044:
4045: fi
4046:
4047: done
4048:
4049:
4050: 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
4051: do :
4052: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4053: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4054: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4055: cat >>confdefs.h <<_ACEOF
4056: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4057: _ACEOF
4058:
4059: fi
4060:
4061: done
4062:
1.1.2.2 ! misho 4063: for ac_header in libutil.h
! 4064: do :
! 4065: ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
! 4066: if test "x$ac_cv_header_libutil_h" = xyes; then :
! 4067: cat >>confdefs.h <<_ACEOF
! 4068: #define HAVE_LIBUTIL_H 1
! 4069: _ACEOF
! 4070:
! 4071: fi
! 4072:
! 4073: done
! 4074:
1.1.2.1 misho 4075:
4076: # Checks for typedefs, structures, and compiler characteristics.
4077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4078: $as_echo_n "checking for inline... " >&6; }
4079: if ${ac_cv_c_inline+:} false; then :
4080: $as_echo_n "(cached) " >&6
4081: else
4082: ac_cv_c_inline=no
4083: for ac_kw in inline __inline__ __inline; do
4084: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085: /* end confdefs.h. */
4086: #ifndef __cplusplus
4087: typedef int foo_t;
4088: static $ac_kw foo_t static_foo () {return 0; }
4089: $ac_kw foo_t foo () {return 0; }
4090: #endif
4091:
4092: _ACEOF
4093: if ac_fn_c_try_compile "$LINENO"; then :
4094: ac_cv_c_inline=$ac_kw
4095: fi
4096: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097: test "$ac_cv_c_inline" != no && break
4098: done
4099:
4100: fi
4101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4102: $as_echo "$ac_cv_c_inline" >&6; }
4103:
4104: case $ac_cv_c_inline in
4105: inline | yes) ;;
4106: *)
4107: case $ac_cv_c_inline in
4108: no) ac_val=;;
4109: *) ac_val=$ac_cv_c_inline;;
4110: esac
4111: cat >>confdefs.h <<_ACEOF
4112: #ifndef __cplusplus
4113: #define inline $ac_val
4114: #endif
4115: _ACEOF
4116: ;;
4117: esac
4118:
4119: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4120: if test "x$ac_cv_type_mode_t" = xyes; then :
4121:
4122: else
4123:
4124: cat >>confdefs.h <<_ACEOF
4125: #define mode_t int
4126: _ACEOF
4127:
4128: fi
4129:
4130: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4131: if test "x$ac_cv_type_off_t" = xyes; then :
4132:
4133: else
4134:
4135: cat >>confdefs.h <<_ACEOF
4136: #define off_t long int
4137: _ACEOF
4138:
4139: fi
4140:
4141: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4142: if test "x$ac_cv_type_pid_t" = xyes; then :
4143:
4144: else
4145:
4146: cat >>confdefs.h <<_ACEOF
4147: #define pid_t int
4148: _ACEOF
4149:
4150: fi
4151:
4152: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4153: if test "x$ac_cv_type_size_t" = xyes; then :
4154:
4155: else
4156:
4157: cat >>confdefs.h <<_ACEOF
4158: #define size_t unsigned int
4159: _ACEOF
4160:
4161: fi
4162:
4163: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4164: if test "x$ac_cv_type_ssize_t" = xyes; then :
4165:
4166: else
4167:
4168: cat >>confdefs.h <<_ACEOF
4169: #define ssize_t int
4170: _ACEOF
4171:
4172: fi
4173:
4174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4175: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4176: if ${ac_cv_type_uid_t+:} false; then :
4177: $as_echo_n "(cached) " >&6
4178: else
4179: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180: /* end confdefs.h. */
4181: #include <sys/types.h>
4182:
4183: _ACEOF
4184: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185: $EGREP "uid_t" >/dev/null 2>&1; then :
4186: ac_cv_type_uid_t=yes
4187: else
4188: ac_cv_type_uid_t=no
4189: fi
4190: rm -f conftest*
4191:
4192: fi
4193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4194: $as_echo "$ac_cv_type_uid_t" >&6; }
4195: if test $ac_cv_type_uid_t = no; then
4196:
4197: $as_echo "#define uid_t int" >>confdefs.h
4198:
4199:
4200: $as_echo "#define gid_t int" >>confdefs.h
4201:
4202: fi
4203:
4204: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4205: case $ac_cv_c_uint32_t in #(
4206: no|yes) ;; #(
4207: *)
4208:
4209: $as_echo "#define _UINT32_T 1" >>confdefs.h
4210:
4211:
4212: cat >>confdefs.h <<_ACEOF
4213: #define uint32_t $ac_cv_c_uint32_t
4214: _ACEOF
4215: ;;
4216: esac
4217:
4218: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4219: case $ac_cv_c_uint8_t in #(
4220: no|yes) ;; #(
4221: *)
4222:
4223: $as_echo "#define _UINT8_T 1" >>confdefs.h
4224:
4225:
4226: cat >>confdefs.h <<_ACEOF
4227: #define uint8_t $ac_cv_c_uint8_t
4228: _ACEOF
4229: ;;
4230: esac
4231:
4232:
4233: # Checks for library functions.
4234: for ac_header in vfork.h
4235: do :
4236: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4237: if test "x$ac_cv_header_vfork_h" = xyes; then :
4238: cat >>confdefs.h <<_ACEOF
4239: #define HAVE_VFORK_H 1
4240: _ACEOF
4241:
4242: fi
4243:
4244: done
4245:
4246: for ac_func in fork vfork
4247: do :
4248: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4249: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4250: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4251: cat >>confdefs.h <<_ACEOF
4252: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4253: _ACEOF
4254:
4255: fi
4256: done
4257:
4258: if test "x$ac_cv_func_fork" = xyes; then
4259: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4260: $as_echo_n "checking for working fork... " >&6; }
4261: if ${ac_cv_func_fork_works+:} false; then :
4262: $as_echo_n "(cached) " >&6
4263: else
4264: if test "$cross_compiling" = yes; then :
4265: ac_cv_func_fork_works=cross
4266: else
4267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268: /* end confdefs.h. */
4269: $ac_includes_default
4270: int
4271: main ()
4272: {
4273:
4274: /* By Ruediger Kuhlmann. */
4275: return fork () < 0;
4276:
4277: ;
4278: return 0;
4279: }
4280: _ACEOF
4281: if ac_fn_c_try_run "$LINENO"; then :
4282: ac_cv_func_fork_works=yes
4283: else
4284: ac_cv_func_fork_works=no
4285: fi
4286: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4287: conftest.$ac_objext conftest.beam conftest.$ac_ext
4288: fi
4289:
4290: fi
4291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4292: $as_echo "$ac_cv_func_fork_works" >&6; }
4293:
4294: else
4295: ac_cv_func_fork_works=$ac_cv_func_fork
4296: fi
4297: if test "x$ac_cv_func_fork_works" = xcross; then
4298: case $host in
4299: *-*-amigaos* | *-*-msdosdjgpp*)
4300: # Override, as these systems have only a dummy fork() stub
4301: ac_cv_func_fork_works=no
4302: ;;
4303: *)
4304: ac_cv_func_fork_works=yes
4305: ;;
4306: esac
4307: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4308: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4309: fi
4310: ac_cv_func_vfork_works=$ac_cv_func_vfork
4311: if test "x$ac_cv_func_vfork" = xyes; then
4312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4313: $as_echo_n "checking for working vfork... " >&6; }
4314: if ${ac_cv_func_vfork_works+:} false; then :
4315: $as_echo_n "(cached) " >&6
4316: else
4317: if test "$cross_compiling" = yes; then :
4318: ac_cv_func_vfork_works=cross
4319: else
4320: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321: /* end confdefs.h. */
4322: /* Thanks to Paul Eggert for this test. */
4323: $ac_includes_default
4324: #include <sys/wait.h>
4325: #ifdef HAVE_VFORK_H
4326: # include <vfork.h>
4327: #endif
4328: /* On some sparc systems, changes by the child to local and incoming
4329: argument registers are propagated back to the parent. The compiler
4330: is told about this with #include <vfork.h>, but some compilers
4331: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
4332: static variable whose address is put into a register that is
4333: clobbered by the vfork. */
4334: static void
4335: #ifdef __cplusplus
4336: sparc_address_test (int arg)
4337: # else
4338: sparc_address_test (arg) int arg;
4339: #endif
4340: {
4341: static pid_t child;
4342: if (!child) {
4343: child = vfork ();
4344: if (child < 0) {
4345: perror ("vfork");
4346: _exit(2);
4347: }
4348: if (!child) {
4349: arg = getpid();
4350: write(-1, "", 0);
4351: _exit (arg);
4352: }
4353: }
4354: }
4355:
4356: int
4357: main ()
4358: {
4359: pid_t parent = getpid ();
4360: pid_t child;
4361:
4362: sparc_address_test (0);
4363:
4364: child = vfork ();
4365:
4366: if (child == 0) {
4367: /* Here is another test for sparc vfork register problems. This
4368: test uses lots of local variables, at least as many local
4369: variables as main has allocated so far including compiler
4370: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
4371: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
4372: reuse the register of parent for one of the local variables,
4373: since it will think that parent can't possibly be used any more
4374: in this routine. Assigning to the local variable will thus
4375: munge parent in the parent process. */
4376: pid_t
4377: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4378: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4379: /* Convince the compiler that p..p7 are live; otherwise, it might
4380: use the same hardware register for all 8 local variables. */
4381: if (p != p1 || p != p2 || p != p3 || p != p4
4382: || p != p5 || p != p6 || p != p7)
4383: _exit(1);
4384:
4385: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
4386: from child file descriptors. If the child closes a descriptor
4387: before it execs or exits, this munges the parent's descriptor
4388: as well. Test for this by closing stdout in the child. */
4389: _exit(close(fileno(stdout)) != 0);
4390: } else {
4391: int status;
4392: struct stat st;
4393:
4394: while (wait(&status) != child)
4395: ;
4396: return (
4397: /* Was there some problem with vforking? */
4398: child < 0
4399:
4400: /* Did the child fail? (This shouldn't happen.) */
4401: || status
4402:
4403: /* Did the vfork/compiler bug occur? */
4404: || parent != getpid()
4405:
4406: /* Did the file descriptor bug occur? */
4407: || fstat(fileno(stdout), &st) != 0
4408: );
4409: }
4410: }
4411: _ACEOF
4412: if ac_fn_c_try_run "$LINENO"; then :
4413: ac_cv_func_vfork_works=yes
4414: else
4415: ac_cv_func_vfork_works=no
4416: fi
4417: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4418: conftest.$ac_objext conftest.beam conftest.$ac_ext
4419: fi
4420:
4421: fi
4422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
4423: $as_echo "$ac_cv_func_vfork_works" >&6; }
4424:
4425: fi;
4426: if test "x$ac_cv_func_fork_works" = xcross; then
4427: ac_cv_func_vfork_works=$ac_cv_func_vfork
4428: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
4429: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
4430: fi
4431:
4432: if test "x$ac_cv_func_vfork_works" = xyes; then
4433:
4434: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
4435:
4436: else
4437:
4438: $as_echo "#define vfork fork" >>confdefs.h
4439:
4440: fi
4441: if test "x$ac_cv_func_fork_works" = xyes; then
4442:
4443: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
4444:
4445: fi
4446:
4447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
4448: $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
4449: if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
4450: $as_echo_n "(cached) " >&6
4451: else
4452: rm -f conftest.sym conftest.file
4453: echo >conftest.file
4454: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4455: if test "$cross_compiling" = yes; then :
4456: ac_cv_func_lstat_dereferences_slashed_symlink=no
4457: else
4458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459: /* end confdefs.h. */
4460: $ac_includes_default
4461: int
4462: main ()
4463: {
4464: struct stat sbuf;
4465: /* Linux will dereference the symlink and fail, as required by POSIX.
4466: That is better in the sense that it means we will not
4467: have to compile and use the lstat wrapper. */
4468: return lstat ("conftest.sym/", &sbuf) == 0;
4469: ;
4470: return 0;
4471: }
4472: _ACEOF
4473: if ac_fn_c_try_run "$LINENO"; then :
4474: ac_cv_func_lstat_dereferences_slashed_symlink=yes
4475: else
4476: ac_cv_func_lstat_dereferences_slashed_symlink=no
4477: fi
4478: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4479: conftest.$ac_objext conftest.beam conftest.$ac_ext
4480: fi
4481:
4482: else
4483: # If the `ln -s' command failed, then we probably don't even
4484: # have an lstat function.
4485: ac_cv_func_lstat_dereferences_slashed_symlink=no
4486: fi
4487: rm -f conftest.sym conftest.file
4488:
4489: fi
4490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4491: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4492:
4493: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4494:
4495: cat >>confdefs.h <<_ACEOF
4496: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4497: _ACEOF
4498:
4499:
4500: if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
4501: case " $LIBOBJS " in
4502: *" lstat.$ac_objext "* ) ;;
4503: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
4504: ;;
4505: esac
4506:
4507: fi
4508:
4509: for ac_header in stdlib.h
4510: do :
4511: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4512: if test "x$ac_cv_header_stdlib_h" = xyes; then :
4513: cat >>confdefs.h <<_ACEOF
4514: #define HAVE_STDLIB_H 1
4515: _ACEOF
4516:
4517: fi
4518:
4519: done
4520:
4521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4522: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4523: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4524: $as_echo_n "(cached) " >&6
4525: else
4526: if test "$cross_compiling" = yes; then :
4527: ac_cv_func_malloc_0_nonnull=no
4528: else
4529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530: /* end confdefs.h. */
4531: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4532: # include <stdlib.h>
4533: #else
4534: char *malloc ();
4535: #endif
4536:
4537: int
4538: main ()
4539: {
4540: return ! malloc (0);
4541: ;
4542: return 0;
4543: }
4544: _ACEOF
4545: if ac_fn_c_try_run "$LINENO"; then :
4546: ac_cv_func_malloc_0_nonnull=yes
4547: else
4548: ac_cv_func_malloc_0_nonnull=no
4549: fi
4550: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4551: conftest.$ac_objext conftest.beam conftest.$ac_ext
4552: fi
4553:
4554: fi
4555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4556: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4557: if test $ac_cv_func_malloc_0_nonnull = yes; then :
4558:
4559: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4560:
4561: else
4562: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4563:
4564: case " $LIBOBJS " in
4565: *" malloc.$ac_objext "* ) ;;
4566: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4567: ;;
4568: esac
4569:
4570:
4571: $as_echo "#define malloc rpl_malloc" >>confdefs.h
4572:
4573: fi
4574:
4575:
4576:
4577:
4578:
4579: for ac_header in $ac_header_list
4580: do :
4581: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4583: "
4584: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4585: cat >>confdefs.h <<_ACEOF
4586: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4587: _ACEOF
4588:
4589: fi
4590:
4591: done
4592:
4593:
4594:
4595:
4596:
4597:
4598:
4599:
4600: for ac_func in getpagesize
4601: do :
4602: ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4603: if test "x$ac_cv_func_getpagesize" = xyes; then :
4604: cat >>confdefs.h <<_ACEOF
4605: #define HAVE_GETPAGESIZE 1
4606: _ACEOF
4607:
4608: fi
4609: done
4610:
4611: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4612: $as_echo_n "checking for working mmap... " >&6; }
4613: if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4614: $as_echo_n "(cached) " >&6
4615: else
4616: if test "$cross_compiling" = yes; then :
4617: ac_cv_func_mmap_fixed_mapped=no
4618: else
4619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620: /* end confdefs.h. */
4621: $ac_includes_default
4622: /* malloc might have been renamed as rpl_malloc. */
4623: #undef malloc
4624:
4625: /* Thanks to Mike Haertel and Jim Avera for this test.
4626: Here is a matrix of mmap possibilities:
4627: mmap private not fixed
4628: mmap private fixed at somewhere currently unmapped
4629: mmap private fixed at somewhere already mapped
4630: mmap shared not fixed
4631: mmap shared fixed at somewhere currently unmapped
4632: mmap shared fixed at somewhere already mapped
4633: For private mappings, we should verify that changes cannot be read()
4634: back from the file, nor mmap's back from the file at a different
4635: address. (There have been systems where private was not correctly
4636: implemented like the infamous i386 svr4.0, and systems where the
4637: VM page cache was not coherent with the file system buffer cache
4638: like early versions of FreeBSD and possibly contemporary NetBSD.)
4639: For shared mappings, we should conversely verify that changes get
4640: propagated back to all the places they're supposed to be.
4641:
4642: Grep wants private fixed already mapped.
4643: The main things grep needs to know about mmap are:
4644: * does it exist and is it safe to write into the mmap'd area
4645: * how to use it (BSD variants) */
4646:
4647: #include <fcntl.h>
4648: #include <sys/mman.h>
4649:
4650: #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4651: char *malloc ();
4652: #endif
4653:
4654: /* This mess was copied from the GNU getpagesize.h. */
4655: #ifndef HAVE_GETPAGESIZE
4656: # ifdef _SC_PAGESIZE
4657: # define getpagesize() sysconf(_SC_PAGESIZE)
4658: # else /* no _SC_PAGESIZE */
4659: # ifdef HAVE_SYS_PARAM_H
4660: # include <sys/param.h>
4661: # ifdef EXEC_PAGESIZE
4662: # define getpagesize() EXEC_PAGESIZE
4663: # else /* no EXEC_PAGESIZE */
4664: # ifdef NBPG
4665: # define getpagesize() NBPG * CLSIZE
4666: # ifndef CLSIZE
4667: # define CLSIZE 1
4668: # endif /* no CLSIZE */
4669: # else /* no NBPG */
4670: # ifdef NBPC
4671: # define getpagesize() NBPC
4672: # else /* no NBPC */
4673: # ifdef PAGESIZE
4674: # define getpagesize() PAGESIZE
4675: # endif /* PAGESIZE */
4676: # endif /* no NBPC */
4677: # endif /* no NBPG */
4678: # endif /* no EXEC_PAGESIZE */
4679: # else /* no HAVE_SYS_PARAM_H */
4680: # define getpagesize() 8192 /* punt totally */
4681: # endif /* no HAVE_SYS_PARAM_H */
4682: # endif /* no _SC_PAGESIZE */
4683:
4684: #endif /* no HAVE_GETPAGESIZE */
4685:
4686: int
4687: main ()
4688: {
4689: char *data, *data2, *data3;
4690: const char *cdata2;
4691: int i, pagesize;
4692: int fd, fd2;
4693:
4694: pagesize = getpagesize ();
4695:
4696: /* First, make a file with some known garbage in it. */
4697: data = (char *) malloc (pagesize);
4698: if (!data)
4699: return 1;
4700: for (i = 0; i < pagesize; ++i)
4701: *(data + i) = rand ();
4702: umask (0);
4703: fd = creat ("conftest.mmap", 0600);
4704: if (fd < 0)
4705: return 2;
4706: if (write (fd, data, pagesize) != pagesize)
4707: return 3;
4708: close (fd);
4709:
4710: /* Next, check that the tail of a page is zero-filled. File must have
4711: non-zero length, otherwise we risk SIGBUS for entire page. */
4712: fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4713: if (fd2 < 0)
4714: return 4;
4715: cdata2 = "";
4716: if (write (fd2, cdata2, 1) != 1)
4717: return 5;
4718: data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4719: if (data2 == MAP_FAILED)
4720: return 6;
4721: for (i = 0; i < pagesize; ++i)
4722: if (*(data2 + i))
4723: return 7;
4724: close (fd2);
4725: if (munmap (data2, pagesize))
4726: return 8;
4727:
4728: /* Next, try to mmap the file at a fixed address which already has
4729: something else allocated at it. If we can, also make sure that
4730: we see the same garbage. */
4731: fd = open ("conftest.mmap", O_RDWR);
4732: if (fd < 0)
4733: return 9;
4734: if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4735: MAP_PRIVATE | MAP_FIXED, fd, 0L))
4736: return 10;
4737: for (i = 0; i < pagesize; ++i)
4738: if (*(data + i) != *(data2 + i))
4739: return 11;
4740:
4741: /* Finally, make sure that changes to the mapped area do not
4742: percolate back to the file as seen by read(). (This is a bug on
4743: some variants of i386 svr4.0.) */
4744: for (i = 0; i < pagesize; ++i)
4745: *(data2 + i) = *(data2 + i) + 1;
4746: data3 = (char *) malloc (pagesize);
4747: if (!data3)
4748: return 12;
4749: if (read (fd, data3, pagesize) != pagesize)
4750: return 13;
4751: for (i = 0; i < pagesize; ++i)
4752: if (*(data + i) != *(data3 + i))
4753: return 14;
4754: close (fd);
4755: return 0;
4756: }
4757: _ACEOF
4758: if ac_fn_c_try_run "$LINENO"; then :
4759: ac_cv_func_mmap_fixed_mapped=yes
4760: else
4761: ac_cv_func_mmap_fixed_mapped=no
4762: fi
4763: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4764: conftest.$ac_objext conftest.beam conftest.$ac_ext
4765: fi
4766:
4767: fi
4768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4769: $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4770: if test $ac_cv_func_mmap_fixed_mapped = yes; then
4771:
4772: $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4773:
4774: fi
4775: rm -f conftest.mmap conftest.txt
4776:
4777: for ac_header in stdlib.h
4778: do :
4779: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4780: if test "x$ac_cv_header_stdlib_h" = xyes; then :
4781: cat >>confdefs.h <<_ACEOF
4782: #define HAVE_STDLIB_H 1
4783: _ACEOF
4784:
4785: fi
4786:
4787: done
4788:
4789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4790: $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4791: if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4792: $as_echo_n "(cached) " >&6
4793: else
4794: if test "$cross_compiling" = yes; then :
4795: ac_cv_func_realloc_0_nonnull=no
4796: else
4797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798: /* end confdefs.h. */
4799: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4800: # include <stdlib.h>
4801: #else
4802: char *realloc ();
4803: #endif
4804:
4805: int
4806: main ()
4807: {
4808: return ! realloc (0, 0);
4809: ;
4810: return 0;
4811: }
4812: _ACEOF
4813: if ac_fn_c_try_run "$LINENO"; then :
4814: ac_cv_func_realloc_0_nonnull=yes
4815: else
4816: ac_cv_func_realloc_0_nonnull=no
4817: fi
4818: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4819: conftest.$ac_objext conftest.beam conftest.$ac_ext
4820: fi
4821:
4822: fi
4823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4824: $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4825: if test $ac_cv_func_realloc_0_nonnull = yes; then :
4826:
4827: $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4828:
4829: else
4830: $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4831:
4832: case " $LIBOBJS " in
4833: *" realloc.$ac_objext "* ) ;;
4834: *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4835: ;;
4836: esac
4837:
4838:
4839: $as_echo "#define realloc rpl_realloc" >>confdefs.h
4840:
4841: fi
4842:
4843:
4844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
4845: $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
4846: if ${ac_cv_func_wait3_rusage+:} false; then :
4847: $as_echo_n "(cached) " >&6
4848: else
4849: if test "$cross_compiling" = yes; then :
4850: ac_cv_func_wait3_rusage=no
4851: else
4852: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853: /* end confdefs.h. */
4854: $ac_includes_default
4855: #include <sys/time.h>
4856: #include <sys/resource.h>
4857: #include <sys/wait.h>
4858: /* HP-UX has wait3 but does not fill in rusage at all. */
4859: int
4860: main ()
4861: {
4862: struct rusage r;
4863: int i;
4864: /* Use a field that we can force nonzero --
4865: voluntary context switches.
4866: For systems like NeXT and OSF/1 that don't set it,
4867: also use the system CPU time. And page faults (I/O) for Linux. */
4868: r.ru_nvcsw = 0;
4869: r.ru_stime.tv_sec = 0;
4870: r.ru_stime.tv_usec = 0;
4871: r.ru_majflt = r.ru_minflt = 0;
4872: switch (fork ())
4873: {
4874: case 0: /* Child. */
4875: sleep(1); /* Give up the CPU. */
4876: _exit(0);
4877: break;
4878: case -1: /* What can we do? */
4879: _exit(0);
4880: break;
4881: default: /* Parent. */
4882: wait3(&i, 0, &r);
4883: /* Avoid "text file busy" from rm on fast HP-UX machines. */
4884: sleep(2);
4885: return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
4886: && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
4887: }
4888: }
4889: _ACEOF
4890: if ac_fn_c_try_run "$LINENO"; then :
4891: ac_cv_func_wait3_rusage=yes
4892: else
4893: ac_cv_func_wait3_rusage=no
4894: fi
4895: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4896: conftest.$ac_objext conftest.beam conftest.$ac_ext
4897: fi
4898:
4899: fi
4900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
4901: $as_echo "$ac_cv_func_wait3_rusage" >&6; }
4902: if test $ac_cv_func_wait3_rusage = yes; then
4903:
4904: $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
4905:
4906: fi
4907:
4908: 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
4909: do :
4910: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4911: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4912: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4913: cat >>confdefs.h <<_ACEOF
4914: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4915: _ACEOF
4916:
4917: fi
4918: done
4919:
4920: for ac_func in kldnext kldfirstmod modfnext modstat kldload
4921: do :
4922: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4923: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4924: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4925: cat >>confdefs.h <<_ACEOF
4926: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4927: _ACEOF
4928:
4929: fi
4930: done
4931:
4932:
4933: DEBUG=no
4934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
4935: $as_echo_n "checking Debug Build... " >&6; }
4936: # Check whether --enable-debug was given.
4937: if test "${enable_debug+set}" = set; then :
4938: enableval=$enable_debug; DEBUG=$enableval
4939: case "$enableval" in
4940: yes)
4941:
4942: $as_echo "#define __DEBUG /**/" >>confdefs.h
4943:
4944: CFLAGS="-g ${CFLAGS}"
4945: ;;
4946: *)
4947:
4948: $as_echo "#define NDEBUG /**/" >>confdefs.h
4949:
4950: ;;
4951: esac
4952: fi
4953:
4954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
4955: $as_echo "$DEBUG" >&6; }
4956:
4957: ac_config_files="$ac_config_files Makefile bin/Makefile inc/Makefile src/Makefile"
4958:
4959: cat >confcache <<\_ACEOF
4960: # This file is a shell script that caches the results of configure
4961: # tests run on this system so they can be shared between configure
4962: # scripts and configure runs, see configure's option --config-cache.
4963: # It is not useful on other systems. If it contains results you don't
4964: # want to keep, you may remove or edit it.
4965: #
4966: # config.status only pays attention to the cache file if you give it
4967: # the --recheck option to rerun configure.
4968: #
4969: # `ac_cv_env_foo' variables (set or unset) will be overridden when
4970: # loading this file, other *unset* `ac_cv_foo' will be assigned the
4971: # following values.
4972:
4973: _ACEOF
4974:
4975: # The following way of writing the cache mishandles newlines in values,
4976: # but we know of no workaround that is simple, portable, and efficient.
4977: # So, we kill variables containing newlines.
4978: # Ultrix sh set writes to stderr and can't be redirected directly,
4979: # and sets the high bit in the cache file unless we assign to the vars.
4980: (
4981: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4982: eval ac_val=\$$ac_var
4983: case $ac_val in #(
4984: *${as_nl}*)
4985: case $ac_var in #(
4986: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4987: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4988: esac
4989: case $ac_var in #(
4990: _ | IFS | as_nl) ;; #(
4991: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4992: *) { eval $ac_var=; unset $ac_var;} ;;
4993: esac ;;
4994: esac
4995: done
4996:
4997: (set) 2>&1 |
4998: case $as_nl`(ac_space=' '; set) 2>&1` in #(
4999: *${as_nl}ac_space=\ *)
5000: # `set' does not quote correctly, so add quotes: double-quote
5001: # substitution turns \\\\ into \\, and sed turns \\ into \.
5002: sed -n \
5003: "s/'/'\\\\''/g;
5004: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5005: ;; #(
5006: *)
5007: # `set' quotes correctly as required by POSIX, so do not add quotes.
5008: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5009: ;;
5010: esac |
5011: sort
5012: ) |
5013: sed '
5014: /^ac_cv_env_/b end
5015: t clear
5016: :clear
5017: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5018: t end
5019: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5020: :end' >>confcache
5021: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5022: if test -w "$cache_file"; then
5023: if test "x$cache_file" != "x/dev/null"; then
5024: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5025: $as_echo "$as_me: updating cache $cache_file" >&6;}
5026: if test ! -f "$cache_file" || test -h "$cache_file"; then
5027: cat confcache >"$cache_file"
5028: else
5029: case $cache_file in #(
5030: */* | ?:*)
5031: mv -f confcache "$cache_file"$$ &&
5032: mv -f "$cache_file"$$ "$cache_file" ;; #(
5033: *)
5034: mv -f confcache "$cache_file" ;;
5035: esac
5036: fi
5037: fi
5038: else
5039: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5040: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5041: fi
5042: fi
5043: rm -f confcache
5044:
5045: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5046: # Let make expand exec_prefix.
5047: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5048:
5049: DEFS=-DHAVE_CONFIG_H
5050:
5051: ac_libobjs=
5052: ac_ltlibobjs=
5053: U=
5054: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5055: # 1. Remove the extension, and $U if already installed.
5056: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5057: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5058: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5059: # will be set to the directory where LIBOBJS objects are built.
5060: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5061: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5062: done
5063: LIBOBJS=$ac_libobjs
5064:
5065: LTLIBOBJS=$ac_ltlibobjs
5066:
5067:
5068:
5069: : "${CONFIG_STATUS=./config.status}"
5070: ac_write_fail=0
5071: ac_clean_files_save=$ac_clean_files
5072: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5073: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5074: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5075: as_write_fail=0
5076: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5077: #! $SHELL
5078: # Generated by $as_me.
5079: # Run this file to recreate the current configuration.
5080: # Compiler output produced by configure, useful for debugging
5081: # configure, is in config.log if it exists.
5082:
5083: debug=false
5084: ac_cs_recheck=false
5085: ac_cs_silent=false
5086:
5087: SHELL=\${CONFIG_SHELL-$SHELL}
5088: export SHELL
5089: _ASEOF
5090: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5091: ## -------------------- ##
5092: ## M4sh Initialization. ##
5093: ## -------------------- ##
5094:
5095: # Be more Bourne compatible
5096: DUALCASE=1; export DUALCASE # for MKS sh
5097: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5098: emulate sh
5099: NULLCMD=:
5100: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5101: # is contrary to our usage. Disable this feature.
5102: alias -g '${1+"$@"}'='"$@"'
5103: setopt NO_GLOB_SUBST
5104: else
5105: case `(set -o) 2>/dev/null` in #(
5106: *posix*) :
5107: set -o posix ;; #(
5108: *) :
5109: ;;
5110: esac
5111: fi
5112:
5113:
5114: as_nl='
5115: '
5116: export as_nl
5117: # Printing a long string crashes Solaris 7 /usr/bin/printf.
5118: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5119: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5120: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5121: # Prefer a ksh shell builtin over an external printf program on Solaris,
5122: # but without wasting forks for bash or zsh.
5123: if test -z "$BASH_VERSION$ZSH_VERSION" \
5124: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5125: as_echo='print -r --'
5126: as_echo_n='print -rn --'
5127: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5128: as_echo='printf %s\n'
5129: as_echo_n='printf %s'
5130: else
5131: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5132: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5133: as_echo_n='/usr/ucb/echo -n'
5134: else
5135: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5136: as_echo_n_body='eval
5137: arg=$1;
5138: case $arg in #(
5139: *"$as_nl"*)
5140: expr "X$arg" : "X\\(.*\\)$as_nl";
5141: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5142: esac;
5143: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5144: '
5145: export as_echo_n_body
5146: as_echo_n='sh -c $as_echo_n_body as_echo'
5147: fi
5148: export as_echo_body
5149: as_echo='sh -c $as_echo_body as_echo'
5150: fi
5151:
5152: # The user is always right.
5153: if test "${PATH_SEPARATOR+set}" != set; then
5154: PATH_SEPARATOR=:
5155: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5156: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5157: PATH_SEPARATOR=';'
5158: }
5159: fi
5160:
5161:
5162: # IFS
5163: # We need space, tab and new line, in precisely that order. Quoting is
5164: # there to prevent editors from complaining about space-tab.
5165: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5166: # splitting by setting IFS to empty value.)
5167: IFS=" "" $as_nl"
5168:
5169: # Find who we are. Look in the path if we contain no directory separator.
5170: as_myself=
5171: case $0 in #((
5172: *[\\/]* ) as_myself=$0 ;;
5173: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174: for as_dir in $PATH
5175: do
5176: IFS=$as_save_IFS
5177: test -z "$as_dir" && as_dir=.
5178: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5179: done
5180: IFS=$as_save_IFS
5181:
5182: ;;
5183: esac
5184: # We did not find ourselves, most probably we were run as `sh COMMAND'
5185: # in which case we are not to be found in the path.
5186: if test "x$as_myself" = x; then
5187: as_myself=$0
5188: fi
5189: if test ! -f "$as_myself"; then
5190: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5191: exit 1
5192: fi
5193:
5194: # Unset variables that we do not need and which cause bugs (e.g. in
5195: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5196: # suppresses any "Segmentation fault" message there. '((' could
5197: # trigger a bug in pdksh 5.2.14.
5198: for as_var in BASH_ENV ENV MAIL MAILPATH
5199: do eval test x\${$as_var+set} = xset \
5200: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5201: done
5202: PS1='$ '
5203: PS2='> '
5204: PS4='+ '
5205:
5206: # NLS nuisances.
5207: LC_ALL=C
5208: export LC_ALL
5209: LANGUAGE=C
5210: export LANGUAGE
5211:
5212: # CDPATH.
5213: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5214:
5215:
5216: # as_fn_error STATUS ERROR [LINENO LOG_FD]
5217: # ----------------------------------------
5218: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5219: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5220: # script with STATUS, using 1 if that was 0.
5221: as_fn_error ()
5222: {
5223: as_status=$1; test $as_status -eq 0 && as_status=1
5224: if test "$4"; then
5225: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5226: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5227: fi
5228: $as_echo "$as_me: error: $2" >&2
5229: as_fn_exit $as_status
5230: } # as_fn_error
5231:
5232:
5233: # as_fn_set_status STATUS
5234: # -----------------------
5235: # Set $? to STATUS, without forking.
5236: as_fn_set_status ()
5237: {
5238: return $1
5239: } # as_fn_set_status
5240:
5241: # as_fn_exit STATUS
5242: # -----------------
5243: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5244: as_fn_exit ()
5245: {
5246: set +e
5247: as_fn_set_status $1
5248: exit $1
5249: } # as_fn_exit
5250:
5251: # as_fn_unset VAR
5252: # ---------------
5253: # Portably unset VAR.
5254: as_fn_unset ()
5255: {
5256: { eval $1=; unset $1;}
5257: }
5258: as_unset=as_fn_unset
5259: # as_fn_append VAR VALUE
5260: # ----------------------
5261: # Append the text in VALUE to the end of the definition contained in VAR. Take
5262: # advantage of any shell optimizations that allow amortized linear growth over
5263: # repeated appends, instead of the typical quadratic growth present in naive
5264: # implementations.
5265: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5266: eval 'as_fn_append ()
5267: {
5268: eval $1+=\$2
5269: }'
5270: else
5271: as_fn_append ()
5272: {
5273: eval $1=\$$1\$2
5274: }
5275: fi # as_fn_append
5276:
5277: # as_fn_arith ARG...
5278: # ------------------
5279: # Perform arithmetic evaluation on the ARGs, and store the result in the
5280: # global $as_val. Take advantage of shells that can avoid forks. The arguments
5281: # must be portable across $(()) and expr.
5282: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5283: eval 'as_fn_arith ()
5284: {
5285: as_val=$(( $* ))
5286: }'
5287: else
5288: as_fn_arith ()
5289: {
5290: as_val=`expr "$@" || test $? -eq 1`
5291: }
5292: fi # as_fn_arith
5293:
5294:
5295: if expr a : '\(a\)' >/dev/null 2>&1 &&
5296: test "X`expr 00001 : '.*\(...\)'`" = X001; then
5297: as_expr=expr
5298: else
5299: as_expr=false
5300: fi
5301:
5302: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5303: as_basename=basename
5304: else
5305: as_basename=false
5306: fi
5307:
5308: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5309: as_dirname=dirname
5310: else
5311: as_dirname=false
5312: fi
5313:
5314: as_me=`$as_basename -- "$0" ||
5315: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5316: X"$0" : 'X\(//\)$' \| \
5317: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5318: $as_echo X/"$0" |
5319: sed '/^.*\/\([^/][^/]*\)\/*$/{
5320: s//\1/
5321: q
5322: }
5323: /^X\/\(\/\/\)$/{
5324: s//\1/
5325: q
5326: }
5327: /^X\/\(\/\).*/{
5328: s//\1/
5329: q
5330: }
5331: s/.*/./; q'`
5332:
5333: # Avoid depending upon Character Ranges.
5334: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5335: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5336: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5337: as_cr_digits='0123456789'
5338: as_cr_alnum=$as_cr_Letters$as_cr_digits
5339:
5340: ECHO_C= ECHO_N= ECHO_T=
5341: case `echo -n x` in #(((((
5342: -n*)
5343: case `echo 'xy\c'` in
5344: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5345: xy) ECHO_C='\c';;
5346: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5347: ECHO_T=' ';;
5348: esac;;
5349: *)
5350: ECHO_N='-n';;
5351: esac
5352:
5353: rm -f conf$$ conf$$.exe conf$$.file
5354: if test -d conf$$.dir; then
5355: rm -f conf$$.dir/conf$$.file
5356: else
5357: rm -f conf$$.dir
5358: mkdir conf$$.dir 2>/dev/null
5359: fi
5360: if (echo >conf$$.file) 2>/dev/null; then
5361: if ln -s conf$$.file conf$$ 2>/dev/null; then
5362: as_ln_s='ln -s'
5363: # ... but there are two gotchas:
5364: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5365: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5366: # In both cases, we have to default to `cp -p'.
5367: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5368: as_ln_s='cp -p'
5369: elif ln conf$$.file conf$$ 2>/dev/null; then
5370: as_ln_s=ln
5371: else
5372: as_ln_s='cp -p'
5373: fi
5374: else
5375: as_ln_s='cp -p'
5376: fi
5377: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5378: rmdir conf$$.dir 2>/dev/null
5379:
5380:
5381: # as_fn_mkdir_p
5382: # -------------
5383: # Create "$as_dir" as a directory, including parents if necessary.
5384: as_fn_mkdir_p ()
5385: {
5386:
5387: case $as_dir in #(
5388: -*) as_dir=./$as_dir;;
5389: esac
5390: test -d "$as_dir" || eval $as_mkdir_p || {
5391: as_dirs=
5392: while :; do
5393: case $as_dir in #(
5394: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5395: *) as_qdir=$as_dir;;
5396: esac
5397: as_dirs="'$as_qdir' $as_dirs"
5398: as_dir=`$as_dirname -- "$as_dir" ||
5399: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5400: X"$as_dir" : 'X\(//\)[^/]' \| \
5401: X"$as_dir" : 'X\(//\)$' \| \
5402: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5403: $as_echo X"$as_dir" |
5404: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5405: s//\1/
5406: q
5407: }
5408: /^X\(\/\/\)[^/].*/{
5409: s//\1/
5410: q
5411: }
5412: /^X\(\/\/\)$/{
5413: s//\1/
5414: q
5415: }
5416: /^X\(\/\).*/{
5417: s//\1/
5418: q
5419: }
5420: s/.*/./; q'`
5421: test -d "$as_dir" && break
5422: done
5423: test -z "$as_dirs" || eval "mkdir $as_dirs"
5424: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5425:
5426:
5427: } # as_fn_mkdir_p
5428: if mkdir -p . 2>/dev/null; then
5429: as_mkdir_p='mkdir -p "$as_dir"'
5430: else
5431: test -d ./-p && rmdir ./-p
5432: as_mkdir_p=false
5433: fi
5434:
5435: if test -x / >/dev/null 2>&1; then
5436: as_test_x='test -x'
5437: else
5438: if ls -dL / >/dev/null 2>&1; then
5439: as_ls_L_option=L
5440: else
5441: as_ls_L_option=
5442: fi
5443: as_test_x='
5444: eval sh -c '\''
5445: if test -d "$1"; then
5446: test -d "$1/.";
5447: else
5448: case $1 in #(
5449: -*)set "./$1";;
5450: esac;
5451: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5452: ???[sx]*):;;*)false;;esac;fi
5453: '\'' sh
5454: '
5455: fi
5456: as_executable_p=$as_test_x
5457:
5458: # Sed expression to map a string onto a valid CPP name.
5459: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5460:
5461: # Sed expression to map a string onto a valid variable name.
5462: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5463:
5464:
5465: exec 6>&1
5466: ## ----------------------------------- ##
5467: ## Main body of $CONFIG_STATUS script. ##
5468: ## ----------------------------------- ##
5469: _ASEOF
5470: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5471:
5472: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5473: # Save the log message, to keep $0 and so on meaningful, and to
5474: # report actual input values of CONFIG_FILES etc. instead of their
5475: # values after options handling.
5476: ac_log="
5477: This file was extended by embedtools $as_me 1.0, which was
5478: generated by GNU Autoconf 2.68. Invocation command line was
5479:
5480: CONFIG_FILES = $CONFIG_FILES
5481: CONFIG_HEADERS = $CONFIG_HEADERS
5482: CONFIG_LINKS = $CONFIG_LINKS
5483: CONFIG_COMMANDS = $CONFIG_COMMANDS
5484: $ $0 $@
5485:
5486: on `(hostname || uname -n) 2>/dev/null | sed 1q`
5487: "
5488:
5489: _ACEOF
5490:
5491: case $ac_config_files in *"
5492: "*) set x $ac_config_files; shift; ac_config_files=$*;;
5493: esac
5494:
5495: case $ac_config_headers in *"
5496: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5497: esac
5498:
5499:
5500: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5501: # Files that config.status was made for.
5502: config_files="$ac_config_files"
5503: config_headers="$ac_config_headers"
5504:
5505: _ACEOF
5506:
5507: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5508: ac_cs_usage="\
5509: \`$as_me' instantiates files and other configuration actions
5510: from templates according to the current configuration. Unless the files
5511: and actions are specified as TAGs, all are instantiated by default.
5512:
5513: Usage: $0 [OPTION]... [TAG]...
5514:
5515: -h, --help print this help, then exit
5516: -V, --version print version number and configuration settings, then exit
5517: --config print configuration, then exit
5518: -q, --quiet, --silent
5519: do not print progress messages
5520: -d, --debug don't remove temporary files
5521: --recheck update $as_me by reconfiguring in the same conditions
5522: --file=FILE[:TEMPLATE]
5523: instantiate the configuration file FILE
5524: --header=FILE[:TEMPLATE]
5525: instantiate the configuration header FILE
5526:
5527: Configuration files:
5528: $config_files
5529:
5530: Configuration headers:
5531: $config_headers
5532:
5533: Report bugs to <misho@elwix.org>."
5534:
5535: _ACEOF
5536: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5537: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5538: ac_cs_version="\\
5539: embedtools config.status 1.0
5540: configured by $0, generated by GNU Autoconf 2.68,
5541: with options \\"\$ac_cs_config\\"
5542:
5543: Copyright (C) 2010 Free Software Foundation, Inc.
5544: This config.status script is free software; the Free Software Foundation
5545: gives unlimited permission to copy, distribute and modify it."
5546:
5547: ac_pwd='$ac_pwd'
5548: srcdir='$srcdir'
5549: INSTALL='$INSTALL'
5550: test -n "\$AWK" || AWK=awk
5551: _ACEOF
5552:
5553: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5554: # The default lists apply if the user does not specify any file.
5555: ac_need_defaults=:
5556: while test $# != 0
5557: do
5558: case $1 in
5559: --*=?*)
5560: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5561: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5562: ac_shift=:
5563: ;;
5564: --*=)
5565: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5566: ac_optarg=
5567: ac_shift=:
5568: ;;
5569: *)
5570: ac_option=$1
5571: ac_optarg=$2
5572: ac_shift=shift
5573: ;;
5574: esac
5575:
5576: case $ac_option in
5577: # Handling of the options.
5578: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5579: ac_cs_recheck=: ;;
5580: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5581: $as_echo "$ac_cs_version"; exit ;;
5582: --config | --confi | --conf | --con | --co | --c )
5583: $as_echo "$ac_cs_config"; exit ;;
5584: --debug | --debu | --deb | --de | --d | -d )
5585: debug=: ;;
5586: --file | --fil | --fi | --f )
5587: $ac_shift
5588: case $ac_optarg in
5589: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5590: '') as_fn_error $? "missing file argument" ;;
5591: esac
5592: as_fn_append CONFIG_FILES " '$ac_optarg'"
5593: ac_need_defaults=false;;
5594: --header | --heade | --head | --hea )
5595: $ac_shift
5596: case $ac_optarg in
5597: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5598: esac
5599: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5600: ac_need_defaults=false;;
5601: --he | --h)
5602: # Conflict between --help and --header
5603: as_fn_error $? "ambiguous option: \`$1'
5604: Try \`$0 --help' for more information.";;
5605: --help | --hel | -h )
5606: $as_echo "$ac_cs_usage"; exit ;;
5607: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5608: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5609: ac_cs_silent=: ;;
5610:
5611: # This is an error.
5612: -*) as_fn_error $? "unrecognized option: \`$1'
5613: Try \`$0 --help' for more information." ;;
5614:
5615: *) as_fn_append ac_config_targets " $1"
5616: ac_need_defaults=false ;;
5617:
5618: esac
5619: shift
5620: done
5621:
5622: ac_configure_extra_args=
5623:
5624: if $ac_cs_silent; then
5625: exec 6>/dev/null
5626: ac_configure_extra_args="$ac_configure_extra_args --silent"
5627: fi
5628:
5629: _ACEOF
5630: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5631: if \$ac_cs_recheck; then
5632: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5633: shift
5634: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5635: CONFIG_SHELL='$SHELL'
5636: export CONFIG_SHELL
5637: exec "\$@"
5638: fi
5639:
5640: _ACEOF
5641: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5642: exec 5>>config.log
5643: {
5644: echo
5645: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5646: ## Running $as_me. ##
5647: _ASBOX
5648: $as_echo "$ac_log"
5649: } >&5
5650:
5651: _ACEOF
5652: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5653: _ACEOF
5654:
5655: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5656:
5657: # Handling of arguments.
5658: for ac_config_target in $ac_config_targets
5659: do
5660: case $ac_config_target in
5661: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
5662: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5663: "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
5664: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
5665: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5666:
5667: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5668: esac
5669: done
5670:
5671:
5672: # If the user did not use the arguments to specify the items to instantiate,
5673: # then the envvar interface is used. Set only those that are not.
5674: # We use the long form for the default assignment because of an extremely
5675: # bizarre bug on SunOS 4.1.3.
5676: if $ac_need_defaults; then
5677: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5678: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5679: fi
5680:
5681: # Have a temporary directory for convenience. Make it in the build tree
5682: # simply because there is no reason against having it here, and in addition,
5683: # creating and moving files from /tmp can sometimes cause problems.
5684: # Hook for its removal unless debugging.
5685: # Note that there is a small window in which the directory will not be cleaned:
5686: # after its creation but before its name has been assigned to `$tmp'.
5687: $debug ||
5688: {
5689: tmp= ac_tmp=
5690: trap 'exit_status=$?
5691: : "${ac_tmp:=$tmp}"
5692: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5693: ' 0
5694: trap 'as_fn_exit 1' 1 2 13 15
5695: }
5696: # Create a (secure) tmp directory for tmp files.
5697:
5698: {
5699: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5700: test -d "$tmp"
5701: } ||
5702: {
5703: tmp=./conf$$-$RANDOM
5704: (umask 077 && mkdir "$tmp")
5705: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5706: ac_tmp=$tmp
5707:
5708: # Set up the scripts for CONFIG_FILES section.
5709: # No need to generate them if there are no CONFIG_FILES.
5710: # This happens for instance with `./config.status config.h'.
5711: if test -n "$CONFIG_FILES"; then
5712:
5713:
5714: ac_cr=`echo X | tr X '\015'`
5715: # On cygwin, bash can eat \r inside `` if the user requested igncr.
5716: # But we know of no other shell where ac_cr would be empty at this
5717: # point, so we can use a bashism as a fallback.
5718: if test "x$ac_cr" = x; then
5719: eval ac_cr=\$\'\\r\'
5720: fi
5721: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5722: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5723: ac_cs_awk_cr='\\r'
5724: else
5725: ac_cs_awk_cr=$ac_cr
5726: fi
5727:
5728: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5729: _ACEOF
5730:
5731:
5732: {
5733: echo "cat >conf$$subs.awk <<_ACEOF" &&
5734: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5735: echo "_ACEOF"
5736: } >conf$$subs.sh ||
5737: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5738: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5739: ac_delim='%!_!# '
5740: for ac_last_try in false false false false false :; do
5741: . ./conf$$subs.sh ||
5742: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5743:
5744: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5745: if test $ac_delim_n = $ac_delim_num; then
5746: break
5747: elif $ac_last_try; then
5748: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5749: else
5750: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5751: fi
5752: done
5753: rm -f conf$$subs.sh
5754:
5755: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5756: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5757: _ACEOF
5758: sed -n '
5759: h
5760: s/^/S["/; s/!.*/"]=/
5761: p
5762: g
5763: s/^[^!]*!//
5764: :repl
5765: t repl
5766: s/'"$ac_delim"'$//
5767: t delim
5768: :nl
5769: h
5770: s/\(.\{148\}\)..*/\1/
5771: t more1
5772: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5773: p
5774: n
5775: b repl
5776: :more1
5777: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5778: p
5779: g
5780: s/.\{148\}//
5781: t nl
5782: :delim
5783: h
5784: s/\(.\{148\}\)..*/\1/
5785: t more2
5786: s/["\\]/\\&/g; s/^/"/; s/$/"/
5787: p
5788: b
5789: :more2
5790: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5791: p
5792: g
5793: s/.\{148\}//
5794: t delim
5795: ' <conf$$subs.awk | sed '
5796: /^[^""]/{
5797: N
5798: s/\n//
5799: }
5800: ' >>$CONFIG_STATUS || ac_write_fail=1
5801: rm -f conf$$subs.awk
5802: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5803: _ACAWK
5804: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5805: for (key in S) S_is_set[key] = 1
5806: FS = ""
5807:
5808: }
5809: {
5810: line = $ 0
5811: nfields = split(line, field, "@")
5812: substed = 0
5813: len = length(field[1])
5814: for (i = 2; i < nfields; i++) {
5815: key = field[i]
5816: keylen = length(key)
5817: if (S_is_set[key]) {
5818: value = S[key]
5819: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5820: len += length(value) + length(field[++i])
5821: substed = 1
5822: } else
5823: len += 1 + keylen
5824: }
5825:
5826: print line
5827: }
5828:
5829: _ACAWK
5830: _ACEOF
5831: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5832: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5833: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5834: else
5835: cat
5836: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5837: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5838: _ACEOF
5839:
5840: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5841: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5842: # trailing colons and then remove the whole line if VPATH becomes empty
5843: # (actually we leave an empty line to preserve line numbers).
5844: if test "x$srcdir" = x.; then
5845: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5846: h
5847: s///
5848: s/^/:/
5849: s/[ ]*$/:/
5850: s/:\$(srcdir):/:/g
5851: s/:\${srcdir}:/:/g
5852: s/:@srcdir@:/:/g
5853: s/^:*//
5854: s/:*$//
5855: x
5856: s/\(=[ ]*\).*/\1/
5857: G
5858: s/\n//
5859: s/^[^=]*=[ ]*$//
5860: }'
5861: fi
5862:
5863: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5864: fi # test -n "$CONFIG_FILES"
5865:
5866: # Set up the scripts for CONFIG_HEADERS section.
5867: # No need to generate them if there are no CONFIG_HEADERS.
5868: # This happens for instance with `./config.status Makefile'.
5869: if test -n "$CONFIG_HEADERS"; then
5870: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5871: BEGIN {
5872: _ACEOF
5873:
5874: # Transform confdefs.h into an awk script `defines.awk', embedded as
5875: # here-document in config.status, that substitutes the proper values into
5876: # config.h.in to produce config.h.
5877:
5878: # Create a delimiter string that does not exist in confdefs.h, to ease
5879: # handling of long lines.
5880: ac_delim='%!_!# '
5881: for ac_last_try in false false :; do
5882: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5883: if test -z "$ac_tt"; then
5884: break
5885: elif $ac_last_try; then
5886: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5887: else
5888: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5889: fi
5890: done
5891:
5892: # For the awk script, D is an array of macro values keyed by name,
5893: # likewise P contains macro parameters if any. Preserve backslash
5894: # newline sequences.
5895:
5896: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5897: sed -n '
5898: s/.\{148\}/&'"$ac_delim"'/g
5899: t rset
5900: :rset
5901: s/^[ ]*#[ ]*define[ ][ ]*/ /
5902: t def
5903: d
5904: :def
5905: s/\\$//
5906: t bsnl
5907: s/["\\]/\\&/g
5908: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5909: D["\1"]=" \3"/p
5910: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5911: d
5912: :bsnl
5913: s/["\\]/\\&/g
5914: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5915: D["\1"]=" \3\\\\\\n"\\/p
5916: t cont
5917: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5918: t cont
5919: d
5920: :cont
5921: n
5922: s/.\{148\}/&'"$ac_delim"'/g
5923: t clear
5924: :clear
5925: s/\\$//
5926: t bsnlc
5927: s/["\\]/\\&/g; s/^/"/; s/$/"/p
5928: d
5929: :bsnlc
5930: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5931: b cont
5932: ' <confdefs.h | sed '
5933: s/'"$ac_delim"'/"\\\
5934: "/g' >>$CONFIG_STATUS || ac_write_fail=1
5935:
5936: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5937: for (key in D) D_is_set[key] = 1
5938: FS = ""
5939: }
5940: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5941: line = \$ 0
5942: split(line, arg, " ")
5943: if (arg[1] == "#") {
5944: defundef = arg[2]
5945: mac1 = arg[3]
5946: } else {
5947: defundef = substr(arg[1], 2)
5948: mac1 = arg[2]
5949: }
5950: split(mac1, mac2, "(") #)
5951: macro = mac2[1]
5952: prefix = substr(line, 1, index(line, defundef) - 1)
5953: if (D_is_set[macro]) {
5954: # Preserve the white space surrounding the "#".
5955: print prefix "define", macro P[macro] D[macro]
5956: next
5957: } else {
5958: # Replace #undef with comments. This is necessary, for example,
5959: # in the case of _POSIX_SOURCE, which is predefined and required
5960: # on some systems where configure will not decide to define it.
5961: if (defundef == "undef") {
5962: print "/*", prefix defundef, macro, "*/"
5963: next
5964: }
5965: }
5966: }
5967: { print }
5968: _ACAWK
5969: _ACEOF
5970: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5971: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5972: fi # test -n "$CONFIG_HEADERS"
5973:
5974:
5975: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5976: shift
5977: for ac_tag
5978: do
5979: case $ac_tag in
5980: :[FHLC]) ac_mode=$ac_tag; continue;;
5981: esac
5982: case $ac_mode$ac_tag in
5983: :[FHL]*:*);;
5984: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5985: :[FH]-) ac_tag=-:-;;
5986: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5987: esac
5988: ac_save_IFS=$IFS
5989: IFS=:
5990: set x $ac_tag
5991: IFS=$ac_save_IFS
5992: shift
5993: ac_file=$1
5994: shift
5995:
5996: case $ac_mode in
5997: :L) ac_source=$1;;
5998: :[FH])
5999: ac_file_inputs=
6000: for ac_f
6001: do
6002: case $ac_f in
6003: -) ac_f="$ac_tmp/stdin";;
6004: *) # Look for the file first in the build tree, then in the source tree
6005: # (if the path is not absolute). The absolute path cannot be DOS-style,
6006: # because $ac_f cannot contain `:'.
6007: test -f "$ac_f" ||
6008: case $ac_f in
6009: [\\/$]*) false;;
6010: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6011: esac ||
6012: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6013: esac
6014: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6015: as_fn_append ac_file_inputs " '$ac_f'"
6016: done
6017:
6018: # Let's still pretend it is `configure' which instantiates (i.e., don't
6019: # use $as_me), people would be surprised to read:
6020: # /* config.h. Generated by config.status. */
6021: configure_input='Generated from '`
6022: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6023: `' by configure.'
6024: if test x"$ac_file" != x-; then
6025: configure_input="$ac_file. $configure_input"
6026: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6027: $as_echo "$as_me: creating $ac_file" >&6;}
6028: fi
6029: # Neutralize special characters interpreted by sed in replacement strings.
6030: case $configure_input in #(
6031: *\&* | *\|* | *\\* )
6032: ac_sed_conf_input=`$as_echo "$configure_input" |
6033: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6034: *) ac_sed_conf_input=$configure_input;;
6035: esac
6036:
6037: case $ac_tag in
6038: *:-:* | *:-) cat >"$ac_tmp/stdin" \
6039: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6040: esac
6041: ;;
6042: esac
6043:
6044: ac_dir=`$as_dirname -- "$ac_file" ||
6045: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6046: X"$ac_file" : 'X\(//\)[^/]' \| \
6047: X"$ac_file" : 'X\(//\)$' \| \
6048: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6049: $as_echo X"$ac_file" |
6050: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6051: s//\1/
6052: q
6053: }
6054: /^X\(\/\/\)[^/].*/{
6055: s//\1/
6056: q
6057: }
6058: /^X\(\/\/\)$/{
6059: s//\1/
6060: q
6061: }
6062: /^X\(\/\).*/{
6063: s//\1/
6064: q
6065: }
6066: s/.*/./; q'`
6067: as_dir="$ac_dir"; as_fn_mkdir_p
6068: ac_builddir=.
6069:
6070: case "$ac_dir" in
6071: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6072: *)
6073: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6074: # A ".." for each directory in $ac_dir_suffix.
6075: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6076: case $ac_top_builddir_sub in
6077: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6078: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6079: esac ;;
6080: esac
6081: ac_abs_top_builddir=$ac_pwd
6082: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6083: # for backward compatibility:
6084: ac_top_builddir=$ac_top_build_prefix
6085:
6086: case $srcdir in
6087: .) # We are building in place.
6088: ac_srcdir=.
6089: ac_top_srcdir=$ac_top_builddir_sub
6090: ac_abs_top_srcdir=$ac_pwd ;;
6091: [\\/]* | ?:[\\/]* ) # Absolute name.
6092: ac_srcdir=$srcdir$ac_dir_suffix;
6093: ac_top_srcdir=$srcdir
6094: ac_abs_top_srcdir=$srcdir ;;
6095: *) # Relative name.
6096: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6097: ac_top_srcdir=$ac_top_build_prefix$srcdir
6098: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6099: esac
6100: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6101:
6102:
6103: case $ac_mode in
6104: :F)
6105: #
6106: # CONFIG_FILE
6107: #
6108:
6109: case $INSTALL in
6110: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6111: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6112: esac
6113: _ACEOF
6114:
6115: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6116: # If the template does not know about datarootdir, expand it.
6117: # FIXME: This hack should be removed a few years after 2.60.
6118: ac_datarootdir_hack=; ac_datarootdir_seen=
6119: ac_sed_dataroot='
6120: /datarootdir/ {
6121: p
6122: q
6123: }
6124: /@datadir@/p
6125: /@docdir@/p
6126: /@infodir@/p
6127: /@localedir@/p
6128: /@mandir@/p'
6129: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6130: *datarootdir*) ac_datarootdir_seen=yes;;
6131: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6133: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6134: _ACEOF
6135: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6136: ac_datarootdir_hack='
6137: s&@datadir@&$datadir&g
6138: s&@docdir@&$docdir&g
6139: s&@infodir@&$infodir&g
6140: s&@localedir@&$localedir&g
6141: s&@mandir@&$mandir&g
6142: s&\\\${datarootdir}&$datarootdir&g' ;;
6143: esac
6144: _ACEOF
6145:
6146: # Neutralize VPATH when `$srcdir' = `.'.
6147: # Shell code in configure.ac might set extrasub.
6148: # FIXME: do we really want to maintain this feature?
6149: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6150: ac_sed_extra="$ac_vpsub
6151: $extrasub
6152: _ACEOF
6153: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6154: :t
6155: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6156: s|@configure_input@|$ac_sed_conf_input|;t t
6157: s&@top_builddir@&$ac_top_builddir_sub&;t t
6158: s&@top_build_prefix@&$ac_top_build_prefix&;t t
6159: s&@srcdir@&$ac_srcdir&;t t
6160: s&@abs_srcdir@&$ac_abs_srcdir&;t t
6161: s&@top_srcdir@&$ac_top_srcdir&;t t
6162: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6163: s&@builddir@&$ac_builddir&;t t
6164: s&@abs_builddir@&$ac_abs_builddir&;t t
6165: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6166: s&@INSTALL@&$ac_INSTALL&;t t
6167: $ac_datarootdir_hack
6168: "
6169: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6170: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6171:
6172: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6173: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6174: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6175: "$ac_tmp/out"`; test -z "$ac_out"; } &&
6176: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6177: which seems to be undefined. Please make sure it is defined" >&5
6178: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6179: which seems to be undefined. Please make sure it is defined" >&2;}
6180:
6181: rm -f "$ac_tmp/stdin"
6182: case $ac_file in
6183: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6184: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6185: esac \
6186: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6187: ;;
6188: :H)
6189: #
6190: # CONFIG_HEADER
6191: #
6192: if test x"$ac_file" != x-; then
6193: {
6194: $as_echo "/* $configure_input */" \
6195: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6196: } >"$ac_tmp/config.h" \
6197: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6198: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6199: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6200: $as_echo "$as_me: $ac_file is unchanged" >&6;}
6201: else
6202: rm -f "$ac_file"
6203: mv "$ac_tmp/config.h" "$ac_file" \
6204: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6205: fi
6206: else
6207: $as_echo "/* $configure_input */" \
6208: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6209: || as_fn_error $? "could not create -" "$LINENO" 5
6210: fi
6211: ;;
6212:
6213:
6214: esac
6215:
6216: done # for ac_tag
6217:
6218:
6219: as_fn_exit 0
6220: _ACEOF
6221: ac_clean_files=$ac_clean_files_save
6222:
6223: test $ac_write_fail = 0 ||
6224: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6225:
6226:
6227: # configure is writing to config.log, and then calls config.status.
6228: # config.status does its own redirection, appending to config.log.
6229: # Unfortunately, on DOS this fails, as config.log is still kept open
6230: # by configure, so config.status won't be able to write to it; its
6231: # output is simply discarded. So we exec the FD to /dev/null,
6232: # effectively closing config.log, so it can be properly (re)opened and
6233: # appended to by config.status. When coming back to configure, we
6234: # need to make the FD available again.
6235: if test "$no_create" != yes; then
6236: ac_cs_success=:
6237: ac_config_status_args=
6238: test "$silent" = yes &&
6239: ac_config_status_args="$ac_config_status_args --quiet"
6240: exec 5>/dev/null
6241: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6242: exec 5>>config.log
6243: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6244: # would make configure fail if this is the last instruction.
6245: $ac_cs_success || as_fn_exit 1
6246: fi
6247: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6248: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6249: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6250: fi
6251:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>