ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure
Revision: 1.17
Committed: 2000-04-14T18:45:56Z (24 years, 5 months ago) by cebix
Branch: MAIN
Changes since 1.16: +168 -166 lines
Log Message:
- "./configure --without-mon" now works

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 cebix 1.17 if [ "x$WANT_MON" = "xyes" ]; then
1160     echo $ac_n "checking for mon""... $ac_c" 1>&6
1161     echo "configure:1162: checking for mon" >&5
1162     if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then
1163     echo "$ac_t""yes" 1>&6
1164     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     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 cebix 1.17 for ac_hdr in readline/readline.h readline/history.h
1215 cebix 1.13 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.17 else
1255     echo "$ac_t""no" 1>&6
1256     echo "configure: warning: Could not find mon, ignoring --with-mon." 1>&2
1257     WANT_MON=no
1258     DEFINES="$DEFINES -DENABLE_MON=0"
1259     fi
1260 cebix 1.10 fi
1261    
1262 cebix 1.9 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1263 cebix 1.17 echo "configure:1264: checking for sem_init in -lposix4" >&5
1264 cebix 1.9 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1265     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1266     echo $ac_n "(cached) $ac_c" 1>&6
1267     else
1268     ac_save_LIBS="$LIBS"
1269     LIBS="-lposix4 $LIBS"
1270     cat > conftest.$ac_ext <<EOF
1271 cebix 1.17 #line 1272 "configure"
1272 cebix 1.9 #include "confdefs.h"
1273     /* Override any gcc2 internal prototype to avoid an error. */
1274     /* We use char because int might match the return type of a gcc2
1275     builtin and then its argument prototype would still apply. */
1276     char sem_init();
1277    
1278     int main() {
1279     sem_init()
1280     ; return 0; }
1281     EOF
1282 cebix 1.17 if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1283 cebix 1.9 rm -rf conftest*
1284     eval "ac_cv_lib_$ac_lib_var=yes"
1285     else
1286     echo "configure: failed program was:" >&5
1287     cat conftest.$ac_ext >&5
1288     rm -rf conftest*
1289     eval "ac_cv_lib_$ac_lib_var=no"
1290     fi
1291     rm -f conftest*
1292     LIBS="$ac_save_LIBS"
1293    
1294     fi
1295     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1296     echo "$ac_t""yes" 1>&6
1297     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1298     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1299     cat >> confdefs.h <<EOF
1300     #define $ac_tr_lib 1
1301     EOF
1302    
1303     LIBS="-lposix4 $LIBS"
1304    
1305     else
1306     echo "$ac_t""no" 1>&6
1307     fi
1308    
1309    
1310 cebix 1.1 # If we find X, set shell vars x_includes and x_libraries to the
1311     # paths, otherwise set no_x=yes.
1312     # Uses ac_ vars as temps to allow command line to override cache and checks.
1313     # --without-x overrides everything else, but does not touch the cache.
1314     echo $ac_n "checking for X""... $ac_c" 1>&6
1315 cebix 1.17 echo "configure:1316: checking for X" >&5
1316 cebix 1.1
1317     # Check whether --with-x or --without-x was given.
1318     if test "${with_x+set}" = set; then
1319     withval="$with_x"
1320     :
1321     fi
1322    
1323     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1324     if test "x$with_x" = xno; then
1325     # The user explicitly disabled X.
1326     have_x=disabled
1327     else
1328     if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1329     # Both variables are already set.
1330     have_x=yes
1331     else
1332     if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1333     echo $ac_n "(cached) $ac_c" 1>&6
1334     else
1335     # One or both of the vars are not set, and there is no cached value.
1336     ac_x_includes=NO ac_x_libraries=NO
1337     rm -fr conftestdir
1338     if mkdir conftestdir; then
1339     cd conftestdir
1340     # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1341     cat > Imakefile <<'EOF'
1342     acfindx:
1343     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1344     EOF
1345     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1346     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1347     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1348     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1349     for ac_extension in a so sl; do
1350     if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1351     test -f $ac_im_libdir/libX11.$ac_extension; then
1352     ac_im_usrlibdir=$ac_im_libdir; break
1353     fi
1354     done
1355     # Screen out bogus values from the imake configuration. They are
1356     # bogus both because they are the default anyway, and because
1357     # using them would break gcc on systems where it needs fixed includes.
1358     case "$ac_im_incroot" in
1359     /usr/include) ;;
1360     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1361     esac
1362     case "$ac_im_usrlibdir" in
1363     /usr/lib | /lib) ;;
1364     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1365     esac
1366     fi
1367     cd ..
1368     rm -fr conftestdir
1369     fi
1370    
1371     if test "$ac_x_includes" = NO; then
1372     # Guess where to find include files, by looking for this one X11 .h file.
1373     test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1374    
1375     # First, try using that file with no special directory specified.
1376     cat > conftest.$ac_ext <<EOF
1377 cebix 1.17 #line 1378 "configure"
1378 cebix 1.1 #include "confdefs.h"
1379     #include <$x_direct_test_include>
1380     EOF
1381     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1382 cebix 1.17 { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1383 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1384     if test -z "$ac_err"; then
1385     rm -rf conftest*
1386     # We can compile using X headers with no special include directory.
1387     ac_x_includes=
1388     else
1389     echo "$ac_err" >&5
1390     echo "configure: failed program was:" >&5
1391     cat conftest.$ac_ext >&5
1392     rm -rf conftest*
1393     # Look for the header file in a standard set of common directories.
1394     # Check X11 before X11Rn because it is often a symlink to the current release.
1395     for ac_dir in \
1396     /usr/X11/include \
1397     /usr/X11R6/include \
1398     /usr/X11R5/include \
1399     /usr/X11R4/include \
1400     \
1401     /usr/include/X11 \
1402     /usr/include/X11R6 \
1403     /usr/include/X11R5 \
1404     /usr/include/X11R4 \
1405     \
1406     /usr/local/X11/include \
1407     /usr/local/X11R6/include \
1408     /usr/local/X11R5/include \
1409     /usr/local/X11R4/include \
1410     \
1411     /usr/local/include/X11 \
1412     /usr/local/include/X11R6 \
1413     /usr/local/include/X11R5 \
1414     /usr/local/include/X11R4 \
1415     \
1416     /usr/X386/include \
1417     /usr/x386/include \
1418     /usr/XFree86/include/X11 \
1419     \
1420     /usr/include \
1421     /usr/local/include \
1422     /usr/unsupported/include \
1423     /usr/athena/include \
1424     /usr/local/x11r5/include \
1425     /usr/lpp/Xamples/include \
1426     \
1427     /usr/openwin/include \
1428     /usr/openwin/share/include \
1429     ; \
1430     do
1431     if test -r "$ac_dir/$x_direct_test_include"; then
1432     ac_x_includes=$ac_dir
1433     break
1434     fi
1435     done
1436     fi
1437     rm -f conftest*
1438     fi # $ac_x_includes = NO
1439    
1440     if test "$ac_x_libraries" = NO; then
1441     # Check for the libraries.
1442    
1443     test -z "$x_direct_test_library" && x_direct_test_library=Xt
1444     test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1445    
1446     # See if we find them without any special options.
1447     # Don't add to $LIBS permanently.
1448     ac_save_LIBS="$LIBS"
1449     LIBS="-l$x_direct_test_library $LIBS"
1450     cat > conftest.$ac_ext <<EOF
1451 cebix 1.17 #line 1452 "configure"
1452 cebix 1.1 #include "confdefs.h"
1453    
1454     int main() {
1455     ${x_direct_test_function}()
1456     ; return 0; }
1457     EOF
1458 cebix 1.17 if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1459 cebix 1.1 rm -rf conftest*
1460     LIBS="$ac_save_LIBS"
1461     # We can link X programs with no special library path.
1462     ac_x_libraries=
1463     else
1464     echo "configure: failed program was:" >&5
1465     cat conftest.$ac_ext >&5
1466     rm -rf conftest*
1467     LIBS="$ac_save_LIBS"
1468     # First see if replacing the include by lib works.
1469     # Check X11 before X11Rn because it is often a symlink to the current release.
1470     for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1471     /usr/X11/lib \
1472     /usr/X11R6/lib \
1473     /usr/X11R5/lib \
1474     /usr/X11R4/lib \
1475     \
1476     /usr/lib/X11 \
1477     /usr/lib/X11R6 \
1478     /usr/lib/X11R5 \
1479     /usr/lib/X11R4 \
1480     \
1481     /usr/local/X11/lib \
1482     /usr/local/X11R6/lib \
1483     /usr/local/X11R5/lib \
1484     /usr/local/X11R4/lib \
1485     \
1486     /usr/local/lib/X11 \
1487     /usr/local/lib/X11R6 \
1488     /usr/local/lib/X11R5 \
1489     /usr/local/lib/X11R4 \
1490     \
1491     /usr/X386/lib \
1492     /usr/x386/lib \
1493     /usr/XFree86/lib/X11 \
1494     \
1495     /usr/lib \
1496     /usr/local/lib \
1497     /usr/unsupported/lib \
1498     /usr/athena/lib \
1499     /usr/local/x11r5/lib \
1500     /usr/lpp/Xamples/lib \
1501     /lib/usr/lib/X11 \
1502     \
1503     /usr/openwin/lib \
1504     /usr/openwin/share/lib \
1505     ; \
1506     do
1507     for ac_extension in a so sl; do
1508     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1509     ac_x_libraries=$ac_dir
1510     break 2
1511     fi
1512     done
1513     done
1514     fi
1515     rm -f conftest*
1516     fi # $ac_x_libraries = NO
1517    
1518     if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1519     # Didn't find X anywhere. Cache the known absence of X.
1520     ac_cv_have_x="have_x=no"
1521     else
1522     # Record where we found X for the cache.
1523     ac_cv_have_x="have_x=yes \
1524     ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1525     fi
1526     fi
1527     fi
1528     eval "$ac_cv_have_x"
1529     fi # $with_x != no
1530    
1531     if test "$have_x" != yes; then
1532     echo "$ac_t""$have_x" 1>&6
1533     no_x=yes
1534     else
1535     # If each of the values was on the command line, it overrides each guess.
1536     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1537     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1538     # Update the cache value to reflect the command line values.
1539     ac_cv_have_x="have_x=yes \
1540     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1541     echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1542     fi
1543    
1544     if test "$no_x" = yes; then
1545     # Not all programs may use this symbol, but it does not hurt to define it.
1546     cat >> confdefs.h <<\EOF
1547     #define X_DISPLAY_MISSING 1
1548     EOF
1549    
1550     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1551     else
1552     if test -n "$x_includes"; then
1553     X_CFLAGS="$X_CFLAGS -I$x_includes"
1554     fi
1555    
1556     # It would also be nice to do this for all -L options, not just this one.
1557     if test -n "$x_libraries"; then
1558     X_LIBS="$X_LIBS -L$x_libraries"
1559     # For Solaris; some versions of Sun CC require a space after -R and
1560     # others require no space. Words are not sufficient . . . .
1561     case "`(uname -sr) 2>/dev/null`" in
1562     "SunOS 5"*)
1563     echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1564 cebix 1.17 echo "configure:1565: checking whether -R must be followed by a space" >&5
1565 cebix 1.1 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1566     cat > conftest.$ac_ext <<EOF
1567 cebix 1.17 #line 1568 "configure"
1568 cebix 1.1 #include "confdefs.h"
1569    
1570     int main() {
1571    
1572     ; return 0; }
1573     EOF
1574 cebix 1.17 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575 cebix 1.1 rm -rf conftest*
1576     ac_R_nospace=yes
1577     else
1578     echo "configure: failed program was:" >&5
1579     cat conftest.$ac_ext >&5
1580     rm -rf conftest*
1581     ac_R_nospace=no
1582     fi
1583     rm -f conftest*
1584     if test $ac_R_nospace = yes; then
1585     echo "$ac_t""no" 1>&6
1586     X_LIBS="$X_LIBS -R$x_libraries"
1587     else
1588     LIBS="$ac_xsave_LIBS -R $x_libraries"
1589     cat > conftest.$ac_ext <<EOF
1590 cebix 1.17 #line 1591 "configure"
1591 cebix 1.1 #include "confdefs.h"
1592    
1593     int main() {
1594    
1595     ; return 0; }
1596     EOF
1597 cebix 1.17 if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1598 cebix 1.1 rm -rf conftest*
1599     ac_R_space=yes
1600     else
1601     echo "configure: failed program was:" >&5
1602     cat conftest.$ac_ext >&5
1603     rm -rf conftest*
1604     ac_R_space=no
1605     fi
1606     rm -f conftest*
1607     if test $ac_R_space = yes; then
1608     echo "$ac_t""yes" 1>&6
1609     X_LIBS="$X_LIBS -R $x_libraries"
1610     else
1611     echo "$ac_t""neither works" 1>&6
1612     fi
1613     fi
1614     LIBS="$ac_xsave_LIBS"
1615     esac
1616     fi
1617    
1618     # Check for system-dependent libraries X programs must link with.
1619     # Do this before checking for the system-independent R6 libraries
1620     # (-lICE), since we may need -lsocket or whatever for X linking.
1621    
1622     if test "$ISC" = yes; then
1623     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1624     else
1625     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1626     # libraries were built with DECnet support. And karl@cs.umb.edu says
1627     # the Alpha needs dnet_stub (dnet does not exist).
1628     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1629 cebix 1.17 echo "configure:1630: checking for dnet_ntoa in -ldnet" >&5
1630 cebix 1.1 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1631     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1632     echo $ac_n "(cached) $ac_c" 1>&6
1633     else
1634     ac_save_LIBS="$LIBS"
1635     LIBS="-ldnet $LIBS"
1636     cat > conftest.$ac_ext <<EOF
1637 cebix 1.17 #line 1638 "configure"
1638 cebix 1.1 #include "confdefs.h"
1639     /* Override any gcc2 internal prototype to avoid an error. */
1640     /* We use char because int might match the return type of a gcc2
1641     builtin and then its argument prototype would still apply. */
1642     char dnet_ntoa();
1643    
1644     int main() {
1645     dnet_ntoa()
1646     ; return 0; }
1647     EOF
1648 cebix 1.17 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1649 cebix 1.1 rm -rf conftest*
1650     eval "ac_cv_lib_$ac_lib_var=yes"
1651     else
1652     echo "configure: failed program was:" >&5
1653     cat conftest.$ac_ext >&5
1654     rm -rf conftest*
1655     eval "ac_cv_lib_$ac_lib_var=no"
1656     fi
1657     rm -f conftest*
1658     LIBS="$ac_save_LIBS"
1659    
1660     fi
1661     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1662     echo "$ac_t""yes" 1>&6
1663     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1664     else
1665     echo "$ac_t""no" 1>&6
1666     fi
1667    
1668     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1669     echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1670 cebix 1.17 echo "configure:1671: checking for dnet_ntoa in -ldnet_stub" >&5
1671 cebix 1.1 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1672     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1673     echo $ac_n "(cached) $ac_c" 1>&6
1674     else
1675     ac_save_LIBS="$LIBS"
1676     LIBS="-ldnet_stub $LIBS"
1677     cat > conftest.$ac_ext <<EOF
1678 cebix 1.17 #line 1679 "configure"
1679 cebix 1.1 #include "confdefs.h"
1680     /* Override any gcc2 internal prototype to avoid an error. */
1681     /* We use char because int might match the return type of a gcc2
1682     builtin and then its argument prototype would still apply. */
1683     char dnet_ntoa();
1684    
1685     int main() {
1686     dnet_ntoa()
1687     ; return 0; }
1688     EOF
1689 cebix 1.17 if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1690 cebix 1.1 rm -rf conftest*
1691     eval "ac_cv_lib_$ac_lib_var=yes"
1692     else
1693     echo "configure: failed program was:" >&5
1694     cat conftest.$ac_ext >&5
1695     rm -rf conftest*
1696     eval "ac_cv_lib_$ac_lib_var=no"
1697     fi
1698     rm -f conftest*
1699     LIBS="$ac_save_LIBS"
1700    
1701     fi
1702     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1703     echo "$ac_t""yes" 1>&6
1704     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1705     else
1706     echo "$ac_t""no" 1>&6
1707     fi
1708    
1709     fi
1710    
1711     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1712     # to get the SysV transport functions.
1713     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1714     # needs -lnsl.
1715     # The nsl library prevents programs from opening the X display
1716     # on Irix 5.2, according to dickey@clark.net.
1717     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1718 cebix 1.17 echo "configure:1719: checking for gethostbyname" >&5
1719 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1720     echo $ac_n "(cached) $ac_c" 1>&6
1721     else
1722     cat > conftest.$ac_ext <<EOF
1723 cebix 1.17 #line 1724 "configure"
1724 cebix 1.1 #include "confdefs.h"
1725     /* System header to define __stub macros and hopefully few prototypes,
1726     which can conflict with char gethostbyname(); below. */
1727     #include <assert.h>
1728     /* Override any gcc2 internal prototype to avoid an error. */
1729     /* We use char because int might match the return type of a gcc2
1730     builtin and then its argument prototype would still apply. */
1731     char gethostbyname();
1732    
1733     int main() {
1734    
1735     /* The GNU C library defines this for functions which it implements
1736     to always fail with ENOSYS. Some functions are actually named
1737     something starting with __ and the normal name is an alias. */
1738     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1739     choke me
1740     #else
1741     gethostbyname();
1742     #endif
1743    
1744     ; return 0; }
1745     EOF
1746 cebix 1.17 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1747 cebix 1.1 rm -rf conftest*
1748     eval "ac_cv_func_gethostbyname=yes"
1749     else
1750     echo "configure: failed program was:" >&5
1751     cat conftest.$ac_ext >&5
1752     rm -rf conftest*
1753     eval "ac_cv_func_gethostbyname=no"
1754     fi
1755     rm -f conftest*
1756     fi
1757    
1758     if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1759     echo "$ac_t""yes" 1>&6
1760     :
1761     else
1762     echo "$ac_t""no" 1>&6
1763     fi
1764    
1765     if test $ac_cv_func_gethostbyname = no; then
1766     echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1767 cebix 1.17 echo "configure:1768: checking for gethostbyname in -lnsl" >&5
1768 cebix 1.1 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1769     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1770     echo $ac_n "(cached) $ac_c" 1>&6
1771     else
1772     ac_save_LIBS="$LIBS"
1773     LIBS="-lnsl $LIBS"
1774     cat > conftest.$ac_ext <<EOF
1775 cebix 1.17 #line 1776 "configure"
1776 cebix 1.1 #include "confdefs.h"
1777     /* Override any gcc2 internal prototype to avoid an error. */
1778     /* We use char because int might match the return type of a gcc2
1779     builtin and then its argument prototype would still apply. */
1780     char gethostbyname();
1781    
1782     int main() {
1783     gethostbyname()
1784     ; return 0; }
1785     EOF
1786 cebix 1.17 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 cebix 1.1 rm -rf conftest*
1788     eval "ac_cv_lib_$ac_lib_var=yes"
1789     else
1790     echo "configure: failed program was:" >&5
1791     cat conftest.$ac_ext >&5
1792     rm -rf conftest*
1793     eval "ac_cv_lib_$ac_lib_var=no"
1794     fi
1795     rm -f conftest*
1796     LIBS="$ac_save_LIBS"
1797    
1798     fi
1799     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1800     echo "$ac_t""yes" 1>&6
1801     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1802     else
1803     echo "$ac_t""no" 1>&6
1804     fi
1805    
1806     fi
1807    
1808     # lieder@skyler.mavd.honeywell.com says without -lsocket,
1809     # socket/setsockopt and other routines are undefined under SCO ODT
1810     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1811     # on later versions), says simon@lia.di.epfl.ch: it contains
1812     # gethostby* variants that don't use the nameserver (or something).
1813     # -lsocket must be given before -lnsl if both are needed.
1814     # We assume that if connect needs -lnsl, so does gethostbyname.
1815     echo $ac_n "checking for connect""... $ac_c" 1>&6
1816 cebix 1.17 echo "configure:1817: checking for connect" >&5
1817 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1818     echo $ac_n "(cached) $ac_c" 1>&6
1819     else
1820     cat > conftest.$ac_ext <<EOF
1821 cebix 1.17 #line 1822 "configure"
1822 cebix 1.1 #include "confdefs.h"
1823     /* System header to define __stub macros and hopefully few prototypes,
1824     which can conflict with char connect(); below. */
1825     #include <assert.h>
1826     /* Override any gcc2 internal prototype to avoid an error. */
1827     /* We use char because int might match the return type of a gcc2
1828     builtin and then its argument prototype would still apply. */
1829     char connect();
1830    
1831     int main() {
1832    
1833     /* The GNU C library defines this for functions which it implements
1834     to always fail with ENOSYS. Some functions are actually named
1835     something starting with __ and the normal name is an alias. */
1836     #if defined (__stub_connect) || defined (__stub___connect)
1837     choke me
1838     #else
1839     connect();
1840     #endif
1841    
1842     ; return 0; }
1843     EOF
1844 cebix 1.17 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1845 cebix 1.1 rm -rf conftest*
1846     eval "ac_cv_func_connect=yes"
1847     else
1848     echo "configure: failed program was:" >&5
1849     cat conftest.$ac_ext >&5
1850     rm -rf conftest*
1851     eval "ac_cv_func_connect=no"
1852     fi
1853     rm -f conftest*
1854     fi
1855    
1856     if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1857     echo "$ac_t""yes" 1>&6
1858     :
1859     else
1860     echo "$ac_t""no" 1>&6
1861     fi
1862    
1863     if test $ac_cv_func_connect = no; then
1864     echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1865 cebix 1.17 echo "configure:1866: checking for connect in -lsocket" >&5
1866 cebix 1.1 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1867     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1868     echo $ac_n "(cached) $ac_c" 1>&6
1869     else
1870     ac_save_LIBS="$LIBS"
1871     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1872     cat > conftest.$ac_ext <<EOF
1873 cebix 1.17 #line 1874 "configure"
1874 cebix 1.1 #include "confdefs.h"
1875     /* Override any gcc2 internal prototype to avoid an error. */
1876     /* We use char because int might match the return type of a gcc2
1877     builtin and then its argument prototype would still apply. */
1878     char connect();
1879    
1880     int main() {
1881     connect()
1882     ; return 0; }
1883     EOF
1884 cebix 1.17 if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1885 cebix 1.1 rm -rf conftest*
1886     eval "ac_cv_lib_$ac_lib_var=yes"
1887     else
1888     echo "configure: failed program was:" >&5
1889     cat conftest.$ac_ext >&5
1890     rm -rf conftest*
1891     eval "ac_cv_lib_$ac_lib_var=no"
1892     fi
1893     rm -f conftest*
1894     LIBS="$ac_save_LIBS"
1895    
1896     fi
1897     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1898     echo "$ac_t""yes" 1>&6
1899     X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1900     else
1901     echo "$ac_t""no" 1>&6
1902     fi
1903    
1904     fi
1905    
1906     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1907     echo $ac_n "checking for remove""... $ac_c" 1>&6
1908 cebix 1.17 echo "configure:1909: checking for remove" >&5
1909 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1910     echo $ac_n "(cached) $ac_c" 1>&6
1911     else
1912     cat > conftest.$ac_ext <<EOF
1913 cebix 1.17 #line 1914 "configure"
1914 cebix 1.1 #include "confdefs.h"
1915     /* System header to define __stub macros and hopefully few prototypes,
1916     which can conflict with char remove(); below. */
1917     #include <assert.h>
1918     /* Override any gcc2 internal prototype to avoid an error. */
1919     /* We use char because int might match the return type of a gcc2
1920     builtin and then its argument prototype would still apply. */
1921     char remove();
1922    
1923     int main() {
1924    
1925     /* The GNU C library defines this for functions which it implements
1926     to always fail with ENOSYS. Some functions are actually named
1927     something starting with __ and the normal name is an alias. */
1928     #if defined (__stub_remove) || defined (__stub___remove)
1929     choke me
1930     #else
1931     remove();
1932     #endif
1933    
1934     ; return 0; }
1935     EOF
1936 cebix 1.17 if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1937 cebix 1.1 rm -rf conftest*
1938     eval "ac_cv_func_remove=yes"
1939     else
1940     echo "configure: failed program was:" >&5
1941     cat conftest.$ac_ext >&5
1942     rm -rf conftest*
1943     eval "ac_cv_func_remove=no"
1944     fi
1945     rm -f conftest*
1946     fi
1947    
1948     if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1949     echo "$ac_t""yes" 1>&6
1950     :
1951     else
1952     echo "$ac_t""no" 1>&6
1953     fi
1954    
1955     if test $ac_cv_func_remove = no; then
1956     echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1957 cebix 1.17 echo "configure:1958: checking for remove in -lposix" >&5
1958 cebix 1.1 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1959     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1960     echo $ac_n "(cached) $ac_c" 1>&6
1961     else
1962     ac_save_LIBS="$LIBS"
1963     LIBS="-lposix $LIBS"
1964     cat > conftest.$ac_ext <<EOF
1965 cebix 1.17 #line 1966 "configure"
1966 cebix 1.1 #include "confdefs.h"
1967     /* Override any gcc2 internal prototype to avoid an error. */
1968     /* We use char because int might match the return type of a gcc2
1969     builtin and then its argument prototype would still apply. */
1970     char remove();
1971    
1972     int main() {
1973     remove()
1974     ; return 0; }
1975     EOF
1976 cebix 1.17 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977 cebix 1.1 rm -rf conftest*
1978     eval "ac_cv_lib_$ac_lib_var=yes"
1979     else
1980     echo "configure: failed program was:" >&5
1981     cat conftest.$ac_ext >&5
1982     rm -rf conftest*
1983     eval "ac_cv_lib_$ac_lib_var=no"
1984     fi
1985     rm -f conftest*
1986     LIBS="$ac_save_LIBS"
1987    
1988     fi
1989     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1990     echo "$ac_t""yes" 1>&6
1991     X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1992     else
1993     echo "$ac_t""no" 1>&6
1994     fi
1995    
1996     fi
1997    
1998     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1999     echo $ac_n "checking for shmat""... $ac_c" 1>&6
2000 cebix 1.17 echo "configure:2001: checking for shmat" >&5
2001 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2002     echo $ac_n "(cached) $ac_c" 1>&6
2003     else
2004     cat > conftest.$ac_ext <<EOF
2005 cebix 1.17 #line 2006 "configure"
2006 cebix 1.1 #include "confdefs.h"
2007     /* System header to define __stub macros and hopefully few prototypes,
2008     which can conflict with char shmat(); below. */
2009     #include <assert.h>
2010     /* Override any gcc2 internal prototype to avoid an error. */
2011     /* We use char because int might match the return type of a gcc2
2012     builtin and then its argument prototype would still apply. */
2013     char shmat();
2014    
2015     int main() {
2016    
2017     /* The GNU C library defines this for functions which it implements
2018     to always fail with ENOSYS. Some functions are actually named
2019     something starting with __ and the normal name is an alias. */
2020     #if defined (__stub_shmat) || defined (__stub___shmat)
2021     choke me
2022     #else
2023     shmat();
2024     #endif
2025    
2026     ; return 0; }
2027     EOF
2028 cebix 1.17 if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2029 cebix 1.1 rm -rf conftest*
2030     eval "ac_cv_func_shmat=yes"
2031     else
2032     echo "configure: failed program was:" >&5
2033     cat conftest.$ac_ext >&5
2034     rm -rf conftest*
2035     eval "ac_cv_func_shmat=no"
2036     fi
2037     rm -f conftest*
2038     fi
2039    
2040     if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2041     echo "$ac_t""yes" 1>&6
2042     :
2043     else
2044     echo "$ac_t""no" 1>&6
2045     fi
2046    
2047     if test $ac_cv_func_shmat = no; then
2048     echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2049 cebix 1.17 echo "configure:2050: checking for shmat in -lipc" >&5
2050 cebix 1.1 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2051     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2052     echo $ac_n "(cached) $ac_c" 1>&6
2053     else
2054     ac_save_LIBS="$LIBS"
2055     LIBS="-lipc $LIBS"
2056     cat > conftest.$ac_ext <<EOF
2057 cebix 1.17 #line 2058 "configure"
2058 cebix 1.1 #include "confdefs.h"
2059     /* Override any gcc2 internal prototype to avoid an error. */
2060     /* We use char because int might match the return type of a gcc2
2061     builtin and then its argument prototype would still apply. */
2062     char shmat();
2063    
2064     int main() {
2065     shmat()
2066     ; return 0; }
2067     EOF
2068 cebix 1.17 if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2069 cebix 1.1 rm -rf conftest*
2070     eval "ac_cv_lib_$ac_lib_var=yes"
2071     else
2072     echo "configure: failed program was:" >&5
2073     cat conftest.$ac_ext >&5
2074     rm -rf conftest*
2075     eval "ac_cv_lib_$ac_lib_var=no"
2076     fi
2077     rm -f conftest*
2078     LIBS="$ac_save_LIBS"
2079    
2080     fi
2081     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2082     echo "$ac_t""yes" 1>&6
2083     X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2084     else
2085     echo "$ac_t""no" 1>&6
2086     fi
2087    
2088     fi
2089     fi
2090    
2091     # Check for libraries that X11R6 Xt/Xaw programs need.
2092     ac_save_LDFLAGS="$LDFLAGS"
2093     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2094     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2095     # check for ICE first), but we must link in the order -lSM -lICE or
2096     # we get undefined symbols. So assume we have SM if we have ICE.
2097     # These have to be linked with before -lX11, unlike the other
2098     # libraries we check for below, so use a different variable.
2099     # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2100     echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2101 cebix 1.17 echo "configure:2102: checking for IceConnectionNumber in -lICE" >&5
2102 cebix 1.1 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2103     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2104     echo $ac_n "(cached) $ac_c" 1>&6
2105     else
2106     ac_save_LIBS="$LIBS"
2107     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2108     cat > conftest.$ac_ext <<EOF
2109 cebix 1.17 #line 2110 "configure"
2110 cebix 1.1 #include "confdefs.h"
2111     /* Override any gcc2 internal prototype to avoid an error. */
2112     /* We use char because int might match the return type of a gcc2
2113     builtin and then its argument prototype would still apply. */
2114     char IceConnectionNumber();
2115    
2116     int main() {
2117     IceConnectionNumber()
2118     ; return 0; }
2119     EOF
2120 cebix 1.17 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2121 cebix 1.1 rm -rf conftest*
2122     eval "ac_cv_lib_$ac_lib_var=yes"
2123     else
2124     echo "configure: failed program was:" >&5
2125     cat conftest.$ac_ext >&5
2126     rm -rf conftest*
2127     eval "ac_cv_lib_$ac_lib_var=no"
2128     fi
2129     rm -f conftest*
2130     LIBS="$ac_save_LIBS"
2131    
2132     fi
2133     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2134     echo "$ac_t""yes" 1>&6
2135     X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2136     else
2137     echo "$ac_t""no" 1>&6
2138     fi
2139    
2140     LDFLAGS="$ac_save_LDFLAGS"
2141    
2142     fi
2143    
2144     if [ "x$no_x" = "xyes" ]; then
2145     { echo "configure: error: You need X11 to run Basilisk II." 1>&2; exit 1; }
2146     fi
2147     CFLAGS="$CFLAGS $X_CFLAGS"
2148     CXXFLAGS="$CXXFLAGS $X_CFLAGS"
2149     LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
2150    
2151     echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2152 cebix 1.17 echo "configure:2153: checking for pthread_create in -lpthread" >&5
2153 cebix 1.1 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2154     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2155     echo $ac_n "(cached) $ac_c" 1>&6
2156     else
2157     ac_save_LIBS="$LIBS"
2158     LIBS="-lpthread $LIBS"
2159     cat > conftest.$ac_ext <<EOF
2160 cebix 1.17 #line 2161 "configure"
2161 cebix 1.1 #include "confdefs.h"
2162     /* Override any gcc2 internal prototype to avoid an error. */
2163     /* We use char because int might match the return type of a gcc2
2164     builtin and then its argument prototype would still apply. */
2165     char pthread_create();
2166    
2167     int main() {
2168     pthread_create()
2169     ; return 0; }
2170     EOF
2171 cebix 1.17 if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2172 cebix 1.1 rm -rf conftest*
2173     eval "ac_cv_lib_$ac_lib_var=yes"
2174     else
2175     echo "configure: failed program was:" >&5
2176     cat conftest.$ac_ext >&5
2177     rm -rf conftest*
2178     eval "ac_cv_lib_$ac_lib_var=no"
2179     fi
2180     rm -f conftest*
2181     LIBS="$ac_save_LIBS"
2182    
2183     fi
2184     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2185     echo "$ac_t""yes" 1>&6
2186 cebix 1.9 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2187     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2188     cat >> confdefs.h <<EOF
2189     #define $ac_tr_lib 1
2190     EOF
2191    
2192     LIBS="-lpthread $LIBS"
2193    
2194 cebix 1.1 else
2195     echo "$ac_t""no" 1>&6
2196    
2197 cebix 1.9 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2198 cebix 1.17 echo "configure:2199: checking for pthread_create in -lc_r" >&5
2199 cebix 1.1 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2200     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2201     echo $ac_n "(cached) $ac_c" 1>&6
2202     else
2203     ac_save_LIBS="$LIBS"
2204     LIBS="-lc_r $LIBS"
2205     cat > conftest.$ac_ext <<EOF
2206 cebix 1.17 #line 2207 "configure"
2207 cebix 1.1 #include "confdefs.h"
2208     /* Override any gcc2 internal prototype to avoid an error. */
2209     /* We use char because int might match the return type of a gcc2
2210     builtin and then its argument prototype would still apply. */
2211     char pthread_create();
2212    
2213     int main() {
2214     pthread_create()
2215     ; return 0; }
2216     EOF
2217 cebix 1.17 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2218 cebix 1.1 rm -rf conftest*
2219     eval "ac_cv_lib_$ac_lib_var=yes"
2220     else
2221     echo "configure: failed program was:" >&5
2222     cat conftest.$ac_ext >&5
2223     rm -rf conftest*
2224     eval "ac_cv_lib_$ac_lib_var=no"
2225     fi
2226     rm -f conftest*
2227     LIBS="$ac_save_LIBS"
2228    
2229     fi
2230     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2231     echo "$ac_t""yes" 1>&6
2232 cebix 1.9 ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2233     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2234     cat >> confdefs.h <<EOF
2235     #define $ac_tr_lib 1
2236     EOF
2237    
2238     LIBS="-lc_r $LIBS"
2239    
2240 cebix 1.1 else
2241     echo "$ac_t""no" 1>&6
2242    
2243 cebix 1.9 echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6
2244 cebix 1.17 echo "configure:2245: checking for pthread_create in -lPTL" >&5
2245 cebix 1.5 ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'`
2246     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2247     echo $ac_n "(cached) $ac_c" 1>&6
2248     else
2249     ac_save_LIBS="$LIBS"
2250     LIBS="-lPTL $LIBS"
2251     cat > conftest.$ac_ext <<EOF
2252 cebix 1.17 #line 2253 "configure"
2253 cebix 1.5 #include "confdefs.h"
2254     /* Override any gcc2 internal prototype to avoid an error. */
2255     /* We use char because int might match the return type of a gcc2
2256     builtin and then its argument prototype would still apply. */
2257     char pthread_create();
2258    
2259     int main() {
2260     pthread_create()
2261     ; return 0; }
2262     EOF
2263 cebix 1.17 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2264 cebix 1.5 rm -rf conftest*
2265     eval "ac_cv_lib_$ac_lib_var=yes"
2266     else
2267     echo "configure: failed program was:" >&5
2268     cat conftest.$ac_ext >&5
2269     rm -rf conftest*
2270     eval "ac_cv_lib_$ac_lib_var=no"
2271     fi
2272     rm -f conftest*
2273     LIBS="$ac_save_LIBS"
2274    
2275     fi
2276     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2277     echo "$ac_t""yes" 1>&6
2278 cebix 1.9 ac_tr_lib=HAVE_LIB`echo PTL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2279     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2280     cat >> confdefs.h <<EOF
2281     #define $ac_tr_lib 1
2282     EOF
2283    
2284     LIBS="-lPTL $LIBS"
2285    
2286 cebix 1.5 else
2287     echo "$ac_t""no" 1>&6
2288 cebix 1.9
2289     { echo "configure: error: You need pthreads to run Basilisk II." 1>&2; exit 1; }
2290    
2291 cebix 1.5 fi
2292    
2293 cebix 1.9
2294     fi
2295    
2296    
2297 cebix 1.1 fi
2298 cebix 1.9
2299    
2300     SEMSRCS=
2301     for ac_func in sem_init
2302 cebix 1.1 do
2303     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2304 cebix 1.17 echo "configure:2305: checking for $ac_func" >&5
2305 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2306     echo $ac_n "(cached) $ac_c" 1>&6
2307     else
2308     cat > conftest.$ac_ext <<EOF
2309 cebix 1.17 #line 2310 "configure"
2310 cebix 1.1 #include "confdefs.h"
2311     /* System header to define __stub macros and hopefully few prototypes,
2312     which can conflict with char $ac_func(); below. */
2313     #include <assert.h>
2314     /* Override any gcc2 internal prototype to avoid an error. */
2315     /* We use char because int might match the return type of a gcc2
2316     builtin and then its argument prototype would still apply. */
2317     char $ac_func();
2318    
2319     int main() {
2320    
2321     /* The GNU C library defines this for functions which it implements
2322     to always fail with ENOSYS. Some functions are actually named
2323     something starting with __ and the normal name is an alias. */
2324     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2325     choke me
2326     #else
2327     $ac_func();
2328     #endif
2329    
2330     ; return 0; }
2331     EOF
2332 cebix 1.17 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333 cebix 1.1 rm -rf conftest*
2334     eval "ac_cv_func_$ac_func=yes"
2335     else
2336     echo "configure: failed program was:" >&5
2337     cat conftest.$ac_ext >&5
2338     rm -rf conftest*
2339     eval "ac_cv_func_$ac_func=no"
2340     fi
2341     rm -f conftest*
2342     fi
2343    
2344     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2345     echo "$ac_t""yes" 1>&6
2346     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2347     cat >> confdefs.h <<EOF
2348     #define $ac_tr_func 1
2349     EOF
2350    
2351     else
2352     echo "$ac_t""no" 1>&6
2353 cebix 1.9 SEMSRCS=posix_sem.cpp
2354    
2355 cebix 1.1 fi
2356     done
2357    
2358    
2359 cebix 1.7 if [ "x$WANT_XF86_DGA" = "xyes" ]; then
2360 cebix 1.1 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2361 cebix 1.17 echo "configure:2362: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2362 cebix 1.1 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2363     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2364     echo $ac_n "(cached) $ac_c" 1>&6
2365     else
2366     ac_save_LIBS="$LIBS"
2367     LIBS="-lXxf86dga $LIBS"
2368     cat > conftest.$ac_ext <<EOF
2369 cebix 1.17 #line 2370 "configure"
2370 cebix 1.1 #include "confdefs.h"
2371     /* Override any gcc2 internal prototype to avoid an error. */
2372     /* We use char because int might match the return type of a gcc2
2373     builtin and then its argument prototype would still apply. */
2374     char XF86DGAQueryExtension();
2375    
2376     int main() {
2377     XF86DGAQueryExtension()
2378     ; return 0; }
2379     EOF
2380 cebix 1.17 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2381 cebix 1.1 rm -rf conftest*
2382     eval "ac_cv_lib_$ac_lib_var=yes"
2383     else
2384     echo "configure: failed program was:" >&5
2385     cat conftest.$ac_ext >&5
2386     rm -rf conftest*
2387     eval "ac_cv_lib_$ac_lib_var=no"
2388     fi
2389     rm -f conftest*
2390     LIBS="$ac_save_LIBS"
2391    
2392     fi
2393     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2394     echo "$ac_t""yes" 1>&6
2395 cebix 1.9
2396 cebix 1.7 DEFINES="$DEFINES -DENABLE_XF86_DGA=1"
2397 cebix 1.1 LIBS="$LIBS -lXxf86dga"
2398 cebix 1.7 if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2399     echo "configure: warning: Cannot have both --enable-xf86-dga and --enable-fbdev-dga, ignoring --enable-fbdev-dga." 1>&2
2400     WANT_FBDEV_DGA=no
2401     fi
2402 cebix 1.9
2403     else
2404     echo "$ac_t""no" 1>&6
2405    
2406     echo "configure: warning: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga." 1>&2
2407 cebix 1.12 WANT_XF86_DGA=no
2408 cebix 1.9 DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2409    
2410     fi
2411    
2412 cebix 1.7 else
2413     DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2414     fi
2415     if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2416     DEFINES="$DEFINES -DENABLE_FBDEV_DGA=1"
2417     else
2418     DEFINES="$DEFINES -DENABLE_FBDEV_DGA=0"
2419 cebix 1.1 fi
2420    
2421 cebix 1.16 if [ "x$WANT_XF86_VIDMODE" = "xyes" ]; then
2422     echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2423 cebix 1.17 echo "configure:2424: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2424 cebix 1.16 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2425     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2426     echo $ac_n "(cached) $ac_c" 1>&6
2427     else
2428     ac_save_LIBS="$LIBS"
2429     LIBS="-lXxf86vm $LIBS"
2430     cat > conftest.$ac_ext <<EOF
2431 cebix 1.17 #line 2432 "configure"
2432 cebix 1.16 #include "confdefs.h"
2433     /* Override any gcc2 internal prototype to avoid an error. */
2434     /* We use char because int might match the return type of a gcc2
2435     builtin and then its argument prototype would still apply. */
2436     char XF86VidModeQueryExtension();
2437    
2438     int main() {
2439     XF86VidModeQueryExtension()
2440     ; return 0; }
2441     EOF
2442 cebix 1.17 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2443 cebix 1.16 rm -rf conftest*
2444     eval "ac_cv_lib_$ac_lib_var=yes"
2445     else
2446     echo "configure: failed program was:" >&5
2447     cat conftest.$ac_ext >&5
2448     rm -rf conftest*
2449     eval "ac_cv_lib_$ac_lib_var=no"
2450     fi
2451     rm -f conftest*
2452     LIBS="$ac_save_LIBS"
2453    
2454     fi
2455     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2456     echo "$ac_t""yes" 1>&6
2457    
2458     DEFINES="$DEFINES -DENABLE_XF86_VIDMODE=1"
2459     LIBS="$LIBS -lXxf86vm"
2460    
2461     else
2462     echo "$ac_t""no" 1>&6
2463    
2464     echo "configure: warning: Could not find XFree86 VidMode extension, ignoring --enable-xf86-vidmode." 1>&2
2465     WANT_XF86_VIDMODE=no
2466     DEFINES="$DEFINES -DENABLE_XF86_VIDMODE=0"
2467    
2468     fi
2469    
2470     fi
2471    
2472 cebix 1.9 UISRCS=../dummy/prefs_editor_dummy.cpp
2473 cebix 1.13 if [ "x$WANT_GTK" = "xyes" ]; then
2474 cebix 1.1 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2475     if test "${with_gtk_prefix+set}" = set; then
2476     withval="$with_gtk_prefix"
2477     gtk_config_prefix="$withval"
2478     else
2479     gtk_config_prefix=""
2480     fi
2481    
2482     # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2483     if test "${with_gtk_exec_prefix+set}" = set; then
2484     withval="$with_gtk_exec_prefix"
2485     gtk_config_exec_prefix="$withval"
2486     else
2487     gtk_config_exec_prefix=""
2488     fi
2489    
2490     # Check whether --enable-gtktest or --disable-gtktest was given.
2491     if test "${enable_gtktest+set}" = set; then
2492     enableval="$enable_gtktest"
2493     :
2494     else
2495     enable_gtktest=yes
2496     fi
2497    
2498    
2499     if test x$gtk_config_exec_prefix != x ; then
2500     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2501     if test x${GTK_CONFIG+set} != xset ; then
2502     GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2503     fi
2504     fi
2505     if test x$gtk_config_prefix != x ; then
2506     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2507     if test x${GTK_CONFIG+set} != xset ; then
2508     GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2509     fi
2510     fi
2511    
2512     # Extract the first word of "gtk-config", so it can be a program name with args.
2513     set dummy gtk-config; ac_word=$2
2514     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2515 cebix 1.17 echo "configure:2516: checking for $ac_word" >&5
2516 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2517     echo $ac_n "(cached) $ac_c" 1>&6
2518     else
2519     case "$GTK_CONFIG" in
2520     /*)
2521     ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2522     ;;
2523     ?:/*)
2524     ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2525     ;;
2526     *)
2527     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2528     ac_dummy="$PATH"
2529     for ac_dir in $ac_dummy; do
2530     test -z "$ac_dir" && ac_dir=.
2531     if test -f $ac_dir/$ac_word; then
2532     ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2533     break
2534     fi
2535     done
2536     IFS="$ac_save_ifs"
2537     test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2538     ;;
2539     esac
2540     fi
2541     GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2542     if test -n "$GTK_CONFIG"; then
2543     echo "$ac_t""$GTK_CONFIG" 1>&6
2544     else
2545     echo "$ac_t""no" 1>&6
2546     fi
2547    
2548     min_gtk_version=1.2.0
2549     echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2550 cebix 1.17 echo "configure:2551: checking for GTK - version >= $min_gtk_version" >&5
2551 cebix 1.1 no_gtk=""
2552     if test "$GTK_CONFIG" = "no" ; then
2553     no_gtk=yes
2554     else
2555     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2556     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2557     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2558     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2559     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2560     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2561     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2562     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2563     if test "x$enable_gtktest" = "xyes" ; then
2564     ac_save_CFLAGS="$CFLAGS"
2565     ac_save_LIBS="$LIBS"
2566     CFLAGS="$CFLAGS $GTK_CFLAGS"
2567     LIBS="$LIBS $GTK_LIBS"
2568     rm -f conf.gtktest
2569     if test "$cross_compiling" = yes; then
2570     echo $ac_n "cross compiling; assumed OK... $ac_c"
2571     else
2572     cat > conftest.$ac_ext <<EOF
2573 cebix 1.17 #line 2574 "configure"
2574 cebix 1.1 #include "confdefs.h"
2575    
2576     #include <gtk/gtk.h>
2577     #include <stdio.h>
2578    
2579     int
2580     main ()
2581     {
2582     int major, minor, micro;
2583    
2584     system ("touch conf.gtktest");
2585    
2586     if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
2587     printf("%s, bad version string\n", "$min_gtk_version");
2588     exit(1);
2589     }
2590    
2591     if ((gtk_major_version != $gtk_config_major_version) ||
2592     (gtk_minor_version != $gtk_config_minor_version) ||
2593     (gtk_micro_version != $gtk_config_micro_version))
2594     {
2595     printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2596     $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2597     gtk_major_version, gtk_minor_version, gtk_micro_version);
2598     printf ("*** was found! If gtk-config was correct, then it is best\n");
2599     printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2600     printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2601     printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2602     printf("*** required on your system.\n");
2603     printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2604     printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2605     printf("*** before re-running configure\n");
2606     }
2607     else
2608     {
2609     if ((gtk_major_version > major) ||
2610     ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2611     ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2612     {
2613     return 0;
2614     }
2615     else
2616     {
2617     printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2618     gtk_major_version, gtk_minor_version, gtk_micro_version);
2619     printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2620     major, minor, micro);
2621     printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2622     printf("***\n");
2623     printf("*** If you have already installed a sufficiently new version, this error\n");
2624     printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2625     printf("*** being found. The easiest way to fix this is to remove the old version\n");
2626     printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2627     printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2628     printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2629     printf("*** so that the correct libraries are found at run-time))\n");
2630     }
2631     }
2632     return 1;
2633     }
2634    
2635     EOF
2636 cebix 1.17 if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2637 cebix 1.1 then
2638     :
2639     else
2640     echo "configure: failed program was:" >&5
2641     cat conftest.$ac_ext >&5
2642     rm -fr conftest*
2643     no_gtk=yes
2644     fi
2645     rm -fr conftest*
2646     fi
2647    
2648     CFLAGS="$ac_save_CFLAGS"
2649     LIBS="$ac_save_LIBS"
2650     fi
2651     fi
2652     if test "x$no_gtk" = x ; then
2653     echo "$ac_t""yes" 1>&6
2654 cebix 1.9
2655     DEFINES="$DEFINES -DENABLE_GTK=1"
2656     CFLAGS="$CFLAGS $GTK_CFLAGS"
2657     CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
2658     LIBS="$LIBS $GTK_LIBS"
2659     UISRCS=prefs_editor_gtk.cpp
2660    
2661 cebix 1.1 else
2662     echo "$ac_t""no" 1>&6
2663     if test "$GTK_CONFIG" = "no" ; then
2664     echo "*** The gtk-config script installed by GTK could not be found"
2665     echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2666     echo "*** your path, or set the GTK_CONFIG environment variable to the"
2667     echo "*** full path to gtk-config."
2668     else
2669     if test -f conf.gtktest ; then
2670     :
2671     else
2672     echo "*** Could not run GTK test program, checking why..."
2673     CFLAGS="$CFLAGS $GTK_CFLAGS"
2674     LIBS="$LIBS $GTK_LIBS"
2675     cat > conftest.$ac_ext <<EOF
2676 cebix 1.17 #line 2677 "configure"
2677 cebix 1.1 #include "confdefs.h"
2678    
2679     #include <gtk/gtk.h>
2680     #include <stdio.h>
2681    
2682     int main() {
2683     return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2684     ; return 0; }
2685     EOF
2686 cebix 1.17 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2687 cebix 1.1 rm -rf conftest*
2688     echo "*** The test program compiled, but did not run. This usually means"
2689     echo "*** that the run-time linker is not finding GTK or finding the wrong"
2690     echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2691     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2692     echo "*** to the installed location Also, make sure you have run ldconfig if that"
2693     echo "*** is required on your system"
2694     echo "***"
2695     echo "*** If you have an old version installed, it is best to remove it, although"
2696     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2697     echo "***"
2698     echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2699     echo "*** came with the system with the command"
2700     echo "***"
2701     echo "*** rpm --erase --nodeps gtk gtk-devel"
2702     else
2703     echo "configure: failed program was:" >&5
2704     cat conftest.$ac_ext >&5
2705     rm -rf conftest*
2706     echo "*** The test program failed to compile or link. See the file config.log for the"
2707     echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2708     echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2709     echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2710     fi
2711     rm -f conftest*
2712     CFLAGS="$ac_save_CFLAGS"
2713     LIBS="$ac_save_LIBS"
2714     fi
2715     fi
2716     GTK_CFLAGS=""
2717     GTK_LIBS=""
2718 cebix 1.9
2719     echo "configure: warning: Could not find GTK+, disabling user interface." 1>&2
2720 cebix 1.13 WANT_GTK=no
2721 cebix 1.14 DEFINES="$DEFINES -DENABLE_GTK=0"
2722 cebix 1.9
2723 cebix 1.1 fi
2724    
2725    
2726     rm -f conf.gtktest
2727    
2728 cebix 1.9 fi
2729    
2730     if [ "x$WANT_ESD" = "xyes" ]; then
2731     # Check whether --with-esd-prefix or --without-esd-prefix was given.
2732     if test "${with_esd_prefix+set}" = set; then
2733     withval="$with_esd_prefix"
2734     esd_prefix="$withval"
2735     else
2736     esd_prefix=""
2737     fi
2738    
2739     # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
2740     if test "${with_esd_exec_prefix+set}" = set; then
2741     withval="$with_esd_exec_prefix"
2742     esd_exec_prefix="$withval"
2743     else
2744     esd_exec_prefix=""
2745     fi
2746    
2747     # Check whether --enable-esdtest or --disable-esdtest was given.
2748     if test "${enable_esdtest+set}" = set; then
2749     enableval="$enable_esdtest"
2750     :
2751     else
2752     enable_esdtest=yes
2753     fi
2754    
2755    
2756     if test x$esd_exec_prefix != x ; then
2757     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
2758     if test x${ESD_CONFIG+set} != xset ; then
2759     ESD_CONFIG=$esd_exec_prefix/bin/esd-config
2760     fi
2761     fi
2762     if test x$esd_prefix != x ; then
2763     esd_args="$esd_args --prefix=$esd_prefix"
2764     if test x${ESD_CONFIG+set} != xset ; then
2765     ESD_CONFIG=$esd_prefix/bin/esd-config
2766     fi
2767 cebix 1.1 fi
2768 cebix 1.9
2769     # Extract the first word of "esd-config", so it can be a program name with args.
2770     set dummy esd-config; ac_word=$2
2771     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2772 cebix 1.17 echo "configure:2773: checking for $ac_word" >&5
2773 cebix 1.9 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
2774     echo $ac_n "(cached) $ac_c" 1>&6
2775     else
2776     case "$ESD_CONFIG" in
2777     /*)
2778     ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
2779     ;;
2780     ?:/*)
2781     ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
2782     ;;
2783     *)
2784     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2785     ac_dummy="$PATH"
2786     for ac_dir in $ac_dummy; do
2787     test -z "$ac_dir" && ac_dir=.
2788     if test -f $ac_dir/$ac_word; then
2789     ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
2790     break
2791     fi
2792     done
2793     IFS="$ac_save_ifs"
2794     test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
2795     ;;
2796     esac
2797     fi
2798     ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
2799     if test -n "$ESD_CONFIG"; then
2800     echo "$ac_t""$ESD_CONFIG" 1>&6
2801     else
2802     echo "$ac_t""no" 1>&6
2803 cebix 1.1 fi
2804    
2805 cebix 1.9 min_esd_version=0.2.8
2806     echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6
2807 cebix 1.17 echo "configure:2808: checking for ESD - version >= $min_esd_version" >&5
2808 cebix 1.9 no_esd=""
2809     if test "$ESD_CONFIG" = "no" ; then
2810     no_esd=yes
2811     else
2812     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
2813     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
2814    
2815     esd_major_version=`$ESD_CONFIG $esd_args --version | \
2816     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2817     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
2818     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2819     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
2820     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2821     if test "x$enable_esdtest" = "xyes" ; then
2822     ac_save_CFLAGS="$CFLAGS"
2823     ac_save_LIBS="$LIBS"
2824     CFLAGS="$CFLAGS $ESD_CFLAGS"
2825     LIBS="$LIBS $ESD_LIBS"
2826     rm -f conf.esdtest
2827     if test "$cross_compiling" = yes; then
2828     echo $ac_n "cross compiling; assumed OK... $ac_c"
2829 cebix 1.1 else
2830     cat > conftest.$ac_ext <<EOF
2831 cebix 1.17 #line 2832 "configure"
2832 cebix 1.1 #include "confdefs.h"
2833    
2834 cebix 1.9 #include <stdio.h>
2835     #include <stdlib.h>
2836     #include <string.h>
2837     #include <esd.h>
2838    
2839     char*
2840     my_strdup (char *str)
2841     {
2842     char *new_str;
2843    
2844     if (str)
2845     {
2846     new_str = malloc ((strlen (str) + 1) * sizeof(char));
2847     strcpy (new_str, str);
2848     }
2849     else
2850     new_str = NULL;
2851    
2852     return new_str;
2853     }
2854    
2855     int main ()
2856     {
2857     int major, minor, micro;
2858     char *tmp_version;
2859    
2860     system ("touch conf.esdtest");
2861    
2862     /* HP/UX 9 (%@#!) writes to sscanf strings */
2863     tmp_version = my_strdup("$min_esd_version");
2864     if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2865     printf("%s, bad version string\n", "$min_esd_version");
2866     exit(1);
2867     }
2868    
2869     if (($esd_major_version > major) ||
2870     (($esd_major_version == major) && ($esd_minor_version > minor)) ||
2871     (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
2872     {
2873     return 0;
2874     }
2875     else
2876     {
2877     printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
2878     printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
2879     printf("*** best to upgrade to the required version.\n");
2880     printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
2881     printf("*** to point to the correct copy of esd-config, and remove the file\n");
2882     printf("*** config.cache before re-running configure\n");
2883     return 1;
2884     }
2885     }
2886 cebix 1.1
2887    
2888     EOF
2889 cebix 1.17 if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2890 cebix 1.9 then
2891     :
2892 cebix 1.1 else
2893     echo "configure: failed program was:" >&5
2894     cat conftest.$ac_ext >&5
2895 cebix 1.9 rm -fr conftest*
2896     no_esd=yes
2897 cebix 1.1 fi
2898 cebix 1.9 rm -fr conftest*
2899 cebix 1.1 fi
2900    
2901 cebix 1.9 CFLAGS="$ac_save_CFLAGS"
2902     LIBS="$ac_save_LIBS"
2903     fi
2904     fi
2905     if test "x$no_esd" = x ; then
2906     echo "$ac_t""yes" 1>&6
2907    
2908     DEFINES="$DEFINES -DENABLE_ESD=1"
2909     CFLAGS="$CFLAGS $ESD_CFLAGS"
2910     CXXFLAGS="$CXXFLAGS $ESD_CFLAGS"
2911     LIBS="$LIBS $ESD_LIBS"
2912    
2913     else
2914     echo "$ac_t""no" 1>&6
2915     if test "$ESD_CONFIG" = "no" ; then
2916     echo "*** The esd-config script installed by ESD could not be found"
2917     echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
2918     echo "*** your path, or set the ESD_CONFIG environment variable to the"
2919     echo "*** full path to esd-config."
2920     else
2921     if test -f conf.esdtest ; then
2922     :
2923     else
2924     echo "*** Could not run ESD test program, checking why..."
2925     CFLAGS="$CFLAGS $ESD_CFLAGS"
2926     LIBS="$LIBS $ESD_LIBS"
2927     cat > conftest.$ac_ext <<EOF
2928 cebix 1.17 #line 2929 "configure"
2929 cebix 1.9 #include "confdefs.h"
2930 cebix 1.1
2931 cebix 1.9 #include <stdio.h>
2932     #include <esd.h>
2933 cebix 1.1
2934     int main() {
2935 cebix 1.9 return 0;
2936 cebix 1.1 ; return 0; }
2937     EOF
2938 cebix 1.17 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2939 cebix 1.1 rm -rf conftest*
2940 cebix 1.9 echo "*** The test program compiled, but did not run. This usually means"
2941     echo "*** that the run-time linker is not finding ESD or finding the wrong"
2942     echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
2943     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2944     echo "*** to the installed location Also, make sure you have run ldconfig if that"
2945     echo "*** is required on your system"
2946     echo "***"
2947     echo "*** If you have an old version installed, it is best to remove it, although"
2948     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2949 cebix 1.1 else
2950     echo "configure: failed program was:" >&5
2951     cat conftest.$ac_ext >&5
2952     rm -rf conftest*
2953 cebix 1.9 echo "*** The test program failed to compile or link. See the file config.log for the"
2954     echo "*** exact error that occured. This usually means ESD was incorrectly installed"
2955     echo "*** or that you have moved ESD since it was installed. In the latter case, you"
2956     echo "*** may want to edit the esd-config script: $ESD_CONFIG"
2957 cebix 1.1 fi
2958     rm -f conftest*
2959 cebix 1.9 CFLAGS="$ac_save_CFLAGS"
2960     LIBS="$ac_save_LIBS"
2961     fi
2962     fi
2963     ESD_CFLAGS=""
2964     ESD_LIBS=""
2965    
2966     echo "configure: warning: Could not find ESD, disabling ESD support." 1>&2
2967     WANT_ESD=no
2968 cebix 1.14 DEFINES="$DEFINES -DENABLE_ESD=0"
2969 cebix 1.9
2970     fi
2971    
2972    
2973     rm -f conf.esdtest
2974 cebix 1.1
2975     fi
2976    
2977     echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2978 cebix 1.17 echo "configure:2979: checking for ANSI C header files" >&5
2979 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2980     echo $ac_n "(cached) $ac_c" 1>&6
2981     else
2982     cat > conftest.$ac_ext <<EOF
2983 cebix 1.17 #line 2984 "configure"
2984 cebix 1.1 #include "confdefs.h"
2985     #include <stdlib.h>
2986     #include <stdarg.h>
2987     #include <string.h>
2988     #include <float.h>
2989     EOF
2990     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 cebix 1.17 { (eval echo configure:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993     if test -z "$ac_err"; then
2994     rm -rf conftest*
2995     ac_cv_header_stdc=yes
2996     else
2997     echo "$ac_err" >&5
2998     echo "configure: failed program was:" >&5
2999     cat conftest.$ac_ext >&5
3000     rm -rf conftest*
3001     ac_cv_header_stdc=no
3002     fi
3003     rm -f conftest*
3004    
3005     if test $ac_cv_header_stdc = yes; then
3006     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3007     cat > conftest.$ac_ext <<EOF
3008 cebix 1.17 #line 3009 "configure"
3009 cebix 1.1 #include "confdefs.h"
3010     #include <string.h>
3011     EOF
3012     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3013     egrep "memchr" >/dev/null 2>&1; then
3014     :
3015     else
3016     rm -rf conftest*
3017     ac_cv_header_stdc=no
3018     fi
3019     rm -f conftest*
3020    
3021     fi
3022    
3023     if test $ac_cv_header_stdc = yes; then
3024     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3025     cat > conftest.$ac_ext <<EOF
3026 cebix 1.17 #line 3027 "configure"
3027 cebix 1.1 #include "confdefs.h"
3028     #include <stdlib.h>
3029     EOF
3030     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3031     egrep "free" >/dev/null 2>&1; then
3032     :
3033     else
3034     rm -rf conftest*
3035     ac_cv_header_stdc=no
3036     fi
3037     rm -f conftest*
3038    
3039     fi
3040    
3041     if test $ac_cv_header_stdc = yes; then
3042     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3043     if test "$cross_compiling" = yes; then
3044     :
3045     else
3046     cat > conftest.$ac_ext <<EOF
3047 cebix 1.17 #line 3048 "configure"
3048 cebix 1.1 #include "confdefs.h"
3049     #include <ctype.h>
3050     #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3051     #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3052     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3053     int main () { int i; for (i = 0; i < 256; i++)
3054     if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3055     exit (0); }
3056    
3057     EOF
3058 cebix 1.17 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3059 cebix 1.1 then
3060     :
3061     else
3062     echo "configure: failed program was:" >&5
3063     cat conftest.$ac_ext >&5
3064     rm -fr conftest*
3065     ac_cv_header_stdc=no
3066     fi
3067     rm -fr conftest*
3068     fi
3069    
3070     fi
3071     fi
3072    
3073     echo "$ac_t""$ac_cv_header_stdc" 1>&6
3074     if test $ac_cv_header_stdc = yes; then
3075     cat >> confdefs.h <<\EOF
3076     #define STDC_HEADERS 1
3077     EOF
3078    
3079     fi
3080    
3081     for ac_hdr in unistd.h fcntl.h sys/time.h
3082     do
3083     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3084     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3085 cebix 1.17 echo "configure:3086: checking for $ac_hdr" >&5
3086 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3087     echo $ac_n "(cached) $ac_c" 1>&6
3088     else
3089     cat > conftest.$ac_ext <<EOF
3090 cebix 1.17 #line 3091 "configure"
3091 cebix 1.1 #include "confdefs.h"
3092     #include <$ac_hdr>
3093     EOF
3094     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3095 cebix 1.17 { (eval echo configure:3096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3096 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3097     if test -z "$ac_err"; then
3098     rm -rf conftest*
3099     eval "ac_cv_header_$ac_safe=yes"
3100     else
3101     echo "$ac_err" >&5
3102     echo "configure: failed program was:" >&5
3103     cat conftest.$ac_ext >&5
3104     rm -rf conftest*
3105     eval "ac_cv_header_$ac_safe=no"
3106     fi
3107     rm -f conftest*
3108     fi
3109     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3110     echo "$ac_t""yes" 1>&6
3111     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3112     cat >> confdefs.h <<EOF
3113     #define $ac_tr_hdr 1
3114     EOF
3115    
3116     else
3117     echo "$ac_t""no" 1>&6
3118     fi
3119     done
3120    
3121    
3122     echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3123 cebix 1.17 echo "configure:3124: checking whether byte ordering is bigendian" >&5
3124 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3125     echo $ac_n "(cached) $ac_c" 1>&6
3126     else
3127     ac_cv_c_bigendian=unknown
3128     # See if sys/param.h defines the BYTE_ORDER macro.
3129     cat > conftest.$ac_ext <<EOF
3130 cebix 1.17 #line 3131 "configure"
3131 cebix 1.1 #include "confdefs.h"
3132     #include <sys/types.h>
3133     #include <sys/param.h>
3134     int main() {
3135    
3136     #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3137     bogus endian macros
3138     #endif
3139     ; return 0; }
3140     EOF
3141 cebix 1.17 if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 cebix 1.1 rm -rf conftest*
3143     # It does; now see whether it defined to BIG_ENDIAN or not.
3144     cat > conftest.$ac_ext <<EOF
3145 cebix 1.17 #line 3146 "configure"
3146 cebix 1.1 #include "confdefs.h"
3147     #include <sys/types.h>
3148     #include <sys/param.h>
3149     int main() {
3150    
3151     #if BYTE_ORDER != BIG_ENDIAN
3152     not big endian
3153     #endif
3154     ; return 0; }
3155     EOF
3156 cebix 1.17 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 cebix 1.1 rm -rf conftest*
3158     ac_cv_c_bigendian=yes
3159     else
3160     echo "configure: failed program was:" >&5
3161     cat conftest.$ac_ext >&5
3162     rm -rf conftest*
3163     ac_cv_c_bigendian=no
3164     fi
3165     rm -f conftest*
3166     else
3167     echo "configure: failed program was:" >&5
3168     cat conftest.$ac_ext >&5
3169     fi
3170     rm -f conftest*
3171     if test $ac_cv_c_bigendian = unknown; then
3172     if test "$cross_compiling" = yes; then
3173     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3174     else
3175     cat > conftest.$ac_ext <<EOF
3176 cebix 1.17 #line 3177 "configure"
3177 cebix 1.1 #include "confdefs.h"
3178     main () {
3179     /* Are we little or big endian? From Harbison&Steele. */
3180     union
3181     {
3182     long l;
3183     char c[sizeof (long)];
3184     } u;
3185     u.l = 1;
3186     exit (u.c[sizeof (long) - 1] == 1);
3187     }
3188     EOF
3189 cebix 1.17 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3190 cebix 1.1 then
3191     ac_cv_c_bigendian=no
3192     else
3193     echo "configure: failed program was:" >&5
3194     cat conftest.$ac_ext >&5
3195     rm -fr conftest*
3196     ac_cv_c_bigendian=yes
3197     fi
3198     rm -fr conftest*
3199     fi
3200    
3201     fi
3202     fi
3203    
3204     echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3205     if test $ac_cv_c_bigendian = yes; then
3206     cat >> confdefs.h <<\EOF
3207     #define WORDS_BIGENDIAN 1
3208     EOF
3209    
3210     fi
3211    
3212     echo $ac_n "checking for working const""... $ac_c" 1>&6
3213 cebix 1.17 echo "configure:3214: checking for working const" >&5
3214 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3215     echo $ac_n "(cached) $ac_c" 1>&6
3216     else
3217     cat > conftest.$ac_ext <<EOF
3218 cebix 1.17 #line 3219 "configure"
3219 cebix 1.1 #include "confdefs.h"
3220    
3221     int main() {
3222    
3223     /* Ultrix mips cc rejects this. */
3224     typedef int charset[2]; const charset x;
3225     /* SunOS 4.1.1 cc rejects this. */
3226     char const *const *ccp;
3227     char **p;
3228     /* NEC SVR4.0.2 mips cc rejects this. */
3229     struct point {int x, y;};
3230     static struct point const zero = {0,0};
3231     /* AIX XL C 1.02.0.0 rejects this.
3232     It does not let you subtract one const X* pointer from another in an arm
3233     of an if-expression whose if-part is not a constant expression */
3234     const char *g = "string";
3235     ccp = &g + (g ? g-g : 0);
3236     /* HPUX 7.0 cc rejects these. */
3237     ++ccp;
3238     p = (char**) ccp;
3239     ccp = (char const *const *) p;
3240     { /* SCO 3.2v4 cc rejects this. */
3241     char *t;
3242     char const *s = 0 ? (char *) 0 : (char const *) 0;
3243    
3244     *t++ = 0;
3245     }
3246     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3247     int x[] = {25, 17};
3248     const int *foo = &x[0];
3249     ++foo;
3250     }
3251     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3252     typedef const int *iptr;
3253     iptr p = 0;
3254     ++p;
3255     }
3256     { /* AIX XL C 1.02.0.0 rejects this saying
3257     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3258     struct s { int j; const int *ap[3]; };
3259     struct s *b; b->j = 5;
3260     }
3261     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3262     const int foo = 10;
3263     }
3264    
3265     ; return 0; }
3266     EOF
3267 cebix 1.17 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 cebix 1.1 rm -rf conftest*
3269     ac_cv_c_const=yes
3270     else
3271     echo "configure: failed program was:" >&5
3272     cat conftest.$ac_ext >&5
3273     rm -rf conftest*
3274     ac_cv_c_const=no
3275     fi
3276     rm -f conftest*
3277     fi
3278    
3279     echo "$ac_t""$ac_cv_c_const" 1>&6
3280     if test $ac_cv_c_const = no; then
3281     cat >> confdefs.h <<\EOF
3282     #define const
3283     EOF
3284    
3285     fi
3286    
3287     echo $ac_n "checking for inline""... $ac_c" 1>&6
3288 cebix 1.17 echo "configure:3289: checking for inline" >&5
3289 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3290     echo $ac_n "(cached) $ac_c" 1>&6
3291     else
3292     ac_cv_c_inline=no
3293     for ac_kw in inline __inline__ __inline; do
3294     cat > conftest.$ac_ext <<EOF
3295 cebix 1.17 #line 3296 "configure"
3296 cebix 1.1 #include "confdefs.h"
3297    
3298     int main() {
3299     } $ac_kw foo() {
3300     ; return 0; }
3301     EOF
3302 cebix 1.17 if { (eval echo configure:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3303 cebix 1.1 rm -rf conftest*
3304     ac_cv_c_inline=$ac_kw; break
3305     else
3306     echo "configure: failed program was:" >&5
3307     cat conftest.$ac_ext >&5
3308     fi
3309     rm -f conftest*
3310     done
3311    
3312     fi
3313    
3314     echo "$ac_t""$ac_cv_c_inline" 1>&6
3315     case "$ac_cv_c_inline" in
3316     inline | yes) ;;
3317     no) cat >> confdefs.h <<\EOF
3318     #define inline
3319     EOF
3320     ;;
3321     *) cat >> confdefs.h <<EOF
3322     #define inline $ac_cv_c_inline
3323     EOF
3324     ;;
3325     esac
3326    
3327     echo $ac_n "checking size of short""... $ac_c" 1>&6
3328 cebix 1.17 echo "configure:3329: checking size of short" >&5
3329 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3330     echo $ac_n "(cached) $ac_c" 1>&6
3331     else
3332     if test "$cross_compiling" = yes; then
3333     ac_cv_sizeof_short=2
3334     else
3335     cat > conftest.$ac_ext <<EOF
3336 cebix 1.17 #line 3337 "configure"
3337 cebix 1.1 #include "confdefs.h"
3338     #include <stdio.h>
3339     main()
3340     {
3341     FILE *f=fopen("conftestval", "w");
3342     if (!f) exit(1);
3343     fprintf(f, "%d\n", sizeof(short));
3344     exit(0);
3345     }
3346     EOF
3347 cebix 1.17 if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3348 cebix 1.1 then
3349     ac_cv_sizeof_short=`cat conftestval`
3350     else
3351     echo "configure: failed program was:" >&5
3352     cat conftest.$ac_ext >&5
3353     rm -fr conftest*
3354     ac_cv_sizeof_short=0
3355     fi
3356     rm -fr conftest*
3357     fi
3358    
3359     fi
3360     echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3361     cat >> confdefs.h <<EOF
3362     #define SIZEOF_SHORT $ac_cv_sizeof_short
3363     EOF
3364    
3365    
3366     echo $ac_n "checking size of int""... $ac_c" 1>&6
3367 cebix 1.17 echo "configure:3368: checking size of int" >&5
3368 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3369     echo $ac_n "(cached) $ac_c" 1>&6
3370     else
3371     if test "$cross_compiling" = yes; then
3372     ac_cv_sizeof_int=4
3373     else
3374     cat > conftest.$ac_ext <<EOF
3375 cebix 1.17 #line 3376 "configure"
3376 cebix 1.1 #include "confdefs.h"
3377     #include <stdio.h>
3378     main()
3379     {
3380     FILE *f=fopen("conftestval", "w");
3381     if (!f) exit(1);
3382     fprintf(f, "%d\n", sizeof(int));
3383     exit(0);
3384     }
3385     EOF
3386 cebix 1.17 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3387 cebix 1.1 then
3388     ac_cv_sizeof_int=`cat conftestval`
3389     else
3390     echo "configure: failed program was:" >&5
3391     cat conftest.$ac_ext >&5
3392     rm -fr conftest*
3393     ac_cv_sizeof_int=0
3394     fi
3395     rm -fr conftest*
3396     fi
3397    
3398     fi
3399     echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3400     cat >> confdefs.h <<EOF
3401     #define SIZEOF_INT $ac_cv_sizeof_int
3402     EOF
3403    
3404    
3405     echo $ac_n "checking size of long""... $ac_c" 1>&6
3406 cebix 1.17 echo "configure:3407: checking size of long" >&5
3407 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3408     echo $ac_n "(cached) $ac_c" 1>&6
3409     else
3410     if test "$cross_compiling" = yes; then
3411     ac_cv_sizeof_long=4
3412     else
3413     cat > conftest.$ac_ext <<EOF
3414 cebix 1.17 #line 3415 "configure"
3415 cebix 1.1 #include "confdefs.h"
3416     #include <stdio.h>
3417     main()
3418     {
3419     FILE *f=fopen("conftestval", "w");
3420     if (!f) exit(1);
3421     fprintf(f, "%d\n", sizeof(long));
3422     exit(0);
3423     }
3424     EOF
3425 cebix 1.17 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3426 cebix 1.1 then
3427     ac_cv_sizeof_long=`cat conftestval`
3428     else
3429     echo "configure: failed program was:" >&5
3430     cat conftest.$ac_ext >&5
3431     rm -fr conftest*
3432     ac_cv_sizeof_long=0
3433     fi
3434     rm -fr conftest*
3435     fi
3436    
3437     fi
3438     echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3439     cat >> confdefs.h <<EOF
3440     #define SIZEOF_LONG $ac_cv_sizeof_long
3441     EOF
3442    
3443    
3444     echo $ac_n "checking size of long long""... $ac_c" 1>&6
3445 cebix 1.17 echo "configure:3446: checking size of long long" >&5
3446 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3447     echo $ac_n "(cached) $ac_c" 1>&6
3448     else
3449     if test "$cross_compiling" = yes; then
3450     ac_cv_sizeof_long_long=8
3451     else
3452     cat > conftest.$ac_ext <<EOF
3453 cebix 1.17 #line 3454 "configure"
3454 cebix 1.1 #include "confdefs.h"
3455     #include <stdio.h>
3456     main()
3457     {
3458     FILE *f=fopen("conftestval", "w");
3459     if (!f) exit(1);
3460     fprintf(f, "%d\n", sizeof(long long));
3461     exit(0);
3462     }
3463     EOF
3464 cebix 1.17 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3465 cebix 1.1 then
3466     ac_cv_sizeof_long_long=`cat conftestval`
3467     else
3468     echo "configure: failed program was:" >&5
3469     cat conftest.$ac_ext >&5
3470     rm -fr conftest*
3471     ac_cv_sizeof_long_long=0
3472     fi
3473     rm -fr conftest*
3474     fi
3475    
3476     fi
3477     echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3478     cat >> confdefs.h <<EOF
3479     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3480     EOF
3481    
3482    
3483     echo $ac_n "checking for off_t""... $ac_c" 1>&6
3484 cebix 1.17 echo "configure:3485: checking for off_t" >&5
3485 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3486     echo $ac_n "(cached) $ac_c" 1>&6
3487     else
3488     cat > conftest.$ac_ext <<EOF
3489 cebix 1.17 #line 3490 "configure"
3490 cebix 1.1 #include "confdefs.h"
3491     #include <sys/types.h>
3492     #if STDC_HEADERS
3493     #include <stdlib.h>
3494     #include <stddef.h>
3495     #endif
3496     EOF
3497     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3498     egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3499     rm -rf conftest*
3500     ac_cv_type_off_t=yes
3501     else
3502     rm -rf conftest*
3503     ac_cv_type_off_t=no
3504     fi
3505     rm -f conftest*
3506    
3507     fi
3508     echo "$ac_t""$ac_cv_type_off_t" 1>&6
3509     if test $ac_cv_type_off_t = no; then
3510     cat >> confdefs.h <<\EOF
3511     #define off_t long
3512     EOF
3513    
3514     fi
3515    
3516     echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3517 cebix 1.17 echo "configure:3518: checking for loff_t" >&5
3518 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3519     echo $ac_n "(cached) $ac_c" 1>&6
3520     else
3521     cat > conftest.$ac_ext <<EOF
3522 cebix 1.17 #line 3523 "configure"
3523 cebix 1.1 #include "confdefs.h"
3524     #include <sys/types.h>
3525     #if STDC_HEADERS
3526     #include <stdlib.h>
3527     #include <stddef.h>
3528     #endif
3529     EOF
3530     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3531     egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3532     rm -rf conftest*
3533     ac_cv_type_loff_t=yes
3534     else
3535     rm -rf conftest*
3536     ac_cv_type_loff_t=no
3537     fi
3538     rm -f conftest*
3539    
3540     fi
3541     echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3542     if test $ac_cv_type_loff_t = no; then
3543     cat >> confdefs.h <<\EOF
3544     #define loff_t off_t
3545     EOF
3546    
3547     fi
3548    
3549     echo $ac_n "checking for size_t""... $ac_c" 1>&6
3550 cebix 1.17 echo "configure:3551: checking for size_t" >&5
3551 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3552     echo $ac_n "(cached) $ac_c" 1>&6
3553     else
3554     cat > conftest.$ac_ext <<EOF
3555 cebix 1.17 #line 3556 "configure"
3556 cebix 1.1 #include "confdefs.h"
3557     #include <sys/types.h>
3558     #if STDC_HEADERS
3559     #include <stdlib.h>
3560     #include <stddef.h>
3561     #endif
3562     EOF
3563     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3564     egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3565     rm -rf conftest*
3566     ac_cv_type_size_t=yes
3567     else
3568     rm -rf conftest*
3569     ac_cv_type_size_t=no
3570     fi
3571     rm -f conftest*
3572    
3573     fi
3574     echo "$ac_t""$ac_cv_type_size_t" 1>&6
3575     if test $ac_cv_type_size_t = no; then
3576     cat >> confdefs.h <<\EOF
3577     #define size_t unsigned
3578     EOF
3579    
3580     fi
3581    
3582     echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3583 cebix 1.17 echo "configure:3584: checking whether time.h and sys/time.h may both be included" >&5
3584 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3585     echo $ac_n "(cached) $ac_c" 1>&6
3586     else
3587     cat > conftest.$ac_ext <<EOF
3588 cebix 1.17 #line 3589 "configure"
3589 cebix 1.1 #include "confdefs.h"
3590     #include <sys/types.h>
3591     #include <sys/time.h>
3592     #include <time.h>
3593     int main() {
3594     struct tm *tp;
3595     ; return 0; }
3596     EOF
3597 cebix 1.17 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3598 cebix 1.1 rm -rf conftest*
3599     ac_cv_header_time=yes
3600     else
3601     echo "configure: failed program was:" >&5
3602     cat conftest.$ac_ext >&5
3603     rm -rf conftest*
3604     ac_cv_header_time=no
3605     fi
3606     rm -f conftest*
3607     fi
3608    
3609     echo "$ac_t""$ac_cv_header_time" 1>&6
3610     if test $ac_cv_header_time = yes; then
3611     cat >> confdefs.h <<\EOF
3612     #define TIME_WITH_SYS_TIME 1
3613     EOF
3614    
3615     fi
3616    
3617     echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3618 cebix 1.17 echo "configure:3619: checking whether struct tm is in sys/time.h or time.h" >&5
3619 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3620     echo $ac_n "(cached) $ac_c" 1>&6
3621     else
3622     cat > conftest.$ac_ext <<EOF
3623 cebix 1.17 #line 3624 "configure"
3624 cebix 1.1 #include "confdefs.h"
3625     #include <sys/types.h>
3626     #include <time.h>
3627     int main() {
3628     struct tm *tp; tp->tm_sec;
3629     ; return 0; }
3630     EOF
3631 cebix 1.17 if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3632 cebix 1.1 rm -rf conftest*
3633     ac_cv_struct_tm=time.h
3634     else
3635     echo "configure: failed program was:" >&5
3636     cat conftest.$ac_ext >&5
3637     rm -rf conftest*
3638     ac_cv_struct_tm=sys/time.h
3639     fi
3640     rm -f conftest*
3641     fi
3642    
3643     echo "$ac_t""$ac_cv_struct_tm" 1>&6
3644     if test $ac_cv_struct_tm = sys/time.h; then
3645     cat >> confdefs.h <<\EOF
3646     #define TM_IN_SYS_TIME 1
3647     EOF
3648    
3649     fi
3650    
3651    
3652     for ac_func in strdup cfmakeraw
3653     do
3654     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3655 cebix 1.17 echo "configure:3656: checking for $ac_func" >&5
3656 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3657     echo $ac_n "(cached) $ac_c" 1>&6
3658     else
3659     cat > conftest.$ac_ext <<EOF
3660 cebix 1.17 #line 3661 "configure"
3661 cebix 1.1 #include "confdefs.h"
3662     /* System header to define __stub macros and hopefully few prototypes,
3663     which can conflict with char $ac_func(); below. */
3664     #include <assert.h>
3665     /* Override any gcc2 internal prototype to avoid an error. */
3666     /* We use char because int might match the return type of a gcc2
3667     builtin and then its argument prototype would still apply. */
3668     char $ac_func();
3669    
3670     int main() {
3671    
3672     /* The GNU C library defines this for functions which it implements
3673     to always fail with ENOSYS. Some functions are actually named
3674     something starting with __ and the normal name is an alias. */
3675     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676     choke me
3677     #else
3678     $ac_func();
3679     #endif
3680    
3681     ; return 0; }
3682     EOF
3683 cebix 1.17 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3684 cebix 1.1 rm -rf conftest*
3685     eval "ac_cv_func_$ac_func=yes"
3686     else
3687     echo "configure: failed program was:" >&5
3688     cat conftest.$ac_ext >&5
3689     rm -rf conftest*
3690     eval "ac_cv_func_$ac_func=no"
3691     fi
3692     rm -f conftest*
3693     fi
3694    
3695     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3696     echo "$ac_t""yes" 1>&6
3697     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3698     cat >> confdefs.h <<EOF
3699     #define $ac_tr_func 1
3700     EOF
3701    
3702     else
3703     echo "$ac_t""no" 1>&6
3704     fi
3705     done
3706    
3707     for ac_func in nanosleep clock_gettime timer_create
3708     do
3709     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3710 cebix 1.17 echo "configure:3711: checking for $ac_func" >&5
3711 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3712     echo $ac_n "(cached) $ac_c" 1>&6
3713     else
3714     cat > conftest.$ac_ext <<EOF
3715 cebix 1.17 #line 3716 "configure"
3716 cebix 1.1 #include "confdefs.h"
3717     /* System header to define __stub macros and hopefully few prototypes,
3718     which can conflict with char $ac_func(); below. */
3719     #include <assert.h>
3720     /* Override any gcc2 internal prototype to avoid an error. */
3721     /* We use char because int might match the return type of a gcc2
3722     builtin and then its argument prototype would still apply. */
3723     char $ac_func();
3724    
3725     int main() {
3726    
3727     /* The GNU C library defines this for functions which it implements
3728     to always fail with ENOSYS. Some functions are actually named
3729     something starting with __ and the normal name is an alias. */
3730     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731     choke me
3732     #else
3733     $ac_func();
3734     #endif
3735    
3736     ; return 0; }
3737     EOF
3738 cebix 1.17 if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 cebix 1.9 rm -rf conftest*
3740     eval "ac_cv_func_$ac_func=yes"
3741     else
3742     echo "configure: failed program was:" >&5
3743     cat conftest.$ac_ext >&5
3744     rm -rf conftest*
3745     eval "ac_cv_func_$ac_func=no"
3746     fi
3747     rm -f conftest*
3748     fi
3749    
3750     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3751     echo "$ac_t""yes" 1>&6
3752     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3753     cat >> confdefs.h <<EOF
3754     #define $ac_tr_func 1
3755     EOF
3756    
3757     else
3758     echo "$ac_t""no" 1>&6
3759     fi
3760     done
3761    
3762     for ac_func in pthread_cancel
3763     do
3764     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3765 cebix 1.17 echo "configure:3766: checking for $ac_func" >&5
3766 cebix 1.9 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3767     echo $ac_n "(cached) $ac_c" 1>&6
3768     else
3769     cat > conftest.$ac_ext <<EOF
3770 cebix 1.17 #line 3771 "configure"
3771 cebix 1.9 #include "confdefs.h"
3772     /* System header to define __stub macros and hopefully few prototypes,
3773     which can conflict with char $ac_func(); below. */
3774     #include <assert.h>
3775     /* Override any gcc2 internal prototype to avoid an error. */
3776     /* We use char because int might match the return type of a gcc2
3777     builtin and then its argument prototype would still apply. */
3778     char $ac_func();
3779    
3780     int main() {
3781    
3782     /* The GNU C library defines this for functions which it implements
3783     to always fail with ENOSYS. Some functions are actually named
3784     something starting with __ and the normal name is an alias. */
3785     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3786     choke me
3787     #else
3788     $ac_func();
3789     #endif
3790    
3791     ; return 0; }
3792     EOF
3793 cebix 1.17 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 cebix 1.1 rm -rf conftest*
3795     eval "ac_cv_func_$ac_func=yes"
3796     else
3797     echo "configure: failed program was:" >&5
3798     cat conftest.$ac_ext >&5
3799     rm -rf conftest*
3800     eval "ac_cv_func_$ac_func=no"
3801     fi
3802     rm -f conftest*
3803     fi
3804    
3805     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3806     echo "$ac_t""yes" 1>&6
3807     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3808     cat >> confdefs.h <<EOF
3809     #define $ac_tr_func 1
3810     EOF
3811    
3812     else
3813     echo "$ac_t""no" 1>&6
3814     fi
3815     done
3816    
3817    
3818     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp"
3819     if MACHINE=`uname -a 2>/dev/null`; then
3820     case "$MACHINE" in
3821     Linux*)
3822 cebix 1.9 SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp audio_oss_esd.cpp"
3823 cebix 1.1 ;;
3824     FreeBSD*3.*)
3825     echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
3826 cebix 1.17 echo "configure:3827: checking for cam_open_btl in -lcam" >&5
3827 cebix 1.1 ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
3828     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3829     echo $ac_n "(cached) $ac_c" 1>&6
3830     else
3831     ac_save_LIBS="$LIBS"
3832     LIBS="-lcam $LIBS"
3833     cat > conftest.$ac_ext <<EOF
3834 cebix 1.17 #line 3835 "configure"
3835 cebix 1.1 #include "confdefs.h"
3836     /* Override any gcc2 internal prototype to avoid an error. */
3837     /* We use char because int might match the return type of a gcc2
3838     builtin and then its argument prototype would still apply. */
3839     char cam_open_btl();
3840    
3841     int main() {
3842     cam_open_btl()
3843     ; return 0; }
3844     EOF
3845 cebix 1.17 if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 cebix 1.1 rm -rf conftest*
3847     eval "ac_cv_lib_$ac_lib_var=yes"
3848     else
3849     echo "configure: failed program was:" >&5
3850     cat conftest.$ac_ext >&5
3851     rm -rf conftest*
3852     eval "ac_cv_lib_$ac_lib_var=no"
3853     fi
3854     rm -f conftest*
3855     LIBS="$ac_save_LIBS"
3856    
3857     fi
3858     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3859     echo "$ac_t""yes" 1>&6
3860     HAVE_LIBCAM=yes
3861     else
3862     echo "$ac_t""no" 1>&6
3863     HAVE_LIBCAM=no
3864     fi
3865    
3866     if [ "x$HAVE_LIBCAM" = "xno" ]; then
3867     { echo "configure: error: Cannot find libcam for SCSI management." 1>&2; exit 1; }
3868     else
3869     ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'`
3870     echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6
3871 cebix 1.17 echo "configure:3872: checking for /sys/cam/cam.h" >&5
3872 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3873     echo $ac_n "(cached) $ac_c" 1>&6
3874     else
3875     cat > conftest.$ac_ext <<EOF
3876 cebix 1.17 #line 3877 "configure"
3877 cebix 1.1 #include "confdefs.h"
3878     #include </sys/cam/cam.h>
3879     EOF
3880     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3881 cebix 1.17 { (eval echo configure:3882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3882 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3883     if test -z "$ac_err"; then
3884     rm -rf conftest*
3885     eval "ac_cv_header_$ac_safe=yes"
3886     else
3887     echo "$ac_err" >&5
3888     echo "configure: failed program was:" >&5
3889     cat conftest.$ac_ext >&5
3890     rm -rf conftest*
3891     eval "ac_cv_header_$ac_safe=no"
3892     fi
3893     rm -f conftest*
3894     fi
3895     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3896     echo "$ac_t""yes" 1>&6
3897     :
3898     else
3899     echo "$ac_t""no" 1>&6
3900     fi
3901    
3902     if [ "x$ac_cv_header__sys_cam_cam_h" = "xno" ]; then
3903     { echo "configure: error: Cannot find kernel includes for CAM library." 1>&2; exit 1; }
3904     fi
3905 cebix 1.9 SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp audio_oss_esd.cpp"
3906 cebix 1.1 CXXFLAGS="$CXXFLAGS -I/sys"
3907     CFLAGS="$CFLAGS -I/sys"
3908     LIBS="$LIBS -lcam"
3909     DEFINES="$DEFINES -DBSD_COMP -DCAM"
3910     fi
3911     ;;
3912     FreeBSD*)
3913     echo $ac_n "checking for scsi_open in -lscsi""... $ac_c" 1>&6
3914 cebix 1.17 echo "configure:3915: checking for scsi_open in -lscsi" >&5
3915 cebix 1.1 ac_lib_var=`echo scsi'_'scsi_open | sed 'y%./+-%__p_%'`
3916     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917     echo $ac_n "(cached) $ac_c" 1>&6
3918     else
3919     ac_save_LIBS="$LIBS"
3920     LIBS="-lscsi $LIBS"
3921     cat > conftest.$ac_ext <<EOF
3922 cebix 1.17 #line 3923 "configure"
3923 cebix 1.1 #include "confdefs.h"
3924     /* Override any gcc2 internal prototype to avoid an error. */
3925     /* We use char because int might match the return type of a gcc2
3926     builtin and then its argument prototype would still apply. */
3927     char scsi_open();
3928    
3929     int main() {
3930     scsi_open()
3931     ; return 0; }
3932     EOF
3933 cebix 1.17 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 cebix 1.1 rm -rf conftest*
3935     eval "ac_cv_lib_$ac_lib_var=yes"
3936     else
3937     echo "configure: failed program was:" >&5
3938     cat conftest.$ac_ext >&5
3939     rm -rf conftest*
3940     eval "ac_cv_lib_$ac_lib_var=no"
3941     fi
3942     rm -f conftest*
3943     LIBS="$ac_save_LIBS"
3944    
3945     fi
3946     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3947     echo "$ac_t""yes" 1>&6
3948     HAVE_LIBSCSI=yes
3949     else
3950     echo "$ac_t""no" 1>&6
3951     HAVE_LIBSCSI=no
3952     fi
3953    
3954     if [ "x$HAVE_LIBSCSI" = "xno" ]; then
3955     { echo "configure: error: Cannot find libscsi for SCSI management." 1>&2; exit 1; }
3956     else
3957     ac_safe=`echo "scsi.h sys/scsiio.h" | sed 'y%./+-%__p_%'`
3958     echo $ac_n "checking for scsi.h sys/scsiio.h""... $ac_c" 1>&6
3959 cebix 1.17 echo "configure:3960: checking for scsi.h sys/scsiio.h" >&5
3960 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3961     echo $ac_n "(cached) $ac_c" 1>&6
3962     else
3963     cat > conftest.$ac_ext <<EOF
3964 cebix 1.17 #line 3965 "configure"
3965 cebix 1.1 #include "confdefs.h"
3966     #include <scsi.h sys/scsiio.h>
3967     EOF
3968     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3969 cebix 1.17 { (eval echo configure:3970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3970 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3971     if test -z "$ac_err"; then
3972     rm -rf conftest*
3973     eval "ac_cv_header_$ac_safe=yes"
3974     else
3975     echo "$ac_err" >&5
3976     echo "configure: failed program was:" >&5
3977     cat conftest.$ac_ext >&5
3978     rm -rf conftest*
3979     eval "ac_cv_header_$ac_safe=no"
3980     fi
3981     rm -f conftest*
3982     fi
3983     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3984     echo "$ac_t""yes" 1>&6
3985     :
3986     else
3987     echo "$ac_t""no" 1>&6
3988     fi
3989    
3990     if [ "x$ac_cv_header_scsi_h" = "xno" ]; then
3991     { echo "configure: error: Cannot find includes for the SCSI library." 1>&2; exit 1; }
3992     fi
3993     SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp ../dummy/audio_dummy.cpp"
3994     LIBS="$LIBS -lscsi"
3995     DEFINES="$DEFINES -DBSD_COMP"
3996     fi
3997     ;;
3998     SunOS*)
3999     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp Solaris/audio_solaris.cpp"
4000     DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS"
4001     ;;
4002     IRIX*)
4003     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp Irix/unaligned.c"
4004     DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200"
4005     LIBS="$LIBS -lm"
4006     ;;
4007     esac
4008 cebix 1.7 fi
4009 cebix 1.10 SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS"
4010 cebix 1.1
4011     HAVE_I386=no
4012     echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
4013 cebix 1.17 echo "configure:4014: checking for x86 target CPU" >&5
4014 cebix 1.1 cat > conftest.$ac_ext <<EOF
4015 cebix 1.17 #line 4016 "configure"
4016 cebix 1.1 #include "confdefs.h"
4017    
4018     #ifdef __i386__
4019     yes
4020     #endif
4021    
4022     EOF
4023     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024     egrep "yes" >/dev/null 2>&1; then
4025     rm -rf conftest*
4026     echo "$ac_t""yes" 1>&6; HAVE_I386=yes
4027     else
4028     rm -rf conftest*
4029     echo "$ac_t""no" 1>&6
4030     fi
4031     rm -f conftest*
4032    
4033    
4034 cebix 1.8 HAVE_SPARC=no
4035     echo $ac_n "checking for SPARC target CPU""... $ac_c" 1>&6
4036 cebix 1.17 echo "configure:4037: checking for SPARC target CPU" >&5
4037 cebix 1.8 cat > conftest.$ac_ext <<EOF
4038 cebix 1.17 #line 4039 "configure"
4039 cebix 1.8 #include "confdefs.h"
4040    
4041     #ifdef __sparc__
4042     yes
4043     #endif
4044    
4045     EOF
4046     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047     egrep "yes" >/dev/null 2>&1; then
4048     rm -rf conftest*
4049     echo "$ac_t""yes" 1>&6; HAVE_SPARC=yes
4050     else
4051     rm -rf conftest*
4052     echo "$ac_t""no" 1>&6
4053     fi
4054     rm -f conftest*
4055    
4056    
4057 cebix 1.1 HAVE_GAS=no
4058     echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
4059 cebix 1.17 echo "configure:4060: checking for GAS .p2align feature" >&5
4060 cebix 1.1 cat >conftest.S << EOF
4061     .text
4062     .p2align 5
4063     EOF
4064     if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi
4065     echo "$ac_t""$HAVE_GAS" 1>&6
4066    
4067     HAVE_GCC27=no
4068     echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
4069 cebix 1.17 echo "configure:4070: checking for GCC 2.7 or higher" >&5
4070 cebix 1.1 cat > conftest.$ac_ext <<EOF
4071 cebix 1.17 #line 4072 "configure"
4072 cebix 1.1 #include "confdefs.h"
4073     #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
4074     yes
4075     #endif
4076    
4077     EOF
4078     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4079     egrep "yes" >/dev/null 2>&1; then
4080     rm -rf conftest*
4081     echo "$ac_t""yes" 1>&6; HAVE_GCC27=yes
4082     else
4083     rm -rf conftest*
4084     echo "$ac_t""no" 1>&6
4085     fi
4086     rm -f conftest*
4087    
4088    
4089     if [ "x$HAVE_GCC27" = "xyes" ]; then
4090     CFLAGS="$CFLAGS -fomit-frame-pointer"
4091     CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
4092     fi
4093    
4094 cebix 1.11 WANT_X86_ASSEMBLY=no
4095     WANT_SPARC_V8_ASSEMBLY=no
4096     WANT_SPARC_V9_ASSEMBLY=no
4097 cebix 1.8 CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
4098 cebix 1.1 if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then
4099 cebix 1.8 DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
4100 cebix 1.1 if [ "x$HAVE_GAS" = "xyes" ]; then
4101 cebix 1.11 WANT_X86_ASSEMBLY=yes
4102 cebix 1.1 DEFINES="$DEFINES -DX86_ASSEMBLY"
4103 cebix 1.15 CPUSRCS="../uae_cpu/compiler.cpp cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
4104 cebix 1.1 fi
4105 cebix 1.8 elif [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then
4106     case "$MACHINE" in
4107     SunOS*)
4108     echo $ac_n "checking SPARC CPU architecture""... $ac_c" 1>&6
4109 cebix 1.17 echo "configure:4110: checking SPARC CPU architecture" >&5
4110 cebix 1.8 SPARC_TYPE=`Solaris/which_sparc`
4111     echo "$ac_t""$SPARC_TYPE" 1>&6
4112     case "$SPARC_TYPE" in
4113     SPARC_V8)
4114 cebix 1.11 WANT_SPARC_V8_ASSEMBLY=yes
4115 cebix 1.8 DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"
4116     CFLAGS="$CFLAGS -Wa,-Av8"
4117     CXXFLAGS="$CXXFLAGS -Wa,-Av8"
4118     ;;
4119     SPARC_V9)
4120 cebix 1.11 WANT_SPARC_V9_ASSEMBLY=yes
4121 cebix 1.8 DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"
4122     CFLAGS="$CFLAGS -Wa,-Av9"
4123     CXXFLAGS="$CXXFLAGS -Wa,-Av9"
4124     ;;
4125     esac
4126     ;;
4127     esac
4128 cebix 1.1 fi
4129 cebix 1.8
4130     CPUINCLUDES="-I../uae_cpu"
4131     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"
4132 cebix 1.1
4133    
4134    
4135    
4136    
4137     trap '' 1 2 15
4138     cat > confcache <<\EOF
4139     # This file is a shell script that caches the results of configure
4140     # tests run on this system so they can be shared between configure
4141     # scripts and configure runs. It is not useful on other systems.
4142     # If it contains results you don't want to keep, you may remove or edit it.
4143     #
4144     # By default, configure uses ./config.cache as the cache file,
4145     # creating it if it does not exist already. You can give configure
4146     # the --cache-file=FILE option to use a different cache file; that is
4147     # what configure does when it calls configure scripts in
4148     # subdirectories, so they share the cache.
4149     # Giving --cache-file=/dev/null disables caching, for debugging configure.
4150     # config.status only pays attention to the cache file if you give it the
4151     # --recheck option to rerun configure.
4152     #
4153     EOF
4154     # The following way of writing the cache mishandles newlines in values,
4155     # but we know of no workaround that is simple, portable, and efficient.
4156     # So, don't put newlines in cache variables' values.
4157     # Ultrix sh set writes to stderr and can't be redirected directly,
4158     # and sets the high bit in the cache file unless we assign to the vars.
4159     (set) 2>&1 |
4160     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4161     *ac_space=\ *)
4162     # `set' does not quote correctly, so add quotes (double-quote substitution
4163     # turns \\\\ into \\, and sed turns \\ into \).
4164     sed -n \
4165     -e "s/'/'\\\\''/g" \
4166     -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4167     ;;
4168     *)
4169     # `set' quotes correctly as required by POSIX, so do not add quotes.
4170     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4171     ;;
4172     esac >> confcache
4173     if cmp -s $cache_file confcache; then
4174     :
4175     else
4176     if test -w $cache_file; then
4177     echo "updating cache $cache_file"
4178     cat confcache > $cache_file
4179     else
4180     echo "not updating unwritable cache $cache_file"
4181     fi
4182     fi
4183     rm -f confcache
4184    
4185     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4186    
4187     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4188     # Let make expand exec_prefix.
4189     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4190    
4191     # Any assignment to VPATH causes Sun make to only execute
4192     # the first set of double-colon rules, so remove it if not needed.
4193     # If there is a colon in the path, we need to keep it.
4194     if test "x$srcdir" = x.; then
4195     ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4196     fi
4197    
4198     trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4199    
4200     DEFS=-DHAVE_CONFIG_H
4201    
4202     # Without the "./", some shells look in PATH for config.status.
4203     : ${CONFIG_STATUS=./config.status}
4204    
4205     echo creating $CONFIG_STATUS
4206     rm -f $CONFIG_STATUS
4207     cat > $CONFIG_STATUS <<EOF
4208     #! /bin/sh
4209     # Generated automatically by configure.
4210     # Run this file to recreate the current configuration.
4211     # This directory was configured as follows,
4212     # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4213     #
4214     # $0 $ac_configure_args
4215     #
4216     # Compiler output produced by configure, useful for debugging
4217     # configure, is in ./config.log if it exists.
4218    
4219     ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4220     for ac_option
4221     do
4222     case "\$ac_option" in
4223     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4224     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4225     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4226     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4227     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4228     exit 0 ;;
4229     -help | --help | --hel | --he | --h)
4230     echo "\$ac_cs_usage"; exit 0 ;;
4231     *) echo "\$ac_cs_usage"; exit 1 ;;
4232     esac
4233     done
4234    
4235     ac_given_srcdir=$srcdir
4236     ac_given_INSTALL="$INSTALL"
4237    
4238     trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4239     EOF
4240     cat >> $CONFIG_STATUS <<EOF
4241    
4242     # Protect against being on the right side of a sed subst in config.status.
4243     sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4244     s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4245     $ac_vpsub
4246     $extrasub
4247     s%@SHELL@%$SHELL%g
4248     s%@CFLAGS@%$CFLAGS%g
4249     s%@CPPFLAGS@%$CPPFLAGS%g
4250     s%@CXXFLAGS@%$CXXFLAGS%g
4251     s%@FFLAGS@%$FFLAGS%g
4252     s%@DEFS@%$DEFS%g
4253     s%@LDFLAGS@%$LDFLAGS%g
4254     s%@LIBS@%$LIBS%g
4255     s%@exec_prefix@%$exec_prefix%g
4256     s%@prefix@%$prefix%g
4257     s%@program_transform_name@%$program_transform_name%g
4258     s%@bindir@%$bindir%g
4259     s%@sbindir@%$sbindir%g
4260     s%@libexecdir@%$libexecdir%g
4261     s%@datadir@%$datadir%g
4262     s%@sysconfdir@%$sysconfdir%g
4263     s%@sharedstatedir@%$sharedstatedir%g
4264     s%@localstatedir@%$localstatedir%g
4265     s%@libdir@%$libdir%g
4266     s%@includedir@%$includedir%g
4267     s%@oldincludedir@%$oldincludedir%g
4268     s%@infodir@%$infodir%g
4269     s%@mandir@%$mandir%g
4270     s%@CC@%$CC%g
4271 cebix 1.3 s%@CPP@%$CPP%g
4272 cebix 1.1 s%@CXX@%$CXX%g
4273     s%@SET_MAKE@%$SET_MAKE%g
4274     s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4275     s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4276     s%@INSTALL_DATA@%$INSTALL_DATA%g
4277     s%@X_CFLAGS@%$X_CFLAGS%g
4278     s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4279     s%@X_LIBS@%$X_LIBS%g
4280     s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4281     s%@GTK_CONFIG@%$GTK_CONFIG%g
4282     s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4283     s%@GTK_LIBS@%$GTK_LIBS%g
4284 cebix 1.9 s%@ESD_CONFIG@%$ESD_CONFIG%g
4285     s%@ESD_CFLAGS@%$ESD_CFLAGS%g
4286     s%@ESD_LIBS@%$ESD_LIBS%g
4287 cebix 1.1 s%@DEFINES@%$DEFINES%g
4288     s%@SYSSRCS@%$SYSSRCS%g
4289     s%@CPUINCLUDES@%$CPUINCLUDES%g
4290     s%@CPUSRCS@%$CPUSRCS%g
4291    
4292     CEOF
4293     EOF
4294    
4295     cat >> $CONFIG_STATUS <<\EOF
4296    
4297     # Split the substitutions into bite-sized pieces for seds with
4298     # small command number limits, like on Digital OSF/1 and HP-UX.
4299     ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4300     ac_file=1 # Number of current file.
4301     ac_beg=1 # First line for current file.
4302     ac_end=$ac_max_sed_cmds # Line after last line for current file.
4303     ac_more_lines=:
4304     ac_sed_cmds=""
4305     while $ac_more_lines; do
4306     if test $ac_beg -gt 1; then
4307     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4308     else
4309     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4310     fi
4311     if test ! -s conftest.s$ac_file; then
4312     ac_more_lines=false
4313     rm -f conftest.s$ac_file
4314     else
4315     if test -z "$ac_sed_cmds"; then
4316     ac_sed_cmds="sed -f conftest.s$ac_file"
4317     else
4318     ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4319     fi
4320     ac_file=`expr $ac_file + 1`
4321     ac_beg=$ac_end
4322     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4323     fi
4324     done
4325     if test -z "$ac_sed_cmds"; then
4326     ac_sed_cmds=cat
4327     fi
4328     EOF
4329    
4330     cat >> $CONFIG_STATUS <<EOF
4331    
4332     CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4333     EOF
4334     cat >> $CONFIG_STATUS <<\EOF
4335     for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4336     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4337     case "$ac_file" in
4338     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4339     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4340     *) ac_file_in="${ac_file}.in" ;;
4341     esac
4342    
4343     # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4344    
4345     # Remove last slash and all that follows it. Not all systems have dirname.
4346     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4347     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4348     # The file is in a subdirectory.
4349     test ! -d "$ac_dir" && mkdir "$ac_dir"
4350     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4351     # A "../" for each directory in $ac_dir_suffix.
4352     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4353     else
4354     ac_dir_suffix= ac_dots=
4355     fi
4356    
4357     case "$ac_given_srcdir" in
4358     .) srcdir=.
4359     if test -z "$ac_dots"; then top_srcdir=.
4360     else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4361     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4362     *) # Relative path.
4363     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4364     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4365     esac
4366    
4367     case "$ac_given_INSTALL" in
4368     [/$]*) INSTALL="$ac_given_INSTALL" ;;
4369     *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4370     esac
4371    
4372     echo creating "$ac_file"
4373     rm -f "$ac_file"
4374     configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4375     case "$ac_file" in
4376     *Makefile*) ac_comsub="1i\\
4377     # $configure_input" ;;
4378     *) ac_comsub= ;;
4379     esac
4380    
4381     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4382     sed -e "$ac_comsub
4383     s%@configure_input@%$configure_input%g
4384     s%@srcdir@%$srcdir%g
4385     s%@top_srcdir@%$top_srcdir%g
4386     s%@INSTALL@%$INSTALL%g
4387     " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4388     fi; done
4389     rm -f conftest.s*
4390    
4391     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4392     # NAME is the cpp macro being defined and VALUE is the value it is being given.
4393     #
4394     # ac_d sets the value in "#define NAME VALUE" lines.
4395     ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4396     ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4397     ac_dC='\3'
4398     ac_dD='%g'
4399     # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4400     ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4401     ac_uB='\([ ]\)%\1#\2define\3'
4402     ac_uC=' '
4403     ac_uD='\4%g'
4404     # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4405     ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4406     ac_eB='$%\1#\2define\3'
4407     ac_eC=' '
4408     ac_eD='%g'
4409    
4410     if test "${CONFIG_HEADERS+set}" != set; then
4411     EOF
4412     cat >> $CONFIG_STATUS <<EOF
4413     CONFIG_HEADERS="config.h"
4414     EOF
4415     cat >> $CONFIG_STATUS <<\EOF
4416     fi
4417     for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4418     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4419     case "$ac_file" in
4420     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4421     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4422     *) ac_file_in="${ac_file}.in" ;;
4423     esac
4424    
4425     echo creating $ac_file
4426    
4427     rm -f conftest.frag conftest.in conftest.out
4428     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4429     cat $ac_file_inputs > conftest.in
4430    
4431     EOF
4432    
4433     # Transform confdefs.h into a sed script conftest.vals that substitutes
4434     # the proper values into config.h.in to produce config.h. And first:
4435     # Protect against being on the right side of a sed subst in config.status.
4436     # Protect against being in an unquoted here document in config.status.
4437     rm -f conftest.vals
4438     cat > conftest.hdr <<\EOF
4439     s/[\\&%]/\\&/g
4440     s%[\\$`]%\\&%g
4441     s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4442     s%ac_d%ac_u%gp
4443     s%ac_u%ac_e%gp
4444     EOF
4445     sed -n -f conftest.hdr confdefs.h > conftest.vals
4446     rm -f conftest.hdr
4447    
4448     # This sed command replaces #undef with comments. This is necessary, for
4449     # example, in the case of _POSIX_SOURCE, which is predefined and required
4450     # on some systems where configure will not decide to define it.
4451     cat >> conftest.vals <<\EOF
4452     s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4453     EOF
4454    
4455     # Break up conftest.vals because some shells have a limit on
4456     # the size of here documents, and old seds have small limits too.
4457    
4458     rm -f conftest.tail
4459     while :
4460     do
4461     ac_lines=`grep -c . conftest.vals`
4462     # grep -c gives empty output for an empty file on some AIX systems.
4463     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4464     # Write a limited-size here document to conftest.frag.
4465     echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4466     sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4467     echo 'CEOF
4468     sed -f conftest.frag conftest.in > conftest.out
4469     rm -f conftest.in
4470     mv conftest.out conftest.in
4471     ' >> $CONFIG_STATUS
4472     sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4473     rm -f conftest.vals
4474     mv conftest.tail conftest.vals
4475     done
4476     rm -f conftest.vals
4477    
4478     cat >> $CONFIG_STATUS <<\EOF
4479     rm -f conftest.frag conftest.h
4480     echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4481     cat conftest.in >> conftest.h
4482     rm -f conftest.in
4483     if cmp -s $ac_file conftest.h 2>/dev/null; then
4484     echo "$ac_file is unchanged"
4485     rm -f conftest.h
4486     else
4487     # Remove last slash and all that follows it. Not all systems have dirname.
4488     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4489     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4490     # The file is in a subdirectory.
4491     test ! -d "$ac_dir" && mkdir "$ac_dir"
4492     fi
4493     rm -f $ac_file
4494     mv conftest.h $ac_file
4495     fi
4496     fi; done
4497    
4498     EOF
4499     cat >> $CONFIG_STATUS <<EOF
4500    
4501     EOF
4502     cat >> $CONFIG_STATUS <<\EOF
4503    
4504     exit 0
4505     EOF
4506     chmod +x $CONFIG_STATUS
4507     rm -fr confdefs* $ac_clean_files
4508     test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4509    
4510 cebix 1.11
4511     echo
4512     echo Basilisk II configuration summary:
4513     echo
4514     echo XFree86 DGA support .............. : $WANT_XF86_DGA
4515 cebix 1.16 echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE
4516 cebix 1.11 echo fbdev DGA support ................ : $WANT_FBDEV_DGA
4517     echo ESD sound support ................ : $WANT_ESD
4518 cebix 1.13 echo GTK user interface ............... : $WANT_GTK
4519 cebix 1.11 echo mon debugger support ............. : $WANT_MON
4520     echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY
4521     echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY
4522     echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY
4523     echo
4524 cebix 1.1 echo "Configuration done. Now type \"make\"."