|
|
1.1 root 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.12
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_default_prefix=
1.1.1.2 ! root 15: ac_help="$ac_help
! 16: Enable use of in-kernel debugger"
1.1 root 17:
18: # Initialize some variables set by options.
19: # The variables have the same names as the options, with
20: # dashes changed to underlines.
21: build=NONE
22: cache_file=./config.cache
23: exec_prefix=NONE
24: host=NONE
25: no_create=
26: nonopt=NONE
27: no_recursion=
28: prefix=NONE
29: program_prefix=NONE
30: program_suffix=NONE
31: program_transform_name=s,x,x,
32: silent=
33: site=
34: srcdir=
35: target=NONE
36: verbose=
37: x_includes=NONE
38: x_libraries=NONE
39: bindir='${exec_prefix}/bin'
40: sbindir='${exec_prefix}/sbin'
41: libexecdir='${exec_prefix}/libexec'
42: datadir='${prefix}/share'
43: sysconfdir='${prefix}/etc'
44: sharedstatedir='${prefix}/com'
45: localstatedir='${prefix}/var'
46: libdir='${exec_prefix}/lib'
47: includedir='${prefix}/include'
48: oldincludedir='/usr/include'
49: infodir='${prefix}/info'
50: mandir='${prefix}/man'
51:
52: # Initialize some other variables.
53: subdirs=
54: MFLAGS= MAKEFLAGS=
55: # Maximum number of lines to put in a shell here document.
56: ac_max_here_lines=12
57:
58: ac_prev=
59: for ac_option
60: do
61:
62: # If the previous option needs an argument, assign it.
63: if test -n "$ac_prev"; then
64: eval "$ac_prev=\$ac_option"
65: ac_prev=
66: continue
67: fi
68:
69: case "$ac_option" in
70: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71: *) ac_optarg= ;;
72: esac
73:
74: # Accept the important Cygnus configure options, so we can diagnose typos.
75:
76: case "$ac_option" in
77:
78: -bindir | --bindir | --bindi | --bind | --bin | --bi)
79: ac_prev=bindir ;;
80: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81: bindir="$ac_optarg" ;;
82:
83: -build | --build | --buil | --bui | --bu)
84: ac_prev=build ;;
85: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86: build="$ac_optarg" ;;
87:
88: -cache-file | --cache-file | --cache-fil | --cache-fi \
89: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90: ac_prev=cache_file ;;
91: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93: cache_file="$ac_optarg" ;;
94:
95: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96: ac_prev=datadir ;;
97: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98: | --da=*)
99: datadir="$ac_optarg" ;;
100:
101: -disable-* | --disable-*)
102: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103: # Reject names that are not valid shell variable names.
104: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106: fi
107: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108: eval "enable_${ac_feature}=no" ;;
109:
110: -enable-* | --enable-*)
111: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112: # Reject names that are not valid shell variable names.
113: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115: fi
116: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117: case "$ac_option" in
118: *=*) ;;
119: *) ac_optarg=yes ;;
120: esac
121: eval "enable_${ac_feature}='$ac_optarg'" ;;
122:
123: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125: | --exec | --exe | --ex)
126: ac_prev=exec_prefix ;;
127: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129: | --exec=* | --exe=* | --ex=*)
130: exec_prefix="$ac_optarg" ;;
131:
132: -gas | --gas | --ga | --g)
133: # Obsolete; use --with-gas.
134: with_gas=yes ;;
135:
136: -help | --help | --hel | --he)
137: # Omit some internal or obsolete options to make the list less imposing.
138: # This message is too long to be a string in the A/UX 3.1 sh.
139: cat << EOF
140: Usage: configure [options] [host]
141: Options: [defaults in brackets after descriptions]
142: Configuration:
143: --cache-file=FILE cache test results in FILE
144: --help print this message
145: --no-create do not create output files
146: --quiet, --silent do not print \`checking...' messages
147: --version print the version of autoconf that created configure
148: Directory and file names:
149: --prefix=PREFIX install architecture-independent files in PREFIX
150: [$ac_default_prefix]
151: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152: [same as prefix]
153: --bindir=DIR user executables in DIR [EPREFIX/bin]
154: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156: --datadir=DIR read-only architecture-independent data in DIR
157: [PREFIX/share]
158: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159: --sharedstatedir=DIR modifiable architecture-independent data in DIR
160: [PREFIX/com]
161: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163: --includedir=DIR C header files in DIR [PREFIX/include]
164: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165: --infodir=DIR info documentation in DIR [PREFIX/info]
166: --mandir=DIR man documentation in DIR [PREFIX/man]
167: --srcdir=DIR find the sources in DIR [configure dir or ..]
168: --program-prefix=PREFIX prepend PREFIX to installed program names
169: --program-suffix=SUFFIX append SUFFIX to installed program names
170: --program-transform-name=PROGRAM
171: run sed PROGRAM on installed program names
172: EOF
173: cat << EOF
174: Host type:
175: --build=BUILD configure for building on BUILD [BUILD=HOST]
176: --host=HOST configure for HOST [guessed]
177: --target=TARGET configure for TARGET [TARGET=HOST]
178: Features and packages:
179: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183: --x-includes=DIR X include files are in DIR
184: --x-libraries=DIR X library files are in DIR
185: EOF
186: if test -n "$ac_help"; then
187: echo "--enable and --with options recognized:$ac_help"
188: fi
189: exit 0 ;;
190:
191: -host | --host | --hos | --ho)
192: ac_prev=host ;;
193: -host=* | --host=* | --hos=* | --ho=*)
194: host="$ac_optarg" ;;
195:
196: -includedir | --includedir | --includedi | --included | --include \
197: | --includ | --inclu | --incl | --inc)
198: ac_prev=includedir ;;
199: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200: | --includ=* | --inclu=* | --incl=* | --inc=*)
201: includedir="$ac_optarg" ;;
202:
203: -infodir | --infodir | --infodi | --infod | --info | --inf)
204: ac_prev=infodir ;;
205: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206: infodir="$ac_optarg" ;;
207:
208: -libdir | --libdir | --libdi | --libd)
209: ac_prev=libdir ;;
210: -libdir=* | --libdir=* | --libdi=* | --libd=*)
211: libdir="$ac_optarg" ;;
212:
213: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214: | --libexe | --libex | --libe)
215: ac_prev=libexecdir ;;
216: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217: | --libexe=* | --libex=* | --libe=*)
218: libexecdir="$ac_optarg" ;;
219:
220: -localstatedir | --localstatedir | --localstatedi | --localstated \
221: | --localstate | --localstat | --localsta | --localst \
222: | --locals | --local | --loca | --loc | --lo)
223: ac_prev=localstatedir ;;
224: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227: localstatedir="$ac_optarg" ;;
228:
229: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230: ac_prev=mandir ;;
231: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232: mandir="$ac_optarg" ;;
233:
234: -nfp | --nfp | --nf)
235: # Obsolete; use --without-fp.
236: with_fp=no ;;
237:
238: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239: | --no-cr | --no-c)
240: no_create=yes ;;
241:
242: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244: no_recursion=yes ;;
245:
246: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248: | --oldin | --oldi | --old | --ol | --o)
249: ac_prev=oldincludedir ;;
250: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253: oldincludedir="$ac_optarg" ;;
254:
255: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256: ac_prev=prefix ;;
257: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258: prefix="$ac_optarg" ;;
259:
260: -program-prefix | --program-prefix | --program-prefi | --program-pref \
261: | --program-pre | --program-pr | --program-p)
262: ac_prev=program_prefix ;;
263: -program-prefix=* | --program-prefix=* | --program-prefi=* \
264: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265: program_prefix="$ac_optarg" ;;
266:
267: -program-suffix | --program-suffix | --program-suffi | --program-suff \
268: | --program-suf | --program-su | --program-s)
269: ac_prev=program_suffix ;;
270: -program-suffix=* | --program-suffix=* | --program-suffi=* \
271: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272: program_suffix="$ac_optarg" ;;
273:
274: -program-transform-name | --program-transform-name \
275: | --program-transform-nam | --program-transform-na \
276: | --program-transform-n | --program-transform- \
277: | --program-transform | --program-transfor \
278: | --program-transfo | --program-transf \
279: | --program-trans | --program-tran \
280: | --progr-tra | --program-tr | --program-t)
281: ac_prev=program_transform_name ;;
282: -program-transform-name=* | --program-transform-name=* \
283: | --program-transform-nam=* | --program-transform-na=* \
284: | --program-transform-n=* | --program-transform-=* \
285: | --program-transform=* | --program-transfor=* \
286: | --program-transfo=* | --program-transf=* \
287: | --program-trans=* | --program-tran=* \
288: | --progr-tra=* | --program-tr=* | --program-t=*)
289: program_transform_name="$ac_optarg" ;;
290:
291: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292: | -silent | --silent | --silen | --sile | --sil)
293: silent=yes ;;
294:
295: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296: ac_prev=sbindir ;;
297: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298: | --sbi=* | --sb=*)
299: sbindir="$ac_optarg" ;;
300:
301: -sharedstatedir | --sharedstatedir | --sharedstatedi \
302: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303: | --sharedst | --shareds | --shared | --share | --shar \
304: | --sha | --sh)
305: ac_prev=sharedstatedir ;;
306: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309: | --sha=* | --sh=*)
310: sharedstatedir="$ac_optarg" ;;
311:
312: -site | --site | --sit)
313: ac_prev=site ;;
314: -site=* | --site=* | --sit=*)
315: site="$ac_optarg" ;;
316:
317: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318: ac_prev=srcdir ;;
319: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320: srcdir="$ac_optarg" ;;
321:
322: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323: | --syscon | --sysco | --sysc | --sys | --sy)
324: ac_prev=sysconfdir ;;
325: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327: sysconfdir="$ac_optarg" ;;
328:
329: -target | --target | --targe | --targ | --tar | --ta | --t)
330: ac_prev=target ;;
331: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332: target="$ac_optarg" ;;
333:
334: -v | -verbose | --verbose | --verbos | --verbo | --verb)
335: verbose=yes ;;
336:
337: -version | --version | --versio | --versi | --vers)
338: echo "configure generated by autoconf version 2.12"
339: exit 0 ;;
340:
341: -with-* | --with-*)
342: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343: # Reject names that are not valid shell variable names.
344: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346: fi
347: ac_package=`echo $ac_package| sed 's/-/_/g'`
348: case "$ac_option" in
349: *=*) ;;
350: *) ac_optarg=yes ;;
351: esac
352: eval "with_${ac_package}='$ac_optarg'" ;;
353:
354: -without-* | --without-*)
355: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356: # Reject names that are not valid shell variable names.
357: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359: fi
360: ac_package=`echo $ac_package| sed 's/-/_/g'`
361: eval "with_${ac_package}=no" ;;
362:
363: --x)
364: # Obsolete; use --with-x.
365: with_x=yes ;;
366:
367: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368: | --x-incl | --x-inc | --x-in | --x-i)
369: ac_prev=x_includes ;;
370: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372: x_includes="$ac_optarg" ;;
373:
374: -x-libraries | --x-libraries | --x-librarie | --x-librari \
375: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376: ac_prev=x_libraries ;;
377: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379: x_libraries="$ac_optarg" ;;
380:
381: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382: ;;
383:
384: *)
385: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386: echo "configure: warning: $ac_option: invalid host type" 1>&2
387: fi
388: if test "x$nonopt" != xNONE; then
389: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390: fi
391: nonopt="$ac_option"
392: ;;
393:
394: esac
395: done
396:
397: if test -n "$ac_prev"; then
398: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399: fi
400:
401: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402:
403: # File descriptor usage:
404: # 0 standard input
405: # 1 file creation
406: # 2 errors and warnings
407: # 3 some systems may open it to /dev/tty
408: # 4 used on the Kubota Titan
409: # 6 checking for... messages and results
410: # 5 compiler messages saved in config.log
411: if test "$silent" = yes; then
412: exec 6>/dev/null
413: else
414: exec 6>&1
415: fi
416: exec 5>./config.log
417:
418: echo "\
419: This file contains any messages produced by compilers while
420: running configure, to aid debugging if configure makes a mistake.
421: " 1>&5
422:
423: # Strip out --no-create and --no-recursion so they do not pile up.
424: # Also quote any args containing shell metacharacters.
425: ac_configure_args=
426: for ac_arg
427: do
428: case "$ac_arg" in
429: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430: | --no-cr | --no-c) ;;
431: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436: esac
437: done
438:
439: # NLS nuisances.
440: # Only set these to C if already set. These must not be set unconditionally
441: # because not all systems understand e.g. LANG=C (notably SCO).
442: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443: # Non-C LC_CTYPE values break the ctype check.
444: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448:
449: # confdefs.h avoids OS command line length limits that DEFS can exceed.
450: rm -rf conftest* confdefs.h
451: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452: echo > confdefs.h
453:
454: # A filename unique to this package, relative to the directory that
455: # configure is in, which we can look for to find out if srcdir is correct.
456: ac_unique_file=kern/ipc_kobject.c
457:
458: # Find the source files, if location was not specified.
459: if test -z "$srcdir"; then
460: ac_srcdir_defaulted=yes
461: # Try the directory containing this script, then its parent.
462: ac_prog=$0
463: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465: srcdir=$ac_confdir
466: if test ! -r $srcdir/$ac_unique_file; then
467: srcdir=..
468: fi
469: else
470: ac_srcdir_defaulted=no
471: fi
472: if test ! -r $srcdir/$ac_unique_file; then
473: if test "$ac_srcdir_defaulted" = yes; then
474: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475: else
476: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477: fi
478: fi
479: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480:
481: # Prefer explicitly selected file to automatically selected ones.
482: if test -z "$CONFIG_SITE"; then
483: if test "x$prefix" != xNONE; then
484: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485: else
486: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487: fi
488: fi
489: for ac_site_file in $CONFIG_SITE; do
490: if test -r "$ac_site_file"; then
491: echo "loading site script $ac_site_file"
492: . "$ac_site_file"
493: fi
494: done
495:
496: if test -r "$cache_file"; then
497: echo "loading cache $cache_file"
498: . $cache_file
499: else
500: echo "creating cache $cache_file"
501: > $cache_file
502: fi
503:
504: ac_ext=c
505: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506: ac_cpp='$CPP $CPPFLAGS'
507: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509: cross_compiling=$ac_cv_prog_cc_cross
510:
511: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512: # Stardent Vistra SVR4 grep lacks -e, says [email protected].
513: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514: ac_n= ac_c='
515: ' ac_t=' '
516: else
517: ac_n=-n ac_c= ac_t=
518: fi
519: else
520: ac_n= ac_c='\c' ac_t=
521: fi
522:
523:
524:
1.1.1.2 ! root 525:
1.1 root 526: #
527: # Deduce output var `systype' from configuration parms.
528: #
529: ac_aux_dir=
530: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
531: if test -f $ac_dir/install-sh; then
532: ac_aux_dir=$ac_dir
533: ac_install_sh="$ac_aux_dir/install-sh -c"
534: break
535: elif test -f $ac_dir/install.sh; then
536: ac_aux_dir=$ac_dir
537: ac_install_sh="$ac_aux_dir/install.sh -c"
538: break
539: fi
540: done
541: if test -z "$ac_aux_dir"; then
542: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
543: fi
544: ac_config_guess=$ac_aux_dir/config.guess
545: ac_config_sub=$ac_aux_dir/config.sub
546: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
547:
548:
549: # Make sure we can run config.sub.
550: if $ac_config_sub sun4 >/dev/null 2>&1; then :
551: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
552: fi
553:
554: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.1.1.2 ! root 555: echo "configure:556: checking host system type" >&5
1.1 root 556:
557: host_alias=$host
558: case "$host_alias" in
559: NONE)
560: case $nonopt in
561: NONE)
562: if host_alias=`$ac_config_guess`; then :
563: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
564: fi ;;
565: *) host_alias=$nonopt ;;
566: esac ;;
567: esac
568:
569: host=`$ac_config_sub $host_alias`
570: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
571: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
572: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
573: echo "$ac_t""$host" 1>&6
574:
575:
576: case "$host_cpu" in
1.1.1.2 ! root 577: i[3456]86) systype=i386 ;;
1.1 root 578: *) { echo "configure: error: unsupported CPU type" 1>&2; exit 1; } ;;
579: esac
580:
1.1.1.2 ! root 581: case "$host_os" in
! 582: gnu*) ;;
! 583: *) { echo "configure: error: sorry, this is the gnu os, not $host_os" 1>&2; exit 1; } ;;
! 584: esac
! 585:
1.1 root 586:
587:
588:
589: # Default prefix is / for the kernel.
590:
591:
592: #
1.1.1.2 ! root 593: # Options
! 594: #
! 595: # Check whether --enable-kdb or --disable-kdb was given.
! 596: if test "${enable_kdb+set}" = set; then
! 597: enableval="$enable_kdb"
! 598: cat >> confdefs.h <<\EOF
! 599: #define MACH_KDB 1
! 600: EOF
! 601:
! 602: fi
! 603:
! 604:
! 605: #
1.1 root 606: # Programs
607: #
608: # Extract the first word of "gcc", so it can be a program name with args.
609: set dummy gcc; ac_word=$2
610: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.2 ! root 611: echo "configure:612: checking for $ac_word" >&5
1.1 root 612: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
613: echo $ac_n "(cached) $ac_c" 1>&6
614: else
615: if test -n "$CC"; then
616: ac_cv_prog_CC="$CC" # Let the user override the test.
617: else
618: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
619: for ac_dir in $PATH; do
620: test -z "$ac_dir" && ac_dir=.
621: if test -f $ac_dir/$ac_word; then
622: ac_cv_prog_CC="gcc"
623: break
624: fi
625: done
626: IFS="$ac_save_ifs"
627: fi
628: fi
629: CC="$ac_cv_prog_CC"
630: if test -n "$CC"; then
631: echo "$ac_t""$CC" 1>&6
632: else
633: echo "$ac_t""no" 1>&6
634: fi
635:
636: if test -z "$CC"; then
637: # Extract the first word of "cc", so it can be a program name with args.
638: set dummy cc; ac_word=$2
639: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.2 ! root 640: echo "configure:641: checking for $ac_word" >&5
1.1 root 641: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
642: echo $ac_n "(cached) $ac_c" 1>&6
643: else
644: if test -n "$CC"; then
645: ac_cv_prog_CC="$CC" # Let the user override the test.
646: else
647: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
648: ac_prog_rejected=no
649: for ac_dir in $PATH; do
650: test -z "$ac_dir" && ac_dir=.
651: if test -f $ac_dir/$ac_word; then
652: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
653: ac_prog_rejected=yes
654: continue
655: fi
656: ac_cv_prog_CC="cc"
657: break
658: fi
659: done
660: IFS="$ac_save_ifs"
661: if test $ac_prog_rejected = yes; then
662: # We found a bogon in the path, so make sure we never use it.
663: set dummy $ac_cv_prog_CC
664: shift
665: if test $# -gt 0; then
666: # We chose a different compiler from the bogus one.
667: # However, it has the same basename, so the bogon will be chosen
668: # first if we set CC to just the basename; use the full file name.
669: shift
670: set dummy "$ac_dir/$ac_word" "$@"
671: shift
672: ac_cv_prog_CC="$@"
673: fi
674: fi
675: fi
676: fi
677: CC="$ac_cv_prog_CC"
678: if test -n "$CC"; then
679: echo "$ac_t""$CC" 1>&6
680: else
681: echo "$ac_t""no" 1>&6
682: fi
683:
684: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
685: fi
686:
687: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.1.1.2 ! root 688: echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 root 689:
690: ac_ext=c
691: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
692: ac_cpp='$CPP $CPPFLAGS'
693: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
694: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
695: cross_compiling=$ac_cv_prog_cc_cross
696:
697: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 698: #line 699 "configure"
1.1 root 699: #include "confdefs.h"
700: main(){return(0);}
701: EOF
1.1.1.2 ! root 702: if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 703: ac_cv_prog_cc_works=yes
704: # If we can't run a trivial program, we are probably using a cross compiler.
705: if (./conftest; exit) 2>/dev/null; then
706: ac_cv_prog_cc_cross=no
707: else
708: ac_cv_prog_cc_cross=yes
709: fi
710: else
711: echo "configure: failed program was:" >&5
712: cat conftest.$ac_ext >&5
713: ac_cv_prog_cc_works=no
714: fi
715: rm -fr conftest*
716:
717: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
718: if test $ac_cv_prog_cc_works = no; then
1.1.1.2 ! root 719: cross_linkable=no
! 720: ac_cv_prog_cc_cross=yes
! 721: # AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
! 722: else
! 723: cross_linkable=yes
1.1 root 724: fi
725: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.1.1.2 ! root 726: echo "configure:727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 root 727: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1.1.1.2 ! root 728:
1.1 root 729: cross_compiling=$ac_cv_prog_cc_cross
730:
731: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.2 ! root 732: echo "configure:733: checking whether we are using GNU C" >&5
1.1 root 733: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
734: echo $ac_n "(cached) $ac_c" 1>&6
735: else
736: cat > conftest.c <<EOF
737: #ifdef __GNUC__
738: yes;
739: #endif
740: EOF
1.1.1.2 ! root 741: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 root 742: ac_cv_prog_gcc=yes
743: else
744: ac_cv_prog_gcc=no
745: fi
746: fi
747:
748: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
749:
750: if test $ac_cv_prog_gcc = yes; then
751: GCC=yes
752: ac_test_CFLAGS="${CFLAGS+set}"
753: ac_save_CFLAGS="$CFLAGS"
754: CFLAGS=
755: if test "$ac_test_CFLAGS" = set; then
756: CFLAGS="$ac_save_CFLAGS"
757: else
1.1.1.2 ! root 758: # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
! 759: # that results from __OPTIMIZE__ being defined for CC but not CPP.
! 760: if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
! 761: : # already optimizing
! 762: else
! 763: CC="$CC -O"
! 764: ac_cv_prog_CC="$CC"
! 765: fi
1.1 root 766: fi
767: else
768: GCC=
769: fi
770:
771: for ac_prog in mawk gawk nawk awk
772: do
773: # Extract the first word of "$ac_prog", so it can be a program name with args.
774: set dummy $ac_prog; ac_word=$2
775: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.2 ! root 776: echo "configure:777: checking for $ac_word" >&5
1.1 root 777: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
778: echo $ac_n "(cached) $ac_c" 1>&6
779: else
780: if test -n "$AWK"; then
781: ac_cv_prog_AWK="$AWK" # Let the user override the test.
782: else
783: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
784: for ac_dir in $PATH; do
785: test -z "$ac_dir" && ac_dir=.
786: if test -f $ac_dir/$ac_word; then
787: ac_cv_prog_AWK="$ac_prog"
788: break
789: fi
790: done
791: IFS="$ac_save_ifs"
792: fi
793: fi
794: AWK="$ac_cv_prog_AWK"
795: if test -n "$AWK"; then
796: echo "$ac_t""$AWK" 1>&6
797: else
798: echo "$ac_t""no" 1>&6
799: fi
800:
801: test -n "$AWK" && break
802: done
803:
804: # Find a good install program. We prefer a C program (faster),
805: # so one script is as good as another. But avoid the broken or
806: # incompatible versions:
807: # SysV /etc/install, /usr/sbin/install
808: # SunOS /usr/etc/install
809: # IRIX /sbin/install
810: # AIX /bin/install
811: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
812: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
813: # ./install, which can be erroneously created by make from ./install.sh.
814: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.1.1.2 ! root 815: echo "configure:816: checking for a BSD compatible install" >&5
1.1 root 816: if test -z "$INSTALL"; then
817: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
818: echo $ac_n "(cached) $ac_c" 1>&6
819: else
820: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
821: for ac_dir in $PATH; do
822: # Account for people who put trailing slashes in PATH elements.
823: case "$ac_dir/" in
824: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
825: *)
826: # OSF1 and SCO ODT 3.0 have their own names for install.
827: for ac_prog in ginstall installbsd scoinst install; do
828: if test -f $ac_dir/$ac_prog; then
829: if test $ac_prog = install &&
830: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
831: # AIX install. It has an incompatible calling convention.
832: # OSF/1 installbsd also uses dspmsg, but is usable.
833: :
834: else
835: ac_cv_path_install="$ac_dir/$ac_prog -c"
836: break 2
837: fi
838: fi
839: done
840: ;;
841: esac
842: done
843: IFS="$ac_save_IFS"
844:
845: fi
846: if test "${ac_cv_path_install+set}" = set; then
847: INSTALL="$ac_cv_path_install"
848: else
849: # As a last resort, use the slow shell script. We don't cache a
850: # path for INSTALL within a source directory, because that will
851: # break other packages using the cache if that directory is
852: # removed, or if the path is relative.
853: INSTALL="$ac_install_sh"
854: fi
855: fi
856: echo "$ac_t""$INSTALL" 1>&6
857:
858: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
859: # It thinks the first close brace ends the variable substitution.
860: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
861:
862: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
863:
1.1.1.2 ! root 864: echo $ac_n "checking build system type""... $ac_c" 1>&6
! 865: echo "configure:866: checking build system type" >&5
! 866:
! 867: build_alias=$build
! 868: case "$build_alias" in
! 869: NONE)
! 870: case $nonopt in
! 871: NONE) build_alias=$host_alias ;;
! 872: *) build_alias=$nonopt ;;
! 873: esac ;;
! 874: esac
! 875:
! 876: build=`$ac_config_sub $build_alias`
! 877: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 878: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 879: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 880: echo "$ac_t""$build" 1>&6
! 881:
! 882: if test $host != $build; then
! 883: ac_tool_prefix=${host_alias}-
! 884: else
! 885: ac_tool_prefix=
! 886: fi
! 887:
! 888: # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
! 889: set dummy ${ac_tool_prefix}mig; ac_word=$2
! 890: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 891: echo "configure:892: checking for $ac_word" >&5
! 892: if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
! 893: echo $ac_n "(cached) $ac_c" 1>&6
! 894: else
! 895: if test -n "$MIG"; then
! 896: ac_cv_prog_MIG="$MIG" # Let the user override the test.
! 897: else
! 898: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 899: for ac_dir in $PATH; do
! 900: test -z "$ac_dir" && ac_dir=.
! 901: if test -f $ac_dir/$ac_word; then
! 902: ac_cv_prog_MIG="${ac_tool_prefix}mig"
! 903: break
! 904: fi
! 905: done
! 906: IFS="$ac_save_ifs"
! 907: fi
! 908: fi
! 909: MIG="$ac_cv_prog_MIG"
! 910: if test -n "$MIG"; then
! 911: echo "$ac_t""$MIG" 1>&6
! 912: else
! 913: echo "$ac_t""no" 1>&6
! 914: fi
! 915:
! 916:
! 917: if test -z "$ac_cv_prog_MIG"; then
! 918: if test -n "$ac_tool_prefix"; then
! 919: # Extract the first word of "mig", so it can be a program name with args.
! 920: set dummy mig; ac_word=$2
! 921: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 922: echo "configure:923: checking for $ac_word" >&5
! 923: if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
! 924: echo $ac_n "(cached) $ac_c" 1>&6
! 925: else
! 926: if test -n "$MIG"; then
! 927: ac_cv_prog_MIG="$MIG" # Let the user override the test.
! 928: else
! 929: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 930: for ac_dir in $PATH; do
! 931: test -z "$ac_dir" && ac_dir=.
! 932: if test -f $ac_dir/$ac_word; then
! 933: ac_cv_prog_MIG="mig"
! 934: break
! 935: fi
! 936: done
! 937: IFS="$ac_save_ifs"
! 938: test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
! 939: fi
! 940: fi
! 941: MIG="$ac_cv_prog_MIG"
! 942: if test -n "$MIG"; then
! 943: echo "$ac_t""$MIG" 1>&6
! 944: else
! 945: echo "$ac_t""no" 1>&6
! 946: fi
! 947:
! 948: else
! 949: MIG="mig"
! 950: fi
! 951: fi
! 952:
! 953:
! 954: if test $cross_compiling = yes; then
! 955: for ac_prog in gcc cc
! 956: do
! 957: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 958: set dummy $ac_prog; ac_word=$2
! 959: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 960: echo "configure:961: checking for $ac_word" >&5
! 961: if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
! 962: echo $ac_n "(cached) $ac_c" 1>&6
! 963: else
! 964: if test -n "$BUILD_CC"; then
! 965: ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
! 966: else
! 967: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 968: for ac_dir in $PATH; do
! 969: test -z "$ac_dir" && ac_dir=.
! 970: if test -f $ac_dir/$ac_word; then
! 971: ac_cv_prog_BUILD_CC="$ac_prog"
! 972: break
! 973: fi
! 974: done
! 975: IFS="$ac_save_ifs"
! 976: fi
! 977: fi
! 978: BUILD_CC="$ac_cv_prog_BUILD_CC"
! 979: if test -n "$BUILD_CC"; then
! 980: echo "$ac_t""$BUILD_CC" 1>&6
! 981: else
! 982: echo "$ac_t""no" 1>&6
! 983: fi
! 984:
! 985: test -n "$BUILD_CC" && break
! 986: done
! 987:
! 988: CC=$BUILD_CC
! 989: fi
! 990:
1.1 root 991: # Extract the first word of "flex", so it can be a program name with args.
992: set dummy flex; ac_word=$2
993: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.2 ! root 994: echo "configure:995: checking for $ac_word" >&5
1.1 root 995: if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
996: echo $ac_n "(cached) $ac_c" 1>&6
997: else
998: if test -n "$LEX"; then
999: ac_cv_prog_LEX="$LEX" # Let the user override the test.
1000: else
1001: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1002: for ac_dir in $PATH; do
1003: test -z "$ac_dir" && ac_dir=.
1004: if test -f $ac_dir/$ac_word; then
1005: ac_cv_prog_LEX="flex"
1006: break
1007: fi
1008: done
1009: IFS="$ac_save_ifs"
1010: test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1011: fi
1012: fi
1013: LEX="$ac_cv_prog_LEX"
1014: if test -n "$LEX"; then
1015: echo "$ac_t""$LEX" 1>&6
1016: else
1017: echo "$ac_t""no" 1>&6
1018: fi
1019:
1020: if test -z "$LEXLIB"
1021: then
1022: case "$LEX" in
1023: flex*) ac_lib=fl ;;
1024: *) ac_lib=l ;;
1025: esac
1026: echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1.1.1.2 ! root 1027: echo "configure:1028: checking for yywrap in -l$ac_lib" >&5
1.1 root 1028: ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1029: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1030: echo $ac_n "(cached) $ac_c" 1>&6
1031: else
1032: ac_save_LIBS="$LIBS"
1033: LIBS="-l$ac_lib $LIBS"
1034: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1035: #line 1036 "configure"
1.1 root 1036: #include "confdefs.h"
1037: /* Override any gcc2 internal prototype to avoid an error. */
1038: /* We use char because int might match the return type of a gcc2
1039: builtin and then its argument prototype would still apply. */
1040: char yywrap();
1041:
1042: int main() {
1043: yywrap()
1044: ; return 0; }
1045: EOF
1.1.1.2 ! root 1046: if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1047: rm -rf conftest*
1048: eval "ac_cv_lib_$ac_lib_var=yes"
1049: else
1050: echo "configure: failed program was:" >&5
1051: cat conftest.$ac_ext >&5
1052: rm -rf conftest*
1053: eval "ac_cv_lib_$ac_lib_var=no"
1054: fi
1055: rm -f conftest*
1056: LIBS="$ac_save_LIBS"
1057:
1058: fi
1059: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1060: echo "$ac_t""yes" 1>&6
1061: LEXLIB="-l$ac_lib"
1062: else
1063: echo "$ac_t""no" 1>&6
1064: fi
1065:
1066: fi
1067:
1068: for ac_prog in 'bison -y' byacc
1069: do
1070: # Extract the first word of "$ac_prog", so it can be a program name with args.
1071: set dummy $ac_prog; ac_word=$2
1072: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.2 ! root 1073: echo "configure:1074: checking for $ac_word" >&5
1.1 root 1074: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1075: echo $ac_n "(cached) $ac_c" 1>&6
1076: else
1077: if test -n "$YACC"; then
1078: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1079: else
1080: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1081: for ac_dir in $PATH; do
1082: test -z "$ac_dir" && ac_dir=.
1083: if test -f $ac_dir/$ac_word; then
1084: ac_cv_prog_YACC="$ac_prog"
1085: break
1086: fi
1087: done
1088: IFS="$ac_save_ifs"
1089: fi
1090: fi
1091: YACC="$ac_cv_prog_YACC"
1092: if test -n "$YACC"; then
1093: echo "$ac_t""$YACC" 1>&6
1094: else
1095: echo "$ac_t""no" 1>&6
1096: fi
1097:
1098: test -n "$YACC" && break
1099: done
1100: test -n "$YACC" || YACC="yacc"
1101:
1102:
1.1.1.2 ! root 1103: if test $cross_compiling = yes ; then
! 1104: CC=$ac_cv_prog_CC
1.1 root 1105: fi
1106:
1.1.1.2 ! root 1107:
! 1108: usable_libc='yes'
! 1109: needed_funcs='memcpy memset bcopy bzero htonl ntohl ntohs'
! 1110: for ac_func in $needed_funcs
! 1111: do
! 1112: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 1113: echo "configure:1114: checking for $ac_func" >&5
! 1114: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 root 1115: echo $ac_n "(cached) $ac_c" 1>&6
1116: else
1.1.1.2 ! root 1117: cat > conftest.$ac_ext <<EOF
! 1118: #line 1119 "configure"
! 1119: #include "confdefs.h"
! 1120: /* System header to define __stub macros and hopefully few prototypes,
! 1121: which can conflict with char $ac_func(); below. */
! 1122: #include <assert.h>
! 1123: /* Override any gcc2 internal prototype to avoid an error. */
! 1124: /* We use char because int might match the return type of a gcc2
! 1125: builtin and then its argument prototype would still apply. */
! 1126: char $ac_func();
1.1 root 1127:
1.1.1.2 ! root 1128: int main() {
1.1 root 1129:
1.1.1.2 ! root 1130: /* The GNU C library defines this for functions which it implements
! 1131: to always fail with ENOSYS. Some functions are actually named
! 1132: something starting with __ and the normal name is an alias. */
! 1133: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 1134: choke me
! 1135: #else
! 1136: $ac_func();
! 1137: #endif
! 1138:
! 1139: ; return 0; }
! 1140: EOF
! 1141: if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1142: rm -rf conftest*
! 1143: eval "ac_cv_func_$ac_func=yes"
1.1 root 1144: else
1.1.1.2 ! root 1145: echo "configure: failed program was:" >&5
! 1146: cat conftest.$ac_ext >&5
! 1147: rm -rf conftest*
! 1148: eval "ac_cv_func_$ac_func=no"
1.1 root 1149: fi
1.1.1.2 ! root 1150: rm -f conftest*
1.1 root 1151: fi
1.1.1.2 ! root 1152:
! 1153: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 1154: echo "$ac_t""yes" 1>&6
! 1155: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 1156: cat >> confdefs.h <<EOF
! 1157: #define $ac_tr_func 1
! 1158: EOF
! 1159:
1.1 root 1160: else
1161: echo "$ac_t""no" 1>&6
1.1.1.2 ! root 1162: usable_libc=no
1.1 root 1163: fi
1.1.1.2 ! root 1164: done
1.1 root 1165:
1.1.1.2 ! root 1166: if test $usable_libc = no ; then
! 1167: echo "Support functions not found using $CC, trying $BUILD_CC."
! 1168: CC="$BUILD_CC"
! 1169: for i in $needed_funcs ; do
! 1170: unset ac_cv_func_$i
! 1171: done
! 1172: usable_libc=yes
! 1173: for ac_func in $needed_funcs
! 1174: do
! 1175: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 1176: echo "configure:1177: checking for $ac_func" >&5
! 1177: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 1178: echo $ac_n "(cached) $ac_c" 1>&6
1.1 root 1179: else
1.1.1.2 ! root 1180: cat > conftest.$ac_ext <<EOF
! 1181: #line 1182 "configure"
! 1182: #include "confdefs.h"
! 1183: /* System header to define __stub macros and hopefully few prototypes,
! 1184: which can conflict with char $ac_func(); below. */
! 1185: #include <assert.h>
! 1186: /* Override any gcc2 internal prototype to avoid an error. */
! 1187: /* We use char because int might match the return type of a gcc2
! 1188: builtin and then its argument prototype would still apply. */
! 1189: char $ac_func();
1.1 root 1190:
1.1.1.2 ! root 1191: int main() {
1.1 root 1192:
1.1.1.2 ! root 1193: /* The GNU C library defines this for functions which it implements
! 1194: to always fail with ENOSYS. Some functions are actually named
! 1195: something starting with __ and the normal name is an alias. */
! 1196: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 1197: choke me
! 1198: #else
! 1199: $ac_func();
! 1200: #endif
! 1201:
! 1202: ; return 0; }
! 1203: EOF
! 1204: if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1205: rm -rf conftest*
! 1206: eval "ac_cv_func_$ac_func=yes"
1.1 root 1207: else
1.1.1.2 ! root 1208: echo "configure: failed program was:" >&5
! 1209: cat conftest.$ac_ext >&5
! 1210: rm -rf conftest*
! 1211: eval "ac_cv_func_$ac_func=no"
1.1 root 1212: fi
1.1.1.2 ! root 1213: rm -f conftest*
1.1 root 1214: fi
1.1.1.2 ! root 1215:
! 1216: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 1217: echo "$ac_t""yes" 1>&6
! 1218: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 1219: cat >> confdefs.h <<EOF
! 1220: #define $ac_tr_func 1
! 1221: EOF
! 1222:
1.1 root 1223: else
1224: echo "$ac_t""no" 1>&6
1.1.1.2 ! root 1225: usable_libc=no
1.1 root 1226: fi
1.1.1.2 ! root 1227: done
1.1 root 1228:
1.1.1.2 ! root 1229: if test $usable_libc = no ; then
! 1230: echo "Configuration problem:" 1>&2
! 1231: echo "Please set installed-clib in the toplevel Makefile so the functions:"
! 1232: echo "$needed_funcs are available."
! 1233: exit 1
! 1234: else
! 1235:
! 1236: set -- `$BUILD_CC -v 2>&1 | sed -n 's/.*from \(.*\)\/lib\/gcc-lib\/\([^/][^/]*\).*/\1 \2/p'`
! 1237:
! 1238: if test -f "$1/$2/lib/libc.a" ; then
! 1239: installed_clib=$1/$2/lib/libc.a
! 1240: else
! 1241: installed_clib=$1/lib/libc.a
! 1242: fi
! 1243: fi
! 1244: CC=$ac_cv_prog_CC
! 1245: else
! 1246: installed_clib=$prefix/lib/libcrt.a
1.1 root 1247: fi
1248:
1.1.1.2 ! root 1249:
1.1 root 1250: # Set up `machine' link in build directory for easier header file location.
1251:
1252:
1253: # Do machine-specific configuration last so that it can override anything
1254: # set above if necessary.
1255:
1256: subdirs="$systype"
1257:
1258:
1259: trap '' 1 2 15
1260: cat > confcache <<\EOF
1261: # This file is a shell script that caches the results of configure
1262: # tests run on this system so they can be shared between configure
1263: # scripts and configure runs. It is not useful on other systems.
1264: # If it contains results you don't want to keep, you may remove or edit it.
1265: #
1266: # By default, configure uses ./config.cache as the cache file,
1267: # creating it if it does not exist already. You can give configure
1268: # the --cache-file=FILE option to use a different cache file; that is
1269: # what configure does when it calls configure scripts in
1270: # subdirectories, so they share the cache.
1271: # Giving --cache-file=/dev/null disables caching, for debugging configure.
1272: # config.status only pays attention to the cache file if you give it the
1273: # --recheck option to rerun configure.
1274: #
1275: EOF
1276: # The following way of writing the cache mishandles newlines in values,
1277: # but we know of no workaround that is simple, portable, and efficient.
1278: # So, don't put newlines in cache variables' values.
1279: # Ultrix sh set writes to stderr and can't be redirected directly,
1280: # and sets the high bit in the cache file unless we assign to the vars.
1281: (set) 2>&1 |
1282: case `(ac_space=' '; set | grep ac_space) 2>&1` in
1283: *ac_space=\ *)
1284: # `set' does not quote correctly, so add quotes (double-quote substitution
1285: # turns \\\\ into \\, and sed turns \\ into \).
1286: sed -n \
1287: -e "s/'/'\\\\''/g" \
1288: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1289: ;;
1290: *)
1291: # `set' quotes correctly as required by POSIX, so do not add quotes.
1292: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1293: ;;
1294: esac >> confcache
1295: if cmp -s $cache_file confcache; then
1296: :
1297: else
1298: if test -w $cache_file; then
1299: echo "updating cache $cache_file"
1300: cat confcache > $cache_file
1301: else
1302: echo "not updating unwritable cache $cache_file"
1303: fi
1304: fi
1305: rm -f confcache
1306:
1307: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1308:
1309: test "x$prefix" = xNONE && prefix=$ac_default_prefix
1310: # Let make expand exec_prefix.
1311: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1312:
1313: # Any assignment to VPATH causes Sun make to only execute
1314: # the first set of double-colon rules, so remove it if not needed.
1315: # If there is a colon in the path, we need to keep it.
1316: if test "x$srcdir" = x.; then
1317: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1318: fi
1319:
1320: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1321:
1322: # Transform confdefs.h into DEFS.
1323: # Protect against shell expansion while executing Makefile rules.
1324: # Protect against Makefile macro expansion.
1325: cat > conftest.defs <<\EOF
1326: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1327: s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1328: s%\[%\\&%g
1329: s%\]%\\&%g
1330: s%\$%$$%g
1331: EOF
1332: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1333: rm -f conftest.defs
1334:
1335:
1336: # Without the "./", some shells look in PATH for config.status.
1337: : ${CONFIG_STATUS=./config.status}
1338:
1339: echo creating $CONFIG_STATUS
1340: rm -f $CONFIG_STATUS
1341: cat > $CONFIG_STATUS <<EOF
1342: #! /bin/sh
1343: # Generated automatically by configure.
1344: # Run this file to recreate the current configuration.
1345: # This directory was configured as follows,
1346: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1347: #
1348: # $0 $ac_configure_args
1349: #
1350: # Compiler output produced by configure, useful for debugging
1351: # configure, is in ./config.log if it exists.
1352:
1353: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1354: for ac_option
1355: do
1356: case "\$ac_option" in
1357: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1358: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1359: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1360: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1361: echo "$CONFIG_STATUS generated by autoconf version 2.12"
1362: exit 0 ;;
1363: -help | --help | --hel | --he | --h)
1364: echo "\$ac_cs_usage"; exit 0 ;;
1365: *) echo "\$ac_cs_usage"; exit 1 ;;
1366: esac
1367: done
1368:
1369: ac_given_srcdir=$srcdir
1370: ac_given_INSTALL="$INSTALL"
1371:
1372: trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1373: EOF
1374: cat >> $CONFIG_STATUS <<EOF
1375:
1376: # Protect against being on the right side of a sed subst in config.status.
1377: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1378: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1379: $ac_vpsub
1380: $extrasub
1381: s%@CFLAGS@%$CFLAGS%g
1382: s%@CPPFLAGS@%$CPPFLAGS%g
1383: s%@CXXFLAGS@%$CXXFLAGS%g
1384: s%@DEFS@%$DEFS%g
1385: s%@LDFLAGS@%$LDFLAGS%g
1386: s%@LIBS@%$LIBS%g
1387: s%@exec_prefix@%$exec_prefix%g
1388: s%@prefix@%$prefix%g
1389: s%@program_transform_name@%$program_transform_name%g
1390: s%@bindir@%$bindir%g
1391: s%@sbindir@%$sbindir%g
1392: s%@libexecdir@%$libexecdir%g
1393: s%@datadir@%$datadir%g
1394: s%@sysconfdir@%$sysconfdir%g
1395: s%@sharedstatedir@%$sharedstatedir%g
1396: s%@localstatedir@%$localstatedir%g
1397: s%@libdir@%$libdir%g
1398: s%@includedir@%$includedir%g
1399: s%@oldincludedir@%$oldincludedir%g
1400: s%@infodir@%$infodir%g
1401: s%@mandir@%$mandir%g
1402: s%@host@%$host%g
1403: s%@host_alias@%$host_alias%g
1404: s%@host_cpu@%$host_cpu%g
1405: s%@host_vendor@%$host_vendor%g
1406: s%@host_os@%$host_os%g
1407: s%@systype@%$systype%g
1408: s%@cross_compiling@%$cross_compiling%g
1409: s%@CC@%$CC%g
1.1.1.2 ! root 1410: s%@cross_linkable@%$cross_linkable%g
1.1 root 1411: s%@AWK@%$AWK%g
1412: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1413: s%@INSTALL_DATA@%$INSTALL_DATA%g
1414: s%@build@%$build%g
1415: s%@build_alias@%$build_alias%g
1416: s%@build_cpu@%$build_cpu%g
1417: s%@build_vendor@%$build_vendor%g
1418: s%@build_os@%$build_os%g
1419: s%@MIG@%$MIG%g
1420: s%@BUILD_CC@%$BUILD_CC%g
1.1.1.2 ! root 1421: s%@LEX@%$LEX%g
! 1422: s%@LEXLIB@%$LEXLIB%g
! 1423: s%@YACC@%$YACC%g
! 1424: s%@installed_clib@%$installed_clib%g
1.1 root 1425: s%@subdirs@%$subdirs%g
1426:
1427: CEOF
1428: EOF
1429:
1430: cat >> $CONFIG_STATUS <<\EOF
1431:
1432: # Split the substitutions into bite-sized pieces for seds with
1433: # small command number limits, like on Digital OSF/1 and HP-UX.
1434: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1435: ac_file=1 # Number of current file.
1436: ac_beg=1 # First line for current file.
1437: ac_end=$ac_max_sed_cmds # Line after last line for current file.
1438: ac_more_lines=:
1439: ac_sed_cmds=""
1440: while $ac_more_lines; do
1441: if test $ac_beg -gt 1; then
1442: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1443: else
1444: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1445: fi
1446: if test ! -s conftest.s$ac_file; then
1447: ac_more_lines=false
1448: rm -f conftest.s$ac_file
1449: else
1450: if test -z "$ac_sed_cmds"; then
1451: ac_sed_cmds="sed -f conftest.s$ac_file"
1452: else
1453: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1454: fi
1455: ac_file=`expr $ac_file + 1`
1456: ac_beg=$ac_end
1457: ac_end=`expr $ac_end + $ac_max_sed_cmds`
1458: fi
1459: done
1460: if test -z "$ac_sed_cmds"; then
1461: ac_sed_cmds=cat
1462: fi
1463: EOF
1464:
1465: cat >> $CONFIG_STATUS <<EOF
1466:
1467: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1468: EOF
1469: cat >> $CONFIG_STATUS <<\EOF
1470: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1471: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1472: case "$ac_file" in
1473: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1474: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1475: *) ac_file_in="${ac_file}.in" ;;
1476: esac
1477:
1478: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1479:
1480: # Remove last slash and all that follows it. Not all systems have dirname.
1481: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1482: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1483: # The file is in a subdirectory.
1484: test ! -d "$ac_dir" && mkdir "$ac_dir"
1485: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1486: # A "../" for each directory in $ac_dir_suffix.
1487: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1488: else
1489: ac_dir_suffix= ac_dots=
1490: fi
1491:
1492: case "$ac_given_srcdir" in
1493: .) srcdir=.
1494: if test -z "$ac_dots"; then top_srcdir=.
1495: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1496: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1497: *) # Relative path.
1498: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1499: top_srcdir="$ac_dots$ac_given_srcdir" ;;
1500: esac
1501:
1502: case "$ac_given_INSTALL" in
1503: [/$]*) INSTALL="$ac_given_INSTALL" ;;
1504: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1505: esac
1506:
1507: echo creating "$ac_file"
1508: rm -f "$ac_file"
1509: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1510: case "$ac_file" in
1511: *Makefile*) ac_comsub="1i\\
1512: # $configure_input" ;;
1513: *) ac_comsub= ;;
1514: esac
1515:
1516: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1517: sed -e "$ac_comsub
1518: s%@configure_input@%$configure_input%g
1519: s%@srcdir@%$srcdir%g
1520: s%@top_srcdir@%$top_srcdir%g
1521: s%@INSTALL@%$INSTALL%g
1522: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1523: fi; done
1524: rm -f conftest.s*
1525:
1526: EOF
1527:
1528: cat >> $CONFIG_STATUS <<EOF
1529: ac_sources="${systype}/${systype}"
1530: ac_dests="machine"
1531: EOF
1532:
1533: cat >> $CONFIG_STATUS <<\EOF
1534: srcdir=$ac_given_srcdir
1535: while test -n "$ac_sources"; do
1536: set $ac_dests; ac_dest=$1; shift; ac_dests=$*
1537: set $ac_sources; ac_source=$1; shift; ac_sources=$*
1538:
1539: echo "linking $srcdir/$ac_source to $ac_dest"
1540:
1541: if test ! -r $srcdir/$ac_source; then
1542: { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
1543: fi
1544: rm -f $ac_dest
1545:
1546: # Make relative symlinks.
1547: # Remove last slash and all that follows it. Not all systems have dirname.
1548: ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
1549: if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
1550: # The dest file is in a subdirectory.
1551: test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
1552: ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
1553: # A "../" for each directory in $ac_dest_dir_suffix.
1554: ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
1555: else
1556: ac_dest_dir_suffix= ac_dots=
1557: fi
1558:
1559: case "$srcdir" in
1560: [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
1561: *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
1562: esac
1563:
1564: # Make a symlink if possible; otherwise try a hard link.
1565: if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
1566: ln $srcdir/$ac_source $ac_dest; then :
1567: else
1568: { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
1569: fi
1570: done
1571: EOF
1572: cat >> $CONFIG_STATUS <<EOF
1573:
1574: EOF
1575: cat >> $CONFIG_STATUS <<\EOF
1576:
1577: exit 0
1578: EOF
1579: chmod +x $CONFIG_STATUS
1580: rm -fr confdefs* $ac_clean_files
1581: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1582:
1583: if test "$no_recursion" != yes; then
1584:
1585: # Remove --cache-file and --srcdir arguments so they do not pile up.
1586: ac_sub_configure_args=
1587: ac_prev=
1588: for ac_arg in $ac_configure_args; do
1589: if test -n "$ac_prev"; then
1590: ac_prev=
1591: continue
1592: fi
1593: case "$ac_arg" in
1594: -cache-file | --cache-file | --cache-fil | --cache-fi \
1595: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1596: ac_prev=cache_file ;;
1597: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1598: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1599: ;;
1600: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1601: ac_prev=srcdir ;;
1602: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1603: ;;
1604: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1605: esac
1606: done
1607:
1608: for ac_config_dir in $systype; do
1609:
1610: # Do not complain, so a configure script can configure whichever
1611: # parts of a large source tree are present.
1612: if test ! -d $srcdir/$ac_config_dir; then
1613: continue
1614: fi
1615:
1616: echo configuring in $ac_config_dir
1617:
1618: case "$srcdir" in
1619: .) ;;
1620: *)
1621: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1622: else
1623: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1624: fi
1625: ;;
1626: esac
1627:
1628: ac_popdir=`pwd`
1629: cd $ac_config_dir
1630:
1631: # A "../" for each directory in /$ac_config_dir.
1632: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1633:
1634: case "$srcdir" in
1635: .) # No --srcdir option. We are building in place.
1636: ac_sub_srcdir=$srcdir ;;
1637: /*) # Absolute path.
1638: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1639: *) # Relative path.
1640: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1641: esac
1642:
1643: # Check for guested configure; otherwise get Cygnus style configure.
1644: if test -f $ac_sub_srcdir/configure; then
1645: ac_sub_configure=$ac_sub_srcdir/configure
1646: elif test -f $ac_sub_srcdir/configure.in; then
1647: ac_sub_configure=$ac_configure
1648: else
1649: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1650: ac_sub_configure=
1651: fi
1652:
1653: # The recursion is here.
1654: if test -n "$ac_sub_configure"; then
1655:
1656: # Make the cache file name correct relative to the subdirectory.
1657: case "$cache_file" in
1658: /*) ac_sub_cache_file=$cache_file ;;
1659: *) # Relative path.
1660: ac_sub_cache_file="$ac_dots$cache_file" ;;
1661: esac
1662: case "$ac_given_INSTALL" in
1663: [/$]*) INSTALL="$ac_given_INSTALL" ;;
1664: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1665: esac
1666:
1667: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1668: # The eval makes quoting arguments work.
1669: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1670: then :
1671: else
1672: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1673: fi
1674: fi
1675:
1676: cd $ac_popdir
1677: done
1678: fi
1679:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.