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