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