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