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