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