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