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