|
|
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.12
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_help="$ac_help
15: --with-x use the X Window System"
1.1.1.2 root 16: ac_help="$ac_help
1.1.1.4 root 17: --enable-profiling Build a profiling (SLOW!) version"
1.1.1.2 root 18: ac_help="$ac_help
1.1.1.4 root 19: --with-svgalib Use SVGAlib for graphics output"
1.1.1.3 root 20: ac_help="$ac_help
1.1.1.4 root 21: --with-ggi Use GGI for graphics output"
1.1.1.3 root 22: ac_help="$ac_help
1.1.1.4 root 23: --with-asciiart Use ncurses ascii art for graphics output"
24: ac_help="$ac_help
25: --enable-dga X11 version: Use the DGA extension"
26: ac_help="$ac_help
27: --enable-vidmode X11 version: Use the XF86VidMode extension"
28: ac_help="$ac_help
29: --enable-ui Use a user interface if possible (default on)"
30: ac_help="$ac_help
31: --with-elf Explicitly state that this system is ELF"
32: ac_help="$ac_help
33: --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
34: ac_help="$ac_help
35: --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
36: ac_help="$ac_help
37: --disable-gtktest Do not try to compile and run a test GTK program"
38: ac_help="$ac_help
39: --enable-threads Enable filesystem thread support"
40: ac_help="$ac_help
41: --enable-penguins Enable threads that only make sense on SMP machines"
42: ac_help="$ac_help
43: --enable-file-sound Enable sound output to file"
1.1 root 44:
45: # Initialize some variables set by options.
46: # The variables have the same names as the options, with
47: # dashes changed to underlines.
48: build=NONE
49: cache_file=./config.cache
50: exec_prefix=NONE
51: host=NONE
52: no_create=
53: nonopt=NONE
54: no_recursion=
55: prefix=NONE
56: program_prefix=NONE
57: program_suffix=NONE
58: program_transform_name=s,x,x,
59: silent=
60: site=
61: srcdir=
62: target=NONE
63: verbose=
64: x_includes=NONE
65: x_libraries=NONE
66: bindir='${exec_prefix}/bin'
67: sbindir='${exec_prefix}/sbin'
68: libexecdir='${exec_prefix}/libexec'
69: datadir='${prefix}/share'
70: sysconfdir='${prefix}/etc'
71: sharedstatedir='${prefix}/com'
72: localstatedir='${prefix}/var'
73: libdir='${exec_prefix}/lib'
74: includedir='${prefix}/include'
75: oldincludedir='/usr/include'
76: infodir='${prefix}/info'
77: mandir='${prefix}/man'
78:
79: # Initialize some other variables.
80: subdirs=
81: MFLAGS= MAKEFLAGS=
1.1.1.4 root 82: # Maximum number of lines to put in a shell here document.
83: ac_max_here_lines=12
1.1 root 84:
85: ac_prev=
86: for ac_option
87: do
88:
89: # If the previous option needs an argument, assign it.
90: if test -n "$ac_prev"; then
91: eval "$ac_prev=\$ac_option"
92: ac_prev=
93: continue
94: fi
95:
96: case "$ac_option" in
97: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98: *) ac_optarg= ;;
99: esac
100:
101: # Accept the important Cygnus configure options, so we can diagnose typos.
102:
103: case "$ac_option" in
104:
105: -bindir | --bindir | --bindi | --bind | --bin | --bi)
106: ac_prev=bindir ;;
107: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108: bindir="$ac_optarg" ;;
109:
110: -build | --build | --buil | --bui | --bu)
111: ac_prev=build ;;
112: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113: build="$ac_optarg" ;;
114:
115: -cache-file | --cache-file | --cache-fil | --cache-fi \
116: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117: ac_prev=cache_file ;;
118: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120: cache_file="$ac_optarg" ;;
121:
122: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123: ac_prev=datadir ;;
124: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125: | --da=*)
126: datadir="$ac_optarg" ;;
127:
128: -disable-* | --disable-*)
129: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130: # Reject names that are not valid shell variable names.
131: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133: fi
134: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135: eval "enable_${ac_feature}=no" ;;
136:
137: -enable-* | --enable-*)
138: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139: # Reject names that are not valid shell variable names.
140: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142: fi
143: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144: case "$ac_option" in
145: *=*) ;;
146: *) ac_optarg=yes ;;
147: esac
148: eval "enable_${ac_feature}='$ac_optarg'" ;;
149:
150: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152: | --exec | --exe | --ex)
153: ac_prev=exec_prefix ;;
154: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156: | --exec=* | --exe=* | --ex=*)
157: exec_prefix="$ac_optarg" ;;
158:
159: -gas | --gas | --ga | --g)
160: # Obsolete; use --with-gas.
161: with_gas=yes ;;
162:
163: -help | --help | --hel | --he)
164: # Omit some internal or obsolete options to make the list less imposing.
165: # This message is too long to be a string in the A/UX 3.1 sh.
166: cat << EOF
167: Usage: configure [options] [host]
168: Options: [defaults in brackets after descriptions]
169: Configuration:
170: --cache-file=FILE cache test results in FILE
171: --help print this message
172: --no-create do not create output files
173: --quiet, --silent do not print \`checking...' messages
174: --version print the version of autoconf that created configure
175: Directory and file names:
176: --prefix=PREFIX install architecture-independent files in PREFIX
177: [$ac_default_prefix]
178: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179: [same as prefix]
180: --bindir=DIR user executables in DIR [EPREFIX/bin]
181: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183: --datadir=DIR read-only architecture-independent data in DIR
184: [PREFIX/share]
185: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186: --sharedstatedir=DIR modifiable architecture-independent data in DIR
187: [PREFIX/com]
188: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190: --includedir=DIR C header files in DIR [PREFIX/include]
191: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192: --infodir=DIR info documentation in DIR [PREFIX/info]
193: --mandir=DIR man documentation in DIR [PREFIX/man]
194: --srcdir=DIR find the sources in DIR [configure dir or ..]
195: --program-prefix=PREFIX prepend PREFIX to installed program names
196: --program-suffix=SUFFIX append SUFFIX to installed program names
197: --program-transform-name=PROGRAM
198: run sed PROGRAM on installed program names
199: EOF
200: cat << EOF
201: Host type:
202: --build=BUILD configure for building on BUILD [BUILD=HOST]
203: --host=HOST configure for HOST [guessed]
204: --target=TARGET configure for TARGET [TARGET=HOST]
205: Features and packages:
206: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210: --x-includes=DIR X include files are in DIR
211: --x-libraries=DIR X library files are in DIR
212: EOF
213: if test -n "$ac_help"; then
214: echo "--enable and --with options recognized:$ac_help"
215: fi
216: exit 0 ;;
217:
218: -host | --host | --hos | --ho)
219: ac_prev=host ;;
220: -host=* | --host=* | --hos=* | --ho=*)
221: host="$ac_optarg" ;;
222:
223: -includedir | --includedir | --includedi | --included | --include \
224: | --includ | --inclu | --incl | --inc)
225: ac_prev=includedir ;;
226: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227: | --includ=* | --inclu=* | --incl=* | --inc=*)
228: includedir="$ac_optarg" ;;
229:
230: -infodir | --infodir | --infodi | --infod | --info | --inf)
231: ac_prev=infodir ;;
232: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233: infodir="$ac_optarg" ;;
234:
235: -libdir | --libdir | --libdi | --libd)
236: ac_prev=libdir ;;
237: -libdir=* | --libdir=* | --libdi=* | --libd=*)
238: libdir="$ac_optarg" ;;
239:
240: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241: | --libexe | --libex | --libe)
242: ac_prev=libexecdir ;;
243: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244: | --libexe=* | --libex=* | --libe=*)
245: libexecdir="$ac_optarg" ;;
246:
247: -localstatedir | --localstatedir | --localstatedi | --localstated \
248: | --localstate | --localstat | --localsta | --localst \
249: | --locals | --local | --loca | --loc | --lo)
250: ac_prev=localstatedir ;;
251: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254: localstatedir="$ac_optarg" ;;
255:
256: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257: ac_prev=mandir ;;
258: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259: mandir="$ac_optarg" ;;
260:
261: -nfp | --nfp | --nf)
262: # Obsolete; use --without-fp.
263: with_fp=no ;;
264:
265: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266: | --no-cr | --no-c)
267: no_create=yes ;;
268:
269: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271: no_recursion=yes ;;
272:
273: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275: | --oldin | --oldi | --old | --ol | --o)
276: ac_prev=oldincludedir ;;
277: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280: oldincludedir="$ac_optarg" ;;
281:
282: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283: ac_prev=prefix ;;
284: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285: prefix="$ac_optarg" ;;
286:
287: -program-prefix | --program-prefix | --program-prefi | --program-pref \
288: | --program-pre | --program-pr | --program-p)
289: ac_prev=program_prefix ;;
290: -program-prefix=* | --program-prefix=* | --program-prefi=* \
291: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292: program_prefix="$ac_optarg" ;;
293:
294: -program-suffix | --program-suffix | --program-suffi | --program-suff \
295: | --program-suf | --program-su | --program-s)
296: ac_prev=program_suffix ;;
297: -program-suffix=* | --program-suffix=* | --program-suffi=* \
298: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299: program_suffix="$ac_optarg" ;;
300:
301: -program-transform-name | --program-transform-name \
302: | --program-transform-nam | --program-transform-na \
303: | --program-transform-n | --program-transform- \
304: | --program-transform | --program-transfor \
305: | --program-transfo | --program-transf \
306: | --program-trans | --program-tran \
307: | --progr-tra | --program-tr | --program-t)
308: ac_prev=program_transform_name ;;
309: -program-transform-name=* | --program-transform-name=* \
310: | --program-transform-nam=* | --program-transform-na=* \
311: | --program-transform-n=* | --program-transform-=* \
312: | --program-transform=* | --program-transfor=* \
313: | --program-transfo=* | --program-transf=* \
314: | --program-trans=* | --program-tran=* \
315: | --progr-tra=* | --program-tr=* | --program-t=*)
316: program_transform_name="$ac_optarg" ;;
317:
318: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319: | -silent | --silent | --silen | --sile | --sil)
320: silent=yes ;;
321:
322: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323: ac_prev=sbindir ;;
324: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325: | --sbi=* | --sb=*)
326: sbindir="$ac_optarg" ;;
327:
328: -sharedstatedir | --sharedstatedir | --sharedstatedi \
329: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330: | --sharedst | --shareds | --shared | --share | --shar \
331: | --sha | --sh)
332: ac_prev=sharedstatedir ;;
333: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336: | --sha=* | --sh=*)
337: sharedstatedir="$ac_optarg" ;;
338:
339: -site | --site | --sit)
340: ac_prev=site ;;
341: -site=* | --site=* | --sit=*)
342: site="$ac_optarg" ;;
343:
344: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345: ac_prev=srcdir ;;
346: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347: srcdir="$ac_optarg" ;;
348:
349: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350: | --syscon | --sysco | --sysc | --sys | --sy)
351: ac_prev=sysconfdir ;;
352: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354: sysconfdir="$ac_optarg" ;;
355:
356: -target | --target | --targe | --targ | --tar | --ta | --t)
357: ac_prev=target ;;
358: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359: target="$ac_optarg" ;;
360:
361: -v | -verbose | --verbose | --verbos | --verbo | --verb)
362: verbose=yes ;;
363:
364: -version | --version | --versio | --versi | --vers)
1.1.1.4 root 365: echo "configure generated by autoconf version 2.12"
1.1 root 366: exit 0 ;;
367:
368: -with-* | --with-*)
369: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370: # Reject names that are not valid shell variable names.
371: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373: fi
374: ac_package=`echo $ac_package| sed 's/-/_/g'`
375: case "$ac_option" in
376: *=*) ;;
377: *) ac_optarg=yes ;;
378: esac
379: eval "with_${ac_package}='$ac_optarg'" ;;
380:
381: -without-* | --without-*)
382: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383: # Reject names that are not valid shell variable names.
384: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386: fi
387: ac_package=`echo $ac_package| sed 's/-/_/g'`
388: eval "with_${ac_package}=no" ;;
389:
390: --x)
391: # Obsolete; use --with-x.
392: with_x=yes ;;
393:
394: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395: | --x-incl | --x-inc | --x-in | --x-i)
396: ac_prev=x_includes ;;
397: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399: x_includes="$ac_optarg" ;;
400:
401: -x-libraries | --x-libraries | --x-librarie | --x-librari \
402: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403: ac_prev=x_libraries ;;
404: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406: x_libraries="$ac_optarg" ;;
407:
408: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409: ;;
410:
411: *)
412: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413: echo "configure: warning: $ac_option: invalid host type" 1>&2
414: fi
415: if test "x$nonopt" != xNONE; then
416: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417: fi
418: nonopt="$ac_option"
419: ;;
420:
421: esac
422: done
423:
424: if test -n "$ac_prev"; then
425: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426: fi
427:
428: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429:
430: # File descriptor usage:
431: # 0 standard input
432: # 1 file creation
433: # 2 errors and warnings
434: # 3 some systems may open it to /dev/tty
435: # 4 used on the Kubota Titan
436: # 6 checking for... messages and results
437: # 5 compiler messages saved in config.log
438: if test "$silent" = yes; then
439: exec 6>/dev/null
440: else
441: exec 6>&1
442: fi
443: exec 5>./config.log
444:
445: echo "\
446: This file contains any messages produced by compilers while
447: running configure, to aid debugging if configure makes a mistake.
448: " 1>&5
449:
450: # Strip out --no-create and --no-recursion so they do not pile up.
451: # Also quote any args containing shell metacharacters.
452: ac_configure_args=
453: for ac_arg
454: do
455: case "$ac_arg" in
456: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457: | --no-cr | --no-c) ;;
458: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463: esac
464: done
465:
466: # NLS nuisances.
1.1.1.4 root 467: # Only set these to C if already set. These must not be set unconditionally
468: # because not all systems understand e.g. LANG=C (notably SCO).
469: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470: # Non-C LC_CTYPE values break the ctype check.
1.1 root 471: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1.1.1.4 root 472: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
1.1 root 475:
476: # confdefs.h avoids OS command line length limits that DEFS can exceed.
477: rm -rf conftest* confdefs.h
478: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479: echo > confdefs.h
480:
481: # A filename unique to this package, relative to the directory that
482: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2 root 483: ac_unique_file=amiga/source/transdisk.c
1.1 root 484:
485: # Find the source files, if location was not specified.
486: if test -z "$srcdir"; then
487: ac_srcdir_defaulted=yes
488: # Try the directory containing this script, then its parent.
489: ac_prog=$0
490: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492: srcdir=$ac_confdir
493: if test ! -r $srcdir/$ac_unique_file; then
494: srcdir=..
495: fi
496: else
497: ac_srcdir_defaulted=no
498: fi
499: if test ! -r $srcdir/$ac_unique_file; then
500: if test "$ac_srcdir_defaulted" = yes; then
501: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502: else
503: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504: fi
505: fi
506: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507:
508: # Prefer explicitly selected file to automatically selected ones.
509: if test -z "$CONFIG_SITE"; then
510: if test "x$prefix" != xNONE; then
511: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512: else
513: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514: fi
515: fi
516: for ac_site_file in $CONFIG_SITE; do
517: if test -r "$ac_site_file"; then
518: echo "loading site script $ac_site_file"
519: . "$ac_site_file"
520: fi
521: done
522:
523: if test -r "$cache_file"; then
524: echo "loading cache $cache_file"
525: . $cache_file
526: else
527: echo "creating cache $cache_file"
528: > $cache_file
529: fi
530:
531: ac_ext=c
532: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533: ac_cpp='$CPP $CPPFLAGS'
534: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4 root 536: cross_compiling=$ac_cv_prog_cc_cross
1.1 root 537:
538: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539: # Stardent Vistra SVR4 grep lacks -e, says [email protected].
540: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541: ac_n= ac_c='
542: ' ac_t=' '
543: else
544: ac_n=-n ac_c= ac_t=
545: fi
546: else
547: ac_n= ac_c='\c' ac_t=
548: fi
549:
550:
551:
1.1.1.4 root 552:
1.1 root 553: # Extract the first word of "gcc", so it can be a program name with args.
554: set dummy gcc; ac_word=$2
555: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.7 ! root 556: echo "configure:557: checking for $ac_word" >&5
1.1 root 557: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558: echo $ac_n "(cached) $ac_c" 1>&6
559: else
560: if test -n "$CC"; then
561: ac_cv_prog_CC="$CC" # Let the user override the test.
562: else
563: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564: for ac_dir in $PATH; do
565: test -z "$ac_dir" && ac_dir=.
566: if test -f $ac_dir/$ac_word; then
567: ac_cv_prog_CC="gcc"
568: break
569: fi
570: done
571: IFS="$ac_save_ifs"
572: fi
573: fi
574: CC="$ac_cv_prog_CC"
575: if test -n "$CC"; then
576: echo "$ac_t""$CC" 1>&6
577: else
578: echo "$ac_t""no" 1>&6
579: fi
580:
581: if test -z "$CC"; then
582: # Extract the first word of "cc", so it can be a program name with args.
583: set dummy cc; ac_word=$2
584: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.7 ! root 585: echo "configure:586: checking for $ac_word" >&5
1.1 root 586: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587: echo $ac_n "(cached) $ac_c" 1>&6
588: else
589: if test -n "$CC"; then
590: ac_cv_prog_CC="$CC" # Let the user override the test.
591: else
592: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
593: ac_prog_rejected=no
594: for ac_dir in $PATH; do
595: test -z "$ac_dir" && ac_dir=.
596: if test -f $ac_dir/$ac_word; then
597: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
598: ac_prog_rejected=yes
599: continue
600: fi
601: ac_cv_prog_CC="cc"
602: break
603: fi
604: done
605: IFS="$ac_save_ifs"
606: if test $ac_prog_rejected = yes; then
607: # We found a bogon in the path, so make sure we never use it.
608: set dummy $ac_cv_prog_CC
609: shift
610: if test $# -gt 0; then
611: # We chose a different compiler from the bogus one.
612: # However, it has the same basename, so the bogon will be chosen
613: # first if we set CC to just the basename; use the full file name.
614: shift
615: set dummy "$ac_dir/$ac_word" "$@"
616: shift
617: ac_cv_prog_CC="$@"
618: fi
619: fi
620: fi
621: fi
622: CC="$ac_cv_prog_CC"
623: if test -n "$CC"; then
624: echo "$ac_t""$CC" 1>&6
625: else
626: echo "$ac_t""no" 1>&6
627: fi
628:
629: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
630: fi
631:
1.1.1.4 root 632: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.1.1.7 ! root 633: echo "configure:634: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1.1.4 root 634:
635: ac_ext=c
636: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
637: ac_cpp='$CPP $CPPFLAGS'
638: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
639: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
640: cross_compiling=$ac_cv_prog_cc_cross
641:
642: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 643: #line 644 "configure"
1.1.1.4 root 644: #include "confdefs.h"
645: main(){return(0);}
646: EOF
1.1.1.7 ! root 647: if { (eval echo configure:648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 648: ac_cv_prog_cc_works=yes
649: # If we can't run a trivial program, we are probably using a cross compiler.
650: if (./conftest; exit) 2>/dev/null; then
651: ac_cv_prog_cc_cross=no
652: else
653: ac_cv_prog_cc_cross=yes
654: fi
655: else
656: echo "configure: failed program was:" >&5
657: cat conftest.$ac_ext >&5
658: ac_cv_prog_cc_works=no
659: fi
660: rm -fr conftest*
661:
662: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
663: if test $ac_cv_prog_cc_works = no; then
664: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
665: fi
666: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.1.1.7 ! root 667: echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1.1.4 root 668: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
669: cross_compiling=$ac_cv_prog_cc_cross
670:
1.1 root 671: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.7 ! root 672: echo "configure:673: checking whether we are using GNU C" >&5
1.1 root 673: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
674: echo $ac_n "(cached) $ac_c" 1>&6
675: else
676: cat > conftest.c <<EOF
677: #ifdef __GNUC__
678: yes;
679: #endif
680: EOF
1.1.1.7 ! root 681: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 root 682: ac_cv_prog_gcc=yes
683: else
684: ac_cv_prog_gcc=no
685: fi
686: fi
687:
688: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1.1.1.4 root 689:
1.1 root 690: if test $ac_cv_prog_gcc = yes; then
691: GCC=yes
1.1.1.4 root 692: ac_test_CFLAGS="${CFLAGS+set}"
693: ac_save_CFLAGS="$CFLAGS"
694: CFLAGS=
695: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.1.1.7 ! root 696: echo "configure:697: checking whether ${CC-cc} accepts -g" >&5
1.1.1.4 root 697: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1.1 root 698: echo $ac_n "(cached) $ac_c" 1>&6
699: else
700: echo 'void f(){}' > conftest.c
701: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1.1.1.4 root 702: ac_cv_prog_cc_g=yes
1.1 root 703: else
1.1.1.4 root 704: ac_cv_prog_cc_g=no
1.1 root 705: fi
706: rm -f conftest*
707:
708: fi
709:
1.1.1.4 root 710: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
711: if test "$ac_test_CFLAGS" = set; then
712: CFLAGS="$ac_save_CFLAGS"
713: elif test $ac_cv_prog_cc_g = yes; then
714: CFLAGS="-g -O2"
715: else
716: CFLAGS="-O2"
1.1 root 717: fi
718: else
719: GCC=
720: test "${CFLAGS+set}" = set || CFLAGS="-g"
721: fi
722:
723:
724: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.7 ! root 725: echo "configure:726: checking how to run the C preprocessor" >&5
1.1 root 726: # On Suns, sometimes $CPP names a directory.
727: if test -n "$CPP" && test -d "$CPP"; then
728: CPP=
729: fi
730: if test -z "$CPP"; then
731: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
732: echo $ac_n "(cached) $ac_c" 1>&6
733: else
734: # This must be in double quotes, not single quotes, because CPP may get
735: # substituted into the Makefile and "${CC-cc}" will confuse make.
736: CPP="${CC-cc} -E"
737: # On the NeXT, cc -E runs the code through the compiler's parser,
738: # not just through cpp.
739: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 740: #line 741 "configure"
1.1 root 741: #include "confdefs.h"
742: #include <assert.h>
743: Syntax Error
744: EOF
745: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 746: { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 747: ac_err=`grep -v '^ *+' conftest.out`
748: if test -z "$ac_err"; then
749: :
750: else
751: echo "$ac_err" >&5
1.1.1.4 root 752: echo "configure: failed program was:" >&5
753: cat conftest.$ac_ext >&5
1.1 root 754: rm -rf conftest*
755: CPP="${CC-cc} -E -traditional-cpp"
756: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 757: #line 758 "configure"
1.1 root 758: #include "confdefs.h"
759: #include <assert.h>
760: Syntax Error
761: EOF
762: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 763: { (eval echo configure:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 764: ac_err=`grep -v '^ *+' conftest.out`
765: if test -z "$ac_err"; then
766: :
767: else
768: echo "$ac_err" >&5
1.1.1.4 root 769: echo "configure: failed program was:" >&5
770: cat conftest.$ac_ext >&5
1.1 root 771: rm -rf conftest*
772: CPP=/lib/cpp
773: fi
774: rm -f conftest*
775: fi
776: rm -f conftest*
777: ac_cv_prog_CPP="$CPP"
778: fi
779: CPP="$ac_cv_prog_CPP"
780: else
781: ac_cv_prog_CPP="$CPP"
782: fi
783: echo "$ac_t""$CPP" 1>&6
784:
785: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.1.1.7 ! root 786: echo "configure:787: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1.1.4 root 787: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1.1 root 788: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
789: echo $ac_n "(cached) $ac_c" 1>&6
790: else
791: cat > conftestmake <<\EOF
792: all:
793: @echo 'ac_maketemp="${MAKE}"'
794: EOF
795: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
796: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
797: if test -n "$ac_maketemp"; then
798: eval ac_cv_prog_make_${ac_make}_set=yes
799: else
800: eval ac_cv_prog_make_${ac_make}_set=no
801: fi
802: rm -f conftestmake
803: fi
804: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
805: echo "$ac_t""yes" 1>&6
806: SET_MAKE=
807: else
808: echo "$ac_t""no" 1>&6
809: SET_MAKE="MAKE=${MAKE-make}"
810: fi
811:
1.1.1.4 root 812: # Extract the first word of "file", so it can be a program name with args.
813: set dummy file; ac_word=$2
814: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.7 ! root 815: echo "configure:816: checking for $ac_word" >&5
1.1.1.4 root 816: if eval "test \"`echo '$''{'ac_cv_path_FILEPRG'+set}'`\" = set"; then
817: echo $ac_n "(cached) $ac_c" 1>&6
818: else
819: case "$FILEPRG" in
820: /*)
821: ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
822: ;;
823: *)
824: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
825: for ac_dir in $PATH; do
826: test -z "$ac_dir" && ac_dir=.
827: if test -f $ac_dir/$ac_word; then
828: ac_cv_path_FILEPRG="$ac_dir/$ac_word"
829: break
830: fi
831: done
832: IFS="$ac_save_ifs"
833: test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
834: ;;
835: esac
836: fi
837: FILEPRG="$ac_cv_path_FILEPRG"
838: if test -n "$FILEPRG"; then
839: echo "$ac_t""$FILEPRG" 1>&6
840: else
841: echo "$ac_t""no" 1>&6
842: fi
843:
1.1.1.6 root 844: # Extract the first word of "wrc", so it can be a program name with args.
845: set dummy wrc; ac_word=$2
846: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.7 ! root 847: echo "configure:848: checking for $ac_word" >&5
1.1.1.6 root 848: if eval "test \"`echo '$''{'ac_cv_path_WRCPRG'+set}'`\" = set"; then
849: echo $ac_n "(cached) $ac_c" 1>&6
850: else
851: case "$WRCPRG" in
852: /*)
853: ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path.
854: ;;
855: *)
856: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857: for ac_dir in $PATH; do
858: test -z "$ac_dir" && ac_dir=.
859: if test -f $ac_dir/$ac_word; then
860: ac_cv_path_WRCPRG="$ac_dir/$ac_word"
861: break
862: fi
863: done
864: IFS="$ac_save_ifs"
865: test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found"
866: ;;
867: esac
868: fi
869: WRCPRG="$ac_cv_path_WRCPRG"
870: if test -n "$WRCPRG"; then
871: echo "$ac_t""$WRCPRG" 1>&6
872: else
873: echo "$ac_t""no" 1>&6
874: fi
875:
876: # Extract the first word of "rcl", so it can be a program name with args.
877: set dummy rcl; ac_word=$2
878: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.7 ! root 879: echo "configure:880: checking for $ac_word" >&5
1.1.1.6 root 880: if eval "test \"`echo '$''{'ac_cv_path_RCLPRG'+set}'`\" = set"; then
881: echo $ac_n "(cached) $ac_c" 1>&6
882: else
883: case "$RCLPRG" in
884: /*)
885: ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path.
886: ;;
887: *)
888: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
889: for ac_dir in $PATH; do
890: test -z "$ac_dir" && ac_dir=.
891: if test -f $ac_dir/$ac_word; then
892: ac_cv_path_RCLPRG="$ac_dir/$ac_word"
893: break
894: fi
895: done
896: IFS="$ac_save_ifs"
897: test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found"
898: ;;
899: esac
900: fi
901: RCLPRG="$ac_cv_path_RCLPRG"
902: if test -n "$RCLPRG"; then
903: echo "$ac_t""$RCLPRG" 1>&6
904: else
905: echo "$ac_t""no" 1>&6
906: fi
907:
1.1 root 908:
909: echo $ac_n "checking for AIX""... $ac_c" 1>&6
1.1.1.7 ! root 910: echo "configure:911: checking for AIX" >&5
1.1 root 911: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 912: #line 913 "configure"
1.1 root 913: #include "confdefs.h"
914: #ifdef _AIX
915: yes
916: #endif
917:
918: EOF
919: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
920: egrep "yes" >/dev/null 2>&1; then
921: rm -rf conftest*
922: echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
923: #define _ALL_SOURCE 1
924: EOF
925:
926: else
927: rm -rf conftest*
928: echo "$ac_t""no" 1>&6
929: fi
930: rm -f conftest*
931:
932:
933: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.1.1.7 ! root 934: echo "configure:935: checking for POSIXized ISC" >&5
1.1 root 935: if test -d /etc/conf/kconfig.d &&
936: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
937: then
938: echo "$ac_t""yes" 1>&6
939: ISC=yes # If later tests want to check for ISC.
940: cat >> confdefs.h <<\EOF
941: #define _POSIX_SOURCE 1
942: EOF
943:
944: if test "$GCC" = yes; then
945: CC="$CC -posix"
946: else
947: CC="$CC -Xp"
948: fi
949: else
950: echo "$ac_t""no" 1>&6
951: ISC=
952: fi
953:
954:
1.1.1.6 root 955: echo $ac_n "checking for Watcom C""... $ac_c" 1>&6
1.1.1.7 ! root 956: echo "configure:957: checking for Watcom C" >&5
1.1.1.6 root 957: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 958: #line 959 "configure"
1.1.1.6 root 959: #include "confdefs.h"
960: #ifdef __WATCOMC__
961: yes
962: #endif
963:
964: EOF
965: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
966: egrep "yes" >/dev/null 2>&1; then
967: rm -rf conftest*
968: uae_cv_prog_cc_watcom=yes
969: else
970: rm -rf conftest*
971: uae_cv_prog_cc_watcom=no
972: fi
973: rm -f conftest*
974:
975: echo "$ac_t""$uae_cv_prog_cc_watcom" 1>&6
976:
977: echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1.1.1.7 ! root 978: echo "configure:979: checking for Cygwin32 environment" >&5
1.1.1.6 root 979: if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
980: echo $ac_n "(cached) $ac_c" 1>&6
981: else
982: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 983: #line 984 "configure"
1.1.1.6 root 984: #include "confdefs.h"
985:
986: int main() {
987: return __CYGWIN32__;
988: ; return 0; }
989: EOF
1.1.1.7 ! root 990: if { (eval echo configure:991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6 root 991: rm -rf conftest*
992: am_cv_cygwin32=yes
993: else
994: echo "configure: failed program was:" >&5
995: cat conftest.$ac_ext >&5
996: rm -rf conftest*
997: am_cv_cygwin32=no
998: fi
999: rm -f conftest*
1000: rm -f conftest*
1001: fi
1002:
1003: echo "$ac_t""$am_cv_cygwin32" 1>&6
1004: CYGWIN32=
1005: test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1006: echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1.1.1.7 ! root 1007: echo "configure:1008: checking for Mingw32 environment" >&5
1.1.1.6 root 1008: if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1009: echo $ac_n "(cached) $ac_c" 1>&6
1010: else
1011: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1012: #line 1013 "configure"
1.1.1.6 root 1013: #include "confdefs.h"
1014:
1015: int main() {
1016: return __MINGW32__;
1017: ; return 0; }
1018: EOF
1.1.1.7 ! root 1019: if { (eval echo configure:1020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6 root 1020: rm -rf conftest*
1021: am_cv_mingw32=yes
1022: else
1023: echo "configure: failed program was:" >&5
1024: cat conftest.$ac_ext >&5
1025: rm -rf conftest*
1026: am_cv_mingw32=no
1027: fi
1028: rm -f conftest*
1029: rm -f conftest*
1030: fi
1031:
1032: echo "$ac_t""$am_cv_mingw32" 1>&6
1033: MINGW32=
1034: test "$am_cv_mingw32" = yes && MINGW32=yes
1035:
1036:
1037: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1.1.1.7 ! root 1038: echo "configure:1039: checking for executable suffix" >&5
1.1.1.6 root 1039: if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1040: echo $ac_n "(cached) $ac_c" 1>&6
1041: else
1042: if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1043: am_cv_exeext=.exe
1044: else
1045: cat > am_c_test.c << 'EOF'
1046: int main() {
1047: /* Nothing needed here */
1048: }
1049: EOF
1050: ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1051: am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1052: rm -f am_c_test*
1053: fi
1054:
1055: test x"${am_cv_exeext}" = x && am_cv_exeext=no
1056: fi
1057: EXEEXT=""
1058: test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1059: echo "$ac_t""${am_cv_exeext}" 1>&6
1060:
1061:
1.1.1.4 root 1062: NR_WARNINGS=0
1063: NR_ERRORS=0
1064:
1.1.1.6 root 1065: tmp_save_dir=`pwd`
1066: cd $srcdir
1067: abssrcdir=`pwd`
1068: cd $tmp_save_dir
1069:
1.1.1.4 root 1070: NEED_THREAD_SUPPORT=no
1071:
1072: ADDITIONAL_CFLAGS=
1073: OPTIMIZE_CFLAGS=
1074: WARNING_CFLAGS=
1075: DEBUG_CFLAGS=
1076: NO_SCHED_CFLAGS=
1077:
1078: HAVE_BEOS=no
1079: HAVE_POS=no
1080: echo $ac_n "checking for main in -lMedia_s""... $ac_c" 1>&6
1.1.1.7 ! root 1081: echo "configure:1082: checking for main in -lMedia_s" >&5
1.1.1.4 root 1082: ac_lib_var=`echo Media_s'_'main | sed 'y%./+-%__p_%'`
1.1 root 1083: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1084: echo $ac_n "(cached) $ac_c" 1>&6
1085: else
1086: ac_save_LIBS="$LIBS"
1087: LIBS="-lMedia_s $LIBS"
1088: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1089: #line 1090 "configure"
1.1 root 1090: #include "confdefs.h"
1091:
1.1.1.4 root 1092: int main() {
1.1 root 1093: main()
1094: ; return 0; }
1095: EOF
1.1.1.7 ! root 1096: if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1097: rm -rf conftest*
1098: eval "ac_cv_lib_$ac_lib_var=yes"
1099: else
1.1.1.4 root 1100: echo "configure: failed program was:" >&5
1101: cat conftest.$ac_ext >&5
1.1 root 1102: rm -rf conftest*
1103: eval "ac_cv_lib_$ac_lib_var=no"
1104: fi
1105: rm -f conftest*
1106: LIBS="$ac_save_LIBS"
1107:
1108: fi
1109: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1110: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1111: HAVE_MEDIA_LIB=yes
1.1 root 1112: else
1113: echo "$ac_t""no" 1>&6
1.1.1.4 root 1114: HAVE_MEDIA_LIB=no
1.1 root 1115: fi
1116:
1.1.1.4 root 1117: echo $ac_n "checking for main in -lNeXT_s""... $ac_c" 1>&6
1.1.1.7 ! root 1118: echo "configure:1119: checking for main in -lNeXT_s" >&5
1.1.1.4 root 1119: ac_lib_var=`echo NeXT_s'_'main | sed 'y%./+-%__p_%'`
1.1 root 1120: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1121: echo $ac_n "(cached) $ac_c" 1>&6
1122: else
1123: ac_save_LIBS="$LIBS"
1124: LIBS="-lNeXT_s $LIBS"
1125: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1126: #line 1127 "configure"
1.1 root 1127: #include "confdefs.h"
1128:
1.1.1.4 root 1129: int main() {
1.1 root 1130: main()
1131: ; return 0; }
1132: EOF
1.1.1.7 ! root 1133: if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1134: rm -rf conftest*
1135: eval "ac_cv_lib_$ac_lib_var=yes"
1136: else
1.1.1.4 root 1137: echo "configure: failed program was:" >&5
1138: cat conftest.$ac_ext >&5
1.1 root 1139: rm -rf conftest*
1140: eval "ac_cv_lib_$ac_lib_var=no"
1141: fi
1142: rm -f conftest*
1143: LIBS="$ac_save_LIBS"
1144:
1145: fi
1146: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1147: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1148: HAVE_NEXT_LIB=yes
1.1 root 1149: else
1150: echo "$ac_t""no" 1>&6
1.1.1.4 root 1151: HAVE_NEXT_LIB=no
1.1 root 1152: fi
1153:
1.1.1.4 root 1154: echo $ac_n "checking for OpenLibrary in -lamiga""... $ac_c" 1>&6
1.1.1.7 ! root 1155: echo "configure:1156: checking for OpenLibrary in -lamiga" >&5
1.1.1.4 root 1156: ac_lib_var=`echo amiga'_'OpenLibrary | sed 'y%./+-%__p_%'`
1.1.1.3 root 1157: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1158: echo $ac_n "(cached) $ac_c" 1>&6
1159: else
1160: ac_save_LIBS="$LIBS"
1161: LIBS="-lamiga $LIBS"
1162: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1163: #line 1164 "configure"
1.1.1.3 root 1164: #include "confdefs.h"
1165: /* Override any gcc2 internal prototype to avoid an error. */
1166: /* We use char because int might match the return type of a gcc2
1167: builtin and then its argument prototype would still apply. */
1168: char OpenLibrary();
1169:
1.1.1.4 root 1170: int main() {
1.1.1.3 root 1171: OpenLibrary()
1172: ; return 0; }
1173: EOF
1.1.1.7 ! root 1174: if { (eval echo configure:1175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.3 root 1175: rm -rf conftest*
1176: eval "ac_cv_lib_$ac_lib_var=yes"
1177: else
1.1.1.4 root 1178: echo "configure: failed program was:" >&5
1179: cat conftest.$ac_ext >&5
1.1.1.3 root 1180: rm -rf conftest*
1181: eval "ac_cv_lib_$ac_lib_var=no"
1182: fi
1183: rm -f conftest*
1184: LIBS="$ac_save_LIBS"
1185:
1186: fi
1187: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1188: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1189: HAVE_AMIGA_LIB=yes
1.1.1.3 root 1190: else
1191: echo "$ac_t""no" 1>&6
1192: HAVE_AMIGA_LIB=n
1193: fi
1194:
1.1.1.4 root 1195: echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6
1.1.1.7 ! root 1196: echo "configure:1197: checking for vga_setmode in -lvga" >&5
1.1.1.4 root 1197: ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'`
1.1 root 1198: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1199: echo $ac_n "(cached) $ac_c" 1>&6
1200: else
1201: ac_save_LIBS="$LIBS"
1202: LIBS="-lvga $LIBS"
1203: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1204: #line 1205 "configure"
1.1 root 1205: #include "confdefs.h"
1206: /* Override any gcc2 internal prototype to avoid an error. */
1207: /* We use char because int might match the return type of a gcc2
1208: builtin and then its argument prototype would still apply. */
1209: char vga_setmode();
1210:
1.1.1.4 root 1211: int main() {
1.1 root 1212: vga_setmode()
1213: ; return 0; }
1214: EOF
1.1.1.7 ! root 1215: if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1216: rm -rf conftest*
1217: eval "ac_cv_lib_$ac_lib_var=yes"
1218: else
1.1.1.4 root 1219: echo "configure: failed program was:" >&5
1220: cat conftest.$ac_ext >&5
1.1 root 1221: rm -rf conftest*
1222: eval "ac_cv_lib_$ac_lib_var=no"
1223: fi
1224: rm -f conftest*
1225: LIBS="$ac_save_LIBS"
1226:
1227: fi
1228: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1229: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1230: HAVE_SVGA_LIB=yes
1.1 root 1231: else
1232: echo "$ac_t""no" 1>&6
1.1.1.4 root 1233: HAVE_SVGA_LIB=no
1.1 root 1234: fi
1235:
1.1.1.4 root 1236: echo $ac_n "checking for AFOpenAudioConn in -lAF""... $ac_c" 1>&6
1.1.1.7 ! root 1237: echo "configure:1238: checking for AFOpenAudioConn in -lAF" >&5
1.1.1.4 root 1238: ac_lib_var=`echo AF'_'AFOpenAudioConn | sed 'y%./+-%__p_%'`
1.1 root 1239: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1240: echo $ac_n "(cached) $ac_c" 1>&6
1241: else
1242: ac_save_LIBS="$LIBS"
1243: LIBS="-lAF $LIBS"
1244: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1245: #line 1246 "configure"
1.1 root 1246: #include "confdefs.h"
1247: /* Override any gcc2 internal prototype to avoid an error. */
1248: /* We use char because int might match the return type of a gcc2
1249: builtin and then its argument prototype would still apply. */
1250: char AFOpenAudioConn();
1251:
1.1.1.4 root 1252: int main() {
1.1 root 1253: AFOpenAudioConn()
1254: ; return 0; }
1255: EOF
1.1.1.7 ! root 1256: if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1257: rm -rf conftest*
1258: eval "ac_cv_lib_$ac_lib_var=yes"
1259: else
1260: echo "configure: failed program was:" >&5
1261: cat conftest.$ac_ext >&5
1262: rm -rf conftest*
1263: eval "ac_cv_lib_$ac_lib_var=no"
1264: fi
1265: rm -f conftest*
1266: LIBS="$ac_save_LIBS"
1267:
1268: fi
1269: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1270: echo "$ac_t""yes" 1>&6
1271: HAVE_AF_LIB=yes
1272: else
1273: echo "$ac_t""no" 1>&6
1274: HAVE_AF_LIB=no
1275: fi
1276:
1.1.1.6 root 1277: echo $ac_n "checking for waveOutGetNumDevs in -lmme""... $ac_c" 1>&6
1.1.1.7 ! root 1278: echo "configure:1279: checking for waveOutGetNumDevs in -lmme" >&5
1.1.1.6 root 1279: ac_lib_var=`echo mme'_'waveOutGetNumDevs | sed 'y%./+-%__p_%'`
1280: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1281: echo $ac_n "(cached) $ac_c" 1>&6
1282: else
1283: ac_save_LIBS="$LIBS"
1284: LIBS="-lmme $LIBS"
1285: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1286: #line 1287 "configure"
1.1.1.6 root 1287: #include "confdefs.h"
1288: /* Override any gcc2 internal prototype to avoid an error. */
1289: /* We use char because int might match the return type of a gcc2
1290: builtin and then its argument prototype would still apply. */
1291: char waveOutGetNumDevs();
1292:
1293: int main() {
1294: waveOutGetNumDevs()
1295: ; return 0; }
1296: EOF
1.1.1.7 ! root 1297: if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 1298: rm -rf conftest*
1299: eval "ac_cv_lib_$ac_lib_var=yes"
1300: else
1301: echo "configure: failed program was:" >&5
1302: cat conftest.$ac_ext >&5
1303: rm -rf conftest*
1304: eval "ac_cv_lib_$ac_lib_var=no"
1305: fi
1306: rm -f conftest*
1307: LIBS="$ac_save_LIBS"
1308:
1309: fi
1310: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1311: echo "$ac_t""yes" 1>&6
1312: HAVE_MME_LIB=yes
1313: else
1314: echo "$ac_t""no" 1>&6
1315: HAVE_MME_LIB=no
1316: fi
1317:
1.1.1.4 root 1318: echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
1.1.1.7 ! root 1319: echo "configure:1320: checking for waddch in -lncurses" >&5
1.1.1.4 root 1320: ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
1321: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322: echo $ac_n "(cached) $ac_c" 1>&6
1323: else
1324: ac_save_LIBS="$LIBS"
1325: LIBS="-lncurses $LIBS"
1326: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1327: #line 1328 "configure"
1.1.1.4 root 1328: #include "confdefs.h"
1329: /* Override any gcc2 internal prototype to avoid an error. */
1330: /* We use char because int might match the return type of a gcc2
1331: builtin and then its argument prototype would still apply. */
1332: char waddch();
1333:
1334: int main() {
1335: waddch()
1336: ; return 0; }
1337: EOF
1.1.1.7 ! root 1338: if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1339: rm -rf conftest*
1340: eval "ac_cv_lib_$ac_lib_var=yes"
1341: else
1342: echo "configure: failed program was:" >&5
1343: cat conftest.$ac_ext >&5
1344: rm -rf conftest*
1345: eval "ac_cv_lib_$ac_lib_var=no"
1346: fi
1347: rm -f conftest*
1348: LIBS="$ac_save_LIBS"
1349:
1350: fi
1351: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352: echo "$ac_t""yes" 1>&6
1353: HAVE_NCURSES_LIB=yes
1354: else
1355: echo "$ac_t""no" 1>&6
1356: HAVE_NCURSES_LIB=no
1357: fi
1358:
1.1.1.6 root 1359: echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1.1.1.7 ! root 1360: echo "configure:1361: checking for sem_init in -lposix4" >&5
1.1.1.6 root 1361: ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4 root 1362: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1363: echo $ac_n "(cached) $ac_c" 1>&6
1364: else
1365: ac_save_LIBS="$LIBS"
1.1.1.6 root 1366: LIBS="-lposix4 $LIBS"
1.1.1.4 root 1367: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1368: #line 1369 "configure"
1.1.1.4 root 1369: #include "confdefs.h"
1370: /* Override any gcc2 internal prototype to avoid an error. */
1371: /* We use char because int might match the return type of a gcc2
1372: builtin and then its argument prototype would still apply. */
1.1.1.6 root 1373: char sem_init();
1.1.1.4 root 1374:
1375: int main() {
1.1.1.6 root 1376: sem_init()
1.1.1.4 root 1377: ; return 0; }
1378: EOF
1.1.1.7 ! root 1379: if { (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1380: rm -rf conftest*
1381: eval "ac_cv_lib_$ac_lib_var=yes"
1382: else
1383: echo "configure: failed program was:" >&5
1384: cat conftest.$ac_ext >&5
1385: rm -rf conftest*
1386: eval "ac_cv_lib_$ac_lib_var=no"
1387: fi
1388: rm -f conftest*
1389: LIBS="$ac_save_LIBS"
1390:
1391: fi
1392: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1393: echo "$ac_t""yes" 1>&6
1.1.1.6 root 1394: HAVE_POSIX4_LIB=yes
1.1.1.4 root 1395: else
1396: echo "$ac_t""no" 1>&6
1.1.1.6 root 1397: HAVE_POSIX4_LIB=no
1.1.1.4 root 1398: fi
1399:
1.1.1.6 root 1400: echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
1.1.1.7 ! root 1401: echo "configure:1402: checking for sem_init in -lrt" >&5
1.1.1.6 root 1402: ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4 root 1403: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1404: echo $ac_n "(cached) $ac_c" 1>&6
1405: else
1406: ac_save_LIBS="$LIBS"
1.1.1.6 root 1407: LIBS="-lrt $LIBS"
1.1.1.4 root 1408: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1409: #line 1410 "configure"
1.1.1.4 root 1410: #include "confdefs.h"
1411: /* Override any gcc2 internal prototype to avoid an error. */
1412: /* We use char because int might match the return type of a gcc2
1413: builtin and then its argument prototype would still apply. */
1414: char sem_init();
1415:
1416: int main() {
1417: sem_init()
1418: ; return 0; }
1419: EOF
1.1.1.7 ! root 1420: if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1421: rm -rf conftest*
1422: eval "ac_cv_lib_$ac_lib_var=yes"
1423: else
1424: echo "configure: failed program was:" >&5
1425: cat conftest.$ac_ext >&5
1426: rm -rf conftest*
1427: eval "ac_cv_lib_$ac_lib_var=no"
1428: fi
1429: rm -f conftest*
1430: LIBS="$ac_save_LIBS"
1431:
1432: fi
1433: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1434: echo "$ac_t""yes" 1>&6
1.1.1.6 root 1435: HAVE_RT_LIB=yes
1.1.1.4 root 1436: else
1437: echo "$ac_t""no" 1>&6
1.1.1.6 root 1438: HAVE_RT_LIB=no
1.1.1.4 root 1439: fi
1440:
1441: echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
1.1.1.7 ! root 1442: echo "configure:1443: checking for ggiInit in -lggi" >&5
1.1.1.4 root 1443: ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'`
1444: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1445: echo $ac_n "(cached) $ac_c" 1>&6
1446: else
1447: ac_save_LIBS="$LIBS"
1448: LIBS="-lggi $LIBS"
1449: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1450: #line 1451 "configure"
1.1.1.4 root 1451: #include "confdefs.h"
1452: /* Override any gcc2 internal prototype to avoid an error. */
1453: /* We use char because int might match the return type of a gcc2
1454: builtin and then its argument prototype would still apply. */
1455: char ggiInit();
1456:
1457: int main() {
1458: ggiInit()
1459: ; return 0; }
1460: EOF
1.1.1.7 ! root 1461: if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1462: rm -rf conftest*
1463: eval "ac_cv_lib_$ac_lib_var=yes"
1464: else
1.1.1.4 root 1465: echo "configure: failed program was:" >&5
1466: cat conftest.$ac_ext >&5
1.1 root 1467: rm -rf conftest*
1468: eval "ac_cv_lib_$ac_lib_var=no"
1469: fi
1470: rm -f conftest*
1471: LIBS="$ac_save_LIBS"
1472:
1473: fi
1474: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1475: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1476: HAVE_GGI_LIB=yes
1.1 root 1477: else
1478: echo "$ac_t""no" 1>&6
1.1.1.4 root 1479: HAVE_GGI_LIB=no
1.1 root 1480: fi
1481:
1482:
1483: # If we find X, set shell vars x_includes and x_libraries to the
1484: # paths, otherwise set no_x=yes.
1485: # Uses ac_ vars as temps to allow command line to override cache and checks.
1486: # --without-x overrides everything else, but does not touch the cache.
1487: echo $ac_n "checking for X""... $ac_c" 1>&6
1.1.1.7 ! root 1488: echo "configure:1489: checking for X" >&5
1.1 root 1489:
1490: # Check whether --with-x or --without-x was given.
1491: if test "${with_x+set}" = set; then
1492: withval="$with_x"
1493: :
1494: fi
1495:
1496: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1497: if test "x$with_x" = xno; then
1498: # The user explicitly disabled X.
1499: have_x=disabled
1500: else
1501: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1502: # Both variables are already set.
1503: have_x=yes
1504: else
1505: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1506: echo $ac_n "(cached) $ac_c" 1>&6
1507: else
1508: # One or both of the vars are not set, and there is no cached value.
1509: ac_x_includes=NO ac_x_libraries=NO
1510: rm -fr conftestdir
1511: if mkdir conftestdir; then
1512: cd conftestdir
1513: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1514: cat > Imakefile <<'EOF'
1515: acfindx:
1516: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1517: EOF
1518: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1519: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1520: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1521: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1522: for ac_extension in a so sl; do
1523: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1524: test -f $ac_im_libdir/libX11.$ac_extension; then
1525: ac_im_usrlibdir=$ac_im_libdir; break
1526: fi
1527: done
1.1.1.4 root 1528: # Screen out bogus values from the imake configuration. They are
1529: # bogus both because they are the default anyway, and because
1530: # using them would break gcc on systems where it needs fixed includes.
1.1 root 1531: case "$ac_im_incroot" in
1532: /usr/include) ;;
1533: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1534: esac
1535: case "$ac_im_usrlibdir" in
1536: /usr/lib | /lib) ;;
1537: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1538: esac
1539: fi
1540: cd ..
1541: rm -fr conftestdir
1542: fi
1543:
1544: if test "$ac_x_includes" = NO; then
1545: # Guess where to find include files, by looking for this one X11 .h file.
1546: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1547:
1548: # First, try using that file with no special directory specified.
1549: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1550: #line 1551 "configure"
1.1 root 1551: #include "confdefs.h"
1552: #include <$x_direct_test_include>
1553: EOF
1554: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 1555: { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 1556: ac_err=`grep -v '^ *+' conftest.out`
1557: if test -z "$ac_err"; then
1558: rm -rf conftest*
1559: # We can compile using X headers with no special include directory.
1560: ac_x_includes=
1561: else
1562: echo "$ac_err" >&5
1.1.1.4 root 1563: echo "configure: failed program was:" >&5
1564: cat conftest.$ac_ext >&5
1.1 root 1565: rm -rf conftest*
1566: # Look for the header file in a standard set of common directories.
1.1.1.4 root 1567: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1 root 1568: for ac_dir in \
1.1.1.4 root 1569: /usr/X11/include \
1.1 root 1570: /usr/X11R6/include \
1571: /usr/X11R5/include \
1572: /usr/X11R4/include \
1573: \
1.1.1.4 root 1574: /usr/include/X11 \
1.1 root 1575: /usr/include/X11R6 \
1576: /usr/include/X11R5 \
1577: /usr/include/X11R4 \
1578: \
1.1.1.4 root 1579: /usr/local/X11/include \
1.1 root 1580: /usr/local/X11R6/include \
1581: /usr/local/X11R5/include \
1582: /usr/local/X11R4/include \
1583: \
1.1.1.4 root 1584: /usr/local/include/X11 \
1.1 root 1585: /usr/local/include/X11R6 \
1586: /usr/local/include/X11R5 \
1587: /usr/local/include/X11R4 \
1588: \
1589: /usr/X386/include \
1590: /usr/x386/include \
1591: /usr/XFree86/include/X11 \
1592: \
1593: /usr/include \
1594: /usr/local/include \
1595: /usr/unsupported/include \
1596: /usr/athena/include \
1597: /usr/local/x11r5/include \
1598: /usr/lpp/Xamples/include \
1599: \
1600: /usr/openwin/include \
1601: /usr/openwin/share/include \
1602: ; \
1603: do
1604: if test -r "$ac_dir/$x_direct_test_include"; then
1605: ac_x_includes=$ac_dir
1606: break
1607: fi
1608: done
1609: fi
1610: rm -f conftest*
1611: fi # $ac_x_includes = NO
1612:
1613: if test "$ac_x_libraries" = NO; then
1614: # Check for the libraries.
1615:
1616: test -z "$x_direct_test_library" && x_direct_test_library=Xt
1617: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1618:
1619: # See if we find them without any special options.
1620: # Don't add to $LIBS permanently.
1621: ac_save_LIBS="$LIBS"
1622: LIBS="-l$x_direct_test_library $LIBS"
1623: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1624: #line 1625 "configure"
1.1 root 1625: #include "confdefs.h"
1626:
1.1.1.4 root 1627: int main() {
1.1 root 1628: ${x_direct_test_function}()
1629: ; return 0; }
1630: EOF
1.1.1.7 ! root 1631: if { (eval echo configure:1632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1632: rm -rf conftest*
1633: LIBS="$ac_save_LIBS"
1634: # We can link X programs with no special library path.
1635: ac_x_libraries=
1636: else
1.1.1.4 root 1637: echo "configure: failed program was:" >&5
1638: cat conftest.$ac_ext >&5
1.1 root 1639: rm -rf conftest*
1640: LIBS="$ac_save_LIBS"
1641: # First see if replacing the include by lib works.
1.1.1.4 root 1642: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1 root 1643: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1.1.1.4 root 1644: /usr/X11/lib \
1.1 root 1645: /usr/X11R6/lib \
1646: /usr/X11R5/lib \
1647: /usr/X11R4/lib \
1648: \
1.1.1.4 root 1649: /usr/lib/X11 \
1.1 root 1650: /usr/lib/X11R6 \
1651: /usr/lib/X11R5 \
1652: /usr/lib/X11R4 \
1653: \
1.1.1.4 root 1654: /usr/local/X11/lib \
1.1 root 1655: /usr/local/X11R6/lib \
1656: /usr/local/X11R5/lib \
1657: /usr/local/X11R4/lib \
1658: \
1.1.1.4 root 1659: /usr/local/lib/X11 \
1.1 root 1660: /usr/local/lib/X11R6 \
1661: /usr/local/lib/X11R5 \
1662: /usr/local/lib/X11R4 \
1663: \
1664: /usr/X386/lib \
1665: /usr/x386/lib \
1666: /usr/XFree86/lib/X11 \
1667: \
1668: /usr/lib \
1669: /usr/local/lib \
1670: /usr/unsupported/lib \
1671: /usr/athena/lib \
1672: /usr/local/x11r5/lib \
1673: /usr/lpp/Xamples/lib \
1.1.1.4 root 1674: /lib/usr/lib/X11 \
1.1 root 1675: \
1676: /usr/openwin/lib \
1677: /usr/openwin/share/lib \
1678: ; \
1679: do
1680: for ac_extension in a so sl; do
1681: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1682: ac_x_libraries=$ac_dir
1683: break 2
1684: fi
1685: done
1686: done
1687: fi
1688: rm -f conftest*
1689: fi # $ac_x_libraries = NO
1690:
1691: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1692: # Didn't find X anywhere. Cache the known absence of X.
1693: ac_cv_have_x="have_x=no"
1694: else
1695: # Record where we found X for the cache.
1696: ac_cv_have_x="have_x=yes \
1697: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1698: fi
1699: fi
1700: fi
1701: eval "$ac_cv_have_x"
1702: fi # $with_x != no
1703:
1704: if test "$have_x" != yes; then
1705: echo "$ac_t""$have_x" 1>&6
1706: no_x=yes
1707: else
1708: # If each of the values was on the command line, it overrides each guess.
1709: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1710: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1711: # Update the cache value to reflect the command line values.
1712: ac_cv_have_x="have_x=yes \
1713: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1714: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1715: fi
1716:
1717: if test "$no_x" = yes; then
1718: # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.4 root 1719: cat >> confdefs.h <<\EOF
1720: #define X_DISPLAY_MISSING 1
1721: EOF
1722:
1723: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 root 1724: else
1725: if test -n "$x_includes"; then
1726: X_CFLAGS="$X_CFLAGS -I$x_includes"
1727: fi
1728:
1729: # It would also be nice to do this for all -L options, not just this one.
1730: if test -n "$x_libraries"; then
1731: X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4 root 1732: # For Solaris; some versions of Sun CC require a space after -R and
1733: # others require no space. Words are not sufficient . . . .
1734: case "`(uname -sr) 2>/dev/null`" in
1735: "SunOS 5"*)
1736: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.1.1.7 ! root 1737: echo "configure:1738: checking whether -R must be followed by a space" >&5
1.1.1.4 root 1738: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1739: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1740: #line 1741 "configure"
1.1.1.4 root 1741: #include "confdefs.h"
1.1 root 1742:
1.1.1.4 root 1743: int main() {
1.1 root 1744:
1.1.1.4 root 1745: ; return 0; }
1746: EOF
1.1.1.7 ! root 1747: if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1748: rm -rf conftest*
1749: ac_R_nospace=yes
1.1 root 1750: else
1.1.1.4 root 1751: echo "configure: failed program was:" >&5
1752: cat conftest.$ac_ext >&5
1753: rm -rf conftest*
1754: ac_R_nospace=no
1755: fi
1756: rm -f conftest*
1757: if test $ac_R_nospace = yes; then
1758: echo "$ac_t""no" 1>&6
1759: X_LIBS="$X_LIBS -R$x_libraries"
1760: else
1761: LIBS="$ac_xsave_LIBS -R $x_libraries"
1762: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1763: #line 1764 "configure"
1.1 root 1764: #include "confdefs.h"
1765:
1.1.1.4 root 1766: int main() {
1767:
1.1 root 1768: ; return 0; }
1769: EOF
1.1.1.7 ! root 1770: if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1771: rm -rf conftest*
1.1.1.4 root 1772: ac_R_space=yes
1.1 root 1773: else
1.1.1.4 root 1774: echo "configure: failed program was:" >&5
1775: cat conftest.$ac_ext >&5
1.1 root 1776: rm -rf conftest*
1.1.1.4 root 1777: ac_R_space=no
1.1 root 1778: fi
1779: rm -f conftest*
1.1.1.4 root 1780: if test $ac_R_space = yes; then
1781: echo "$ac_t""yes" 1>&6
1782: X_LIBS="$X_LIBS -R $x_libraries"
1783: else
1784: echo "$ac_t""neither works" 1>&6
1785: fi
1786: fi
1787: LIBS="$ac_xsave_LIBS"
1788: esac
1789: fi
1.1 root 1790:
1791: # Check for system-dependent libraries X programs must link with.
1.1.1.4 root 1792: # Do this before checking for the system-independent R6 libraries
1793: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 root 1794:
1795: if test "$ISC" = yes; then
1796: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1797: else
1798: # [email protected] says this is needed for Ultrix, if the X
1799: # libraries were built with DECnet support. And [email protected] says
1800: # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.4 root 1801: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.1.1.7 ! root 1802: echo "configure:1803: checking for dnet_ntoa in -ldnet" >&5
1.1.1.4 root 1803: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1 root 1804: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1805: echo $ac_n "(cached) $ac_c" 1>&6
1806: else
1807: ac_save_LIBS="$LIBS"
1808: LIBS="-ldnet $LIBS"
1809: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1810: #line 1811 "configure"
1.1 root 1811: #include "confdefs.h"
1812: /* Override any gcc2 internal prototype to avoid an error. */
1813: /* We use char because int might match the return type of a gcc2
1814: builtin and then its argument prototype would still apply. */
1815: char dnet_ntoa();
1816:
1.1.1.4 root 1817: int main() {
1.1 root 1818: dnet_ntoa()
1819: ; return 0; }
1820: EOF
1.1.1.7 ! root 1821: if { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1822: rm -rf conftest*
1823: eval "ac_cv_lib_$ac_lib_var=yes"
1824: else
1.1.1.4 root 1825: echo "configure: failed program was:" >&5
1826: cat conftest.$ac_ext >&5
1.1 root 1827: rm -rf conftest*
1828: eval "ac_cv_lib_$ac_lib_var=no"
1829: fi
1830: rm -f conftest*
1831: LIBS="$ac_save_LIBS"
1832:
1833: fi
1834: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1835: echo "$ac_t""yes" 1>&6
1836: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1837: else
1838: echo "$ac_t""no" 1>&6
1839: fi
1840:
1841: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.4 root 1842: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.1.1.7 ! root 1843: echo "configure:1844: checking for dnet_ntoa in -ldnet_stub" >&5
1.1.1.4 root 1844: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1 root 1845: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1846: echo $ac_n "(cached) $ac_c" 1>&6
1847: else
1848: ac_save_LIBS="$LIBS"
1849: LIBS="-ldnet_stub $LIBS"
1850: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1851: #line 1852 "configure"
1.1 root 1852: #include "confdefs.h"
1853: /* Override any gcc2 internal prototype to avoid an error. */
1854: /* We use char because int might match the return type of a gcc2
1855: builtin and then its argument prototype would still apply. */
1856: char dnet_ntoa();
1857:
1.1.1.4 root 1858: int main() {
1.1 root 1859: dnet_ntoa()
1860: ; return 0; }
1861: EOF
1.1.1.7 ! root 1862: if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1863: rm -rf conftest*
1864: eval "ac_cv_lib_$ac_lib_var=yes"
1865: else
1.1.1.4 root 1866: echo "configure: failed program was:" >&5
1867: cat conftest.$ac_ext >&5
1.1 root 1868: rm -rf conftest*
1869: eval "ac_cv_lib_$ac_lib_var=no"
1870: fi
1871: rm -f conftest*
1872: LIBS="$ac_save_LIBS"
1873:
1874: fi
1875: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1876: echo "$ac_t""yes" 1>&6
1877: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1878: else
1879: echo "$ac_t""no" 1>&6
1880: fi
1881:
1882: fi
1883:
1884: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
1885: # to get the SysV transport functions.
1.1.1.4 root 1886: # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4)
1887: # needs -lnsl.
1888: # The nsl library prevents programs from opening the X display
1889: # on Irix 5.2, according to [email protected].
1890: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.1.1.7 ! root 1891: echo "configure:1892: checking for gethostbyname" >&5
1.1.1.4 root 1892: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1893: echo $ac_n "(cached) $ac_c" 1>&6
1894: else
1895: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1896: #line 1897 "configure"
1.1.1.4 root 1897: #include "confdefs.h"
1898: /* System header to define __stub macros and hopefully few prototypes,
1899: which can conflict with char gethostbyname(); below. */
1900: #include <assert.h>
1901: /* Override any gcc2 internal prototype to avoid an error. */
1902: /* We use char because int might match the return type of a gcc2
1903: builtin and then its argument prototype would still apply. */
1904: char gethostbyname();
1905:
1906: int main() {
1907:
1908: /* The GNU C library defines this for functions which it implements
1909: to always fail with ENOSYS. Some functions are actually named
1910: something starting with __ and the normal name is an alias. */
1911: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1912: choke me
1913: #else
1914: gethostbyname();
1915: #endif
1916:
1917: ; return 0; }
1918: EOF
1.1.1.7 ! root 1919: if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1920: rm -rf conftest*
1921: eval "ac_cv_func_gethostbyname=yes"
1922: else
1923: echo "configure: failed program was:" >&5
1924: cat conftest.$ac_ext >&5
1925: rm -rf conftest*
1926: eval "ac_cv_func_gethostbyname=no"
1927: fi
1928: rm -f conftest*
1929: fi
1930:
1931: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1932: echo "$ac_t""yes" 1>&6
1933: :
1934: else
1935: echo "$ac_t""no" 1>&6
1936: fi
1937:
1938: if test $ac_cv_func_gethostbyname = no; then
1939: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.1.1.7 ! root 1940: echo "configure:1941: checking for gethostbyname in -lnsl" >&5
1.1.1.4 root 1941: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1.1 root 1942: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943: echo $ac_n "(cached) $ac_c" 1>&6
1944: else
1945: ac_save_LIBS="$LIBS"
1946: LIBS="-lnsl $LIBS"
1947: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1948: #line 1949 "configure"
1.1 root 1949: #include "confdefs.h"
1950: /* Override any gcc2 internal prototype to avoid an error. */
1951: /* We use char because int might match the return type of a gcc2
1952: builtin and then its argument prototype would still apply. */
1.1.1.4 root 1953: char gethostbyname();
1.1 root 1954:
1.1.1.4 root 1955: int main() {
1956: gethostbyname()
1.1 root 1957: ; return 0; }
1958: EOF
1.1.1.7 ! root 1959: if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1960: rm -rf conftest*
1961: eval "ac_cv_lib_$ac_lib_var=yes"
1962: else
1.1.1.4 root 1963: echo "configure: failed program was:" >&5
1964: cat conftest.$ac_ext >&5
1.1 root 1965: rm -rf conftest*
1966: eval "ac_cv_lib_$ac_lib_var=no"
1967: fi
1968: rm -f conftest*
1969: LIBS="$ac_save_LIBS"
1970:
1971: fi
1972: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973: echo "$ac_t""yes" 1>&6
1974: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1975: else
1976: echo "$ac_t""no" 1>&6
1977: fi
1978:
1.1.1.4 root 1979: fi
1.1 root 1980:
1981: # [email protected] says without -lsocket,
1.1.1.4 root 1982: # socket/setsockopt and other routines are undefined under SCO ODT
1983: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1984: # on later versions), says [email protected]: it contains
1985: # gethostby* variants that don't use the nameserver (or something).
1986: # -lsocket must be given before -lnsl if both are needed.
1987: # We assume that if connect needs -lnsl, so does gethostbyname.
1988: echo $ac_n "checking for connect""... $ac_c" 1>&6
1.1.1.7 ! root 1989: echo "configure:1990: checking for connect" >&5
1.1.1.4 root 1990: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1991: echo $ac_n "(cached) $ac_c" 1>&6
1992: else
1993: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 1994: #line 1995 "configure"
1.1.1.4 root 1995: #include "confdefs.h"
1996: /* System header to define __stub macros and hopefully few prototypes,
1997: which can conflict with char connect(); below. */
1998: #include <assert.h>
1999: /* Override any gcc2 internal prototype to avoid an error. */
2000: /* We use char because int might match the return type of a gcc2
2001: builtin and then its argument prototype would still apply. */
2002: char connect();
2003:
2004: int main() {
2005:
2006: /* The GNU C library defines this for functions which it implements
2007: to always fail with ENOSYS. Some functions are actually named
2008: something starting with __ and the normal name is an alias. */
2009: #if defined (__stub_connect) || defined (__stub___connect)
2010: choke me
2011: #else
2012: connect();
2013: #endif
2014:
2015: ; return 0; }
2016: EOF
1.1.1.7 ! root 2017: if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2018: rm -rf conftest*
2019: eval "ac_cv_func_connect=yes"
2020: else
2021: echo "configure: failed program was:" >&5
2022: cat conftest.$ac_ext >&5
2023: rm -rf conftest*
2024: eval "ac_cv_func_connect=no"
2025: fi
2026: rm -f conftest*
2027: fi
2028:
2029: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2030: echo "$ac_t""yes" 1>&6
2031: :
2032: else
2033: echo "$ac_t""no" 1>&6
2034: fi
2035:
2036: if test $ac_cv_func_connect = no; then
2037: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.1.1.7 ! root 2038: echo "configure:2039: checking for connect in -lsocket" >&5
1.1.1.4 root 2039: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1.1 root 2040: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2041: echo $ac_n "(cached) $ac_c" 1>&6
2042: else
2043: ac_save_LIBS="$LIBS"
1.1.1.4 root 2044: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1 root 2045: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2046: #line 2047 "configure"
1.1 root 2047: #include "confdefs.h"
2048: /* Override any gcc2 internal prototype to avoid an error. */
2049: /* We use char because int might match the return type of a gcc2
2050: builtin and then its argument prototype would still apply. */
1.1.1.4 root 2051: char connect();
1.1 root 2052:
1.1.1.4 root 2053: int main() {
2054: connect()
1.1 root 2055: ; return 0; }
2056: EOF
1.1.1.7 ! root 2057: if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 2058: rm -rf conftest*
2059: eval "ac_cv_lib_$ac_lib_var=yes"
2060: else
1.1.1.4 root 2061: echo "configure: failed program was:" >&5
2062: cat conftest.$ac_ext >&5
1.1 root 2063: rm -rf conftest*
2064: eval "ac_cv_lib_$ac_lib_var=no"
2065: fi
2066: rm -f conftest*
2067: LIBS="$ac_save_LIBS"
2068:
2069: fi
2070: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2071: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2072: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2073: else
2074: echo "$ac_t""no" 1>&6
2075: fi
2076:
2077: fi
2078:
2079: # [email protected] says -lposix is necessary on A/UX.
2080: echo $ac_n "checking for remove""... $ac_c" 1>&6
1.1.1.7 ! root 2081: echo "configure:2082: checking for remove" >&5
1.1.1.4 root 2082: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2083: echo $ac_n "(cached) $ac_c" 1>&6
2084: else
2085: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2086: #line 2087 "configure"
1.1.1.4 root 2087: #include "confdefs.h"
2088: /* System header to define __stub macros and hopefully few prototypes,
2089: which can conflict with char remove(); below. */
2090: #include <assert.h>
2091: /* Override any gcc2 internal prototype to avoid an error. */
2092: /* We use char because int might match the return type of a gcc2
2093: builtin and then its argument prototype would still apply. */
2094: char remove();
2095:
2096: int main() {
2097:
2098: /* The GNU C library defines this for functions which it implements
2099: to always fail with ENOSYS. Some functions are actually named
2100: something starting with __ and the normal name is an alias. */
2101: #if defined (__stub_remove) || defined (__stub___remove)
2102: choke me
2103: #else
2104: remove();
2105: #endif
2106:
2107: ; return 0; }
2108: EOF
1.1.1.7 ! root 2109: if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2110: rm -rf conftest*
2111: eval "ac_cv_func_remove=yes"
2112: else
2113: echo "configure: failed program was:" >&5
2114: cat conftest.$ac_ext >&5
2115: rm -rf conftest*
2116: eval "ac_cv_func_remove=no"
2117: fi
2118: rm -f conftest*
2119: fi
2120:
2121: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2122: echo "$ac_t""yes" 1>&6
2123: :
2124: else
2125: echo "$ac_t""no" 1>&6
2126: fi
2127:
2128: if test $ac_cv_func_remove = no; then
2129: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.1.1.7 ! root 2130: echo "configure:2131: checking for remove in -lposix" >&5
1.1.1.4 root 2131: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2132: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2133: echo $ac_n "(cached) $ac_c" 1>&6
2134: else
2135: ac_save_LIBS="$LIBS"
2136: LIBS="-lposix $LIBS"
2137: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2138: #line 2139 "configure"
1.1.1.4 root 2139: #include "confdefs.h"
2140: /* Override any gcc2 internal prototype to avoid an error. */
2141: /* We use char because int might match the return type of a gcc2
2142: builtin and then its argument prototype would still apply. */
2143: char remove();
2144:
2145: int main() {
2146: remove()
2147: ; return 0; }
2148: EOF
1.1.1.7 ! root 2149: if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2150: rm -rf conftest*
2151: eval "ac_cv_lib_$ac_lib_var=yes"
2152: else
2153: echo "configure: failed program was:" >&5
2154: cat conftest.$ac_ext >&5
2155: rm -rf conftest*
2156: eval "ac_cv_lib_$ac_lib_var=no"
2157: fi
2158: rm -f conftest*
2159: LIBS="$ac_save_LIBS"
2160:
2161: fi
2162: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2163: echo "$ac_t""yes" 1>&6
2164: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2165: else
2166: echo "$ac_t""no" 1>&6
2167: fi
2168:
2169: fi
2170:
2171: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2172: echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.1.1.7 ! root 2173: echo "configure:2174: checking for shmat" >&5
1.1.1.4 root 2174: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2175: echo $ac_n "(cached) $ac_c" 1>&6
2176: else
2177: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2178: #line 2179 "configure"
1.1.1.4 root 2179: #include "confdefs.h"
2180: /* System header to define __stub macros and hopefully few prototypes,
2181: which can conflict with char shmat(); below. */
2182: #include <assert.h>
2183: /* Override any gcc2 internal prototype to avoid an error. */
2184: /* We use char because int might match the return type of a gcc2
2185: builtin and then its argument prototype would still apply. */
2186: char shmat();
2187:
2188: int main() {
2189:
2190: /* The GNU C library defines this for functions which it implements
2191: to always fail with ENOSYS. Some functions are actually named
2192: something starting with __ and the normal name is an alias. */
2193: #if defined (__stub_shmat) || defined (__stub___shmat)
2194: choke me
2195: #else
2196: shmat();
2197: #endif
2198:
2199: ; return 0; }
2200: EOF
1.1.1.7 ! root 2201: if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2202: rm -rf conftest*
2203: eval "ac_cv_func_shmat=yes"
2204: else
2205: echo "configure: failed program was:" >&5
2206: cat conftest.$ac_ext >&5
2207: rm -rf conftest*
2208: eval "ac_cv_func_shmat=no"
2209: fi
2210: rm -f conftest*
2211: fi
2212:
2213: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2214: echo "$ac_t""yes" 1>&6
2215: :
2216: else
2217: echo "$ac_t""no" 1>&6
2218: fi
2219:
2220: if test $ac_cv_func_shmat = no; then
2221: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.1.1.7 ! root 2222: echo "configure:2223: checking for shmat in -lipc" >&5
1.1.1.4 root 2223: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2224: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2225: echo $ac_n "(cached) $ac_c" 1>&6
2226: else
2227: ac_save_LIBS="$LIBS"
2228: LIBS="-lipc $LIBS"
2229: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2230: #line 2231 "configure"
1.1.1.4 root 2231: #include "confdefs.h"
2232: /* Override any gcc2 internal prototype to avoid an error. */
2233: /* We use char because int might match the return type of a gcc2
2234: builtin and then its argument prototype would still apply. */
2235: char shmat();
2236:
2237: int main() {
2238: shmat()
2239: ; return 0; }
2240: EOF
1.1.1.7 ! root 2241: if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2242: rm -rf conftest*
2243: eval "ac_cv_lib_$ac_lib_var=yes"
2244: else
2245: echo "configure: failed program was:" >&5
2246: cat conftest.$ac_ext >&5
2247: rm -rf conftest*
2248: eval "ac_cv_lib_$ac_lib_var=no"
2249: fi
2250: rm -f conftest*
2251: LIBS="$ac_save_LIBS"
2252:
2253: fi
2254: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255: echo "$ac_t""yes" 1>&6
2256: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1 root 2257: else
2258: echo "$ac_t""no" 1>&6
2259: fi
2260:
2261: fi
2262: fi
1.1.1.4 root 2263:
2264: # Check for libraries that X11R6 Xt/Xaw programs need.
2265: ac_save_LDFLAGS="$LDFLAGS"
2266: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2267: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2268: # check for ICE first), but we must link in the order -lSM -lICE or
2269: # we get undefined symbols. So assume we have SM if we have ICE.
2270: # These have to be linked with before -lX11, unlike the other
2271: # libraries we check for below, so use a different variable.
2272: # [email protected], [email protected].
2273: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.1.1.7 ! root 2274: echo "configure:2275: checking for IceConnectionNumber in -lICE" >&5
1.1.1.4 root 2275: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2276: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277: echo $ac_n "(cached) $ac_c" 1>&6
2278: else
2279: ac_save_LIBS="$LIBS"
2280: LIBS="-lICE $LIBS"
2281: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2282: #line 2283 "configure"
1.1.1.4 root 2283: #include "confdefs.h"
2284: /* Override any gcc2 internal prototype to avoid an error. */
2285: /* We use char because int might match the return type of a gcc2
2286: builtin and then its argument prototype would still apply. */
2287: char IceConnectionNumber();
2288:
2289: int main() {
2290: IceConnectionNumber()
2291: ; return 0; }
2292: EOF
1.1.1.7 ! root 2293: if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2294: rm -rf conftest*
2295: eval "ac_cv_lib_$ac_lib_var=yes"
2296: else
2297: echo "configure: failed program was:" >&5
2298: cat conftest.$ac_ext >&5
2299: rm -rf conftest*
2300: eval "ac_cv_lib_$ac_lib_var=no"
1.1 root 2301: fi
1.1.1.4 root 2302: rm -f conftest*
2303: LIBS="$ac_save_LIBS"
1.1 root 2304:
1.1.1.4 root 2305: fi
2306: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2307: echo "$ac_t""yes" 1>&6
2308: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2309: else
2310: echo "$ac_t""no" 1>&6
2311: fi
1.1 root 2312:
1.1.1.4 root 2313: LDFLAGS="$ac_save_LDFLAGS"
1.1 root 2314:
1.1.1.3 root 2315: fi
2316:
2317:
1.1.1.4 root 2318:
1.1 root 2319: ac_header_dirent=no
2320: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2321: do
1.1.1.4 root 2322: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1 root 2323: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.1.1.7 ! root 2324: echo "configure:2325: checking for $ac_hdr that defines DIR" >&5
1.1 root 2325: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2326: echo $ac_n "(cached) $ac_c" 1>&6
2327: else
2328: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2329: #line 2330 "configure"
1.1 root 2330: #include "confdefs.h"
2331: #include <sys/types.h>
2332: #include <$ac_hdr>
1.1.1.4 root 2333: int main() {
1.1 root 2334: DIR *dirp = 0;
2335: ; return 0; }
2336: EOF
1.1.1.7 ! root 2337: if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2338: rm -rf conftest*
2339: eval "ac_cv_header_dirent_$ac_safe=yes"
2340: else
1.1.1.4 root 2341: echo "configure: failed program was:" >&5
2342: cat conftest.$ac_ext >&5
1.1 root 2343: rm -rf conftest*
2344: eval "ac_cv_header_dirent_$ac_safe=no"
2345: fi
2346: rm -f conftest*
2347: fi
2348: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2349: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2350: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1 root 2351: cat >> confdefs.h <<EOF
2352: #define $ac_tr_hdr 1
2353: EOF
2354: ac_header_dirent=$ac_hdr; break
2355: else
2356: echo "$ac_t""no" 1>&6
2357: fi
2358: done
2359: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2360: if test $ac_header_dirent = dirent.h; then
1.1.1.4 root 2361: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.1.1.7 ! root 2362: echo "configure:2363: checking for opendir in -ldir" >&5
1.1.1.4 root 2363: ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1.1 root 2364: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2365: echo $ac_n "(cached) $ac_c" 1>&6
2366: else
2367: ac_save_LIBS="$LIBS"
2368: LIBS="-ldir $LIBS"
2369: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2370: #line 2371 "configure"
1.1 root 2371: #include "confdefs.h"
2372: /* Override any gcc2 internal prototype to avoid an error. */
2373: /* We use char because int might match the return type of a gcc2
2374: builtin and then its argument prototype would still apply. */
2375: char opendir();
2376:
1.1.1.4 root 2377: int main() {
1.1 root 2378: opendir()
2379: ; return 0; }
2380: EOF
1.1.1.7 ! root 2381: if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 2382: rm -rf conftest*
2383: eval "ac_cv_lib_$ac_lib_var=yes"
2384: else
1.1.1.4 root 2385: echo "configure: failed program was:" >&5
2386: cat conftest.$ac_ext >&5
1.1 root 2387: rm -rf conftest*
2388: eval "ac_cv_lib_$ac_lib_var=no"
2389: fi
2390: rm -f conftest*
2391: LIBS="$ac_save_LIBS"
2392:
2393: fi
2394: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395: echo "$ac_t""yes" 1>&6
2396: LIBS="$LIBS -ldir"
2397: else
2398: echo "$ac_t""no" 1>&6
2399: fi
2400:
2401: else
1.1.1.4 root 2402: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.1.1.7 ! root 2403: echo "configure:2404: checking for opendir in -lx" >&5
1.1.1.4 root 2404: ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1.1 root 2405: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2406: echo $ac_n "(cached) $ac_c" 1>&6
2407: else
2408: ac_save_LIBS="$LIBS"
2409: LIBS="-lx $LIBS"
2410: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2411: #line 2412 "configure"
1.1 root 2412: #include "confdefs.h"
2413: /* Override any gcc2 internal prototype to avoid an error. */
2414: /* We use char because int might match the return type of a gcc2
2415: builtin and then its argument prototype would still apply. */
2416: char opendir();
2417:
1.1.1.4 root 2418: int main() {
1.1 root 2419: opendir()
2420: ; return 0; }
2421: EOF
1.1.1.7 ! root 2422: if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 2423: rm -rf conftest*
2424: eval "ac_cv_lib_$ac_lib_var=yes"
2425: else
1.1.1.4 root 2426: echo "configure: failed program was:" >&5
2427: cat conftest.$ac_ext >&5
1.1 root 2428: rm -rf conftest*
2429: eval "ac_cv_lib_$ac_lib_var=no"
2430: fi
2431: rm -f conftest*
2432: LIBS="$ac_save_LIBS"
2433:
2434: fi
2435: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2436: echo "$ac_t""yes" 1>&6
2437: LIBS="$LIBS -lx"
2438: else
2439: echo "$ac_t""no" 1>&6
2440: fi
2441:
2442: fi
2443:
2444: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.1.1.7 ! root 2445: echo "configure:2446: checking for ANSI C header files" >&5
1.1 root 2446: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2447: echo $ac_n "(cached) $ac_c" 1>&6
2448: else
2449: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2450: #line 2451 "configure"
1.1 root 2451: #include "confdefs.h"
2452: #include <stdlib.h>
2453: #include <stdarg.h>
2454: #include <string.h>
2455: #include <float.h>
2456: EOF
2457: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2458: { (eval echo configure:2459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 2459: ac_err=`grep -v '^ *+' conftest.out`
2460: if test -z "$ac_err"; then
2461: rm -rf conftest*
2462: ac_cv_header_stdc=yes
2463: else
2464: echo "$ac_err" >&5
1.1.1.4 root 2465: echo "configure: failed program was:" >&5
2466: cat conftest.$ac_ext >&5
1.1 root 2467: rm -rf conftest*
2468: ac_cv_header_stdc=no
2469: fi
2470: rm -f conftest*
2471:
2472: if test $ac_cv_header_stdc = yes; then
2473: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2474: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2475: #line 2476 "configure"
1.1 root 2476: #include "confdefs.h"
2477: #include <string.h>
2478: EOF
2479: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480: egrep "memchr" >/dev/null 2>&1; then
2481: :
2482: else
2483: rm -rf conftest*
2484: ac_cv_header_stdc=no
2485: fi
2486: rm -f conftest*
2487:
2488: fi
2489:
2490: if test $ac_cv_header_stdc = yes; then
2491: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2492: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2493: #line 2494 "configure"
1.1 root 2494: #include "confdefs.h"
2495: #include <stdlib.h>
2496: EOF
2497: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2498: egrep "free" >/dev/null 2>&1; then
2499: :
2500: else
2501: rm -rf conftest*
2502: ac_cv_header_stdc=no
2503: fi
2504: rm -f conftest*
2505:
2506: fi
2507:
2508: if test $ac_cv_header_stdc = yes; then
2509: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2510: if test "$cross_compiling" = yes; then
2511: :
2512: else
1.1.1.4 root 2513: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2514: #line 2515 "configure"
1.1 root 2515: #include "confdefs.h"
2516: #include <ctype.h>
2517: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2518: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2519: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2520: int main () { int i; for (i = 0; i < 256; i++)
2521: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2522: exit (0); }
2523:
2524: EOF
1.1.1.7 ! root 2525: if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 2526: then
1.1 root 2527: :
2528: else
1.1.1.4 root 2529: echo "configure: failed program was:" >&5
2530: cat conftest.$ac_ext >&5
2531: rm -fr conftest*
1.1 root 2532: ac_cv_header_stdc=no
2533: fi
2534: rm -fr conftest*
2535: fi
1.1.1.4 root 2536:
2537: fi
1.1 root 2538: fi
2539:
2540: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2541: if test $ac_cv_header_stdc = yes; then
2542: cat >> confdefs.h <<\EOF
2543: #define STDC_HEADERS 1
2544: EOF
2545:
2546: fi
2547:
1.1.1.4 root 2548:
2549: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h
2550: do
2551: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2552: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2553: echo "configure:2554: checking for $ac_hdr" >&5
1.1.1.4 root 2554: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2555: echo $ac_n "(cached) $ac_c" 1>&6
2556: else
2557: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2558: #line 2559 "configure"
1.1.1.4 root 2559: #include "confdefs.h"
2560: #include <$ac_hdr>
2561: EOF
2562: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2563: { (eval echo configure:2564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.4 root 2564: ac_err=`grep -v '^ *+' conftest.out`
2565: if test -z "$ac_err"; then
2566: rm -rf conftest*
2567: eval "ac_cv_header_$ac_safe=yes"
2568: else
2569: echo "$ac_err" >&5
2570: echo "configure: failed program was:" >&5
2571: cat conftest.$ac_ext >&5
2572: rm -rf conftest*
2573: eval "ac_cv_header_$ac_safe=no"
2574: fi
2575: rm -f conftest*
2576: fi
2577: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2578: echo "$ac_t""yes" 1>&6
2579: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2580: cat >> confdefs.h <<EOF
2581: #define $ac_tr_hdr 1
2582: EOF
2583:
2584: else
2585: echo "$ac_t""no" 1>&6
2586: fi
2587: done
2588:
1.1.1.6 root 2589: for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h
1.1 root 2590: do
1.1.1.4 root 2591: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1 root 2592: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2593: echo "configure:2594: checking for $ac_hdr" >&5
1.1 root 2594: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2595: echo $ac_n "(cached) $ac_c" 1>&6
2596: else
2597: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2598: #line 2599 "configure"
1.1 root 2599: #include "confdefs.h"
2600: #include <$ac_hdr>
2601: EOF
2602: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2603: { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 2604: ac_err=`grep -v '^ *+' conftest.out`
2605: if test -z "$ac_err"; then
2606: rm -rf conftest*
2607: eval "ac_cv_header_$ac_safe=yes"
2608: else
2609: echo "$ac_err" >&5
1.1.1.4 root 2610: echo "configure: failed program was:" >&5
2611: cat conftest.$ac_ext >&5
1.1 root 2612: rm -rf conftest*
2613: eval "ac_cv_header_$ac_safe=no"
2614: fi
2615: rm -f conftest*
2616: fi
2617: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2618: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2619: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1 root 2620: cat >> confdefs.h <<EOF
2621: #define $ac_tr_hdr 1
2622: EOF
2623:
2624: else
2625: echo "$ac_t""no" 1>&6
2626: fi
2627: done
2628:
1.1.1.6 root 2629: for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h
1.1 root 2630: do
1.1.1.4 root 2631: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1 root 2632: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2633: echo "configure:2634: checking for $ac_hdr" >&5
1.1 root 2634: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2635: echo $ac_n "(cached) $ac_c" 1>&6
2636: else
2637: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2638: #line 2639 "configure"
1.1.1.3 root 2639: #include "confdefs.h"
2640: #include <$ac_hdr>
2641: EOF
2642: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2643: { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.3 root 2644: ac_err=`grep -v '^ *+' conftest.out`
2645: if test -z "$ac_err"; then
2646: rm -rf conftest*
2647: eval "ac_cv_header_$ac_safe=yes"
2648: else
2649: echo "$ac_err" >&5
1.1.1.4 root 2650: echo "configure: failed program was:" >&5
2651: cat conftest.$ac_ext >&5
1.1.1.3 root 2652: rm -rf conftest*
2653: eval "ac_cv_header_$ac_safe=no"
2654: fi
2655: rm -f conftest*
2656: fi
2657: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2658: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2659: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.3 root 2660: cat >> confdefs.h <<EOF
2661: #define $ac_tr_hdr 1
2662: EOF
2663:
2664: else
2665: echo "$ac_t""no" 1>&6
2666: fi
2667: done
2668:
1.1.1.6 root 2669: for ac_hdr in ggi/libggi.h
1.1.1.3 root 2670: do
1.1.1.4 root 2671: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1.1.3 root 2672: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2673: echo "configure:2674: checking for $ac_hdr" >&5
1.1.1.3 root 2674: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2675: echo $ac_n "(cached) $ac_c" 1>&6
2676: else
2677: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2678: #line 2679 "configure"
1.1 root 2679: #include "confdefs.h"
2680: #include <$ac_hdr>
2681: EOF
2682: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2683: { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 2684: ac_err=`grep -v '^ *+' conftest.out`
2685: if test -z "$ac_err"; then
2686: rm -rf conftest*
2687: eval "ac_cv_header_$ac_safe=yes"
2688: else
2689: echo "$ac_err" >&5
1.1.1.4 root 2690: echo "configure: failed program was:" >&5
2691: cat conftest.$ac_ext >&5
1.1 root 2692: rm -rf conftest*
2693: eval "ac_cv_header_$ac_safe=no"
2694: fi
2695: rm -f conftest*
2696: fi
2697: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2698: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2699: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1 root 2700: cat >> confdefs.h <<EOF
2701: #define $ac_tr_hdr 1
2702: EOF
2703:
2704: else
2705: echo "$ac_t""no" 1>&6
2706: fi
2707: done
2708:
1.1.1.6 root 2709: for ac_hdr in windows.h ddraw.h
1.1.1.4 root 2710: do
2711: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2712: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2713: echo "configure:2714: checking for $ac_hdr" >&5
1.1.1.4 root 2714: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2715: echo $ac_n "(cached) $ac_c" 1>&6
2716: else
2717: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2718: #line 2719 "configure"
1.1.1.4 root 2719: #include "confdefs.h"
2720: #include <$ac_hdr>
2721: EOF
2722: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2723: { (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.4 root 2724: ac_err=`grep -v '^ *+' conftest.out`
2725: if test -z "$ac_err"; then
2726: rm -rf conftest*
2727: eval "ac_cv_header_$ac_safe=yes"
2728: else
2729: echo "$ac_err" >&5
2730: echo "configure: failed program was:" >&5
2731: cat conftest.$ac_ext >&5
2732: rm -rf conftest*
2733: eval "ac_cv_header_$ac_safe=no"
2734: fi
2735: rm -f conftest*
2736: fi
2737: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2738: echo "$ac_t""yes" 1>&6
2739: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2740: cat >> confdefs.h <<EOF
2741: #define $ac_tr_hdr 1
2742: EOF
2743:
2744: else
2745: echo "$ac_t""no" 1>&6
2746: fi
2747: done
1.1 root 2748:
1.1.1.4 root 2749: ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'`
2750: echo $ac_n "checking for be_math.h""... $ac_c" 1>&6
1.1.1.7 ! root 2751: echo "configure:2752: checking for be_math.h" >&5
1.1.1.4 root 2752: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2753: echo $ac_n "(cached) $ac_c" 1>&6
2754: else
2755: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2756: #line 2757 "configure"
1.1.1.4 root 2757: #include "confdefs.h"
2758: #include <be_math.h>
2759: EOF
2760: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2761: { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.4 root 2762: ac_err=`grep -v '^ *+' conftest.out`
2763: if test -z "$ac_err"; then
2764: rm -rf conftest*
2765: eval "ac_cv_header_$ac_safe=yes"
2766: else
2767: echo "$ac_err" >&5
2768: echo "configure: failed program was:" >&5
2769: cat conftest.$ac_ext >&5
2770: rm -rf conftest*
2771: eval "ac_cv_header_$ac_safe=no"
2772: fi
2773: rm -f conftest*
2774: fi
2775: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2776: echo "$ac_t""yes" 1>&6
2777: HAVE_BEOS=yes
2778: else
2779: echo "$ac_t""no" 1>&6
2780: HAVE_BEOS=no
1.1 root 2781: fi
2782:
1.1.1.6 root 2783: for ac_hdr in machine/joystick.h
2784: do
2785: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2786: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2787: echo "configure:2788: checking for $ac_hdr" >&5
1.1.1.6 root 2788: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1 root 2789: echo $ac_n "(cached) $ac_c" 1>&6
2790: else
1.1.1.4 root 2791: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2792: #line 2793 "configure"
1.1 root 2793: #include "confdefs.h"
1.1.1.6 root 2794: #include <$ac_hdr>
1.1 root 2795: EOF
1.1.1.6 root 2796: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2797: { (eval echo configure:2798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 2798: ac_err=`grep -v '^ *+' conftest.out`
2799: if test -z "$ac_err"; then
2800: rm -rf conftest*
2801: eval "ac_cv_header_$ac_safe=yes"
1.1 root 2802: else
1.1.1.6 root 2803: echo "$ac_err" >&5
1.1.1.4 root 2804: echo "configure: failed program was:" >&5
2805: cat conftest.$ac_ext >&5
1.1.1.6 root 2806: rm -rf conftest*
2807: eval "ac_cv_header_$ac_safe=no"
1.1 root 2808: fi
1.1.1.6 root 2809: rm -f conftest*
1.1.1.4 root 2810: fi
1.1.1.6 root 2811: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2812: echo "$ac_t""yes" 1>&6
2813: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2814: cat >> confdefs.h <<EOF
2815: #define $ac_tr_hdr 1
1.1 root 2816: EOF
1.1.1.6 root 2817:
2818: else
2819: echo "$ac_t""no" 1>&6
2820: fi
2821: done
1.1 root 2822:
1.1.1.6 root 2823: for ac_hdr in devices/ahi.h
2824: do
2825: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2827: echo "configure:2828: checking for $ac_hdr" >&5
1.1.1.6 root 2828: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1 root 2829: echo $ac_n "(cached) $ac_c" 1>&6
2830: else
1.1.1.4 root 2831: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2832: #line 2833 "configure"
1.1 root 2833: #include "confdefs.h"
1.1.1.6 root 2834: #include <$ac_hdr>
1.1 root 2835: EOF
1.1.1.6 root 2836: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2837: { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 2838: ac_err=`grep -v '^ *+' conftest.out`
2839: if test -z "$ac_err"; then
2840: rm -rf conftest*
2841: eval "ac_cv_header_$ac_safe=yes"
1.1 root 2842: else
1.1.1.6 root 2843: echo "$ac_err" >&5
1.1.1.4 root 2844: echo "configure: failed program was:" >&5
2845: cat conftest.$ac_ext >&5
1.1.1.6 root 2846: rm -rf conftest*
2847: eval "ac_cv_header_$ac_safe=no"
2848: fi
2849: rm -f conftest*
2850: fi
2851: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852: echo "$ac_t""yes" 1>&6
2853: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854: cat >> confdefs.h <<EOF
2855: #define $ac_tr_hdr 1
2856: EOF
2857:
2858: else
2859: echo "$ac_t""no" 1>&6
2860: fi
2861: done
2862:
2863: for ac_hdr in libraries/cybergraphics.h cybergraphx/cybergraphics.h
2864: do
2865: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 2867: echo "configure:2868: checking for $ac_hdr" >&5
1.1.1.6 root 2868: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869: echo $ac_n "(cached) $ac_c" 1>&6
2870: else
2871: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2872: #line 2873 "configure"
1.1.1.6 root 2873: #include "confdefs.h"
2874: #include <$ac_hdr>
2875: EOF
2876: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 2877: { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 2878: ac_err=`grep -v '^ *+' conftest.out`
2879: if test -z "$ac_err"; then
2880: rm -rf conftest*
2881: eval "ac_cv_header_$ac_safe=yes"
2882: else
2883: echo "$ac_err" >&5
2884: echo "configure: failed program was:" >&5
2885: cat conftest.$ac_ext >&5
2886: rm -rf conftest*
2887: eval "ac_cv_header_$ac_safe=no"
2888: fi
2889: rm -f conftest*
2890: fi
2891: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892: echo "$ac_t""yes" 1>&6
2893: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894: cat >> confdefs.h <<EOF
2895: #define $ac_tr_hdr 1
2896: EOF
2897:
2898: else
2899: echo "$ac_t""no" 1>&6
2900: fi
2901: done
2902:
2903:
2904: echo $ac_n "checking size of char""... $ac_c" 1>&6
1.1.1.7 ! root 2905: echo "configure:2906: checking size of char" >&5
1.1.1.6 root 2906: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2907: echo $ac_n "(cached) $ac_c" 1>&6
2908: else
2909: if test "$cross_compiling" = yes; then
2910: ac_cv_sizeof_char=1
2911: else
2912: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2913: #line 2914 "configure"
1.1.1.6 root 2914: #include "confdefs.h"
2915: #include <stdio.h>
2916: main()
2917: {
2918: FILE *f=fopen("conftestval", "w");
2919: if (!f) exit(1);
2920: fprintf(f, "%d\n", sizeof(char));
2921: exit(0);
2922: }
2923: EOF
1.1.1.7 ! root 2924: if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 2925: then
2926: ac_cv_sizeof_char=`cat conftestval`
2927: else
2928: echo "configure: failed program was:" >&5
2929: cat conftest.$ac_ext >&5
2930: rm -fr conftest*
2931: ac_cv_sizeof_char=0
2932: fi
2933: rm -fr conftest*
2934: fi
2935:
2936: fi
2937: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2938: cat >> confdefs.h <<EOF
2939: #define SIZEOF_CHAR $ac_cv_sizeof_char
2940: EOF
2941:
2942:
2943: echo $ac_n "checking size of short""... $ac_c" 1>&6
1.1.1.7 ! root 2944: echo "configure:2945: checking size of short" >&5
1.1.1.6 root 2945: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2946: echo $ac_n "(cached) $ac_c" 1>&6
2947: else
2948: if test "$cross_compiling" = yes; then
2949: ac_cv_sizeof_short=2
2950: else
2951: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2952: #line 2953 "configure"
1.1.1.6 root 2953: #include "confdefs.h"
2954: #include <stdio.h>
2955: main()
2956: {
2957: FILE *f=fopen("conftestval", "w");
2958: if (!f) exit(1);
2959: fprintf(f, "%d\n", sizeof(short));
2960: exit(0);
2961: }
2962: EOF
1.1.1.7 ! root 2963: if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 2964: then
2965: ac_cv_sizeof_short=`cat conftestval`
2966: else
2967: echo "configure: failed program was:" >&5
2968: cat conftest.$ac_ext >&5
2969: rm -fr conftest*
2970: ac_cv_sizeof_short=0
1.1 root 2971: fi
2972: rm -fr conftest*
2973: fi
1.1.1.4 root 2974:
2975: fi
1.1 root 2976: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2977: cat >> confdefs.h <<EOF
2978: #define SIZEOF_SHORT $ac_cv_sizeof_short
2979: EOF
2980:
2981:
2982: echo $ac_n "checking size of int""... $ac_c" 1>&6
1.1.1.7 ! root 2983: echo "configure:2984: checking size of int" >&5
1.1 root 2984: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2985: echo $ac_n "(cached) $ac_c" 1>&6
2986: else
2987: if test "$cross_compiling" = yes; then
1.1.1.4 root 2988: ac_cv_sizeof_int=4
1.1 root 2989: else
1.1.1.4 root 2990: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 2991: #line 2992 "configure"
1.1 root 2992: #include "confdefs.h"
2993: #include <stdio.h>
2994: main()
2995: {
2996: FILE *f=fopen("conftestval", "w");
2997: if (!f) exit(1);
2998: fprintf(f, "%d\n", sizeof(int));
2999: exit(0);
3000: }
3001: EOF
1.1.1.7 ! root 3002: if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3003: then
1.1 root 3004: ac_cv_sizeof_int=`cat conftestval`
3005: else
1.1.1.4 root 3006: echo "configure: failed program was:" >&5
3007: cat conftest.$ac_ext >&5
3008: rm -fr conftest*
1.1 root 3009: ac_cv_sizeof_int=0
3010: fi
3011: rm -fr conftest*
3012: fi
1.1.1.4 root 3013:
3014: fi
1.1 root 3015: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3016: cat >> confdefs.h <<EOF
3017: #define SIZEOF_INT $ac_cv_sizeof_int
3018: EOF
3019:
3020:
3021: echo $ac_n "checking size of long""... $ac_c" 1>&6
1.1.1.7 ! root 3022: echo "configure:3023: checking size of long" >&5
1.1 root 3023: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3024: echo $ac_n "(cached) $ac_c" 1>&6
3025: else
3026: if test "$cross_compiling" = yes; then
1.1.1.4 root 3027: ac_cv_sizeof_long=4
1.1 root 3028: else
1.1.1.4 root 3029: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3030: #line 3031 "configure"
1.1 root 3031: #include "confdefs.h"
3032: #include <stdio.h>
3033: main()
3034: {
3035: FILE *f=fopen("conftestval", "w");
3036: if (!f) exit(1);
3037: fprintf(f, "%d\n", sizeof(long));
3038: exit(0);
3039: }
3040: EOF
1.1.1.7 ! root 3041: if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3042: then
1.1 root 3043: ac_cv_sizeof_long=`cat conftestval`
3044: else
1.1.1.4 root 3045: echo "configure: failed program was:" >&5
3046: cat conftest.$ac_ext >&5
3047: rm -fr conftest*
1.1 root 3048: ac_cv_sizeof_long=0
3049: fi
3050: rm -fr conftest*
3051: fi
1.1.1.4 root 3052:
3053: fi
1.1 root 3054: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3055: cat >> confdefs.h <<EOF
3056: #define SIZEOF_LONG $ac_cv_sizeof_long
3057: EOF
3058:
3059:
3060: echo $ac_n "checking size of long long""... $ac_c" 1>&6
1.1.1.7 ! root 3061: echo "configure:3062: checking size of long long" >&5
1.1 root 3062: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3063: echo $ac_n "(cached) $ac_c" 1>&6
3064: else
3065: if test "$cross_compiling" = yes; then
1.1.1.4 root 3066: ac_cv_sizeof_long_long=8
1.1 root 3067: else
1.1.1.4 root 3068: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3069: #line 3070 "configure"
1.1 root 3070: #include "confdefs.h"
3071: #include <stdio.h>
3072: main()
3073: {
3074: FILE *f=fopen("conftestval", "w");
3075: if (!f) exit(1);
3076: fprintf(f, "%d\n", sizeof(long long));
3077: exit(0);
3078: }
3079: EOF
1.1.1.7 ! root 3080: if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3081: then
1.1 root 3082: ac_cv_sizeof_long_long=`cat conftestval`
3083: else
1.1.1.4 root 3084: echo "configure: failed program was:" >&5
3085: cat conftest.$ac_ext >&5
3086: rm -fr conftest*
1.1 root 3087: ac_cv_sizeof_long_long=0
3088: fi
3089: rm -fr conftest*
3090: fi
1.1.1.4 root 3091:
3092: fi
1.1 root 3093: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3094: cat >> confdefs.h <<EOF
3095: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3096: EOF
3097:
3098:
1.1.1.6 root 3099: echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1.1.1.7 ! root 3100: echo "configure:3101: checking size of __int64" >&5
1.1.1.6 root 3101: if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
3102: echo $ac_n "(cached) $ac_c" 1>&6
3103: else
3104: if test "$cross_compiling" = yes; then
3105: ac_cv_sizeof___int64=8
3106: else
3107: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3108: #line 3109 "configure"
1.1.1.6 root 3109: #include "confdefs.h"
3110: #include <stdio.h>
3111: main()
3112: {
3113: FILE *f=fopen("conftestval", "w");
3114: if (!f) exit(1);
3115: fprintf(f, "%d\n", sizeof(__int64));
3116: exit(0);
3117: }
3118: EOF
1.1.1.7 ! root 3119: if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 3120: then
3121: ac_cv_sizeof___int64=`cat conftestval`
3122: else
3123: echo "configure: failed program was:" >&5
3124: cat conftest.$ac_ext >&5
3125: rm -fr conftest*
3126: ac_cv_sizeof___int64=0
3127: fi
3128: rm -fr conftest*
3129: fi
3130:
3131: fi
3132: echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
3133: cat >> confdefs.h <<EOF
3134: #define SIZEOF___INT64 $ac_cv_sizeof___int64
3135: EOF
3136:
3137:
1.1 root 3138:
3139: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.1.1.7 ! root 3140: echo "configure:3141: checking for working const" >&5
1.1 root 3141: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3142: echo $ac_n "(cached) $ac_c" 1>&6
3143: else
3144: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3145: #line 3146 "configure"
1.1 root 3146: #include "confdefs.h"
3147:
1.1.1.4 root 3148: int main() {
1.1 root 3149:
3150: /* Ultrix mips cc rejects this. */
3151: typedef int charset[2]; const charset x;
3152: /* SunOS 4.1.1 cc rejects this. */
3153: char const *const *ccp;
3154: char **p;
3155: /* NEC SVR4.0.2 mips cc rejects this. */
3156: struct point {int x, y;};
3157: static struct point const zero = {0,0};
3158: /* AIX XL C 1.02.0.0 rejects this.
3159: It does not let you subtract one const X* pointer from another in an arm
3160: of an if-expression whose if-part is not a constant expression */
3161: const char *g = "string";
3162: ccp = &g + (g ? g-g : 0);
3163: /* HPUX 7.0 cc rejects these. */
3164: ++ccp;
3165: p = (char**) ccp;
3166: ccp = (char const *const *) p;
3167: { /* SCO 3.2v4 cc rejects this. */
3168: char *t;
3169: char const *s = 0 ? (char *) 0 : (char const *) 0;
3170:
3171: *t++ = 0;
3172: }
3173: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3174: int x[] = {25, 17};
3175: const int *foo = &x[0];
3176: ++foo;
3177: }
3178: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3179: typedef const int *iptr;
3180: iptr p = 0;
3181: ++p;
3182: }
3183: { /* AIX XL C 1.02.0.0 rejects this saying
3184: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3185: struct s { int j; const int *ap[3]; };
3186: struct s *b; b->j = 5;
3187: }
3188: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3189: const int foo = 10;
3190: }
3191:
3192: ; return 0; }
3193: EOF
1.1.1.7 ! root 3194: if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3195: rm -rf conftest*
3196: ac_cv_c_const=yes
3197: else
1.1.1.4 root 3198: echo "configure: failed program was:" >&5
3199: cat conftest.$ac_ext >&5
1.1 root 3200: rm -rf conftest*
3201: ac_cv_c_const=no
3202: fi
3203: rm -f conftest*
3204: fi
3205:
3206: echo "$ac_t""$ac_cv_c_const" 1>&6
3207: if test $ac_cv_c_const = no; then
3208: cat >> confdefs.h <<\EOF
3209: #define const
3210: EOF
3211:
3212: fi
3213:
3214: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.1.1.7 ! root 3215: echo "configure:3216: checking for inline" >&5
1.1 root 3216: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3217: echo $ac_n "(cached) $ac_c" 1>&6
3218: else
3219: ac_cv_c_inline=no
3220: for ac_kw in inline __inline__ __inline; do
3221: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3222: #line 3223 "configure"
1.1 root 3223: #include "confdefs.h"
3224:
1.1.1.4 root 3225: int main() {
1.1 root 3226: } $ac_kw foo() {
3227: ; return 0; }
3228: EOF
1.1.1.7 ! root 3229: if { (eval echo configure:3230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3230: rm -rf conftest*
3231: ac_cv_c_inline=$ac_kw; break
1.1.1.4 root 3232: else
3233: echo "configure: failed program was:" >&5
3234: cat conftest.$ac_ext >&5
1.1 root 3235: fi
3236: rm -f conftest*
3237: done
3238:
3239: fi
3240:
3241: echo "$ac_t""$ac_cv_c_inline" 1>&6
3242: case "$ac_cv_c_inline" in
3243: inline | yes) ;;
3244: no) cat >> confdefs.h <<\EOF
3245: #define inline
3246: EOF
3247: ;;
3248: *) cat >> confdefs.h <<EOF
3249: #define inline $ac_cv_c_inline
3250: EOF
3251: ;;
3252: esac
3253:
1.1.1.4 root 3254: if [ "x$ac_cv_c_inline" = "xno" ]; then
3255: ac_cv_c_inline=
3256: fi
1.1 root 3257: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.1.1.7 ! root 3258: echo "configure:3259: checking for mode_t" >&5
1.1 root 3259: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3260: echo $ac_n "(cached) $ac_c" 1>&6
3261: else
3262: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3263: #line 3264 "configure"
1.1 root 3264: #include "confdefs.h"
3265: #include <sys/types.h>
3266: #if STDC_HEADERS
3267: #include <stdlib.h>
1.1.1.4 root 3268: #include <stddef.h>
1.1 root 3269: #endif
3270: EOF
3271: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 root 3272: egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1 root 3273: rm -rf conftest*
3274: ac_cv_type_mode_t=yes
3275: else
3276: rm -rf conftest*
3277: ac_cv_type_mode_t=no
3278: fi
3279: rm -f conftest*
3280:
3281: fi
3282: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3283: if test $ac_cv_type_mode_t = no; then
3284: cat >> confdefs.h <<\EOF
3285: #define mode_t int
3286: EOF
3287:
3288: fi
3289:
3290: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.1.1.7 ! root 3291: echo "configure:3292: checking for off_t" >&5
1.1 root 3292: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3293: echo $ac_n "(cached) $ac_c" 1>&6
3294: else
3295: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3296: #line 3297 "configure"
1.1 root 3297: #include "confdefs.h"
3298: #include <sys/types.h>
3299: #if STDC_HEADERS
3300: #include <stdlib.h>
1.1.1.4 root 3301: #include <stddef.h>
1.1 root 3302: #endif
3303: EOF
3304: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 root 3305: egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1 root 3306: rm -rf conftest*
3307: ac_cv_type_off_t=yes
3308: else
3309: rm -rf conftest*
3310: ac_cv_type_off_t=no
3311: fi
3312: rm -f conftest*
3313:
3314: fi
3315: echo "$ac_t""$ac_cv_type_off_t" 1>&6
3316: if test $ac_cv_type_off_t = no; then
3317: cat >> confdefs.h <<\EOF
3318: #define off_t long
3319: EOF
3320:
3321: fi
3322:
3323: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1.1.1.7 ! root 3324: echo "configure:3325: checking for pid_t" >&5
1.1 root 3325: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3326: echo $ac_n "(cached) $ac_c" 1>&6
3327: else
3328: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3329: #line 3330 "configure"
1.1 root 3330: #include "confdefs.h"
3331: #include <sys/types.h>
3332: #if STDC_HEADERS
3333: #include <stdlib.h>
1.1.1.4 root 3334: #include <stddef.h>
1.1 root 3335: #endif
3336: EOF
3337: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 root 3338: egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1 root 3339: rm -rf conftest*
3340: ac_cv_type_pid_t=yes
3341: else
3342: rm -rf conftest*
3343: ac_cv_type_pid_t=no
3344: fi
3345: rm -f conftest*
3346:
3347: fi
3348: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3349: if test $ac_cv_type_pid_t = no; then
3350: cat >> confdefs.h <<\EOF
3351: #define pid_t int
3352: EOF
3353:
3354: fi
3355:
3356: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1.1.1.7 ! root 3357: echo "configure:3358: checking for st_blocks in struct stat" >&5
1.1 root 3358: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3359: echo $ac_n "(cached) $ac_c" 1>&6
3360: else
3361: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3362: #line 3363 "configure"
1.1 root 3363: #include "confdefs.h"
3364: #include <sys/types.h>
3365: #include <sys/stat.h>
1.1.1.4 root 3366: int main() {
1.1 root 3367: struct stat s; s.st_blocks;
3368: ; return 0; }
3369: EOF
1.1.1.7 ! root 3370: if { (eval echo configure:3371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3371: rm -rf conftest*
3372: ac_cv_struct_st_blocks=yes
3373: else
1.1.1.4 root 3374: echo "configure: failed program was:" >&5
3375: cat conftest.$ac_ext >&5
1.1 root 3376: rm -rf conftest*
3377: ac_cv_struct_st_blocks=no
3378: fi
3379: rm -f conftest*
3380: fi
3381:
3382: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3383: if test $ac_cv_struct_st_blocks = yes; then
3384: cat >> confdefs.h <<\EOF
3385: #define HAVE_ST_BLOCKS 1
3386: EOF
3387:
3388: else
3389: LIBOBJS="$LIBOBJS fileblocks.o"
3390: fi
3391:
3392: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.1.1.7 ! root 3393: echo "configure:3394: checking whether time.h and sys/time.h may both be included" >&5
1.1 root 3394: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3395: echo $ac_n "(cached) $ac_c" 1>&6
3396: else
3397: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3398: #line 3399 "configure"
1.1 root 3399: #include "confdefs.h"
3400: #include <sys/types.h>
3401: #include <sys/time.h>
3402: #include <time.h>
1.1.1.4 root 3403: int main() {
1.1 root 3404: struct tm *tp;
3405: ; return 0; }
3406: EOF
1.1.1.7 ! root 3407: if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3408: rm -rf conftest*
3409: ac_cv_header_time=yes
3410: else
1.1.1.4 root 3411: echo "configure: failed program was:" >&5
3412: cat conftest.$ac_ext >&5
1.1 root 3413: rm -rf conftest*
3414: ac_cv_header_time=no
3415: fi
3416: rm -f conftest*
3417: fi
3418:
3419: echo "$ac_t""$ac_cv_header_time" 1>&6
3420: if test $ac_cv_header_time = yes; then
3421: cat >> confdefs.h <<\EOF
3422: #define TIME_WITH_SYS_TIME 1
3423: EOF
3424:
3425: fi
3426:
3427: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.1.1.7 ! root 3428: echo "configure:3429: checking whether struct tm is in sys/time.h or time.h" >&5
1.1 root 3429: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3430: echo $ac_n "(cached) $ac_c" 1>&6
3431: else
3432: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3433: #line 3434 "configure"
1.1 root 3434: #include "confdefs.h"
3435: #include <sys/types.h>
3436: #include <time.h>
1.1.1.4 root 3437: int main() {
1.1 root 3438: struct tm *tp; tp->tm_sec;
3439: ; return 0; }
3440: EOF
1.1.1.7 ! root 3441: if { (eval echo configure:3442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3442: rm -rf conftest*
3443: ac_cv_struct_tm=time.h
3444: else
1.1.1.4 root 3445: echo "configure: failed program was:" >&5
3446: cat conftest.$ac_ext >&5
1.1 root 3447: rm -rf conftest*
3448: ac_cv_struct_tm=sys/time.h
3449: fi
3450: rm -f conftest*
3451: fi
3452:
3453: echo "$ac_t""$ac_cv_struct_tm" 1>&6
3454: if test $ac_cv_struct_tm = sys/time.h; then
3455: cat >> confdefs.h <<\EOF
3456: #define TM_IN_SYS_TIME 1
3457: EOF
3458:
3459: fi
3460:
3461:
3462: if test $ac_cv_prog_gcc = yes; then
3463: echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.1.1.7 ! root 3464: echo "configure:3465: checking whether ${CC-cc} needs -traditional" >&5
1.1 root 3465: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3466: echo $ac_n "(cached) $ac_c" 1>&6
3467: else
3468: ac_pattern="Autoconf.*'x'"
3469: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3470: #line 3471 "configure"
1.1 root 3471: #include "confdefs.h"
3472: #include <sgtty.h>
3473: Autoconf TIOCGETP
3474: EOF
3475: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476: egrep "$ac_pattern" >/dev/null 2>&1; then
3477: rm -rf conftest*
3478: ac_cv_prog_gcc_traditional=yes
3479: else
3480: rm -rf conftest*
3481: ac_cv_prog_gcc_traditional=no
3482: fi
3483: rm -f conftest*
3484:
3485:
3486: if test $ac_cv_prog_gcc_traditional = no; then
3487: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3488: #line 3489 "configure"
1.1 root 3489: #include "confdefs.h"
3490: #include <termio.h>
3491: Autoconf TCGETA
3492: EOF
3493: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494: egrep "$ac_pattern" >/dev/null 2>&1; then
3495: rm -rf conftest*
3496: ac_cv_prog_gcc_traditional=yes
3497: fi
3498: rm -f conftest*
3499:
3500: fi
3501: fi
3502:
3503: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3504: if test $ac_cv_prog_gcc_traditional = yes; then
3505: CC="$CC -traditional"
3506: fi
3507: fi
3508:
3509: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1.1.1.7 ! root 3510: echo "configure:3511: checking for 8-bit clean memcmp" >&5
1.1.1.4 root 3511: if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1.1 root 3512: echo $ac_n "(cached) $ac_c" 1>&6
3513: else
3514: if test "$cross_compiling" = yes; then
1.1.1.4 root 3515: ac_cv_func_memcmp_clean=no
1.1 root 3516: else
1.1.1.4 root 3517: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3518: #line 3519 "configure"
1.1 root 3519: #include "confdefs.h"
3520:
3521: main()
3522: {
3523: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3524: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3525: }
3526:
3527: EOF
1.1.1.7 ! root 3528: if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3529: then
3530: ac_cv_func_memcmp_clean=yes
1.1 root 3531: else
1.1.1.4 root 3532: echo "configure: failed program was:" >&5
3533: cat conftest.$ac_ext >&5
3534: rm -fr conftest*
3535: ac_cv_func_memcmp_clean=no
1.1 root 3536: fi
3537: rm -fr conftest*
3538: fi
3539:
1.1.1.4 root 3540: fi
3541:
3542: echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3543: test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1.1 root 3544:
3545: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.1.1.7 ! root 3546: echo "configure:3547: checking return type of signal handlers" >&5
1.1 root 3547: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3548: echo $ac_n "(cached) $ac_c" 1>&6
3549: else
3550: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3551: #line 3552 "configure"
1.1 root 3552: #include "confdefs.h"
3553: #include <sys/types.h>
3554: #include <signal.h>
3555: #ifdef signal
3556: #undef signal
3557: #endif
3558: #ifdef __cplusplus
3559: extern "C" void (*signal (int, void (*)(int)))(int);
3560: #else
3561: void (*signal ()) ();
3562: #endif
3563:
1.1.1.4 root 3564: int main() {
1.1 root 3565: int i;
3566: ; return 0; }
3567: EOF
1.1.1.7 ! root 3568: if { (eval echo configure:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3569: rm -rf conftest*
3570: ac_cv_type_signal=void
3571: else
1.1.1.4 root 3572: echo "configure: failed program was:" >&5
3573: cat conftest.$ac_ext >&5
1.1 root 3574: rm -rf conftest*
3575: ac_cv_type_signal=int
3576: fi
3577: rm -f conftest*
3578: fi
3579:
3580: echo "$ac_t""$ac_cv_type_signal" 1>&6
3581: cat >> confdefs.h <<EOF
3582: #define RETSIGTYPE $ac_cv_type_signal
3583: EOF
3584:
3585:
3586: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
1.1.1.7 ! root 3587: echo "configure:3588: checking whether utime accepts a null argument" >&5
1.1 root 3588: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
3589: echo $ac_n "(cached) $ac_c" 1>&6
3590: else
3591: rm -f conftestdata; > conftestdata
3592: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
3593: if test "$cross_compiling" = yes; then
3594: ac_cv_func_utime_null=no
3595: else
1.1.1.4 root 3596: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3597: #line 3598 "configure"
1.1 root 3598: #include "confdefs.h"
3599: #include <sys/types.h>
3600: #include <sys/stat.h>
3601: main() {
3602: struct stat s, t;
3603: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
3604: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
3605: && t.st_mtime - s.st_mtime < 120));
3606: }
3607: EOF
1.1.1.7 ! root 3608: if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3609: then
1.1 root 3610: ac_cv_func_utime_null=yes
3611: else
1.1.1.4 root 3612: echo "configure: failed program was:" >&5
3613: cat conftest.$ac_ext >&5
3614: rm -fr conftest*
1.1 root 3615: ac_cv_func_utime_null=no
3616: fi
3617: rm -fr conftest*
1.1.1.4 root 3618: fi
3619:
1.1 root 3620: rm -f core core.* *.core
3621: fi
3622:
3623: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
3624: if test $ac_cv_func_utime_null = yes; then
3625: cat >> confdefs.h <<\EOF
3626: #define HAVE_UTIME_NULL 1
3627: EOF
3628:
3629: fi
3630:
1.1.1.6 root 3631: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr
3632: do
3633: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.7 ! root 3634: echo "configure:3635: checking for $ac_func" >&5
1.1.1.6 root 3635: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3636: echo $ac_n "(cached) $ac_c" 1>&6
3637: else
3638: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3639: #line 3640 "configure"
1.1.1.6 root 3640: #include "confdefs.h"
3641: /* System header to define __stub macros and hopefully few prototypes,
3642: which can conflict with char $ac_func(); below. */
3643: #include <assert.h>
3644: /* Override any gcc2 internal prototype to avoid an error. */
3645: /* We use char because int might match the return type of a gcc2
3646: builtin and then its argument prototype would still apply. */
3647: char $ac_func();
3648:
3649: int main() {
3650:
3651: /* The GNU C library defines this for functions which it implements
3652: to always fail with ENOSYS. Some functions are actually named
3653: something starting with __ and the normal name is an alias. */
3654: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3655: choke me
3656: #else
3657: $ac_func();
3658: #endif
3659:
3660: ; return 0; }
3661: EOF
1.1.1.7 ! root 3662: if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 3663: rm -rf conftest*
3664: eval "ac_cv_func_$ac_func=yes"
3665: else
3666: echo "configure: failed program was:" >&5
3667: cat conftest.$ac_ext >&5
3668: rm -rf conftest*
3669: eval "ac_cv_func_$ac_func=no"
3670: fi
3671: rm -f conftest*
3672: fi
3673:
3674: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3675: echo "$ac_t""yes" 1>&6
3676: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3677: cat >> confdefs.h <<EOF
3678: #define $ac_tr_func 1
3679: EOF
3680:
3681: else
3682: echo "$ac_t""no" 1>&6
3683: fi
3684: done
3685:
3686: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf
1.1 root 3687: do
3688: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.7 ! root 3689: echo "configure:3690: checking for $ac_func" >&5
1.1 root 3690: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3691: echo $ac_n "(cached) $ac_c" 1>&6
3692: else
3693: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3694: #line 3695 "configure"
1.1 root 3695: #include "confdefs.h"
3696: /* System header to define __stub macros and hopefully few prototypes,
3697: which can conflict with char $ac_func(); below. */
3698: #include <assert.h>
3699: /* Override any gcc2 internal prototype to avoid an error. */
3700: /* We use char because int might match the return type of a gcc2
3701: builtin and then its argument prototype would still apply. */
3702: char $ac_func();
3703:
1.1.1.4 root 3704: int main() {
1.1 root 3705:
3706: /* The GNU C library defines this for functions which it implements
3707: to always fail with ENOSYS. Some functions are actually named
3708: something starting with __ and the normal name is an alias. */
3709: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3710: choke me
3711: #else
3712: $ac_func();
3713: #endif
3714:
3715: ; return 0; }
3716: EOF
1.1.1.7 ! root 3717: if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 3718: rm -rf conftest*
3719: eval "ac_cv_func_$ac_func=yes"
3720: else
1.1.1.4 root 3721: echo "configure: failed program was:" >&5
3722: cat conftest.$ac_ext >&5
1.1 root 3723: rm -rf conftest*
3724: eval "ac_cv_func_$ac_func=no"
3725: fi
3726: rm -f conftest*
1.1.1.4 root 3727: fi
3728:
3729: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3730: echo "$ac_t""yes" 1>&6
3731: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3732: cat >> confdefs.h <<EOF
3733: #define $ac_tr_func 1
3734: EOF
3735:
3736: else
3737: echo "$ac_t""no" 1>&6
3738: fi
1.1.1.6 root 3739: done
3740:
3741:
3742: DO_FILEUTILS_CHECK=yes
3743: if test $uae_cv_prog_cc_watcom = yes -o $am_cv_mingw32 = yes; then
3744: DO_FILEUTILS_CHECK=no
3745: fi
3746: if test $DO_FILEUTILS_CHECK = yes; then
3747:
3748: for ac_hdr in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
3749: mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
3750: sys/filsys.h sys/fs_types.h sys/fs/s5param.h
3751: do
3752: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3753: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.7 ! root 3754: echo "configure:3755: checking for $ac_hdr" >&5
1.1.1.6 root 3755: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3756: echo $ac_n "(cached) $ac_c" 1>&6
3757: else
3758: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3759: #line 3760 "configure"
1.1.1.6 root 3760: #include "confdefs.h"
3761: #include <$ac_hdr>
3762: EOF
3763: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 3764: { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 3765: ac_err=`grep -v '^ *+' conftest.out`
3766: if test -z "$ac_err"; then
3767: rm -rf conftest*
3768: eval "ac_cv_header_$ac_safe=yes"
3769: else
3770: echo "$ac_err" >&5
3771: echo "configure: failed program was:" >&5
3772: cat conftest.$ac_ext >&5
3773: rm -rf conftest*
3774: eval "ac_cv_header_$ac_safe=no"
3775: fi
3776: rm -f conftest*
3777: fi
3778: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3779: echo "$ac_t""yes" 1>&6
3780: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3781: cat >> confdefs.h <<EOF
3782: #define $ac_tr_hdr 1
3783: EOF
3784:
3785: else
3786: echo "$ac_t""no" 1>&6
3787: fi
3788: done
3789:
3790:
3791: for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
3792: getcwd getmntinfo gettimeofday isascii lchown \
3793: listmntent memcpy mkfifo strchr strerror strrchr
3794: do
3795: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.7 ! root 3796: echo "configure:3797: checking for $ac_func" >&5
1.1.1.6 root 3797: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3798: echo $ac_n "(cached) $ac_c" 1>&6
3799: else
3800: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3801: #line 3802 "configure"
1.1.1.6 root 3802: #include "confdefs.h"
3803: /* System header to define __stub macros and hopefully few prototypes,
3804: which can conflict with char $ac_func(); below. */
3805: #include <assert.h>
3806: /* Override any gcc2 internal prototype to avoid an error. */
3807: /* We use char because int might match the return type of a gcc2
3808: builtin and then its argument prototype would still apply. */
3809: char $ac_func();
3810:
3811: int main() {
3812:
3813: /* The GNU C library defines this for functions which it implements
3814: to always fail with ENOSYS. Some functions are actually named
3815: something starting with __ and the normal name is an alias. */
3816: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817: choke me
3818: #else
3819: $ac_func();
3820: #endif
3821:
3822: ; return 0; }
3823: EOF
1.1.1.7 ! root 3824: if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 3825: rm -rf conftest*
3826: eval "ac_cv_func_$ac_func=yes"
3827: else
3828: echo "configure: failed program was:" >&5
3829: cat conftest.$ac_ext >&5
3830: rm -rf conftest*
3831: eval "ac_cv_func_$ac_func=no"
3832: fi
3833: rm -f conftest*
3834: fi
3835:
3836: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3837: echo "$ac_t""yes" 1>&6
3838: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3839: cat >> confdefs.h <<EOF
3840: #define $ac_tr_func 1
3841: EOF
3842:
3843: else
3844: echo "$ac_t""no" 1>&6
3845: fi
3846: done
3847:
3848:
3849: # Determine how to get the list of mounted filesystems.
3850: list_mounted_fs=
3851:
3852: # If the getmntent function is available but not in the standard library,
3853: # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
3854: # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
3855: echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
1.1.1.7 ! root 3856: echo "configure:3857: checking for getmntent in -lsun" >&5
1.1.1.6 root 3857: ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
3858: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3859: echo $ac_n "(cached) $ac_c" 1>&6
3860: else
3861: ac_save_LIBS="$LIBS"
3862: LIBS="-lsun $LIBS"
3863: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3864: #line 3865 "configure"
1.1.1.6 root 3865: #include "confdefs.h"
3866: /* Override any gcc2 internal prototype to avoid an error. */
3867: /* We use char because int might match the return type of a gcc2
3868: builtin and then its argument prototype would still apply. */
3869: char getmntent();
3870:
3871: int main() {
3872: getmntent()
3873: ; return 0; }
3874: EOF
1.1.1.7 ! root 3875: if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 3876: rm -rf conftest*
3877: eval "ac_cv_lib_$ac_lib_var=yes"
3878: else
3879: echo "configure: failed program was:" >&5
3880: cat conftest.$ac_ext >&5
3881: rm -rf conftest*
3882: eval "ac_cv_lib_$ac_lib_var=no"
3883: fi
3884: rm -f conftest*
3885: LIBS="$ac_save_LIBS"
3886:
3887: fi
3888: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3889: echo "$ac_t""yes" 1>&6
3890: LIBS="-lsun $LIBS"
3891: else
3892: echo "$ac_t""no" 1>&6
3893: echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
1.1.1.7 ! root 3894: echo "configure:3895: checking for getmntent in -lseq" >&5
1.1.1.6 root 3895: ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
3896: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897: echo $ac_n "(cached) $ac_c" 1>&6
3898: else
3899: ac_save_LIBS="$LIBS"
3900: LIBS="-lseq $LIBS"
3901: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3902: #line 3903 "configure"
1.1.1.6 root 3903: #include "confdefs.h"
3904: /* Override any gcc2 internal prototype to avoid an error. */
3905: /* We use char because int might match the return type of a gcc2
3906: builtin and then its argument prototype would still apply. */
3907: char getmntent();
3908:
3909: int main() {
3910: getmntent()
3911: ; return 0; }
3912: EOF
1.1.1.7 ! root 3913: if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 3914: rm -rf conftest*
3915: eval "ac_cv_lib_$ac_lib_var=yes"
3916: else
3917: echo "configure: failed program was:" >&5
3918: cat conftest.$ac_ext >&5
3919: rm -rf conftest*
3920: eval "ac_cv_lib_$ac_lib_var=no"
3921: fi
3922: rm -f conftest*
3923: LIBS="$ac_save_LIBS"
3924:
3925: fi
3926: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3927: echo "$ac_t""yes" 1>&6
3928: LIBS="-lseq $LIBS"
3929: else
3930: echo "$ac_t""no" 1>&6
3931: echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
1.1.1.7 ! root 3932: echo "configure:3933: checking for getmntent in -lgen" >&5
1.1.1.6 root 3933: ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
3934: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3935: echo $ac_n "(cached) $ac_c" 1>&6
3936: else
3937: ac_save_LIBS="$LIBS"
3938: LIBS="-lgen $LIBS"
3939: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3940: #line 3941 "configure"
1.1.1.6 root 3941: #include "confdefs.h"
3942: /* Override any gcc2 internal prototype to avoid an error. */
3943: /* We use char because int might match the return type of a gcc2
3944: builtin and then its argument prototype would still apply. */
3945: char getmntent();
3946:
3947: int main() {
3948: getmntent()
3949: ; return 0; }
3950: EOF
1.1.1.7 ! root 3951: if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 3952: rm -rf conftest*
3953: eval "ac_cv_lib_$ac_lib_var=yes"
3954: else
3955: echo "configure: failed program was:" >&5
3956: cat conftest.$ac_ext >&5
3957: rm -rf conftest*
3958: eval "ac_cv_lib_$ac_lib_var=no"
3959: fi
3960: rm -f conftest*
3961: LIBS="$ac_save_LIBS"
3962:
3963: fi
3964: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3965: echo "$ac_t""yes" 1>&6
3966: LIBS="-lgen $LIBS"
3967: else
3968: echo "$ac_t""no" 1>&6
3969: fi
3970:
3971: fi
3972:
3973: fi
3974:
3975: echo $ac_n "checking for getmntent""... $ac_c" 1>&6
1.1.1.7 ! root 3976: echo "configure:3977: checking for getmntent" >&5
1.1.1.6 root 3977: if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
3978: echo $ac_n "(cached) $ac_c" 1>&6
3979: else
3980: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 3981: #line 3982 "configure"
1.1.1.6 root 3982: #include "confdefs.h"
3983: /* System header to define __stub macros and hopefully few prototypes,
3984: which can conflict with char getmntent(); below. */
3985: #include <assert.h>
3986: /* Override any gcc2 internal prototype to avoid an error. */
3987: /* We use char because int might match the return type of a gcc2
3988: builtin and then its argument prototype would still apply. */
3989: char getmntent();
3990:
3991: int main() {
3992:
3993: /* The GNU C library defines this for functions which it implements
3994: to always fail with ENOSYS. Some functions are actually named
3995: something starting with __ and the normal name is an alias. */
3996: #if defined (__stub_getmntent) || defined (__stub___getmntent)
3997: choke me
3998: #else
3999: getmntent();
4000: #endif
4001:
4002: ; return 0; }
4003: EOF
1.1.1.7 ! root 4004: if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 4005: rm -rf conftest*
4006: eval "ac_cv_func_getmntent=yes"
4007: else
4008: echo "configure: failed program was:" >&5
4009: cat conftest.$ac_ext >&5
4010: rm -rf conftest*
4011: eval "ac_cv_func_getmntent=no"
4012: fi
4013: rm -f conftest*
4014: fi
4015:
4016: if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
4017: echo "$ac_t""yes" 1>&6
4018: cat >> confdefs.h <<\EOF
4019: #define HAVE_GETMNTENT 1
4020: EOF
4021:
4022: else
4023: echo "$ac_t""no" 1>&6
4024: fi
4025:
4026:
4027: # This test must precede the ones for getmntent because Unicos-9 is
4028: # reported to have the getmntent function, but its support is incompatible
4029: # with other getmntent implementations.
4030:
4031: # NOTE: Normally, I wouldn't use a check for system type as I've done for
4032: # `CRAY' below since that goes against the whole autoconf philosophy. But
4033: # I think there is too great a chance that some non-Cray system has a
4034: # function named listmntent to risk the false positive.
4035:
4036: if test -z "$list_mounted_fs"; then
4037: # Cray UNICOS 9
4038: echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6
1.1.1.7 ! root 4039: echo "configure:4040: checking for listmntent of Cray/Unicos-9" >&5
1.1.1.6 root 4040: if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then
4041: echo $ac_n "(cached) $ac_c" 1>&6
4042: else
4043: fu_cv_sys_mounted_cray_listmntent=no
4044: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4045: #line 4046 "configure"
1.1.1.6 root 4046: #include "confdefs.h"
4047: #ifdef _CRAY
4048: yes
4049: #endif
4050:
4051: EOF
4052: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053: egrep "yes" >/dev/null 2>&1; then
4054: rm -rf conftest*
4055: test $ac_cv_func_listmntent = yes \
4056: && fu_cv_sys_mounted_cray_listmntent=yes
4057:
4058: fi
4059: rm -f conftest*
4060:
4061:
4062:
4063: fi
4064:
4065: echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6
4066: if test $fu_cv_sys_mounted_cray_listmntent = yes; then
4067: list_mounted_fs=found
4068: cat >> confdefs.h <<\EOF
4069: #define MOUNTED_LISTMNTENT 1
4070: EOF
4071:
4072: fi
4073: fi
4074:
4075: if test $ac_cv_func_getmntent = yes; then
4076:
4077: # This system has the getmntent function.
4078: # Determine whether it's the one-argument variant or the two-argument one.
4079:
4080: if test -z "$list_mounted_fs"; then
4081: # 4.3BSD, SunOS, HP-UX, Dynix, Irix
4082: echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6
1.1.1.7 ! root 4083: echo "configure:4084: checking for one-argument getmntent function" >&5
1.1.1.6 root 4084: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then
4085: echo $ac_n "(cached) $ac_c" 1>&6
4086: else
4087: test $ac_cv_header_mntent_h = yes \
4088: && fu_cv_sys_mounted_getmntent1=yes \
4089: || fu_cv_sys_mounted_getmntent1=no
4090: fi
4091:
4092: echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6
4093: if test $fu_cv_sys_mounted_getmntent1 = yes; then
4094: list_mounted_fs=found
4095: cat >> confdefs.h <<\EOF
4096: #define MOUNTED_GETMNTENT1 1
4097: EOF
4098:
4099: fi
4100: fi
4101:
4102: if test -z "$list_mounted_fs"; then
4103: # SVR4
4104: echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6
1.1.1.7 ! root 4105: echo "configure:4106: checking for two-argument getmntent function" >&5
1.1.1.6 root 4106: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then
4107: echo $ac_n "(cached) $ac_c" 1>&6
4108: else
4109: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4110: #line 4111 "configure"
1.1.1.6 root 4111: #include "confdefs.h"
4112: #include <sys/mnttab.h>
4113: EOF
4114: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115: egrep "getmntent" >/dev/null 2>&1; then
4116: rm -rf conftest*
4117: fu_cv_sys_mounted_getmntent2=yes
4118: else
4119: rm -rf conftest*
4120: fu_cv_sys_mounted_getmntent2=no
4121: fi
4122: rm -f conftest*
4123:
4124: fi
4125:
4126: echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6
4127: if test $fu_cv_sys_mounted_getmntent2 = yes; then
4128: list_mounted_fs=found
4129: cat >> confdefs.h <<\EOF
4130: #define MOUNTED_GETMNTENT2 1
4131: EOF
4132:
4133: fi
4134: fi
4135:
4136: if test -z "$list_mounted_fs"; then
4137: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
4138: fi
4139:
4140: fi
4141:
4142: if test -z "$list_mounted_fs"; then
4143: # DEC Alpha running OSF/1.
4144: echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6
1.1.1.7 ! root 4145: echo "configure:4146: checking for getfsstat function" >&5
1.1.1.6 root 4146: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then
4147: echo $ac_n "(cached) $ac_c" 1>&6
4148: else
4149: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4150: #line 4151 "configure"
1.1.1.6 root 4151: #include "confdefs.h"
4152:
4153: #include <sys/types.h>
4154: #include <sys/mount.h>
4155: #include <sys/fs_types.h>
4156: int main() {
4157: struct statfs *stats;
4158: int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
4159: ; return 0; }
4160: EOF
1.1.1.7 ! root 4161: if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 4162: rm -rf conftest*
4163: fu_cv_sys_mounted_getsstat=yes
4164: else
4165: echo "configure: failed program was:" >&5
4166: cat conftest.$ac_ext >&5
4167: rm -rf conftest*
4168: fu_cv_sys_mounted_getsstat=no
4169: fi
4170: rm -f conftest*
4171: fi
4172:
4173: echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6
4174: if test $fu_cv_sys_mounted_getsstat = yes; then
4175: list_mounted_fs=found
4176: cat >> confdefs.h <<\EOF
4177: #define MOUNTED_GETFSSTAT 1
4178: EOF
4179:
4180: fi
4181: fi
4182:
4183: if test -z "$list_mounted_fs"; then
4184: # AIX.
4185: echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6
1.1.1.7 ! root 4186: echo "configure:4187: checking for mntctl function and struct vmount" >&5
1.1.1.6 root 4187: if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then
4188: echo $ac_n "(cached) $ac_c" 1>&6
4189: else
4190: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4191: #line 4192 "configure"
1.1.1.6 root 4192: #include "confdefs.h"
4193: #include <fshelp.h>
4194: EOF
4195: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 4196: { (eval echo configure:4197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 4197: ac_err=`grep -v '^ *+' conftest.out`
4198: if test -z "$ac_err"; then
4199: rm -rf conftest*
4200: fu_cv_sys_mounted_vmount=yes
4201: else
4202: echo "$ac_err" >&5
4203: echo "configure: failed program was:" >&5
4204: cat conftest.$ac_ext >&5
4205: rm -rf conftest*
4206: fu_cv_sys_mounted_vmount=no
4207: fi
4208: rm -f conftest*
4209: fi
4210:
4211: echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6
4212: if test $fu_cv_sys_mounted_vmount = yes; then
4213: list_mounted_fs=found
4214: cat >> confdefs.h <<\EOF
4215: #define MOUNTED_VMOUNT 1
4216: EOF
4217:
4218: fi
4219: fi
4220:
4221: if test -z "$list_mounted_fs"; then
4222: # SVR3
4223: echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6
1.1.1.7 ! root 4224: echo "configure:4225: checking for FIXME existence of three headers" >&5
1.1.1.6 root 4225: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then
4226: echo $ac_n "(cached) $ac_c" 1>&6
4227: else
4228: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4229: #line 4230 "configure"
1.1.1.6 root 4230: #include "confdefs.h"
4231:
4232: #include <sys/statfs.h>
4233: #include <sys/fstyp.h>
4234: #include <mnttab.h>
4235: EOF
4236: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 4237: { (eval echo configure:4238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 4238: ac_err=`grep -v '^ *+' conftest.out`
4239: if test -z "$ac_err"; then
4240: rm -rf conftest*
4241: fu_cv_sys_mounted_fread_fstyp=yes
4242: else
4243: echo "$ac_err" >&5
4244: echo "configure: failed program was:" >&5
4245: cat conftest.$ac_ext >&5
4246: rm -rf conftest*
4247: fu_cv_sys_mounted_fread_fstyp=no
4248: fi
4249: rm -f conftest*
4250: fi
4251:
4252: echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6
4253: if test $fu_cv_sys_mounted_fread_fstyp = yes; then
4254: list_mounted_fs=found
4255: cat >> confdefs.h <<\EOF
4256: #define MOUNTED_FREAD_FSTYP 1
4257: EOF
4258:
4259: fi
4260: fi
4261:
4262: if test -z "$list_mounted_fs"; then
4263: # 4.4BSD and DEC OSF/1.
4264: echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6
1.1.1.7 ! root 4265: echo "configure:4266: checking for getmntinfo function" >&5
1.1.1.6 root 4266: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then
4267: echo $ac_n "(cached) $ac_c" 1>&6
4268: else
4269:
4270: ok=
4271: if test $ac_cv_func_getmntinfo = yes; then
4272: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4273: #line 4274 "configure"
1.1.1.6 root 4274: #include "confdefs.h"
4275: #include <sys/mount.h>
4276: EOF
4277: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278: egrep "f_type;" >/dev/null 2>&1; then
4279: rm -rf conftest*
4280: ok=yes
4281: fi
4282: rm -f conftest*
4283:
4284: fi
4285: test -n "$ok" \
4286: && fu_cv_sys_mounted_getmntinfo=yes \
4287: || fu_cv_sys_mounted_getmntinfo=no
4288:
4289: fi
4290:
4291: echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6
4292: if test $fu_cv_sys_mounted_getmntinfo = yes; then
4293: list_mounted_fs=found
4294: cat >> confdefs.h <<\EOF
4295: #define MOUNTED_GETMNTINFO 1
4296: EOF
4297:
4298: fi
4299: fi
4300:
4301: # FIXME: add a test for netbsd-1.1 here
4302:
4303: if test -z "$list_mounted_fs"; then
4304: # Ultrix
4305: echo $ac_n "checking for getmnt function""... $ac_c" 1>&6
1.1.1.7 ! root 4306: echo "configure:4307: checking for getmnt function" >&5
1.1.1.6 root 4307: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then
4308: echo $ac_n "(cached) $ac_c" 1>&6
4309: else
4310: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4311: #line 4312 "configure"
1.1.1.6 root 4312: #include "confdefs.h"
4313:
4314: #include <sys/fs_types.h>
4315: #include <sys/mount.h>
4316: EOF
4317: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 4318: { (eval echo configure:4319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 4319: ac_err=`grep -v '^ *+' conftest.out`
4320: if test -z "$ac_err"; then
4321: rm -rf conftest*
4322: fu_cv_sys_mounted_getmnt=yes
4323: else
4324: echo "$ac_err" >&5
4325: echo "configure: failed program was:" >&5
4326: cat conftest.$ac_ext >&5
4327: rm -rf conftest*
4328: fu_cv_sys_mounted_getmnt=no
4329: fi
4330: rm -f conftest*
4331: fi
4332:
4333: echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6
4334: if test $fu_cv_sys_mounted_getmnt = yes; then
4335: list_mounted_fs=found
4336: cat >> confdefs.h <<\EOF
4337: #define MOUNTED_GETMNT 1
4338: EOF
4339:
4340: fi
4341: fi
4342:
4343: if test -z "$list_mounted_fs"; then
4344: # SVR2
4345: echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6
1.1.1.7 ! root 4346: echo "configure:4347: checking whether it is possible to resort to fread on /etc/mnttab" >&5
1.1.1.6 root 4347: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then
4348: echo $ac_n "(cached) $ac_c" 1>&6
4349: else
4350: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4351: #line 4352 "configure"
1.1.1.6 root 4352: #include "confdefs.h"
4353: #include <mnttab.h>
4354: EOF
4355: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 4356: { (eval echo configure:4357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 4357: ac_err=`grep -v '^ *+' conftest.out`
4358: if test -z "$ac_err"; then
4359: rm -rf conftest*
4360: fu_cv_sys_mounted_fread=yes
4361: else
4362: echo "$ac_err" >&5
4363: echo "configure: failed program was:" >&5
4364: cat conftest.$ac_ext >&5
4365: rm -rf conftest*
4366: fu_cv_sys_mounted_fread=no
4367: fi
4368: rm -f conftest*
4369: fi
4370:
4371: echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6
4372: if test $fu_cv_sys_mounted_fread = yes; then
4373: list_mounted_fs=found
4374: cat >> confdefs.h <<\EOF
4375: #define MOUNTED_FREAD 1
4376: EOF
4377:
4378: fi
4379: fi
4380:
4381: if test -z "$list_mounted_fs"; then
4382: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
4383: # FIXME -- no need to abort building the whole package
4384: # Can't build mountlist.c or anything that needs its functions
4385: fi
4386:
4387: echo "checking how to get filesystem space usage" 1>&6
1.1.1.7 ! root 4388: echo "configure:4389: checking how to get filesystem space usage" >&5
1.1.1.6 root 4389: space=no
4390:
4391: # Perform only the link test since it seems there are no variants of the
4392: # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
4393: # because that got a false positive on SCO OSR5. Adding the declaration
4394: # of a `struct statvfs' causes this test to fail (as it should) on such
4395: # systems. That system is reported to work fine with STAT_STATFS4 which
4396: # is what it gets when this test fails.
4397: if test $space = no; then
4398: # SVR4
4399: echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
1.1.1.7 ! root 4400: echo "configure:4401: checking statvfs function (SVR4)" >&5
1.1.1.6 root 4401: if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
4402: echo $ac_n "(cached) $ac_c" 1>&6
4403: else
4404: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4405: #line 4406 "configure"
1.1.1.6 root 4406: #include "confdefs.h"
4407: #include <sys/types.h>
4408: #include <sys/statvfs.h>
4409: int main() {
4410: struct statvfs fsd; statvfs (0, &fsd);
4411: ; return 0; }
4412: EOF
1.1.1.7 ! root 4413: if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 4414: rm -rf conftest*
4415: fu_cv_sys_stat_statvfs=yes
4416: else
4417: echo "configure: failed program was:" >&5
4418: cat conftest.$ac_ext >&5
4419: rm -rf conftest*
4420: fu_cv_sys_stat_statvfs=no
4421: fi
4422: rm -f conftest*
4423: fi
4424:
4425: echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
4426: if test $fu_cv_sys_stat_statvfs = yes; then
4427: space=yes
4428: cat >> confdefs.h <<\EOF
4429: #define STAT_STATVFS 1
4430: EOF
4431:
4432: fi
4433: fi
4434:
4435: if test $space = no; then
4436: # DEC Alpha running OSF/1
4437: echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
1.1.1.7 ! root 4438: echo "configure:4439: checking for 3-argument statfs function (DEC OSF/1)" >&5
1.1.1.6 root 4439: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
4440: echo $ac_n "(cached) $ac_c" 1>&6
4441: else
4442: if test "$cross_compiling" = yes; then
4443: fu_cv_sys_stat_statfs3_osf1=no
4444: else
4445: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4446: #line 4447 "configure"
1.1.1.6 root 4447: #include "confdefs.h"
4448:
4449: #include <sys/param.h>
4450: #include <sys/types.h>
4451: #include <sys/mount.h>
4452: main ()
4453: {
4454: struct statfs fsd;
4455: fsd.f_fsize = 0;
4456: exit (statfs (".", &fsd, sizeof (struct statfs)));
4457: }
4458: EOF
1.1.1.7 ! root 4459: if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 4460: then
4461: fu_cv_sys_stat_statfs3_osf1=yes
4462: else
4463: echo "configure: failed program was:" >&5
4464: cat conftest.$ac_ext >&5
4465: rm -fr conftest*
4466: fu_cv_sys_stat_statfs3_osf1=no
4467: fi
4468: rm -fr conftest*
4469: fi
4470:
4471: fi
4472:
4473: echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
4474: if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
4475: space=yes
4476: cat >> confdefs.h <<\EOF
4477: #define STAT_STATFS3_OSF1 1
4478: EOF
4479:
4480: fi
4481: fi
4482:
4483: if test $space = no; then
4484: # AIX
4485: echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
1.1.1.7 ! root 4486: echo "configure:4487: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
1.1.1.6 root 4487: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
4488: echo $ac_n "(cached) $ac_c" 1>&6
4489: else
4490: if test "$cross_compiling" = yes; then
4491: fu_cv_sys_stat_statfs2_bsize=no
4492: else
4493: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4494: #line 4495 "configure"
1.1.1.6 root 4495: #include "confdefs.h"
4496:
4497: #ifdef HAVE_SYS_PARAM_H
4498: #include <sys/param.h>
4499: #endif
4500: #ifdef HAVE_SYS_MOUNT_H
4501: #include <sys/mount.h>
4502: #endif
4503: #ifdef HAVE_SYS_VFS_H
4504: #include <sys/vfs.h>
4505: #endif
4506: main ()
4507: {
4508: struct statfs fsd;
4509: fsd.f_bsize = 0;
4510: exit (statfs (".", &fsd));
4511: }
4512: EOF
1.1.1.7 ! root 4513: if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 4514: then
4515: fu_cv_sys_stat_statfs2_bsize=yes
4516: else
4517: echo "configure: failed program was:" >&5
4518: cat conftest.$ac_ext >&5
4519: rm -fr conftest*
4520: fu_cv_sys_stat_statfs2_bsize=no
4521: fi
4522: rm -fr conftest*
4523: fi
4524:
4525: fi
4526:
4527: echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
4528: if test $fu_cv_sys_stat_statfs2_bsize = yes; then
4529: space=yes
4530: cat >> confdefs.h <<\EOF
4531: #define STAT_STATFS2_BSIZE 1
4532: EOF
4533:
4534: fi
4535: fi
4536:
4537: if test $space = no; then
4538: # SVR3
4539: echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
1.1.1.7 ! root 4540: echo "configure:4541: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
1.1.1.6 root 4541: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
4542: echo $ac_n "(cached) $ac_c" 1>&6
4543: else
4544: if test "$cross_compiling" = yes; then
4545: fu_cv_sys_stat_statfs4=no
4546: else
4547: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4548: #line 4549 "configure"
1.1.1.6 root 4549: #include "confdefs.h"
4550: #include <sys/types.h>
4551: #include <sys/statfs.h>
4552: main ()
4553: {
4554: struct statfs fsd;
4555: exit (statfs (".", &fsd, sizeof fsd, 0));
4556: }
4557: EOF
1.1.1.7 ! root 4558: if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 4559: then
4560: fu_cv_sys_stat_statfs4=yes
4561: else
4562: echo "configure: failed program was:" >&5
4563: cat conftest.$ac_ext >&5
4564: rm -fr conftest*
4565: fu_cv_sys_stat_statfs4=no
4566: fi
4567: rm -fr conftest*
4568: fi
4569:
4570: fi
4571:
4572: echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
4573: if test $fu_cv_sys_stat_statfs4 = yes; then
4574: space=yes
4575: cat >> confdefs.h <<\EOF
4576: #define STAT_STATFS4 1
4577: EOF
4578:
4579: fi
4580: fi
4581:
4582: if test $space = no; then
4583: # 4.4BSD and NetBSD
4584: echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
1.1.1.7 ! root 4585: echo "configure:4586: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
1.1.1.6 root 4586: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
4587: echo $ac_n "(cached) $ac_c" 1>&6
4588: else
4589: if test "$cross_compiling" = yes; then
4590: fu_cv_sys_stat_statfs2_fsize=no
4591: else
4592: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4593: #line 4594 "configure"
1.1.1.6 root 4594: #include "confdefs.h"
4595: #include <sys/types.h>
4596: #ifdef HAVE_SYS_PARAM_H
4597: #include <sys/param.h>
4598: #endif
4599: #ifdef HAVE_SYS_MOUNT_H
4600: #include <sys/mount.h>
4601: #endif
4602: main ()
4603: {
4604: struct statfs fsd;
4605: fsd.f_fsize = 0;
4606: exit (statfs (".", &fsd));
4607: }
4608: EOF
1.1.1.7 ! root 4609: if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 4610: then
4611: fu_cv_sys_stat_statfs2_fsize=yes
4612: else
4613: echo "configure: failed program was:" >&5
4614: cat conftest.$ac_ext >&5
4615: rm -fr conftest*
4616: fu_cv_sys_stat_statfs2_fsize=no
4617: fi
4618: rm -fr conftest*
4619: fi
4620:
4621: fi
4622:
4623: echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
4624: if test $fu_cv_sys_stat_statfs2_fsize = yes; then
4625: space=yes
4626: cat >> confdefs.h <<\EOF
4627: #define STAT_STATFS2_FSIZE 1
4628: EOF
4629:
4630: fi
4631: fi
4632:
4633: if test $space = no; then
4634: # Ultrix
4635: echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
1.1.1.7 ! root 4636: echo "configure:4637: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
1.1.1.6 root 4637: if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
4638: echo $ac_n "(cached) $ac_c" 1>&6
4639: else
4640: if test "$cross_compiling" = yes; then
4641: fu_cv_sys_stat_fs_data=no
4642: else
4643: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4644: #line 4645 "configure"
1.1.1.6 root 4645: #include "confdefs.h"
4646: #include <sys/types.h>
4647: #ifdef HAVE_SYS_PARAM_H
4648: #include <sys/param.h>
4649: #endif
4650: #ifdef HAVE_SYS_MOUNT_H
4651: #include <sys/mount.h>
4652: #endif
4653: #ifdef HAVE_SYS_FS_TYPES_H
4654: #include <sys/fs_types.h>
4655: #endif
4656: main ()
4657: {
4658: struct fs_data fsd;
4659: /* Ultrix's statfs returns 1 for success,
4660: 0 for not mounted, -1 for failure. */
4661: exit (statfs (".", &fsd) != 1);
4662: }
4663: EOF
1.1.1.7 ! root 4664: if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.6 root 4665: then
4666: fu_cv_sys_stat_fs_data=yes
4667: else
4668: echo "configure: failed program was:" >&5
4669: cat conftest.$ac_ext >&5
4670: rm -fr conftest*
4671: fu_cv_sys_stat_fs_data=no
4672: fi
4673: rm -fr conftest*
4674: fi
4675:
4676: fi
4677:
4678: echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
4679: if test $fu_cv_sys_stat_fs_data = yes; then
4680: space=yes
4681: cat >> confdefs.h <<\EOF
4682: #define STAT_STATFS2_FS_DATA 1
4683: EOF
4684:
4685: fi
4686: fi
4687:
4688: if test $space = no; then
4689: # SVR2
4690: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4691: #line 4692 "configure"
1.1.1.6 root 4692: #include "confdefs.h"
4693: #include <sys/filsys.h>
4694: EOF
4695: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.7 ! root 4696: { (eval echo configure:4697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.6 root 4697: ac_err=`grep -v '^ *+' conftest.out`
4698: if test -z "$ac_err"; then
4699: rm -rf conftest*
4700: cat >> confdefs.h <<\EOF
4701: #define STAT_READ_FILSYS 1
4702: EOF
4703: space=yes
4704: else
4705: echo "$ac_err" >&5
4706: echo "configure: failed program was:" >&5
4707: cat conftest.$ac_ext >&5
4708: fi
4709: rm -f conftest*
4710: fi
4711:
4712: if test -n "$list_mounted_fs" && test $space != no; then
4713: DF_PROG="df"
4714: LIBOBJS="$LIBOBJS fsusage.o"
4715: LIBOBJS="$LIBOBJS mountlist.o"
4716: fi
1.1.1.4 root 4717:
1.1.1.6 root 4718: for ac_func in ftruncate
1.1.1.4 root 4719: do
4720: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.7 ! root 4721: echo "configure:4722: checking for $ac_func" >&5
1.1.1.4 root 4722: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4723: echo $ac_n "(cached) $ac_c" 1>&6
4724: else
4725: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4726: #line 4727 "configure"
1.1.1.4 root 4727: #include "confdefs.h"
4728: /* System header to define __stub macros and hopefully few prototypes,
4729: which can conflict with char $ac_func(); below. */
4730: #include <assert.h>
4731: /* Override any gcc2 internal prototype to avoid an error. */
4732: /* We use char because int might match the return type of a gcc2
4733: builtin and then its argument prototype would still apply. */
4734: char $ac_func();
4735:
4736: int main() {
4737:
4738: /* The GNU C library defines this for functions which it implements
4739: to always fail with ENOSYS. Some functions are actually named
4740: something starting with __ and the normal name is an alias. */
4741: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4742: choke me
4743: #else
4744: $ac_func();
4745: #endif
1.1 root 4746:
1.1.1.4 root 4747: ; return 0; }
4748: EOF
1.1.1.7 ! root 4749: if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 4750: rm -rf conftest*
4751: eval "ac_cv_func_$ac_func=yes"
4752: else
4753: echo "configure: failed program was:" >&5
4754: cat conftest.$ac_ext >&5
4755: rm -rf conftest*
4756: eval "ac_cv_func_$ac_func=no"
4757: fi
4758: rm -f conftest*
1.1 root 4759: fi
1.1.1.4 root 4760:
1.1 root 4761: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4762: echo "$ac_t""yes" 1>&6
4763: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4764: cat >> confdefs.h <<EOF
4765: #define $ac_tr_func 1
4766: EOF
4767:
4768: else
4769: echo "$ac_t""no" 1>&6
1.1.1.6 root 4770: ftruncate_missing=yes
1.1 root 4771: fi
4772: done
4773:
4774:
1.1.1.6 root 4775: if test "$ftruncate_missing" = yes; then
4776: echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6
1.1.1.7 ! root 4777: echo "configure:4778: checking fcntl emulation of ftruncate" >&5
1.1.1.6 root 4778: if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then
4779: echo $ac_n "(cached) $ac_c" 1>&6
4780: else
1.1 root 4781: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4782: #line 4783 "configure"
1.1 root 4783: #include "confdefs.h"
4784:
1.1.1.2 root 4785: #include <sys/types.h>
1.1.1.6 root 4786: #include <fcntl.h>
1.1.1.4 root 4787: int main() {
1.1.1.6 root 4788:
4789: #if !defined(F_CHSIZE) && !defined(F_FREESP)
4790: chsize();
4791: #endif
4792:
1.1 root 4793: ; return 0; }
4794: EOF
1.1.1.7 ! root 4795: if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 4796: rm -rf conftest*
1.1.1.6 root 4797: fu_cv_sys_ftruncate_emulation=yes
1.1 root 4798: else
1.1.1.4 root 4799: echo "configure: failed program was:" >&5
4800: cat conftest.$ac_ext >&5
1.1 root 4801: rm -rf conftest*
1.1.1.6 root 4802: fu_cv_sys_ftruncate_emulation=no
1.1 root 4803: fi
4804: rm -f conftest*
4805: fi
4806:
1.1.1.6 root 4807: echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6
4808: if test $fu_cv_sys_ftruncate_emulation = yes; then
4809: LIBOBJS="$LIBOBJS ftruncate.o"
4810: fi
4811: fi
4812:
4813: case "$LIBOBJS" in
4814: *rename.o*)
4815: MVDIR_PROG="mvdir"
4816: ;;
4817: esac
4818:
4819: # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
4820: # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
4821: # enable the work-around code in fsusage.c.
4822: echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6
1.1.1.7 ! root 4823: echo "configure:4824: checking for statfs that truncates block counts" >&5
1.1.1.6 root 4824: if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then
4825: echo $ac_n "(cached) $ac_c" 1>&6
4826: else
1.1 root 4827: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4828: #line 4829 "configure"
1.1 root 4829: #include "confdefs.h"
4830:
1.1.1.6 root 4831: #if !defined(sun) && !defined(__sun)
4832: choke -- this is a workaround for a Sun-specific problem
1.1 root 4833: #endif
1.1.1.6 root 4834: #include <sys/types.h>
1.1 root 4835: #include <sys/vfs.h>
1.1.1.4 root 4836: int main() {
1.1.1.6 root 4837: struct statfs t; long c = *(t.f_spare);
1.1 root 4838: ; return 0; }
4839: EOF
1.1.1.7 ! root 4840: if { (eval echo configure:4841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 4841: rm -rf conftest*
1.1.1.6 root 4842: fu_cv_sys_truncating_statfs=yes
1.1 root 4843: else
1.1.1.4 root 4844: echo "configure: failed program was:" >&5
4845: cat conftest.$ac_ext >&5
1.1 root 4846: rm -rf conftest*
1.1.1.6 root 4847: fu_cv_sys_truncating_statfs=no
4848: fi
4849: rm -f conftest*
4850: fi
4851:
4852: if test $fu_cv_sys_truncating_statfs = yes; then
4853: cat >> confdefs.h <<\EOF
4854: #define STATFS_TRUNCATES_BLOCK_COUNTS 1
4855: EOF
4856:
4857: fi
4858: echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6
4859:
4860: echo "checking for AFS" 1>&6
1.1.1.7 ! root 4861: echo "configure:4862: checking for AFS" >&5
1.1.1.6 root 4862: test -d /afs && cat >> confdefs.h <<\EOF
4863: #define AFS 1
4864: EOF
4865:
4866:
4867: fi
4868:
4869: if [ $target = "p.os" ]; then
4870: HAVE_POS=yes
4871: else
4872: echo $ac_n "checking for pOS""... $ac_c" 1>&6
1.1.1.7 ! root 4873: echo "configure:4874: checking for pOS" >&5
1.1.1.6 root 4874: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4875: #line 4876 "configure"
1.1.1.6 root 4876: #include "confdefs.h"
4877: #ifdef __POS__
4878: yes
4879: #endif
4880:
4881: EOF
4882: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883: egrep "yes" >/dev/null 2>&1; then
4884: rm -rf conftest*
4885: echo "$ac_t""yes" 1>&6; HAVE_POS=yes
4886: else
4887: rm -rf conftest*
4888: echo "$ac_t""no" 1>&6; HAVE_POS=no
1.1 root 4889: fi
4890: rm -f conftest*
1.1.1.6 root 4891:
1.1 root 4892: fi
4893:
1.1.1.2 root 4894:
1.1.1.4 root 4895: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
4896: if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
4897: echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
4898: HAVE_NCURSES_LIB=no
4899: NR_ERRORS=`expr $NR_ERRORS + 1`
4900: else
4901: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
4902: echo $ac_n "checking for attr_t in curses.h""... $ac_c" 1>&6
1.1.1.7 ! root 4903: echo "configure:4904: checking for attr_t in curses.h" >&5
1.1.1.4 root 4904: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4905: #line 4906 "configure"
1.1.1.4 root 4906: #include "confdefs.h"
4907: #include <curses.h>
4908: int main() {
4909: { attr_t a; a = A_NORMAL; }
4910: ; return 0; }
4911: EOF
1.1.1.7 ! root 4912: if { (eval echo configure:4913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 4913: rm -rf conftest*
4914: echo "$ac_t""yes" 1>&6
1.1.1.2 root 4915: else
1.1.1.4 root 4916: echo "configure: failed program was:" >&5
4917: cat conftest.$ac_ext >&5
4918: rm -rf conftest*
4919:
4920: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
4921: echo "$ac_t""no" 1>&6
4922: NR_WARNINGS=`expr $NR_WARNINGS + 1`
4923: echo "Please install a newer version of libncurses if you can."
4924:
4925: fi
4926: rm -f conftest*
4927: else
4928: echo $ac_n "checking for attr_t in ncurses.h""... $ac_c" 1>&6
1.1.1.7 ! root 4929: echo "configure:4930: checking for attr_t in ncurses.h" >&5
1.1.1.4 root 4930: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4931: #line 4932 "configure"
1.1.1.4 root 4932: #include "confdefs.h"
4933: #include <ncurses.h>
4934: int main() {
4935: { attr_t a; a = A_NORMAL; }
4936: ; return 0; }
4937: EOF
1.1.1.7 ! root 4938: if { (eval echo configure:4939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 4939: rm -rf conftest*
4940: echo "$ac_t""yes" 1>&6
1.1.1.2 root 4941: else
1.1.1.4 root 4942: echo "configure: failed program was:" >&5
4943: cat conftest.$ac_ext >&5
4944: rm -rf conftest*
4945:
4946: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
4947: echo "$ac_t""no" 1>&6
4948: NR_WARNINGS=`expr $NR_WARNINGS + 1`
4949: echo "Please install a newer version of libncurses if you can."
4950:
4951: fi
4952: rm -f conftest*
1.1.1.2 root 4953: fi
1.1.1.4 root 4954: fi
1.1.1.2 root 4955: fi
1.1.1.4 root 4956:
1.1.1.6 root 4957:
4958: echo $ac_n "checking for pthread library""... $ac_c" 1>&6
1.1.1.7 ! root 4959: echo "configure:4960: checking for pthread library" >&5
1.1.1.6 root 4960: TMP_SAVE_CFLAGS=$CFLAGS
4961: TMP_SAVE_LIBS=$LIBS
4962: LIBS="$LIBS -lpthread"
4963: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 4964: #line 4965 "configure"
1.1.1.6 root 4965: #include "confdefs.h"
4966:
4967: #include "confdefs.h"
4968: #ifdef HAVE_SYS_TYPES_H
4969: #include <sys/types.h>
4970: #endif
4971: #include <pthread.h>
4972: int main() {
4973:
4974: void foo(void)
4975: {
4976: pthread_exit (0);
4977: }
4978: ; return 0; }
4979: EOF
1.1.1.7 ! root 4980: if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 4981: rm -rf conftest*
4982: HAVE_PTHREAD_LIB=yes
4983: echo "$ac_t""yes" 1>&6
4984: else
4985: echo "configure: failed program was:" >&5
4986: cat conftest.$ac_ext >&5
4987: rm -rf conftest*
4988: HAVE_PTHREAD_LIB=no
4989: echo "$ac_t""no" 1>&6
4990: fi
4991: rm -f conftest*
4992: CFLAGS=$TMP_SAVE_CFLAGS
4993: LIBS=$TMP_SAVE_LIBS
4994:
4995: echo $ac_n "checking for DirectX""... $ac_c" 1>&6
1.1.1.7 ! root 4996: echo "configure:4997: checking for DirectX" >&5
1.1.1.6 root 4997: TMP_SAVE_CFLAGS=$CFLAGS
4998: TMP_SAVE_LIBS=$LIBS
4999: CFLAGS="$CFLAGS $X_CFLAGS"
5000: LIBS="$LIBS -lddraw"
5001: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5002: #line 5003 "configure"
1.1.1.6 root 5003: #include "confdefs.h"
5004:
5005: #include "confdefs.h"
5006: #ifdef HAVE_SYS_TYPES_H
5007: #include <sys/types.h>
5008: #endif
5009: #include <windows.h>
5010: #include <ddraw.h>
5011: int main() {
5012:
5013: LPDIRECTDRAW lpDD;
5014: IDirectDraw_CreateSurface(lpDD, 0, 0, 0);
5015:
5016: ; return 0; }
5017: EOF
1.1.1.7 ! root 5018: if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.6 root 5019: rm -rf conftest*
5020: HAVE_DIRECTX=yes
5021: echo "$ac_t""yes" 1>&6
5022: else
5023: echo "configure: failed program was:" >&5
5024: cat conftest.$ac_ext >&5
5025: rm -rf conftest*
5026: HAVE_DIRECTX=no
5027: echo "$ac_t""no" 1>&6
5028: fi
5029: rm -f conftest*
5030: CFLAGS=$TMP_SAVE_CFLAGS
5031: LIBS=$TMP_SAVE_LIBS
5032:
1.1.1.4 root 5033: DO_PROFILING=no
5034: WANT_GGI=dunno
5035: WANT_SVGALIB=dunno
5036: WANT_ASCIIART=dunno
5037: WANT_UI=dunno
5038: WANT_NCURSES_UI=no
5039: WANT_DGA=no
5040: WANT_VIDMODE=no
5041: SYSTEM_IS_ELF=dunno
5042:
5043: # Check whether --enable-profiling or --disable-profiling was given.
5044: if test "${enable_profiling+set}" = set; then
5045: enableval="$enable_profiling"
5046: DO_PROFILING=$enableval
1.1.1.2 root 5047: fi
1.1.1.4 root 5048:
5049: # Check whether --with-svgalib or --without-svgalib was given.
5050: if test "${with_svgalib+set}" = set; then
5051: withval="$with_svgalib"
5052: WANT_SVGALIB=$withval
1.1.1.2 root 5053: fi
5054:
1.1.1.4 root 5055: # Check whether --with-ggi or --without-ggi was given.
5056: if test "${with_ggi+set}" = set; then
5057: withval="$with_ggi"
5058: WANT_GGI=$withval
1.1.1.2 root 5059: fi
5060:
1.1.1.4 root 5061: # Check whether --with-asciiart or --without-asciiart was given.
5062: if test "${with_asciiart+set}" = set; then
5063: withval="$with_asciiart"
5064: WANT_ASCIIART=$withval
5065: fi
1.1.1.3 root 5066:
1.1.1.4 root 5067: # Check whether --enable-dga or --disable-dga was given.
5068: if test "${enable_dga+set}" = set; then
5069: enableval="$enable_dga"
5070: WANT_DGA=$enableval
5071: fi
5072:
5073: # Check whether --enable-vidmode or --disable-vidmode was given.
5074: if test "${enable_vidmode+set}" = set; then
5075: enableval="$enable_vidmode"
5076: WANT_VIDMODE=$enableval
5077: fi
5078:
5079: # Check whether --enable-ui or --disable-ui was given.
5080: if test "${enable_ui+set}" = set; then
5081: enableval="$enable_ui"
5082: WANT_UI=$enableval
5083: fi
5084:
5085: # Check whether --with-elf or --without-elf was given.
5086: if test "${with_elf+set}" = set; then
5087: withval="$with_elf"
5088: SYSTEM_IS_ELF=$withval
5089: fi
5090:
5091:
5092:
5093: if [ "x$WANT_DGA" = "xyes" ]; then
5094: if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then
5095: echo "You can't enable DGA for SVGAlib, GGI and ncurses targets!"
5096: NR_ERRORS=`expr $NR_ERRORS + 1`
5097: WANT_DGA=no
5098: fi
5099: fi
5100:
5101: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
5102: echo "Ignoring --enable-dga, since X was disabled or not found."
5103: NR_ERRORS=`expr $NR_ERRORS + 1`
5104: WANT_DGA=no
5105: fi
5106:
5107: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
5108: echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
5109: NR_ERRORS=`expr $NR_ERRORS + 1`
5110: WANT_VIDMODE=no
5111: fi
5112:
5113:
5114: if [ "x$WANT_SVGALIB" = "xyes" ]; then
5115: if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
5116: echo "Could not find libsvga, disabling svgalib support."
5117: NR_ERRORS=`expr $NR_ERRORS + 1`
5118: WANT_SVGALIB=no
1.1 root 5119: else
1.1.1.4 root 5120: no_x=yes
5121: fi
5122: fi
5123:
5124: if [ "x$WANT_GGI" = "xyes" ]; then
5125: if [ "x$HAVE_GGI_LIB" = "xno" ]; then
5126: echo "Could not find libggi, disabling GGI support."
5127: NR_ERRORS=`expr $NR_ERRORS + 1`
5128: WANT_GGI=no
5129: else if [ "x$WANT_SVGALIB" = "xyes" ]; then
5130: echo "You can't configure for both SVGAlib and GGI. Disabling GGI."
5131: NR_ERRORS=`expr $NR_ERRORS + 1`
5132: WANT_GGI=no
5133: else
5134: no_x=yes
5135: fi
5136: fi
5137: fi
5138:
5139: if [ "x$WANT_ASCIIART" = "xyes" ]; then
5140: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
5141: echo "Could not find libncurses, disabling ascii art support."
5142: NR_ERRORS=`expr $NR_ERRORS + 1`
5143: WANT_ASCIIART=no
5144: else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" ]; then
5145: echo "You can't configure for both ncurses and another target. Disabling ncurses."
5146: NR_ERRORS=`expr $NR_ERRORS + 1`
5147: WANT_ASCIIART=no
5148: else
5149: no_x=yes
5150: fi
5151: fi
5152: fi
5153:
5154:
5155: if [ "x$WANT_DGA" = "xyes" ]; then
5156: TMP_SAVE_LIBS=$LIBS
5157: LIBS="$X_LIBS $LIBS"
5158: echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1.1.1.7 ! root 5159: echo "configure:5160: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1.1.1.4 root 5160: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.2 root 5161: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5162: echo $ac_n "(cached) $ac_c" 1>&6
5163: else
5164: ac_save_LIBS="$LIBS"
1.1.1.4 root 5165: LIBS="-lXxf86dga $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.2 root 5166: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5167: #line 5168 "configure"
1.1.1.2 root 5168: #include "confdefs.h"
5169: /* Override any gcc2 internal prototype to avoid an error. */
5170: /* We use char because int might match the return type of a gcc2
5171: builtin and then its argument prototype would still apply. */
1.1.1.4 root 5172: char XF86DGAQueryExtension();
1.1.1.2 root 5173:
1.1.1.4 root 5174: int main() {
5175: XF86DGAQueryExtension()
1.1.1.2 root 5176: ; return 0; }
5177: EOF
1.1.1.7 ! root 5178: if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.2 root 5179: rm -rf conftest*
5180: eval "ac_cv_lib_$ac_lib_var=yes"
5181: else
1.1.1.4 root 5182: echo "configure: failed program was:" >&5
5183: cat conftest.$ac_ext >&5
1.1.1.2 root 5184: rm -rf conftest*
5185: eval "ac_cv_lib_$ac_lib_var=no"
5186: fi
5187: rm -f conftest*
5188: LIBS="$ac_save_LIBS"
5189:
5190: fi
5191: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5192: echo "$ac_t""yes" 1>&6
1.1.1.4 root 5193: HAVE_DGA=yes
1.1.1.2 root 5194: else
5195: echo "$ac_t""no" 1>&6
1.1.1.4 root 5196: HAVE_DGA=no
1.1.1.2 root 5197: fi
5198:
1.1.1.4 root 5199: LIBS=$TMP_SAVE_LIBS
5200: if [ "x$HAVE_DGA" = "xno" ]; then
5201: echo "Could not find DGA extension, ignoring --enable-dga."
5202: NR_ERRORS=`expr $NR_ERRORS + 1`
5203: WANT_DGA=no
1.1.1.3 root 5204: fi
1.1.1.2 root 5205: fi
5206:
1.1.1.4 root 5207: if [ "x$WANT_VIDMODE" = "xyes" ]; then
5208: TMP_SAVE_LIBS=$LIBS
5209: LIBS="$X_LIBS $LIBS"
5210: echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
1.1.1.7 ! root 5211: echo "configure:5212: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
1.1.1.4 root 5212: ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.3 root 5213: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5214: echo $ac_n "(cached) $ac_c" 1>&6
5215: else
5216: ac_save_LIBS="$LIBS"
1.1.1.4 root 5217: LIBS="-lXxf86vm $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.3 root 5218: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5219: #line 5220 "configure"
1.1.1.3 root 5220: #include "confdefs.h"
5221: /* Override any gcc2 internal prototype to avoid an error. */
5222: /* We use char because int might match the return type of a gcc2
5223: builtin and then its argument prototype would still apply. */
1.1.1.4 root 5224: char XF86VidModeQueryExtension();
1.1.1.3 root 5225:
1.1.1.4 root 5226: int main() {
5227: XF86VidModeQueryExtension()
1.1.1.3 root 5228: ; return 0; }
5229: EOF
1.1.1.7 ! root 5230: if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.3 root 5231: rm -rf conftest*
5232: eval "ac_cv_lib_$ac_lib_var=yes"
5233: else
1.1.1.4 root 5234: echo "configure: failed program was:" >&5
5235: cat conftest.$ac_ext >&5
1.1.1.3 root 5236: rm -rf conftest*
5237: eval "ac_cv_lib_$ac_lib_var=no"
5238: fi
5239: rm -f conftest*
5240: LIBS="$ac_save_LIBS"
5241:
5242: fi
5243: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5244: echo "$ac_t""yes" 1>&6
1.1.1.4 root 5245: HAVE_VIDMODE=yes
1.1.1.3 root 5246: else
5247: echo "$ac_t""no" 1>&6
1.1.1.4 root 5248: HAVE_VIDMODE=no
1.1.1.3 root 5249: fi
5250:
1.1.1.4 root 5251: LIBS=$TMP_SAVE_LIBS
5252: if [ "x$HAVE_VIDMODE" = "xno" ]; then
5253: echo "Could not find VidMode extension, ignoring --enable-vidmode."
5254: NR_ERRORS=`expr $NR_ERRORS + 1`
5255: WANT_VIDMODE=no
1.1.1.3 root 5256: fi
1.1.1.4 root 5257: fi
5258:
5259: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5260: if test "${with_gtk_prefix+set}" = set; then
5261: withval="$with_gtk_prefix"
5262: gtk_config_prefix="$withval"
5263: else
5264: gtk_config_prefix=""
5265: fi
5266:
5267: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5268: if test "${with_gtk_exec_prefix+set}" = set; then
5269: withval="$with_gtk_exec_prefix"
5270: gtk_config_exec_prefix="$withval"
5271: else
5272: gtk_config_exec_prefix=""
5273: fi
5274:
5275: # Check whether --enable-gtktest or --disable-gtktest was given.
5276: if test "${enable_gtktest+set}" = set; then
5277: enableval="$enable_gtktest"
5278: :
5279: else
5280: enable_gtktest=yes
5281: fi
5282:
5283:
5284: if test x$gtk_config_exec_prefix != x ; then
5285: gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5286: if test x${GTK_CONFIG+set} != xset ; then
5287: GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
5288: fi
5289: fi
5290: if test x$gtk_config_prefix != x ; then
5291: gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
5292: if test x${GTK_CONFIG+set} != xset ; then
5293: GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
5294: fi
5295: fi
5296:
5297: # Extract the first word of "gtk-config", so it can be a program name with args.
5298: set dummy gtk-config; ac_word=$2
5299: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.7 ! root 5300: echo "configure:5301: checking for $ac_word" >&5
1.1.1.4 root 5301: if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5302: echo $ac_n "(cached) $ac_c" 1>&6
5303: else
5304: case "$GTK_CONFIG" in
5305: /*)
5306: ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5307: ;;
5308: *)
5309: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5310: for ac_dir in $PATH; do
5311: test -z "$ac_dir" && ac_dir=.
5312: if test -f $ac_dir/$ac_word; then
5313: ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5314: break
5315: fi
5316: done
5317: IFS="$ac_save_ifs"
5318: test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5319: ;;
5320: esac
5321: fi
5322: GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5323: if test -n "$GTK_CONFIG"; then
5324: echo "$ac_t""$GTK_CONFIG" 1>&6
5325: else
5326: echo "$ac_t""no" 1>&6
5327: fi
5328:
5329: min_gtk_version=0.99.7
5330: echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1.1.1.7 ! root 5331: echo "configure:5332: checking for GTK - version >= $min_gtk_version" >&5
1.1.1.4 root 5332: no_gtk=""
5333: if test "$GTK_CONFIG" = "no" ; then
5334: no_gtk=yes
5335: else
5336: GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
5337: GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
5338: gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
5339: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5340: gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
5341: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5342: gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
5343: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5344: if test "x$enable_gtktest" = "xyes" ; then
5345: ac_save_CFLAGS="$CFLAGS"
5346: ac_save_LIBS="$LIBS"
5347: CFLAGS="$CFLAGS $GTK_CFLAGS"
5348: LIBS="$LIBS $GTK_LIBS"
5349: rm -f conf.gtktest
5350: if test "$cross_compiling" = yes; then
5351: echo $ac_n "cross compiling; assumed OK... $ac_c"
5352: else
5353: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5354: #line 5355 "configure"
1.1.1.4 root 5355: #include "confdefs.h"
5356:
5357: #include <gtk/gtk.h>
5358: #include <stdio.h>
5359:
5360: int
5361: main ()
1.1.1.3 root 5362: {
1.1.1.4 root 5363: int major, minor, micro;
5364:
5365: system ("touch conf.gtktest");
5366:
5367: if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5368: printf("%s, bad version string\n", "$min_gtk_version");
5369: exit(1);
5370: }
5371:
5372: if ((gtk_major_version != $gtk_config_major_version) ||
5373: (gtk_minor_version != $gtk_config_minor_version) ||
5374: (gtk_micro_version != $gtk_config_micro_version))
5375: {
5376: printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
5377: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
5378: gtk_major_version, gtk_minor_version, gtk_micro_version);
5379: printf ("*** was found! If gtk-config was correct, then it is best\n");
5380: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
5381: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5382: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5383: printf("*** required on your system.\n");
5384: printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
5385: printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
5386: printf("*** before re-running configure\n");
5387: }
5388: else
5389: {
5390: if ((gtk_major_version > major) ||
5391: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5392: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
5393: {
5394: return 0;
5395: }
5396: else
5397: {
5398: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
5399: gtk_major_version, gtk_minor_version, gtk_micro_version);
5400: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
5401: major, minor, micro);
5402: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
5403: printf("***\n");
5404: printf("*** If you have already installed a sufficiently new version, this error\n");
5405: printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
5406: printf("*** being found. The easiest way to fix this is to remove the old version\n");
5407: printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
5408: printf("*** correct copy of gtk-config. (In this case, you will have to\n");
5409: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5410: printf("*** so that the correct libraries are found at run-time))\n");
5411: }
5412: }
5413: return 1;
1.1.1.3 root 5414: }
1.1.1.4 root 5415:
5416: EOF
1.1.1.7 ! root 5417: if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 5418: then
5419: :
5420: else
5421: echo "configure: failed program was:" >&5
5422: cat conftest.$ac_ext >&5
5423: rm -fr conftest*
5424: no_gtk=yes
5425: fi
5426: rm -fr conftest*
5427: fi
5428:
5429: CFLAGS="$ac_save_CFLAGS"
5430: LIBS="$ac_save_LIBS"
5431: fi
5432: fi
5433: if test "x$no_gtk" = x ; then
5434: echo "$ac_t""yes" 1>&6
5435: :
5436: else
5437: echo "$ac_t""no" 1>&6
5438: if test "$GTK_CONFIG" = "no" ; then
5439: echo "*** The gtk-config script installed by GTK could not be found"
5440: echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
5441: echo "*** your path, or set the GTK_CONFIG environment variable to the"
5442: echo "*** full path to gtk-config."
5443: else
5444: if test -f conf.gtktest ; then
5445: :
5446: else
5447: echo "*** Could not run GTK test program, checking why..."
5448: CFLAGS="$CFLAGS $GTK_CFLAGS"
5449: LIBS="$LIBS $GTK_LIBS"
5450: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5451: #line 5452 "configure"
1.1.1.4 root 5452: #include "confdefs.h"
5453:
5454: #include <gtk/gtk.h>
5455: #include <stdio.h>
5456:
5457: int main() {
5458: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
5459: ; return 0; }
1.1.1.3 root 5460: EOF
1.1.1.7 ! root 5461: if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 5462: rm -rf conftest*
5463: echo "*** The test program compiled, but did not run. This usually means"
5464: echo "*** that the run-time linker is not finding GTK or finding the wrong"
5465: echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
5466: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5467: echo "*** to the installed location Also, make sure you have run ldconfig if that"
5468: echo "*** is required on your system"
5469: echo "***"
5470: echo "*** If you have an old version installed, it is best to remove it, although"
5471: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5472: echo "***"
5473: echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
5474: echo "*** came with the system with the command"
5475: echo "***"
5476: echo "*** rpm --erase --nodeps gtk gtk-devel"
5477: else
5478: echo "configure: failed program was:" >&5
5479: cat conftest.$ac_ext >&5
5480: rm -rf conftest*
5481: echo "*** The test program failed to compile or link. See the file config.log for the"
5482: echo "*** exact error that occured. This usually means GTK was incorrectly installed"
5483: echo "*** or that you have moved GTK since it was installed. In the latter case, you"
5484: echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
5485: fi
5486: rm -f conftest*
5487: CFLAGS="$ac_save_CFLAGS"
5488: LIBS="$ac_save_LIBS"
5489: fi
5490: fi
5491: GTK_CFLAGS=""
5492: GTK_LIBS=""
5493: :
1.1.1.3 root 5494: fi
1.1.1.4 root 5495:
5496:
5497: rm -f conf.gtktest
1.1.1.3 root 5498:
1.1.1.4 root 5499:
5500:
5501: SHM_SUPPORT_LINKS=0
1.1.1.6 root 5502: if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
1.1.1.4 root 5503: echo $ac_n "checking whether the X11 MIT-SHM extension can be compiled in""... $ac_c" 1>&6
1.1.1.7 ! root 5504: echo "configure:5505: checking whether the X11 MIT-SHM extension can be compiled in" >&5
1.1.1.4 root 5505: TMP_SAVE_CFLAGS=$CFLAGS
5506: TMP_SAVE_LIBS=$LIBS
5507: CFLAGS="$CFLAGS $X_CFLAGS"
5508: LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
5509: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5510: #line 5511 "configure"
1.1.1.2 root 5511: #include "confdefs.h"
5512:
1.1.1.4 root 5513: #include "confdefs.h"
5514: #ifdef HAVE_SYS_TYPES_H
5515: #include <sys/types.h>
5516: #endif
5517: #include <X11/Xlib.h>
5518: #include <X11/Xutil.h>
5519: #include <X11/keysym.h>
5520: #include <X11/cursorfont.h>
5521: #include <sys/ipc.h>
5522: #include <sys/shm.h>
5523: #include <X11/extensions/XShm.h>
5524: int main() {
5525:
5526: static XShmSegmentInfo shminfo;
5527: static Display *display;
5528: void foo(void)
5529: {
5530: XShmAttach(display, &shminfo);
5531: XSync(display,0);
5532: shmctl(shminfo.shmid, IPC_RMID, 0);
5533: }
1.1.1.2 root 5534: ; return 0; }
5535: EOF
1.1.1.7 ! root 5536: if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.2 root 5537: rm -rf conftest*
1.1.1.4 root 5538: SHM_SUPPORT_LINKS=1
5539: echo "$ac_t""yes" 1>&6
1.1 root 5540: else
1.1.1.4 root 5541: echo "configure: failed program was:" >&5
5542: cat conftest.$ac_ext >&5
1.1.1.2 root 5543: rm -rf conftest*
1.1.1.4 root 5544: SHM_SUPPORT_LINKS=0
5545: echo "$ac_t""no" 1>&6
1.1 root 5546: fi
1.1.1.2 root 5547: rm -f conftest*
1.1.1.4 root 5548: CFLAGS=$TMP_SAVE_CFLAGS
5549: LIBS=$TMP_SAVE_LIBS
1.1 root 5550: fi
5551:
1.1.1.4 root 5552: MATHLIB=-lm
5553: DEBUGOBJS="debug.o"
5554:
5555: echo $ac_n "checking which target to use""... $ac_c" 1>&6
1.1.1.7 ! root 5556: echo "configure:5557: checking which target to use" >&5
1.1.1.4 root 5557:
1.1.1.6 root 5558: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
5559: echo "$ac_t""Win32/DirectX" 1>&6
5560: MATHLIB=
5561: TARGET=win32
5562: TARGETDEP=t-win32.h
5563: GFXOBJS="osdep/win32.o osdep/win32gui.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o"
5564: RESOBJS="osdep/winuae.res"
5565: else if [ "x$HAVE_BEOS" = "xyes" ]; then
1.1.1.4 root 5566: echo "$ac_t""BeOS" 1>&6
5567: MATHLIB=
5568: TARGET=beos
5569: TARGETDEP=t-beos.h
5570: GFXOBJS=osdep/beos.o
5571: GUIOBJS=
5572: OPTIMIZE_CFLAGS=-O7
5573: else if [ "x$HAVE_POS" = "xyes" ]; then
5574: echo "$ac_t""p.OS" 1>&6
5575: TARGET=p_os
5576: TARGETDEP=t-pos.h
5577: GFXOBJS="osdep/pos-win.o osdep/pos-disk.o osdep/pos-rexx.o"
5578: GUIOBJS="osdep/pos-gui.o"
5579: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
5580: echo "$ac_t""AmigaOS" 1>&6
5581: TARGET=amigaos
5582: TARGETDEP=t-amiga.h
5583: GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
5584: GUIOBJS="osdep/ami-gui.o"
5585: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
5586: echo "$ac_t""NeXTStep" 1>&6
5587: MATHLIB=
5588: TARGET=next
5589: GFXOBJS="NeXTwin.o"
5590: GUIOBJS=
5591: TARGETDEP=t-next.h
5592: LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
5593: else
5594:
5595: if [ "x$no_x" = "xyes" ]; then
5596: if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_GGI" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
5597: if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
5598: WANT_SVGALIB=yes
5599: else if [ "x$WANT_GGI" != "xno" -a "x$HAVE_GGI_LIB" = "xyes" ]; then
5600: WANT_GGI=yes
5601: else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
5602: WANT_ASCIIART=yes
5603: fi
5604: fi
5605: fi
5606: fi
1.1.1.3 root 5607: fi
1.1.1.4 root 5608:
5609: if [ "x$WANT_GGI" = "xyes" ]; then
5610: echo "$ac_t""GGI" 1>&6
5611: TARGET=ggilib
5612: TARGETDEP=t-ggi.h
5613: WANT_NCURSES_UI=yes
5614: GFXOBJS=ggi.o
5615: LIBRARIES="-ldl -lggi"
5616: LDFLAGS="-rdynamic $LDFLAGS"
5617: else if [ "x$WANT_SVGALIB" = "xyes" ]; then
5618: echo "$ac_t""SVGAlib" 1>&6
5619: TARGET=svgalib
5620: TARGETDEP=t-svgalib.h
5621: GFXOBJS=svga.o
5622: LIBRARIES="-lvga"
5623: WANT_NCURSES_UI=yes
5624: else if [ "x$WANT_ASCIIART" = "xyes" ]; then
5625: echo "$ac_t""ncurses ASCII art" 1>&6
5626: TARGET=asciiart
5627: TARGETDEP=t-ascii.h
5628: GFXOBJS="ncurses.o"
5629: GUIOBJS="tui.o svgancui.o"
5630: LIBRARIES="-lncurses"
5631: else if [ "x$no_x" = "xyes" ]; then
5632: echo "$ac_t""Ummm...." 1>&6
5633: echo "Fatal error: No graphics system found, don't know what target to use."
5634: exit 1
5635: else
5636: echo "$ac_t""X11" 1>&6
5637: TARGET=x11
5638: TARGETDEP=t-x11.h
5639: GFXOBJS=xwin.o
5640: GUIOBJS=nogui.o
5641:
5642: LIBRARIES="$X_LIBS $X_PRE_LIBS"
5643: if [ "x$WANT_DGA" = "xyes" ]; then
5644: LIBRARIES="$LIBRARIES -lXxf86dga"
5645: X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
5646: if [ "x$WANT_VIDMODE" = "xyes" ]; then
5647: LIBRARIES="$LIBRARIES -lXxf86vm"
5648: X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
5649: fi
5650: fi
5651: LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
5652:
5653: if [ "x$WANT_UI" != "xno" ]; then
5654: if [ "x$no_gtk" = "xyes" ]; then
5655: echo "Did not find gtk+, disabling user interface"
5656: GTK_CFLAGS=
5657: GTK_LIBS=
5658: if [ "x$WANT_UI" = "xyes" ]; then
5659: NR_ERRORS=`expr $NR_ERRORS + 1`
5660: fi
1.1 root 5661: else
1.1.1.4 root 5662: echo "Using gtk+ GUI."
5663: NEED_THREAD_SUPPORT=yes
5664: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI"
5665: GUIOBJS=gtkui.o
1.1 root 5666: fi
5667: fi
1.1.1.4 root 5668: fi
5669: fi
5670: fi
1.1 root 5671: fi
5672: fi
1.1.1.3 root 5673: fi
5674: fi
5675: fi
1.1.1.6 root 5676: fi
1.1 root 5677:
1.1.1.4 root 5678: if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
5679: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
5680: if [ "x$WANT_UI" = "xyes" ]; then
5681: echo "ncurses is unavailable, can't provide a user interface"
5682: NR_ERRORS=`expr $NR_ERRORS + 1`
5683: fi
5684: WANT_UI=no
5685: fi
5686: if [ "x$WANT_UI" != "xno" ]; then
5687: GUIOBJS="tui.o svgancui.o"
5688: LIBRARIES="$LIBRARIES -lncurses"
5689: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
5690: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
5691: echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
5692: echo "of ncurses, but it might indicate a problem with older versions."
5693: NR_WARNINGS=`expr $NR_WARNINGS + 1`
5694: fi
5695: else
5696: GUIOBJS=nogui.o
5697: fi
1.1.1.3 root 5698: fi
5699:
1.1.1.4 root 5700: GFXOBJS="$GFXOBJS $GUIOBJS"
5701:
5702:
5703: MACHDEP=md-generic
5704: OSDEP=od-generic
5705: THREADDEP=td-none
5706: SOUNDDEP=od-generic
5707:
1.1.1.6 root 5708: MD_SUPPORT=machdep/support.c
5709: OD_JOYSTICK=osdep/joystick.c
5710: SD_SOUND=sounddep/sound.c
5711: P2C=p2c.o
5712:
1.1.1.4 root 5713: USE_PENGUINS=no
5714: USE_THREADS=no
5715: USE_FILE_SOUND=no
5716:
1.1.1.6 root 5717: USE_UNDERSCORE=dunno
5718:
1.1.1.4 root 5719: HAVELINUX=no
1.1.1.6 root 5720: HAVEBSD=no
1.1.1.4 root 5721: HAVEGCC27=no
1.1.1.6 root 5722: HAVEGAS=no
1.1.1.4 root 5723: HAVEI386=no
5724: HAVE68K=no
5725: HAVEGLIBC2=no
1.1.1.3 root 5726:
1.1 root 5727: ASMOBJS=
1.1.1.4 root 5728: CPUOBJS=cpuemu.o
1.1.1.3 root 5729:
1.1.1.4 root 5730: echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
1.1.1.7 ! root 5731: echo "configure:5732: checking for GCC 2.7 or higher" >&5
1.1.1.6 root 5732: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5733: #line 5734 "configure"
1.1.1.6 root 5734: #include "confdefs.h"
5735: #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
5736: yes
1.1.1.3 root 5737: #endif
5738:
1.1.1.6 root 5739: EOF
5740: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5741: egrep "yes" >/dev/null 2>&1; then
5742: rm -rf conftest*
5743: echo "$ac_t""yes" 1>&6; HAVEGCC27=yes
1.1.1.3 root 5744: else
1.1.1.6 root 5745: rm -rf conftest*
1.1.1.4 root 5746: echo "$ac_t""no" 1>&6
1.1.1.6 root 5747: fi
5748: rm -f conftest*
5749:
5750:
5751: if test $ac_cv_prog_gcc = yes; then
5752: if test $HAVEGCC27 != yes; then
1.1.1.3 root 5753: echo "I suggest you upgrade to at least version 2.7 of GCC"
1.1.1.6 root 5754: fi
5755: else
5756: if test $uae_cv_prog_cc_watcom != yes; then
1.1.1.3 root 5757: echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1.1.4 root 5758: NR_WARNINGS=`expr $NR_WARNINGS + 1`
1.1.1.3 root 5759: fi
5760: fi
5761:
1.1.1.4 root 5762: if [ "x$ac_cv_header_features_h" = "xyes" ]; then
1.1.1.6 root 5763: echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6
1.1.1.7 ! root 5764: echo "configure:5765: checking for glibc-2.0 or higher" >&5
1.1.1.6 root 5765: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5766: #line 5767 "configure"
1.1.1.6 root 5767: #include "confdefs.h"
1.1.1.4 root 5768: #include <features.h>
1.1.1.6 root 5769: #if __GLIBC__ - 1 >= 1
5770: yes
1.1.1.4 root 5771: #endif
5772:
1.1.1.6 root 5773: EOF
5774: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5775: egrep "yes" >/dev/null 2>&1; then
5776: rm -rf conftest*
5777: echo "$ac_t""yes" 1>&6; HAVEGLIBC2=yes
1.1.1.3 root 5778: else
1.1.1.6 root 5779: rm -rf conftest*
1.1.1.4 root 5780: echo "$ac_t""no" 1>&6
5781: fi
1.1.1.6 root 5782: rm -f conftest*
5783:
5784: fi
1.1.1.4 root 5785:
1.1.1.6 root 5786: if test $ac_cv_prog_gcc = yes; then
1.1.1.4 root 5787: WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
5788: OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
5789: CFLAGS=
5790: fi
5791:
5792: if [ "x$DO_PROFILING" = "xyes" ]; then
5793: if [ "x$CC" = "xgcc" ]; then
5794: OPTIMIZE_CFLAGS="-O"
5795: DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
5796: LDFLAGS="-pg"
5797: else
5798: DO_PROFILING=no
5799: echo "Don't know how to set up profiling for your compiler."
5800: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3 root 5801: fi
5802: fi
5803:
1.1.1.4 root 5804: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
5805:
5806: if [ "x$HAVEGCC27" = "xyes" ]; then
1.1.1.3 root 5807: CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
5808: else
5809: CFLAGS="$CFLAGS -DGCCCONSTFUNC="
5810: fi
1.1.1.2 root 5811:
1.1.1.6 root 5812: echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
1.1.1.7 ! root 5813: echo "configure:5814: checking for x86 target CPU" >&5
1.1.1.6 root 5814: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5815: #line 5816 "configure"
1.1.1.6 root 5816: #include "confdefs.h"
5817:
1.1.1.3 root 5818: #ifdef __i386__
1.1.1.6 root 5819: yes
1.1.1.3 root 5820: #endif
1.1 root 5821:
1.1.1.6 root 5822: EOF
5823: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5824: egrep "yes" >/dev/null 2>&1; then
5825: rm -rf conftest*
5826: echo "$ac_t""yes" 1>&6; HAVEI386=yes
1.1.1.3 root 5827: else
1.1.1.6 root 5828: rm -rf conftest*
5829: echo "$ac_t""no" 1>&6
5830: fi
5831: rm -f conftest*
5832:
5833:
5834: echo $ac_n "checking for m68k target CPU""... $ac_c" 1>&6
1.1.1.7 ! root 5835: echo "configure:5836: checking for m68k target CPU" >&5
1.1.1.6 root 5836: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5837: #line 5838 "configure"
1.1.1.6 root 5838: #include "confdefs.h"
5839:
5840: #ifdef __m68k__
5841: yes
5842: #endif
1.1.1.3 root 5843:
1.1.1.6 root 5844: EOF
5845: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5846: egrep "yes" >/dev/null 2>&1; then
5847: rm -rf conftest*
1.1.1.7 ! root 5848: echo "$ac_t""yes" 1>&6; HAVE68K=yes
1.1.1.6 root 5849: else
5850: rm -rf conftest*
5851: echo "$ac_t""no" 1>&6
5852: fi
1.1.1.3 root 5853: rm -f conftest*
5854:
1.1.1.6 root 5855:
1.1.1.4 root 5856: if MACHINE=`uname -a 2>/dev/null`; then
5857: case "$MACHINE" in
5858: Linux*)
5859: HAVELINUX=yes
5860: ;;
5861: esac
5862: fi
5863:
1.1.1.3 root 5864:
1.1.1.6 root 5865: if [ "x$HAVE_MACHINE_JOYSTICK_H" = "xyes" ]; then
5866: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5867: #line 5868 "configure"
1.1.1.6 root 5868: #include "confdefs.h"
5869: #include <machine/joystick.h>
5870: int main() {
5871: { struct joystick a; }
5872: ; return 0; }
5873: EOF
1.1.1.7 ! root 5874: if { (eval echo configure:5875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6 root 5875: rm -rf conftest*
5876: OD_JOYSTICK=$abssrcdir/src/od-linux/joystick.c
5877: else
5878: echo "configure: failed program was:" >&5
5879: cat conftest.$ac_ext >&5
5880: fi
5881: rm -f conftest*
5882: fi
5883:
1.1.1.4 root 5884:
1.1.1.6 root 5885: echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
1.1.1.7 ! root 5886: echo "configure:5887: checking for GAS .p2align feature" >&5
1.1.1.6 root 5887: cat >conftest.S << EOF
5888: .text
5889: .p2align 5
1.1 root 5890: EOF
1.1.1.6 root 5891: if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVEGAS=yes; fi
5892: echo "$ac_t""$HAVEGAS" 1>&6
1.1.1.4 root 5893:
1.1.1.6 root 5894: echo $ac_n "checking whether assembler symbols need an underscore""... $ac_c" 1>&6
1.1.1.7 ! root 5895: echo "configure:5896: checking whether assembler symbols need an underscore" >&5
1.1.1.6 root 5896: cat >conftest1.S << EOF
5897: .text
5898: .globl _symbol
5899: _symbol:
5900: EOF
5901: cat >conftest2.c << EOF
5902: extern void symbol ();
5903: int main ()
5904: {
5905: symbol ();
5906: }
5907: EOF
5908: $CC conftest1.S -c -o conftest1.o >/dev/null 2>&1
5909: $CC conftest2.c -c -o conftest2.o >/dev/null 2>&1
5910: if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then
5911: USE_UNDERSCORE=yes
5912: CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
1.1.1.4 root 5913: else
1.1.1.6 root 5914: USE_UNDERSCORE=no
1.1.1.4 root 5915: fi
1.1.1.6 root 5916: echo "$ac_t""$USE_UNDERSCORE" 1>&6
1.1.1.4 root 5917:
5918: rm -f conftest*
5919:
5920: # Check whether --enable-threads or --disable-threads was given.
5921: if test "${enable_threads+set}" = set; then
5922: enableval="$enable_threads"
5923: USE_THREADS=$enableval
5924: fi
5925:
5926: # Check whether --enable-penguins or --disable-penguins was given.
5927: if test "${enable_penguins+set}" = set; then
5928: enableval="$enable_penguins"
5929: USE_PENGUINS=$enableval
5930: fi
5931:
5932:
5933: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
5934: if [ "x$USE_THREADS" != "xyes" -a "x$USE_PENGUINS" != "xyes" ]; then
5935: echo "The gtk+ GUI needs threads; enabling thread support."
5936: fi
5937: fi
5938:
5939: if [ "x$USE_THREADS" = "xyes" -o "x$USE_PENGUINS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
5940: if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
5941: THREADDEP=td-posix
5942: CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
5943: LIBS="$LIBS -lpthread"
5944: if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
5945: LIBS="$LIBS -lposix4"
5946: fi
5947:
5948: if [ "x$USE_THREADS" = "xyes" ]; then
5949: CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
5950: fi
5951: if [ "x$USE_PENGUINS" = "xyes" ]; then
5952: CFLAGS="$CFLAGS -DSUPPORT_PENGUINS"
5953: fi
5954:
5955: if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then
1.1.1.6 root 5956: echo "Thread support has only been tested on Linux systems with glibc-2.0"
1.1.1.4 root 5957: NR_WARNINGS=`expr $NR_WARNINGS + 1`
5958: fi
5959: if [ "x$TARGET" = "xsvgalib" ]; then
5960: echo "If you didn't compile a fixed version of SVGAlib then thread support"
5961: echo "in UAE will lock your machine real hard."
5962: NR_WARNINGS=`expr $NR_WARNINGS + 1`
5963: fi
1.1 root 5964: else
1.1.1.4 root 5965: echo "You tried to enable threads, but I couldn't find a thread library!"
5966: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1 root 5967: fi
1.1.1.3 root 5968: fi
5969:
5970:
1.1.1.4 root 5971: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
5972: SAVECFLAGS=$CFLAGS
5973: CFLAGS="$CFLAGS -mno-schedule-prologue"
5974: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5975: #line 5976 "configure"
1.1.1.4 root 5976: #include "confdefs.h"
5977:
5978: int main() {
5979: int main(){return 0;}
5980: ; return 0; }
5981: EOF
1.1.1.7 ! root 5982: if { (eval echo configure:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 5983: rm -rf conftest*
5984: NO_SCHED_CFLAGS="-mno-schedule-prologue"
5985: else
5986: echo "configure: failed program was:" >&5
5987: cat conftest.$ac_ext >&5
5988: fi
5989: rm -f conftest*
5990: CFLAGS=$SAVECFLAGS
5991: fi
5992:
5993:
5994: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
5995: SAVECFLAGS=$CFLAGS
5996: CFLAGS="$CFLAGS -fno-exceptions"
5997: NOEXCEPTIONS=no
5998: cat > conftest.$ac_ext <<EOF
1.1.1.7 ! root 5999: #line 6000 "configure"
1.1.1.4 root 6000: #include "confdefs.h"
6001:
6002: int main() {
6003: int main(){return 0;}
6004: ; return 0; }
6005: EOF
1.1.1.7 ! root 6006: if { (eval echo configure:6007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 6007: rm -rf conftest*
6008: NOEXCEPTIONS=yes
6009: else
6010: echo "configure: failed program was:" >&5
6011: cat conftest.$ac_ext >&5
6012: fi
6013: rm -f conftest*
6014: if [ "x$NOEXCEPTIONS" = "xno" ]; then
6015: CFLAGS=$SAVECFLAGS
6016: fi
6017: fi
6018:
6019:
6020:
6021: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
6022: MACHDEP=md-i386-gcc
1.1.1.6 root 6023: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
6024:
6025: if [ "x$HAVEGAS" = "xyes" ]; then
6026: CFLAGS="$CFLAGS -DX86_ASSEMBLY"
6027: ASMOBJS=md-X86.o
6028:
6029: CPUOBJS=cpufast.o
6030: P2C=p2c_x86.o
6031: fi
6032: else if test $uae_cv_prog_cc_watcom = yes; then
6033: MACHDEP=md-i386-watcom
6034: echo CFLAGS before: $CFLAGS
6035: CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'`
6036: CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r"
6037: CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq"
6038: CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE"
6039: echo CFLAGS after: $CFLAGS
1.1.1.4 root 6040: else if [ "x$TARGET" = "xp_os" ]; then
6041: CPU=`uname -m`
6042: if [ "x$CPU" = "xm68k" ]; then
6043: MACHDEP=md-68k
1.1.1.7 ! root 6044: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
1.1.1.4 root 6045: else if [ "x$CPU" = "xppc" ]; then
6046: MACHDEP=md-ppc
6047: CFLAGS="$CFLAGS -DREGPARAM="
6048: else if [ "x$CPU" = "xi386" ]; then
6049: MACHDEP=md-i386-gcc
6050: CFLAGS="$CFLAGS -DX86_ASSEMBLY -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
6051: else
6052: echo "Unsupported CPU: $CPU!"
6053: exit 5
6054: fi
6055: fi
6056: fi
6057: CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__"
6058: OSDEP=od-pos
6059: CPUOBJS="cpufast.o"
1.1.1.7 ! root 6060: else if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.4 root 6061: OSDEP=od-amiga
1.1.1.7 ! root 6062: CPU=`uname -m`
! 6063: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" ]; then
! 6064: MACHDEP=md-68k
! 6065: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
! 6066: CPUOBJS="cpufast1.o cpufast2.o cpufast3.o cpufast4.o cpufast5.o cpufast6.o cpufast7.o cpufast8.o"
! 6067: else if [ "x$HAVEGCC27" = "xyes" -a "x$CPU" = "xppc" ]; then
! 6068: MACHDEP=md-ppc-gcc
! 6069: else
! 6070: CFLAGS="$CFLAGS -O -DREGPARAM="
! 6071: CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o"
! 6072: fi
! 6073: fi
1.1.1.4 root 6074: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
6075: MACHDEP=md-68k
6076: CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
6077: CPUOBJS="cpufast.o"
6078: else if [ "x$TARGET" = "xbeos" ]; then
6079: MACHDEP=md-ppc
6080: CFLAGS="$CFLAGS -DREGPARAM="
6081: OSDEP=od-beos
1.1 root 6082: else
1.1.1.3 root 6083: CFLAGS="$CFLAGS -DREGPARAM="
6084: fi
6085: fi
1.1 root 6086: fi
1.1.1.4 root 6087: fi
6088: fi
6089: fi
6090:
1.1.1.6 root 6091: if [ "x$TARGET" = "xwin32" ]; then
6092: OSDEP=od-win32
6093: if test $ac_cv_prog_gcc = yes; then
6094: LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32"
6095: else if test $uae_cv_prog_cc_watcom = yes; then
6096: LIBS="$LIBS -lddraw -lwinmm -lcomctl32"
6097: fi
6098: fi
6099: else if [ "x$HAVELINUX" = "xyes" ]; then
1.1.1.4 root 6100: OSDEP=od-linux
6101: if [ "x$HAVEGLIBC2" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
6102: CFLAGS="$CFLAGS -DHAVE_GLIBC_2_LINUX"
6103: fi
6104: fi
1.1.1.6 root 6105: fi
1.1 root 6106:
1.1.1.4 root 6107: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
6108: -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xggilib" -o "x$TARGET" = "xp_os" ]; then
1.1.1.2 root 6109: CFLAGS="$CFLAGS -DUSE_ZFILE"
6110: fi
6111:
1.1.1.4 root 6112: HAVE_USS_SOUND=no
6113: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
6114: echo $ac_n "checking whether sys/soundcard.h or machine/soundcard.h works""... $ac_c" 1>&6
1.1.1.6 root 6115: echo "configure:6116: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
1.1.1.4 root 6116: cat > conftest.$ac_ext <<EOF
1.1.1.6 root 6117: #line 6118 "configure"
1.1.1.4 root 6118: #include "confdefs.h"
6119:
6120: #include "confdefs.h"
6121: #ifdef HAVE_SYS_SOUNDCARD_H
6122: #include <sys/soundcard.h>
6123: #else
6124: #include <machine/soundcard.h>
6125: #endif
6126: #include <sys/ioctl.h>
6127:
6128: int main() {
6129: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
6130: ; return 0; }
6131: EOF
1.1.1.6 root 6132: if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 6133: rm -rf conftest*
6134: echo "$ac_t""yes" 1>&6
6135: HAVE_USS_SOUND=yes
6136: else
6137: echo "configure: failed program was:" >&5
6138: cat conftest.$ac_ext >&5
6139: rm -rf conftest*
6140: echo "$ac_t""no" 1>&6
6141: fi
6142: rm -f conftest*
6143: fi
6144:
6145: echo $ac_n "checking which sound system to use""... $ac_c" 1>&6
1.1.1.6 root 6146: echo "configure:6147: checking which sound system to use" >&5
1.1.1.4 root 6147: # Check whether --enable-file-sound or --disable-file-sound was given.
6148: if test "${enable_file_sound+set}" = set; then
6149: enableval="$enable_file_sound"
6150: USE_FILE_SOUND=$enableval
6151: fi
6152:
6153:
6154: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
1.1.1.7 ! root 6155: echo "$ac_t""file output" 1>&6
! 6156: SOUNDDEP=sd-file
! 6157: USE_SOUND=yes
! 6158: else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
! 6159: echo "$ac_t""USS" 1>&6
! 6160: SOUNDDEP=sd-uss
1.1.1.4 root 6161: USE_SOUND=yes
1.1.1.7 ! root 6162: else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
! 6163: echo "$ac_t""Solaris/NetBSD" 1>&6
! 6164: SOUNDDEP=sd-solaris
! 6165: USE_SOUND=yes
! 6166: else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
! 6167: echo "$ac_t""AF sound" 1>&6
! 6168: SOUNDDEP=sd-af
! 6169: LIBS="$LIBS -lAF"
! 6170: USE_SOUND=yes
! 6171: else if [ "x$HAVE_MME_LIB" = "xyes" ]; then
! 6172: echo "$ac_t""MME sound" 1>&6
! 6173: SOUNDDEP=sd-mme
! 6174: LIBS="$LIBS -lmme"
! 6175: USE_SOUND=yes
! 6176: else if [ "x$TARGET" = "xp_os" ]; then
! 6177: echo "$ac_t""pAudio.device" 1>&6
! 6178: SOUNDDEP=od-pos
! 6179: USE_SOUND=yes
! 6180: else if [ "x$TARGET" = "xamigaos" ]; then
! 6181: if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then
! 6182: echo "$ac_t""Amiga AHI.device" 1>&6
1.1.1.4 root 6183: else
1.1.1.7 ! root 6184: echo "$ac_t""Amiga audio.device" 1>&6
1.1.1.6 root 6185: fi
1.1.1.7 ! root 6186: SOUNDDEP=od-amiga
! 6187: USE_SOUND=yes
! 6188: else if [ "x$TARGET" = "xbeos" ]; then
! 6189: echo "$ac_t""BeOS sound" 1>&6
! 6190: SOUNDDEP=od-beos
! 6191: USE_SOUND=yes
! 6192: else if [ "x$TARGET" = "xwin32" ]; then
! 6193: echo "$ac_t""Win32 sound" 1>&6
! 6194: SOUNDDEP=od-win32
! 6195: USE_SOUND=yes
! 6196: else
! 6197: echo "no known sound system found"
! 6198: NR_ERRORS=`expr $NR_ERRORS + 1`
! 6199: fi
! 6200: fi
! 6201: fi
! 6202: fi
1.1.1.4 root 6203: fi
1.1.1.7 ! root 6204: fi
! 6205: fi
! 6206: fi
! 6207: fi
! 6208:
1.1.1.4 root 6209:
6210: rm -f src/machdep
6211: rm -f src/osdep
6212: rm -f src/threaddep
6213: rm -f src/sounddep
6214: rm -f src/target.h
1.1.1.5 root 6215: rm -f src/config.h
1.1.1.6 root 6216: rm -f src/sd-sound.c
6217: rm -f src/od-joy.c
6218: rm -f src/md-support.c
6219: rm -f src/md-X86.S
1.1.1.3 root 6220:
1.1.1.4 root 6221: if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then
1.1.1.3 root 6222: echo $ac_n "checking which CPU to use""... $ac_c" 1>&6
1.1.1.7 ! root 6223: echo "configure:6224: checking which CPU to use" >&5
1.1.1.3 root 6224: cpu=`cpu | cut -d' ' -f2`
6225: echo "$ac_t""$cpu" 1>&6
6226: CFLAGS="$CFLAGS -m$cpu"
6227:
6228: echo $ac_n "checking which FPU to use""... $ac_c" 1>&6
1.1.1.7 ! root 6229: echo "configure:6230: checking which FPU to use" >&5
1.1.1.4 root 6230: fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
6231: if [ "x$fpu" != "x" ]; then
6232: echo "$ac_t""68881" 1>&6
6233: CFLAGS="$CFLAGS -m68881"
1.1.1.3 root 6234: else
6235: echo "$ac_t""none" 1>&6
6236: fi
6237: fi
6238:
1.1.1.2 root 6239:
6240:
1.1 root 6241:
6242:
6243:
6244:
6245:
6246:
6247:
6248:
6249:
1.1.1.3 root 6250:
1.1.1.4 root 6251:
1.1.1.3 root 6252:
6253:
6254:
1.1.1.6 root 6255:
1.1 root 6256: trap '' 1 2 15
6257: cat > confcache <<\EOF
6258: # This file is a shell script that caches the results of configure
6259: # tests run on this system so they can be shared between configure
6260: # scripts and configure runs. It is not useful on other systems.
6261: # If it contains results you don't want to keep, you may remove or edit it.
6262: #
6263: # By default, configure uses ./config.cache as the cache file,
6264: # creating it if it does not exist already. You can give configure
6265: # the --cache-file=FILE option to use a different cache file; that is
6266: # what configure does when it calls configure scripts in
6267: # subdirectories, so they share the cache.
6268: # Giving --cache-file=/dev/null disables caching, for debugging configure.
6269: # config.status only pays attention to the cache file if you give it the
6270: # --recheck option to rerun configure.
6271: #
6272: EOF
1.1.1.4 root 6273: # The following way of writing the cache mishandles newlines in values,
6274: # but we know of no workaround that is simple, portable, and efficient.
6275: # So, don't put newlines in cache variables' values.
1.1 root 6276: # Ultrix sh set writes to stderr and can't be redirected directly,
6277: # and sets the high bit in the cache file unless we assign to the vars.
6278: (set) 2>&1 |
1.1.1.4 root 6279: case `(ac_space=' '; set) 2>&1` in
6280: *ac_space=\ *)
6281: # `set' does not quote correctly, so add quotes (double-quote substitution
6282: # turns \\\\ into \\, and sed turns \\ into \).
6283: sed -n \
6284: -e "s/'/'\\\\''/g" \
6285: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6286: ;;
6287: *)
6288: # `set' quotes correctly as required by POSIX, so do not add quotes.
6289: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6290: ;;
6291: esac >> confcache
1.1 root 6292: if cmp -s $cache_file confcache; then
6293: :
6294: else
6295: if test -w $cache_file; then
6296: echo "updating cache $cache_file"
6297: cat confcache > $cache_file
6298: else
6299: echo "not updating unwritable cache $cache_file"
6300: fi
6301: fi
6302: rm -f confcache
6303:
6304: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6305:
6306: test "x$prefix" = xNONE && prefix=$ac_default_prefix
6307: # Let make expand exec_prefix.
6308: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6309:
6310: # Any assignment to VPATH causes Sun make to only execute
6311: # the first set of double-colon rules, so remove it if not needed.
6312: # If there is a colon in the path, we need to keep it.
6313: if test "x$srcdir" = x.; then
6314: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6315: fi
6316:
6317: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6318:
6319: DEFS=-DHAVE_CONFIG_H
6320:
6321: # Without the "./", some shells look in PATH for config.status.
6322: : ${CONFIG_STATUS=./config.status}
6323:
6324: echo creating $CONFIG_STATUS
6325: rm -f $CONFIG_STATUS
6326: cat > $CONFIG_STATUS <<EOF
6327: #! /bin/sh
6328: # Generated automatically by configure.
6329: # Run this file to recreate the current configuration.
6330: # This directory was configured as follows,
6331: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6332: #
6333: # $0 $ac_configure_args
6334: #
6335: # Compiler output produced by configure, useful for debugging
6336: # configure, is in ./config.log if it exists.
6337:
6338: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6339: for ac_option
6340: do
6341: case "\$ac_option" in
6342: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6343: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6344: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6345: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1.1.1.4 root 6346: echo "$CONFIG_STATUS generated by autoconf version 2.12"
1.1 root 6347: exit 0 ;;
6348: -help | --help | --hel | --he | --h)
6349: echo "\$ac_cs_usage"; exit 0 ;;
6350: *) echo "\$ac_cs_usage"; exit 1 ;;
6351: esac
6352: done
6353:
6354: ac_given_srcdir=$srcdir
6355:
1.1.1.4 root 6356: trap 'rm -fr `echo "src/Makefile Makefile src/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 root 6357: EOF
6358: cat >> $CONFIG_STATUS <<EOF
6359:
6360: # Protect against being on the right side of a sed subst in config.status.
6361: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6362: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6363: $ac_vpsub
6364: $extrasub
6365: s%@CFLAGS@%$CFLAGS%g
6366: s%@CPPFLAGS@%$CPPFLAGS%g
6367: s%@CXXFLAGS@%$CXXFLAGS%g
6368: s%@DEFS@%$DEFS%g
6369: s%@LDFLAGS@%$LDFLAGS%g
6370: s%@LIBS@%$LIBS%g
6371: s%@exec_prefix@%$exec_prefix%g
6372: s%@prefix@%$prefix%g
6373: s%@program_transform_name@%$program_transform_name%g
6374: s%@bindir@%$bindir%g
6375: s%@sbindir@%$sbindir%g
6376: s%@libexecdir@%$libexecdir%g
6377: s%@datadir@%$datadir%g
6378: s%@sysconfdir@%$sysconfdir%g
6379: s%@sharedstatedir@%$sharedstatedir%g
6380: s%@localstatedir@%$localstatedir%g
6381: s%@libdir@%$libdir%g
6382: s%@includedir@%$includedir%g
6383: s%@oldincludedir@%$oldincludedir%g
6384: s%@infodir@%$infodir%g
6385: s%@mandir@%$mandir%g
6386: s%@CC@%$CC%g
6387: s%@CPP@%$CPP%g
6388: s%@SET_MAKE@%$SET_MAKE%g
1.1.1.4 root 6389: s%@FILEPRG@%$FILEPRG%g
1.1.1.6 root 6390: s%@WRCPRG@%$WRCPRG%g
6391: s%@RCLPRG@%$RCLPRG%g
6392: s%@EXEEXT@%$EXEEXT%g
1.1 root 6393: s%@X_CFLAGS@%$X_CFLAGS%g
6394: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6395: s%@X_LIBS@%$X_LIBS%g
6396: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6397: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.4 root 6398: s%@GTK_CONFIG@%$GTK_CONFIG%g
6399: s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6400: s%@GTK_LIBS@%$GTK_LIBS%g
1.1 root 6401: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
1.1.1.6 root 6402: s%@WRC@%$WRC%g
1.1.1.4 root 6403: s%@NO_SCHED_CFLAGS@%$NO_SCHED_CFLAGS%g
1.1 root 6404: s%@LIBRARIES@%$LIBRARIES%g
6405: s%@TARGET@%$TARGET%g
6406: s%@GFXOBJS@%$GFXOBJS%g
1.1.1.6 root 6407: s%@RESOBJS@%$RESOBJS%g
1.1 root 6408: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.6 root 6409: s%@P2C@%$P2C%g
1.1.1.2 root 6410: s%@CPUOBJS@%$CPUOBJS%g
1.1.1.3 root 6411: s%@DEBUGOBJS@%$DEBUGOBJS%g
6412: s%@MATHLIB@%$MATHLIB%g
1.1.1.4 root 6413: s%@SHM_SUPPORT_LINKS@%$SHM_SUPPORT_LINKS%g
1.1.1.3 root 6414: s%@top_srcdir@%$top_srcdir%g
1.1 root 6415:
6416: CEOF
6417: EOF
1.1.1.4 root 6418:
6419: cat >> $CONFIG_STATUS <<\EOF
6420:
6421: # Split the substitutions into bite-sized pieces for seds with
6422: # small command number limits, like on Digital OSF/1 and HP-UX.
6423: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6424: ac_file=1 # Number of current file.
6425: ac_beg=1 # First line for current file.
6426: ac_end=$ac_max_sed_cmds # Line after last line for current file.
6427: ac_more_lines=:
6428: ac_sed_cmds=""
6429: while $ac_more_lines; do
6430: if test $ac_beg -gt 1; then
6431: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6432: else
6433: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6434: fi
6435: if test ! -s conftest.s$ac_file; then
6436: ac_more_lines=false
6437: rm -f conftest.s$ac_file
6438: else
6439: if test -z "$ac_sed_cmds"; then
6440: ac_sed_cmds="sed -f conftest.s$ac_file"
6441: else
6442: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6443: fi
6444: ac_file=`expr $ac_file + 1`
6445: ac_beg=$ac_end
6446: ac_end=`expr $ac_end + $ac_max_sed_cmds`
6447: fi
6448: done
6449: if test -z "$ac_sed_cmds"; then
6450: ac_sed_cmds=cat
6451: fi
6452: EOF
6453:
1.1 root 6454: cat >> $CONFIG_STATUS <<EOF
6455:
1.1.1.2 root 6456: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1 root 6457: EOF
6458: cat >> $CONFIG_STATUS <<\EOF
6459: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1.1.1.4 root 6460: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1 root 6461: case "$ac_file" in
1.1.1.4 root 6462: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1 root 6463: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6464: *) ac_file_in="${ac_file}.in" ;;
6465: esac
6466:
1.1.1.4 root 6467: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1.1 root 6468:
6469: # Remove last slash and all that follows it. Not all systems have dirname.
6470: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6471: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6472: # The file is in a subdirectory.
6473: test ! -d "$ac_dir" && mkdir "$ac_dir"
6474: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6475: # A "../" for each directory in $ac_dir_suffix.
6476: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6477: else
6478: ac_dir_suffix= ac_dots=
6479: fi
6480:
6481: case "$ac_given_srcdir" in
6482: .) srcdir=.
6483: if test -z "$ac_dots"; then top_srcdir=.
6484: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6485: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6486: *) # Relative path.
6487: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6488: top_srcdir="$ac_dots$ac_given_srcdir" ;;
6489: esac
6490:
1.1.1.4 root 6491:
1.1 root 6492: echo creating "$ac_file"
6493: rm -f "$ac_file"
6494: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6495: case "$ac_file" in
6496: *Makefile*) ac_comsub="1i\\
6497: # $configure_input" ;;
6498: *) ac_comsub= ;;
6499: esac
1.1.1.4 root 6500:
6501: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1.1 root 6502: sed -e "$ac_comsub
6503: s%@configure_input@%$configure_input%g
6504: s%@srcdir@%$srcdir%g
6505: s%@top_srcdir@%$top_srcdir%g
1.1.1.4 root 6506: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1.1 root 6507: fi; done
1.1.1.4 root 6508: rm -f conftest.s*
1.1 root 6509:
6510: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6511: # NAME is the cpp macro being defined and VALUE is the value it is being given.
6512: #
6513: # ac_d sets the value in "#define NAME VALUE" lines.
6514: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6515: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6516: ac_dC='\3'
6517: ac_dD='%g'
6518: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6519: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6520: ac_uB='\([ ]\)%\1#\2define\3'
6521: ac_uC=' '
6522: ac_uD='\4%g'
6523: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6524: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6525: ac_eB='$%\1#\2define\3'
6526: ac_eC=' '
6527: ac_eD='%g'
6528:
1.1.1.4 root 6529: if test "${CONFIG_HEADERS+set}" != set; then
6530: EOF
6531: cat >> $CONFIG_STATUS <<EOF
6532: CONFIG_HEADERS="src/sysconfig.h"
6533: EOF
6534: cat >> $CONFIG_STATUS <<\EOF
6535: fi
1.1 root 6536: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1.1.1.4 root 6537: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1 root 6538: case "$ac_file" in
1.1.1.4 root 6539: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1 root 6540: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6541: *) ac_file_in="${ac_file}.in" ;;
6542: esac
6543:
6544: echo creating $ac_file
6545:
6546: rm -f conftest.frag conftest.in conftest.out
1.1.1.4 root 6547: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6548: cat $ac_file_inputs > conftest.in
1.1 root 6549:
6550: EOF
6551:
6552: # Transform confdefs.h into a sed script conftest.vals that substitutes
6553: # the proper values into config.h.in to produce config.h. And first:
6554: # Protect against being on the right side of a sed subst in config.status.
6555: # Protect against being in an unquoted here document in config.status.
6556: rm -f conftest.vals
6557: cat > conftest.hdr <<\EOF
6558: s/[\\&%]/\\&/g
6559: s%[\\$`]%\\&%g
6560: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6561: s%ac_d%ac_u%gp
6562: s%ac_u%ac_e%gp
6563: EOF
6564: sed -n -f conftest.hdr confdefs.h > conftest.vals
6565: rm -f conftest.hdr
6566:
6567: # This sed command replaces #undef with comments. This is necessary, for
6568: # example, in the case of _POSIX_SOURCE, which is predefined and required
6569: # on some systems where configure will not decide to define it.
6570: cat >> conftest.vals <<\EOF
6571: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6572: EOF
6573:
6574: # Break up conftest.vals because some shells have a limit on
6575: # the size of here documents, and old seds have small limits too.
6576:
6577: rm -f conftest.tail
6578: while :
6579: do
6580: ac_lines=`grep -c . conftest.vals`
6581: # grep -c gives empty output for an empty file on some AIX systems.
6582: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6583: # Write a limited-size here document to conftest.frag.
6584: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6585: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6586: echo 'CEOF
6587: sed -f conftest.frag conftest.in > conftest.out
6588: rm -f conftest.in
6589: mv conftest.out conftest.in
6590: ' >> $CONFIG_STATUS
6591: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6592: rm -f conftest.vals
6593: mv conftest.tail conftest.vals
6594: done
6595: rm -f conftest.vals
6596:
6597: cat >> $CONFIG_STATUS <<\EOF
6598: rm -f conftest.frag conftest.h
6599: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6600: cat conftest.in >> conftest.h
6601: rm -f conftest.in
6602: if cmp -s $ac_file conftest.h 2>/dev/null; then
6603: echo "$ac_file is unchanged"
6604: rm -f conftest.h
6605: else
6606: # Remove last slash and all that follows it. Not all systems have dirname.
6607: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6608: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6609: # The file is in a subdirectory.
6610: test ! -d "$ac_dir" && mkdir "$ac_dir"
6611: fi
6612: rm -f $ac_file
6613: mv conftest.h $ac_file
6614: fi
6615: fi; done
6616:
1.1.1.4 root 6617: EOF
6618: cat >> $CONFIG_STATUS <<EOF
1.1 root 6619:
1.1.1.4 root 6620: EOF
6621: cat >> $CONFIG_STATUS <<\EOF
1.1 root 6622:
6623: exit 0
6624: EOF
6625: chmod +x $CONFIG_STATUS
6626: rm -fr confdefs* $ac_clean_files
6627: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6628:
1.1.1.4 root 6629: if [ "x$DO_PROFILING" = "xyes" ]; then
1.1.1.3 root 6630: echo "Building a profiling version of UAE (select this option only if you know"
6631: echo "what you are doing)"
6632: fi
1.1.1.4 root 6633:
6634:
6635:
6636:
1.1.1.6 root 6637: if (test -e $abssrcdir/src/sounddep) || (test -e $abssrcdir/src/machdep) \
6638: || (test -e $abssrcdir/src/osdep) || (test -e $abssrcdir/src/threaddep) \
6639: || (test -e $abssrcdir/src/target.h)
6640: then
6641: echo
6642: echo "Fatal error: Can't configure in the current directory, because"
6643: echo "configure was run in the source directory. Go to the source"
6644: echo "directory, type"
6645: echo " make streifenfrei"
6646: echo "and try again."
6647: exit 1
6648: fi
1.1.1.4 root 6649:
6650: ln -s $abssrcdir/src/$MACHDEP src/machdep
6651: ln -s $abssrcdir/src/$OSDEP src/osdep
6652: ln -s $abssrcdir/src/$THREADDEP src/threaddep
6653: ln -s $abssrcdir/src/$SOUNDDEP src/sounddep
6654: ln -s $abssrcdir/src/targets/$TARGETDEP src/target.h
1.1.1.5 root 6655: ln -s $abssrcdir/config.h src/config.h
1.1.1.4 root 6656:
1.1.1.6 root 6657:
6658: ln -s $SD_SOUND src/sd-sound.c
6659: ln -s $OD_JOYSTICK src/od-joy.c
6660: ln -s $MD_SUPPORT src/md-support.c
6661:
6662: if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then
6663: ln -s machdep/X86.S src/md-X86.S
6664: fi
6665:
6666:
1.1.1.4 root 6667: echo
6668: echo
6669: if [ "x$NR_ERRORS" = "x0" ]; then
6670: if [ "x$NR_WARNINGS" = "x0" ]; then
6671: echo "Configuration was successful!"
6672: else
6673: echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
6674: echo "from configure carefully if you run into problems."
6675: fi
6676: else
6677: echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
6678: echo "not get all the features you asked for."
6679: fi
6680: echo
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.