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