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