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