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