ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure
Revision: 1.16
Committed: 1999-11-03T21:04:14Z (25 years ago) by cebix
Branch: MAIN
CVS Tags: snapshot-22121999, release-0_8-1
Changes since 1.15: +245 -183 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 cebix 1.1 #! /bin/sh
2    
3     # Guess values for system-dependent variables and create Makefiles.
4     # Generated automatically using autoconf version 2.13
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 cebix 1.9 --enable-xf86-dga use the XFree86 DGA extension [default=yes]"
16 cebix 1.7 ac_help="$ac_help
17 cebix 1.16 --enable-xf86-vidmode use the XFree86 VidMode extension [default=yes]"
18     ac_help="$ac_help
19 cebix 1.9 --enable-fbdev-dga use direct frame buffer access via /dev/fb [default=yes]"
20 cebix 1.1 ac_help="$ac_help
21 cebix 1.13 --with-esd support ESD for sound under Linux/FreeBSD [default=yes]"
22 cebix 1.9 ac_help="$ac_help
23 cebix 1.13 --with-gtk use GTK user interface [default=yes]"
24     ac_help="$ac_help
25     --with-mon use mon as debugger [default=yes]"
26 cebix 1.1 ac_help="$ac_help
27     --with-x use the X Window System"
28     ac_help="$ac_help
29     --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
30     ac_help="$ac_help
31     --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
32     ac_help="$ac_help
33     --disable-gtktest Do not try to compile and run a test GTK program"
34 cebix 1.9 ac_help="$ac_help
35     --with-esd-prefix=PFX Prefix where ESD is installed (optional)"
36     ac_help="$ac_help
37     --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)"
38     ac_help="$ac_help
39     --disable-esdtest Do not try to compile and run a test ESD program"
40 cebix 1.1
41     # Initialize some variables set by options.
42     # The variables have the same names as the options, with
43     # dashes changed to underlines.
44     build=NONE
45     cache_file=./config.cache
46     exec_prefix=NONE
47     host=NONE
48     no_create=
49     nonopt=NONE
50     no_recursion=
51     prefix=NONE
52     program_prefix=NONE
53     program_suffix=NONE
54     program_transform_name=s,x,x,
55     silent=
56     site=
57     srcdir=
58     target=NONE
59     verbose=
60     x_includes=NONE
61     x_libraries=NONE
62     bindir='${exec_prefix}/bin'
63     sbindir='${exec_prefix}/sbin'
64     libexecdir='${exec_prefix}/libexec'
65     datadir='${prefix}/share'
66     sysconfdir='${prefix}/etc'
67     sharedstatedir='${prefix}/com'
68     localstatedir='${prefix}/var'
69     libdir='${exec_prefix}/lib'
70     includedir='${prefix}/include'
71     oldincludedir='/usr/include'
72     infodir='${prefix}/info'
73     mandir='${prefix}/man'
74    
75     # Initialize some other variables.
76     subdirs=
77     MFLAGS= MAKEFLAGS=
78     SHELL=${CONFIG_SHELL-/bin/sh}
79     # Maximum number of lines to put in a shell here document.
80     ac_max_here_lines=12
81    
82     ac_prev=
83     for ac_option
84     do
85    
86     # If the previous option needs an argument, assign it.
87     if test -n "$ac_prev"; then
88     eval "$ac_prev=\$ac_option"
89     ac_prev=
90     continue
91     fi
92    
93     case "$ac_option" in
94     -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95     *) ac_optarg= ;;
96     esac
97    
98     # Accept the important Cygnus configure options, so we can diagnose typos.
99    
100     case "$ac_option" in
101    
102     -bindir | --bindir | --bindi | --bind | --bin | --bi)
103     ac_prev=bindir ;;
104     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105     bindir="$ac_optarg" ;;
106    
107     -build | --build | --buil | --bui | --bu)
108     ac_prev=build ;;
109     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110     build="$ac_optarg" ;;
111    
112     -cache-file | --cache-file | --cache-fil | --cache-fi \
113     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114     ac_prev=cache_file ;;
115     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117     cache_file="$ac_optarg" ;;
118    
119     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120     ac_prev=datadir ;;
121     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122     | --da=*)
123     datadir="$ac_optarg" ;;
124    
125     -disable-* | --disable-*)
126     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127     # Reject names that are not valid shell variable names.
128     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130     fi
131     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132     eval "enable_${ac_feature}=no" ;;
133    
134     -enable-* | --enable-*)
135     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136     # Reject names that are not valid shell variable names.
137     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139     fi
140     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141     case "$ac_option" in
142     *=*) ;;
143     *) ac_optarg=yes ;;
144     esac
145     eval "enable_${ac_feature}='$ac_optarg'" ;;
146    
147     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149     | --exec | --exe | --ex)
150     ac_prev=exec_prefix ;;
151     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153     | --exec=* | --exe=* | --ex=*)
154     exec_prefix="$ac_optarg" ;;
155    
156     -gas | --gas | --ga | --g)
157     # Obsolete; use --with-gas.
158     with_gas=yes ;;
159    
160     -help | --help | --hel | --he)
161     # Omit some internal or obsolete options to make the list less imposing.
162     # This message is too long to be a string in the A/UX 3.1 sh.
163     cat << EOF
164     Usage: configure [options] [host]
165     Options: [defaults in brackets after descriptions]
166     Configuration:
167     --cache-file=FILE cache test results in FILE
168     --help print this message
169     --no-create do not create output files
170     --quiet, --silent do not print \`checking...' messages
171     --version print the version of autoconf that created configure
172     Directory and file names:
173     --prefix=PREFIX install architecture-independent files in PREFIX
174     [$ac_default_prefix]
175     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176     [same as prefix]
177     --bindir=DIR user executables in DIR [EPREFIX/bin]
178     --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179     --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180     --datadir=DIR read-only architecture-independent data in DIR
181     [PREFIX/share]
182     --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183     --sharedstatedir=DIR modifiable architecture-independent data in DIR
184     [PREFIX/com]
185     --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186     --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187     --includedir=DIR C header files in DIR [PREFIX/include]
188     --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189     --infodir=DIR info documentation in DIR [PREFIX/info]
190     --mandir=DIR man documentation in DIR [PREFIX/man]
191     --srcdir=DIR find the sources in DIR [configure dir or ..]
192     --program-prefix=PREFIX prepend PREFIX to installed program names
193     --program-suffix=SUFFIX append SUFFIX to installed program names
194     --program-transform-name=PROGRAM
195     run sed PROGRAM on installed program names
196     EOF
197     cat << EOF
198     Host type:
199     --build=BUILD configure for building on BUILD [BUILD=HOST]
200     --host=HOST configure for HOST [guessed]
201     --target=TARGET configure for TARGET [TARGET=HOST]
202     Features and packages:
203     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207     --x-includes=DIR X include files are in DIR
208     --x-libraries=DIR X library files are in DIR
209     EOF
210     if test -n "$ac_help"; then
211     echo "--enable and --with options recognized:$ac_help"
212     fi
213     exit 0 ;;
214    
215     -host | --host | --hos | --ho)
216     ac_prev=host ;;
217     -host=* | --host=* | --hos=* | --ho=*)
218     host="$ac_optarg" ;;
219    
220     -includedir | --includedir | --includedi | --included | --include \
221     | --includ | --inclu | --incl | --inc)
222     ac_prev=includedir ;;
223     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224     | --includ=* | --inclu=* | --incl=* | --inc=*)
225     includedir="$ac_optarg" ;;
226    
227     -infodir | --infodir | --infodi | --infod | --info | --inf)
228     ac_prev=infodir ;;
229     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230     infodir="$ac_optarg" ;;
231    
232     -libdir | --libdir | --libdi | --libd)
233     ac_prev=libdir ;;
234     -libdir=* | --libdir=* | --libdi=* | --libd=*)
235     libdir="$ac_optarg" ;;
236    
237     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238     | --libexe | --libex | --libe)
239     ac_prev=libexecdir ;;
240     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241     | --libexe=* | --libex=* | --libe=*)
242     libexecdir="$ac_optarg" ;;
243    
244     -localstatedir | --localstatedir | --localstatedi | --localstated \
245     | --localstate | --localstat | --localsta | --localst \
246     | --locals | --local | --loca | --loc | --lo)
247     ac_prev=localstatedir ;;
248     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251     localstatedir="$ac_optarg" ;;
252    
253     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254     ac_prev=mandir ;;
255     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256     mandir="$ac_optarg" ;;
257    
258     -nfp | --nfp | --nf)
259     # Obsolete; use --without-fp.
260     with_fp=no ;;
261    
262     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263     | --no-cr | --no-c)
264     no_create=yes ;;
265    
266     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268     no_recursion=yes ;;
269    
270     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272     | --oldin | --oldi | --old | --ol | --o)
273     ac_prev=oldincludedir ;;
274     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277     oldincludedir="$ac_optarg" ;;
278    
279     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280     ac_prev=prefix ;;
281     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282     prefix="$ac_optarg" ;;
283    
284     -program-prefix | --program-prefix | --program-prefi | --program-pref \
285     | --program-pre | --program-pr | --program-p)
286     ac_prev=program_prefix ;;
287     -program-prefix=* | --program-prefix=* | --program-prefi=* \
288     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289     program_prefix="$ac_optarg" ;;
290    
291     -program-suffix | --program-suffix | --program-suffi | --program-suff \
292     | --program-suf | --program-su | --program-s)
293     ac_prev=program_suffix ;;
294     -program-suffix=* | --program-suffix=* | --program-suffi=* \
295     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296     program_suffix="$ac_optarg" ;;
297    
298     -program-transform-name | --program-transform-name \
299     | --program-transform-nam | --program-transform-na \
300     | --program-transform-n | --program-transform- \
301     | --program-transform | --program-transfor \
302     | --program-transfo | --program-transf \
303     | --program-trans | --program-tran \
304     | --progr-tra | --program-tr | --program-t)
305     ac_prev=program_transform_name ;;
306     -program-transform-name=* | --program-transform-name=* \
307     | --program-transform-nam=* | --program-transform-na=* \
308     | --program-transform-n=* | --program-transform-=* \
309     | --program-transform=* | --program-transfor=* \
310     | --program-transfo=* | --program-transf=* \
311     | --program-trans=* | --program-tran=* \
312     | --progr-tra=* | --program-tr=* | --program-t=*)
313     program_transform_name="$ac_optarg" ;;
314    
315     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316     | -silent | --silent | --silen | --sile | --sil)
317     silent=yes ;;
318    
319     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320     ac_prev=sbindir ;;
321     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322     | --sbi=* | --sb=*)
323     sbindir="$ac_optarg" ;;
324    
325     -sharedstatedir | --sharedstatedir | --sharedstatedi \
326     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327     | --sharedst | --shareds | --shared | --share | --shar \
328     | --sha | --sh)
329     ac_prev=sharedstatedir ;;
330     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333     | --sha=* | --sh=*)
334     sharedstatedir="$ac_optarg" ;;
335    
336     -site | --site | --sit)
337     ac_prev=site ;;
338     -site=* | --site=* | --sit=*)
339     site="$ac_optarg" ;;
340    
341     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342     ac_prev=srcdir ;;
343     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344     srcdir="$ac_optarg" ;;
345    
346     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347     | --syscon | --sysco | --sysc | --sys | --sy)
348     ac_prev=sysconfdir ;;
349     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351     sysconfdir="$ac_optarg" ;;
352    
353     -target | --target | --targe | --targ | --tar | --ta | --t)
354     ac_prev=target ;;
355     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356     target="$ac_optarg" ;;
357    
358     -v | -verbose | --verbose | --verbos | --verbo | --verb)
359     verbose=yes ;;
360    
361     -version | --version | --versio | --versi | --vers)
362     echo "configure generated by autoconf version 2.13"
363     exit 0 ;;
364    
365     -with-* | --with-*)
366     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367     # Reject names that are not valid shell variable names.
368     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370     fi
371     ac_package=`echo $ac_package| sed 's/-/_/g'`
372     case "$ac_option" in
373     *=*) ;;
374     *) ac_optarg=yes ;;
375     esac
376     eval "with_${ac_package}='$ac_optarg'" ;;
377    
378     -without-* | --without-*)
379     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380     # Reject names that are not valid shell variable names.
381     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383     fi
384     ac_package=`echo $ac_package| sed 's/-/_/g'`
385     eval "with_${ac_package}=no" ;;
386    
387     --x)
388     # Obsolete; use --with-x.
389     with_x=yes ;;
390    
391     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392     | --x-incl | --x-inc | --x-in | --x-i)
393     ac_prev=x_includes ;;
394     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396     x_includes="$ac_optarg" ;;
397    
398     -x-libraries | --x-libraries | --x-librarie | --x-librari \
399     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400     ac_prev=x_libraries ;;
401     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403     x_libraries="$ac_optarg" ;;
404    
405     -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406     ;;
407    
408     *)
409     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410     echo "configure: warning: $ac_option: invalid host type" 1>&2
411     fi
412     if test "x$nonopt" != xNONE; then
413     { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414     fi
415     nonopt="$ac_option"
416     ;;
417    
418     esac
419     done
420    
421     if test -n "$ac_prev"; then
422     { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423     fi
424    
425     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426    
427     # File descriptor usage:
428     # 0 standard input
429     # 1 file creation
430     # 2 errors and warnings
431     # 3 some systems may open it to /dev/tty
432     # 4 used on the Kubota Titan
433     # 6 checking for... messages and results
434     # 5 compiler messages saved in config.log
435     if test "$silent" = yes; then
436     exec 6>/dev/null
437     else
438     exec 6>&1
439     fi
440     exec 5>./config.log
441    
442     echo "\
443     This file contains any messages produced by compilers while
444     running configure, to aid debugging if configure makes a mistake.
445     " 1>&5
446    
447     # Strip out --no-create and --no-recursion so they do not pile up.
448     # Also quote any args containing shell metacharacters.
449     ac_configure_args=
450     for ac_arg
451     do
452     case "$ac_arg" in
453     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454     | --no-cr | --no-c) ;;
455     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458     ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459     *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460     esac
461     done
462    
463     # NLS nuisances.
464     # Only set these to C if already set. These must not be set unconditionally
465     # because not all systems understand e.g. LANG=C (notably SCO).
466     # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467     # Non-C LC_CTYPE values break the ctype check.
468     if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469     if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470     if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471     if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472    
473     # confdefs.h avoids OS command line length limits that DEFS can exceed.
474     rm -rf conftest* confdefs.h
475     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476     echo > confdefs.h
477    
478     # A filename unique to this package, relative to the directory that
479     # configure is in, which we can look for to find out if srcdir is correct.
480     ac_unique_file=main_unix.cpp
481    
482     # Find the source files, if location was not specified.
483     if test -z "$srcdir"; then
484     ac_srcdir_defaulted=yes
485     # Try the directory containing this script, then its parent.
486     ac_prog=$0
487     ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489     srcdir=$ac_confdir
490     if test ! -r $srcdir/$ac_unique_file; then
491     srcdir=..
492     fi
493     else
494     ac_srcdir_defaulted=no
495     fi
496     if test ! -r $srcdir/$ac_unique_file; then
497     if test "$ac_srcdir_defaulted" = yes; then
498     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499     else
500     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501     fi
502     fi
503     srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504    
505     # Prefer explicitly selected file to automatically selected ones.
506     if test -z "$CONFIG_SITE"; then
507     if test "x$prefix" != xNONE; then
508     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509     else
510     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511     fi
512     fi
513     for ac_site_file in $CONFIG_SITE; do
514     if test -r "$ac_site_file"; then
515     echo "loading site script $ac_site_file"
516     . "$ac_site_file"
517     fi
518     done
519    
520     if test -r "$cache_file"; then
521     echo "loading cache $cache_file"
522     . $cache_file
523     else
524     echo "creating cache $cache_file"
525     > $cache_file
526     fi
527    
528     ac_ext=c
529     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530     ac_cpp='$CPP $CPPFLAGS'
531     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533     cross_compiling=$ac_cv_prog_cc_cross
534    
535     ac_exeext=
536     ac_objext=o
537     if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538     # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539     if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540     ac_n= ac_c='
541     ' ac_t=' '
542     else
543     ac_n=-n ac_c= ac_t=
544     fi
545     else
546     ac_n= ac_c='\c' ac_t=
547     fi
548    
549    
550    
551    
552    
553 cebix 1.7 # Check whether --enable-xf86-dga or --disable-xf86-dga was given.
554     if test "${enable_xf86_dga+set}" = set; then
555     enableval="$enable_xf86_dga"
556     WANT_XF86_DGA=$enableval
557 cebix 1.11 else
558     WANT_XF86_DGA=yes
559 cebix 1.7 fi
560    
561 cebix 1.16 # Check whether --enable-xf86-vidmode or --disable-xf86-vidmode was given.
562     if test "${enable_xf86_vidmode+set}" = set; then
563     enableval="$enable_xf86_vidmode"
564     WANT_XF86_VIDMODE=$enableval
565     else
566     WANT_XF86_VIDMODE=yes
567     fi
568    
569 cebix 1.7 # Check whether --enable-fbdev-dga or --disable-fbdev-dga was given.
570     if test "${enable_fbdev_dga+set}" = set; then
571     enableval="$enable_fbdev_dga"
572     WANT_FBDEV_DGA=$enableval
573 cebix 1.11 else
574     WANT_FBDEV_DGA=yes
575 cebix 1.1 fi
576    
577 cebix 1.13 # Check whether --with-esd or --without-esd was given.
578     if test "${with_esd+set}" = set; then
579     withval="$with_esd"
580     WANT_ESD=$withval
581 cebix 1.11 else
582     WANT_ESD=yes
583 cebix 1.9 fi
584    
585 cebix 1.13 # Check whether --with-gtk or --without-gtk was given.
586     if test "${with_gtk+set}" = set; then
587     withval="$with_gtk"
588     WANT_GTK=$withval
589     else
590     WANT_GTK=yes
591     fi
592    
593     # Check whether --with-mon or --without-mon was given.
594     if test "${with_mon+set}" = set; then
595     withval="$with_mon"
596     WANT_MON=$withval
597 cebix 1.11 else
598 cebix 1.13 WANT_MON=yes
599 cebix 1.1 fi
600    
601    
602     # Extract the first word of "gcc", so it can be a program name with args.
603     set dummy gcc; ac_word=$2
604     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
605 cebix 1.16 echo "configure:606: checking for $ac_word" >&5
606 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
607     echo $ac_n "(cached) $ac_c" 1>&6
608     else
609     if test -n "$CC"; then
610     ac_cv_prog_CC="$CC" # Let the user override the test.
611     else
612     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
613     ac_dummy="$PATH"
614     for ac_dir in $ac_dummy; do
615     test -z "$ac_dir" && ac_dir=.
616     if test -f $ac_dir/$ac_word; then
617     ac_cv_prog_CC="gcc"
618     break
619     fi
620     done
621     IFS="$ac_save_ifs"
622     fi
623     fi
624     CC="$ac_cv_prog_CC"
625     if test -n "$CC"; then
626     echo "$ac_t""$CC" 1>&6
627     else
628     echo "$ac_t""no" 1>&6
629     fi
630    
631     if test -z "$CC"; then
632     # Extract the first word of "cc", so it can be a program name with args.
633     set dummy cc; ac_word=$2
634     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 cebix 1.16 echo "configure:636: checking for $ac_word" >&5
636 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637     echo $ac_n "(cached) $ac_c" 1>&6
638     else
639     if test -n "$CC"; then
640     ac_cv_prog_CC="$CC" # Let the user override the test.
641     else
642     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643     ac_prog_rejected=no
644     ac_dummy="$PATH"
645     for ac_dir in $ac_dummy; do
646     test -z "$ac_dir" && ac_dir=.
647     if test -f $ac_dir/$ac_word; then
648     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
649     ac_prog_rejected=yes
650     continue
651     fi
652     ac_cv_prog_CC="cc"
653     break
654     fi
655     done
656     IFS="$ac_save_ifs"
657     if test $ac_prog_rejected = yes; then
658     # We found a bogon in the path, so make sure we never use it.
659     set dummy $ac_cv_prog_CC
660     shift
661     if test $# -gt 0; then
662     # We chose a different compiler from the bogus one.
663     # However, it has the same basename, so the bogon will be chosen
664     # first if we set CC to just the basename; use the full file name.
665     shift
666     set dummy "$ac_dir/$ac_word" "$@"
667     shift
668     ac_cv_prog_CC="$@"
669     fi
670     fi
671     fi
672     fi
673     CC="$ac_cv_prog_CC"
674     if test -n "$CC"; then
675     echo "$ac_t""$CC" 1>&6
676     else
677     echo "$ac_t""no" 1>&6
678     fi
679    
680     if test -z "$CC"; then
681     case "`uname -s`" in
682     *win32* | *WIN32*)
683     # Extract the first word of "cl", so it can be a program name with args.
684     set dummy cl; ac_word=$2
685     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
686 cebix 1.16 echo "configure:687: checking for $ac_word" >&5
687 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688     echo $ac_n "(cached) $ac_c" 1>&6
689     else
690     if test -n "$CC"; then
691     ac_cv_prog_CC="$CC" # Let the user override the test.
692     else
693     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
694     ac_dummy="$PATH"
695     for ac_dir in $ac_dummy; do
696     test -z "$ac_dir" && ac_dir=.
697     if test -f $ac_dir/$ac_word; then
698     ac_cv_prog_CC="cl"
699     break
700     fi
701     done
702     IFS="$ac_save_ifs"
703     fi
704     fi
705     CC="$ac_cv_prog_CC"
706     if test -n "$CC"; then
707     echo "$ac_t""$CC" 1>&6
708     else
709     echo "$ac_t""no" 1>&6
710     fi
711     ;;
712     esac
713     fi
714     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
715     fi
716    
717     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
718 cebix 1.16 echo "configure:719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
719 cebix 1.1
720     ac_ext=c
721     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
722     ac_cpp='$CPP $CPPFLAGS'
723     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
724     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
725     cross_compiling=$ac_cv_prog_cc_cross
726    
727     cat > conftest.$ac_ext << EOF
728    
729 cebix 1.16 #line 730 "configure"
730 cebix 1.1 #include "confdefs.h"
731    
732     main(){return(0);}
733     EOF
734 cebix 1.16 if { (eval echo configure:735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
735 cebix 1.1 ac_cv_prog_cc_works=yes
736     # If we can't run a trivial program, we are probably using a cross compiler.
737     if (./conftest; exit) 2>/dev/null; then
738     ac_cv_prog_cc_cross=no
739     else
740     ac_cv_prog_cc_cross=yes
741     fi
742     else
743     echo "configure: failed program was:" >&5
744     cat conftest.$ac_ext >&5
745     ac_cv_prog_cc_works=no
746     fi
747     rm -fr conftest*
748     ac_ext=c
749     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
750     ac_cpp='$CPP $CPPFLAGS'
751     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
752     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
753     cross_compiling=$ac_cv_prog_cc_cross
754    
755     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
756     if test $ac_cv_prog_cc_works = no; then
757     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
758     fi
759     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
760 cebix 1.16 echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
761 cebix 1.1 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
762     cross_compiling=$ac_cv_prog_cc_cross
763    
764     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
765 cebix 1.16 echo "configure:766: checking whether we are using GNU C" >&5
766 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
767     echo $ac_n "(cached) $ac_c" 1>&6
768     else
769     cat > conftest.c <<EOF
770     #ifdef __GNUC__
771     yes;
772     #endif
773     EOF
774 cebix 1.16 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
775 cebix 1.1 ac_cv_prog_gcc=yes
776     else
777     ac_cv_prog_gcc=no
778     fi
779     fi
780    
781     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
782    
783     if test $ac_cv_prog_gcc = yes; then
784     GCC=yes
785     else
786     GCC=
787     fi
788    
789     ac_test_CFLAGS="${CFLAGS+set}"
790     ac_save_CFLAGS="$CFLAGS"
791     CFLAGS=
792     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
793 cebix 1.16 echo "configure:794: checking whether ${CC-cc} accepts -g" >&5
794 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
795     echo $ac_n "(cached) $ac_c" 1>&6
796     else
797     echo 'void f(){}' > conftest.c
798     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
799     ac_cv_prog_cc_g=yes
800     else
801     ac_cv_prog_cc_g=no
802     fi
803     rm -f conftest*
804    
805     fi
806    
807     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
808     if test "$ac_test_CFLAGS" = set; then
809     CFLAGS="$ac_save_CFLAGS"
810     elif test $ac_cv_prog_cc_g = yes; then
811     if test "$GCC" = yes; then
812     CFLAGS="-g -O2"
813     else
814     CFLAGS="-g"
815     fi
816     else
817     if test "$GCC" = yes; then
818     CFLAGS="-O2"
819     else
820     CFLAGS=
821     fi
822     fi
823    
824 cebix 1.3 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
825 cebix 1.16 echo "configure:826: checking how to run the C preprocessor" >&5
826 cebix 1.3 # On Suns, sometimes $CPP names a directory.
827     if test -n "$CPP" && test -d "$CPP"; then
828     CPP=
829     fi
830     if test -z "$CPP"; then
831     if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
832     echo $ac_n "(cached) $ac_c" 1>&6
833     else
834     # This must be in double quotes, not single quotes, because CPP may get
835     # substituted into the Makefile and "${CC-cc}" will confuse make.
836     CPP="${CC-cc} -E"
837     # On the NeXT, cc -E runs the code through the compiler's parser,
838     # not just through cpp.
839     cat > conftest.$ac_ext <<EOF
840 cebix 1.16 #line 841 "configure"
841 cebix 1.3 #include "confdefs.h"
842     #include <assert.h>
843     Syntax Error
844     EOF
845     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
846 cebix 1.16 { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
847 cebix 1.3 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
848     if test -z "$ac_err"; then
849     :
850     else
851     echo "$ac_err" >&5
852     echo "configure: failed program was:" >&5
853     cat conftest.$ac_ext >&5
854     rm -rf conftest*
855     CPP="${CC-cc} -E -traditional-cpp"
856     cat > conftest.$ac_ext <<EOF
857 cebix 1.16 #line 858 "configure"
858 cebix 1.3 #include "confdefs.h"
859     #include <assert.h>
860     Syntax Error
861     EOF
862     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
863 cebix 1.16 { (eval echo configure:864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
864 cebix 1.3 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
865     if test -z "$ac_err"; then
866     :
867     else
868     echo "$ac_err" >&5
869     echo "configure: failed program was:" >&5
870     cat conftest.$ac_ext >&5
871     rm -rf conftest*
872     CPP="${CC-cc} -nologo -E"
873     cat > conftest.$ac_ext <<EOF
874 cebix 1.16 #line 875 "configure"
875 cebix 1.3 #include "confdefs.h"
876     #include <assert.h>
877     Syntax Error
878     EOF
879     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
880 cebix 1.16 { (eval echo configure:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
881 cebix 1.3 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
882     if test -z "$ac_err"; then
883     :
884     else
885     echo "$ac_err" >&5
886     echo "configure: failed program was:" >&5
887     cat conftest.$ac_ext >&5
888     rm -rf conftest*
889     CPP=/lib/cpp
890     fi
891     rm -f conftest*
892     fi
893     rm -f conftest*
894     fi
895     rm -f conftest*
896     ac_cv_prog_CPP="$CPP"
897     fi
898     CPP="$ac_cv_prog_CPP"
899     else
900     ac_cv_prog_CPP="$CPP"
901     fi
902     echo "$ac_t""$CPP" 1>&6
903    
904 cebix 1.1 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
905     do
906     # Extract the first word of "$ac_prog", so it can be a program name with args.
907     set dummy $ac_prog; ac_word=$2
908     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909 cebix 1.16 echo "configure:910: checking for $ac_word" >&5
910 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
911     echo $ac_n "(cached) $ac_c" 1>&6
912     else
913     if test -n "$CXX"; then
914     ac_cv_prog_CXX="$CXX" # Let the user override the test.
915     else
916     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917     ac_dummy="$PATH"
918     for ac_dir in $ac_dummy; do
919     test -z "$ac_dir" && ac_dir=.
920     if test -f $ac_dir/$ac_word; then
921     ac_cv_prog_CXX="$ac_prog"
922     break
923     fi
924     done
925     IFS="$ac_save_ifs"
926     fi
927     fi
928     CXX="$ac_cv_prog_CXX"
929     if test -n "$CXX"; then
930     echo "$ac_t""$CXX" 1>&6
931     else
932     echo "$ac_t""no" 1>&6
933     fi
934    
935     test -n "$CXX" && break
936     done
937     test -n "$CXX" || CXX="gcc"
938    
939    
940     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
941 cebix 1.16 echo "configure:942: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
942 cebix 1.1
943     ac_ext=C
944     # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
945     ac_cpp='$CXXCPP $CPPFLAGS'
946     ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
947     ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
948     cross_compiling=$ac_cv_prog_cxx_cross
949    
950     cat > conftest.$ac_ext << EOF
951    
952 cebix 1.16 #line 953 "configure"
953 cebix 1.1 #include "confdefs.h"
954    
955     int main(){return(0);}
956     EOF
957 cebix 1.16 if { (eval echo configure:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
958 cebix 1.1 ac_cv_prog_cxx_works=yes
959     # If we can't run a trivial program, we are probably using a cross compiler.
960     if (./conftest; exit) 2>/dev/null; then
961     ac_cv_prog_cxx_cross=no
962     else
963     ac_cv_prog_cxx_cross=yes
964     fi
965     else
966     echo "configure: failed program was:" >&5
967     cat conftest.$ac_ext >&5
968     ac_cv_prog_cxx_works=no
969     fi
970     rm -fr conftest*
971     ac_ext=c
972     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
973     ac_cpp='$CPP $CPPFLAGS'
974     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
975     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
976     cross_compiling=$ac_cv_prog_cc_cross
977    
978     echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
979     if test $ac_cv_prog_cxx_works = no; then
980     { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
981     fi
982     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
983 cebix 1.16 echo "configure:984: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
984 cebix 1.1 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
985     cross_compiling=$ac_cv_prog_cxx_cross
986    
987     echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
988 cebix 1.16 echo "configure:989: checking whether we are using GNU C++" >&5
989 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
990     echo $ac_n "(cached) $ac_c" 1>&6
991     else
992     cat > conftest.C <<EOF
993     #ifdef __GNUC__
994     yes;
995     #endif
996     EOF
997 cebix 1.16 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
998 cebix 1.1 ac_cv_prog_gxx=yes
999     else
1000     ac_cv_prog_gxx=no
1001     fi
1002     fi
1003    
1004     echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1005    
1006     if test $ac_cv_prog_gxx = yes; then
1007     GXX=yes
1008     else
1009     GXX=
1010     fi
1011    
1012     ac_test_CXXFLAGS="${CXXFLAGS+set}"
1013     ac_save_CXXFLAGS="$CXXFLAGS"
1014     CXXFLAGS=
1015     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1016 cebix 1.16 echo "configure:1017: checking whether ${CXX-g++} accepts -g" >&5
1017 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1018     echo $ac_n "(cached) $ac_c" 1>&6
1019     else
1020     echo 'void f(){}' > conftest.cc
1021     if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1022     ac_cv_prog_cxx_g=yes
1023     else
1024     ac_cv_prog_cxx_g=no
1025     fi
1026     rm -f conftest*
1027    
1028     fi
1029    
1030     echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1031     if test "$ac_test_CXXFLAGS" = set; then
1032     CXXFLAGS="$ac_save_CXXFLAGS"
1033     elif test $ac_cv_prog_cxx_g = yes; then
1034     if test "$GXX" = yes; then
1035     CXXFLAGS="-g -O2"
1036     else
1037     CXXFLAGS="-g"
1038     fi
1039     else
1040     if test "$GXX" = yes; then
1041     CXXFLAGS="-O2"
1042     else
1043     CXXFLAGS=
1044     fi
1045     fi
1046    
1047     echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1048 cebix 1.16 echo "configure:1049: checking whether ${MAKE-make} sets \${MAKE}" >&5
1049 cebix 1.1 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1050     if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1051     echo $ac_n "(cached) $ac_c" 1>&6
1052     else
1053     cat > conftestmake <<\EOF
1054     all:
1055     @echo 'ac_maketemp="${MAKE}"'
1056     EOF
1057     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1058     eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1059     if test -n "$ac_maketemp"; then
1060     eval ac_cv_prog_make_${ac_make}_set=yes
1061     else
1062     eval ac_cv_prog_make_${ac_make}_set=no
1063     fi
1064     rm -f conftestmake
1065     fi
1066     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1067     echo "$ac_t""yes" 1>&6
1068     SET_MAKE=
1069     else
1070     echo "$ac_t""no" 1>&6
1071     SET_MAKE="MAKE=${MAKE-make}"
1072     fi
1073    
1074     ac_aux_dir=
1075     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1076     if test -f $ac_dir/install-sh; then
1077     ac_aux_dir=$ac_dir
1078     ac_install_sh="$ac_aux_dir/install-sh -c"
1079     break
1080     elif test -f $ac_dir/install.sh; then
1081     ac_aux_dir=$ac_dir
1082     ac_install_sh="$ac_aux_dir/install.sh -c"
1083     break
1084     fi
1085     done
1086     if test -z "$ac_aux_dir"; then
1087     { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1088     fi
1089     ac_config_guess=$ac_aux_dir/config.guess
1090     ac_config_sub=$ac_aux_dir/config.sub
1091     ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1092    
1093     # Find a good install program. We prefer a C program (faster),
1094     # so one script is as good as another. But avoid the broken or
1095     # incompatible versions:
1096     # SysV /etc/install, /usr/sbin/install
1097     # SunOS /usr/etc/install
1098     # IRIX /sbin/install
1099     # AIX /bin/install
1100     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1101     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1102     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1103     # ./install, which can be erroneously created by make from ./install.sh.
1104     echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1105 cebix 1.16 echo "configure:1106: checking for a BSD compatible install" >&5
1106 cebix 1.1 if test -z "$INSTALL"; then
1107     if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1108     echo $ac_n "(cached) $ac_c" 1>&6
1109     else
1110     IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1111     for ac_dir in $PATH; do
1112     # Account for people who put trailing slashes in PATH elements.
1113     case "$ac_dir/" in
1114     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1115     *)
1116     # OSF1 and SCO ODT 3.0 have their own names for install.
1117     # Don't use installbsd from OSF since it installs stuff as root
1118     # by default.
1119     for ac_prog in ginstall scoinst install; do
1120     if test -f $ac_dir/$ac_prog; then
1121     if test $ac_prog = install &&
1122     grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1123     # AIX install. It has an incompatible calling convention.
1124     :
1125     else
1126     ac_cv_path_install="$ac_dir/$ac_prog -c"
1127     break 2
1128     fi
1129     fi
1130     done
1131     ;;
1132     esac
1133     done
1134     IFS="$ac_save_IFS"
1135    
1136     fi
1137     if test "${ac_cv_path_install+set}" = set; then
1138     INSTALL="$ac_cv_path_install"
1139     else
1140     # As a last resort, use the slow shell script. We don't cache a
1141     # path for INSTALL within a source directory, because that will
1142     # break other packages using the cache if that directory is
1143     # removed, or if the path is relative.
1144     INSTALL="$ac_install_sh"
1145     fi
1146     fi
1147     echo "$ac_t""$INSTALL" 1>&6
1148    
1149     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1150     # It thinks the first close brace ends the variable substitution.
1151     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1152    
1153     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1154    
1155     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1156    
1157    
1158 cebix 1.10 MONSRCS=
1159     echo $ac_n "checking for mon""... $ac_c" 1>&6
1160 cebix 1.16 echo "configure:1161: checking for mon" >&5
1161 cebix 1.10 if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then
1162     echo "$ac_t""yes" 1>&6
1163 cebix 1.11 WANT_MON=yes
1164 cebix 1.10 DEFINES="$DEFINES -DENABLE_MON=1"
1165     MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp"
1166     CXXFLAGS="$CXXFLAGS -I../../../mon/src"
1167 cebix 1.13 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1168 cebix 1.16 echo "configure:1169: checking for readline in -lreadline" >&5
1169 cebix 1.13 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1170     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1171     echo $ac_n "(cached) $ac_c" 1>&6
1172     else
1173     ac_save_LIBS="$LIBS"
1174     LIBS="-lreadline $LIBS"
1175     cat > conftest.$ac_ext <<EOF
1176 cebix 1.16 #line 1177 "configure"
1177 cebix 1.13 #include "confdefs.h"
1178     /* Override any gcc2 internal prototype to avoid an error. */
1179     /* We use char because int might match the return type of a gcc2
1180     builtin and then its argument prototype would still apply. */
1181     char readline();
1182    
1183     int main() {
1184     readline()
1185     ; return 0; }
1186     EOF
1187 cebix 1.16 if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188 cebix 1.13 rm -rf conftest*
1189     eval "ac_cv_lib_$ac_lib_var=yes"
1190     else
1191     echo "configure: failed program was:" >&5
1192     cat conftest.$ac_ext >&5
1193     rm -rf conftest*
1194     eval "ac_cv_lib_$ac_lib_var=no"
1195     fi
1196     rm -f conftest*
1197     LIBS="$ac_save_LIBS"
1198    
1199     fi
1200     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1201     echo "$ac_t""yes" 1>&6
1202     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1203     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1204     cat >> confdefs.h <<EOF
1205     #define $ac_tr_lib 1
1206     EOF
1207    
1208     LIBS="-lreadline $LIBS"
1209    
1210     else
1211     echo "$ac_t""no" 1>&6
1212     fi
1213    
1214     for ac_hdr in readline/readline.h readline/history.h
1215     do
1216     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1217     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1218 cebix 1.16 echo "configure:1219: checking for $ac_hdr" >&5
1219 cebix 1.13 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1220     echo $ac_n "(cached) $ac_c" 1>&6
1221     else
1222     cat > conftest.$ac_ext <<EOF
1223 cebix 1.16 #line 1224 "configure"
1224 cebix 1.13 #include "confdefs.h"
1225     #include <$ac_hdr>
1226     EOF
1227     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 cebix 1.16 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 cebix 1.13 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1230     if test -z "$ac_err"; then
1231     rm -rf conftest*
1232     eval "ac_cv_header_$ac_safe=yes"
1233     else
1234     echo "$ac_err" >&5
1235     echo "configure: failed program was:" >&5
1236     cat conftest.$ac_ext >&5
1237     rm -rf conftest*
1238     eval "ac_cv_header_$ac_safe=no"
1239     fi
1240     rm -f conftest*
1241     fi
1242     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1243     echo "$ac_t""yes" 1>&6
1244     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1245     cat >> confdefs.h <<EOF
1246     #define $ac_tr_hdr 1
1247     EOF
1248    
1249     else
1250     echo "$ac_t""no" 1>&6
1251     fi
1252     done
1253    
1254 cebix 1.10 else
1255     echo "$ac_t""no" 1>&6
1256 cebix 1.11 WANT_MON=no
1257 cebix 1.10 DEFINES="$DEFINES -DENABLE_MON=0"
1258     fi
1259    
1260 cebix 1.9 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1261 cebix 1.16 echo "configure:1262: checking for sem_init in -lposix4" >&5
1262 cebix 1.9 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1263     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264     echo $ac_n "(cached) $ac_c" 1>&6
1265     else
1266     ac_save_LIBS="$LIBS"
1267     LIBS="-lposix4 $LIBS"
1268     cat > conftest.$ac_ext <<EOF
1269 cebix 1.16 #line 1270 "configure"
1270 cebix 1.9 #include "confdefs.h"
1271     /* Override any gcc2 internal prototype to avoid an error. */
1272     /* We use char because int might match the return type of a gcc2
1273     builtin and then its argument prototype would still apply. */
1274     char sem_init();
1275    
1276     int main() {
1277     sem_init()
1278     ; return 0; }
1279     EOF
1280 cebix 1.16 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1281 cebix 1.9 rm -rf conftest*
1282     eval "ac_cv_lib_$ac_lib_var=yes"
1283     else
1284     echo "configure: failed program was:" >&5
1285     cat conftest.$ac_ext >&5
1286     rm -rf conftest*
1287     eval "ac_cv_lib_$ac_lib_var=no"
1288     fi
1289     rm -f conftest*
1290     LIBS="$ac_save_LIBS"
1291    
1292     fi
1293     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294     echo "$ac_t""yes" 1>&6
1295     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1296     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1297     cat >> confdefs.h <<EOF
1298     #define $ac_tr_lib 1
1299     EOF
1300    
1301     LIBS="-lposix4 $LIBS"
1302    
1303     else
1304     echo "$ac_t""no" 1>&6
1305     fi
1306    
1307    
1308 cebix 1.1 # If we find X, set shell vars x_includes and x_libraries to the
1309     # paths, otherwise set no_x=yes.
1310     # Uses ac_ vars as temps to allow command line to override cache and checks.
1311     # --without-x overrides everything else, but does not touch the cache.
1312     echo $ac_n "checking for X""... $ac_c" 1>&6
1313 cebix 1.16 echo "configure:1314: checking for X" >&5
1314 cebix 1.1
1315     # Check whether --with-x or --without-x was given.
1316     if test "${with_x+set}" = set; then
1317     withval="$with_x"
1318     :
1319     fi
1320    
1321     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1322     if test "x$with_x" = xno; then
1323     # The user explicitly disabled X.
1324     have_x=disabled
1325     else
1326     if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1327     # Both variables are already set.
1328     have_x=yes
1329     else
1330     if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1331     echo $ac_n "(cached) $ac_c" 1>&6
1332     else
1333     # One or both of the vars are not set, and there is no cached value.
1334     ac_x_includes=NO ac_x_libraries=NO
1335     rm -fr conftestdir
1336     if mkdir conftestdir; then
1337     cd conftestdir
1338     # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1339     cat > Imakefile <<'EOF'
1340     acfindx:
1341     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1342     EOF
1343     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1344     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1345     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1346     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1347     for ac_extension in a so sl; do
1348     if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1349     test -f $ac_im_libdir/libX11.$ac_extension; then
1350     ac_im_usrlibdir=$ac_im_libdir; break
1351     fi
1352     done
1353     # Screen out bogus values from the imake configuration. They are
1354     # bogus both because they are the default anyway, and because
1355     # using them would break gcc on systems where it needs fixed includes.
1356     case "$ac_im_incroot" in
1357     /usr/include) ;;
1358     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1359     esac
1360     case "$ac_im_usrlibdir" in
1361     /usr/lib | /lib) ;;
1362     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1363     esac
1364     fi
1365     cd ..
1366     rm -fr conftestdir
1367     fi
1368    
1369     if test "$ac_x_includes" = NO; then
1370     # Guess where to find include files, by looking for this one X11 .h file.
1371     test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1372    
1373     # First, try using that file with no special directory specified.
1374     cat > conftest.$ac_ext <<EOF
1375 cebix 1.16 #line 1376 "configure"
1376 cebix 1.1 #include "confdefs.h"
1377     #include <$x_direct_test_include>
1378     EOF
1379     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1380 cebix 1.16 { (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1381 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1382     if test -z "$ac_err"; then
1383     rm -rf conftest*
1384     # We can compile using X headers with no special include directory.
1385     ac_x_includes=
1386     else
1387     echo "$ac_err" >&5
1388     echo "configure: failed program was:" >&5
1389     cat conftest.$ac_ext >&5
1390     rm -rf conftest*
1391     # Look for the header file in a standard set of common directories.
1392     # Check X11 before X11Rn because it is often a symlink to the current release.
1393     for ac_dir in \
1394     /usr/X11/include \
1395     /usr/X11R6/include \
1396     /usr/X11R5/include \
1397     /usr/X11R4/include \
1398     \
1399     /usr/include/X11 \
1400     /usr/include/X11R6 \
1401     /usr/include/X11R5 \
1402     /usr/include/X11R4 \
1403     \
1404     /usr/local/X11/include \
1405     /usr/local/X11R6/include \
1406     /usr/local/X11R5/include \
1407     /usr/local/X11R4/include \
1408     \
1409     /usr/local/include/X11 \
1410     /usr/local/include/X11R6 \
1411     /usr/local/include/X11R5 \
1412     /usr/local/include/X11R4 \
1413     \
1414     /usr/X386/include \
1415     /usr/x386/include \
1416     /usr/XFree86/include/X11 \
1417     \
1418     /usr/include \
1419     /usr/local/include \
1420     /usr/unsupported/include \
1421     /usr/athena/include \
1422     /usr/local/x11r5/include \
1423     /usr/lpp/Xamples/include \
1424     \
1425     /usr/openwin/include \
1426     /usr/openwin/share/include \
1427     ; \
1428     do
1429     if test -r "$ac_dir/$x_direct_test_include"; then
1430     ac_x_includes=$ac_dir
1431     break
1432     fi
1433     done
1434     fi
1435     rm -f conftest*
1436     fi # $ac_x_includes = NO
1437    
1438     if test "$ac_x_libraries" = NO; then
1439     # Check for the libraries.
1440    
1441     test -z "$x_direct_test_library" && x_direct_test_library=Xt
1442     test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1443    
1444     # See if we find them without any special options.
1445     # Don't add to $LIBS permanently.
1446     ac_save_LIBS="$LIBS"
1447     LIBS="-l$x_direct_test_library $LIBS"
1448     cat > conftest.$ac_ext <<EOF
1449 cebix 1.16 #line 1450 "configure"
1450 cebix 1.1 #include "confdefs.h"
1451    
1452     int main() {
1453     ${x_direct_test_function}()
1454     ; return 0; }
1455     EOF
1456 cebix 1.16 if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1457 cebix 1.1 rm -rf conftest*
1458     LIBS="$ac_save_LIBS"
1459     # We can link X programs with no special library path.
1460     ac_x_libraries=
1461     else
1462     echo "configure: failed program was:" >&5
1463     cat conftest.$ac_ext >&5
1464     rm -rf conftest*
1465     LIBS="$ac_save_LIBS"
1466     # First see if replacing the include by lib works.
1467     # Check X11 before X11Rn because it is often a symlink to the current release.
1468     for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1469     /usr/X11/lib \
1470     /usr/X11R6/lib \
1471     /usr/X11R5/lib \
1472     /usr/X11R4/lib \
1473     \
1474     /usr/lib/X11 \
1475     /usr/lib/X11R6 \
1476     /usr/lib/X11R5 \
1477     /usr/lib/X11R4 \
1478     \
1479     /usr/local/X11/lib \
1480     /usr/local/X11R6/lib \
1481     /usr/local/X11R5/lib \
1482     /usr/local/X11R4/lib \
1483     \
1484     /usr/local/lib/X11 \
1485     /usr/local/lib/X11R6 \
1486     /usr/local/lib/X11R5 \
1487     /usr/local/lib/X11R4 \
1488     \
1489     /usr/X386/lib \
1490     /usr/x386/lib \
1491     /usr/XFree86/lib/X11 \
1492     \
1493     /usr/lib \
1494     /usr/local/lib \
1495     /usr/unsupported/lib \
1496     /usr/athena/lib \
1497     /usr/local/x11r5/lib \
1498     /usr/lpp/Xamples/lib \
1499     /lib/usr/lib/X11 \
1500     \
1501     /usr/openwin/lib \
1502     /usr/openwin/share/lib \
1503     ; \
1504     do
1505     for ac_extension in a so sl; do
1506     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1507     ac_x_libraries=$ac_dir
1508     break 2
1509     fi
1510     done
1511     done
1512     fi
1513     rm -f conftest*
1514     fi # $ac_x_libraries = NO
1515    
1516     if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1517     # Didn't find X anywhere. Cache the known absence of X.
1518     ac_cv_have_x="have_x=no"
1519     else
1520     # Record where we found X for the cache.
1521     ac_cv_have_x="have_x=yes \
1522     ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1523     fi
1524     fi
1525     fi
1526     eval "$ac_cv_have_x"
1527     fi # $with_x != no
1528    
1529     if test "$have_x" != yes; then
1530     echo "$ac_t""$have_x" 1>&6
1531     no_x=yes
1532     else
1533     # If each of the values was on the command line, it overrides each guess.
1534     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1535     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1536     # Update the cache value to reflect the command line values.
1537     ac_cv_have_x="have_x=yes \
1538     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1539     echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1540     fi
1541    
1542     if test "$no_x" = yes; then
1543     # Not all programs may use this symbol, but it does not hurt to define it.
1544     cat >> confdefs.h <<\EOF
1545     #define X_DISPLAY_MISSING 1
1546     EOF
1547    
1548     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1549     else
1550     if test -n "$x_includes"; then
1551     X_CFLAGS="$X_CFLAGS -I$x_includes"
1552     fi
1553    
1554     # It would also be nice to do this for all -L options, not just this one.
1555     if test -n "$x_libraries"; then
1556     X_LIBS="$X_LIBS -L$x_libraries"
1557     # For Solaris; some versions of Sun CC require a space after -R and
1558     # others require no space. Words are not sufficient . . . .
1559     case "`(uname -sr) 2>/dev/null`" in
1560     "SunOS 5"*)
1561     echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1562 cebix 1.16 echo "configure:1563: checking whether -R must be followed by a space" >&5
1563 cebix 1.1 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1564     cat > conftest.$ac_ext <<EOF
1565 cebix 1.16 #line 1566 "configure"
1566 cebix 1.1 #include "confdefs.h"
1567    
1568     int main() {
1569    
1570     ; return 0; }
1571     EOF
1572 cebix 1.16 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1573 cebix 1.1 rm -rf conftest*
1574     ac_R_nospace=yes
1575     else
1576     echo "configure: failed program was:" >&5
1577     cat conftest.$ac_ext >&5
1578     rm -rf conftest*
1579     ac_R_nospace=no
1580     fi
1581     rm -f conftest*
1582     if test $ac_R_nospace = yes; then
1583     echo "$ac_t""no" 1>&6
1584     X_LIBS="$X_LIBS -R$x_libraries"
1585     else
1586     LIBS="$ac_xsave_LIBS -R $x_libraries"
1587     cat > conftest.$ac_ext <<EOF
1588 cebix 1.16 #line 1589 "configure"
1589 cebix 1.1 #include "confdefs.h"
1590    
1591     int main() {
1592    
1593     ; return 0; }
1594     EOF
1595 cebix 1.16 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1596 cebix 1.1 rm -rf conftest*
1597     ac_R_space=yes
1598     else
1599     echo "configure: failed program was:" >&5
1600     cat conftest.$ac_ext >&5
1601     rm -rf conftest*
1602     ac_R_space=no
1603     fi
1604     rm -f conftest*
1605     if test $ac_R_space = yes; then
1606     echo "$ac_t""yes" 1>&6
1607     X_LIBS="$X_LIBS -R $x_libraries"
1608     else
1609     echo "$ac_t""neither works" 1>&6
1610     fi
1611     fi
1612     LIBS="$ac_xsave_LIBS"
1613     esac
1614     fi
1615    
1616     # Check for system-dependent libraries X programs must link with.
1617     # Do this before checking for the system-independent R6 libraries
1618     # (-lICE), since we may need -lsocket or whatever for X linking.
1619    
1620     if test "$ISC" = yes; then
1621     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1622     else
1623     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1624     # libraries were built with DECnet support. And karl@cs.umb.edu says
1625     # the Alpha needs dnet_stub (dnet does not exist).
1626     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1627 cebix 1.16 echo "configure:1628: checking for dnet_ntoa in -ldnet" >&5
1628 cebix 1.1 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1629     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1630     echo $ac_n "(cached) $ac_c" 1>&6
1631     else
1632     ac_save_LIBS="$LIBS"
1633     LIBS="-ldnet $LIBS"
1634     cat > conftest.$ac_ext <<EOF
1635 cebix 1.16 #line 1636 "configure"
1636 cebix 1.1 #include "confdefs.h"
1637     /* Override any gcc2 internal prototype to avoid an error. */
1638     /* We use char because int might match the return type of a gcc2
1639     builtin and then its argument prototype would still apply. */
1640     char dnet_ntoa();
1641    
1642     int main() {
1643     dnet_ntoa()
1644     ; return 0; }
1645     EOF
1646 cebix 1.16 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1647 cebix 1.1 rm -rf conftest*
1648     eval "ac_cv_lib_$ac_lib_var=yes"
1649     else
1650     echo "configure: failed program was:" >&5
1651     cat conftest.$ac_ext >&5
1652     rm -rf conftest*
1653     eval "ac_cv_lib_$ac_lib_var=no"
1654     fi
1655     rm -f conftest*
1656     LIBS="$ac_save_LIBS"
1657    
1658     fi
1659     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1660     echo "$ac_t""yes" 1>&6
1661     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1662     else
1663     echo "$ac_t""no" 1>&6
1664     fi
1665    
1666     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1667     echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1668 cebix 1.16 echo "configure:1669: checking for dnet_ntoa in -ldnet_stub" >&5
1669 cebix 1.1 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1670     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1671     echo $ac_n "(cached) $ac_c" 1>&6
1672     else
1673     ac_save_LIBS="$LIBS"
1674     LIBS="-ldnet_stub $LIBS"
1675     cat > conftest.$ac_ext <<EOF
1676 cebix 1.16 #line 1677 "configure"
1677 cebix 1.1 #include "confdefs.h"
1678     /* Override any gcc2 internal prototype to avoid an error. */
1679     /* We use char because int might match the return type of a gcc2
1680     builtin and then its argument prototype would still apply. */
1681     char dnet_ntoa();
1682    
1683     int main() {
1684     dnet_ntoa()
1685     ; return 0; }
1686     EOF
1687 cebix 1.16 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1688 cebix 1.1 rm -rf conftest*
1689     eval "ac_cv_lib_$ac_lib_var=yes"
1690     else
1691     echo "configure: failed program was:" >&5
1692     cat conftest.$ac_ext >&5
1693     rm -rf conftest*
1694     eval "ac_cv_lib_$ac_lib_var=no"
1695     fi
1696     rm -f conftest*
1697     LIBS="$ac_save_LIBS"
1698    
1699     fi
1700     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1701     echo "$ac_t""yes" 1>&6
1702     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1703     else
1704     echo "$ac_t""no" 1>&6
1705     fi
1706    
1707     fi
1708    
1709     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1710     # to get the SysV transport functions.
1711     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1712     # needs -lnsl.
1713     # The nsl library prevents programs from opening the X display
1714     # on Irix 5.2, according to dickey@clark.net.
1715     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1716 cebix 1.16 echo "configure:1717: checking for gethostbyname" >&5
1717 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1718     echo $ac_n "(cached) $ac_c" 1>&6
1719     else
1720     cat > conftest.$ac_ext <<EOF
1721 cebix 1.16 #line 1722 "configure"
1722 cebix 1.1 #include "confdefs.h"
1723     /* System header to define __stub macros and hopefully few prototypes,
1724     which can conflict with char gethostbyname(); below. */
1725     #include <assert.h>
1726     /* Override any gcc2 internal prototype to avoid an error. */
1727     /* We use char because int might match the return type of a gcc2
1728     builtin and then its argument prototype would still apply. */
1729     char gethostbyname();
1730    
1731     int main() {
1732    
1733     /* The GNU C library defines this for functions which it implements
1734     to always fail with ENOSYS. Some functions are actually named
1735     something starting with __ and the normal name is an alias. */
1736     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1737     choke me
1738     #else
1739     gethostbyname();
1740     #endif
1741    
1742     ; return 0; }
1743     EOF
1744 cebix 1.16 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1745 cebix 1.1 rm -rf conftest*
1746     eval "ac_cv_func_gethostbyname=yes"
1747     else
1748     echo "configure: failed program was:" >&5
1749     cat conftest.$ac_ext >&5
1750     rm -rf conftest*
1751     eval "ac_cv_func_gethostbyname=no"
1752     fi
1753     rm -f conftest*
1754     fi
1755    
1756     if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1757     echo "$ac_t""yes" 1>&6
1758     :
1759     else
1760     echo "$ac_t""no" 1>&6
1761     fi
1762    
1763     if test $ac_cv_func_gethostbyname = no; then
1764     echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1765 cebix 1.16 echo "configure:1766: checking for gethostbyname in -lnsl" >&5
1766 cebix 1.1 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1767     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1768     echo $ac_n "(cached) $ac_c" 1>&6
1769     else
1770     ac_save_LIBS="$LIBS"
1771     LIBS="-lnsl $LIBS"
1772     cat > conftest.$ac_ext <<EOF
1773 cebix 1.16 #line 1774 "configure"
1774 cebix 1.1 #include "confdefs.h"
1775     /* Override any gcc2 internal prototype to avoid an error. */
1776     /* We use char because int might match the return type of a gcc2
1777     builtin and then its argument prototype would still apply. */
1778     char gethostbyname();
1779    
1780     int main() {
1781     gethostbyname()
1782     ; return 0; }
1783     EOF
1784 cebix 1.16 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785 cebix 1.1 rm -rf conftest*
1786     eval "ac_cv_lib_$ac_lib_var=yes"
1787     else
1788     echo "configure: failed program was:" >&5
1789     cat conftest.$ac_ext >&5
1790     rm -rf conftest*
1791     eval "ac_cv_lib_$ac_lib_var=no"
1792     fi
1793     rm -f conftest*
1794     LIBS="$ac_save_LIBS"
1795    
1796     fi
1797     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1798     echo "$ac_t""yes" 1>&6
1799     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1800     else
1801     echo "$ac_t""no" 1>&6
1802     fi
1803    
1804     fi
1805    
1806     # lieder@skyler.mavd.honeywell.com says without -lsocket,
1807     # socket/setsockopt and other routines are undefined under SCO ODT
1808     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1809     # on later versions), says simon@lia.di.epfl.ch: it contains
1810     # gethostby* variants that don't use the nameserver (or something).
1811     # -lsocket must be given before -lnsl if both are needed.
1812     # We assume that if connect needs -lnsl, so does gethostbyname.
1813     echo $ac_n "checking for connect""... $ac_c" 1>&6
1814 cebix 1.16 echo "configure:1815: checking for connect" >&5
1815 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1816     echo $ac_n "(cached) $ac_c" 1>&6
1817     else
1818     cat > conftest.$ac_ext <<EOF
1819 cebix 1.16 #line 1820 "configure"
1820 cebix 1.1 #include "confdefs.h"
1821     /* System header to define __stub macros and hopefully few prototypes,
1822     which can conflict with char connect(); below. */
1823     #include <assert.h>
1824     /* Override any gcc2 internal prototype to avoid an error. */
1825     /* We use char because int might match the return type of a gcc2
1826     builtin and then its argument prototype would still apply. */
1827     char connect();
1828    
1829     int main() {
1830    
1831     /* The GNU C library defines this for functions which it implements
1832     to always fail with ENOSYS. Some functions are actually named
1833     something starting with __ and the normal name is an alias. */
1834     #if defined (__stub_connect) || defined (__stub___connect)
1835     choke me
1836     #else
1837     connect();
1838     #endif
1839    
1840     ; return 0; }
1841     EOF
1842 cebix 1.16 if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1843 cebix 1.1 rm -rf conftest*
1844     eval "ac_cv_func_connect=yes"
1845     else
1846     echo "configure: failed program was:" >&5
1847     cat conftest.$ac_ext >&5
1848     rm -rf conftest*
1849     eval "ac_cv_func_connect=no"
1850     fi
1851     rm -f conftest*
1852     fi
1853    
1854     if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1855     echo "$ac_t""yes" 1>&6
1856     :
1857     else
1858     echo "$ac_t""no" 1>&6
1859     fi
1860    
1861     if test $ac_cv_func_connect = no; then
1862     echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1863 cebix 1.16 echo "configure:1864: checking for connect in -lsocket" >&5
1864 cebix 1.1 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1865     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1866     echo $ac_n "(cached) $ac_c" 1>&6
1867     else
1868     ac_save_LIBS="$LIBS"
1869     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1870     cat > conftest.$ac_ext <<EOF
1871 cebix 1.16 #line 1872 "configure"
1872 cebix 1.1 #include "confdefs.h"
1873     /* Override any gcc2 internal prototype to avoid an error. */
1874     /* We use char because int might match the return type of a gcc2
1875     builtin and then its argument prototype would still apply. */
1876     char connect();
1877    
1878     int main() {
1879     connect()
1880     ; return 0; }
1881     EOF
1882 cebix 1.16 if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1883 cebix 1.1 rm -rf conftest*
1884     eval "ac_cv_lib_$ac_lib_var=yes"
1885     else
1886     echo "configure: failed program was:" >&5
1887     cat conftest.$ac_ext >&5
1888     rm -rf conftest*
1889     eval "ac_cv_lib_$ac_lib_var=no"
1890     fi
1891     rm -f conftest*
1892     LIBS="$ac_save_LIBS"
1893    
1894     fi
1895     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1896     echo "$ac_t""yes" 1>&6
1897     X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1898     else
1899     echo "$ac_t""no" 1>&6
1900     fi
1901    
1902     fi
1903    
1904     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1905     echo $ac_n "checking for remove""... $ac_c" 1>&6
1906 cebix 1.16 echo "configure:1907: checking for remove" >&5
1907 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1908     echo $ac_n "(cached) $ac_c" 1>&6
1909     else
1910     cat > conftest.$ac_ext <<EOF
1911 cebix 1.16 #line 1912 "configure"
1912 cebix 1.1 #include "confdefs.h"
1913     /* System header to define __stub macros and hopefully few prototypes,
1914     which can conflict with char remove(); below. */
1915     #include <assert.h>
1916     /* Override any gcc2 internal prototype to avoid an error. */
1917     /* We use char because int might match the return type of a gcc2
1918     builtin and then its argument prototype would still apply. */
1919     char remove();
1920    
1921     int main() {
1922    
1923     /* The GNU C library defines this for functions which it implements
1924     to always fail with ENOSYS. Some functions are actually named
1925     something starting with __ and the normal name is an alias. */
1926     #if defined (__stub_remove) || defined (__stub___remove)
1927     choke me
1928     #else
1929     remove();
1930     #endif
1931    
1932     ; return 0; }
1933     EOF
1934 cebix 1.16 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1935 cebix 1.1 rm -rf conftest*
1936     eval "ac_cv_func_remove=yes"
1937     else
1938     echo "configure: failed program was:" >&5
1939     cat conftest.$ac_ext >&5
1940     rm -rf conftest*
1941     eval "ac_cv_func_remove=no"
1942     fi
1943     rm -f conftest*
1944     fi
1945    
1946     if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1947     echo "$ac_t""yes" 1>&6
1948     :
1949     else
1950     echo "$ac_t""no" 1>&6
1951     fi
1952    
1953     if test $ac_cv_func_remove = no; then
1954     echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1955 cebix 1.16 echo "configure:1956: checking for remove in -lposix" >&5
1956 cebix 1.1 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1957     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958     echo $ac_n "(cached) $ac_c" 1>&6
1959     else
1960     ac_save_LIBS="$LIBS"
1961     LIBS="-lposix $LIBS"
1962     cat > conftest.$ac_ext <<EOF
1963 cebix 1.16 #line 1964 "configure"
1964 cebix 1.1 #include "confdefs.h"
1965     /* Override any gcc2 internal prototype to avoid an error. */
1966     /* We use char because int might match the return type of a gcc2
1967     builtin and then its argument prototype would still apply. */
1968     char remove();
1969    
1970     int main() {
1971     remove()
1972     ; return 0; }
1973     EOF
1974 cebix 1.16 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1975 cebix 1.1 rm -rf conftest*
1976     eval "ac_cv_lib_$ac_lib_var=yes"
1977     else
1978     echo "configure: failed program was:" >&5
1979     cat conftest.$ac_ext >&5
1980     rm -rf conftest*
1981     eval "ac_cv_lib_$ac_lib_var=no"
1982     fi
1983     rm -f conftest*
1984     LIBS="$ac_save_LIBS"
1985    
1986     fi
1987     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988     echo "$ac_t""yes" 1>&6
1989     X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1990     else
1991     echo "$ac_t""no" 1>&6
1992     fi
1993    
1994     fi
1995    
1996     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1997     echo $ac_n "checking for shmat""... $ac_c" 1>&6
1998 cebix 1.16 echo "configure:1999: checking for shmat" >&5
1999 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2000     echo $ac_n "(cached) $ac_c" 1>&6
2001     else
2002     cat > conftest.$ac_ext <<EOF
2003 cebix 1.16 #line 2004 "configure"
2004 cebix 1.1 #include "confdefs.h"
2005     /* System header to define __stub macros and hopefully few prototypes,
2006     which can conflict with char shmat(); below. */
2007     #include <assert.h>
2008     /* Override any gcc2 internal prototype to avoid an error. */
2009     /* We use char because int might match the return type of a gcc2
2010     builtin and then its argument prototype would still apply. */
2011     char shmat();
2012    
2013     int main() {
2014    
2015     /* The GNU C library defines this for functions which it implements
2016     to always fail with ENOSYS. Some functions are actually named
2017     something starting with __ and the normal name is an alias. */
2018     #if defined (__stub_shmat) || defined (__stub___shmat)
2019     choke me
2020     #else
2021     shmat();
2022     #endif
2023    
2024     ; return 0; }
2025     EOF
2026 cebix 1.16 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027 cebix 1.1 rm -rf conftest*
2028     eval "ac_cv_func_shmat=yes"
2029     else
2030     echo "configure: failed program was:" >&5
2031     cat conftest.$ac_ext >&5
2032     rm -rf conftest*
2033     eval "ac_cv_func_shmat=no"
2034     fi
2035     rm -f conftest*
2036     fi
2037    
2038     if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2039     echo "$ac_t""yes" 1>&6
2040     :
2041     else
2042     echo "$ac_t""no" 1>&6
2043     fi
2044    
2045     if test $ac_cv_func_shmat = no; then
2046     echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2047 cebix 1.16 echo "configure:2048: checking for shmat in -lipc" >&5
2048 cebix 1.1 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2049     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2050     echo $ac_n "(cached) $ac_c" 1>&6
2051     else
2052     ac_save_LIBS="$LIBS"
2053     LIBS="-lipc $LIBS"
2054     cat > conftest.$ac_ext <<EOF
2055 cebix 1.16 #line 2056 "configure"
2056 cebix 1.1 #include "confdefs.h"
2057     /* Override any gcc2 internal prototype to avoid an error. */
2058     /* We use char because int might match the return type of a gcc2
2059     builtin and then its argument prototype would still apply. */
2060     char shmat();
2061    
2062     int main() {
2063     shmat()
2064     ; return 0; }
2065     EOF
2066 cebix 1.16 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2067 cebix 1.1 rm -rf conftest*
2068     eval "ac_cv_lib_$ac_lib_var=yes"
2069     else
2070     echo "configure: failed program was:" >&5
2071     cat conftest.$ac_ext >&5
2072     rm -rf conftest*
2073     eval "ac_cv_lib_$ac_lib_var=no"
2074     fi
2075     rm -f conftest*
2076     LIBS="$ac_save_LIBS"
2077    
2078     fi
2079     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2080     echo "$ac_t""yes" 1>&6
2081     X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2082     else
2083     echo "$ac_t""no" 1>&6
2084     fi
2085    
2086     fi
2087     fi
2088    
2089     # Check for libraries that X11R6 Xt/Xaw programs need.
2090     ac_save_LDFLAGS="$LDFLAGS"
2091     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2092     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2093     # check for ICE first), but we must link in the order -lSM -lICE or
2094     # we get undefined symbols. So assume we have SM if we have ICE.
2095     # These have to be linked with before -lX11, unlike the other
2096     # libraries we check for below, so use a different variable.
2097     # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2098     echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2099 cebix 1.16 echo "configure:2100: checking for IceConnectionNumber in -lICE" >&5
2100 cebix 1.1 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2101     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2102     echo $ac_n "(cached) $ac_c" 1>&6
2103     else
2104     ac_save_LIBS="$LIBS"
2105     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2106     cat > conftest.$ac_ext <<EOF
2107 cebix 1.16 #line 2108 "configure"
2108 cebix 1.1 #include "confdefs.h"
2109     /* Override any gcc2 internal prototype to avoid an error. */
2110     /* We use char because int might match the return type of a gcc2
2111     builtin and then its argument prototype would still apply. */
2112     char IceConnectionNumber();
2113    
2114     int main() {
2115     IceConnectionNumber()
2116     ; return 0; }
2117     EOF
2118 cebix 1.16 if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2119 cebix 1.1 rm -rf conftest*
2120     eval "ac_cv_lib_$ac_lib_var=yes"
2121     else
2122     echo "configure: failed program was:" >&5
2123     cat conftest.$ac_ext >&5
2124     rm -rf conftest*
2125     eval "ac_cv_lib_$ac_lib_var=no"
2126     fi
2127     rm -f conftest*
2128     LIBS="$ac_save_LIBS"
2129    
2130     fi
2131     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2132     echo "$ac_t""yes" 1>&6
2133     X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2134     else
2135     echo "$ac_t""no" 1>&6
2136     fi
2137    
2138     LDFLAGS="$ac_save_LDFLAGS"
2139    
2140     fi
2141    
2142     if [ "x$no_x" = "xyes" ]; then
2143     { echo "configure: error: You need X11 to run Basilisk II." 1>&2; exit 1; }
2144     fi
2145     CFLAGS="$CFLAGS $X_CFLAGS"
2146     CXXFLAGS="$CXXFLAGS $X_CFLAGS"
2147     LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
2148    
2149     echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2150 cebix 1.16 echo "configure:2151: checking for pthread_create in -lpthread" >&5
2151 cebix 1.1 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2152     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2153     echo $ac_n "(cached) $ac_c" 1>&6
2154     else
2155     ac_save_LIBS="$LIBS"
2156     LIBS="-lpthread $LIBS"
2157     cat > conftest.$ac_ext <<EOF
2158 cebix 1.16 #line 2159 "configure"
2159 cebix 1.1 #include "confdefs.h"
2160     /* Override any gcc2 internal prototype to avoid an error. */
2161     /* We use char because int might match the return type of a gcc2
2162     builtin and then its argument prototype would still apply. */
2163     char pthread_create();
2164    
2165     int main() {
2166     pthread_create()
2167     ; return 0; }
2168     EOF
2169 cebix 1.16 if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2170 cebix 1.1 rm -rf conftest*
2171     eval "ac_cv_lib_$ac_lib_var=yes"
2172     else
2173     echo "configure: failed program was:" >&5
2174     cat conftest.$ac_ext >&5
2175     rm -rf conftest*
2176     eval "ac_cv_lib_$ac_lib_var=no"
2177     fi
2178     rm -f conftest*
2179     LIBS="$ac_save_LIBS"
2180    
2181     fi
2182     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2183     echo "$ac_t""yes" 1>&6
2184 cebix 1.9 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2185     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2186     cat >> confdefs.h <<EOF
2187     #define $ac_tr_lib 1
2188     EOF
2189    
2190     LIBS="-lpthread $LIBS"
2191    
2192 cebix 1.1 else
2193     echo "$ac_t""no" 1>&6
2194    
2195 cebix 1.9 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2196 cebix 1.16 echo "configure:2197: checking for pthread_create in -lc_r" >&5
2197 cebix 1.1 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2198     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2199     echo $ac_n "(cached) $ac_c" 1>&6
2200     else
2201     ac_save_LIBS="$LIBS"
2202     LIBS="-lc_r $LIBS"
2203     cat > conftest.$ac_ext <<EOF
2204 cebix 1.16 #line 2205 "configure"
2205 cebix 1.1 #include "confdefs.h"
2206     /* Override any gcc2 internal prototype to avoid an error. */
2207     /* We use char because int might match the return type of a gcc2
2208     builtin and then its argument prototype would still apply. */
2209     char pthread_create();
2210    
2211     int main() {
2212     pthread_create()
2213     ; return 0; }
2214     EOF
2215 cebix 1.16 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2216 cebix 1.1 rm -rf conftest*
2217     eval "ac_cv_lib_$ac_lib_var=yes"
2218     else
2219     echo "configure: failed program was:" >&5
2220     cat conftest.$ac_ext >&5
2221     rm -rf conftest*
2222     eval "ac_cv_lib_$ac_lib_var=no"
2223     fi
2224     rm -f conftest*
2225     LIBS="$ac_save_LIBS"
2226    
2227     fi
2228     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2229     echo "$ac_t""yes" 1>&6
2230 cebix 1.9 ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2231     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2232     cat >> confdefs.h <<EOF
2233     #define $ac_tr_lib 1
2234     EOF
2235    
2236     LIBS="-lc_r $LIBS"
2237    
2238 cebix 1.1 else
2239     echo "$ac_t""no" 1>&6
2240    
2241 cebix 1.9 echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6
2242 cebix 1.16 echo "configure:2243: checking for pthread_create in -lPTL" >&5
2243 cebix 1.5 ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'`
2244     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245     echo $ac_n "(cached) $ac_c" 1>&6
2246     else
2247     ac_save_LIBS="$LIBS"
2248     LIBS="-lPTL $LIBS"
2249     cat > conftest.$ac_ext <<EOF
2250 cebix 1.16 #line 2251 "configure"
2251 cebix 1.5 #include "confdefs.h"
2252     /* Override any gcc2 internal prototype to avoid an error. */
2253     /* We use char because int might match the return type of a gcc2
2254     builtin and then its argument prototype would still apply. */
2255     char pthread_create();
2256    
2257     int main() {
2258     pthread_create()
2259     ; return 0; }
2260     EOF
2261 cebix 1.16 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 cebix 1.5 rm -rf conftest*
2263     eval "ac_cv_lib_$ac_lib_var=yes"
2264     else
2265     echo "configure: failed program was:" >&5
2266     cat conftest.$ac_ext >&5
2267     rm -rf conftest*
2268     eval "ac_cv_lib_$ac_lib_var=no"
2269     fi
2270     rm -f conftest*
2271     LIBS="$ac_save_LIBS"
2272    
2273     fi
2274     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275     echo "$ac_t""yes" 1>&6
2276 cebix 1.9 ac_tr_lib=HAVE_LIB`echo PTL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278     cat >> confdefs.h <<EOF
2279     #define $ac_tr_lib 1
2280     EOF
2281    
2282     LIBS="-lPTL $LIBS"
2283    
2284 cebix 1.5 else
2285     echo "$ac_t""no" 1>&6
2286 cebix 1.9
2287     { echo "configure: error: You need pthreads to run Basilisk II." 1>&2; exit 1; }
2288    
2289 cebix 1.5 fi
2290    
2291 cebix 1.9
2292     fi
2293    
2294    
2295 cebix 1.1 fi
2296 cebix 1.9
2297    
2298     SEMSRCS=
2299     for ac_func in sem_init
2300 cebix 1.1 do
2301     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2302 cebix 1.16 echo "configure:2303: checking for $ac_func" >&5
2303 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2304     echo $ac_n "(cached) $ac_c" 1>&6
2305     else
2306     cat > conftest.$ac_ext <<EOF
2307 cebix 1.16 #line 2308 "configure"
2308 cebix 1.1 #include "confdefs.h"
2309     /* System header to define __stub macros and hopefully few prototypes,
2310     which can conflict with char $ac_func(); below. */
2311     #include <assert.h>
2312     /* Override any gcc2 internal prototype to avoid an error. */
2313     /* We use char because int might match the return type of a gcc2
2314     builtin and then its argument prototype would still apply. */
2315     char $ac_func();
2316    
2317     int main() {
2318    
2319     /* The GNU C library defines this for functions which it implements
2320     to always fail with ENOSYS. Some functions are actually named
2321     something starting with __ and the normal name is an alias. */
2322     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2323     choke me
2324     #else
2325     $ac_func();
2326     #endif
2327    
2328     ; return 0; }
2329     EOF
2330 cebix 1.16 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2331 cebix 1.1 rm -rf conftest*
2332     eval "ac_cv_func_$ac_func=yes"
2333     else
2334     echo "configure: failed program was:" >&5
2335     cat conftest.$ac_ext >&5
2336     rm -rf conftest*
2337     eval "ac_cv_func_$ac_func=no"
2338     fi
2339     rm -f conftest*
2340     fi
2341    
2342     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2343     echo "$ac_t""yes" 1>&6
2344     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2345     cat >> confdefs.h <<EOF
2346     #define $ac_tr_func 1
2347     EOF
2348    
2349     else
2350     echo "$ac_t""no" 1>&6
2351 cebix 1.9 SEMSRCS=posix_sem.cpp
2352    
2353 cebix 1.1 fi
2354     done
2355    
2356    
2357 cebix 1.7 if [ "x$WANT_XF86_DGA" = "xyes" ]; then
2358 cebix 1.1 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2359 cebix 1.16 echo "configure:2360: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2360 cebix 1.1 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2361     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2362     echo $ac_n "(cached) $ac_c" 1>&6
2363     else
2364     ac_save_LIBS="$LIBS"
2365     LIBS="-lXxf86dga $LIBS"
2366     cat > conftest.$ac_ext <<EOF
2367 cebix 1.16 #line 2368 "configure"
2368 cebix 1.1 #include "confdefs.h"
2369     /* Override any gcc2 internal prototype to avoid an error. */
2370     /* We use char because int might match the return type of a gcc2
2371     builtin and then its argument prototype would still apply. */
2372     char XF86DGAQueryExtension();
2373    
2374     int main() {
2375     XF86DGAQueryExtension()
2376     ; return 0; }
2377     EOF
2378 cebix 1.16 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2379 cebix 1.1 rm -rf conftest*
2380     eval "ac_cv_lib_$ac_lib_var=yes"
2381     else
2382     echo "configure: failed program was:" >&5
2383     cat conftest.$ac_ext >&5
2384     rm -rf conftest*
2385     eval "ac_cv_lib_$ac_lib_var=no"
2386     fi
2387     rm -f conftest*
2388     LIBS="$ac_save_LIBS"
2389    
2390     fi
2391     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2392     echo "$ac_t""yes" 1>&6
2393 cebix 1.9
2394 cebix 1.7 DEFINES="$DEFINES -DENABLE_XF86_DGA=1"
2395 cebix 1.1 LIBS="$LIBS -lXxf86dga"
2396 cebix 1.7 if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2397     echo "configure: warning: Cannot have both --enable-xf86-dga and --enable-fbdev-dga, ignoring --enable-fbdev-dga." 1>&2
2398     WANT_FBDEV_DGA=no
2399     fi
2400 cebix 1.9
2401     else
2402     echo "$ac_t""no" 1>&6
2403    
2404     echo "configure: warning: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga." 1>&2
2405 cebix 1.12 WANT_XF86_DGA=no
2406 cebix 1.9 DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2407    
2408     fi
2409    
2410 cebix 1.7 else
2411     DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2412     fi
2413     if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2414     DEFINES="$DEFINES -DENABLE_FBDEV_DGA=1"
2415     else
2416     DEFINES="$DEFINES -DENABLE_FBDEV_DGA=0"
2417 cebix 1.1 fi
2418    
2419 cebix 1.16 if [ "x$WANT_XF86_VIDMODE" = "xyes" ]; then
2420     echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2421     echo "configure:2422: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2422     ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2423     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2424     echo $ac_n "(cached) $ac_c" 1>&6
2425     else
2426     ac_save_LIBS="$LIBS"
2427     LIBS="-lXxf86vm $LIBS"
2428     cat > conftest.$ac_ext <<EOF
2429     #line 2430 "configure"
2430     #include "confdefs.h"
2431     /* Override any gcc2 internal prototype to avoid an error. */
2432     /* We use char because int might match the return type of a gcc2
2433     builtin and then its argument prototype would still apply. */
2434     char XF86VidModeQueryExtension();
2435    
2436     int main() {
2437     XF86VidModeQueryExtension()
2438     ; return 0; }
2439     EOF
2440     if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2441     rm -rf conftest*
2442     eval "ac_cv_lib_$ac_lib_var=yes"
2443     else
2444     echo "configure: failed program was:" >&5
2445     cat conftest.$ac_ext >&5
2446     rm -rf conftest*
2447     eval "ac_cv_lib_$ac_lib_var=no"
2448     fi
2449     rm -f conftest*
2450     LIBS="$ac_save_LIBS"
2451    
2452     fi
2453     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2454     echo "$ac_t""yes" 1>&6
2455    
2456     DEFINES="$DEFINES -DENABLE_XF86_VIDMODE=1"
2457     LIBS="$LIBS -lXxf86vm"
2458    
2459     else
2460     echo "$ac_t""no" 1>&6
2461    
2462     echo "configure: warning: Could not find XFree86 VidMode extension, ignoring --enable-xf86-vidmode." 1>&2
2463     WANT_XF86_VIDMODE=no
2464     DEFINES="$DEFINES -DENABLE_XF86_VIDMODE=0"
2465    
2466     fi
2467    
2468     fi
2469    
2470 cebix 1.9 UISRCS=../dummy/prefs_editor_dummy.cpp
2471 cebix 1.13 if [ "x$WANT_GTK" = "xyes" ]; then
2472 cebix 1.1 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2473     if test "${with_gtk_prefix+set}" = set; then
2474     withval="$with_gtk_prefix"
2475     gtk_config_prefix="$withval"
2476     else
2477     gtk_config_prefix=""
2478     fi
2479    
2480     # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2481     if test "${with_gtk_exec_prefix+set}" = set; then
2482     withval="$with_gtk_exec_prefix"
2483     gtk_config_exec_prefix="$withval"
2484     else
2485     gtk_config_exec_prefix=""
2486     fi
2487    
2488     # Check whether --enable-gtktest or --disable-gtktest was given.
2489     if test "${enable_gtktest+set}" = set; then
2490     enableval="$enable_gtktest"
2491     :
2492     else
2493     enable_gtktest=yes
2494     fi
2495    
2496    
2497     if test x$gtk_config_exec_prefix != x ; then
2498     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2499     if test x${GTK_CONFIG+set} != xset ; then
2500     GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2501     fi
2502     fi
2503     if test x$gtk_config_prefix != x ; then
2504     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2505     if test x${GTK_CONFIG+set} != xset ; then
2506     GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2507     fi
2508     fi
2509    
2510     # Extract the first word of "gtk-config", so it can be a program name with args.
2511     set dummy gtk-config; ac_word=$2
2512     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2513 cebix 1.16 echo "configure:2514: checking for $ac_word" >&5
2514 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2515     echo $ac_n "(cached) $ac_c" 1>&6
2516     else
2517     case "$GTK_CONFIG" in
2518     /*)
2519     ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2520     ;;
2521     ?:/*)
2522     ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2523     ;;
2524     *)
2525     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2526     ac_dummy="$PATH"
2527     for ac_dir in $ac_dummy; do
2528     test -z "$ac_dir" && ac_dir=.
2529     if test -f $ac_dir/$ac_word; then
2530     ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2531     break
2532     fi
2533     done
2534     IFS="$ac_save_ifs"
2535     test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2536     ;;
2537     esac
2538     fi
2539     GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2540     if test -n "$GTK_CONFIG"; then
2541     echo "$ac_t""$GTK_CONFIG" 1>&6
2542     else
2543     echo "$ac_t""no" 1>&6
2544     fi
2545    
2546     min_gtk_version=1.2.0
2547     echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2548 cebix 1.16 echo "configure:2549: checking for GTK - version >= $min_gtk_version" >&5
2549 cebix 1.1 no_gtk=""
2550     if test "$GTK_CONFIG" = "no" ; then
2551     no_gtk=yes
2552     else
2553     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2554     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2555     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2556     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2557     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2558     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2559     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2560     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2561     if test "x$enable_gtktest" = "xyes" ; then
2562     ac_save_CFLAGS="$CFLAGS"
2563     ac_save_LIBS="$LIBS"
2564     CFLAGS="$CFLAGS $GTK_CFLAGS"
2565     LIBS="$LIBS $GTK_LIBS"
2566     rm -f conf.gtktest
2567     if test "$cross_compiling" = yes; then
2568     echo $ac_n "cross compiling; assumed OK... $ac_c"
2569     else
2570     cat > conftest.$ac_ext <<EOF
2571 cebix 1.16 #line 2572 "configure"
2572 cebix 1.1 #include "confdefs.h"
2573    
2574     #include <gtk/gtk.h>
2575     #include <stdio.h>
2576    
2577     int
2578     main ()
2579     {
2580     int major, minor, micro;
2581    
2582     system ("touch conf.gtktest");
2583    
2584     if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
2585     printf("%s, bad version string\n", "$min_gtk_version");
2586     exit(1);
2587     }
2588    
2589     if ((gtk_major_version != $gtk_config_major_version) ||
2590     (gtk_minor_version != $gtk_config_minor_version) ||
2591     (gtk_micro_version != $gtk_config_micro_version))
2592     {
2593     printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2594     $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2595     gtk_major_version, gtk_minor_version, gtk_micro_version);
2596     printf ("*** was found! If gtk-config was correct, then it is best\n");
2597     printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2598     printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2599     printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2600     printf("*** required on your system.\n");
2601     printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2602     printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2603     printf("*** before re-running configure\n");
2604     }
2605     else
2606     {
2607     if ((gtk_major_version > major) ||
2608     ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2609     ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2610     {
2611     return 0;
2612     }
2613     else
2614     {
2615     printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2616     gtk_major_version, gtk_minor_version, gtk_micro_version);
2617     printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2618     major, minor, micro);
2619     printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2620     printf("***\n");
2621     printf("*** If you have already installed a sufficiently new version, this error\n");
2622     printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2623     printf("*** being found. The easiest way to fix this is to remove the old version\n");
2624     printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2625     printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2626     printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2627     printf("*** so that the correct libraries are found at run-time))\n");
2628     }
2629     }
2630     return 1;
2631     }
2632    
2633     EOF
2634 cebix 1.16 if { (eval echo configure:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2635 cebix 1.1 then
2636     :
2637     else
2638     echo "configure: failed program was:" >&5
2639     cat conftest.$ac_ext >&5
2640     rm -fr conftest*
2641     no_gtk=yes
2642     fi
2643     rm -fr conftest*
2644     fi
2645    
2646     CFLAGS="$ac_save_CFLAGS"
2647     LIBS="$ac_save_LIBS"
2648     fi
2649     fi
2650     if test "x$no_gtk" = x ; then
2651     echo "$ac_t""yes" 1>&6
2652 cebix 1.9
2653     DEFINES="$DEFINES -DENABLE_GTK=1"
2654     CFLAGS="$CFLAGS $GTK_CFLAGS"
2655     CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
2656     LIBS="$LIBS $GTK_LIBS"
2657     UISRCS=prefs_editor_gtk.cpp
2658    
2659 cebix 1.1 else
2660     echo "$ac_t""no" 1>&6
2661     if test "$GTK_CONFIG" = "no" ; then
2662     echo "*** The gtk-config script installed by GTK could not be found"
2663     echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2664     echo "*** your path, or set the GTK_CONFIG environment variable to the"
2665     echo "*** full path to gtk-config."
2666     else
2667     if test -f conf.gtktest ; then
2668     :
2669     else
2670     echo "*** Could not run GTK test program, checking why..."
2671     CFLAGS="$CFLAGS $GTK_CFLAGS"
2672     LIBS="$LIBS $GTK_LIBS"
2673     cat > conftest.$ac_ext <<EOF
2674 cebix 1.16 #line 2675 "configure"
2675 cebix 1.1 #include "confdefs.h"
2676    
2677     #include <gtk/gtk.h>
2678     #include <stdio.h>
2679    
2680     int main() {
2681     return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2682     ; return 0; }
2683     EOF
2684 cebix 1.16 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2685 cebix 1.1 rm -rf conftest*
2686     echo "*** The test program compiled, but did not run. This usually means"
2687     echo "*** that the run-time linker is not finding GTK or finding the wrong"
2688     echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2689     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2690     echo "*** to the installed location Also, make sure you have run ldconfig if that"
2691     echo "*** is required on your system"
2692     echo "***"
2693     echo "*** If you have an old version installed, it is best to remove it, although"
2694     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2695     echo "***"
2696     echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2697     echo "*** came with the system with the command"
2698     echo "***"
2699     echo "*** rpm --erase --nodeps gtk gtk-devel"
2700     else
2701     echo "configure: failed program was:" >&5
2702     cat conftest.$ac_ext >&5
2703     rm -rf conftest*
2704     echo "*** The test program failed to compile or link. See the file config.log for the"
2705     echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2706     echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2707     echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2708     fi
2709     rm -f conftest*
2710     CFLAGS="$ac_save_CFLAGS"
2711     LIBS="$ac_save_LIBS"
2712     fi
2713     fi
2714     GTK_CFLAGS=""
2715     GTK_LIBS=""
2716 cebix 1.9
2717     echo "configure: warning: Could not find GTK+, disabling user interface." 1>&2
2718 cebix 1.13 WANT_GTK=no
2719 cebix 1.14 DEFINES="$DEFINES -DENABLE_GTK=0"
2720 cebix 1.9
2721 cebix 1.1 fi
2722    
2723    
2724     rm -f conf.gtktest
2725    
2726 cebix 1.9 fi
2727    
2728     if [ "x$WANT_ESD" = "xyes" ]; then
2729     # Check whether --with-esd-prefix or --without-esd-prefix was given.
2730     if test "${with_esd_prefix+set}" = set; then
2731     withval="$with_esd_prefix"
2732     esd_prefix="$withval"
2733     else
2734     esd_prefix=""
2735     fi
2736    
2737     # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
2738     if test "${with_esd_exec_prefix+set}" = set; then
2739     withval="$with_esd_exec_prefix"
2740     esd_exec_prefix="$withval"
2741     else
2742     esd_exec_prefix=""
2743     fi
2744    
2745     # Check whether --enable-esdtest or --disable-esdtest was given.
2746     if test "${enable_esdtest+set}" = set; then
2747     enableval="$enable_esdtest"
2748     :
2749     else
2750     enable_esdtest=yes
2751     fi
2752    
2753    
2754     if test x$esd_exec_prefix != x ; then
2755     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
2756     if test x${ESD_CONFIG+set} != xset ; then
2757     ESD_CONFIG=$esd_exec_prefix/bin/esd-config
2758     fi
2759     fi
2760     if test x$esd_prefix != x ; then
2761     esd_args="$esd_args --prefix=$esd_prefix"
2762     if test x${ESD_CONFIG+set} != xset ; then
2763     ESD_CONFIG=$esd_prefix/bin/esd-config
2764     fi
2765 cebix 1.1 fi
2766 cebix 1.9
2767     # Extract the first word of "esd-config", so it can be a program name with args.
2768     set dummy esd-config; ac_word=$2
2769     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2770 cebix 1.16 echo "configure:2771: checking for $ac_word" >&5
2771 cebix 1.9 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
2772     echo $ac_n "(cached) $ac_c" 1>&6
2773     else
2774     case "$ESD_CONFIG" in
2775     /*)
2776     ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
2777     ;;
2778     ?:/*)
2779     ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
2780     ;;
2781     *)
2782     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2783     ac_dummy="$PATH"
2784     for ac_dir in $ac_dummy; do
2785     test -z "$ac_dir" && ac_dir=.
2786     if test -f $ac_dir/$ac_word; then
2787     ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
2788     break
2789     fi
2790     done
2791     IFS="$ac_save_ifs"
2792     test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
2793     ;;
2794     esac
2795     fi
2796     ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
2797     if test -n "$ESD_CONFIG"; then
2798     echo "$ac_t""$ESD_CONFIG" 1>&6
2799     else
2800     echo "$ac_t""no" 1>&6
2801 cebix 1.1 fi
2802    
2803 cebix 1.9 min_esd_version=0.2.8
2804     echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6
2805 cebix 1.16 echo "configure:2806: checking for ESD - version >= $min_esd_version" >&5
2806 cebix 1.9 no_esd=""
2807     if test "$ESD_CONFIG" = "no" ; then
2808     no_esd=yes
2809     else
2810     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
2811     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
2812    
2813     esd_major_version=`$ESD_CONFIG $esd_args --version | \
2814     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2815     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
2816     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2817     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
2818     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2819     if test "x$enable_esdtest" = "xyes" ; then
2820     ac_save_CFLAGS="$CFLAGS"
2821     ac_save_LIBS="$LIBS"
2822     CFLAGS="$CFLAGS $ESD_CFLAGS"
2823     LIBS="$LIBS $ESD_LIBS"
2824     rm -f conf.esdtest
2825     if test "$cross_compiling" = yes; then
2826     echo $ac_n "cross compiling; assumed OK... $ac_c"
2827 cebix 1.1 else
2828     cat > conftest.$ac_ext <<EOF
2829 cebix 1.16 #line 2830 "configure"
2830 cebix 1.1 #include "confdefs.h"
2831    
2832 cebix 1.9 #include <stdio.h>
2833     #include <stdlib.h>
2834     #include <string.h>
2835     #include <esd.h>
2836    
2837     char*
2838     my_strdup (char *str)
2839     {
2840     char *new_str;
2841    
2842     if (str)
2843     {
2844     new_str = malloc ((strlen (str) + 1) * sizeof(char));
2845     strcpy (new_str, str);
2846     }
2847     else
2848     new_str = NULL;
2849    
2850     return new_str;
2851     }
2852    
2853     int main ()
2854     {
2855     int major, minor, micro;
2856     char *tmp_version;
2857    
2858     system ("touch conf.esdtest");
2859    
2860     /* HP/UX 9 (%@#!) writes to sscanf strings */
2861     tmp_version = my_strdup("$min_esd_version");
2862     if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2863     printf("%s, bad version string\n", "$min_esd_version");
2864     exit(1);
2865     }
2866    
2867     if (($esd_major_version > major) ||
2868     (($esd_major_version == major) && ($esd_minor_version > minor)) ||
2869     (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
2870     {
2871     return 0;
2872     }
2873     else
2874     {
2875     printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
2876     printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
2877     printf("*** best to upgrade to the required version.\n");
2878     printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
2879     printf("*** to point to the correct copy of esd-config, and remove the file\n");
2880     printf("*** config.cache before re-running configure\n");
2881     return 1;
2882     }
2883     }
2884 cebix 1.1
2885    
2886     EOF
2887 cebix 1.16 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2888 cebix 1.9 then
2889     :
2890 cebix 1.1 else
2891     echo "configure: failed program was:" >&5
2892     cat conftest.$ac_ext >&5
2893 cebix 1.9 rm -fr conftest*
2894     no_esd=yes
2895 cebix 1.1 fi
2896 cebix 1.9 rm -fr conftest*
2897 cebix 1.1 fi
2898    
2899 cebix 1.9 CFLAGS="$ac_save_CFLAGS"
2900     LIBS="$ac_save_LIBS"
2901     fi
2902     fi
2903     if test "x$no_esd" = x ; then
2904     echo "$ac_t""yes" 1>&6
2905    
2906     DEFINES="$DEFINES -DENABLE_ESD=1"
2907     CFLAGS="$CFLAGS $ESD_CFLAGS"
2908     CXXFLAGS="$CXXFLAGS $ESD_CFLAGS"
2909     LIBS="$LIBS $ESD_LIBS"
2910    
2911     else
2912     echo "$ac_t""no" 1>&6
2913     if test "$ESD_CONFIG" = "no" ; then
2914     echo "*** The esd-config script installed by ESD could not be found"
2915     echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
2916     echo "*** your path, or set the ESD_CONFIG environment variable to the"
2917     echo "*** full path to esd-config."
2918     else
2919     if test -f conf.esdtest ; then
2920     :
2921     else
2922     echo "*** Could not run ESD test program, checking why..."
2923     CFLAGS="$CFLAGS $ESD_CFLAGS"
2924     LIBS="$LIBS $ESD_LIBS"
2925     cat > conftest.$ac_ext <<EOF
2926 cebix 1.16 #line 2927 "configure"
2927 cebix 1.9 #include "confdefs.h"
2928 cebix 1.1
2929 cebix 1.9 #include <stdio.h>
2930     #include <esd.h>
2931 cebix 1.1
2932     int main() {
2933 cebix 1.9 return 0;
2934 cebix 1.1 ; return 0; }
2935     EOF
2936 cebix 1.16 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2937 cebix 1.1 rm -rf conftest*
2938 cebix 1.9 echo "*** The test program compiled, but did not run. This usually means"
2939     echo "*** that the run-time linker is not finding ESD or finding the wrong"
2940     echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
2941     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2942     echo "*** to the installed location Also, make sure you have run ldconfig if that"
2943     echo "*** is required on your system"
2944     echo "***"
2945     echo "*** If you have an old version installed, it is best to remove it, although"
2946     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2947 cebix 1.1 else
2948     echo "configure: failed program was:" >&5
2949     cat conftest.$ac_ext >&5
2950     rm -rf conftest*
2951 cebix 1.9 echo "*** The test program failed to compile or link. See the file config.log for the"
2952     echo "*** exact error that occured. This usually means ESD was incorrectly installed"
2953     echo "*** or that you have moved ESD since it was installed. In the latter case, you"
2954     echo "*** may want to edit the esd-config script: $ESD_CONFIG"
2955 cebix 1.1 fi
2956     rm -f conftest*
2957 cebix 1.9 CFLAGS="$ac_save_CFLAGS"
2958     LIBS="$ac_save_LIBS"
2959     fi
2960     fi
2961     ESD_CFLAGS=""
2962     ESD_LIBS=""
2963    
2964     echo "configure: warning: Could not find ESD, disabling ESD support." 1>&2
2965     WANT_ESD=no
2966 cebix 1.14 DEFINES="$DEFINES -DENABLE_ESD=0"
2967 cebix 1.9
2968     fi
2969    
2970    
2971     rm -f conf.esdtest
2972 cebix 1.1
2973     fi
2974    
2975     echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2976 cebix 1.16 echo "configure:2977: checking for ANSI C header files" >&5
2977 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2978     echo $ac_n "(cached) $ac_c" 1>&6
2979     else
2980     cat > conftest.$ac_ext <<EOF
2981 cebix 1.16 #line 2982 "configure"
2982 cebix 1.1 #include "confdefs.h"
2983     #include <stdlib.h>
2984     #include <stdarg.h>
2985     #include <string.h>
2986     #include <float.h>
2987     EOF
2988     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2989 cebix 1.16 { (eval echo configure:2990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2990 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2991     if test -z "$ac_err"; then
2992     rm -rf conftest*
2993     ac_cv_header_stdc=yes
2994     else
2995     echo "$ac_err" >&5
2996     echo "configure: failed program was:" >&5
2997     cat conftest.$ac_ext >&5
2998     rm -rf conftest*
2999     ac_cv_header_stdc=no
3000     fi
3001     rm -f conftest*
3002    
3003     if test $ac_cv_header_stdc = yes; then
3004     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3005     cat > conftest.$ac_ext <<EOF
3006 cebix 1.16 #line 3007 "configure"
3007 cebix 1.1 #include "confdefs.h"
3008     #include <string.h>
3009     EOF
3010     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011     egrep "memchr" >/dev/null 2>&1; then
3012     :
3013     else
3014     rm -rf conftest*
3015     ac_cv_header_stdc=no
3016     fi
3017     rm -f conftest*
3018    
3019     fi
3020    
3021     if test $ac_cv_header_stdc = yes; then
3022     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3023     cat > conftest.$ac_ext <<EOF
3024 cebix 1.16 #line 3025 "configure"
3025 cebix 1.1 #include "confdefs.h"
3026     #include <stdlib.h>
3027     EOF
3028     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029     egrep "free" >/dev/null 2>&1; then
3030     :
3031     else
3032     rm -rf conftest*
3033     ac_cv_header_stdc=no
3034     fi
3035     rm -f conftest*
3036    
3037     fi
3038    
3039     if test $ac_cv_header_stdc = yes; then
3040     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3041     if test "$cross_compiling" = yes; then
3042     :
3043     else
3044     cat > conftest.$ac_ext <<EOF
3045 cebix 1.16 #line 3046 "configure"
3046 cebix 1.1 #include "confdefs.h"
3047     #include <ctype.h>
3048     #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3049     #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3050     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3051     int main () { int i; for (i = 0; i < 256; i++)
3052     if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3053     exit (0); }
3054    
3055     EOF
3056 cebix 1.16 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3057 cebix 1.1 then
3058     :
3059     else
3060     echo "configure: failed program was:" >&5
3061     cat conftest.$ac_ext >&5
3062     rm -fr conftest*
3063     ac_cv_header_stdc=no
3064     fi
3065     rm -fr conftest*
3066     fi
3067    
3068     fi
3069     fi
3070    
3071     echo "$ac_t""$ac_cv_header_stdc" 1>&6
3072     if test $ac_cv_header_stdc = yes; then
3073     cat >> confdefs.h <<\EOF
3074     #define STDC_HEADERS 1
3075     EOF
3076    
3077     fi
3078    
3079     for ac_hdr in unistd.h fcntl.h sys/time.h
3080     do
3081     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3082     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3083 cebix 1.16 echo "configure:3084: checking for $ac_hdr" >&5
3084 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3085     echo $ac_n "(cached) $ac_c" 1>&6
3086     else
3087     cat > conftest.$ac_ext <<EOF
3088 cebix 1.16 #line 3089 "configure"
3089 cebix 1.1 #include "confdefs.h"
3090     #include <$ac_hdr>
3091     EOF
3092     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3093 cebix 1.16 { (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3094 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3095     if test -z "$ac_err"; then
3096     rm -rf conftest*
3097     eval "ac_cv_header_$ac_safe=yes"
3098     else
3099     echo "$ac_err" >&5
3100     echo "configure: failed program was:" >&5
3101     cat conftest.$ac_ext >&5
3102     rm -rf conftest*
3103     eval "ac_cv_header_$ac_safe=no"
3104     fi
3105     rm -f conftest*
3106     fi
3107     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3108     echo "$ac_t""yes" 1>&6
3109     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3110     cat >> confdefs.h <<EOF
3111     #define $ac_tr_hdr 1
3112     EOF
3113    
3114     else
3115     echo "$ac_t""no" 1>&6
3116     fi
3117     done
3118    
3119    
3120     echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3121 cebix 1.16 echo "configure:3122: checking whether byte ordering is bigendian" >&5
3122 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3123     echo $ac_n "(cached) $ac_c" 1>&6
3124     else
3125     ac_cv_c_bigendian=unknown
3126     # See if sys/param.h defines the BYTE_ORDER macro.
3127     cat > conftest.$ac_ext <<EOF
3128 cebix 1.16 #line 3129 "configure"
3129 cebix 1.1 #include "confdefs.h"
3130     #include <sys/types.h>
3131     #include <sys/param.h>
3132     int main() {
3133    
3134     #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3135     bogus endian macros
3136     #endif
3137     ; return 0; }
3138     EOF
3139 cebix 1.16 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 cebix 1.1 rm -rf conftest*
3141     # It does; now see whether it defined to BIG_ENDIAN or not.
3142     cat > conftest.$ac_ext <<EOF
3143 cebix 1.16 #line 3144 "configure"
3144 cebix 1.1 #include "confdefs.h"
3145     #include <sys/types.h>
3146     #include <sys/param.h>
3147     int main() {
3148    
3149     #if BYTE_ORDER != BIG_ENDIAN
3150     not big endian
3151     #endif
3152     ; return 0; }
3153     EOF
3154 cebix 1.16 if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 cebix 1.1 rm -rf conftest*
3156     ac_cv_c_bigendian=yes
3157     else
3158     echo "configure: failed program was:" >&5
3159     cat conftest.$ac_ext >&5
3160     rm -rf conftest*
3161     ac_cv_c_bigendian=no
3162     fi
3163     rm -f conftest*
3164     else
3165     echo "configure: failed program was:" >&5
3166     cat conftest.$ac_ext >&5
3167     fi
3168     rm -f conftest*
3169     if test $ac_cv_c_bigendian = unknown; then
3170     if test "$cross_compiling" = yes; then
3171     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3172     else
3173     cat > conftest.$ac_ext <<EOF
3174 cebix 1.16 #line 3175 "configure"
3175 cebix 1.1 #include "confdefs.h"
3176     main () {
3177     /* Are we little or big endian? From Harbison&Steele. */
3178     union
3179     {
3180     long l;
3181     char c[sizeof (long)];
3182     } u;
3183     u.l = 1;
3184     exit (u.c[sizeof (long) - 1] == 1);
3185     }
3186     EOF
3187 cebix 1.16 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3188 cebix 1.1 then
3189     ac_cv_c_bigendian=no
3190     else
3191     echo "configure: failed program was:" >&5
3192     cat conftest.$ac_ext >&5
3193     rm -fr conftest*
3194     ac_cv_c_bigendian=yes
3195     fi
3196     rm -fr conftest*
3197     fi
3198    
3199     fi
3200     fi
3201    
3202     echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3203     if test $ac_cv_c_bigendian = yes; then
3204     cat >> confdefs.h <<\EOF
3205     #define WORDS_BIGENDIAN 1
3206     EOF
3207    
3208     fi
3209    
3210     echo $ac_n "checking for working const""... $ac_c" 1>&6
3211 cebix 1.16 echo "configure:3212: checking for working const" >&5
3212 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3213     echo $ac_n "(cached) $ac_c" 1>&6
3214     else
3215     cat > conftest.$ac_ext <<EOF
3216 cebix 1.16 #line 3217 "configure"
3217 cebix 1.1 #include "confdefs.h"
3218    
3219     int main() {
3220    
3221     /* Ultrix mips cc rejects this. */
3222     typedef int charset[2]; const charset x;
3223     /* SunOS 4.1.1 cc rejects this. */
3224     char const *const *ccp;
3225     char **p;
3226     /* NEC SVR4.0.2 mips cc rejects this. */
3227     struct point {int x, y;};
3228     static struct point const zero = {0,0};
3229     /* AIX XL C 1.02.0.0 rejects this.
3230     It does not let you subtract one const X* pointer from another in an arm
3231     of an if-expression whose if-part is not a constant expression */
3232     const char *g = "string";
3233     ccp = &g + (g ? g-g : 0);
3234     /* HPUX 7.0 cc rejects these. */
3235     ++ccp;
3236     p = (char**) ccp;
3237     ccp = (char const *const *) p;
3238     { /* SCO 3.2v4 cc rejects this. */
3239     char *t;
3240     char const *s = 0 ? (char *) 0 : (char const *) 0;
3241    
3242     *t++ = 0;
3243     }
3244     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3245     int x[] = {25, 17};
3246     const int *foo = &x[0];
3247     ++foo;
3248     }
3249     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3250     typedef const int *iptr;
3251     iptr p = 0;
3252     ++p;
3253     }
3254     { /* AIX XL C 1.02.0.0 rejects this saying
3255     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3256     struct s { int j; const int *ap[3]; };
3257     struct s *b; b->j = 5;
3258     }
3259     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3260     const int foo = 10;
3261     }
3262    
3263     ; return 0; }
3264     EOF
3265 cebix 1.16 if { (eval echo configure:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3266 cebix 1.1 rm -rf conftest*
3267     ac_cv_c_const=yes
3268     else
3269     echo "configure: failed program was:" >&5
3270     cat conftest.$ac_ext >&5
3271     rm -rf conftest*
3272     ac_cv_c_const=no
3273     fi
3274     rm -f conftest*
3275     fi
3276    
3277     echo "$ac_t""$ac_cv_c_const" 1>&6
3278     if test $ac_cv_c_const = no; then
3279     cat >> confdefs.h <<\EOF
3280     #define const
3281     EOF
3282    
3283     fi
3284    
3285     echo $ac_n "checking for inline""... $ac_c" 1>&6
3286 cebix 1.16 echo "configure:3287: checking for inline" >&5
3287 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3288     echo $ac_n "(cached) $ac_c" 1>&6
3289     else
3290     ac_cv_c_inline=no
3291     for ac_kw in inline __inline__ __inline; do
3292     cat > conftest.$ac_ext <<EOF
3293 cebix 1.16 #line 3294 "configure"
3294 cebix 1.1 #include "confdefs.h"
3295    
3296     int main() {
3297     } $ac_kw foo() {
3298     ; return 0; }
3299     EOF
3300 cebix 1.16 if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3301 cebix 1.1 rm -rf conftest*
3302     ac_cv_c_inline=$ac_kw; break
3303     else
3304     echo "configure: failed program was:" >&5
3305     cat conftest.$ac_ext >&5
3306     fi
3307     rm -f conftest*
3308     done
3309    
3310     fi
3311    
3312     echo "$ac_t""$ac_cv_c_inline" 1>&6
3313     case "$ac_cv_c_inline" in
3314     inline | yes) ;;
3315     no) cat >> confdefs.h <<\EOF
3316     #define inline
3317     EOF
3318     ;;
3319     *) cat >> confdefs.h <<EOF
3320     #define inline $ac_cv_c_inline
3321     EOF
3322     ;;
3323     esac
3324    
3325     echo $ac_n "checking size of short""... $ac_c" 1>&6
3326 cebix 1.16 echo "configure:3327: checking size of short" >&5
3327 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3328     echo $ac_n "(cached) $ac_c" 1>&6
3329     else
3330     if test "$cross_compiling" = yes; then
3331     ac_cv_sizeof_short=2
3332     else
3333     cat > conftest.$ac_ext <<EOF
3334 cebix 1.16 #line 3335 "configure"
3335 cebix 1.1 #include "confdefs.h"
3336     #include <stdio.h>
3337     main()
3338     {
3339     FILE *f=fopen("conftestval", "w");
3340     if (!f) exit(1);
3341     fprintf(f, "%d\n", sizeof(short));
3342     exit(0);
3343     }
3344     EOF
3345 cebix 1.16 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3346 cebix 1.1 then
3347     ac_cv_sizeof_short=`cat conftestval`
3348     else
3349     echo "configure: failed program was:" >&5
3350     cat conftest.$ac_ext >&5
3351     rm -fr conftest*
3352     ac_cv_sizeof_short=0
3353     fi
3354     rm -fr conftest*
3355     fi
3356    
3357     fi
3358     echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3359     cat >> confdefs.h <<EOF
3360     #define SIZEOF_SHORT $ac_cv_sizeof_short
3361     EOF
3362    
3363    
3364     echo $ac_n "checking size of int""... $ac_c" 1>&6
3365 cebix 1.16 echo "configure:3366: checking size of int" >&5
3366 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3367     echo $ac_n "(cached) $ac_c" 1>&6
3368     else
3369     if test "$cross_compiling" = yes; then
3370     ac_cv_sizeof_int=4
3371     else
3372     cat > conftest.$ac_ext <<EOF
3373 cebix 1.16 #line 3374 "configure"
3374 cebix 1.1 #include "confdefs.h"
3375     #include <stdio.h>
3376     main()
3377     {
3378     FILE *f=fopen("conftestval", "w");
3379     if (!f) exit(1);
3380     fprintf(f, "%d\n", sizeof(int));
3381     exit(0);
3382     }
3383     EOF
3384 cebix 1.16 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3385 cebix 1.1 then
3386     ac_cv_sizeof_int=`cat conftestval`
3387     else
3388     echo "configure: failed program was:" >&5
3389     cat conftest.$ac_ext >&5
3390     rm -fr conftest*
3391     ac_cv_sizeof_int=0
3392     fi
3393     rm -fr conftest*
3394     fi
3395    
3396     fi
3397     echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3398     cat >> confdefs.h <<EOF
3399     #define SIZEOF_INT $ac_cv_sizeof_int
3400     EOF
3401    
3402    
3403     echo $ac_n "checking size of long""... $ac_c" 1>&6
3404 cebix 1.16 echo "configure:3405: checking size of long" >&5
3405 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3406     echo $ac_n "(cached) $ac_c" 1>&6
3407     else
3408     if test "$cross_compiling" = yes; then
3409     ac_cv_sizeof_long=4
3410     else
3411     cat > conftest.$ac_ext <<EOF
3412 cebix 1.16 #line 3413 "configure"
3413 cebix 1.1 #include "confdefs.h"
3414     #include <stdio.h>
3415     main()
3416     {
3417     FILE *f=fopen("conftestval", "w");
3418     if (!f) exit(1);
3419     fprintf(f, "%d\n", sizeof(long));
3420     exit(0);
3421     }
3422     EOF
3423 cebix 1.16 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3424 cebix 1.1 then
3425     ac_cv_sizeof_long=`cat conftestval`
3426     else
3427     echo "configure: failed program was:" >&5
3428     cat conftest.$ac_ext >&5
3429     rm -fr conftest*
3430     ac_cv_sizeof_long=0
3431     fi
3432     rm -fr conftest*
3433     fi
3434    
3435     fi
3436     echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3437     cat >> confdefs.h <<EOF
3438     #define SIZEOF_LONG $ac_cv_sizeof_long
3439     EOF
3440    
3441    
3442     echo $ac_n "checking size of long long""... $ac_c" 1>&6
3443 cebix 1.16 echo "configure:3444: checking size of long long" >&5
3444 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3445     echo $ac_n "(cached) $ac_c" 1>&6
3446     else
3447     if test "$cross_compiling" = yes; then
3448     ac_cv_sizeof_long_long=8
3449     else
3450     cat > conftest.$ac_ext <<EOF
3451 cebix 1.16 #line 3452 "configure"
3452 cebix 1.1 #include "confdefs.h"
3453     #include <stdio.h>
3454     main()
3455     {
3456     FILE *f=fopen("conftestval", "w");
3457     if (!f) exit(1);
3458     fprintf(f, "%d\n", sizeof(long long));
3459     exit(0);
3460     }
3461     EOF
3462 cebix 1.16 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3463 cebix 1.1 then
3464     ac_cv_sizeof_long_long=`cat conftestval`
3465     else
3466     echo "configure: failed program was:" >&5
3467     cat conftest.$ac_ext >&5
3468     rm -fr conftest*
3469     ac_cv_sizeof_long_long=0
3470     fi
3471     rm -fr conftest*
3472     fi
3473    
3474     fi
3475     echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3476     cat >> confdefs.h <<EOF
3477     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3478     EOF
3479    
3480    
3481     echo $ac_n "checking for off_t""... $ac_c" 1>&6
3482 cebix 1.16 echo "configure:3483: checking for off_t" >&5
3483 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3484     echo $ac_n "(cached) $ac_c" 1>&6
3485     else
3486     cat > conftest.$ac_ext <<EOF
3487 cebix 1.16 #line 3488 "configure"
3488 cebix 1.1 #include "confdefs.h"
3489     #include <sys/types.h>
3490     #if STDC_HEADERS
3491     #include <stdlib.h>
3492     #include <stddef.h>
3493     #endif
3494     EOF
3495     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3496     egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3497     rm -rf conftest*
3498     ac_cv_type_off_t=yes
3499     else
3500     rm -rf conftest*
3501     ac_cv_type_off_t=no
3502     fi
3503     rm -f conftest*
3504    
3505     fi
3506     echo "$ac_t""$ac_cv_type_off_t" 1>&6
3507     if test $ac_cv_type_off_t = no; then
3508     cat >> confdefs.h <<\EOF
3509     #define off_t long
3510     EOF
3511    
3512     fi
3513    
3514     echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3515 cebix 1.16 echo "configure:3516: checking for loff_t" >&5
3516 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3517     echo $ac_n "(cached) $ac_c" 1>&6
3518     else
3519     cat > conftest.$ac_ext <<EOF
3520 cebix 1.16 #line 3521 "configure"
3521 cebix 1.1 #include "confdefs.h"
3522     #include <sys/types.h>
3523     #if STDC_HEADERS
3524     #include <stdlib.h>
3525     #include <stddef.h>
3526     #endif
3527     EOF
3528     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529     egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3530     rm -rf conftest*
3531     ac_cv_type_loff_t=yes
3532     else
3533     rm -rf conftest*
3534     ac_cv_type_loff_t=no
3535     fi
3536     rm -f conftest*
3537    
3538     fi
3539     echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3540     if test $ac_cv_type_loff_t = no; then
3541     cat >> confdefs.h <<\EOF
3542     #define loff_t off_t
3543     EOF
3544    
3545     fi
3546    
3547     echo $ac_n "checking for size_t""... $ac_c" 1>&6
3548 cebix 1.16 echo "configure:3549: checking for size_t" >&5
3549 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3550     echo $ac_n "(cached) $ac_c" 1>&6
3551     else
3552     cat > conftest.$ac_ext <<EOF
3553 cebix 1.16 #line 3554 "configure"
3554 cebix 1.1 #include "confdefs.h"
3555     #include <sys/types.h>
3556     #if STDC_HEADERS
3557     #include <stdlib.h>
3558     #include <stddef.h>
3559     #endif
3560     EOF
3561     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562     egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3563     rm -rf conftest*
3564     ac_cv_type_size_t=yes
3565     else
3566     rm -rf conftest*
3567     ac_cv_type_size_t=no
3568     fi
3569     rm -f conftest*
3570    
3571     fi
3572     echo "$ac_t""$ac_cv_type_size_t" 1>&6
3573     if test $ac_cv_type_size_t = no; then
3574     cat >> confdefs.h <<\EOF
3575     #define size_t unsigned
3576     EOF
3577    
3578     fi
3579    
3580     echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3581 cebix 1.16 echo "configure:3582: checking whether time.h and sys/time.h may both be included" >&5
3582 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3583     echo $ac_n "(cached) $ac_c" 1>&6
3584     else
3585     cat > conftest.$ac_ext <<EOF
3586 cebix 1.16 #line 3587 "configure"
3587 cebix 1.1 #include "confdefs.h"
3588     #include <sys/types.h>
3589     #include <sys/time.h>
3590     #include <time.h>
3591     int main() {
3592     struct tm *tp;
3593     ; return 0; }
3594     EOF
3595 cebix 1.16 if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 cebix 1.1 rm -rf conftest*
3597     ac_cv_header_time=yes
3598     else
3599     echo "configure: failed program was:" >&5
3600     cat conftest.$ac_ext >&5
3601     rm -rf conftest*
3602     ac_cv_header_time=no
3603     fi
3604     rm -f conftest*
3605     fi
3606    
3607     echo "$ac_t""$ac_cv_header_time" 1>&6
3608     if test $ac_cv_header_time = yes; then
3609     cat >> confdefs.h <<\EOF
3610     #define TIME_WITH_SYS_TIME 1
3611     EOF
3612    
3613     fi
3614    
3615     echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3616 cebix 1.16 echo "configure:3617: checking whether struct tm is in sys/time.h or time.h" >&5
3617 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3618     echo $ac_n "(cached) $ac_c" 1>&6
3619     else
3620     cat > conftest.$ac_ext <<EOF
3621 cebix 1.16 #line 3622 "configure"
3622 cebix 1.1 #include "confdefs.h"
3623     #include <sys/types.h>
3624     #include <time.h>
3625     int main() {
3626     struct tm *tp; tp->tm_sec;
3627     ; return 0; }
3628     EOF
3629 cebix 1.16 if { (eval echo configure:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3630 cebix 1.1 rm -rf conftest*
3631     ac_cv_struct_tm=time.h
3632     else
3633     echo "configure: failed program was:" >&5
3634     cat conftest.$ac_ext >&5
3635     rm -rf conftest*
3636     ac_cv_struct_tm=sys/time.h
3637     fi
3638     rm -f conftest*
3639     fi
3640    
3641     echo "$ac_t""$ac_cv_struct_tm" 1>&6
3642     if test $ac_cv_struct_tm = sys/time.h; then
3643     cat >> confdefs.h <<\EOF
3644     #define TM_IN_SYS_TIME 1
3645     EOF
3646    
3647     fi
3648    
3649    
3650     for ac_func in strdup cfmakeraw
3651     do
3652     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3653 cebix 1.16 echo "configure:3654: checking for $ac_func" >&5
3654 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3655     echo $ac_n "(cached) $ac_c" 1>&6
3656     else
3657     cat > conftest.$ac_ext <<EOF
3658 cebix 1.16 #line 3659 "configure"
3659 cebix 1.1 #include "confdefs.h"
3660     /* System header to define __stub macros and hopefully few prototypes,
3661     which can conflict with char $ac_func(); below. */
3662     #include <assert.h>
3663     /* Override any gcc2 internal prototype to avoid an error. */
3664     /* We use char because int might match the return type of a gcc2
3665     builtin and then its argument prototype would still apply. */
3666     char $ac_func();
3667    
3668     int main() {
3669    
3670     /* The GNU C library defines this for functions which it implements
3671     to always fail with ENOSYS. Some functions are actually named
3672     something starting with __ and the normal name is an alias. */
3673     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3674     choke me
3675     #else
3676     $ac_func();
3677     #endif
3678    
3679     ; return 0; }
3680     EOF
3681 cebix 1.16 if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3682 cebix 1.1 rm -rf conftest*
3683     eval "ac_cv_func_$ac_func=yes"
3684     else
3685     echo "configure: failed program was:" >&5
3686     cat conftest.$ac_ext >&5
3687     rm -rf conftest*
3688     eval "ac_cv_func_$ac_func=no"
3689     fi
3690     rm -f conftest*
3691     fi
3692    
3693     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3694     echo "$ac_t""yes" 1>&6
3695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3696     cat >> confdefs.h <<EOF
3697     #define $ac_tr_func 1
3698     EOF
3699    
3700     else
3701     echo "$ac_t""no" 1>&6
3702     fi
3703     done
3704    
3705     for ac_func in nanosleep clock_gettime timer_create
3706     do
3707     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3708 cebix 1.16 echo "configure:3709: checking for $ac_func" >&5
3709 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3710     echo $ac_n "(cached) $ac_c" 1>&6
3711     else
3712     cat > conftest.$ac_ext <<EOF
3713 cebix 1.16 #line 3714 "configure"
3714 cebix 1.1 #include "confdefs.h"
3715     /* System header to define __stub macros and hopefully few prototypes,
3716     which can conflict with char $ac_func(); below. */
3717     #include <assert.h>
3718     /* Override any gcc2 internal prototype to avoid an error. */
3719     /* We use char because int might match the return type of a gcc2
3720     builtin and then its argument prototype would still apply. */
3721     char $ac_func();
3722    
3723     int main() {
3724    
3725     /* The GNU C library defines this for functions which it implements
3726     to always fail with ENOSYS. Some functions are actually named
3727     something starting with __ and the normal name is an alias. */
3728     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3729     choke me
3730     #else
3731     $ac_func();
3732     #endif
3733    
3734     ; return 0; }
3735     EOF
3736 cebix 1.16 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737 cebix 1.9 rm -rf conftest*
3738     eval "ac_cv_func_$ac_func=yes"
3739     else
3740     echo "configure: failed program was:" >&5
3741     cat conftest.$ac_ext >&5
3742     rm -rf conftest*
3743     eval "ac_cv_func_$ac_func=no"
3744     fi
3745     rm -f conftest*
3746     fi
3747    
3748     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3749     echo "$ac_t""yes" 1>&6
3750     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3751     cat >> confdefs.h <<EOF
3752     #define $ac_tr_func 1
3753     EOF
3754    
3755     else
3756     echo "$ac_t""no" 1>&6
3757     fi
3758     done
3759    
3760     for ac_func in pthread_cancel
3761     do
3762     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763 cebix 1.16 echo "configure:3764: checking for $ac_func" >&5
3764 cebix 1.9 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3765     echo $ac_n "(cached) $ac_c" 1>&6
3766     else
3767     cat > conftest.$ac_ext <<EOF
3768 cebix 1.16 #line 3769 "configure"
3769 cebix 1.9 #include "confdefs.h"
3770     /* System header to define __stub macros and hopefully few prototypes,
3771     which can conflict with char $ac_func(); below. */
3772     #include <assert.h>
3773     /* Override any gcc2 internal prototype to avoid an error. */
3774     /* We use char because int might match the return type of a gcc2
3775     builtin and then its argument prototype would still apply. */
3776     char $ac_func();
3777    
3778     int main() {
3779    
3780     /* The GNU C library defines this for functions which it implements
3781     to always fail with ENOSYS. Some functions are actually named
3782     something starting with __ and the normal name is an alias. */
3783     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3784     choke me
3785     #else
3786     $ac_func();
3787     #endif
3788    
3789     ; return 0; }
3790     EOF
3791 cebix 1.16 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 cebix 1.1 rm -rf conftest*
3793     eval "ac_cv_func_$ac_func=yes"
3794     else
3795     echo "configure: failed program was:" >&5
3796     cat conftest.$ac_ext >&5
3797     rm -rf conftest*
3798     eval "ac_cv_func_$ac_func=no"
3799     fi
3800     rm -f conftest*
3801     fi
3802    
3803     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3804     echo "$ac_t""yes" 1>&6
3805     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3806     cat >> confdefs.h <<EOF
3807     #define $ac_tr_func 1
3808     EOF
3809    
3810     else
3811     echo "$ac_t""no" 1>&6
3812     fi
3813     done
3814    
3815    
3816     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp"
3817     if MACHINE=`uname -a 2>/dev/null`; then
3818     case "$MACHINE" in
3819     Linux*)
3820 cebix 1.9 SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp audio_oss_esd.cpp"
3821 cebix 1.1 ;;
3822     FreeBSD*3.*)
3823     echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
3824 cebix 1.16 echo "configure:3825: checking for cam_open_btl in -lcam" >&5
3825 cebix 1.1 ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
3826     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3827     echo $ac_n "(cached) $ac_c" 1>&6
3828     else
3829     ac_save_LIBS="$LIBS"
3830     LIBS="-lcam $LIBS"
3831     cat > conftest.$ac_ext <<EOF
3832 cebix 1.16 #line 3833 "configure"
3833 cebix 1.1 #include "confdefs.h"
3834     /* Override any gcc2 internal prototype to avoid an error. */
3835     /* We use char because int might match the return type of a gcc2
3836     builtin and then its argument prototype would still apply. */
3837     char cam_open_btl();
3838    
3839     int main() {
3840     cam_open_btl()
3841     ; return 0; }
3842     EOF
3843 cebix 1.16 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 cebix 1.1 rm -rf conftest*
3845     eval "ac_cv_lib_$ac_lib_var=yes"
3846     else
3847     echo "configure: failed program was:" >&5
3848     cat conftest.$ac_ext >&5
3849     rm -rf conftest*
3850     eval "ac_cv_lib_$ac_lib_var=no"
3851     fi
3852     rm -f conftest*
3853     LIBS="$ac_save_LIBS"
3854    
3855     fi
3856     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3857     echo "$ac_t""yes" 1>&6
3858     HAVE_LIBCAM=yes
3859     else
3860     echo "$ac_t""no" 1>&6
3861     HAVE_LIBCAM=no
3862     fi
3863    
3864     if [ "x$HAVE_LIBCAM" = "xno" ]; then
3865     { echo "configure: error: Cannot find libcam for SCSI management." 1>&2; exit 1; }
3866     else
3867     ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'`
3868     echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6
3869 cebix 1.16 echo "configure:3870: checking for /sys/cam/cam.h" >&5
3870 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3871     echo $ac_n "(cached) $ac_c" 1>&6
3872     else
3873     cat > conftest.$ac_ext <<EOF
3874 cebix 1.16 #line 3875 "configure"
3875 cebix 1.1 #include "confdefs.h"
3876     #include </sys/cam/cam.h>
3877     EOF
3878     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3879 cebix 1.16 { (eval echo configure:3880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3880 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3881     if test -z "$ac_err"; then
3882     rm -rf conftest*
3883     eval "ac_cv_header_$ac_safe=yes"
3884     else
3885     echo "$ac_err" >&5
3886     echo "configure: failed program was:" >&5
3887     cat conftest.$ac_ext >&5
3888     rm -rf conftest*
3889     eval "ac_cv_header_$ac_safe=no"
3890     fi
3891     rm -f conftest*
3892     fi
3893     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3894     echo "$ac_t""yes" 1>&6
3895     :
3896     else
3897     echo "$ac_t""no" 1>&6
3898     fi
3899    
3900     if [ "x$ac_cv_header__sys_cam_cam_h" = "xno" ]; then
3901     { echo "configure: error: Cannot find kernel includes for CAM library." 1>&2; exit 1; }
3902     fi
3903 cebix 1.9 SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp audio_oss_esd.cpp"
3904 cebix 1.1 CXXFLAGS="$CXXFLAGS -I/sys"
3905     CFLAGS="$CFLAGS -I/sys"
3906     LIBS="$LIBS -lcam"
3907     DEFINES="$DEFINES -DBSD_COMP -DCAM"
3908     fi
3909     ;;
3910     FreeBSD*)
3911     echo $ac_n "checking for scsi_open in -lscsi""... $ac_c" 1>&6
3912 cebix 1.16 echo "configure:3913: checking for scsi_open in -lscsi" >&5
3913 cebix 1.1 ac_lib_var=`echo scsi'_'scsi_open | sed 'y%./+-%__p_%'`
3914     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3915     echo $ac_n "(cached) $ac_c" 1>&6
3916     else
3917     ac_save_LIBS="$LIBS"
3918     LIBS="-lscsi $LIBS"
3919     cat > conftest.$ac_ext <<EOF
3920 cebix 1.16 #line 3921 "configure"
3921 cebix 1.1 #include "confdefs.h"
3922     /* Override any gcc2 internal prototype to avoid an error. */
3923     /* We use char because int might match the return type of a gcc2
3924     builtin and then its argument prototype would still apply. */
3925     char scsi_open();
3926    
3927     int main() {
3928     scsi_open()
3929     ; return 0; }
3930     EOF
3931 cebix 1.16 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3932 cebix 1.1 rm -rf conftest*
3933     eval "ac_cv_lib_$ac_lib_var=yes"
3934     else
3935     echo "configure: failed program was:" >&5
3936     cat conftest.$ac_ext >&5
3937     rm -rf conftest*
3938     eval "ac_cv_lib_$ac_lib_var=no"
3939     fi
3940     rm -f conftest*
3941     LIBS="$ac_save_LIBS"
3942    
3943     fi
3944     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3945     echo "$ac_t""yes" 1>&6
3946     HAVE_LIBSCSI=yes
3947     else
3948     echo "$ac_t""no" 1>&6
3949     HAVE_LIBSCSI=no
3950     fi
3951    
3952     if [ "x$HAVE_LIBSCSI" = "xno" ]; then
3953     { echo "configure: error: Cannot find libscsi for SCSI management." 1>&2; exit 1; }
3954     else
3955     ac_safe=`echo "scsi.h sys/scsiio.h" | sed 'y%./+-%__p_%'`
3956     echo $ac_n "checking for scsi.h sys/scsiio.h""... $ac_c" 1>&6
3957 cebix 1.16 echo "configure:3958: checking for scsi.h sys/scsiio.h" >&5
3958 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3959     echo $ac_n "(cached) $ac_c" 1>&6
3960     else
3961     cat > conftest.$ac_ext <<EOF
3962 cebix 1.16 #line 3963 "configure"
3963 cebix 1.1 #include "confdefs.h"
3964     #include <scsi.h sys/scsiio.h>
3965     EOF
3966     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3967 cebix 1.16 { (eval echo configure:3968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3968 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3969     if test -z "$ac_err"; then
3970     rm -rf conftest*
3971     eval "ac_cv_header_$ac_safe=yes"
3972     else
3973     echo "$ac_err" >&5
3974     echo "configure: failed program was:" >&5
3975     cat conftest.$ac_ext >&5
3976     rm -rf conftest*
3977     eval "ac_cv_header_$ac_safe=no"
3978     fi
3979     rm -f conftest*
3980     fi
3981     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3982     echo "$ac_t""yes" 1>&6
3983     :
3984     else
3985     echo "$ac_t""no" 1>&6
3986     fi
3987    
3988     if [ "x$ac_cv_header_scsi_h" = "xno" ]; then
3989     { echo "configure: error: Cannot find includes for the SCSI library." 1>&2; exit 1; }
3990     fi
3991     SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp ../dummy/audio_dummy.cpp"
3992     LIBS="$LIBS -lscsi"
3993     DEFINES="$DEFINES -DBSD_COMP"
3994     fi
3995     ;;
3996     SunOS*)
3997     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp Solaris/audio_solaris.cpp"
3998     DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS"
3999     ;;
4000     IRIX*)
4001     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp Irix/unaligned.c"
4002     DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200"
4003     LIBS="$LIBS -lm"
4004     ;;
4005     esac
4006 cebix 1.7 fi
4007 cebix 1.10 SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS"
4008 cebix 1.1
4009     HAVE_I386=no
4010     echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
4011 cebix 1.16 echo "configure:4012: checking for x86 target CPU" >&5
4012 cebix 1.1 cat > conftest.$ac_ext <<EOF
4013 cebix 1.16 #line 4014 "configure"
4014 cebix 1.1 #include "confdefs.h"
4015    
4016     #ifdef __i386__
4017     yes
4018     #endif
4019    
4020     EOF
4021     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022     egrep "yes" >/dev/null 2>&1; then
4023     rm -rf conftest*
4024     echo "$ac_t""yes" 1>&6; HAVE_I386=yes
4025     else
4026     rm -rf conftest*
4027     echo "$ac_t""no" 1>&6
4028     fi
4029     rm -f conftest*
4030    
4031    
4032 cebix 1.8 HAVE_SPARC=no
4033     echo $ac_n "checking for SPARC target CPU""... $ac_c" 1>&6
4034 cebix 1.16 echo "configure:4035: checking for SPARC target CPU" >&5
4035 cebix 1.8 cat > conftest.$ac_ext <<EOF
4036 cebix 1.16 #line 4037 "configure"
4037 cebix 1.8 #include "confdefs.h"
4038    
4039     #ifdef __sparc__
4040     yes
4041     #endif
4042    
4043     EOF
4044     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4045     egrep "yes" >/dev/null 2>&1; then
4046     rm -rf conftest*
4047     echo "$ac_t""yes" 1>&6; HAVE_SPARC=yes
4048     else
4049     rm -rf conftest*
4050     echo "$ac_t""no" 1>&6
4051     fi
4052     rm -f conftest*
4053    
4054    
4055 cebix 1.1 HAVE_GAS=no
4056     echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
4057 cebix 1.16 echo "configure:4058: checking for GAS .p2align feature" >&5
4058 cebix 1.1 cat >conftest.S << EOF
4059     .text
4060     .p2align 5
4061     EOF
4062     if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi
4063     echo "$ac_t""$HAVE_GAS" 1>&6
4064    
4065     HAVE_GCC27=no
4066     echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
4067 cebix 1.16 echo "configure:4068: checking for GCC 2.7 or higher" >&5
4068 cebix 1.1 cat > conftest.$ac_ext <<EOF
4069 cebix 1.16 #line 4070 "configure"
4070 cebix 1.1 #include "confdefs.h"
4071     #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
4072     yes
4073     #endif
4074    
4075     EOF
4076     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077     egrep "yes" >/dev/null 2>&1; then
4078     rm -rf conftest*
4079     echo "$ac_t""yes" 1>&6; HAVE_GCC27=yes
4080     else
4081     rm -rf conftest*
4082     echo "$ac_t""no" 1>&6
4083     fi
4084     rm -f conftest*
4085    
4086    
4087     if [ "x$HAVE_GCC27" = "xyes" ]; then
4088     CFLAGS="$CFLAGS -fomit-frame-pointer"
4089     CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
4090     fi
4091    
4092 cebix 1.11 WANT_X86_ASSEMBLY=no
4093     WANT_SPARC_V8_ASSEMBLY=no
4094     WANT_SPARC_V9_ASSEMBLY=no
4095 cebix 1.8 CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
4096 cebix 1.1 if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then
4097 cebix 1.8 DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
4098 cebix 1.1 if [ "x$HAVE_GAS" = "xyes" ]; then
4099 cebix 1.11 WANT_X86_ASSEMBLY=yes
4100 cebix 1.1 DEFINES="$DEFINES -DX86_ASSEMBLY"
4101 cebix 1.15 CPUSRCS="../uae_cpu/compiler.cpp cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
4102 cebix 1.1 fi
4103 cebix 1.8 elif [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then
4104     case "$MACHINE" in
4105     SunOS*)
4106     echo $ac_n "checking SPARC CPU architecture""... $ac_c" 1>&6
4107 cebix 1.16 echo "configure:4108: checking SPARC CPU architecture" >&5
4108 cebix 1.8 SPARC_TYPE=`Solaris/which_sparc`
4109     echo "$ac_t""$SPARC_TYPE" 1>&6
4110     case "$SPARC_TYPE" in
4111     SPARC_V8)
4112 cebix 1.11 WANT_SPARC_V8_ASSEMBLY=yes
4113 cebix 1.8 DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"
4114     CFLAGS="$CFLAGS -Wa,-Av8"
4115     CXXFLAGS="$CXXFLAGS -Wa,-Av8"
4116     ;;
4117     SPARC_V9)
4118 cebix 1.11 WANT_SPARC_V9_ASSEMBLY=yes
4119 cebix 1.8 DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"
4120     CFLAGS="$CFLAGS -Wa,-Av9"
4121     CXXFLAGS="$CXXFLAGS -Wa,-Av9"
4122     ;;
4123     esac
4124     ;;
4125     esac
4126 cebix 1.1 fi
4127 cebix 1.8
4128     CPUINCLUDES="-I../uae_cpu"
4129     CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp $CPUSRCS"
4130 cebix 1.1
4131    
4132    
4133    
4134    
4135     trap '' 1 2 15
4136     cat > confcache <<\EOF
4137     # This file is a shell script that caches the results of configure
4138     # tests run on this system so they can be shared between configure
4139     # scripts and configure runs. It is not useful on other systems.
4140     # If it contains results you don't want to keep, you may remove or edit it.
4141     #
4142     # By default, configure uses ./config.cache as the cache file,
4143     # creating it if it does not exist already. You can give configure
4144     # the --cache-file=FILE option to use a different cache file; that is
4145     # what configure does when it calls configure scripts in
4146     # subdirectories, so they share the cache.
4147     # Giving --cache-file=/dev/null disables caching, for debugging configure.
4148     # config.status only pays attention to the cache file if you give it the
4149     # --recheck option to rerun configure.
4150     #
4151     EOF
4152     # The following way of writing the cache mishandles newlines in values,
4153     # but we know of no workaround that is simple, portable, and efficient.
4154     # So, don't put newlines in cache variables' values.
4155     # Ultrix sh set writes to stderr and can't be redirected directly,
4156     # and sets the high bit in the cache file unless we assign to the vars.
4157     (set) 2>&1 |
4158     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4159     *ac_space=\ *)
4160     # `set' does not quote correctly, so add quotes (double-quote substitution
4161     # turns \\\\ into \\, and sed turns \\ into \).
4162     sed -n \
4163     -e "s/'/'\\\\''/g" \
4164     -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4165     ;;
4166     *)
4167     # `set' quotes correctly as required by POSIX, so do not add quotes.
4168     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4169     ;;
4170     esac >> confcache
4171     if cmp -s $cache_file confcache; then
4172     :
4173     else
4174     if test -w $cache_file; then
4175     echo "updating cache $cache_file"
4176     cat confcache > $cache_file
4177     else
4178     echo "not updating unwritable cache $cache_file"
4179     fi
4180     fi
4181     rm -f confcache
4182    
4183     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4184    
4185     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4186     # Let make expand exec_prefix.
4187     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4188    
4189     # Any assignment to VPATH causes Sun make to only execute
4190     # the first set of double-colon rules, so remove it if not needed.
4191     # If there is a colon in the path, we need to keep it.
4192     if test "x$srcdir" = x.; then
4193     ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4194     fi
4195    
4196     trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4197    
4198     DEFS=-DHAVE_CONFIG_H
4199    
4200     # Without the "./", some shells look in PATH for config.status.
4201     : ${CONFIG_STATUS=./config.status}
4202    
4203     echo creating $CONFIG_STATUS
4204     rm -f $CONFIG_STATUS
4205     cat > $CONFIG_STATUS <<EOF
4206     #! /bin/sh
4207     # Generated automatically by configure.
4208     # Run this file to recreate the current configuration.
4209     # This directory was configured as follows,
4210     # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4211     #
4212     # $0 $ac_configure_args
4213     #
4214     # Compiler output produced by configure, useful for debugging
4215     # configure, is in ./config.log if it exists.
4216    
4217     ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4218     for ac_option
4219     do
4220     case "\$ac_option" in
4221     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4222     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4223     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4224     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4225     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4226     exit 0 ;;
4227     -help | --help | --hel | --he | --h)
4228     echo "\$ac_cs_usage"; exit 0 ;;
4229     *) echo "\$ac_cs_usage"; exit 1 ;;
4230     esac
4231     done
4232    
4233     ac_given_srcdir=$srcdir
4234     ac_given_INSTALL="$INSTALL"
4235    
4236     trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4237     EOF
4238     cat >> $CONFIG_STATUS <<EOF
4239    
4240     # Protect against being on the right side of a sed subst in config.status.
4241     sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4242     s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4243     $ac_vpsub
4244     $extrasub
4245     s%@SHELL@%$SHELL%g
4246     s%@CFLAGS@%$CFLAGS%g
4247     s%@CPPFLAGS@%$CPPFLAGS%g
4248     s%@CXXFLAGS@%$CXXFLAGS%g
4249     s%@FFLAGS@%$FFLAGS%g
4250     s%@DEFS@%$DEFS%g
4251     s%@LDFLAGS@%$LDFLAGS%g
4252     s%@LIBS@%$LIBS%g
4253     s%@exec_prefix@%$exec_prefix%g
4254     s%@prefix@%$prefix%g
4255     s%@program_transform_name@%$program_transform_name%g
4256     s%@bindir@%$bindir%g
4257     s%@sbindir@%$sbindir%g
4258     s%@libexecdir@%$libexecdir%g
4259     s%@datadir@%$datadir%g
4260     s%@sysconfdir@%$sysconfdir%g
4261     s%@sharedstatedir@%$sharedstatedir%g
4262     s%@localstatedir@%$localstatedir%g
4263     s%@libdir@%$libdir%g
4264     s%@includedir@%$includedir%g
4265     s%@oldincludedir@%$oldincludedir%g
4266     s%@infodir@%$infodir%g
4267     s%@mandir@%$mandir%g
4268     s%@CC@%$CC%g
4269 cebix 1.3 s%@CPP@%$CPP%g
4270 cebix 1.1 s%@CXX@%$CXX%g
4271     s%@SET_MAKE@%$SET_MAKE%g
4272     s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4273     s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4274     s%@INSTALL_DATA@%$INSTALL_DATA%g
4275     s%@X_CFLAGS@%$X_CFLAGS%g
4276     s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4277     s%@X_LIBS@%$X_LIBS%g
4278     s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4279     s%@GTK_CONFIG@%$GTK_CONFIG%g
4280     s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4281     s%@GTK_LIBS@%$GTK_LIBS%g
4282 cebix 1.9 s%@ESD_CONFIG@%$ESD_CONFIG%g
4283     s%@ESD_CFLAGS@%$ESD_CFLAGS%g
4284     s%@ESD_LIBS@%$ESD_LIBS%g
4285 cebix 1.1 s%@DEFINES@%$DEFINES%g
4286     s%@SYSSRCS@%$SYSSRCS%g
4287     s%@CPUINCLUDES@%$CPUINCLUDES%g
4288     s%@CPUSRCS@%$CPUSRCS%g
4289    
4290     CEOF
4291     EOF
4292    
4293     cat >> $CONFIG_STATUS <<\EOF
4294    
4295     # Split the substitutions into bite-sized pieces for seds with
4296     # small command number limits, like on Digital OSF/1 and HP-UX.
4297     ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4298     ac_file=1 # Number of current file.
4299     ac_beg=1 # First line for current file.
4300     ac_end=$ac_max_sed_cmds # Line after last line for current file.
4301     ac_more_lines=:
4302     ac_sed_cmds=""
4303     while $ac_more_lines; do
4304     if test $ac_beg -gt 1; then
4305     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4306     else
4307     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4308     fi
4309     if test ! -s conftest.s$ac_file; then
4310     ac_more_lines=false
4311     rm -f conftest.s$ac_file
4312     else
4313     if test -z "$ac_sed_cmds"; then
4314     ac_sed_cmds="sed -f conftest.s$ac_file"
4315     else
4316     ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4317     fi
4318     ac_file=`expr $ac_file + 1`
4319     ac_beg=$ac_end
4320     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4321     fi
4322     done
4323     if test -z "$ac_sed_cmds"; then
4324     ac_sed_cmds=cat
4325     fi
4326     EOF
4327    
4328     cat >> $CONFIG_STATUS <<EOF
4329    
4330     CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4331     EOF
4332     cat >> $CONFIG_STATUS <<\EOF
4333     for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4334     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4335     case "$ac_file" in
4336     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4337     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4338     *) ac_file_in="${ac_file}.in" ;;
4339     esac
4340    
4341     # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4342    
4343     # Remove last slash and all that follows it. Not all systems have dirname.
4344     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4345     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4346     # The file is in a subdirectory.
4347     test ! -d "$ac_dir" && mkdir "$ac_dir"
4348     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4349     # A "../" for each directory in $ac_dir_suffix.
4350     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4351     else
4352     ac_dir_suffix= ac_dots=
4353     fi
4354    
4355     case "$ac_given_srcdir" in
4356     .) srcdir=.
4357     if test -z "$ac_dots"; then top_srcdir=.
4358     else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4359     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4360     *) # Relative path.
4361     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4362     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4363     esac
4364    
4365     case "$ac_given_INSTALL" in
4366     [/$]*) INSTALL="$ac_given_INSTALL" ;;
4367     *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4368     esac
4369    
4370     echo creating "$ac_file"
4371     rm -f "$ac_file"
4372     configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4373     case "$ac_file" in
4374     *Makefile*) ac_comsub="1i\\
4375     # $configure_input" ;;
4376     *) ac_comsub= ;;
4377     esac
4378    
4379     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4380     sed -e "$ac_comsub
4381     s%@configure_input@%$configure_input%g
4382     s%@srcdir@%$srcdir%g
4383     s%@top_srcdir@%$top_srcdir%g
4384     s%@INSTALL@%$INSTALL%g
4385     " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4386     fi; done
4387     rm -f conftest.s*
4388    
4389     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4390     # NAME is the cpp macro being defined and VALUE is the value it is being given.
4391     #
4392     # ac_d sets the value in "#define NAME VALUE" lines.
4393     ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4394     ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4395     ac_dC='\3'
4396     ac_dD='%g'
4397     # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4398     ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4399     ac_uB='\([ ]\)%\1#\2define\3'
4400     ac_uC=' '
4401     ac_uD='\4%g'
4402     # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4403     ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4404     ac_eB='$%\1#\2define\3'
4405     ac_eC=' '
4406     ac_eD='%g'
4407    
4408     if test "${CONFIG_HEADERS+set}" != set; then
4409     EOF
4410     cat >> $CONFIG_STATUS <<EOF
4411     CONFIG_HEADERS="config.h"
4412     EOF
4413     cat >> $CONFIG_STATUS <<\EOF
4414     fi
4415     for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4416     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4417     case "$ac_file" in
4418     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4419     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4420     *) ac_file_in="${ac_file}.in" ;;
4421     esac
4422    
4423     echo creating $ac_file
4424    
4425     rm -f conftest.frag conftest.in conftest.out
4426     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4427     cat $ac_file_inputs > conftest.in
4428    
4429     EOF
4430    
4431     # Transform confdefs.h into a sed script conftest.vals that substitutes
4432     # the proper values into config.h.in to produce config.h. And first:
4433     # Protect against being on the right side of a sed subst in config.status.
4434     # Protect against being in an unquoted here document in config.status.
4435     rm -f conftest.vals
4436     cat > conftest.hdr <<\EOF
4437     s/[\\&%]/\\&/g
4438     s%[\\$`]%\\&%g
4439     s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4440     s%ac_d%ac_u%gp
4441     s%ac_u%ac_e%gp
4442     EOF
4443     sed -n -f conftest.hdr confdefs.h > conftest.vals
4444     rm -f conftest.hdr
4445    
4446     # This sed command replaces #undef with comments. This is necessary, for
4447     # example, in the case of _POSIX_SOURCE, which is predefined and required
4448     # on some systems where configure will not decide to define it.
4449     cat >> conftest.vals <<\EOF
4450     s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4451     EOF
4452    
4453     # Break up conftest.vals because some shells have a limit on
4454     # the size of here documents, and old seds have small limits too.
4455    
4456     rm -f conftest.tail
4457     while :
4458     do
4459     ac_lines=`grep -c . conftest.vals`
4460     # grep -c gives empty output for an empty file on some AIX systems.
4461     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4462     # Write a limited-size here document to conftest.frag.
4463     echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4464     sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4465     echo 'CEOF
4466     sed -f conftest.frag conftest.in > conftest.out
4467     rm -f conftest.in
4468     mv conftest.out conftest.in
4469     ' >> $CONFIG_STATUS
4470     sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4471     rm -f conftest.vals
4472     mv conftest.tail conftest.vals
4473     done
4474     rm -f conftest.vals
4475    
4476     cat >> $CONFIG_STATUS <<\EOF
4477     rm -f conftest.frag conftest.h
4478     echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4479     cat conftest.in >> conftest.h
4480     rm -f conftest.in
4481     if cmp -s $ac_file conftest.h 2>/dev/null; then
4482     echo "$ac_file is unchanged"
4483     rm -f conftest.h
4484     else
4485     # Remove last slash and all that follows it. Not all systems have dirname.
4486     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4487     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4488     # The file is in a subdirectory.
4489     test ! -d "$ac_dir" && mkdir "$ac_dir"
4490     fi
4491     rm -f $ac_file
4492     mv conftest.h $ac_file
4493     fi
4494     fi; done
4495    
4496     EOF
4497     cat >> $CONFIG_STATUS <<EOF
4498    
4499     EOF
4500     cat >> $CONFIG_STATUS <<\EOF
4501    
4502     exit 0
4503     EOF
4504     chmod +x $CONFIG_STATUS
4505     rm -fr confdefs* $ac_clean_files
4506     test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4507    
4508 cebix 1.11
4509     echo
4510     echo Basilisk II configuration summary:
4511     echo
4512     echo XFree86 DGA support .............. : $WANT_XF86_DGA
4513 cebix 1.16 echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE
4514 cebix 1.11 echo fbdev DGA support ................ : $WANT_FBDEV_DGA
4515     echo ESD sound support ................ : $WANT_ESD
4516 cebix 1.13 echo GTK user interface ............... : $WANT_GTK
4517 cebix 1.11 echo mon debugger support ............. : $WANT_MON
4518     echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY
4519     echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY
4520     echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY
4521     echo
4522 cebix 1.1 echo "Configuration done. Now type \"make\"."