]> git.saurik.com Git - wxWidgets.git/blame - configure
Ensure that the busy cursor is dismissed
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
5c6fa7d2
RR
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by Autoconf 2.52.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7# Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10f2d63a 10
5c6fa7d2
RR
11# Avoid depending upon Character Ranges.
12as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15as_cr_digits='0123456789'
16as_cr_alnum=$as_cr_Letters$as_cr_digits
52127426 17
5c6fa7d2
RR
18# Sed expression to map a string onto a valid variable name.
19as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
52127426 20
5c6fa7d2
RR
21# Sed expression to map a string onto a valid CPP name.
22as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
52127426 23
5c6fa7d2
RR
24# Be Bourne compatible
25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30fi
52127426 31
5c6fa7d2
RR
32# Name of the executable.
33as_me=`echo "$0" |sed 's,.*[\\/],,'`
52127426 34
5c6fa7d2
RR
35if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr=expr
37else
38 as_expr=false
39fi
52127426 40
5c6fa7d2
RR
41rm -f conf$$ conf$$.exe conf$$.file
42echo >conf$$.file
43if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s=ln
54else
55 as_ln_s='cp -p'
56fi
57rm -f conf$$ conf$$.exe conf$$.file
52127426 58
5c6fa7d2 59as_executable_p="test -f"
52127426 60
5c6fa7d2
RR
61# Support unset when possible.
62if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset=unset
64else
65 as_unset=false
66fi
52127426 67
5c6fa7d2
RR
68# NLS nuisances.
69$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78# IFS
79# We need space, tab and new line, in precisely that order.
80as_nl='
81'
82IFS=" $as_nl"
83
84# CDPATH.
85$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87# Name of the host.
88# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89# so uname gets run too.
90ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92exec 6>&1
52127426 93
5c6fa7d2
RR
94#
95# Initializations.
96#
97ac_default_prefix=/usr/local
98cross_compiling=no
99subdirs=
100MFLAGS= MAKEFLAGS=
101SHELL=${CONFIG_SHELL-/bin/sh}
52127426 102
5c6fa7d2
RR
103# Maximum number of lines to put in a shell here document.
104# This variable seems obsolete. It should probably be removed, and
105# only ac_max_sed_lines should be used.
106: ${ac_max_here_lines=38}
52127426 107
5c6fa7d2
RR
108ac_unique_file="wx-config.in"
109# Factoring default headers for most tests.
110ac_includes_default="\
111#include <stdio.h>
112#if HAVE_SYS_TYPES_H
113# include <sys/types.h>
114#endif
115#if HAVE_SYS_STAT_H
116# include <sys/stat.h>
117#endif
118#if STDC_HEADERS
119# include <stdlib.h>
120# include <stddef.h>
121#else
122# if HAVE_STDLIB_H
123# include <stdlib.h>
124# endif
125#endif
126#if HAVE_STRING_H
127# if !STDC_HEADERS && HAVE_MEMORY_H
128# include <memory.h>
129# endif
130# include <string.h>
131#endif
132#if HAVE_STRINGS_H
133# include <strings.h>
134#endif
135#if HAVE_INTTYPES_H
136# include <inttypes.h>
137#else
138# if HAVE_STDINT_H
139# include <stdint.h>
140# endif
141#endif
142#if HAVE_UNISTD_H
143# include <unistd.h>
144#endif"
52127426 145
5c6fa7d2 146ac_subdirs_all="$ac_subdirs_all demos samples utils contrib"
10f2d63a
VZ
147
148# Initialize some variables set by options.
5c6fa7d2
RR
149ac_init_help=
150ac_init_version=false
10f2d63a
VZ
151# The variables have the same names as the options, with
152# dashes changed to underlines.
5c6fa7d2 153cache_file=/dev/null
10f2d63a 154exec_prefix=NONE
10f2d63a 155no_create=
10f2d63a
VZ
156no_recursion=
157prefix=NONE
158program_prefix=NONE
159program_suffix=NONE
160program_transform_name=s,x,x,
161silent=
162site=
163srcdir=
10f2d63a
VZ
164verbose=
165x_includes=NONE
166x_libraries=NONE
5c6fa7d2
RR
167
168# Installation directory options.
169# These are left unexpanded so users can "make install exec_prefix=/foo"
170# and all the variables that are supposed to be based on exec_prefix
171# by default will actually change.
172# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
173bindir='${exec_prefix}/bin'
174sbindir='${exec_prefix}/sbin'
175libexecdir='${exec_prefix}/libexec'
176datadir='${prefix}/share'
177sysconfdir='${prefix}/etc'
178sharedstatedir='${prefix}/com'
179localstatedir='${prefix}/var'
180libdir='${exec_prefix}/lib'
181includedir='${prefix}/include'
182oldincludedir='/usr/include'
183infodir='${prefix}/info'
184mandir='${prefix}/man'
185
5c6fa7d2
RR
186# Identity of this package.
187PACKAGE_NAME=
188PACKAGE_TARNAME=
189PACKAGE_VERSION=
190PACKAGE_STRING=
191PACKAGE_BUGREPORT=
10f2d63a
VZ
192
193ac_prev=
194for ac_option
195do
10f2d63a
VZ
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
199 ac_prev=
200 continue
201 fi
202
5c6fa7d2 203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
204
205 # Accept the important Cygnus configure options, so we can diagnose typos.
206
5c6fa7d2 207 case $ac_option in
10f2d63a
VZ
208
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 ac_prev=bindir ;;
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5c6fa7d2 212 bindir=$ac_optarg ;;
10f2d63a
VZ
213
214 -build | --build | --buil | --bui | --bu)
5c6fa7d2 215 ac_prev=build_alias ;;
10f2d63a 216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5c6fa7d2 217 build_alias=$ac_optarg ;;
10f2d63a
VZ
218
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5c6fa7d2
RR
224 cache_file=$ac_optarg ;;
225
226 --config-cache | -C)
227 cache_file=config.cache ;;
10f2d63a
VZ
228
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 ac_prev=datadir ;;
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 | --da=*)
5c6fa7d2 233 datadir=$ac_optarg ;;
10f2d63a
VZ
234
235 -disable-* | --disable-*)
5c6fa7d2 236 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 237 # Reject names that are not valid shell variable names.
5c6fa7d2
RR
238 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
239 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
240 { (exit 1); exit 1; }; }
241 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
242 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
243
244 -enable-* | --enable-*)
5c6fa7d2 245 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 246 # Reject names that are not valid shell variable names.
5c6fa7d2
RR
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
251 case $ac_option in
252 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
253 *) ac_optarg=yes ;;
254 esac
5c6fa7d2 255 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
256
257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
259 | --exec | --exe | --ex)
260 ac_prev=exec_prefix ;;
261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
263 | --exec=* | --exe=* | --ex=*)
5c6fa7d2 264 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
265
266 -gas | --gas | --ga | --g)
267 # Obsolete; use --with-gas.
268 with_gas=yes ;;
269
5c6fa7d2
RR
270 -help | --help | --hel | --he | -h)
271 ac_init_help=long ;;
272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
273 ac_init_help=recursive ;;
274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
275 ac_init_help=short ;;
10f2d63a
VZ
276
277 -host | --host | --hos | --ho)
5c6fa7d2 278 ac_prev=host_alias ;;
10f2d63a 279 -host=* | --host=* | --hos=* | --ho=*)
5c6fa7d2 280 host_alias=$ac_optarg ;;
10f2d63a
VZ
281
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev=includedir ;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
5c6fa7d2 287 includedir=$ac_optarg ;;
10f2d63a
VZ
288
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 ac_prev=infodir ;;
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5c6fa7d2 292 infodir=$ac_optarg ;;
10f2d63a
VZ
293
294 -libdir | --libdir | --libdi | --libd)
295 ac_prev=libdir ;;
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5c6fa7d2 297 libdir=$ac_optarg ;;
10f2d63a
VZ
298
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev=libexecdir ;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
5c6fa7d2 304 libexecdir=$ac_optarg ;;
10f2d63a
VZ
305
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev=localstatedir ;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5c6fa7d2 313 localstatedir=$ac_optarg ;;
10f2d63a
VZ
314
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 ac_prev=mandir ;;
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5c6fa7d2 318 mandir=$ac_optarg ;;
10f2d63a
VZ
319
320 -nfp | --nfp | --nf)
321 # Obsolete; use --without-fp.
322 with_fp=no ;;
323
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 | --no-cr | --no-c)
326 no_create=yes ;;
327
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 no_recursion=yes ;;
331
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev=oldincludedir ;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5c6fa7d2 339 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
340
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 ac_prev=prefix ;;
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5c6fa7d2 344 prefix=$ac_optarg ;;
10f2d63a
VZ
345
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev=program_prefix ;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5c6fa7d2 351 program_prefix=$ac_optarg ;;
10f2d63a
VZ
352
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev=program_suffix ;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5c6fa7d2 358 program_suffix=$ac_optarg ;;
10f2d63a
VZ
359
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev=program_transform_name ;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
5c6fa7d2 375 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
376
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
379 silent=yes ;;
380
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 ac_prev=sbindir ;;
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 | --sbi=* | --sb=*)
5c6fa7d2 385 sbindir=$ac_optarg ;;
10f2d63a
VZ
386
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
390 | --sha | --sh)
391 ac_prev=sharedstatedir ;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 | --sha=* | --sh=*)
5c6fa7d2 396 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
397
398 -site | --site | --sit)
399 ac_prev=site ;;
400 -site=* | --site=* | --sit=*)
5c6fa7d2 401 site=$ac_optarg ;;
10f2d63a
VZ
402
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 ac_prev=srcdir ;;
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5c6fa7d2 406 srcdir=$ac_optarg ;;
10f2d63a
VZ
407
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev=sysconfdir ;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5c6fa7d2 413 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
414
415 -target | --target | --targe | --targ | --tar | --ta | --t)
5c6fa7d2 416 ac_prev=target_alias ;;
10f2d63a 417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5c6fa7d2 418 target_alias=$ac_optarg ;;
10f2d63a
VZ
419
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 verbose=yes ;;
422
5c6fa7d2
RR
423 -version | --version | --versio | --versi | --vers | -V)
424 ac_init_version=: ;;
10f2d63a
VZ
425
426 -with-* | --with-*)
5c6fa7d2 427 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 428 # Reject names that are not valid shell variable names.
5c6fa7d2
RR
429 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
10f2d63a 432 ac_package=`echo $ac_package| sed 's/-/_/g'`
5c6fa7d2
RR
433 case $ac_option in
434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
435 *) ac_optarg=yes ;;
436 esac
5c6fa7d2 437 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
438
439 -without-* | --without-*)
5c6fa7d2 440 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 441 # Reject names that are not valid shell variable names.
5c6fa7d2
RR
442 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
443 { echo "$as_me: error: invalid package name: $ac_package" >&2
444 { (exit 1); exit 1; }; }
445 ac_package=`echo $ac_package | sed 's/-/_/g'`
446 eval "with_$ac_package=no" ;;
10f2d63a
VZ
447
448 --x)
449 # Obsolete; use --with-x.
450 with_x=yes ;;
451
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5c6fa7d2 457 x_includes=$ac_optarg ;;
10f2d63a
VZ
458
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5c6fa7d2 464 x_libraries=$ac_optarg ;;
10f2d63a 465
5c6fa7d2
RR
466 -*) { echo "$as_me: error: unrecognized option: $ac_option
467Try \`$0 --help' for more information." >&2
468 { (exit 1); exit 1; }; }
10f2d63a
VZ
469 ;;
470
5c6fa7d2
RR
471 *=*)
472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
473 # Reject names that are not valid shell variable names.
474 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
475 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
476 { (exit 1); exit 1; }; }
477 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
478 eval "$ac_envvar='$ac_optarg'"
479 export $ac_envvar ;;
480
10f2d63a 481 *)
5c6fa7d2
RR
482 # FIXME: should be removed in autoconf 3.0.
483 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
485 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
486 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
487 ;;
488
489 esac
490done
491
492if test -n "$ac_prev"; then
5c6fa7d2
RR
493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
494 { echo "$as_me: error: missing argument to $ac_option" >&2
495 { (exit 1); exit 1; }; }
52127426 496fi
52127426 497
5c6fa7d2
RR
498# Be sure to have absolute paths.
499for ac_var in exec_prefix prefix
500do
501 eval ac_val=$`echo $ac_var`
502 case $ac_val in
503 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
504 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
505 { (exit 1); exit 1; }; };;
506 esac
507done
52127426 508
5c6fa7d2
RR
509# Be sure to have absolute paths.
510for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
511 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 512do
5c6fa7d2
RR
513 eval ac_val=$`echo $ac_var`
514 case $ac_val in
515 [\\/$]* | ?:[\\/]* ) ;;
516 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
517 { (exit 1); exit 1; }; };;
10f2d63a
VZ
518 esac
519done
520
5c6fa7d2
RR
521# There might be people who depend on the old broken behavior: `$host'
522# used to hold the argument of --host etc.
523build=$build_alias
524host=$host_alias
525target=$target_alias
526
527# FIXME: should be removed in autoconf 3.0.
528if test "x$host_alias" != x; then
529 if test "x$build_alias" = x; then
530 cross_compiling=maybe
531 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
532 If a cross compiler is detected then cross compile mode will be used." >&2
533 elif test "x$build_alias" != "x$host_alias"; then
534 cross_compiling=yes
535 fi
536fi
10f2d63a 537
5c6fa7d2
RR
538ac_tool_prefix=
539test -n "$host_alias" && ac_tool_prefix=$host_alias-
10f2d63a 540
5c6fa7d2 541test "$silent" = yes && exec 6>/dev/null
10f2d63a
VZ
542
543# Find the source files, if location was not specified.
544if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
547 ac_prog=$0
5c6fa7d2 548 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
10f2d63a
VZ
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
550 srcdir=$ac_confdir
551 if test ! -r $srcdir/$ac_unique_file; then
552 srcdir=..
553 fi
554else
555 ac_srcdir_defaulted=no
556fi
557if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
5c6fa7d2
RR
559 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
560 { (exit 1); exit 1; }; }
10f2d63a 561 else
5c6fa7d2
RR
562 { echo "$as_me: error: cannot find sources in $srcdir" >&2
563 { (exit 1); exit 1; }; }
10f2d63a
VZ
564 fi
565fi
5c6fa7d2
RR
566srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
567ac_env_build_alias_set=${build_alias+set}
568ac_env_build_alias_value=$build_alias
569ac_cv_env_build_alias_set=${build_alias+set}
570ac_cv_env_build_alias_value=$build_alias
571ac_env_host_alias_set=${host_alias+set}
572ac_env_host_alias_value=$host_alias
573ac_cv_env_host_alias_set=${host_alias+set}
574ac_cv_env_host_alias_value=$host_alias
575ac_env_target_alias_set=${target_alias+set}
576ac_env_target_alias_value=$target_alias
577ac_cv_env_target_alias_set=${target_alias+set}
578ac_cv_env_target_alias_value=$target_alias
579ac_env_CC_set=${CC+set}
580ac_env_CC_value=$CC
581ac_cv_env_CC_set=${CC+set}
582ac_cv_env_CC_value=$CC
583ac_env_CFLAGS_set=${CFLAGS+set}
584ac_env_CFLAGS_value=$CFLAGS
585ac_cv_env_CFLAGS_set=${CFLAGS+set}
586ac_cv_env_CFLAGS_value=$CFLAGS
587ac_env_LDFLAGS_set=${LDFLAGS+set}
588ac_env_LDFLAGS_value=$LDFLAGS
589ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
590ac_cv_env_LDFLAGS_value=$LDFLAGS
591ac_env_CPPFLAGS_set=${CPPFLAGS+set}
592ac_env_CPPFLAGS_value=$CPPFLAGS
593ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
594ac_cv_env_CPPFLAGS_value=$CPPFLAGS
595ac_env_CPP_set=${CPP+set}
596ac_env_CPP_value=$CPP
597ac_cv_env_CPP_set=${CPP+set}
598ac_cv_env_CPP_value=$CPP
599ac_env_CXX_set=${CXX+set}
600ac_env_CXX_value=$CXX
601ac_cv_env_CXX_set=${CXX+set}
602ac_cv_env_CXX_value=$CXX
603ac_env_CXXFLAGS_set=${CXXFLAGS+set}
604ac_env_CXXFLAGS_value=$CXXFLAGS
605ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
606ac_cv_env_CXXFLAGS_value=$CXXFLAGS
607ac_env_CXXCPP_set=${CXXCPP+set}
608ac_env_CXXCPP_value=$CXXCPP
609ac_cv_env_CXXCPP_set=${CXXCPP+set}
610ac_cv_env_CXXCPP_value=$CXXCPP
611
612#
613# Report the --help message.
614#
615if test "$ac_init_help" = "long"; then
616 # Omit some internal or obsolete options to make the list less imposing.
617 # This message is too long to be a string in the A/UX 3.1 sh.
618 cat <<EOF
619\`configure' configures this package to adapt to many kinds of systems.
620
621Usage: $0 [OPTION]... [VAR=VALUE]...
622
623To assign environment variables (e.g., CC, CFLAGS...), specify them as
624VAR=VALUE. See below for descriptions of some of the useful variables.
625
626Defaults for the options are specified in brackets.
627
628Configuration:
629 -h, --help display this help and exit
630 --help=short display options specific to this package
631 --help=recursive display the short help of all the included packages
632 -V, --version display version information and exit
633 -q, --quiet, --silent do not print \`checking...' messages
634 --cache-file=FILE cache test results in FILE [disabled]
635 -C, --config-cache alias for \`--cache-file=config.cache'
636 -n, --no-create do not create output files
637 --srcdir=DIR find the sources in DIR [configure dir or \`..']
638
639EOF
640
641 cat <<EOF
642Installation directories:
643 --prefix=PREFIX install architecture-independent files in PREFIX
644 [$ac_default_prefix]
645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 [PREFIX]
647
648By default, \`make install' will install all the files in
649\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
650an installation prefix other than \`$ac_default_prefix' using \`--prefix',
651for instance \`--prefix=\$HOME'.
652
653For better control, use the options below.
654
655Fine tuning of the installation directories:
656 --bindir=DIR user executables [EPREFIX/bin]
657 --sbindir=DIR system admin executables [EPREFIX/sbin]
658 --libexecdir=DIR program executables [EPREFIX/libexec]
659 --datadir=DIR read-only architecture-independent data [PREFIX/share]
660 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
661 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
662 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
663 --libdir=DIR object code libraries [EPREFIX/lib]
664 --includedir=DIR C header files [PREFIX/include]
665 --oldincludedir=DIR C header files for non-gcc [/usr/include]
666 --infodir=DIR info documentation [PREFIX/info]
667 --mandir=DIR man documentation [PREFIX/man]
668EOF
669
670 cat <<\EOF
671
672X features:
673 --x-includes=DIR X include files are in DIR
674 --x-libraries=DIR X library files are in DIR
675
676System types:
677 --build=BUILD configure for building on BUILD [guessed]
678 --host=HOST build programs to run on HOST [BUILD]
679 --target=TARGET configure for building compilers for TARGET [HOST]
680EOF
681fi
682
683if test -n "$ac_init_help"; then
684
685 cat <<\EOF
686
687Optional Features:
688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
690 --enable-gui use GUI classes
691 --enable-universal use wxWindows GUI controls instead of native ones
692 --enable-nanox use NanoX
693 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
694 --enable-shared create shared library code
695 --enable-soname set the DT_SONAME field in ELF shared libraries
696 --enable-optimise create optimised code
697 --enable-debug same as debug_flag and debug_info
698 --enable-precomp enable use of precompiled headers (Mac OS X)
699 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
700 --enable-debug_info create code with debugging information
701 --enable-debug_gdb create code with extra GDB debugging information
702 --enable-debug_cntxt use wxDebugContext
703 --enable-mem_tracing create code with memory tracing
704 --enable-profile create code with profiling information
705 --enable-no_rtti create code without RTTI information
706 --enable-no_exceptions create code without C++ exceptions handling
707 --enable-permissive compile code disregarding strict ANSI
708 --enable-no_deps create code without dependency information
709 --enable-compat20 enable wxWindows 2.0 compatibility
710 --disable-compat22 disable wxWindows 2.2 compatibility
711 --enable-rpath=DIR output the rpath flag from wx-config
712 --enable-intl use internationalization system
713 --enable-config use wxConfig (and derived) classes
714 --enable-protocols use wxProtocol and derived classes
715 --enable-ftp use wxFTP (requires wxProtocol
716 --enable-http use wxHTTP (requires wxProtocol
717 --enable-fileproto use wxFileProto class (requires wxProtocol
718 --enable-sockets use socket/network classes
719 --enable-ipc use interprocess communication (wxSocket etc.)
720 --enable-cmdline use wxCmdLineParser class
721 --enable-datetime use wxDateTime class
722 --enable-timedate use obsolete wxDate/wxTime classes
723 --enable-stopwatch use wxStopWatch class
724 --enable-dialupman use dialup network classes
725 --enable-apple_ieee use the Apple IEEE codec
726 --enable-timer use wxTimer class
727 --enable-wave use wxWave class
728 --enable-fraction use wxFraction class
729 --enable-dynlib use wxLibrary class for DLL loading
730 --enable-dynamicloader use (new) wxDynamicLibrary class
731 --enable-longlong use wxLongLong class
732 --enable-geometry use geometry class
733 --enable-log use logging system
734 --enable-streams use wxStream etc classes
735 --enable-file use wxFile classes
736 --enable-ffile use wxFFile classes
737 --enable-textbuf use wxTextBuffer class
738 --enable-textfile use wxTextFile class
739 --enable-fontmap use font encodings conversion classes
740 --enable-unicode compile wxString with Unicode support
741 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
742 --enable-wxprintfv use wxWindows implementation of vprintf()
743 --enable-std_iostreams use standard C++ stream classes
744 --enable-filesystem use virtual file systems classes
745 --enable-fs_inet use virtual HTTP/FTP filesystems
746 --enable-fs_zip use virtual ZIP filesystems
747 --enable-zipstream use wxZipInputStream
748 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
749 --enable-snglinst use wxSingleInstanceChecker class
750 --enable-mimetype use wxMimeTypesManager
751 --enable-sysoptions use wxSystemOptions
752 --enable-url use wxURL class
753 --enable-protocol use wxProtocol class
754 --enable-protocol-http HTTP support in wxProtocol
755 --enable-protocol-ftp FTP support in wxProtocol
756 --enable-protocol-file FILE support in wxProtocol
757 --enable-threads use threads
758 --enable-docview use document view architecture
759 --enable-help use help subsystem
760 --enable-mshtmlhelp use MS HTML Help (win32)
761 --enable-html use wxHTML sub-library
762 --enable-htmlhelp use wxHTML-based help
763 --enable-constraints use layout-constraints system
764 --enable-printarch use printing architecture
765 --enable-mdi use multiple document interface architecture
766 --enable-loggui use standard GUI logger
767 --enable-logwin use wxLogWindow
768 --enable-logdialog use wxLogDialog
769 --enable-postscript use wxPostscriptDC device context (default for gtk+)
770 --enable-prologio use Prolog IO library
771 --enable-resources use wxWindows resources
772 --enable-xresources use X resources for save (default for gtk+)
773 --enable-clipboard use wxClipboard classes
774 --enable-dnd use Drag'n'Drop classes
775 --enable-metafile use win32 metafiles
776 --enable-treelayout use wxTreeLayout classes
777 --enable-controls use all usual controls
778 --enable-accel use accelerators
779 --enable-button use wxButton class
780 --enable-bmpbutton use wxBitmapButton class
781 --enable-calendar use wxCalendarCtrl class
782 --enable-caret use wxCaret class
783 --enable-checkbox use wxCheckBox class
784 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
785 --enable-choice use wxChoice class
786 --enable-combobox use wxComboBox classes
787 --enable-gauge use wxGauge class
788 --enable-grid use wxGrid class
789 --enable-newgrid use new wxGrid class
790 --enable-imaglist use wxImageList class
791 --enable-listbox use wxListBox class
792 --enable-listctrl use wxListCtrl class
793 --enable-notebook use wxNotebook class
794 --enable-propsheet use wxPropertySheet class
795 --enable-radiobox use wxRadioBox class
796 --enable-radiobtn use wxRadioButton class
797 --enable-sash use wxSashWindow class
798 --enable-scrollbar use wxScrollBar class and scrollable windows
799 --enable-slider use wxSlider class
800 --enable-spinbtn use wxSpinButton class
801 --enable-spinctrl use wxSpinCtrl class
802 --enable-splitter use wxSplitterWindow class
803 --enable-statbmp use wxStaticBitmap class
804 --enable-statbox use wxStaticBox class
805 --enable-statline use wxStaticLine class
806 --enable-stattext use wxStaticText class
807 --enable-statusbar use wxStatusBar class
808 --enable-tabdialog use wxTabControl class
809 --enable-textctrl use wxTextCtrl class
810 --enable-togglebtn use wxToggleButton class
811 --enable-toolbar use wxToolBar class
812 --enable-tbarnative use native wxToolBar class
813 --enable-tbarsmpl use wxToolBarSimple class
814 --enable-treectrl use wxTreeCtrl class
815 --enable-tipwindow use wxTipWindow class
816 --enable-popupwin use wxPopUpWindow class
817 --enable-commondlg use all common dialogs
818 --enable-choicedlg use wxChoiceDialog
819 --enable-coldlg use wxColourDialog
820 --enable-filedlg use wxFileDialog
821 --enable-finddlg use wxFindReplaceDialog
822 --enable-fontdlg use wxFontDialog
823 --enable-dirdlg use wxDirDialog
824 --enable-msgdlg use wxMessageDialog
825 --enable-numberdlg use wxNumberEntryDialog
826 --enable-splash use wxSplashScreen
827 --enable-textdlg use wxTextDialog
828 --enable-tipdlg use startup tips
829 --enable-progressdlg use wxProgressDialog
830 --enable-wizarddlg use wxWizard
831 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
832 --enable-miniframe use wxMiniFrame class
833 --enable-tooltips use wxToolTip class
834 --enable-splines use spline drawing code
835 --enable-validators use wxValidator and derived classes
836 --enable-busyinfo use wxBusyInfo
837 --enable-joystick use wxJoystick (Linux only)
838 --enable-metafiles use wxMetaFile (Windows only)
839 --enable-dragimage use wxDragImage
840 --enable-palette use wxPalette class
841 --enable-image use wxImage class
842 --enable-gif use gif images (GIF file format)
843 --enable-pcx use pcx images (PCX file format)
844 --enable-iff use iff images (IFF file format)
845 --enable-pnm use pnm images (PNM file format)
846 --enable-xpm use xpm images (XPM file format)
847 --enable-icocur use Windows ICO and CUR formats
848 --disable-largefile omit support for large files
849 --disable-gtktest do not try to compile and run a test GTK+ program
850 --disable-gtktest Do not try to compile and run a test GTK program
851
852Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-gtk use GTK+
856 --with-motif use Motif/Lesstif
857 --with-mac use Mac OS X
858 --with-wine use WINE
859 --with-msw use MS-Windows
860 --with-pm use OS/2 Presentation Manager
861 --with-mgl use SciTech MGL
862 --with-microwin use MicroWindows
863 --with-x11 use X11
864 --with-libpng use libpng (PNG image format)
865 --with-libjpeg use libjpeg (JPEG file format)
866 --with-libtiff use libtiff (TIFF file format)
867 --with-opengl use OpenGL (or Mesa)
868 --with-dmalloc use dmalloc library (http://dmalloc.com/)
869 --with-regex enable support for wxRegEx class
870 --with-zlib use zlib for LZW compression
871 --with-odbc use the IODBC and wxODBC classes
872 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
873 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
874 --with-x use the X Window System
875 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885 CXX C++ compiler command
886 CXXFLAGS C++ compiler flags
887 CXXCPP C++ preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892EOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
899 cd $ac_subdir
900 # A "../" for each directory in /$ac_subdir.
901 ac_dots=`echo $ac_subdir |
902 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_sub_srcdir=$srcdir ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_sub_srcdir=$srcdir/$ac_subdir ;;
909 *) # Relative path.
910 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
911 esac
912
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_sub_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_sub_srcdir/configure; then
918 echo
919 $SHELL $ac_sub_srcdir/configure --help=recursive
920 elif test -f $ac_sub_srcdir/configure.ac ||
921 test -f $ac_sub_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
926 fi
927 cd $ac_popdir
928 done
929fi
930
931test -n "$ac_init_help" && exit 0
932if $ac_init_version; then
933 cat <<\EOF
934
935Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
936Free Software Foundation, Inc.
937This configure script is free software; the Free Software Foundation
938gives unlimited permission to copy, distribute and modify it.
939EOF
940 exit 0
941fi
942exec 5>config.log
943cat >&5 <<EOF
944This file contains any messages produced by compilers while
945running configure, to aid debugging if configure makes a mistake.
946
947It was created by $as_me, which was
948generated by GNU Autoconf 2.52. Invocation command line was
949
950 $ $0 $@
951
952EOF
953{
954cat <<_ASUNAME
955## ---------- ##
956## Platform. ##
957## ---------- ##
958
959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960uname -m = `(uname -m) 2>/dev/null || echo unknown`
961uname -r = `(uname -r) 2>/dev/null || echo unknown`
962uname -s = `(uname -s) 2>/dev/null || echo unknown`
963uname -v = `(uname -v) 2>/dev/null || echo unknown`
328a083c 964
5c6fa7d2
RR
965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976PATH = $PATH
977
978_ASUNAME
979} >&5
980
981cat >&5 <<EOF
982## ------------ ##
983## Core tests. ##
984## ------------ ##
985
986EOF
987
988# Keep a trace of the command line.
989# Strip out --no-create and --no-recursion so they do not pile up.
990# Also quote any args containing shell meta-characters.
991ac_configure_args=
992ac_sep=
993for ac_arg
994do
995 case $ac_arg in
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c) ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1002 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 ac_sep=" " ;;
1004 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1005 ac_sep=" " ;;
1006 esac
1007 # Get rid of the leading space.
1008done
1009
1010# When interrupted or exit'd, cleanup temporary files, and complete
1011# config.log. We remove comments because anyway the quotes in there
1012# would cause problems or look ugly.
1013trap 'exit_status=$?
1014 # Save into config.log some information that might help in debugging.
1015 echo >&5
1016 echo "## ----------------- ##" >&5
1017 echo "## Cache variables. ##" >&5
1018 echo "## ----------------- ##" >&5
1019 echo >&5
1020 # The following way of writing the cache mishandles newlines in values,
1021{
1022 (set) 2>&1 |
1023 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1024 *ac_space=\ *)
1025 sed -n \
1026 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1028 ;;
1029 *)
1030 sed -n \
1031 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1032 ;;
1033 esac;
1034} >&5
1035 sed "/^$/d" confdefs.h >conftest.log
1036 if test -s conftest.log; then
1037 echo >&5
1038 echo "## ------------ ##" >&5
1039 echo "## confdefs.h. ##" >&5
1040 echo "## ------------ ##" >&5
1041 echo >&5
1042 cat conftest.log >&5
1043 fi
1044 (echo; echo) >&5
1045 test "$ac_signal" != 0 &&
1046 echo "$as_me: caught signal $ac_signal" >&5
1047 echo "$as_me: exit $exit_status" >&5
1048 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1049 exit $exit_status
1050 ' 0
1051for ac_signal in 1 2 13 15; do
1052 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1053done
1054ac_signal=0
1055
1056# confdefs.h avoids OS command line length limits that DEFS can exceed.
1057rm -rf conftest* confdefs.h
1058# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1059echo >confdefs.h
1060
1061# Let the site file select an alternate cache file if it wants to.
10f2d63a
VZ
1062# Prefer explicitly selected file to automatically selected ones.
1063if test -z "$CONFIG_SITE"; then
1064 if test "x$prefix" != xNONE; then
1065 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 else
1067 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1068 fi
1069fi
1070for ac_site_file in $CONFIG_SITE; do
1071 if test -r "$ac_site_file"; then
5c6fa7d2
RR
1072 { echo "$as_me:1072: loading site script $ac_site_file" >&5
1073echo "$as_me: loading site script $ac_site_file" >&6;}
1074 cat "$ac_site_file" >&5
10f2d63a
VZ
1075 . "$ac_site_file"
1076 fi
1077done
1078
1079if test -r "$cache_file"; then
5c6fa7d2
RR
1080 # Some versions of bash will fail to source /dev/null (special
1081 # files actually), so we avoid doing that.
1082 if test -f "$cache_file"; then
1083 { echo "$as_me:1083: loading cache $cache_file" >&5
1084echo "$as_me: loading cache $cache_file" >&6;}
1085 case $cache_file in
1086 [\\/]* | ?:[\\/]* ) . $cache_file;;
1087 *) . ./$cache_file;;
1088 esac
1089 fi
10f2d63a 1090else
5c6fa7d2
RR
1091 { echo "$as_me:1091: creating cache $cache_file" >&5
1092echo "$as_me: creating cache $cache_file" >&6;}
1093 >$cache_file
1094fi
1095
1096# Check that the precious variables saved in the cache have kept the same
1097# value.
1098ac_cache_corrupted=false
1099for ac_var in `(set) 2>&1 |
1100 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1101 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1102 eval ac_new_set=\$ac_env_${ac_var}_set
1103 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1104 eval ac_new_val="\$ac_env_${ac_var}_value"
1105 case $ac_old_set,$ac_new_set in
1106 set,)
1107 { echo "$as_me:1107: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1108echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1109 ac_cache_corrupted=: ;;
1110 ,set)
1111 { echo "$as_me:1111: error: \`$ac_var' was not set in the previous run" >&5
1112echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1113 ac_cache_corrupted=: ;;
1114 ,);;
1115 *)
1116 if test "x$ac_old_val" != "x$ac_new_val"; then
1117 { echo "$as_me:1117: error: \`$ac_var' has changed since the previous run:" >&5
1118echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1119 { echo "$as_me:1119: former value: $ac_old_val" >&5
1120echo "$as_me: former value: $ac_old_val" >&2;}
1121 { echo "$as_me:1121: current value: $ac_new_val" >&5
1122echo "$as_me: current value: $ac_new_val" >&2;}
1123 ac_cache_corrupted=:
1124 fi;;
1125 esac
1126 # Pass precious variables to config.status. It doesn't matter if
1127 # we pass some twice (in addition to the command line arguments).
1128 if test "$ac_new_set" = set; then
1129 case $ac_new_val in
1130 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1131 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1132 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 ;;
1134 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1135 ;;
1136 esac
1137 fi
1138done
1139if $ac_cache_corrupted; then
1140 { echo "$as_me:1140: error: changes in the environment can compromise the build" >&5
1141echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1142 { { echo "$as_me:1142: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1143echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1144 { (exit 1); exit 1; }; }
10f2d63a
VZ
1145fi
1146
1147ac_ext=c
10f2d63a 1148ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
1149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1151ac_compiler_gnu=$ac_cv_c_compiler_gnu
1152
1153case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1154 *c*,-n*) ECHO_N= ECHO_C='
1155' ECHO_T=' ' ;;
1156 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1157 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1158esac
1159echo "#! $SHELL" >conftest.sh
1160echo "exit 0" >>conftest.sh
1161chmod +x conftest.sh
1162if { (echo "$as_me:1162: PATH=\".;.\"; conftest.sh") >&5
1163 (PATH=".;."; conftest.sh) 2>&5
1164 ac_status=$?
1165 echo "$as_me:1165: \$? = $ac_status" >&5
1166 (exit $ac_status); }; then
1167 ac_path_separator=';'
10f2d63a 1168else
5c6fa7d2 1169 ac_path_separator=:
10f2d63a 1170fi
5c6fa7d2
RR
1171PATH_SEPARATOR="$ac_path_separator"
1172rm -f conftest.sh
10f2d63a 1173
7c66a493
VZ
1174ac_aux_dir=
1175for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1176 if test -f $ac_dir/install-sh; then
1177 ac_aux_dir=$ac_dir
1178 ac_install_sh="$ac_aux_dir/install-sh -c"
1179 break
1180 elif test -f $ac_dir/install.sh; then
1181 ac_aux_dir=$ac_dir
1182 ac_install_sh="$ac_aux_dir/install.sh -c"
1183 break
5c6fa7d2
RR
1184 elif test -f $ac_dir/shtool; then
1185 ac_aux_dir=$ac_dir
1186 ac_install_sh="$ac_aux_dir/shtool install -c"
1187 break
7c66a493
VZ
1188 fi
1189done
1190if test -z "$ac_aux_dir"; then
5c6fa7d2
RR
1191 { { echo "$as_me:1191: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1192echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1193 { (exit 1); exit 1; }; }
7c66a493 1194fi
5c6fa7d2
RR
1195ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1196ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1197ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
698dcdb6 1198
5c6fa7d2
RR
1199# Make sure we can run config.sub.
1200$ac_config_sub sun4 >/dev/null 2>&1 ||
1201 { { echo "$as_me:1201: error: cannot run $ac_config_sub" >&5
1202echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1203 { (exit 1); exit 1; }; }
1204
1205echo "$as_me:1205: checking build system type" >&5
1206echo $ECHO_N "checking build system type... $ECHO_C" >&6
1207if test "${ac_cv_build+set}" = set; then
1208 echo $ECHO_N "(cached) $ECHO_C" >&6
1209else
1210 ac_cv_build_alias=$build_alias
1211test -z "$ac_cv_build_alias" &&
1212 ac_cv_build_alias=`$ac_config_guess`
1213test -z "$ac_cv_build_alias" &&
1214 { { echo "$as_me:1214: error: cannot guess build type; you must specify one" >&5
1215echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1216 { (exit 1); exit 1; }; }
1217ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1218 { { echo "$as_me:1218: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1219echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1220 { (exit 1); exit 1; }; }
1221
1222fi
1223echo "$as_me:1223: result: $ac_cv_build" >&5
1224echo "${ECHO_T}$ac_cv_build" >&6
1225build=$ac_cv_build
1226build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1227build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1228build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1229
1230test -z "$build_alias" &&
1231 build_alias=$ac_cv_build
1232
1233echo "$as_me:1233: checking host system type" >&5
1234echo $ECHO_N "checking host system type... $ECHO_C" >&6
1235if test "${ac_cv_host+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1237else
1238 ac_cv_host_alias=$host_alias
1239test -z "$ac_cv_host_alias" &&
1240 ac_cv_host_alias=$ac_cv_build_alias
1241ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1242 { { echo "$as_me:1242: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1243echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1244 { (exit 1); exit 1; }; }
1245
1246fi
1247echo "$as_me:1247: result: $ac_cv_host" >&5
1248echo "${ECHO_T}$ac_cv_host" >&6
1249host=$ac_cv_host
1250host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1251host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1252host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253
1254test -z "$host_alias" &&
1255 host_alias=$ac_cv_host
1256
1257echo "$as_me:1257: checking target system type" >&5
1258echo $ECHO_N "checking target system type... $ECHO_C" >&6
1259if test "${ac_cv_target+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1261else
1262 ac_cv_target_alias=$target_alias
1263test "x$ac_cv_target_alias" = "x" &&
1264 ac_cv_target_alias=$ac_cv_host_alias
1265ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1266 { { echo "$as_me:1266: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1267echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1268 { (exit 1); exit 1; }; }
1269
1270fi
1271echo "$as_me:1271: result: $ac_cv_target" >&5
1272echo "${ECHO_T}$ac_cv_target" >&6
1273target=$ac_cv_target
1274target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1275target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1276target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7c66a493
VZ
1277
1278# The aliases save the names the user supplied, while $host etc.
1279# will get canonicalized.
5c6fa7d2 1280test -n "$target_alias" &&
7c66a493
VZ
1281 test "$program_prefix$program_suffix$program_transform_name" = \
1282 NONENONEs,x,x, &&
1283 program_prefix=${target_alias}-
5c6fa7d2
RR
1284test -z "$target_alias" &&
1285 target_alias=$ac_cv_target
698dcdb6 1286
10f2d63a 1287WX_MAJOR_VERSION_NUMBER=2
37d403aa 1288WX_MINOR_VERSION_NUMBER=3
a0d927d1 1289WX_RELEASE_NUMBER=3
10f2d63a 1290
10f2d63a 1291WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1292WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1293
978f1259
RL
1294WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1295
a0d927d1 1296WX_CURRENT=2
6426998c
RL
1297WX_REVISION=0
1298WX_AGE=0
1299
10f2d63a
VZ
1300USE_UNIX=1
1301USE_WIN32=0
f9bc1684 1302USE_DOS=0
b12915c1 1303USE_BEOS=0
1216f52d 1304USE_MAC=0
b12915c1 1305
10f2d63a
VZ
1306USE_LINUX=
1307USE_SGI=
1308USE_HPUX=
1309USE_SYSV=
1310USE_SVR4=
1311USE_AIX=
1312USE_SUN=
1313USE_SOLARIS=
1314USE_SUNOS=
1315USE_ALPHA=
1316USE_OSF=
1317USE_BSD=
f11bdd03 1318USE_DARWIN=
10f2d63a 1319USE_FREEBSD=
95c8801c 1320USE_OPENBSD=
f6bcfd97 1321USE_NETBSD=
10f2d63a
VZ
1322USE_VMS=
1323USE_ULTRIX=
10f2d63a
VZ
1324USE_DATA_GENERAL=
1325
ab9b9eab
VZ
1326NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1327
f79bd02d 1328ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1329
1330DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1331DEFAULT_wxUSE_MAC=0
1332DEFAULT_wxUSE_MGL=0
1725144d 1333DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1334DEFAULT_wxUSE_MOTIF=0
1335DEFAULT_wxUSE_MSW=0
e07802fc 1336DEFAULT_wxUSE_PM=0
1e6feb95 1337DEFAULT_wxUSE_WINE=0
f79bd02d 1338DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1339
1340DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1341DEFAULT_DEFAULT_wxUSE_MAC=0
1342DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1343DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1344DEFAULT_DEFAULT_wxUSE_MOTIF=0
1345DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1346DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1347DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1348DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1349
d6a55c4b 1350PROGRAM_EXT=
3a922bb4 1351SO_SUFFIX=so
d6a55c4b 1352
10f2d63a
VZ
1353case "${host}" in
1354 *-hp-hpux* )
1355 USE_HPUX=1
1356 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1357 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1358 SO_SUFFIX=sl
5c6fa7d2 1359 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1360#define __HPUX__ 1
1361EOF
1362
1363 ;;
1364 *-*-linux* )
1365 USE_LINUX=1
5c6fa7d2 1366 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1367#define __LINUX__ 1
1368EOF
1369
1370 TMP=`uname -m`
1371 if test "x$TMP" = "xalpha"; then
1372 USE_ALPHA=1
5c6fa7d2 1373 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1374#define __ALPHA__ 1
1375EOF
1376
1377 fi
1378 DEFAULT_DEFAULT_wxUSE_GTK=1
1379 ;;
1380 *-*-irix5* | *-*-irix6* )
1381 USE_SGI=1
1382 USE_SVR4=1
5c6fa7d2 1383 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1384#define __SGI__ 1
1385EOF
1386
5c6fa7d2 1387 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1388#define __SVR4__ 1
1389EOF
1390
1391 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1392 ;;
1393 *-*-solaris2* )
1394 USE_SUN=1
1395 USE_SOLARIS=1
1396 USE_SVR4=1
5c6fa7d2 1397 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1398#define __SUN__ 1
1399EOF
1400
5c6fa7d2 1401 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1402#define __SOLARIS__ 1
1403EOF
1404
5c6fa7d2 1405 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1406#define __SVR4__ 1
1407EOF
1408
1409 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1410 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1411 ;;
1412 *-*-sunos4* )
1413 USE_SUN=1
1414 USE_SUNOS=1
1415 USE_BSD=1
5c6fa7d2 1416 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1417#define __SUN__ 1
1418EOF
1419
5c6fa7d2 1420 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1421#define __SUNOS__ 1
1422EOF
1423
5c6fa7d2 1424 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1425#define __BSD__ 1
1426EOF
1427
1428 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1429 ;;
f6bcfd97 1430 *-*-freebsd*)
10f2d63a
VZ
1431 USE_BSD=1
1432 USE_FREEBSD=1
5c6fa7d2 1433 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1434#define __FREEBSD__ 1
1435EOF
1436
5c6fa7d2 1437 cat >>confdefs.h <<\EOF
10f2d63a 1438#define __BSD__ 1
95c8801c
VS
1439EOF
1440
1441 DEFAULT_DEFAULT_wxUSE_GTK=1
1442 ;;
1443 *-*-openbsd*)
1444 USE_BSD=1
1445 USE_OPENBSD=1
5c6fa7d2 1446 cat >>confdefs.h <<\EOF
95c8801c
VS
1447#define __FREEBSD__ 1
1448EOF
1449
5c6fa7d2 1450 cat >>confdefs.h <<\EOF
95c8801c 1451#define __OPENBSD__ 1
f6bcfd97
BP
1452EOF
1453
1454 DEFAULT_DEFAULT_wxUSE_GTK=1
1455 ;;
1456 *-*-netbsd*)
1457 USE_BSD=1
1458 USE_NETBSD=1
5c6fa7d2 1459 cat >>confdefs.h <<\EOF
f6bcfd97
BP
1460#define __FREEBSD__ 1
1461EOF
1462
5c6fa7d2 1463 cat >>confdefs.h <<\EOF
f6bcfd97 1464#define __NETBSD__ 1
10f2d63a
VZ
1465EOF
1466
1467 DEFAULT_DEFAULT_wxUSE_GTK=1
1468 ;;
1469 *-*-osf* )
1470 USE_ALPHA=1
1471 USE_OSF=1
5c6fa7d2 1472 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1473#define __ALPHA__ 1
1474EOF
1475
5c6fa7d2 1476 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1477#define __OSF__ 1
1478EOF
1479
1480 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1481 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1482 ;;
1483 *-*-dgux5* )
1484 USE_ALPHA=1
1485 USE_SVR4=1
5c6fa7d2 1486 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1487#define __ALPHA__ 1
1488EOF
1489
5c6fa7d2 1490 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1491#define __SVR4__ 1
1492EOF
1493
1494 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1495 ;;
1496 *-*-sysv5* )
1497 USE_SYSV=1
1498 USE_SVR4=1
5c6fa7d2 1499 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1500#define __SYSV__ 1
1501EOF
1502
5c6fa7d2 1503 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1504#define __SVR4__ 1
1505EOF
1506
1507 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1508 ;;
1509 *-*-aix* )
1510 USE_AIX=1
1511 USE_SYSV=1
1512 USE_SVR4=1
321d2b14 1513 SO_SUFFIX=a
5c6fa7d2 1514 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1515#define __AIX__ 1
1516EOF
1517
5c6fa7d2 1518 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1519#define __SYSV__ 1
1520EOF
1521
5c6fa7d2 1522 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1523#define __SVR4__ 1
1524EOF
1525
1526 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1527 ;;
1528
1c8183e2 1529 *-*-cygwin* | *-*-mingw32* )
17234b26 1530 SO_SUFFIX=dll
cf27ef00 1531 PROGRAM_EXT=".exe"
7b7a7637 1532 RESCOMP=windres
10f2d63a
VZ
1533 DEFAULT_DEFAULT_wxUSE_MSW=1
1534 ;;
1535
f9bc1684
VS
1536 *-pc-msdosdjgpp )
1537 USE_UNIX=0
1538 USE_DOS=1
5c6fa7d2 1539 cat >>confdefs.h <<\EOF
f9bc1684
VS
1540#define __DOS__ 1
1541EOF
1542
1543 PROGRAM_EXT=".exe"
1544 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1545 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1546 ;;
1547
6fa882bd 1548 *-pc-os2_emx | *-pc-os2-emx )
5c6fa7d2 1549 cat >>confdefs.h <<\EOF
10f2d63a
VZ
1550#define __EMX__ 1
1551EOF
1552
cf27ef00 1553 PROGRAM_EXT=".exe"
e07802fc 1554 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1555 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1556 ;;
1557
d08b457b
GD
1558 powerpc-*-darwin* )
1559 USE_BSD=1
f11bdd03 1560 USE_DARWIN=1
3a922bb4 1561 SO_SUFFIX=dylib
5c6fa7d2 1562 cat >>confdefs.h <<\EOF
f11bdd03 1563#define __BSD__ 1
b4085ce6
GD
1564EOF
1565
5c6fa7d2 1566 cat >>confdefs.h <<\EOF
f11bdd03 1567#define __DARWIN__ 1
d08b457b
GD
1568EOF
1569
5c6fa7d2 1570 cat >>confdefs.h <<\EOF
d08b457b 1571#define __POWERPC__ 1
b4085ce6
GD
1572EOF
1573
1574 DEFAULT_DEFAULT_wxUSE_MAC=1
1575 ;;
1576
b12915c1
VZ
1577 *-*-beos* )
1578 USE_BEOS=1
5c6fa7d2 1579 cat >>confdefs.h <<\EOF
b12915c1
VZ
1580#define __BEOS__ 1
1581EOF
1582
1583 ;;
1584
10f2d63a 1585 *)
5c6fa7d2
RR
1586 { { echo "$as_me:1586: error: unknown system type ${host}." >&5
1587echo "$as_me: error: unknown system type ${host}." >&2;}
1588 { (exit 1); exit 1; }; }
10f2d63a
VZ
1589esac
1590
52127426
JS
1591 wx_arg_cache_file="configarg.cache"
1592 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1593 rm -f ${wx_arg_cache_file}.tmp
1594 touch ${wx_arg_cache_file}.tmp
1595 touch ${wx_arg_cache_file}
10f2d63a
VZ
1596
1597DEBUG_CONFIGURE=0
1598if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1599 DEFAULT_wxUSE_UNIVERSAL=no
1600
d8356fa3
VZ
1601 DEFAULT_wxUSE_NANOX=no
1602
10f2d63a
VZ
1603 DEFAULT_wxUSE_THREADS=yes
1604
1605 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1606 DEFAULT_wxUSE_SONAME=no
1e6feb95 1607 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1608 DEFAULT_wxUSE_PROFILE=no
1609 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1610 DEFAULT_wxUSE_NO_RTTI=no
1611 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1612 DEFAULT_wxUSE_PERMISSIVE=no
1613 DEFAULT_wxUSE_DEBUG_FLAG=yes
1614 DEFAULT_wxUSE_DEBUG_INFO=yes
1615 DEFAULT_wxUSE_DEBUG_GDB=yes
1616 DEFAULT_wxUSE_MEM_TRACING=no
1617 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1618 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1619 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1620 DEFAULT_wxUSE_APPLE_IEEE=no
1621
1622 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1623 DEFAULT_wxUSE_LOGWINDOW=no
1624 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1625 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1626
1627 DEFAULT_wxUSE_GUI=yes
1e6feb95 1628 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1629
3e44f09d 1630 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1631 DEFAULT_wxUSE_ZLIB=no
1632 DEFAULT_wxUSE_LIBPNG=no
1633 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1634 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1635 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1636 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1637
eb4efbdc 1638 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1639 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1640 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1641 DEFAULT_wxUSE_CMDLINE_PARSER=no
1642 DEFAULT_wxUSE_DATETIME=no
1643 DEFAULT_wxUSE_TIMEDATE=no
1644 DEFAULT_wxUSE_TIMER=no
1645 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1646 DEFAULT_wxUSE_FILE=no
1e6feb95 1647 DEFAULT_wxUSE_FFILE=no
a3a584a7 1648 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1649 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1650 DEFAULT_wxUSE_WAVE=no
1651 DEFAULT_wxUSE_INTL=no
1652 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1653 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1654 DEFAULT_wxUSE_STREAMS=no
1655 DEFAULT_wxUSE_SOCKETS=no
1656 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1657 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1658 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1659 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1660 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1661 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1662
1663 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1664 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1665 DEFAULT_wxUSE_POSTSCRIPT=no
1666
1667 DEFAULT_wxUSE_X_RESOURCES=no
1668 DEFAULT_wxUSE_CLIPBOARD=no
1669 DEFAULT_wxUSE_TOOLTIPS=no
1670 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1671 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1672 DEFAULT_wxUSE_SPLINES=no
1673
1674 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1675 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1676 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1677
1678 DEFAULT_wxUSE_PROLOGIO=no
1679 DEFAULT_wxUSE_RESOURCES=no
1680 DEFAULT_wxUSE_CONSTRAINTS=no
1681 DEFAULT_wxUSE_IPC=no
1682 DEFAULT_wxUSE_HELP=no
29fd3c0c 1683 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1684 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1685 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1686 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1687 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1688 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1689 DEFAULT_wxUSE_PROTOCOL=no
1690 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1691 DEFAULT_wxUSE_PROTOCOL_FTP=no
1692 DEFAULT_wxUSE_PROTOCOL_FILE=no
1693 DEFAULT_wxUSE_URL=no
3bd8fb5f 1694
10f2d63a 1695 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1696 DEFAULT_wxUSE_CHOICEDLG=no
1697 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1698 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1699 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1700 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1701 DEFAULT_wxUSE_FONTDLG=no
1702 DEFAULT_wxUSE_MSGDLG=no
1703 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1704 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1705 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1706 DEFAULT_wxUSE_STARTUP_TIPS=no
1707 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1708 DEFAULT_wxUSE_WIZARDDLG=no
1709
1e6feb95 1710 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1711 DEFAULT_wxUSE_MINIFRAME=no
1712 DEFAULT_wxUSE_HTML=no
24528b0c 1713 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1714 DEFAULT_wxUSE_FS_INET=no
1715 DEFAULT_wxUSE_FS_ZIP=no
1716 DEFAULT_wxUSE_BUSYINFO=no
1717 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1718 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1719
1720 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1721 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1722 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1723 DEFAULT_wxUSE_CALCTRL=no
1724 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1725 DEFAULT_wxUSE_CHECKBOX=no
1726 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1727 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1728 DEFAULT_wxUSE_COMBOBOX=no
1729 DEFAULT_wxUSE_GAUGE=no
1730 DEFAULT_wxUSE_GRID=no
1731 DEFAULT_wxUSE_NEW_GRID=no
1732 DEFAULT_wxUSE_IMAGLIST=no
1733 DEFAULT_wxUSE_LISTBOX=no
1734 DEFAULT_wxUSE_LISTCTRL=no
1735 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1736 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1737 DEFAULT_wxUSE_RADIOBOX=no
1738 DEFAULT_wxUSE_RADIOBTN=no
1739 DEFAULT_wxUSE_SASH=no
1740 DEFAULT_wxUSE_SCROLLBAR=no
1741 DEFAULT_wxUSE_SLIDER=no
1742 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1743 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1744 DEFAULT_wxUSE_SPLITTER=no
1745 DEFAULT_wxUSE_STATBMP=no
1746 DEFAULT_wxUSE_STATBOX=no
1747 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1748 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1749 DEFAULT_wxUSE_STATUSBAR=yes
1750 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1751 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1752 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1753 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1754 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1755 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1756 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1757 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1758 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1759
1760 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1761 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1762 DEFAULT_wxUSE_WCSRTOMBS=no
1763
edae8572 1764 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1765 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1766 DEFAULT_wxUSE_GIF=no
1767 DEFAULT_wxUSE_PCX=no
1768 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1769 DEFAULT_wxUSE_IFF=no
0046ff7c 1770 DEFAULT_wxUSE_XPM=no
658974ae 1771 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1772else
1e6feb95
VZ
1773 DEFAULT_wxUSE_UNIVERSAL=no
1774
d8356fa3
VZ
1775 DEFAULT_wxUSE_NANOX=no
1776
10f2d63a
VZ
1777 DEFAULT_wxUSE_THREADS=yes
1778
1779 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1780 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1781 DEFAULT_wxUSE_OPTIMISE=yes
1782 DEFAULT_wxUSE_PROFILE=no
1783 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1784 DEFAULT_wxUSE_NO_RTTI=no
1785 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1786 DEFAULT_wxUSE_PERMISSIVE=no
1787 DEFAULT_wxUSE_DEBUG_FLAG=no
1788 DEFAULT_wxUSE_DEBUG_INFO=no
1789 DEFAULT_wxUSE_DEBUG_GDB=no
1790 DEFAULT_wxUSE_MEM_TRACING=no
1791 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1792 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1793 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1794 DEFAULT_wxUSE_APPLE_IEEE=yes
1795
1796 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1797 DEFAULT_wxUSE_LOGWINDOW=yes
1798 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1799 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1800
1801 DEFAULT_wxUSE_GUI=yes
1802
831b3152 1803 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1804 DEFAULT_wxUSE_ZLIB=yes
1805 DEFAULT_wxUSE_LIBPNG=yes
1806 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1807 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1808 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1809 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1810
eb4efbdc 1811 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1812 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1813 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1814 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1815 DEFAULT_wxUSE_DATETIME=yes
1816 DEFAULT_wxUSE_TIMEDATE=no
1817 DEFAULT_wxUSE_TIMER=yes
1818 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1819 DEFAULT_wxUSE_FILE=yes
1e6feb95 1820 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1821 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1822 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1823 DEFAULT_wxUSE_WAVE=no
1824 DEFAULT_wxUSE_INTL=yes
1825 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1826 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1827 DEFAULT_wxUSE_STREAMS=yes
1828 DEFAULT_wxUSE_SOCKETS=yes
1829 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1830 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1831 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1832 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1833 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1834 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1835
1836 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1837 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1838 DEFAULT_wxUSE_POSTSCRIPT=yes
1839
1840 DEFAULT_wxUSE_X_RESOURCES=no
1841 DEFAULT_wxUSE_CLIPBOARD=yes
1842 DEFAULT_wxUSE_TOOLTIPS=yes
1843 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1844 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1845 DEFAULT_wxUSE_SPLINES=yes
1846
1847 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1848 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1849 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1850
1851 DEFAULT_wxUSE_PROLOGIO=yes
1852 DEFAULT_wxUSE_RESOURCES=yes
1853 DEFAULT_wxUSE_CONSTRAINTS=yes
1854 DEFAULT_wxUSE_IPC=yes
1855 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1856 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1857 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1858 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1859 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1860 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1861 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1862 DEFAULT_wxUSE_PROTOCOL=yes
1863 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1864 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1865 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1866 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1867
1868 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1869 DEFAULT_wxUSE_CHOICEDLG=yes
1870 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1871 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1872 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1873 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1874 DEFAULT_wxUSE_FONTDLG=yes
1875 DEFAULT_wxUSE_MSGDLG=yes
1876 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1877 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1878 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1879 DEFAULT_wxUSE_STARTUP_TIPS=yes
1880 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1881 DEFAULT_wxUSE_WIZARDDLG=yes
1882
1e6feb95 1883 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1884 DEFAULT_wxUSE_MINIFRAME=yes
1885 DEFAULT_wxUSE_HTML=yes
24528b0c 1886 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1887 DEFAULT_wxUSE_FS_INET=yes
1888 DEFAULT_wxUSE_FS_ZIP=yes
1889 DEFAULT_wxUSE_BUSYINFO=yes
1890 DEFAULT_wxUSE_ZIPSTREAM=yes
1891 DEFAULT_wxUSE_VALIDATORS=yes
1892
1893 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1894 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1895 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1896 DEFAULT_wxUSE_CALCTRL=yes
1897 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1898 DEFAULT_wxUSE_CHECKBOX=yes
1899 DEFAULT_wxUSE_CHECKLST=yes
1900 DEFAULT_wxUSE_CHOICE=yes
1901 DEFAULT_wxUSE_COMBOBOX=yes
1902 DEFAULT_wxUSE_GAUGE=yes
1903 DEFAULT_wxUSE_GRID=yes
cc977e5f 1904 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1905 DEFAULT_wxUSE_IMAGLIST=yes
1906 DEFAULT_wxUSE_LISTBOX=yes
1907 DEFAULT_wxUSE_LISTCTRL=yes
1908 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1909 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1910 DEFAULT_wxUSE_RADIOBOX=yes
1911 DEFAULT_wxUSE_RADIOBTN=yes
1912 DEFAULT_wxUSE_SASH=yes
1913 DEFAULT_wxUSE_SCROLLBAR=yes
1914 DEFAULT_wxUSE_SLIDER=yes
1915 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1916 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1917 DEFAULT_wxUSE_SPLITTER=yes
1918 DEFAULT_wxUSE_STATBMP=yes
1919 DEFAULT_wxUSE_STATBOX=yes
1920 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1921 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1922 DEFAULT_wxUSE_STATUSBAR=yes
1923 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1924 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1925 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1926 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1927 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1928 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1929 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1930 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1931 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1932
1933 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1934 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1935 DEFAULT_wxUSE_WCSRTOMBS=no
1936
edae8572 1937 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1938 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1939 DEFAULT_wxUSE_GIF=yes
1940 DEFAULT_wxUSE_PCX=yes
cc0e8480 1941 DEFAULT_wxUSE_IFF=no
10f2d63a 1942 DEFAULT_wxUSE_PNM=yes
0046ff7c 1943 DEFAULT_wxUSE_XPM=yes
658974ae 1944 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1945fi
1946
10f2d63a 1947for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
1948 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1949 if test "x$LINE" != "x" ; then
10f2d63a
VZ
1950 has_toolkit_in_cache=1
1951 eval "DEFAULT_$LINE"
1952 eval "CACHE_$toolkit=1"
1953 fi
1954done
1955
5c6fa7d2
RR
1956 echo "$as_me:1956: checking for --enable-gui" >&5
1957echo $ECHO_N "checking for --enable-gui... $ECHO_C" >&6
10f2d63a
VZ
1958 no_cache=0
1959 # Check whether --enable-gui or --disable-gui was given.
1960if test "${enable_gui+set}" = set; then
1961 enableval="$enable_gui"
5c6fa7d2 1962
10f2d63a
VZ
1963 if test "$enableval" = yes; then
1964 ac_cv_use_gui='wxUSE_GUI=yes'
1965 else
1966 ac_cv_use_gui='wxUSE_GUI=no'
1967 fi
5c6fa7d2 1968
10f2d63a 1969else
5c6fa7d2 1970
10f2d63a
VZ
1971 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1972 if test "x$LINE" != x ; then
1973 eval "DEFAULT_$LINE"
1974 else
1975 no_cache=1
1976 fi
1977
1978 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 1979
5c6fa7d2 1980fi;
10f2d63a
VZ
1981
1982 eval "$ac_cv_use_gui"
1983 if test "$no_cache" != 1; then
1984 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1985 fi
1986
1987 if test "$wxUSE_GUI" = yes; then
5c6fa7d2
RR
1988 echo "$as_me:1988: result: yes" >&5
1989echo "${ECHO_T}yes" >&6
10f2d63a 1990 else
5c6fa7d2
RR
1991 echo "$as_me:1991: result: no" >&5
1992echo "${ECHO_T}no" >&6
10f2d63a 1993 fi
10f2d63a 1994
b12915c1 1995if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1996
5c6fa7d2
RR
1997 echo "$as_me:1997: checking for --enable-universal" >&5
1998echo $ECHO_N "checking for --enable-universal... $ECHO_C" >&6
1e6feb95
VZ
1999 no_cache=0
2000 # Check whether --enable-universal or --disable-universal was given.
2001if test "${enable_universal+set}" = set; then
2002 enableval="$enable_universal"
5c6fa7d2 2003
1e6feb95
VZ
2004 if test "$enableval" = yes; then
2005 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2006 else
2007 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2008 fi
5c6fa7d2 2009
1e6feb95 2010else
5c6fa7d2 2011
1e6feb95
VZ
2012 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2013 if test "x$LINE" != x ; then
2014 eval "DEFAULT_$LINE"
2015 else
2016 no_cache=1
2017 fi
2018
2019 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2020
5c6fa7d2 2021fi;
1e6feb95
VZ
2022
2023 eval "$ac_cv_use_universal"
2024 if test "$no_cache" != 1; then
2025 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2026 fi
2027
2028 if test "$wxUSE_UNIVERSAL" = yes; then
5c6fa7d2
RR
2029 echo "$as_me:2029: result: yes" >&5
2030echo "${ECHO_T}yes" >&6
1e6feb95 2031 else
5c6fa7d2
RR
2032 echo "$as_me:2032: result: no" >&5
2033echo "${ECHO_T}no" >&6
1e6feb95 2034 fi
5c6fa7d2 2035
10f2d63a
VZ
2036# Check whether --with-gtk or --without-gtk was given.
2037if test "${with_gtk+set}" = set; then
2038 withval="$with_gtk"
2039 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
5c6fa7d2 2040fi;
10f2d63a
VZ
2041
2042# Check whether --with-motif or --without-motif was given.
2043if test "${with_motif+set}" = set; then
2044 withval="$with_motif"
2045 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
5c6fa7d2 2046fi;
10f2d63a 2047
b4085ce6
GD
2048# Check whether --with-mac or --without-mac was given.
2049if test "${with_mac+set}" = set; then
2050 withval="$with_mac"
2051 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
5c6fa7d2 2052fi;
b4085ce6 2053
10f2d63a
VZ
2054# Check whether --with-wine or --without-wine was given.
2055if test "${with_wine+set}" = set; then
2056 withval="$with_wine"
2057 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
5c6fa7d2 2058fi;
10f2d63a 2059
77e13408
RL
2060# Check whether --with-msw or --without-msw was given.
2061if test "${with_msw+set}" = set; then
2062 withval="$with_msw"
b4efce5e 2063 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
5c6fa7d2 2064fi;
10f2d63a 2065
e07802fc
VZ
2066# Check whether --with-pm or --without-pm was given.
2067if test "${with_pm+set}" = set; then
2068 withval="$with_pm"
2069 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
5c6fa7d2 2070fi;
698dcdb6 2071
1e6feb95
VZ
2072# Check whether --with-mgl or --without-mgl was given.
2073if test "${with_mgl+set}" = set; then
2074 withval="$with_mgl"
6c657b52 2075 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
5c6fa7d2 2076fi;
1e6feb95 2077
1725144d
RR
2078# Check whether --with-microwin or --without-microwin was given.
2079if test "${with_microwin+set}" = set; then
2080 withval="$with_microwin"
2081 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
5c6fa7d2 2082fi;
1725144d 2083
f79bd02d
JS
2084# Check whether --with-x11 or --without-x11 was given.
2085if test "${with_x11+set}" = set; then
2086 withval="$with_x11"
3c011993 2087 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
5c6fa7d2 2088fi;
10f2d63a 2089
5c6fa7d2
RR
2090 echo "$as_me:2090: checking for --enable-nanox" >&5
2091echo $ECHO_N "checking for --enable-nanox... $ECHO_C" >&6
d8356fa3 2092 no_cache=0
ba875e66
VZ
2093 # Check whether --enable-nanox or --disable-nanox was given.
2094if test "${enable_nanox+set}" = set; then
2095 enableval="$enable_nanox"
5c6fa7d2 2096
d8356fa3 2097 if test "$enableval" = yes; then
ba875e66 2098 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2099 else
ba875e66 2100 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2101 fi
5c6fa7d2 2102
d8356fa3 2103else
5c6fa7d2 2104
d8356fa3
VZ
2105 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2106 if test "x$LINE" != x ; then
2107 eval "DEFAULT_$LINE"
2108 else
2109 no_cache=1
2110 fi
2111
ba875e66 2112 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2113
5c6fa7d2 2114fi;
d8356fa3 2115
ba875e66 2116 eval "$ac_cv_use_nanox"
d8356fa3 2117 if test "$no_cache" != 1; then
ba875e66 2118 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2119 fi
2120
2121 if test "$wxUSE_NANOX" = yes; then
5c6fa7d2
RR
2122 echo "$as_me:2122: result: yes" >&5
2123echo "${ECHO_T}yes" >&6
d8356fa3 2124 else
5c6fa7d2
RR
2125 echo "$as_me:2125: result: no" >&5
2126echo "${ECHO_T}no" >&6
d8356fa3 2127 fi
d74f4b5a 2128
5c6fa7d2
RR
2129 echo "$as_me:2129: checking for --enable-gtk2" >&5
2130echo $ECHO_N "checking for --enable-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2131 no_cache=0
2132 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2133if test "${enable_gtk2+set}" = set; then
2134 enableval="$enable_gtk2"
5c6fa7d2 2135
d74f4b5a
VZ
2136 if test "$enableval" = yes; then
2137 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2138 else
2139 ac_cv_use_gtk2='wxUSE_GTK2=no'
2140 fi
5c6fa7d2 2141
10f2d63a 2142else
5c6fa7d2 2143
d74f4b5a
VZ
2144 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2145 if test "x$LINE" != x ; then
2146 eval "DEFAULT_$LINE"
2147 else
2148 no_cache=1
2149 fi
2150
2151 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2152
5c6fa7d2 2153fi;
328a083c 2154
d74f4b5a
VZ
2155 eval "$ac_cv_use_gtk2"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_GTK2" = yes; then
5c6fa7d2
RR
2161 echo "$as_me:2161: result: yes" >&5
2162echo "${ECHO_T}yes" >&6
d74f4b5a 2163 else
5c6fa7d2
RR
2164 echo "$as_me:2164: result: no" >&5
2165echo "${ECHO_T}no" >&6
d74f4b5a 2166 fi
d74f4b5a 2167
5c6fa7d2
RR
2168 echo "$as_me:2168: checking for --with-libpng" >&5
2169echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
52127426 2170 no_cache=0
5c6fa7d2
RR
2171
2172# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2173if test "${with_libpng+set}" = set; then
2174 withval="$with_libpng"
5c6fa7d2 2175
10f2d63a 2176 if test "$withval" = yes; then
b12915c1 2177 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2178 elif test "$withval" = no; then
b12915c1 2179 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2180 elif test "$withval" = sys; then
2181 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2182 elif test "$withval" = builtin; then
2183 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2184 else
5c6fa7d2
RR
2185 { { echo "$as_me:2185: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2186echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2187 { (exit 1); exit 1; }; }
10f2d63a 2188 fi
5c6fa7d2 2189
10f2d63a 2190else
5c6fa7d2 2191
b12915c1 2192 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2193 if test "x$LINE" != x ; then
2194 eval "DEFAULT_$LINE"
2195 else
2196 no_cache=1
2197 fi
2198
b12915c1 2199 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2200
5c6fa7d2 2201fi;
10f2d63a 2202
b12915c1 2203 eval "$ac_cv_use_libpng"
10f2d63a 2204 if test "$no_cache" != 1; then
b12915c1 2205 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2206 fi
2207
b12915c1 2208 if test "$wxUSE_LIBPNG" = yes; then
5c6fa7d2
RR
2209 echo "$as_me:2209: result: yes" >&5
2210echo "${ECHO_T}yes" >&6
422107f9 2211 elif test "$wxUSE_LIBPNG" = no; then
5c6fa7d2
RR
2212 echo "$as_me:2212: result: no" >&5
2213echo "${ECHO_T}no" >&6
422107f9 2214 elif test "$wxUSE_LIBPNG" = sys; then
5c6fa7d2
RR
2215 echo "$as_me:2215: result: system version" >&5
2216echo "${ECHO_T}system version" >&6
4f14bcd8 2217 elif test "$wxUSE_LIBPNG" = builtin; then
5c6fa7d2
RR
2218 echo "$as_me:2218: result: builtin version" >&5
2219echo "${ECHO_T}builtin version" >&6
422107f9 2220 else
5c6fa7d2
RR
2221 { { echo "$as_me:2221: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2222echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2223 { (exit 1); exit 1; }; }
10f2d63a 2224 fi
10f2d63a 2225
5c6fa7d2
RR
2226 echo "$as_me:2226: checking for --with-libjpeg" >&5
2227echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2228 no_cache=0
5c6fa7d2
RR
2229
2230# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2231if test "${with_libjpeg+set}" = set; then
2232 withval="$with_libjpeg"
5c6fa7d2 2233
10f2d63a 2234 if test "$withval" = yes; then
b12915c1 2235 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2236 elif test "$withval" = no; then
b12915c1 2237 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2238 elif test "$withval" = sys; then
2239 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2240 elif test "$withval" = builtin; then
2241 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2242 else
5c6fa7d2
RR
2243 { { echo "$as_me:2243: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2244echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2245 { (exit 1); exit 1; }; }
10f2d63a 2246 fi
5c6fa7d2 2247
10f2d63a 2248else
5c6fa7d2 2249
b12915c1 2250 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2251 if test "x$LINE" != x ; then
2252 eval "DEFAULT_$LINE"
2253 else
2254 no_cache=1
2255 fi
2256
b12915c1 2257 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2258
5c6fa7d2 2259fi;
10f2d63a 2260
b12915c1 2261 eval "$ac_cv_use_libjpeg"
10f2d63a 2262 if test "$no_cache" != 1; then
b12915c1 2263 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2264 fi
2265
b12915c1 2266 if test "$wxUSE_LIBJPEG" = yes; then
5c6fa7d2
RR
2267 echo "$as_me:2267: result: yes" >&5
2268echo "${ECHO_T}yes" >&6
422107f9 2269 elif test "$wxUSE_LIBJPEG" = no; then
5c6fa7d2
RR
2270 echo "$as_me:2270: result: no" >&5
2271echo "${ECHO_T}no" >&6
422107f9 2272 elif test "$wxUSE_LIBJPEG" = sys; then
5c6fa7d2
RR
2273 echo "$as_me:2273: result: system version" >&5
2274echo "${ECHO_T}system version" >&6
4f14bcd8 2275 elif test "$wxUSE_LIBJPEG" = builtin; then
5c6fa7d2
RR
2276 echo "$as_me:2276: result: builtin version" >&5
2277echo "${ECHO_T}builtin version" >&6
422107f9 2278 else
5c6fa7d2
RR
2279 { { echo "$as_me:2279: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2280echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2281 { (exit 1); exit 1; }; }
10f2d63a 2282 fi
10f2d63a 2283
5c6fa7d2
RR
2284 echo "$as_me:2284: checking for --with-libtiff" >&5
2285echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2286 no_cache=0
5c6fa7d2
RR
2287
2288# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2289if test "${with_libtiff+set}" = set; then
2290 withval="$with_libtiff"
5c6fa7d2 2291
10f2d63a 2292 if test "$withval" = yes; then
b12915c1 2293 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2294 elif test "$withval" = no; then
b12915c1 2295 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2296 elif test "$withval" = sys; then
2297 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2298 elif test "$withval" = builtin; then
2299 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2300 else
5c6fa7d2
RR
2301 { { echo "$as_me:2301: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2302echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2303 { (exit 1); exit 1; }; }
10f2d63a 2304 fi
5c6fa7d2 2305
10f2d63a 2306else
5c6fa7d2 2307
b12915c1 2308 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
b12915c1 2315 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2316
5c6fa7d2 2317fi;
10f2d63a 2318
b12915c1 2319 eval "$ac_cv_use_libtiff"
10f2d63a 2320 if test "$no_cache" != 1; then
b12915c1 2321 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2322 fi
2323
b12915c1 2324 if test "$wxUSE_LIBTIFF" = yes; then
5c6fa7d2
RR
2325 echo "$as_me:2325: result: yes" >&5
2326echo "${ECHO_T}yes" >&6
0dcf9893 2327 elif test "$wxUSE_LIBTIFF" = no; then
5c6fa7d2
RR
2328 echo "$as_me:2328: result: no" >&5
2329echo "${ECHO_T}no" >&6
0dcf9893 2330 elif test "$wxUSE_LIBTIFF" = sys; then
5c6fa7d2
RR
2331 echo "$as_me:2331: result: system version" >&5
2332echo "${ECHO_T}system version" >&6
4f14bcd8 2333 elif test "$wxUSE_LIBTIFF" = builtin; then
5c6fa7d2
RR
2334 echo "$as_me:2334: result: builtin version" >&5
2335echo "${ECHO_T}builtin version" >&6
0dcf9893 2336 else
5c6fa7d2
RR
2337 { { echo "$as_me:2337: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2338echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2339 { (exit 1); exit 1; }; }
10f2d63a 2340 fi
10f2d63a 2341
5c6fa7d2
RR
2342 echo "$as_me:2342: checking for --with-opengl" >&5
2343echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2344 no_cache=0
5c6fa7d2
RR
2345
2346# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2347if test "${with_opengl+set}" = set; then
2348 withval="$with_opengl"
5c6fa7d2 2349
10f2d63a 2350 if test "$withval" = yes; then
b12915c1 2351 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2352 else
b12915c1 2353 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2354 fi
5c6fa7d2 2355
10f2d63a 2356else
5c6fa7d2 2357
b12915c1 2358 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2359 if test "x$LINE" != x ; then
2360 eval "DEFAULT_$LINE"
2361 else
2362 no_cache=1
2363 fi
2364
b12915c1 2365 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2366
5c6fa7d2 2367fi;
10f2d63a 2368
b12915c1 2369 eval "$ac_cv_use_opengl"
10f2d63a 2370 if test "$no_cache" != 1; then
b12915c1 2371 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2372 fi
2373
b12915c1 2374 if test "$wxUSE_OPENGL" = yes; then
5c6fa7d2
RR
2375 echo "$as_me:2375: result: yes" >&5
2376echo "${ECHO_T}yes" >&6
10f2d63a 2377 else
5c6fa7d2
RR
2378 echo "$as_me:2378: result: no" >&5
2379echo "${ECHO_T}no" >&6
10f2d63a 2380 fi
10f2d63a 2381
b12915c1
VZ
2382fi
2383
5c6fa7d2
RR
2384 echo "$as_me:2384: checking for --with-dmalloc" >&5
2385echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
52127426 2386 no_cache=0
5c6fa7d2
RR
2387
2388# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2389if test "${with_dmalloc+set}" = set; then
2390 withval="$with_dmalloc"
5c6fa7d2 2391
c7a2bf27 2392 if test "$withval" = yes; then
b12915c1 2393 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2394 else
b12915c1 2395 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2396 fi
5c6fa7d2 2397
c7a2bf27 2398else
5c6fa7d2 2399
b12915c1 2400 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2401 if test "x$LINE" != x ; then
2402 eval "DEFAULT_$LINE"
2403 else
2404 no_cache=1
2405 fi
2406
b12915c1 2407 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2408
5c6fa7d2 2409fi;
c7a2bf27 2410
b12915c1 2411 eval "$ac_cv_use_dmalloc"
c7a2bf27 2412 if test "$no_cache" != 1; then
b12915c1 2413 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2414 fi
2415
b12915c1 2416 if test "$wxUSE_DMALLOC" = yes; then
5c6fa7d2
RR
2417 echo "$as_me:2417: result: yes" >&5
2418echo "${ECHO_T}yes" >&6
c7a2bf27 2419 else
5c6fa7d2
RR
2420 echo "$as_me:2420: result: no" >&5
2421echo "${ECHO_T}no" >&6
c7a2bf27 2422 fi
c7a2bf27 2423
5c6fa7d2
RR
2424 echo "$as_me:2424: checking for --with-regex" >&5
2425echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2426 no_cache=0
5c6fa7d2
RR
2427
2428# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2429if test "${with_regex+set}" = set; then
2430 withval="$with_regex"
5c6fa7d2 2431
3e44f09d
VZ
2432 if test "$withval" = yes; then
2433 ac_cv_use_regex='wxUSE_REGEX=yes'
2434 elif test "$withval" = no; then
2435 ac_cv_use_regex='wxUSE_REGEX=no'
2436 elif test "$withval" = sys; then
2437 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2438 elif test "$withval" = builtin; then
2439 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2440 else
5c6fa7d2
RR
2441 { { echo "$as_me:2441: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2442echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2443 { (exit 1); exit 1; }; }
3e44f09d 2444 fi
5c6fa7d2 2445
3e44f09d 2446else
5c6fa7d2 2447
3e44f09d
VZ
2448 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2449 if test "x$LINE" != x ; then
2450 eval "DEFAULT_$LINE"
2451 else
2452 no_cache=1
2453 fi
2454
2455 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2456
5c6fa7d2 2457fi;
3e44f09d
VZ
2458
2459 eval "$ac_cv_use_regex"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_REGEX" = yes; then
5c6fa7d2
RR
2465 echo "$as_me:2465: result: yes" >&5
2466echo "${ECHO_T}yes" >&6
3e44f09d 2467 elif test "$wxUSE_REGEX" = no; then
5c6fa7d2
RR
2468 echo "$as_me:2468: result: no" >&5
2469echo "${ECHO_T}no" >&6
3e44f09d 2470 elif test "$wxUSE_REGEX" = sys; then
5c6fa7d2
RR
2471 echo "$as_me:2471: result: system version" >&5
2472echo "${ECHO_T}system version" >&6
4f14bcd8 2473 elif test "$wxUSE_REGEX" = builtin; then
5c6fa7d2
RR
2474 echo "$as_me:2474: result: builtin version" >&5
2475echo "${ECHO_T}builtin version" >&6
3e44f09d 2476 else
5c6fa7d2
RR
2477 { { echo "$as_me:2477: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2478echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2479 { (exit 1); exit 1; }; }
3e44f09d 2480 fi
3e44f09d 2481
5c6fa7d2
RR
2482 echo "$as_me:2482: checking for --with-zlib" >&5
2483echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2484 no_cache=0
5c6fa7d2
RR
2485
2486# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2487if test "${with_zlib+set}" = set; then
2488 withval="$with_zlib"
5c6fa7d2 2489
10f2d63a 2490 if test "$withval" = yes; then
b12915c1 2491 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2492 elif test "$withval" = no; then
b12915c1 2493 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2494 elif test "$withval" = sys; then
2495 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2496 elif test "$withval" = builtin; then
2497 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2498 else
5c6fa7d2
RR
2499 { { echo "$as_me:2499: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2500echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2501 { (exit 1); exit 1; }; }
10f2d63a 2502 fi
5c6fa7d2 2503
10f2d63a 2504else
5c6fa7d2 2505
b12915c1 2506 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
b12915c1 2513 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2514
5c6fa7d2 2515fi;
10f2d63a 2516
b12915c1 2517 eval "$ac_cv_use_zlib"
10f2d63a 2518 if test "$no_cache" != 1; then
b12915c1 2519 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2520 fi
2521
b12915c1 2522 if test "$wxUSE_ZLIB" = yes; then
5c6fa7d2
RR
2523 echo "$as_me:2523: result: yes" >&5
2524echo "${ECHO_T}yes" >&6
422107f9 2525 elif test "$wxUSE_ZLIB" = no; then
5c6fa7d2
RR
2526 echo "$as_me:2526: result: no" >&5
2527echo "${ECHO_T}no" >&6
422107f9 2528 elif test "$wxUSE_ZLIB" = sys; then
5c6fa7d2
RR
2529 echo "$as_me:2529: result: system version" >&5
2530echo "${ECHO_T}system version" >&6
4f14bcd8 2531 elif test "$wxUSE_ZLIB" = builtin; then
5c6fa7d2
RR
2532 echo "$as_me:2532: result: builtin version" >&5
2533echo "${ECHO_T}builtin version" >&6
422107f9 2534 else
5c6fa7d2
RR
2535 { { echo "$as_me:2535: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2536echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2537 { (exit 1); exit 1; }; }
10f2d63a 2538 fi
10f2d63a 2539
5c6fa7d2
RR
2540 echo "$as_me:2540: checking for --with-odbc" >&5
2541echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2542 no_cache=0
5c6fa7d2
RR
2543
2544# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2545if test "${with_odbc+set}" = set; then
2546 withval="$with_odbc"
5c6fa7d2 2547
10f2d63a
VZ
2548 if test "$withval" = yes; then
2549 ac_cv_use_odbc='wxUSE_ODBC=yes'
2550 else
2551 ac_cv_use_odbc='wxUSE_ODBC=no'
2552 fi
5c6fa7d2 2553
10f2d63a 2554else
5c6fa7d2 2555
10f2d63a
VZ
2556 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2564
5c6fa7d2 2565fi;
10f2d63a
VZ
2566
2567 eval "$ac_cv_use_odbc"
2568 if test "$no_cache" != 1; then
2569 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2570 fi
2571
2572 if test "$wxUSE_ODBC" = yes; then
5c6fa7d2
RR
2573 echo "$as_me:2573: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
10f2d63a 2575 else
5c6fa7d2
RR
2576 echo "$as_me:2576: result: no" >&5
2577echo "${ECHO_T}no" >&6
10f2d63a 2578 fi
52127426 2579
5c6fa7d2
RR
2580 echo "$as_me:2580: checking for --enable-shared" >&5
2581echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6
10f2d63a
VZ
2582 no_cache=0
2583 # Check whether --enable-shared or --disable-shared was given.
2584if test "${enable_shared+set}" = set; then
2585 enableval="$enable_shared"
5c6fa7d2 2586
10f2d63a
VZ
2587 if test "$enableval" = yes; then
2588 ac_cv_use_shared='wxUSE_SHARED=yes'
2589 else
2590 ac_cv_use_shared='wxUSE_SHARED=no'
2591 fi
5c6fa7d2 2592
10f2d63a 2593else
5c6fa7d2 2594
10f2d63a
VZ
2595 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2596 if test "x$LINE" != x ; then
2597 eval "DEFAULT_$LINE"
2598 else
2599 no_cache=1
2600 fi
2601
2602 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 2603
5c6fa7d2 2604fi;
10f2d63a
VZ
2605
2606 eval "$ac_cv_use_shared"
2607 if test "$no_cache" != 1; then
2608 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2609 fi
2610
2611 if test "$wxUSE_SHARED" = yes; then
5c6fa7d2
RR
2612 echo "$as_me:2612: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
10f2d63a 2614 else
5c6fa7d2
RR
2615 echo "$as_me:2615: result: no" >&5
2616echo "${ECHO_T}no" >&6
10f2d63a 2617 fi
10f2d63a 2618
5c6fa7d2
RR
2619 echo "$as_me:2619: checking for --enable-soname" >&5
2620echo $ECHO_N "checking for --enable-soname... $ECHO_C" >&6
00cf1208 2621 no_cache=0
3a922bb4
RL
2622 # Check whether --enable-soname or --disable-soname was given.
2623if test "${enable_soname+set}" = set; then
2624 enableval="$enable_soname"
5c6fa7d2 2625
00cf1208 2626 if test "$enableval" = yes; then
3a922bb4 2627 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2628 else
3a922bb4 2629 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2630 fi
5c6fa7d2 2631
00cf1208 2632else
5c6fa7d2 2633
3a922bb4 2634 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
3a922bb4 2641 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
00cf1208 2642
5c6fa7d2 2643fi;
00cf1208 2644
3a922bb4 2645 eval "$ac_cv_use_soname"
00cf1208 2646 if test "$no_cache" != 1; then
3a922bb4 2647 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2648 fi
2649
3a922bb4 2650 if test "$wxUSE_SONAME" = yes; then
5c6fa7d2
RR
2651 echo "$as_me:2651: result: yes" >&5
2652echo "${ECHO_T}yes" >&6
00cf1208 2653 else
5c6fa7d2
RR
2654 echo "$as_me:2654: result: no" >&5
2655echo "${ECHO_T}no" >&6
00cf1208 2656 fi
00cf1208 2657
5c6fa7d2
RR
2658 echo "$as_me:2658: checking for --enable-optimise" >&5
2659echo $ECHO_N "checking for --enable-optimise... $ECHO_C" >&6
10f2d63a
VZ
2660 no_cache=0
2661 # Check whether --enable-optimise or --disable-optimise was given.
2662if test "${enable_optimise+set}" = set; then
2663 enableval="$enable_optimise"
5c6fa7d2 2664
10f2d63a
VZ
2665 if test "$enableval" = yes; then
2666 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2667 else
2668 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2669 fi
5c6fa7d2 2670
10f2d63a 2671else
5c6fa7d2 2672
10f2d63a
VZ
2673 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 2681
5c6fa7d2 2682fi;
10f2d63a
VZ
2683
2684 eval "$ac_cv_use_optimise"
2685 if test "$no_cache" != 1; then
2686 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2687 fi
2688
2689 if test "$wxUSE_OPTIMISE" = yes; then
5c6fa7d2
RR
2690 echo "$as_me:2690: result: yes" >&5
2691echo "${ECHO_T}yes" >&6
10f2d63a 2692 else
5c6fa7d2
RR
2693 echo "$as_me:2693: result: no" >&5
2694echo "${ECHO_T}no" >&6
10f2d63a 2695 fi
10f2d63a 2696
5c6fa7d2
RR
2697 echo "$as_me:2697: checking for --enable-debug" >&5
2698echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
10f2d63a
VZ
2699 no_cache=0
2700 # Check whether --enable-debug or --disable-debug was given.
2701if test "${enable_debug+set}" = set; then
2702 enableval="$enable_debug"
5c6fa7d2 2703
10f2d63a
VZ
2704 if test "$enableval" = yes; then
2705 ac_cv_use_debug='wxUSE_DEBUG=yes'
2706 else
2707 ac_cv_use_debug='wxUSE_DEBUG=no'
2708 fi
5c6fa7d2 2709
10f2d63a 2710else
5c6fa7d2 2711
10f2d63a
VZ
2712 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 2720
5c6fa7d2 2721fi;
10f2d63a
VZ
2722
2723 eval "$ac_cv_use_debug"
2724 if test "$no_cache" != 1; then
2725 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2726 fi
2727
2728 if test "$wxUSE_DEBUG" = yes; then
5c6fa7d2
RR
2729 echo "$as_me:2729: result: yes" >&5
2730echo "${ECHO_T}yes" >&6
10f2d63a 2731 else
5c6fa7d2
RR
2732 echo "$as_me:2732: result: no" >&5
2733echo "${ECHO_T}no" >&6
10f2d63a 2734 fi
52127426 2735
5c6fa7d2
RR
2736 echo "$as_me:2736: checking for --enable-precomp" >&5
2737echo $ECHO_N "checking for --enable-precomp... $ECHO_C" >&6
683dccda
GD
2738 no_cache=0
2739 # Check whether --enable-precomp or --disable-precomp was given.
2740if test "${enable_precomp+set}" = set; then
2741 enableval="$enable_precomp"
5c6fa7d2 2742
683dccda
GD
2743 if test "$enableval" = yes; then
2744 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2745 else
2746 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2747 fi
5c6fa7d2 2748
683dccda 2749else
5c6fa7d2 2750
683dccda
GD
2751 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 2759
5c6fa7d2 2760fi;
683dccda
GD
2761
2762 eval "$ac_cv_use_precomp"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_PRECOMP" = yes; then
5c6fa7d2
RR
2768 echo "$as_me:2768: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
683dccda 2770 else
5c6fa7d2
RR
2771 echo "$as_me:2771: result: no" >&5
2772echo "${ECHO_T}no" >&6
683dccda 2773 fi
683dccda 2774
10f2d63a
VZ
2775if test "$wxUSE_DEBUG" = "yes"; then
2776 DEFAULT_wxUSE_DEBUG_FLAG=yes
2777 DEFAULT_wxUSE_DEBUG_INFO=yes
2778elif test "$wxUSE_DEBUG" = "no"; then
2779 DEFAULT_wxUSE_DEBUG_FLAG=no
2780 DEFAULT_wxUSE_DEBUG_INFO=no
2781fi
2782
5c6fa7d2
RR
2783 echo "$as_me:2783: checking for --enable-debug_flag" >&5
2784echo $ECHO_N "checking for --enable-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
2785 no_cache=0
2786 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2787if test "${enable_debug_flag+set}" = set; then
2788 enableval="$enable_debug_flag"
5c6fa7d2 2789
10f2d63a
VZ
2790 if test "$enableval" = yes; then
2791 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2792 else
2793 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2794 fi
5c6fa7d2 2795
10f2d63a 2796else
5c6fa7d2 2797
10f2d63a
VZ
2798 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 2806
5c6fa7d2 2807fi;
10f2d63a
VZ
2808
2809 eval "$ac_cv_use_debug_flag"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_DEBUG_FLAG" = yes; then
5c6fa7d2
RR
2815 echo "$as_me:2815: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
10f2d63a 2817 else
5c6fa7d2
RR
2818 echo "$as_me:2818: result: no" >&5
2819echo "${ECHO_T}no" >&6
10f2d63a 2820 fi
10f2d63a 2821
5c6fa7d2
RR
2822 echo "$as_me:2822: checking for --enable-debug_info" >&5
2823echo $ECHO_N "checking for --enable-debug_info... $ECHO_C" >&6
10f2d63a
VZ
2824 no_cache=0
2825 # Check whether --enable-debug_info or --disable-debug_info was given.
2826if test "${enable_debug_info+set}" = set; then
2827 enableval="$enable_debug_info"
5c6fa7d2 2828
10f2d63a
VZ
2829 if test "$enableval" = yes; then
2830 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2831 else
2832 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2833 fi
5c6fa7d2 2834
10f2d63a 2835else
5c6fa7d2 2836
10f2d63a
VZ
2837 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2838 if test "x$LINE" != x ; then
2839 eval "DEFAULT_$LINE"
2840 else
2841 no_cache=1
2842 fi
2843
2844 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 2845
5c6fa7d2 2846fi;
10f2d63a
VZ
2847
2848 eval "$ac_cv_use_debug_info"
2849 if test "$no_cache" != 1; then
2850 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2851 fi
2852
2853 if test "$wxUSE_DEBUG_INFO" = yes; then
5c6fa7d2
RR
2854 echo "$as_me:2854: result: yes" >&5
2855echo "${ECHO_T}yes" >&6
10f2d63a 2856 else
5c6fa7d2
RR
2857 echo "$as_me:2857: result: no" >&5
2858echo "${ECHO_T}no" >&6
10f2d63a 2859 fi
10f2d63a 2860
5c6fa7d2
RR
2861 echo "$as_me:2861: checking for --enable-debug_gdb" >&5
2862echo $ECHO_N "checking for --enable-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
2863 no_cache=0
2864 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2865if test "${enable_debug_gdb+set}" = set; then
2866 enableval="$enable_debug_gdb"
5c6fa7d2 2867
10f2d63a
VZ
2868 if test "$enableval" = yes; then
2869 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2870 else
2871 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2872 fi
5c6fa7d2 2873
10f2d63a 2874else
5c6fa7d2 2875
10f2d63a
VZ
2876 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2877 if test "x$LINE" != x ; then
2878 eval "DEFAULT_$LINE"
2879 else
2880 no_cache=1
2881 fi
2882
2883 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 2884
5c6fa7d2 2885fi;
10f2d63a
VZ
2886
2887 eval "$ac_cv_use_debug_gdb"
2888 if test "$no_cache" != 1; then
2889 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2890 fi
2891
2892 if test "$wxUSE_DEBUG_GDB" = yes; then
5c6fa7d2
RR
2893 echo "$as_me:2893: result: yes" >&5
2894echo "${ECHO_T}yes" >&6
10f2d63a 2895 else
5c6fa7d2
RR
2896 echo "$as_me:2896: result: no" >&5
2897echo "${ECHO_T}no" >&6
10f2d63a 2898 fi
10f2d63a 2899
5c6fa7d2
RR
2900 echo "$as_me:2900: checking for --enable-debug_cntxt" >&5
2901echo $ECHO_N "checking for --enable-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
2902 no_cache=0
2903 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2904if test "${enable_debug_cntxt+set}" = set; then
2905 enableval="$enable_debug_cntxt"
5c6fa7d2 2906
10f2d63a
VZ
2907 if test "$enableval" = yes; then
2908 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2909 else
2910 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2911 fi
5c6fa7d2 2912
10f2d63a 2913else
5c6fa7d2 2914
10f2d63a
VZ
2915 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2916 if test "x$LINE" != x ; then
2917 eval "DEFAULT_$LINE"
2918 else
2919 no_cache=1
2920 fi
2921
2922 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 2923
5c6fa7d2 2924fi;
10f2d63a
VZ
2925
2926 eval "$ac_cv_use_debug_cntxt"
2927 if test "$no_cache" != 1; then
2928 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2929 fi
2930
2931 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
5c6fa7d2
RR
2932 echo "$as_me:2932: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
10f2d63a 2934 else
5c6fa7d2
RR
2935 echo "$as_me:2935: result: no" >&5
2936echo "${ECHO_T}no" >&6
10f2d63a 2937 fi
10f2d63a 2938
5c6fa7d2
RR
2939 echo "$as_me:2939: checking for --enable-mem_tracing" >&5
2940echo $ECHO_N "checking for --enable-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
2941 no_cache=0
2942 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2943if test "${enable_mem_tracing+set}" = set; then
2944 enableval="$enable_mem_tracing"
5c6fa7d2 2945
10f2d63a
VZ
2946 if test "$enableval" = yes; then
2947 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2948 else
2949 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2950 fi
5c6fa7d2 2951
10f2d63a 2952else
5c6fa7d2 2953
10f2d63a
VZ
2954 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2955 if test "x$LINE" != x ; then
2956 eval "DEFAULT_$LINE"
2957 else
2958 no_cache=1
2959 fi
2960
2961 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 2962
5c6fa7d2 2963fi;
10f2d63a
VZ
2964
2965 eval "$ac_cv_use_mem_tracing"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_MEM_TRACING" = yes; then
5c6fa7d2
RR
2971 echo "$as_me:2971: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
10f2d63a 2973 else
5c6fa7d2
RR
2974 echo "$as_me:2974: result: no" >&5
2975echo "${ECHO_T}no" >&6
10f2d63a 2976 fi
10f2d63a 2977
5c6fa7d2
RR
2978 echo "$as_me:2978: checking for --enable-profile" >&5
2979echo $ECHO_N "checking for --enable-profile... $ECHO_C" >&6
10f2d63a
VZ
2980 no_cache=0
2981 # Check whether --enable-profile or --disable-profile was given.
2982if test "${enable_profile+set}" = set; then
2983 enableval="$enable_profile"
5c6fa7d2 2984
10f2d63a
VZ
2985 if test "$enableval" = yes; then
2986 ac_cv_use_profile='wxUSE_PROFILE=yes'
2987 else
2988 ac_cv_use_profile='wxUSE_PROFILE=no'
2989 fi
5c6fa7d2 2990
10f2d63a 2991else
5c6fa7d2 2992
10f2d63a
VZ
2993 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2994 if test "x$LINE" != x ; then
2995 eval "DEFAULT_$LINE"
2996 else
2997 no_cache=1
2998 fi
2999
3000 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3001
5c6fa7d2 3002fi;
10f2d63a
VZ
3003
3004 eval "$ac_cv_use_profile"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$wxUSE_PROFILE" = yes; then
5c6fa7d2
RR
3010 echo "$as_me:3010: result: yes" >&5
3011echo "${ECHO_T}yes" >&6
10f2d63a 3012 else
5c6fa7d2
RR
3013 echo "$as_me:3013: result: no" >&5
3014echo "${ECHO_T}no" >&6
10f2d63a 3015 fi
10f2d63a 3016
5c6fa7d2
RR
3017 echo "$as_me:3017: checking for --enable-no_rtti" >&5
3018echo $ECHO_N "checking for --enable-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3019 no_cache=0
3020 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3021if test "${enable_no_rtti+set}" = set; then
3022 enableval="$enable_no_rtti"
5c6fa7d2 3023
10f2d63a
VZ
3024 if test "$enableval" = yes; then
3025 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3026 else
3027 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3028 fi
5c6fa7d2 3029
10f2d63a 3030else
5c6fa7d2 3031
10f2d63a
VZ
3032 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3040
5c6fa7d2 3041fi;
10f2d63a
VZ
3042
3043 eval "$ac_cv_use_no_rtti"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$wxUSE_NO_RTTI" = yes; then
5c6fa7d2
RR
3049 echo "$as_me:3049: result: yes" >&5
3050echo "${ECHO_T}yes" >&6
10f2d63a 3051 else
5c6fa7d2
RR
3052 echo "$as_me:3052: result: no" >&5
3053echo "${ECHO_T}no" >&6
10f2d63a 3054 fi
10f2d63a 3055
5c6fa7d2
RR
3056 echo "$as_me:3056: checking for --enable-no_exceptions" >&5
3057echo $ECHO_N "checking for --enable-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3058 no_cache=0
3059 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3060if test "${enable_no_exceptions+set}" = set; then
3061 enableval="$enable_no_exceptions"
5c6fa7d2 3062
10f2d63a
VZ
3063 if test "$enableval" = yes; then
3064 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3065 else
3066 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3067 fi
5c6fa7d2 3068
10f2d63a 3069else
5c6fa7d2 3070
10f2d63a
VZ
3071 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3072 if test "x$LINE" != x ; then
3073 eval "DEFAULT_$LINE"
3074 else
3075 no_cache=1
3076 fi
3077
3078 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3079
5c6fa7d2 3080fi;
10f2d63a
VZ
3081
3082 eval "$ac_cv_use_no_exceptions"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
5c6fa7d2
RR
3088 echo "$as_me:3088: result: yes" >&5
3089echo "${ECHO_T}yes" >&6
10f2d63a 3090 else
5c6fa7d2
RR
3091 echo "$as_me:3091: result: no" >&5
3092echo "${ECHO_T}no" >&6
10f2d63a 3093 fi
10f2d63a 3094
5c6fa7d2
RR
3095 echo "$as_me:3095: checking for --enable-permissive" >&5
3096echo $ECHO_N "checking for --enable-permissive... $ECHO_C" >&6
10f2d63a
VZ
3097 no_cache=0
3098 # Check whether --enable-permissive or --disable-permissive was given.
3099if test "${enable_permissive+set}" = set; then
3100 enableval="$enable_permissive"
5c6fa7d2 3101
10f2d63a
VZ
3102 if test "$enableval" = yes; then
3103 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3104 else
3105 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3106 fi
5c6fa7d2 3107
10f2d63a 3108else
5c6fa7d2 3109
10f2d63a
VZ
3110 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3118
5c6fa7d2 3119fi;
10f2d63a
VZ
3120
3121 eval "$ac_cv_use_permissive"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_PERMISSIVE" = yes; then
5c6fa7d2
RR
3127 echo "$as_me:3127: result: yes" >&5
3128echo "${ECHO_T}yes" >&6
10f2d63a 3129 else
5c6fa7d2
RR
3130 echo "$as_me:3130: result: no" >&5
3131echo "${ECHO_T}no" >&6
10f2d63a 3132 fi
10f2d63a 3133
5c6fa7d2
RR
3134 echo "$as_me:3134: checking for --enable-no_deps" >&5
3135echo $ECHO_N "checking for --enable-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3136 no_cache=0
3137 # Check whether --enable-no_deps or --disable-no_deps was given.
3138if test "${enable_no_deps+set}" = set; then
3139 enableval="$enable_no_deps"
5c6fa7d2 3140
10f2d63a
VZ
3141 if test "$enableval" = yes; then
3142 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3143 else
3144 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3145 fi
5c6fa7d2 3146
10f2d63a 3147else
5c6fa7d2 3148
10f2d63a
VZ
3149 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3157
5c6fa7d2 3158fi;
10f2d63a
VZ
3159
3160 eval "$ac_cv_use_no_deps"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_NO_DEPS" = yes; then
5c6fa7d2
RR
3166 echo "$as_me:3166: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
10f2d63a 3168 else
5c6fa7d2
RR
3169 echo "$as_me:3169: result: no" >&5
3170echo "${ECHO_T}no" >&6
10f2d63a 3171 fi
52127426 3172
5c6fa7d2
RR
3173 echo "$as_me:3173: checking for --enable-compat20" >&5
3174echo $ECHO_N "checking for --enable-compat20... $ECHO_C" >&6
54276ccf
VZ
3175 no_cache=0
3176 # Check whether --enable-compat20 or --disable-compat20 was given.
3177if test "${enable_compat20+set}" = set; then
3178 enableval="$enable_compat20"
5c6fa7d2 3179
54276ccf
VZ
3180 if test "$enableval" = yes; then
3181 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3182 else
3183 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3184 fi
5c6fa7d2 3185
54276ccf 3186else
5c6fa7d2 3187
54276ccf
VZ
3188 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3196
5c6fa7d2 3197fi;
54276ccf
VZ
3198
3199 eval "$ac_cv_use_compat20"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$WXWIN_COMPATIBILITY_2" = yes; then
5c6fa7d2
RR
3205 echo "$as_me:3205: result: yes" >&5
3206echo "${ECHO_T}yes" >&6
54276ccf 3207 else
5c6fa7d2
RR
3208 echo "$as_me:3208: result: no" >&5
3209echo "${ECHO_T}no" >&6
54276ccf 3210 fi
54276ccf 3211
5c6fa7d2
RR
3212 echo "$as_me:3212: checking for --enable-compat22" >&5
3213echo $ECHO_N "checking for --enable-compat22... $ECHO_C" >&6
54276ccf
VZ
3214 no_cache=0
3215 # Check whether --enable-compat22 or --disable-compat22 was given.
3216if test "${enable_compat22+set}" = set; then
3217 enableval="$enable_compat22"
5c6fa7d2 3218
54276ccf
VZ
3219 if test "$enableval" = yes; then
3220 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3221 else
3222 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3223 fi
5c6fa7d2 3224
54276ccf 3225else
5c6fa7d2 3226
54276ccf
VZ
3227 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3228 if test "x$LINE" != x ; then
3229 eval "DEFAULT_$LINE"
3230 else
3231 no_cache=1
3232 fi
3233
3234 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3235
5c6fa7d2 3236fi;
54276ccf
VZ
3237
3238 eval "$ac_cv_use_compat22"
3239 if test "$no_cache" != 1; then
3240 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3241 fi
3242
3243 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
5c6fa7d2
RR
3244 echo "$as_me:3244: result: yes" >&5
3245echo "${ECHO_T}yes" >&6
54276ccf 3246 else
5c6fa7d2
RR
3247 echo "$as_me:3247: result: no" >&5
3248echo "${ECHO_T}no" >&6
54276ccf 3249 fi
54276ccf 3250
3bd8fb5f
RD
3251# Check whether --enable-rpath or --disable-rpath was given.
3252if test "${enable_rpath+set}" = set; then
3253 enableval="$enable_rpath"
3254 wxRPATH_DIR="$enableval"
5c6fa7d2 3255fi;
3bd8fb5f
RD
3256
3257if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3258 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3259fi
3260
5c6fa7d2
RR
3261 echo "$as_me:3261: checking for --enable-intl" >&5
3262echo $ECHO_N "checking for --enable-intl... $ECHO_C" >&6
10f2d63a
VZ
3263 no_cache=0
3264 # Check whether --enable-intl or --disable-intl was given.
3265if test "${enable_intl+set}" = set; then
3266 enableval="$enable_intl"
5c6fa7d2 3267
10f2d63a
VZ
3268 if test "$enableval" = yes; then
3269 ac_cv_use_intl='wxUSE_INTL=yes'
3270 else
3271 ac_cv_use_intl='wxUSE_INTL=no'
3272 fi
5c6fa7d2 3273
10f2d63a 3274else
5c6fa7d2 3275
10f2d63a
VZ
3276 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3277 if test "x$LINE" != x ; then
3278 eval "DEFAULT_$LINE"
3279 else
3280 no_cache=1
3281 fi
3282
3283 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3284
5c6fa7d2 3285fi;
10f2d63a
VZ
3286
3287 eval "$ac_cv_use_intl"
3288 if test "$no_cache" != 1; then
3289 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3290 fi
3291
3292 if test "$wxUSE_INTL" = yes; then
5c6fa7d2
RR
3293 echo "$as_me:3293: result: yes" >&5
3294echo "${ECHO_T}yes" >&6
10f2d63a 3295 else
5c6fa7d2
RR
3296 echo "$as_me:3296: result: no" >&5
3297echo "${ECHO_T}no" >&6
10f2d63a 3298 fi
10f2d63a 3299
5c6fa7d2
RR
3300 echo "$as_me:3300: checking for --enable-config" >&5
3301echo $ECHO_N "checking for --enable-config... $ECHO_C" >&6
10f2d63a
VZ
3302 no_cache=0
3303 # Check whether --enable-config or --disable-config was given.
3304if test "${enable_config+set}" = set; then
3305 enableval="$enable_config"
5c6fa7d2 3306
10f2d63a
VZ
3307 if test "$enableval" = yes; then
3308 ac_cv_use_config='wxUSE_CONFIG=yes'
3309 else
3310 ac_cv_use_config='wxUSE_CONFIG=no'
3311 fi
5c6fa7d2 3312
10f2d63a 3313else
5c6fa7d2 3314
10f2d63a
VZ
3315 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3316 if test "x$LINE" != x ; then
3317 eval "DEFAULT_$LINE"
3318 else
3319 no_cache=1
3320 fi
3321
3322 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3323
5c6fa7d2 3324fi;
10f2d63a
VZ
3325
3326 eval "$ac_cv_use_config"
3327 if test "$no_cache" != 1; then
3328 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3329 fi
3330
3331 if test "$wxUSE_CONFIG" = yes; then
5c6fa7d2
RR
3332 echo "$as_me:3332: result: yes" >&5
3333echo "${ECHO_T}yes" >&6
10f2d63a 3334 else
5c6fa7d2
RR
3335 echo "$as_me:3335: result: no" >&5
3336echo "${ECHO_T}no" >&6
10f2d63a 3337 fi
52127426 3338
5c6fa7d2
RR
3339 echo "$as_me:3339: checking for --enable-protocols" >&5
3340echo $ECHO_N "checking for --enable-protocols... $ECHO_C" >&6
a1622950
VZ
3341 no_cache=0
3342 # Check whether --enable-protocols or --disable-protocols was given.
3343if test "${enable_protocols+set}" = set; then
3344 enableval="$enable_protocols"
5c6fa7d2 3345
a1622950
VZ
3346 if test "$enableval" = yes; then
3347 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3348 else
3349 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3350 fi
5c6fa7d2 3351
a1622950 3352else
5c6fa7d2 3353
a1622950
VZ
3354 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3355 if test "x$LINE" != x ; then
3356 eval "DEFAULT_$LINE"
3357 else
3358 no_cache=1
3359 fi
3360
3361 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3362
5c6fa7d2 3363fi;
a1622950
VZ
3364
3365 eval "$ac_cv_use_protocols"
3366 if test "$no_cache" != 1; then
3367 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3368 fi
3369
3370 if test "$wxUSE_PROTOCOL" = yes; then
5c6fa7d2
RR
3371 echo "$as_me:3371: result: yes" >&5
3372echo "${ECHO_T}yes" >&6
a1622950 3373 else
5c6fa7d2
RR
3374 echo "$as_me:3374: result: no" >&5
3375echo "${ECHO_T}no" >&6
a1622950 3376 fi
a1622950 3377
5c6fa7d2
RR
3378 echo "$as_me:3378: checking for --enable-ftp" >&5
3379echo $ECHO_N "checking for --enable-ftp... $ECHO_C" >&6
a1622950
VZ
3380 no_cache=0
3381 # Check whether --enable-ftp or --disable-ftp was given.
3382if test "${enable_ftp+set}" = set; then
3383 enableval="$enable_ftp"
5c6fa7d2 3384
a1622950
VZ
3385 if test "$enableval" = yes; then
3386 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3387 else
3388 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3389 fi
5c6fa7d2 3390
a1622950 3391else
5c6fa7d2 3392
a1622950
VZ
3393 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3394 if test "x$LINE" != x ; then
3395 eval "DEFAULT_$LINE"
3396 else
3397 no_cache=1
3398 fi
3399
3400 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3401
5c6fa7d2 3402fi;
a1622950
VZ
3403
3404 eval "$ac_cv_use_ftp"
3405 if test "$no_cache" != 1; then
3406 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3407 fi
3408
3409 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5c6fa7d2
RR
3410 echo "$as_me:3410: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
a1622950 3412 else
5c6fa7d2
RR
3413 echo "$as_me:3413: result: no" >&5
3414echo "${ECHO_T}no" >&6
a1622950 3415 fi
a1622950 3416
5c6fa7d2
RR
3417 echo "$as_me:3417: checking for --enable-http" >&5
3418echo $ECHO_N "checking for --enable-http... $ECHO_C" >&6
a1622950
VZ
3419 no_cache=0
3420 # Check whether --enable-http or --disable-http was given.
3421if test "${enable_http+set}" = set; then
3422 enableval="$enable_http"
5c6fa7d2 3423
a1622950
VZ
3424 if test "$enableval" = yes; then
3425 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3426 else
3427 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3428 fi
5c6fa7d2 3429
a1622950 3430else
5c6fa7d2 3431
a1622950
VZ
3432 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3433 if test "x$LINE" != x ; then
3434 eval "DEFAULT_$LINE"
3435 else
3436 no_cache=1
3437 fi
3438
3439 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3440
5c6fa7d2 3441fi;
a1622950
VZ
3442
3443 eval "$ac_cv_use_http"
3444 if test "$no_cache" != 1; then
3445 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3446 fi
3447
3448 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5c6fa7d2
RR
3449 echo "$as_me:3449: result: yes" >&5
3450echo "${ECHO_T}yes" >&6
a1622950 3451 else
5c6fa7d2
RR
3452 echo "$as_me:3452: result: no" >&5
3453echo "${ECHO_T}no" >&6
a1622950 3454 fi
a1622950 3455
5c6fa7d2
RR
3456 echo "$as_me:3456: checking for --enable-fileproto" >&5
3457echo $ECHO_N "checking for --enable-fileproto... $ECHO_C" >&6
a1622950
VZ
3458 no_cache=0
3459 # Check whether --enable-fileproto or --disable-fileproto was given.
3460if test "${enable_fileproto+set}" = set; then
3461 enableval="$enable_fileproto"
5c6fa7d2 3462
a1622950
VZ
3463 if test "$enableval" = yes; then
3464 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3465 else
3466 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3467 fi
5c6fa7d2 3468
a1622950 3469else
5c6fa7d2 3470
a1622950
VZ
3471 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3472 if test "x$LINE" != x ; then
3473 eval "DEFAULT_$LINE"
3474 else
3475 no_cache=1
3476 fi
3477
3478 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3479
5c6fa7d2 3480fi;
a1622950
VZ
3481
3482 eval "$ac_cv_use_fileproto"
3483 if test "$no_cache" != 1; then
3484 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3485 fi
3486
3487 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5c6fa7d2
RR
3488 echo "$as_me:3488: result: yes" >&5
3489echo "${ECHO_T}yes" >&6
a1622950 3490 else
5c6fa7d2
RR
3491 echo "$as_me:3491: result: no" >&5
3492echo "${ECHO_T}no" >&6
a1622950 3493 fi
a1622950 3494
5c6fa7d2
RR
3495 echo "$as_me:3495: checking for --enable-sockets" >&5
3496echo $ECHO_N "checking for --enable-sockets... $ECHO_C" >&6
10f2d63a
VZ
3497 no_cache=0
3498 # Check whether --enable-sockets or --disable-sockets was given.
3499if test "${enable_sockets+set}" = set; then
3500 enableval="$enable_sockets"
5c6fa7d2 3501
10f2d63a
VZ
3502 if test "$enableval" = yes; then
3503 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3504 else
3505 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3506 fi
5c6fa7d2 3507
10f2d63a 3508else
5c6fa7d2 3509
10f2d63a
VZ
3510 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
3517 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 3518
5c6fa7d2 3519fi;
10f2d63a
VZ
3520
3521 eval "$ac_cv_use_sockets"
3522 if test "$no_cache" != 1; then
3523 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3524 fi
3525
3526 if test "$wxUSE_SOCKETS" = yes; then
5c6fa7d2
RR
3527 echo "$as_me:3527: result: yes" >&5
3528echo "${ECHO_T}yes" >&6
10f2d63a 3529 else
5c6fa7d2
RR
3530 echo "$as_me:3530: result: no" >&5
3531echo "${ECHO_T}no" >&6
10f2d63a 3532 fi
52127426 3533
5c6fa7d2
RR
3534 echo "$as_me:3534: checking for --enable-ipc" >&5
3535echo $ECHO_N "checking for --enable-ipc... $ECHO_C" >&6
10f2d63a 3536 no_cache=0
eb4efbdc
VZ
3537 # Check whether --enable-ipc or --disable-ipc was given.
3538if test "${enable_ipc+set}" = set; then
3539 enableval="$enable_ipc"
5c6fa7d2 3540
10f2d63a 3541 if test "$enableval" = yes; then
eb4efbdc 3542 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3543 else
eb4efbdc 3544 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3545 fi
5c6fa7d2 3546
10f2d63a 3547else
5c6fa7d2 3548
eb4efbdc 3549 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3550 if test "x$LINE" != x ; then
3551 eval "DEFAULT_$LINE"
3552 else
3553 no_cache=1
3554 fi
3555
eb4efbdc 3556 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 3557
5c6fa7d2 3558fi;
10f2d63a 3559
eb4efbdc 3560 eval "$ac_cv_use_ipc"
10f2d63a 3561 if test "$no_cache" != 1; then
eb4efbdc 3562 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3563 fi
3564
eb4efbdc 3565 if test "$wxUSE_IPC" = yes; then
5c6fa7d2
RR
3566 echo "$as_me:3566: result: yes" >&5
3567echo "${ECHO_T}yes" >&6
10f2d63a 3568 else
5c6fa7d2
RR
3569 echo "$as_me:3569: result: no" >&5
3570echo "${ECHO_T}no" >&6
10f2d63a 3571 fi
52127426 3572
5c6fa7d2
RR
3573 echo "$as_me:3573: checking for --enable-cmdline" >&5
3574echo $ECHO_N "checking for --enable-cmdline... $ECHO_C" >&6
1e6feb95
VZ
3575 no_cache=0
3576 # Check whether --enable-cmdline or --disable-cmdline was given.
3577if test "${enable_cmdline+set}" = set; then
3578 enableval="$enable_cmdline"
5c6fa7d2 3579
1e6feb95
VZ
3580 if test "$enableval" = yes; then
3581 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3582 else
3583 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3584 fi
5c6fa7d2 3585
1e6feb95 3586else
5c6fa7d2 3587
1e6feb95
VZ
3588 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3589 if test "x$LINE" != x ; then
3590 eval "DEFAULT_$LINE"
3591 else
3592 no_cache=1
3593 fi
3594
3595 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 3596
5c6fa7d2 3597fi;
1e6feb95
VZ
3598
3599 eval "$ac_cv_use_cmdline"
3600 if test "$no_cache" != 1; then
3601 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3602 fi
3603
3604 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5c6fa7d2
RR
3605 echo "$as_me:3605: result: yes" >&5
3606echo "${ECHO_T}yes" >&6
1e6feb95 3607 else
5c6fa7d2
RR
3608 echo "$as_me:3608: result: no" >&5
3609echo "${ECHO_T}no" >&6
1e6feb95 3610 fi
1e6feb95 3611
5c6fa7d2
RR
3612 echo "$as_me:3612: checking for --enable-datetime" >&5
3613echo $ECHO_N "checking for --enable-datetime... $ECHO_C" >&6
1e6feb95
VZ
3614 no_cache=0
3615 # Check whether --enable-datetime or --disable-datetime was given.
3616if test "${enable_datetime+set}" = set; then
3617 enableval="$enable_datetime"
5c6fa7d2 3618
1e6feb95
VZ
3619 if test "$enableval" = yes; then
3620 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3621 else
3622 ac_cv_use_datetime='wxUSE_DATETIME=no'
3623 fi
5c6fa7d2 3624
1e6feb95 3625else
5c6fa7d2 3626
1e6feb95
VZ
3627 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3628 if test "x$LINE" != x ; then
3629 eval "DEFAULT_$LINE"
3630 else
3631 no_cache=1
3632 fi
3633
3634 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 3635
5c6fa7d2 3636fi;
1e6feb95
VZ
3637
3638 eval "$ac_cv_use_datetime"
3639 if test "$no_cache" != 1; then
3640 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3641 fi
3642
3643 if test "$wxUSE_DATETIME" = yes; then
5c6fa7d2
RR
3644 echo "$as_me:3644: result: yes" >&5
3645echo "${ECHO_T}yes" >&6
1e6feb95 3646 else
5c6fa7d2
RR
3647 echo "$as_me:3647: result: no" >&5
3648echo "${ECHO_T}no" >&6
1e6feb95 3649 fi
1e6feb95 3650
5c6fa7d2
RR
3651 echo "$as_me:3651: checking for --enable-timedate" >&5
3652echo $ECHO_N "checking for --enable-timedate... $ECHO_C" >&6
1e6feb95
VZ
3653 no_cache=0
3654 # Check whether --enable-timedate or --disable-timedate was given.
3655if test "${enable_timedate+set}" = set; then
3656 enableval="$enable_timedate"
5c6fa7d2 3657
1e6feb95
VZ
3658 if test "$enableval" = yes; then
3659 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3660 else
3661 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3662 fi
5c6fa7d2 3663
1e6feb95 3664else
5c6fa7d2 3665
1e6feb95
VZ
3666 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
1e6feb95 3674
5c6fa7d2 3675fi;
1e6feb95
VZ
3676
3677 eval "$ac_cv_use_timedate"
3678 if test "$no_cache" != 1; then
3679 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3680 fi
3681
3682 if test "$wxUSE_TIMEDATE" = yes; then
5c6fa7d2
RR
3683 echo "$as_me:3683: result: yes" >&5
3684echo "${ECHO_T}yes" >&6
1e6feb95 3685 else
5c6fa7d2
RR
3686 echo "$as_me:3686: result: no" >&5
3687echo "${ECHO_T}no" >&6
1e6feb95 3688 fi
1e6feb95 3689
5c6fa7d2
RR
3690 echo "$as_me:3690: checking for --enable-stopwatch" >&5
3691echo $ECHO_N "checking for --enable-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
3692 no_cache=0
3693 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3694if test "${enable_stopwatch+set}" = set; then
3695 enableval="$enable_stopwatch"
5c6fa7d2 3696
1e6feb95
VZ
3697 if test "$enableval" = yes; then
3698 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3699 else
3700 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3701 fi
5c6fa7d2 3702
1e6feb95 3703else
5c6fa7d2 3704
1e6feb95
VZ
3705 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 3713
5c6fa7d2 3714fi;
1e6feb95
VZ
3715
3716 eval "$ac_cv_use_stopwatch"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_STOPWATCH" = yes; then
5c6fa7d2
RR
3722 echo "$as_me:3722: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
1e6feb95 3724 else
5c6fa7d2
RR
3725 echo "$as_me:3725: result: no" >&5
3726echo "${ECHO_T}no" >&6
1e6feb95 3727 fi
1e6feb95 3728
5c6fa7d2
RR
3729 echo "$as_me:3729: checking for --enable-dialupman" >&5
3730echo $ECHO_N "checking for --enable-dialupman... $ECHO_C" >&6
10f2d63a 3731 no_cache=0
eb4efbdc
VZ
3732 # Check whether --enable-dialupman or --disable-dialupman was given.
3733if test "${enable_dialupman+set}" = set; then
3734 enableval="$enable_dialupman"
5c6fa7d2 3735
10f2d63a 3736 if test "$enableval" = yes; then
eb4efbdc 3737 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3738 else
eb4efbdc 3739 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3740 fi
5c6fa7d2 3741
10f2d63a 3742else
5c6fa7d2 3743
eb4efbdc 3744 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
eb4efbdc 3751 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 3752
5c6fa7d2 3753fi;
10f2d63a 3754
eb4efbdc 3755 eval "$ac_cv_use_dialupman"
10f2d63a 3756 if test "$no_cache" != 1; then
eb4efbdc 3757 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3758 fi
3759
eb4efbdc 3760 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5c6fa7d2
RR
3761 echo "$as_me:3761: result: yes" >&5
3762echo "${ECHO_T}yes" >&6
10f2d63a 3763 else
5c6fa7d2
RR
3764 echo "$as_me:3764: result: no" >&5
3765echo "${ECHO_T}no" >&6
10f2d63a 3766 fi
10f2d63a 3767
5c6fa7d2
RR
3768 echo "$as_me:3768: checking for --enable-apple_ieee" >&5
3769echo $ECHO_N "checking for --enable-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
3770 no_cache=0
3771 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3772if test "${enable_apple_ieee+set}" = set; then
3773 enableval="$enable_apple_ieee"
5c6fa7d2 3774
10f2d63a
VZ
3775 if test "$enableval" = yes; then
3776 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3777 else
3778 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3779 fi
5c6fa7d2 3780
10f2d63a 3781else
5c6fa7d2 3782
10f2d63a
VZ
3783 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 3791
5c6fa7d2 3792fi;
10f2d63a
VZ
3793
3794 eval "$ac_cv_use_apple_ieee"
3795 if test "$no_cache" != 1; then
3796 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3797 fi
3798
3799 if test "$wxUSE_APPLE_IEEE" = yes; then
5c6fa7d2
RR
3800 echo "$as_me:3800: result: yes" >&5
3801echo "${ECHO_T}yes" >&6
10f2d63a 3802 else
5c6fa7d2
RR
3803 echo "$as_me:3803: result: no" >&5
3804echo "${ECHO_T}no" >&6
10f2d63a 3805 fi
10f2d63a 3806
5c6fa7d2
RR
3807 echo "$as_me:3807: checking for --enable-timer" >&5
3808echo $ECHO_N "checking for --enable-timer... $ECHO_C" >&6
10f2d63a 3809 no_cache=0
1e6feb95
VZ
3810 # Check whether --enable-timer or --disable-timer was given.
3811if test "${enable_timer+set}" = set; then
3812 enableval="$enable_timer"
5c6fa7d2 3813
10f2d63a 3814 if test "$enableval" = yes; then
1e6feb95 3815 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3816 else
1e6feb95 3817 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3818 fi
5c6fa7d2 3819
10f2d63a 3820else
5c6fa7d2 3821
1e6feb95 3822 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
1e6feb95 3829 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 3830
5c6fa7d2 3831fi;
10f2d63a 3832
1e6feb95 3833 eval "$ac_cv_use_timer"
10f2d63a 3834 if test "$no_cache" != 1; then
1e6feb95 3835 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3836 fi
3837
1e6feb95 3838 if test "$wxUSE_TIMER" = yes; then
5c6fa7d2
RR
3839 echo "$as_me:3839: result: yes" >&5
3840echo "${ECHO_T}yes" >&6
10f2d63a 3841 else
5c6fa7d2
RR
3842 echo "$as_me:3842: result: no" >&5
3843echo "${ECHO_T}no" >&6
10f2d63a 3844 fi
10f2d63a 3845
5c6fa7d2
RR
3846 echo "$as_me:3846: checking for --enable-wave" >&5
3847echo $ECHO_N "checking for --enable-wave... $ECHO_C" >&6
10f2d63a
VZ
3848 no_cache=0
3849 # Check whether --enable-wave or --disable-wave was given.
3850if test "${enable_wave+set}" = set; then
3851 enableval="$enable_wave"
5c6fa7d2 3852
10f2d63a
VZ
3853 if test "$enableval" = yes; then
3854 ac_cv_use_wave='wxUSE_WAVE=yes'
3855 else
3856 ac_cv_use_wave='wxUSE_WAVE=no'
3857 fi
5c6fa7d2 3858
10f2d63a 3859else
5c6fa7d2 3860
10f2d63a
VZ
3861 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 3869
5c6fa7d2 3870fi;
10f2d63a
VZ
3871
3872 eval "$ac_cv_use_wave"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_WAVE" = yes; then
5c6fa7d2
RR
3878 echo "$as_me:3878: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
10f2d63a 3880 else
5c6fa7d2
RR
3881 echo "$as_me:3881: result: no" >&5
3882echo "${ECHO_T}no" >&6
10f2d63a 3883 fi
10f2d63a 3884
5c6fa7d2
RR
3885 echo "$as_me:3885: checking for --enable-fraction" >&5
3886echo $ECHO_N "checking for --enable-fraction... $ECHO_C" >&6
10f2d63a
VZ
3887 no_cache=0
3888 # Check whether --enable-fraction or --disable-fraction was given.
3889if test "${enable_fraction+set}" = set; then
3890 enableval="$enable_fraction"
5c6fa7d2 3891
10f2d63a
VZ
3892 if test "$enableval" = yes; then
3893 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3894 else
3895 ac_cv_use_fraction='wxUSE_FRACTION=no'
3896 fi
5c6fa7d2 3897
10f2d63a 3898else
5c6fa7d2 3899
10f2d63a
VZ
3900 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3901 if test "x$LINE" != x ; then
3902 eval "DEFAULT_$LINE"
3903 else
3904 no_cache=1
3905 fi
3906
3907 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 3908
5c6fa7d2 3909fi;
10f2d63a
VZ
3910
3911 eval "$ac_cv_use_fraction"
3912 if test "$no_cache" != 1; then
3913 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3914 fi
3915
3916 if test "$wxUSE_FRACTION" = yes; then
5c6fa7d2
RR
3917 echo "$as_me:3917: result: yes" >&5
3918echo "${ECHO_T}yes" >&6
10f2d63a 3919 else
5c6fa7d2
RR
3920 echo "$as_me:3920: result: no" >&5
3921echo "${ECHO_T}no" >&6
10f2d63a 3922 fi
10f2d63a 3923
5c6fa7d2
RR
3924 echo "$as_me:3924: checking for --enable-dynlib" >&5
3925echo $ECHO_N "checking for --enable-dynlib... $ECHO_C" >&6
10f2d63a
VZ
3926 no_cache=0
3927 # Check whether --enable-dynlib or --disable-dynlib was given.
3928if test "${enable_dynlib+set}" = set; then
3929 enableval="$enable_dynlib"
5c6fa7d2 3930
10f2d63a
VZ
3931 if test "$enableval" = yes; then
3932 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3933 else
3934 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3935 fi
5c6fa7d2 3936
10f2d63a 3937else
5c6fa7d2 3938
10f2d63a
VZ
3939 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 3947
5c6fa7d2 3948fi;
10f2d63a
VZ
3949
3950 eval "$ac_cv_use_dynlib"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5c6fa7d2
RR
3956 echo "$as_me:3956: result: yes" >&5
3957echo "${ECHO_T}yes" >&6
10f2d63a 3958 else
5c6fa7d2
RR
3959 echo "$as_me:3959: result: no" >&5
3960echo "${ECHO_T}no" >&6
10f2d63a 3961 fi
10f2d63a 3962
5c6fa7d2
RR
3963 echo "$as_me:3963: checking for --enable-dynamicloader" >&5
3964echo $ECHO_N "checking for --enable-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
3965 no_cache=0
3966 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3967if test "${enable_dynamicloader+set}" = set; then
3968 enableval="$enable_dynamicloader"
5c6fa7d2 3969
0b9ab0bd
RL
3970 if test "$enableval" = yes; then
3971 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3972 else
3973 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3974 fi
5c6fa7d2 3975
0b9ab0bd 3976else
5c6fa7d2 3977
0b9ab0bd
RL
3978 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3979 if test "x$LINE" != x ; then
3980 eval "DEFAULT_$LINE"
3981 else
3982 no_cache=1
3983 fi
3984
3985 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 3986
5c6fa7d2 3987fi;
0b9ab0bd
RL
3988
3989 eval "$ac_cv_use_dynamicloader"
3990 if test "$no_cache" != 1; then
3991 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3992 fi
3993
3994 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5c6fa7d2
RR
3995 echo "$as_me:3995: result: yes" >&5
3996echo "${ECHO_T}yes" >&6
0b9ab0bd 3997 else
5c6fa7d2
RR
3998 echo "$as_me:3998: result: no" >&5
3999echo "${ECHO_T}no" >&6
0b9ab0bd 4000 fi
0b9ab0bd 4001
5c6fa7d2
RR
4002 echo "$as_me:4002: checking for --enable-longlong" >&5
4003echo $ECHO_N "checking for --enable-longlong... $ECHO_C" >&6
10f2d63a
VZ
4004 no_cache=0
4005 # Check whether --enable-longlong or --disable-longlong was given.
4006if test "${enable_longlong+set}" = set; then
4007 enableval="$enable_longlong"
5c6fa7d2 4008
10f2d63a
VZ
4009 if test "$enableval" = yes; then
4010 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4011 else
4012 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4013 fi
5c6fa7d2 4014
10f2d63a 4015else
5c6fa7d2 4016
10f2d63a
VZ
4017 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4018 if test "x$LINE" != x ; then
4019 eval "DEFAULT_$LINE"
4020 else
4021 no_cache=1
4022 fi
4023
4024 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4025
5c6fa7d2 4026fi;
10f2d63a
VZ
4027
4028 eval "$ac_cv_use_longlong"
4029 if test "$no_cache" != 1; then
4030 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4031 fi
4032
4033 if test "$wxUSE_LONGLONG" = yes; then
5c6fa7d2
RR
4034 echo "$as_me:4034: result: yes" >&5
4035echo "${ECHO_T}yes" >&6
10f2d63a 4036 else
5c6fa7d2
RR
4037 echo "$as_me:4037: result: no" >&5
4038echo "${ECHO_T}no" >&6
10f2d63a 4039 fi
10f2d63a 4040
5c6fa7d2
RR
4041 echo "$as_me:4041: checking for --enable-geometry" >&5
4042echo $ECHO_N "checking for --enable-geometry... $ECHO_C" >&6
e8f65ba6
RR
4043 no_cache=0
4044 # Check whether --enable-geometry or --disable-geometry was given.
4045if test "${enable_geometry+set}" = set; then
4046 enableval="$enable_geometry"
5c6fa7d2 4047
e8f65ba6
RR
4048 if test "$enableval" = yes; then
4049 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4050 else
4051 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4052 fi
5c6fa7d2 4053
e8f65ba6 4054else
5c6fa7d2 4055
e8f65ba6
RR
4056 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4064
5c6fa7d2 4065fi;
e8f65ba6
RR
4066
4067 eval "$ac_cv_use_geometry"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_GEOMETRY" = yes; then
5c6fa7d2
RR
4073 echo "$as_me:4073: result: yes" >&5
4074echo "${ECHO_T}yes" >&6
e8f65ba6 4075 else
5c6fa7d2
RR
4076 echo "$as_me:4076: result: no" >&5
4077echo "${ECHO_T}no" >&6
e8f65ba6 4078 fi
e8f65ba6 4079
5c6fa7d2
RR
4080 echo "$as_me:4080: checking for --enable-log" >&5
4081echo $ECHO_N "checking for --enable-log... $ECHO_C" >&6
10f2d63a
VZ
4082 no_cache=0
4083 # Check whether --enable-log or --disable-log was given.
4084if test "${enable_log+set}" = set; then
4085 enableval="$enable_log"
5c6fa7d2 4086
10f2d63a
VZ
4087 if test "$enableval" = yes; then
4088 ac_cv_use_log='wxUSE_LOG=yes'
4089 else
4090 ac_cv_use_log='wxUSE_LOG=no'
4091 fi
5c6fa7d2 4092
10f2d63a 4093else
5c6fa7d2 4094
10f2d63a
VZ
4095 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4103
5c6fa7d2 4104fi;
10f2d63a
VZ
4105
4106 eval "$ac_cv_use_log"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$wxUSE_LOG" = yes; then
5c6fa7d2
RR
4112 echo "$as_me:4112: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
10f2d63a 4114 else
5c6fa7d2
RR
4115 echo "$as_me:4115: result: no" >&5
4116echo "${ECHO_T}no" >&6
10f2d63a 4117 fi
10f2d63a 4118
5c6fa7d2
RR
4119 echo "$as_me:4119: checking for --enable-streams" >&5
4120echo $ECHO_N "checking for --enable-streams... $ECHO_C" >&6
10f2d63a
VZ
4121 no_cache=0
4122 # Check whether --enable-streams or --disable-streams was given.
4123if test "${enable_streams+set}" = set; then
4124 enableval="$enable_streams"
5c6fa7d2 4125
10f2d63a
VZ
4126 if test "$enableval" = yes; then
4127 ac_cv_use_streams='wxUSE_STREAMS=yes'
4128 else
4129 ac_cv_use_streams='wxUSE_STREAMS=no'
4130 fi
5c6fa7d2 4131
10f2d63a 4132else
5c6fa7d2 4133
10f2d63a
VZ
4134 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4135 if test "x$LINE" != x ; then
4136 eval "DEFAULT_$LINE"
4137 else
4138 no_cache=1
4139 fi
4140
4141 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4142
5c6fa7d2 4143fi;
10f2d63a
VZ
4144
4145 eval "$ac_cv_use_streams"
4146 if test "$no_cache" != 1; then
4147 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4148 fi
4149
4150 if test "$wxUSE_STREAMS" = yes; then
5c6fa7d2
RR
4151 echo "$as_me:4151: result: yes" >&5
4152echo "${ECHO_T}yes" >&6
10f2d63a 4153 else
5c6fa7d2
RR
4154 echo "$as_me:4154: result: no" >&5
4155echo "${ECHO_T}no" >&6
10f2d63a 4156 fi
10f2d63a 4157
5c6fa7d2
RR
4158 echo "$as_me:4158: checking for --enable-file" >&5
4159echo $ECHO_N "checking for --enable-file... $ECHO_C" >&6
10f2d63a
VZ
4160 no_cache=0
4161 # Check whether --enable-file or --disable-file was given.
4162if test "${enable_file+set}" = set; then
4163 enableval="$enable_file"
5c6fa7d2 4164
10f2d63a
VZ
4165 if test "$enableval" = yes; then
4166 ac_cv_use_file='wxUSE_FILE=yes'
4167 else
4168 ac_cv_use_file='wxUSE_FILE=no'
4169 fi
5c6fa7d2 4170
10f2d63a 4171else
5c6fa7d2 4172
10f2d63a
VZ
4173 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4181
5c6fa7d2 4182fi;
10f2d63a
VZ
4183
4184 eval "$ac_cv_use_file"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_FILE" = yes; then
5c6fa7d2
RR
4190 echo "$as_me:4190: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
10f2d63a 4192 else
5c6fa7d2
RR
4193 echo "$as_me:4193: result: no" >&5
4194echo "${ECHO_T}no" >&6
10f2d63a 4195 fi
10f2d63a 4196
5c6fa7d2
RR
4197 echo "$as_me:4197: checking for --enable-ffile" >&5
4198echo $ECHO_N "checking for --enable-ffile... $ECHO_C" >&6
10f2d63a 4199 no_cache=0
1e6feb95
VZ
4200 # Check whether --enable-ffile or --disable-ffile was given.
4201if test "${enable_ffile+set}" = set; then
4202 enableval="$enable_ffile"
5c6fa7d2 4203
10f2d63a 4204 if test "$enableval" = yes; then
1e6feb95 4205 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4206 else
1e6feb95 4207 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4208 fi
5c6fa7d2 4209
10f2d63a 4210else
5c6fa7d2 4211
1e6feb95 4212 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
1e6feb95 4219 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4220
5c6fa7d2 4221fi;
10f2d63a 4222
1e6feb95 4223 eval "$ac_cv_use_ffile"
10f2d63a 4224 if test "$no_cache" != 1; then
1e6feb95 4225 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4226 fi
4227
1e6feb95 4228 if test "$wxUSE_FFILE" = yes; then
5c6fa7d2
RR
4229 echo "$as_me:4229: result: yes" >&5
4230echo "${ECHO_T}yes" >&6
10f2d63a 4231 else
5c6fa7d2
RR
4232 echo "$as_me:4232: result: no" >&5
4233echo "${ECHO_T}no" >&6
10f2d63a 4234 fi
10f2d63a 4235
5c6fa7d2
RR
4236 echo "$as_me:4236: checking for --enable-textbuf" >&5
4237echo $ECHO_N "checking for --enable-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4238 no_cache=0
4239 # Check whether --enable-textbuf or --disable-textbuf was given.
4240if test "${enable_textbuf+set}" = set; then
4241 enableval="$enable_textbuf"
5c6fa7d2 4242
a3a584a7
VZ
4243 if test "$enableval" = yes; then
4244 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4245 else
4246 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4247 fi
5c6fa7d2 4248
a3a584a7 4249else
5c6fa7d2 4250
a3a584a7
VZ
4251 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4252 if test "x$LINE" != x ; then
4253 eval "DEFAULT_$LINE"
4254 else
4255 no_cache=1
4256 fi
4257
4258 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4259
5c6fa7d2 4260fi;
a3a584a7
VZ
4261
4262 eval "$ac_cv_use_textbuf"
4263 if test "$no_cache" != 1; then
4264 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4265 fi
4266
4267 if test "$wxUSE_TEXTBUFFER" = yes; then
5c6fa7d2
RR
4268 echo "$as_me:4268: result: yes" >&5
4269echo "${ECHO_T}yes" >&6
a3a584a7 4270 else
5c6fa7d2
RR
4271 echo "$as_me:4271: result: no" >&5
4272echo "${ECHO_T}no" >&6
a3a584a7 4273 fi
a3a584a7 4274
5c6fa7d2
RR
4275 echo "$as_me:4275: checking for --enable-textfile" >&5
4276echo $ECHO_N "checking for --enable-textfile... $ECHO_C" >&6
10f2d63a 4277 no_cache=0
1e6feb95
VZ
4278 # Check whether --enable-textfile or --disable-textfile was given.
4279if test "${enable_textfile+set}" = set; then
4280 enableval="$enable_textfile"
5c6fa7d2 4281
10f2d63a 4282 if test "$enableval" = yes; then
1e6feb95 4283 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4284 else
1e6feb95 4285 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4286 fi
5c6fa7d2 4287
10f2d63a 4288else
5c6fa7d2 4289
1e6feb95 4290 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4291 if test "x$LINE" != x ; then
4292 eval "DEFAULT_$LINE"
4293 else
4294 no_cache=1
4295 fi
4296
1e6feb95 4297 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4298
5c6fa7d2 4299fi;
10f2d63a 4300
1e6feb95 4301 eval "$ac_cv_use_textfile"
10f2d63a 4302 if test "$no_cache" != 1; then
1e6feb95 4303 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4304 fi
4305
1e6feb95 4306 if test "$wxUSE_TEXTFILE" = yes; then
5c6fa7d2
RR
4307 echo "$as_me:4307: result: yes" >&5
4308echo "${ECHO_T}yes" >&6
10f2d63a 4309 else
5c6fa7d2
RR
4310 echo "$as_me:4310: result: no" >&5
4311echo "${ECHO_T}no" >&6
10f2d63a 4312 fi
10f2d63a 4313
5c6fa7d2
RR
4314 echo "$as_me:4314: checking for --enable-fontmap" >&5
4315echo $ECHO_N "checking for --enable-fontmap... $ECHO_C" >&6
10f2d63a 4316 no_cache=0
1e6feb95
VZ
4317 # Check whether --enable-fontmap or --disable-fontmap was given.
4318if test "${enable_fontmap+set}" = set; then
4319 enableval="$enable_fontmap"
5c6fa7d2 4320
10f2d63a 4321 if test "$enableval" = yes; then
1e6feb95 4322 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4323 else
1e6feb95 4324 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4325 fi
5c6fa7d2 4326
10f2d63a 4327else
5c6fa7d2 4328
1e6feb95 4329 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4330 if test "x$LINE" != x ; then
4331 eval "DEFAULT_$LINE"
4332 else
4333 no_cache=1
4334 fi
4335
1e6feb95 4336 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4337
5c6fa7d2 4338fi;
10f2d63a 4339
1e6feb95 4340 eval "$ac_cv_use_fontmap"
10f2d63a 4341 if test "$no_cache" != 1; then
1e6feb95 4342 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4343 fi
4344
1e6feb95 4345 if test "$wxUSE_FONTMAP" = yes; then
5c6fa7d2
RR
4346 echo "$as_me:4346: result: yes" >&5
4347echo "${ECHO_T}yes" >&6
10f2d63a 4348 else
5c6fa7d2
RR
4349 echo "$as_me:4349: result: no" >&5
4350echo "${ECHO_T}no" >&6
10f2d63a 4351 fi
10f2d63a 4352
5c6fa7d2
RR
4353 echo "$as_me:4353: checking for --enable-unicode" >&5
4354echo $ECHO_N "checking for --enable-unicode... $ECHO_C" >&6
10f2d63a 4355 no_cache=0
1e6feb95
VZ
4356 # Check whether --enable-unicode or --disable-unicode was given.
4357if test "${enable_unicode+set}" = set; then
4358 enableval="$enable_unicode"
5c6fa7d2 4359
1e6feb95
VZ
4360 if test "$enableval" = yes; then
4361 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4362 else
4363 ac_cv_use_unicode='wxUSE_UNICODE=no'
4364 fi
5c6fa7d2 4365
1e6feb95 4366else
5c6fa7d2 4367
1e6feb95
VZ
4368 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4369 if test "x$LINE" != x ; then
4370 eval "DEFAULT_$LINE"
4371 else
4372 no_cache=1
4373 fi
4374
4375 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4376
5c6fa7d2 4377fi;
1e6feb95
VZ
4378
4379 eval "$ac_cv_use_unicode"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_UNICODE" = yes; then
5c6fa7d2
RR
4385 echo "$as_me:4385: result: yes" >&5
4386echo "${ECHO_T}yes" >&6
1e6feb95 4387 else
5c6fa7d2
RR
4388 echo "$as_me:4388: result: no" >&5
4389echo "${ECHO_T}no" >&6
1e6feb95 4390 fi
1e6feb95 4391
5c6fa7d2
RR
4392 echo "$as_me:4392: checking for --enable-mslu" >&5
4393echo $ECHO_N "checking for --enable-mslu... $ECHO_C" >&6
a72a4bfa
VS
4394 no_cache=0
4395 # Check whether --enable-mslu or --disable-mslu was given.
4396if test "${enable_mslu+set}" = set; then
4397 enableval="$enable_mslu"
5c6fa7d2 4398
a72a4bfa
VS
4399 if test "$enableval" = yes; then
4400 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4401 else
4402 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4403 fi
5c6fa7d2 4404
a72a4bfa 4405else
5c6fa7d2 4406
a72a4bfa
VS
4407 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4415
5c6fa7d2 4416fi;
a72a4bfa
VS
4417
4418 eval "$ac_cv_use_mslu"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_UNICODE_MSLU" = yes; then
5c6fa7d2
RR
4424 echo "$as_me:4424: result: yes" >&5
4425echo "${ECHO_T}yes" >&6
a72a4bfa 4426 else
5c6fa7d2
RR
4427 echo "$as_me:4427: result: no" >&5
4428echo "${ECHO_T}no" >&6
a72a4bfa 4429 fi
a72a4bfa 4430
5c6fa7d2
RR
4431 echo "$as_me:4431: checking for --enable-wxprintfv" >&5
4432echo $ECHO_N "checking for --enable-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
4433 no_cache=0
4434 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4435if test "${enable_wxprintfv+set}" = set; then
4436 enableval="$enable_wxprintfv"
5c6fa7d2 4437
1e6feb95 4438 if test "$enableval" = yes; then
10f2d63a
VZ
4439 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4440 else
4441 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4442 fi
5c6fa7d2 4443
10f2d63a 4444else
5c6fa7d2 4445
10f2d63a
VZ
4446 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4447 if test "x$LINE" != x ; then
4448 eval "DEFAULT_$LINE"
4449 else
4450 no_cache=1
4451 fi
4452
4453 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 4454
5c6fa7d2 4455fi;
10f2d63a
VZ
4456
4457 eval "$ac_cv_use_wxprintfv"
4458 if test "$no_cache" != 1; then
4459 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4460 fi
4461
4462 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5c6fa7d2
RR
4463 echo "$as_me:4463: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
10f2d63a 4465 else
5c6fa7d2
RR
4466 echo "$as_me:4466: result: no" >&5
4467echo "${ECHO_T}no" >&6
10f2d63a 4468 fi
10f2d63a 4469
5c6fa7d2
RR
4470 echo "$as_me:4470: checking for --enable-std_iostreams" >&5
4471echo $ECHO_N "checking for --enable-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
4472 no_cache=0
4473 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4474if test "${enable_std_iostreams+set}" = set; then
4475 enableval="$enable_std_iostreams"
5c6fa7d2 4476
10f2d63a
VZ
4477 if test "$enableval" = yes; then
4478 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4479 else
4480 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4481 fi
5c6fa7d2 4482
10f2d63a 4483else
5c6fa7d2 4484
10f2d63a
VZ
4485 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4486 if test "x$LINE" != x ; then
4487 eval "DEFAULT_$LINE"
4488 else
4489 no_cache=1
4490 fi
4491
4492 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 4493
5c6fa7d2 4494fi;
10f2d63a
VZ
4495
4496 eval "$ac_cv_use_std_iostreams"
4497 if test "$no_cache" != 1; then
4498 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4499 fi
4500
4501 if test "$wxUSE_STD_IOSTREAM" = yes; then
5c6fa7d2
RR
4502 echo "$as_me:4502: result: yes" >&5
4503echo "${ECHO_T}yes" >&6
10f2d63a 4504 else
5c6fa7d2
RR
4505 echo "$as_me:4505: result: no" >&5
4506echo "${ECHO_T}no" >&6
10f2d63a 4507 fi
10f2d63a 4508
5c6fa7d2
RR
4509 echo "$as_me:4509: checking for --enable-filesystem" >&5
4510echo $ECHO_N "checking for --enable-filesystem... $ECHO_C" >&6
24528b0c
VS
4511 no_cache=0
4512 # Check whether --enable-filesystem or --disable-filesystem was given.
4513if test "${enable_filesystem+set}" = set; then
4514 enableval="$enable_filesystem"
5c6fa7d2 4515
24528b0c
VS
4516 if test "$enableval" = yes; then
4517 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4518 else
4519 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4520 fi
5c6fa7d2 4521
24528b0c 4522else
5c6fa7d2 4523
24528b0c
VS
4524 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 4532
5c6fa7d2 4533fi;
24528b0c
VS
4534
4535 eval "$ac_cv_use_filesystem"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_FILESYSTEM" = yes; then
5c6fa7d2
RR
4541 echo "$as_me:4541: result: yes" >&5
4542echo "${ECHO_T}yes" >&6
24528b0c 4543 else
5c6fa7d2
RR
4544 echo "$as_me:4544: result: no" >&5
4545echo "${ECHO_T}no" >&6
24528b0c 4546 fi
24528b0c 4547
5c6fa7d2
RR
4548 echo "$as_me:4548: checking for --enable-fs_inet" >&5
4549echo $ECHO_N "checking for --enable-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
4550 no_cache=0
4551 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4552if test "${enable_fs_inet+set}" = set; then
4553 enableval="$enable_fs_inet"
5c6fa7d2 4554
10f2d63a
VZ
4555 if test "$enableval" = yes; then
4556 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4557 else
4558 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4559 fi
5c6fa7d2 4560
10f2d63a 4561else
5c6fa7d2 4562
10f2d63a
VZ
4563 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4571
5c6fa7d2 4572fi;
10f2d63a
VZ
4573
4574 eval "$ac_cv_use_fs_inet"
4575 if test "$no_cache" != 1; then
4576 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4577 fi
4578
4579 if test "$wxUSE_FS_INET" = yes; then
5c6fa7d2
RR
4580 echo "$as_me:4580: result: yes" >&5
4581echo "${ECHO_T}yes" >&6
10f2d63a 4582 else
5c6fa7d2
RR
4583 echo "$as_me:4583: result: no" >&5
4584echo "${ECHO_T}no" >&6
10f2d63a 4585 fi
10f2d63a 4586
5c6fa7d2
RR
4587 echo "$as_me:4587: checking for --enable-fs_zip" >&5
4588echo $ECHO_N "checking for --enable-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
4589 no_cache=0
4590 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4591if test "${enable_fs_zip+set}" = set; then
4592 enableval="$enable_fs_zip"
5c6fa7d2 4593
10f2d63a
VZ
4594 if test "$enableval" = yes; then
4595 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4596 else
4597 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4598 fi
5c6fa7d2 4599
10f2d63a 4600else
5c6fa7d2 4601
10f2d63a
VZ
4602 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 4610
5c6fa7d2 4611fi;
10f2d63a
VZ
4612
4613 eval "$ac_cv_use_fs_zip"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_FS_ZIP" = yes; then
5c6fa7d2
RR
4619 echo "$as_me:4619: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
10f2d63a 4621 else
5c6fa7d2
RR
4622 echo "$as_me:4622: result: no" >&5
4623echo "${ECHO_T}no" >&6
10f2d63a 4624 fi
10f2d63a 4625
5c6fa7d2
RR
4626 echo "$as_me:4626: checking for --enable-zipstream" >&5
4627echo $ECHO_N "checking for --enable-zipstream... $ECHO_C" >&6
10f2d63a
VZ
4628 no_cache=0
4629 # Check whether --enable-zipstream or --disable-zipstream was given.
4630if test "${enable_zipstream+set}" = set; then
4631 enableval="$enable_zipstream"
5c6fa7d2 4632
10f2d63a
VZ
4633 if test "$enableval" = yes; then
4634 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4635 else
4636 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4637 fi
5c6fa7d2 4638
10f2d63a 4639else
5c6fa7d2 4640
10f2d63a
VZ
4641 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 4649
5c6fa7d2 4650fi;
10f2d63a
VZ
4651
4652 eval "$ac_cv_use_zipstream"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_ZIPSTREAM" = yes; then
5c6fa7d2
RR
4658 echo "$as_me:4658: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
10f2d63a 4660 else
5c6fa7d2
RR
4661 echo "$as_me:4661: result: no" >&5
4662echo "${ECHO_T}no" >&6
10f2d63a 4663 fi
52127426 4664
5c6fa7d2
RR
4665 echo "$as_me:4665: checking for --enable-catch_segvs" >&5
4666echo $ECHO_N "checking for --enable-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
4667 no_cache=0
4668 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4669if test "${enable_catch_segvs+set}" = set; then
4670 enableval="$enable_catch_segvs"
5c6fa7d2 4671
eb4efbdc
VZ
4672 if test "$enableval" = yes; then
4673 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4674 else
4675 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4676 fi
5c6fa7d2 4677
eb4efbdc 4678else
5c6fa7d2 4679
eb4efbdc
VZ
4680 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 4688
5c6fa7d2 4689fi;
eb4efbdc
VZ
4690
4691 eval "$ac_cv_use_catch_segvs"
4692 if test "$no_cache" != 1; then
4693 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4694 fi
4695
4696 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5c6fa7d2
RR
4697 echo "$as_me:4697: result: yes" >&5
4698echo "${ECHO_T}yes" >&6
eb4efbdc 4699 else
5c6fa7d2
RR
4700 echo "$as_me:4700: result: no" >&5
4701echo "${ECHO_T}no" >&6
eb4efbdc 4702 fi
eb4efbdc 4703
5c6fa7d2
RR
4704 echo "$as_me:4704: checking for --enable-snglinst" >&5
4705echo $ECHO_N "checking for --enable-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
4706 no_cache=0
4707 # Check whether --enable-snglinst or --disable-snglinst was given.
4708if test "${enable_snglinst+set}" = set; then
4709 enableval="$enable_snglinst"
5c6fa7d2 4710
4f3c5f06
VZ
4711 if test "$enableval" = yes; then
4712 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4713 else
4714 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4715 fi
5c6fa7d2 4716
4f3c5f06 4717else
5c6fa7d2 4718
4f3c5f06
VZ
4719 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4720 if test "x$LINE" != x ; then
4721 eval "DEFAULT_$LINE"
4722 else
4723 no_cache=1
4724 fi
4725
4726 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 4727
5c6fa7d2 4728fi;
4f3c5f06
VZ
4729
4730 eval "$ac_cv_use_snglinst"
4731 if test "$no_cache" != 1; then
4732 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4733 fi
4734
4735 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5c6fa7d2
RR
4736 echo "$as_me:4736: result: yes" >&5
4737echo "${ECHO_T}yes" >&6
4f3c5f06 4738 else
5c6fa7d2
RR
4739 echo "$as_me:4739: result: no" >&5
4740echo "${ECHO_T}no" >&6
4f3c5f06 4741 fi
52127426 4742
5c6fa7d2
RR
4743 echo "$as_me:4743: checking for --enable-mimetype" >&5
4744echo $ECHO_N "checking for --enable-mimetype... $ECHO_C" >&6
1e6feb95
VZ
4745 no_cache=0
4746 # Check whether --enable-mimetype or --disable-mimetype was given.
4747if test "${enable_mimetype+set}" = set; then
4748 enableval="$enable_mimetype"
5c6fa7d2 4749
1e6feb95
VZ
4750 if test "$enableval" = yes; then
4751 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4752 else
4753 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4754 fi
5c6fa7d2 4755
1e6feb95 4756else
5c6fa7d2 4757
1e6feb95
VZ
4758 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4759 if test "x$LINE" != x ; then
4760 eval "DEFAULT_$LINE"
4761 else
4762 no_cache=1
4763 fi
4764
4765 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 4766
5c6fa7d2 4767fi;
1e6feb95
VZ
4768
4769 eval "$ac_cv_use_mimetype"
4770 if test "$no_cache" != 1; then
4771 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4772 fi
4773
4774 if test "$wxUSE_MIMETYPE" = yes; then
5c6fa7d2
RR
4775 echo "$as_me:4775: result: yes" >&5
4776echo "${ECHO_T}yes" >&6
1e6feb95 4777 else
5c6fa7d2
RR
4778 echo "$as_me:4778: result: no" >&5
4779echo "${ECHO_T}no" >&6
1e6feb95 4780 fi
1e6feb95 4781
5c6fa7d2
RR
4782 echo "$as_me:4782: checking for --enable-system_options" >&5
4783echo $ECHO_N "checking for --enable-system_options... $ECHO_C" >&6
3e44f09d
VZ
4784 no_cache=0
4785 # Check whether --enable-system_options or --disable-system_options was given.
4786if test "${enable_system_options+set}" = set; then
4787 enableval="$enable_system_options"
5c6fa7d2 4788
3e44f09d
VZ
4789 if test "$enableval" = yes; then
4790 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4791 else
4792 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4793 fi
5c6fa7d2 4794
3e44f09d 4795else
5c6fa7d2 4796
3e44f09d
VZ
4797 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4798 if test "x$LINE" != x ; then
4799 eval "DEFAULT_$LINE"
4800 else
4801 no_cache=1
4802 fi
4803
4804 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 4805
5c6fa7d2 4806fi;
3e44f09d
VZ
4807
4808 eval "$ac_cv_use_system_options"
4809 if test "$no_cache" != 1; then
4810 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4811 fi
4812
4813 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5c6fa7d2
RR
4814 echo "$as_me:4814: result: yes" >&5
4815echo "${ECHO_T}yes" >&6
3e44f09d 4816 else
5c6fa7d2
RR
4817 echo "$as_me:4817: result: no" >&5
4818echo "${ECHO_T}no" >&6
3e44f09d 4819 fi
52127426 4820
5c6fa7d2
RR
4821 echo "$as_me:4821: checking for --enable-url" >&5
4822echo $ECHO_N "checking for --enable-url... $ECHO_C" >&6
4cdb0ab0
VS
4823 no_cache=0
4824 # Check whether --enable-url or --disable-url was given.
4825if test "${enable_url+set}" = set; then
4826 enableval="$enable_url"
5c6fa7d2 4827
4cdb0ab0
VS
4828 if test "$enableval" = yes; then
4829 ac_cv_use_url='wxUSE_URL=yes'
4830 else
4831 ac_cv_use_url='wxUSE_URL=no'
4832 fi
5c6fa7d2 4833
4cdb0ab0 4834else
5c6fa7d2 4835
4cdb0ab0
VS
4836 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 4844
5c6fa7d2 4845fi;
4cdb0ab0
VS
4846
4847 eval "$ac_cv_use_url"
4848 if test "$no_cache" != 1; then
4849 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4850 fi
4851
4852 if test "$wxUSE_URL" = yes; then
5c6fa7d2
RR
4853 echo "$as_me:4853: result: yes" >&5
4854echo "${ECHO_T}yes" >&6
4cdb0ab0 4855 else
5c6fa7d2
RR
4856 echo "$as_me:4856: result: no" >&5
4857echo "${ECHO_T}no" >&6
4cdb0ab0 4858 fi
4cdb0ab0 4859
5c6fa7d2
RR
4860 echo "$as_me:4860: checking for --enable-protocol" >&5
4861echo $ECHO_N "checking for --enable-protocol... $ECHO_C" >&6
4cdb0ab0
VS
4862 no_cache=0
4863 # Check whether --enable-protocol or --disable-protocol was given.
4864if test "${enable_protocol+set}" = set; then
4865 enableval="$enable_protocol"
5c6fa7d2 4866
4cdb0ab0
VS
4867 if test "$enableval" = yes; then
4868 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4869 else
4870 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4871 fi
5c6fa7d2 4872
4cdb0ab0 4873else
5c6fa7d2 4874
4cdb0ab0
VS
4875 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 4883
5c6fa7d2 4884fi;
4cdb0ab0
VS
4885
4886 eval "$ac_cv_use_protocol"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_PROTOCOL" = yes; then
5c6fa7d2
RR
4892 echo "$as_me:4892: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4cdb0ab0 4894 else
5c6fa7d2
RR
4895 echo "$as_me:4895: result: no" >&5
4896echo "${ECHO_T}no" >&6
4cdb0ab0 4897 fi
4cdb0ab0 4898
5c6fa7d2
RR
4899 echo "$as_me:4899: checking for --enable-protocol_http" >&5
4900echo $ECHO_N "checking for --enable-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
4901 no_cache=0
4902 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4903if test "${enable_protocol_http+set}" = set; then
4904 enableval="$enable_protocol_http"
5c6fa7d2 4905
4cdb0ab0
VS
4906 if test "$enableval" = yes; then
4907 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4908 else
4909 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4910 fi
5c6fa7d2 4911
4cdb0ab0 4912else
5c6fa7d2 4913
4cdb0ab0
VS
4914 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 4922
5c6fa7d2 4923fi;
4cdb0ab0
VS
4924
4925 eval "$ac_cv_use_protocol_http"
4926 if test "$no_cache" != 1; then
4927 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4928 fi
4929
4930 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5c6fa7d2
RR
4931 echo "$as_me:4931: result: yes" >&5
4932echo "${ECHO_T}yes" >&6
4cdb0ab0 4933 else
5c6fa7d2
RR
4934 echo "$as_me:4934: result: no" >&5
4935echo "${ECHO_T}no" >&6
4cdb0ab0 4936 fi
4cdb0ab0 4937
5c6fa7d2
RR
4938 echo "$as_me:4938: checking for --enable-protocol_ftp" >&5
4939echo $ECHO_N "checking for --enable-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
4940 no_cache=0
4941 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4942if test "${enable_protocol_ftp+set}" = set; then
4943 enableval="$enable_protocol_ftp"
5c6fa7d2 4944
4cdb0ab0
VS
4945 if test "$enableval" = yes; then
4946 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4947 else
4948 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4949 fi
5c6fa7d2 4950
4cdb0ab0 4951else
5c6fa7d2 4952
4cdb0ab0
VS
4953 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 4961
5c6fa7d2 4962fi;
4cdb0ab0
VS
4963
4964 eval "$ac_cv_use_protocol_ftp"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5c6fa7d2
RR
4970 echo "$as_me:4970: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
4cdb0ab0 4972 else
5c6fa7d2
RR
4973 echo "$as_me:4973: result: no" >&5
4974echo "${ECHO_T}no" >&6
4cdb0ab0 4975 fi
4cdb0ab0 4976
5c6fa7d2
RR
4977 echo "$as_me:4977: checking for --enable-protocol_file" >&5
4978echo $ECHO_N "checking for --enable-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
4979 no_cache=0
4980 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4981if test "${enable_protocol_file+set}" = set; then
4982 enableval="$enable_protocol_file"
5c6fa7d2 4983
4cdb0ab0
VS
4984 if test "$enableval" = yes; then
4985 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4986 else
4987 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4988 fi
5c6fa7d2 4989
4cdb0ab0 4990else
5c6fa7d2 4991
4cdb0ab0
VS
4992 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4993 if test "x$LINE" != x ; then
4994 eval "DEFAULT_$LINE"
4995 else
4996 no_cache=1
4997 fi
4998
4999 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5000
5c6fa7d2 5001fi;
4cdb0ab0
VS
5002
5003 eval "$ac_cv_use_protocol_file"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5c6fa7d2
RR
5009 echo "$as_me:5009: result: yes" >&5
5010echo "${ECHO_T}yes" >&6
4cdb0ab0 5011 else
5c6fa7d2
RR
5012 echo "$as_me:5012: result: no" >&5
5013echo "${ECHO_T}no" >&6
4cdb0ab0 5014 fi
52127426 5015
5c6fa7d2
RR
5016 echo "$as_me:5016: checking for --enable-threads" >&5
5017echo $ECHO_N "checking for --enable-threads... $ECHO_C" >&6
10f2d63a
VZ
5018 no_cache=0
5019 # Check whether --enable-threads or --disable-threads was given.
5020if test "${enable_threads+set}" = set; then
5021 enableval="$enable_threads"
5c6fa7d2 5022
10f2d63a
VZ
5023 if test "$enableval" = yes; then
5024 ac_cv_use_threads='wxUSE_THREADS=yes'
5025 else
5026 ac_cv_use_threads='wxUSE_THREADS=no'
5027 fi
5c6fa7d2 5028
10f2d63a 5029else
5c6fa7d2 5030
10f2d63a
VZ
5031 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5032 if test "x$LINE" != x ; then
5033 eval "DEFAULT_$LINE"
5034 else
5035 no_cache=1
5036 fi
5037
5038 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5039
5c6fa7d2 5040fi;
10f2d63a
VZ
5041
5042 eval "$ac_cv_use_threads"
5043 if test "$no_cache" != 1; then
5044 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5045 fi
5046
5047 if test "$wxUSE_THREADS" = yes; then
5c6fa7d2
RR
5048 echo "$as_me:5048: result: yes" >&5
5049echo "${ECHO_T}yes" >&6
10f2d63a 5050 else
5c6fa7d2
RR
5051 echo "$as_me:5051: result: no" >&5
5052echo "${ECHO_T}no" >&6
10f2d63a 5053 fi
10f2d63a 5054
b12915c1
VZ
5055if test "$wxUSE_GUI" = "yes"; then
5056
5c6fa7d2
RR
5057 echo "$as_me:5057: checking for --enable-docview" >&5
5058echo $ECHO_N "checking for --enable-docview... $ECHO_C" >&6
10f2d63a
VZ
5059 no_cache=0
5060 # Check whether --enable-docview or --disable-docview was given.
5061if test "${enable_docview+set}" = set; then
5062 enableval="$enable_docview"
5c6fa7d2 5063
10f2d63a
VZ
5064 if test "$enableval" = yes; then
5065 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5066 else
5067 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5068 fi
5c6fa7d2 5069
10f2d63a 5070else
5c6fa7d2 5071
10f2d63a
VZ
5072 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5080
5c6fa7d2 5081fi;
10f2d63a
VZ
5082
5083 eval "$ac_cv_use_docview"
5084 if test "$no_cache" != 1; then
5085 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5086 fi
5087
5088 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5c6fa7d2
RR
5089 echo "$as_me:5089: result: yes" >&5
5090echo "${ECHO_T}yes" >&6
10f2d63a 5091 else
5c6fa7d2
RR
5092 echo "$as_me:5092: result: no" >&5
5093echo "${ECHO_T}no" >&6
10f2d63a 5094 fi
10f2d63a 5095
5c6fa7d2
RR
5096 echo "$as_me:5096: checking for --enable-help" >&5
5097echo $ECHO_N "checking for --enable-help... $ECHO_C" >&6
10f2d63a
VZ
5098 no_cache=0
5099 # Check whether --enable-help or --disable-help was given.
5100if test "${enable_help+set}" = set; then
5101 enableval="$enable_help"
5c6fa7d2 5102
10f2d63a
VZ
5103 if test "$enableval" = yes; then
5104 ac_cv_use_help='wxUSE_HELP=yes'
5105 else
5106 ac_cv_use_help='wxUSE_HELP=no'
5107 fi
5c6fa7d2 5108
10f2d63a 5109else
5c6fa7d2 5110
10f2d63a
VZ
5111 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5119
5c6fa7d2 5120fi;
10f2d63a
VZ
5121
5122 eval "$ac_cv_use_help"
5123 if test "$no_cache" != 1; then
5124 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5125 fi
5126
5127 if test "$wxUSE_HELP" = yes; then
5c6fa7d2
RR
5128 echo "$as_me:5128: result: yes" >&5
5129echo "${ECHO_T}yes" >&6
10f2d63a 5130 else
5c6fa7d2
RR
5131 echo "$as_me:5131: result: no" >&5
5132echo "${ECHO_T}no" >&6
10f2d63a 5133 fi
10f2d63a 5134
5c6fa7d2
RR
5135 echo "$as_me:5135: checking for --enable-mshtmlhelp" >&5
5136echo $ECHO_N "checking for --enable-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5137 no_cache=0
5138 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5139if test "${enable_mshtmlhelp+set}" = set; then
5140 enableval="$enable_mshtmlhelp"
5c6fa7d2 5141
29fd3c0c
VS
5142 if test "$enableval" = yes; then
5143 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5144 else
5145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5146 fi
5c6fa7d2 5147
29fd3c0c 5148else
5c6fa7d2 5149
29fd3c0c
VS
5150 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5158
5c6fa7d2 5159fi;
29fd3c0c
VS
5160
5161 eval "$ac_cv_use_mshtmlhelp"
5162 if test "$no_cache" != 1; then
5163 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5164 fi
5165
5166 if test "$wxUSE_MS_HTML_HELP" = yes; then
5c6fa7d2
RR
5167 echo "$as_me:5167: result: yes" >&5
5168echo "${ECHO_T}yes" >&6
29fd3c0c 5169 else
5c6fa7d2
RR
5170 echo "$as_me:5170: result: no" >&5
5171echo "${ECHO_T}no" >&6
29fd3c0c 5172 fi
29fd3c0c 5173
5c6fa7d2
RR
5174 echo "$as_me:5174: checking for --enable-html" >&5
5175echo $ECHO_N "checking for --enable-html... $ECHO_C" >&6
3379ed37
VZ
5176 no_cache=0
5177 # Check whether --enable-html or --disable-html was given.
5178if test "${enable_html+set}" = set; then
5179 enableval="$enable_html"
5c6fa7d2 5180
3379ed37
VZ
5181 if test "$enableval" = yes; then
5182 ac_cv_use_html='wxUSE_HTML=yes'
5183 else
5184 ac_cv_use_html='wxUSE_HTML=no'
5185 fi
5c6fa7d2 5186
3379ed37 5187else
5c6fa7d2 5188
3379ed37
VZ
5189 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5197
5c6fa7d2 5198fi;
3379ed37
VZ
5199
5200 eval "$ac_cv_use_html"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_HTML" = yes; then
5c6fa7d2
RR
5206 echo "$as_me:5206: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
3379ed37 5208 else
5c6fa7d2
RR
5209 echo "$as_me:5209: result: no" >&5
5210echo "${ECHO_T}no" >&6
3379ed37 5211 fi
3379ed37 5212
5c6fa7d2
RR
5213 echo "$as_me:5213: checking for --enable-htmlhelp" >&5
5214echo $ECHO_N "checking for --enable-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5215 no_cache=0
5216 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5217if test "${enable_htmlhelp+set}" = set; then
5218 enableval="$enable_htmlhelp"
5c6fa7d2 5219
3379ed37
VZ
5220 if test "$enableval" = yes; then
5221 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5222 else
5223 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5224 fi
5c6fa7d2 5225
3379ed37 5226else
5c6fa7d2 5227
3379ed37
VZ
5228 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5236
5c6fa7d2 5237fi;
3379ed37
VZ
5238
5239 eval "$ac_cv_use_htmlhelp"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_WXHTML_HELP" = yes; then
5c6fa7d2
RR
5245 echo "$as_me:5245: result: yes" >&5
5246echo "${ECHO_T}yes" >&6
3379ed37 5247 else
5c6fa7d2
RR
5248 echo "$as_me:5248: result: no" >&5
5249echo "${ECHO_T}no" >&6
3379ed37 5250 fi
3379ed37 5251
5c6fa7d2
RR
5252 echo "$as_me:5252: checking for --enable-constraints" >&5
5253echo $ECHO_N "checking for --enable-constraints... $ECHO_C" >&6
10f2d63a
VZ
5254 no_cache=0
5255 # Check whether --enable-constraints or --disable-constraints was given.
5256if test "${enable_constraints+set}" = set; then
5257 enableval="$enable_constraints"
5c6fa7d2 5258
10f2d63a
VZ
5259 if test "$enableval" = yes; then
5260 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5261 else
5262 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5263 fi
5c6fa7d2 5264
10f2d63a 5265else
5c6fa7d2 5266
10f2d63a
VZ
5267 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5275
5c6fa7d2 5276fi;
10f2d63a
VZ
5277
5278 eval "$ac_cv_use_constraints"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_CONSTRAINTS" = yes; then
5c6fa7d2
RR
5284 echo "$as_me:5284: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
10f2d63a 5286 else
5c6fa7d2
RR
5287 echo "$as_me:5287: result: no" >&5
5288echo "${ECHO_T}no" >&6
10f2d63a 5289 fi
10f2d63a 5290
5c6fa7d2
RR
5291 echo "$as_me:5291: checking for --enable-printarch" >&5
5292echo $ECHO_N "checking for --enable-printarch... $ECHO_C" >&6
10f2d63a
VZ
5293 no_cache=0
5294 # Check whether --enable-printarch or --disable-printarch was given.
5295if test "${enable_printarch+set}" = set; then
5296 enableval="$enable_printarch"
5c6fa7d2 5297
10f2d63a
VZ
5298 if test "$enableval" = yes; then
5299 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5300 else
5301 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5302 fi
5c6fa7d2 5303
10f2d63a 5304else
5c6fa7d2 5305
10f2d63a
VZ
5306 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5314
5c6fa7d2 5315fi;
10f2d63a
VZ
5316
5317 eval "$ac_cv_use_printarch"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5c6fa7d2
RR
5323 echo "$as_me:5323: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
10f2d63a 5325 else
5c6fa7d2
RR
5326 echo "$as_me:5326: result: no" >&5
5327echo "${ECHO_T}no" >&6
10f2d63a 5328 fi
10f2d63a 5329
5c6fa7d2
RR
5330 echo "$as_me:5330: checking for --enable-mdi" >&5
5331echo $ECHO_N "checking for --enable-mdi... $ECHO_C" >&6
10f2d63a
VZ
5332 no_cache=0
5333 # Check whether --enable-mdi or --disable-mdi was given.
5334if test "${enable_mdi+set}" = set; then
5335 enableval="$enable_mdi"
5c6fa7d2 5336
10f2d63a
VZ
5337 if test "$enableval" = yes; then
5338 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5339 else
5340 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5341 fi
5c6fa7d2 5342
10f2d63a 5343else
5c6fa7d2 5344
10f2d63a
VZ
5345 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 5353
5c6fa7d2 5354fi;
10f2d63a
VZ
5355
5356 eval "$ac_cv_use_mdi"
5357 if test "$no_cache" != 1; then
5358 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5359 fi
5360
5361 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5c6fa7d2
RR
5362 echo "$as_me:5362: result: yes" >&5
5363echo "${ECHO_T}yes" >&6
10f2d63a 5364 else
5c6fa7d2
RR
5365 echo "$as_me:5365: result: no" >&5
5366echo "${ECHO_T}no" >&6
10f2d63a 5367 fi
698dcdb6 5368
5c6fa7d2
RR
5369 echo "$as_me:5369: checking for --enable-loggui" >&5
5370echo $ECHO_N "checking for --enable-loggui... $ECHO_C" >&6
1e6feb95
VZ
5371 no_cache=0
5372 # Check whether --enable-loggui or --disable-loggui was given.
5373if test "${enable_loggui+set}" = set; then
5374 enableval="$enable_loggui"
5c6fa7d2 5375
1e6feb95
VZ
5376 if test "$enableval" = yes; then
5377 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5378 else
5379 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5380 fi
5c6fa7d2 5381
1e6feb95 5382else
5c6fa7d2 5383
1e6feb95
VZ
5384 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 5392
5c6fa7d2 5393fi;
1e6feb95
VZ
5394
5395 eval "$ac_cv_use_loggui"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_LOGGUI" = yes; then
5c6fa7d2
RR
5401 echo "$as_me:5401: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
1e6feb95 5403 else
5c6fa7d2
RR
5404 echo "$as_me:5404: result: no" >&5
5405echo "${ECHO_T}no" >&6
1e6feb95 5406 fi
1e6feb95 5407
5c6fa7d2
RR
5408 echo "$as_me:5408: checking for --enable-logwin" >&5
5409echo $ECHO_N "checking for --enable-logwin... $ECHO_C" >&6
1e6feb95
VZ
5410 no_cache=0
5411 # Check whether --enable-logwin or --disable-logwin was given.
5412if test "${enable_logwin+set}" = set; then
5413 enableval="$enable_logwin"
5c6fa7d2 5414
1e6feb95
VZ
5415 if test "$enableval" = yes; then
5416 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5417 else
5418 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5419 fi
5c6fa7d2 5420
1e6feb95 5421else
5c6fa7d2 5422
1e6feb95
VZ
5423 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 5431
5c6fa7d2 5432fi;
1e6feb95
VZ
5433
5434 eval "$ac_cv_use_logwin"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_LOGWINDOW" = yes; then
5c6fa7d2
RR
5440 echo "$as_me:5440: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
1e6feb95 5442 else
5c6fa7d2
RR
5443 echo "$as_me:5443: result: no" >&5
5444echo "${ECHO_T}no" >&6
1e6feb95 5445 fi
1e6feb95 5446
5c6fa7d2
RR
5447 echo "$as_me:5447: checking for --enable-logdialog" >&5
5448echo $ECHO_N "checking for --enable-logdialog... $ECHO_C" >&6
69d27ff7
MB
5449 no_cache=0
5450 # Check whether --enable-logdialog or --disable-logdialog was given.
5451if test "${enable_logdialog+set}" = set; then
5452 enableval="$enable_logdialog"
5c6fa7d2 5453
69d27ff7
MB
5454 if test "$enableval" = yes; then
5455 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5456 else
5457 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5458 fi
5c6fa7d2 5459
69d27ff7 5460else
5c6fa7d2 5461
69d27ff7
MB
5462 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 5470
5c6fa7d2 5471fi;
69d27ff7
MB
5472
5473 eval "$ac_cv_use_logdialog"
5474 if test "$no_cache" != 1; then
5475 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5476 fi
5477
5478 if test "$wxUSE_LOGDIALOG" = yes; then
5c6fa7d2
RR
5479 echo "$as_me:5479: result: yes" >&5
5480echo "${ECHO_T}yes" >&6
69d27ff7 5481 else
5c6fa7d2
RR
5482 echo "$as_me:5482: result: no" >&5
5483echo "${ECHO_T}no" >&6
69d27ff7 5484 fi
52127426 5485
5c6fa7d2
RR
5486 echo "$as_me:5486: checking for --enable-postscript" >&5
5487echo $ECHO_N "checking for --enable-postscript... $ECHO_C" >&6
10f2d63a
VZ
5488 no_cache=0
5489 # Check whether --enable-postscript or --disable-postscript was given.
5490if test "${enable_postscript+set}" = set; then
5491 enableval="$enable_postscript"
5c6fa7d2 5492
10f2d63a
VZ
5493 if test "$enableval" = yes; then
5494 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5495 else
5496 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5497 fi
5c6fa7d2 5498
10f2d63a 5499else
5c6fa7d2 5500
10f2d63a
VZ
5501 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 5509
5c6fa7d2 5510fi;
10f2d63a
VZ
5511
5512 eval "$ac_cv_use_postscript"
5513 if test "$no_cache" != 1; then
5514 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5515 fi
5516
5517 if test "$wxUSE_POSTSCRIPT" = yes; then
5c6fa7d2
RR
5518 echo "$as_me:5518: result: yes" >&5
5519echo "${ECHO_T}yes" >&6
10f2d63a 5520 else
5c6fa7d2
RR
5521 echo "$as_me:5521: result: no" >&5
5522echo "${ECHO_T}no" >&6
10f2d63a 5523 fi
52127426 5524
5c6fa7d2
RR
5525 echo "$as_me:5525: checking for --enable-prologio" >&5
5526echo $ECHO_N "checking for --enable-prologio... $ECHO_C" >&6
10f2d63a
VZ
5527 no_cache=0
5528 # Check whether --enable-prologio or --disable-prologio was given.
5529if test "${enable_prologio+set}" = set; then
5530 enableval="$enable_prologio"
5c6fa7d2 5531
10f2d63a
VZ
5532 if test "$enableval" = yes; then
5533 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5534 else
5535 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5536 fi
5c6fa7d2 5537
10f2d63a 5538else
5c6fa7d2 5539
10f2d63a
VZ
5540 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 5548
5c6fa7d2 5549fi;
10f2d63a
VZ
5550
5551 eval "$ac_cv_use_prologio"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_PROLOGIO" = yes; then
5c6fa7d2
RR
5557 echo "$as_me:5557: result: yes" >&5
5558echo "${ECHO_T}yes" >&6
10f2d63a 5559 else
5c6fa7d2
RR
5560 echo "$as_me:5560: result: no" >&5
5561echo "${ECHO_T}no" >&6
10f2d63a 5562 fi
10f2d63a 5563
5c6fa7d2
RR
5564 echo "$as_me:5564: checking for --enable-resources" >&5
5565echo $ECHO_N "checking for --enable-resources... $ECHO_C" >&6
10f2d63a
VZ
5566 no_cache=0
5567 # Check whether --enable-resources or --disable-resources was given.
5568if test "${enable_resources+set}" = set; then
5569 enableval="$enable_resources"
5c6fa7d2 5570
10f2d63a
VZ
5571 if test "$enableval" = yes; then
5572 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5573 else
5574 ac_cv_use_resources='wxUSE_RESOURCES=no'
5575 fi
5c6fa7d2 5576
10f2d63a 5577else
5c6fa7d2 5578
10f2d63a
VZ
5579 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 5587
5c6fa7d2 5588fi;
10f2d63a
VZ
5589
5590 eval "$ac_cv_use_resources"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_RESOURCES" = yes; then
5c6fa7d2
RR
5596 echo "$as_me:5596: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
10f2d63a 5598 else
5c6fa7d2
RR
5599 echo "$as_me:5599: result: no" >&5
5600echo "${ECHO_T}no" >&6
10f2d63a 5601 fi
52127426 5602
5c6fa7d2
RR
5603 echo "$as_me:5603: checking for --enable-xresources" >&5
5604echo $ECHO_N "checking for --enable-xresources... $ECHO_C" >&6
10f2d63a
VZ
5605 no_cache=0
5606 # Check whether --enable-xresources or --disable-xresources was given.
5607if test "${enable_xresources+set}" = set; then
5608 enableval="$enable_xresources"
5c6fa7d2 5609
10f2d63a
VZ
5610 if test "$enableval" = yes; then
5611 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5612 else
5613 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5614 fi
5c6fa7d2 5615
10f2d63a 5616else
5c6fa7d2 5617
10f2d63a
VZ
5618 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
10f2d63a 5626
5c6fa7d2 5627fi;
10f2d63a
VZ
5628
5629 eval "$ac_cv_use_xresources"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_X_RESOURCES" = yes; then
5c6fa7d2
RR
5635 echo "$as_me:5635: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
10f2d63a 5637 else
5c6fa7d2
RR
5638 echo "$as_me:5638: result: no" >&5
5639echo "${ECHO_T}no" >&6
10f2d63a 5640 fi
52127426 5641
5c6fa7d2
RR
5642 echo "$as_me:5642: checking for --enable-clipboard" >&5
5643echo $ECHO_N "checking for --enable-clipboard... $ECHO_C" >&6
10f2d63a
VZ
5644 no_cache=0
5645 # Check whether --enable-clipboard or --disable-clipboard was given.
5646if test "${enable_clipboard+set}" = set; then
5647 enableval="$enable_clipboard"
5c6fa7d2 5648
10f2d63a
VZ
5649 if test "$enableval" = yes; then
5650 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5651 else
5652 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5653 fi
5c6fa7d2 5654
10f2d63a 5655else
5c6fa7d2 5656
10f2d63a
VZ
5657 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
5664 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 5665
5c6fa7d2 5666fi;
10f2d63a
VZ
5667
5668 eval "$ac_cv_use_clipboard"
5669 if test "$no_cache" != 1; then
5670 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5671 fi
5672
5673 if test "$wxUSE_CLIPBOARD" = yes; then
5c6fa7d2
RR
5674 echo "$as_me:5674: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
10f2d63a 5676 else
5c6fa7d2
RR
5677 echo "$as_me:5677: result: no" >&5
5678echo "${ECHO_T}no" >&6
10f2d63a 5679 fi
10f2d63a 5680
5c6fa7d2
RR
5681 echo "$as_me:5681: checking for --enable-dnd" >&5
5682echo $ECHO_N "checking for --enable-dnd... $ECHO_C" >&6
10f2d63a
VZ
5683 no_cache=0
5684 # Check whether --enable-dnd or --disable-dnd was given.
5685if test "${enable_dnd+set}" = set; then
5686 enableval="$enable_dnd"
5c6fa7d2 5687
10f2d63a
VZ
5688 if test "$enableval" = yes; then
5689 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5690 else
5691 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5692 fi
5c6fa7d2 5693
10f2d63a 5694else
5c6fa7d2 5695
10f2d63a
VZ
5696 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 5704
5c6fa7d2 5705fi;
10f2d63a
VZ
5706
5707 eval "$ac_cv_use_dnd"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5c6fa7d2
RR
5713 echo "$as_me:5713: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
10f2d63a 5715 else
5c6fa7d2
RR
5716 echo "$as_me:5716: result: no" >&5
5717echo "${ECHO_T}no" >&6
10f2d63a 5718 fi
10f2d63a 5719
5c6fa7d2
RR
5720 echo "$as_me:5720: checking for --enable-metafile" >&5
5721echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6
b64f0a5f
RL
5722 no_cache=0
5723 # Check whether --enable-metafile or --disable-metafile was given.
5724if test "${enable_metafile+set}" = set; then
5725 enableval="$enable_metafile"
5c6fa7d2 5726
b64f0a5f
RL
5727 if test "$enableval" = yes; then
5728 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5729 else
5730 ac_cv_use_metafile='wxUSE_METAFILE=no'
5731 fi
5c6fa7d2 5732
b64f0a5f 5733else
5c6fa7d2 5734
b64f0a5f
RL
5735 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5736 if test "x$LINE" != x ; then
5737 eval "DEFAULT_$LINE"
5738 else
5739 no_cache=1
5740 fi
5741
5742 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 5743
5c6fa7d2 5744fi;
b64f0a5f
RL
5745
5746 eval "$ac_cv_use_metafile"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_METAFILE" = yes; then
5c6fa7d2
RR
5752 echo "$as_me:5752: result: yes" >&5
5753echo "${ECHO_T}yes" >&6
b64f0a5f 5754 else
5c6fa7d2
RR
5755 echo "$as_me:5755: result: no" >&5
5756echo "${ECHO_T}no" >&6
b64f0a5f 5757 fi
52127426 5758
5c6fa7d2
RR
5759 echo "$as_me:5759: checking for --enable-treelayout" >&5
5760echo $ECHO_N "checking for --enable-treelayout... $ECHO_C" >&6
10f2d63a 5761 no_cache=0
24176f2c
GD
5762 # Check whether --enable-treelayout or --disable-treelayout was given.
5763if test "${enable_treelayout+set}" = set; then
5764 enableval="$enable_treelayout"
5c6fa7d2 5765
10f2d63a 5766 if test "$enableval" = yes; then
24176f2c 5767 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5768 else
24176f2c 5769 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5770 fi
5c6fa7d2 5771
10f2d63a 5772else
5c6fa7d2 5773
24176f2c 5774 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5775 if test "x$LINE" != x ; then
5776 eval "DEFAULT_$LINE"
5777 else
5778 no_cache=1
5779 fi
5780
24176f2c 5781 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
10f2d63a 5782
5c6fa7d2 5783fi;
10f2d63a 5784
24176f2c 5785 eval "$ac_cv_use_treelayout"
10f2d63a 5786 if test "$no_cache" != 1; then
24176f2c 5787 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5788 fi
5789
24176f2c 5790 if test "$wxUSE_TREELAYOUT" = yes; then
5c6fa7d2
RR
5791 echo "$as_me:5791: result: yes" >&5
5792echo "${ECHO_T}yes" >&6
10f2d63a 5793 else
5c6fa7d2
RR
5794 echo "$as_me:5794: result: no" >&5
5795echo "${ECHO_T}no" >&6
10f2d63a 5796 fi
52127426 5797
5c6fa7d2
RR
5798 echo "$as_me:5798: checking for --enable-controls" >&5
5799echo $ECHO_N "checking for --enable-controls... $ECHO_C" >&6
10f2d63a
VZ
5800 no_cache=0
5801 # Check whether --enable-controls or --disable-controls was given.
5802if test "${enable_controls+set}" = set; then
5803 enableval="$enable_controls"
5c6fa7d2 5804
10f2d63a
VZ
5805 if test "$enableval" = yes; then
5806 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5807 else
5808 ac_cv_use_controls='wxUSE_CONTROLS=no'
5809 fi
5c6fa7d2 5810
10f2d63a 5811else
5c6fa7d2 5812
10f2d63a
VZ
5813 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5814 if test "x$LINE" != x ; then
5815 eval "DEFAULT_$LINE"
5816 else
5817 no_cache=1
5818 fi
5819
5820 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 5821
5c6fa7d2 5822fi;
10f2d63a
VZ
5823
5824 eval "$ac_cv_use_controls"
5825 if test "$no_cache" != 1; then
5826 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5827 fi
5828
5829 if test "$wxUSE_CONTROLS" = yes; then
5c6fa7d2
RR
5830 echo "$as_me:5830: result: yes" >&5
5831echo "${ECHO_T}yes" >&6
10f2d63a 5832 else
5c6fa7d2
RR
5833 echo "$as_me:5833: result: no" >&5
5834echo "${ECHO_T}no" >&6
10f2d63a 5835 fi
10f2d63a
VZ
5836
5837if test "$wxUSE_CONTROLS" = "yes"; then
5838 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5839 DEFAULT_wxUSE_BMPBUTTON=yes
5840 DEFAULT_wxUSE_BUTTON=yes
5841 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5842 DEFAULT_wxUSE_CARET=yes
5843 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5844 DEFAULT_wxUSE_CHECKBOX=yes
5845 DEFAULT_wxUSE_CHECKLISTBOX=yes
5846 DEFAULT_wxUSE_CHOICE=yes
5847 DEFAULT_wxUSE_GAUGE=yes
5848 DEFAULT_wxUSE_GRID=yes
cc977e5f 5849 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5850 DEFAULT_wxUSE_IMAGLIST=yes
5851 DEFAULT_wxUSE_LISTBOX=yes
5852 DEFAULT_wxUSE_LISTCTRL=yes
5853 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5854 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5855 DEFAULT_wxUSE_RADIOBOX=yes
5856 DEFAULT_wxUSE_RADIOBTN=yes
5857 DEFAULT_wxUSE_SASH=yes
5858 DEFAULT_wxUSE_SCROLLBAR=yes
5859 DEFAULT_wxUSE_SLIDER=yes
5860 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5861 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5862 DEFAULT_wxUSE_SPLITTER=yes
5863 DEFAULT_wxUSE_STATBMP=yes
5864 DEFAULT_wxUSE_STATBOX=yes
5865 DEFAULT_wxUSE_STATLINE=yes
5866 DEFAULT_wxUSE_STATUSBAR=yes
5867 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5868 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5869 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5870 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5871 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5872 DEFAULT_wxUSE_TOOLTIPS=yes
5873 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5874 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5875 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5876elif test "$wxUSE_CONTROLS" = "no"; then
5877 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5878 DEFAULT_wxUSE_BMPBUTTON=no
5879 DEFAULT_wxUSE_BUTTON=no
5880 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5881 DEFAULT_wxUSE_CARET=no
5882 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5883 DEFAULT_wxUSE_CHECKBOX=no
5884 DEFAULT_wxUSE_CHECKLISTBOX=no
5885 DEFAULT_wxUSE_CHOICE=no
5886 DEFAULT_wxUSE_GAUGE=no
5887 DEFAULT_wxUSE_GRID=no
5888 DEFAULT_wxUSE_NEW_GRID=no
5889 DEFAULT_wxUSE_IMAGLIST=no
5890 DEFAULT_wxUSE_LISTBOX=no
5891 DEFAULT_wxUSE_LISTCTRL=no
5892 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5893 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5894 DEFAULT_wxUSE_RADIOBOX=no
5895 DEFAULT_wxUSE_RADIOBTN=no
5896 DEFAULT_wxUSE_SASH=no
5897 DEFAULT_wxUSE_SCROLLBAR=no
5898 DEFAULT_wxUSE_SLIDER=no
5899 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5900 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5901 DEFAULT_wxUSE_SPLITTER=no
5902 DEFAULT_wxUSE_STATBMP=no
5903 DEFAULT_wxUSE_STATBOX=no
5904 DEFAULT_wxUSE_STATLINE=no
5905 DEFAULT_wxUSE_STATUSBAR=no
5906 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5907 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5908 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5909 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5910 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5911 DEFAULT_wxUSE_TOOLTIPS=no
5912 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5913 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5914 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5915fi
5916
5c6fa7d2
RR
5917 echo "$as_me:5917: checking for --enable-accel" >&5
5918echo $ECHO_N "checking for --enable-accel... $ECHO_C" >&6
10f2d63a
VZ
5919 no_cache=0
5920 # Check whether --enable-accel or --disable-accel was given.
5921if test "${enable_accel+set}" = set; then
5922 enableval="$enable_accel"
5c6fa7d2 5923
10f2d63a
VZ
5924 if test "$enableval" = yes; then
5925 ac_cv_use_accel='wxUSE_ACCEL=yes'
5926 else
5927 ac_cv_use_accel='wxUSE_ACCEL=no'
5928 fi
5c6fa7d2 5929
10f2d63a 5930else
5c6fa7d2 5931
10f2d63a
VZ
5932 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 5940
5c6fa7d2 5941fi;
10f2d63a
VZ
5942
5943 eval "$ac_cv_use_accel"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_ACCEL" = yes; then
5c6fa7d2
RR
5949 echo "$as_me:5949: result: yes" >&5
5950echo "${ECHO_T}yes" >&6
10f2d63a 5951 else
5c6fa7d2
RR
5952 echo "$as_me:5952: result: no" >&5
5953echo "${ECHO_T}no" >&6
10f2d63a 5954 fi
10f2d63a 5955
5c6fa7d2
RR
5956 echo "$as_me:5956: checking for --enable-button" >&5
5957echo $ECHO_N "checking for --enable-button... $ECHO_C" >&6
10f2d63a 5958 no_cache=0
1e6feb95
VZ
5959 # Check whether --enable-button or --disable-button was given.
5960if test "${enable_button+set}" = set; then
5961 enableval="$enable_button"
5c6fa7d2 5962
10f2d63a 5963 if test "$enableval" = yes; then
1e6feb95 5964 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5965 else
1e6feb95 5966 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5967 fi
5c6fa7d2 5968
10f2d63a 5969else
5c6fa7d2 5970
1e6feb95 5971 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
1e6feb95 5978 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 5979
5c6fa7d2 5980fi;
10f2d63a 5981
1e6feb95 5982 eval "$ac_cv_use_button"
10f2d63a 5983 if test "$no_cache" != 1; then
1e6feb95 5984 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5985 fi
5986
1e6feb95 5987 if test "$wxUSE_BUTTON" = yes; then
5c6fa7d2
RR
5988 echo "$as_me:5988: result: yes" >&5
5989echo "${ECHO_T}yes" >&6
10f2d63a 5990 else
5c6fa7d2
RR
5991 echo "$as_me:5991: result: no" >&5
5992echo "${ECHO_T}no" >&6
10f2d63a 5993 fi
10f2d63a 5994
5c6fa7d2
RR
5995 echo "$as_me:5995: checking for --enable-bmpbutton" >&5
5996echo $ECHO_N "checking for --enable-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
5997 no_cache=0
5998 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5999if test "${enable_bmpbutton+set}" = set; then
6000 enableval="$enable_bmpbutton"
5c6fa7d2 6001
10f2d63a
VZ
6002 if test "$enableval" = yes; then
6003 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6004 else
6005 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6006 fi
5c6fa7d2 6007
10f2d63a 6008else
5c6fa7d2 6009
10f2d63a
VZ
6010 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6011 if test "x$LINE" != x ; then
6012 eval "DEFAULT_$LINE"
6013 else
6014 no_cache=1
6015 fi
6016
6017 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6018
5c6fa7d2 6019fi;
10f2d63a
VZ
6020
6021 eval "$ac_cv_use_bmpbutton"
6022 if test "$no_cache" != 1; then
6023 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6024 fi
6025
6026 if test "$wxUSE_BMPBUTTON" = yes; then
5c6fa7d2
RR
6027 echo "$as_me:6027: result: yes" >&5
6028echo "${ECHO_T}yes" >&6
10f2d63a 6029 else
5c6fa7d2
RR
6030 echo "$as_me:6030: result: no" >&5
6031echo "${ECHO_T}no" >&6
10f2d63a 6032 fi
10f2d63a 6033
5c6fa7d2
RR
6034 echo "$as_me:6034: checking for --enable-calendar" >&5
6035echo $ECHO_N "checking for --enable-calendar... $ECHO_C" >&6
1e6feb95
VZ
6036 no_cache=0
6037 # Check whether --enable-calendar or --disable-calendar was given.
6038if test "${enable_calendar+set}" = set; then
6039 enableval="$enable_calendar"
5c6fa7d2 6040
1e6feb95
VZ
6041 if test "$enableval" = yes; then
6042 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6043 else
6044 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6045 fi
5c6fa7d2 6046
1e6feb95 6047else
5c6fa7d2 6048
1e6feb95
VZ
6049 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6057
5c6fa7d2 6058fi;
1e6feb95
VZ
6059
6060 eval "$ac_cv_use_calendar"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_CALCTRL" = yes; then
5c6fa7d2
RR
6066 echo "$as_me:6066: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
1e6feb95 6068 else
5c6fa7d2
RR
6069 echo "$as_me:6069: result: no" >&5
6070echo "${ECHO_T}no" >&6
1e6feb95 6071 fi
1e6feb95 6072
5c6fa7d2
RR
6073 echo "$as_me:6073: checking for --enable-caret" >&5
6074echo $ECHO_N "checking for --enable-caret... $ECHO_C" >&6
1e6feb95
VZ
6075 no_cache=0
6076 # Check whether --enable-caret or --disable-caret was given.
6077if test "${enable_caret+set}" = set; then
6078 enableval="$enable_caret"
5c6fa7d2 6079
1e6feb95
VZ
6080 if test "$enableval" = yes; then
6081 ac_cv_use_caret='wxUSE_CARET=yes'
6082 else
6083 ac_cv_use_caret='wxUSE_CARET=no'
6084 fi
5c6fa7d2 6085
1e6feb95 6086else
5c6fa7d2 6087
1e6feb95
VZ
6088 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6096
5c6fa7d2 6097fi;
1e6feb95
VZ
6098
6099 eval "$ac_cv_use_caret"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_CARET" = yes; then
5c6fa7d2
RR
6105 echo "$as_me:6105: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
1e6feb95 6107 else
5c6fa7d2
RR
6108 echo "$as_me:6108: result: no" >&5
6109echo "${ECHO_T}no" >&6
1e6feb95 6110 fi
1e6feb95 6111
5c6fa7d2
RR
6112 echo "$as_me:6112: checking for --enable-checkbox" >&5
6113echo $ECHO_N "checking for --enable-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6114 no_cache=0
6115 # Check whether --enable-checkbox or --disable-checkbox was given.
6116if test "${enable_checkbox+set}" = set; then
6117 enableval="$enable_checkbox"
5c6fa7d2 6118
10f2d63a
VZ
6119 if test "$enableval" = yes; then
6120 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6121 else
6122 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6123 fi
5c6fa7d2 6124
10f2d63a 6125else
5c6fa7d2 6126
10f2d63a
VZ
6127 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6128 if test "x$LINE" != x ; then
6129 eval "DEFAULT_$LINE"
6130 else
6131 no_cache=1
6132 fi
6133
6134 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6135
5c6fa7d2 6136fi;
10f2d63a
VZ
6137
6138 eval "$ac_cv_use_checkbox"
6139 if test "$no_cache" != 1; then
6140 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6141 fi
6142
6143 if test "$wxUSE_CHECKBOX" = yes; then
5c6fa7d2
RR
6144 echo "$as_me:6144: result: yes" >&5
6145echo "${ECHO_T}yes" >&6
10f2d63a 6146 else
5c6fa7d2
RR
6147 echo "$as_me:6147: result: no" >&5
6148echo "${ECHO_T}no" >&6
10f2d63a 6149 fi
10f2d63a 6150
5c6fa7d2
RR
6151 echo "$as_me:6151: checking for --enable-checklst" >&5
6152echo $ECHO_N "checking for --enable-checklst... $ECHO_C" >&6
10f2d63a
VZ
6153 no_cache=0
6154 # Check whether --enable-checklst or --disable-checklst was given.
6155if test "${enable_checklst+set}" = set; then
6156 enableval="$enable_checklst"
5c6fa7d2 6157
10f2d63a
VZ
6158 if test "$enableval" = yes; then
6159 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6160 else
6161 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6162 fi
5c6fa7d2 6163
10f2d63a 6164else
5c6fa7d2 6165
10f2d63a
VZ
6166 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6167 if test "x$LINE" != x ; then
6168 eval "DEFAULT_$LINE"
6169 else
6170 no_cache=1
6171 fi
6172
6173 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6174
5c6fa7d2 6175fi;
10f2d63a
VZ
6176
6177 eval "$ac_cv_use_checklst"
6178 if test "$no_cache" != 1; then
6179 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6180 fi
6181
6182 if test "$wxUSE_CHECKLST" = yes; then
5c6fa7d2
RR
6183 echo "$as_me:6183: result: yes" >&5
6184echo "${ECHO_T}yes" >&6
10f2d63a 6185 else
5c6fa7d2
RR
6186 echo "$as_me:6186: result: no" >&5
6187echo "${ECHO_T}no" >&6
10f2d63a 6188 fi
10f2d63a 6189
5c6fa7d2
RR
6190 echo "$as_me:6190: checking for --enable-choice" >&5
6191echo $ECHO_N "checking for --enable-choice... $ECHO_C" >&6
10f2d63a
VZ
6192 no_cache=0
6193 # Check whether --enable-choice or --disable-choice was given.
6194if test "${enable_choice+set}" = set; then
6195 enableval="$enable_choice"
5c6fa7d2 6196
10f2d63a
VZ
6197 if test "$enableval" = yes; then
6198 ac_cv_use_choice='wxUSE_CHOICE=yes'
6199 else
6200 ac_cv_use_choice='wxUSE_CHOICE=no'
6201 fi
5c6fa7d2 6202
10f2d63a 6203else
5c6fa7d2 6204
10f2d63a
VZ
6205 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6213
5c6fa7d2 6214fi;
10f2d63a
VZ
6215
6216 eval "$ac_cv_use_choice"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_CHOICE" = yes; then
5c6fa7d2
RR
6222 echo "$as_me:6222: result: yes" >&5
6223echo "${ECHO_T}yes" >&6
10f2d63a 6224 else
5c6fa7d2
RR
6225 echo "$as_me:6225: result: no" >&5
6226echo "${ECHO_T}no" >&6
10f2d63a 6227 fi
10f2d63a 6228
5c6fa7d2
RR
6229 echo "$as_me:6229: checking for --enable-combobox" >&5
6230echo $ECHO_N "checking for --enable-combobox... $ECHO_C" >&6
10f2d63a
VZ
6231 no_cache=0
6232 # Check whether --enable-combobox or --disable-combobox was given.
6233if test "${enable_combobox+set}" = set; then
6234 enableval="$enable_combobox"
5c6fa7d2 6235
10f2d63a
VZ
6236 if test "$enableval" = yes; then
6237 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6238 else
6239 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6240 fi
5c6fa7d2 6241
10f2d63a 6242else
5c6fa7d2 6243
10f2d63a
VZ
6244 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6252
5c6fa7d2 6253fi;
10f2d63a
VZ
6254
6255 eval "$ac_cv_use_combobox"
6256 if test "$no_cache" != 1; then
6257 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6258 fi
6259
6260 if test "$wxUSE_COMBOBOX" = yes; then
5c6fa7d2
RR
6261 echo "$as_me:6261: result: yes" >&5
6262echo "${ECHO_T}yes" >&6
10f2d63a 6263 else
5c6fa7d2
RR
6264 echo "$as_me:6264: result: no" >&5
6265echo "${ECHO_T}no" >&6
10f2d63a 6266 fi
10f2d63a 6267
5c6fa7d2
RR
6268 echo "$as_me:6268: checking for --enable-gauge" >&5
6269echo $ECHO_N "checking for --enable-gauge... $ECHO_C" >&6
10f2d63a
VZ
6270 no_cache=0
6271 # Check whether --enable-gauge or --disable-gauge was given.
6272if test "${enable_gauge+set}" = set; then
6273 enableval="$enable_gauge"
5c6fa7d2 6274
10f2d63a
VZ
6275 if test "$enableval" = yes; then
6276 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6277 else
6278 ac_cv_use_gauge='wxUSE_GAUGE=no'
6279 fi
5c6fa7d2 6280
10f2d63a 6281else
5c6fa7d2 6282
10f2d63a
VZ
6283 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6284 if test "x$LINE" != x ; then
6285 eval "DEFAULT_$LINE"
6286 else
6287 no_cache=1
6288 fi
6289
6290 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6291
5c6fa7d2 6292fi;
10f2d63a
VZ
6293
6294 eval "$ac_cv_use_gauge"
6295 if test "$no_cache" != 1; then
6296 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6297 fi
6298
6299 if test "$wxUSE_GAUGE" = yes; then
5c6fa7d2
RR
6300 echo "$as_me:6300: result: yes" >&5
6301echo "${ECHO_T}yes" >&6
10f2d63a 6302 else
5c6fa7d2
RR
6303 echo "$as_me:6303: result: no" >&5
6304echo "${ECHO_T}no" >&6
10f2d63a 6305 fi
10f2d63a 6306
5c6fa7d2
RR
6307 echo "$as_me:6307: checking for --enable-grid" >&5
6308echo $ECHO_N "checking for --enable-grid... $ECHO_C" >&6
10f2d63a
VZ
6309 no_cache=0
6310 # Check whether --enable-grid or --disable-grid was given.
6311if test "${enable_grid+set}" = set; then
6312 enableval="$enable_grid"
5c6fa7d2 6313
10f2d63a
VZ
6314 if test "$enableval" = yes; then
6315 ac_cv_use_grid='wxUSE_GRID=yes'
6316 else
6317 ac_cv_use_grid='wxUSE_GRID=no'
6318 fi
5c6fa7d2 6319
10f2d63a 6320else
5c6fa7d2 6321
10f2d63a
VZ
6322 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6323 if test "x$LINE" != x ; then
6324 eval "DEFAULT_$LINE"
6325 else
6326 no_cache=1
6327 fi
6328
6329 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 6330
5c6fa7d2 6331fi;
10f2d63a
VZ
6332
6333 eval "$ac_cv_use_grid"
6334 if test "$no_cache" != 1; then
6335 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6336 fi
6337
6338 if test "$wxUSE_GRID" = yes; then
5c6fa7d2
RR
6339 echo "$as_me:6339: result: yes" >&5
6340echo "${ECHO_T}yes" >&6
10f2d63a 6341 else
5c6fa7d2
RR
6342 echo "$as_me:6342: result: no" >&5
6343echo "${ECHO_T}no" >&6
10f2d63a 6344 fi
10f2d63a 6345
5c6fa7d2
RR
6346 echo "$as_me:6346: checking for --enable-newgrid" >&5
6347echo $ECHO_N "checking for --enable-newgrid... $ECHO_C" >&6
10f2d63a
VZ
6348 no_cache=0
6349 # Check whether --enable-newgrid or --disable-newgrid was given.
6350if test "${enable_newgrid+set}" = set; then
6351 enableval="$enable_newgrid"
5c6fa7d2 6352
10f2d63a
VZ
6353 if test "$enableval" = yes; then
6354 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6355 else
6356 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6357 fi
5c6fa7d2 6358
10f2d63a 6359else
5c6fa7d2 6360
10f2d63a
VZ
6361 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6362 if test "x$LINE" != x ; then
6363 eval "DEFAULT_$LINE"
6364 else
6365 no_cache=1
6366 fi
6367
6368 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
10f2d63a 6369
5c6fa7d2 6370fi;
10f2d63a
VZ
6371
6372 eval "$ac_cv_use_newgrid"
6373 if test "$no_cache" != 1; then
6374 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6375 fi
6376
6377 if test "$wxUSE_NEW_GRID" = yes; then
5c6fa7d2
RR
6378 echo "$as_me:6378: result: yes" >&5
6379echo "${ECHO_T}yes" >&6
10f2d63a 6380 else
5c6fa7d2
RR
6381 echo "$as_me:6381: result: no" >&5
6382echo "${ECHO_T}no" >&6
10f2d63a 6383 fi
10f2d63a 6384
5c6fa7d2
RR
6385 echo "$as_me:6385: checking for --enable-imaglist" >&5
6386echo $ECHO_N "checking for --enable-imaglist... $ECHO_C" >&6
10f2d63a
VZ
6387 no_cache=0
6388 # Check whether --enable-imaglist or --disable-imaglist was given.
6389if test "${enable_imaglist+set}" = set; then
6390 enableval="$enable_imaglist"
5c6fa7d2 6391
10f2d63a
VZ
6392 if test "$enableval" = yes; then
6393 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6394 else
6395 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6396 fi
5c6fa7d2 6397
10f2d63a 6398else
5c6fa7d2 6399
10f2d63a
VZ
6400 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 6408
5c6fa7d2 6409fi;
10f2d63a
VZ
6410
6411 eval "$ac_cv_use_imaglist"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_IMAGLIST" = yes; then
5c6fa7d2
RR
6417 echo "$as_me:6417: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
10f2d63a 6419 else
5c6fa7d2
RR
6420 echo "$as_me:6420: result: no" >&5
6421echo "${ECHO_T}no" >&6
10f2d63a 6422 fi
10f2d63a 6423
5c6fa7d2
RR
6424 echo "$as_me:6424: checking for --enable-listbox" >&5
6425echo $ECHO_N "checking for --enable-listbox... $ECHO_C" >&6
10f2d63a
VZ
6426 no_cache=0
6427 # Check whether --enable-listbox or --disable-listbox was given.
6428if test "${enable_listbox+set}" = set; then
6429 enableval="$enable_listbox"
5c6fa7d2 6430
10f2d63a
VZ
6431 if test "$enableval" = yes; then
6432 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6433 else
6434 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6435 fi
5c6fa7d2 6436
10f2d63a 6437else
5c6fa7d2 6438
10f2d63a
VZ
6439 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6440 if test "x$LINE" != x ; then
6441 eval "DEFAULT_$LINE"
6442 else
6443 no_cache=1
6444 fi
6445
6446 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 6447
5c6fa7d2 6448fi;
10f2d63a
VZ
6449
6450 eval "$ac_cv_use_listbox"
6451 if test "$no_cache" != 1; then
6452 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6453 fi
6454
6455 if test "$wxUSE_LISTBOX" = yes; then
5c6fa7d2
RR
6456 echo "$as_me:6456: result: yes" >&5
6457echo "${ECHO_T}yes" >&6
10f2d63a 6458 else
5c6fa7d2
RR
6459 echo "$as_me:6459: result: no" >&5
6460echo "${ECHO_T}no" >&6
10f2d63a 6461 fi
10f2d63a 6462
5c6fa7d2
RR
6463 echo "$as_me:6463: checking for --enable-listctrl" >&5
6464echo $ECHO_N "checking for --enable-listctrl... $ECHO_C" >&6
10f2d63a
VZ
6465 no_cache=0
6466 # Check whether --enable-listctrl or --disable-listctrl was given.
6467if test "${enable_listctrl+set}" = set; then
6468 enableval="$enable_listctrl"
5c6fa7d2 6469
10f2d63a
VZ
6470 if test "$enableval" = yes; then
6471 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6472 else
6473 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6474 fi
5c6fa7d2 6475
10f2d63a 6476else
5c6fa7d2 6477
10f2d63a
VZ
6478 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 6486
5c6fa7d2 6487fi;
10f2d63a
VZ
6488
6489 eval "$ac_cv_use_listctrl"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_LISTCTRL" = yes; then
5c6fa7d2
RR
6495 echo "$as_me:6495: result: yes" >&5
6496echo "${ECHO_T}yes" >&6
10f2d63a 6497 else
5c6fa7d2
RR
6498 echo "$as_me:6498: result: no" >&5
6499echo "${ECHO_T}no" >&6
10f2d63a 6500 fi
10f2d63a 6501
5c6fa7d2
RR
6502 echo "$as_me:6502: checking for --enable-notebook" >&5
6503echo $ECHO_N "checking for --enable-notebook... $ECHO_C" >&6
10f2d63a
VZ
6504 no_cache=0
6505 # Check whether --enable-notebook or --disable-notebook was given.
6506if test "${enable_notebook+set}" = set; then
6507 enableval="$enable_notebook"
5c6fa7d2 6508
10f2d63a
VZ
6509 if test "$enableval" = yes; then
6510 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6511 else
6512 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6513 fi
5c6fa7d2 6514
10f2d63a 6515else
5c6fa7d2 6516
10f2d63a
VZ
6517 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 6525
5c6fa7d2 6526fi;
10f2d63a
VZ
6527
6528 eval "$ac_cv_use_notebook"
6529 if test "$no_cache" != 1; then
6530 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6531 fi
6532
6533 if test "$wxUSE_NOTEBOOK" = yes; then
5c6fa7d2
RR
6534 echo "$as_me:6534: result: yes" >&5
6535echo "${ECHO_T}yes" >&6
10f2d63a 6536 else
5c6fa7d2
RR
6537 echo "$as_me:6537: result: no" >&5
6538echo "${ECHO_T}no" >&6
10f2d63a 6539 fi
10f2d63a 6540
5c6fa7d2
RR
6541 echo "$as_me:6541: checking for --enable-propsheet" >&5
6542echo $ECHO_N "checking for --enable-propsheet... $ECHO_C" >&6
24176f2c
GD
6543 no_cache=0
6544 # Check whether --enable-propsheet or --disable-propsheet was given.
6545if test "${enable_propsheet+set}" = set; then
6546 enableval="$enable_propsheet"
5c6fa7d2 6547
24176f2c
GD
6548 if test "$enableval" = yes; then
6549 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6550 else
6551 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6552 fi
5c6fa7d2 6553
24176f2c 6554else
5c6fa7d2 6555
24176f2c
GD
6556 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
6563 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
24176f2c 6564
5c6fa7d2 6565fi;
24176f2c
GD
6566
6567 eval "$ac_cv_use_propsheet"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_PROPSHEET" = yes; then
5c6fa7d2
RR
6573 echo "$as_me:6573: result: yes" >&5
6574echo "${ECHO_T}yes" >&6
24176f2c 6575 else
5c6fa7d2
RR
6576 echo "$as_me:6576: result: no" >&5
6577echo "${ECHO_T}no" >&6
24176f2c 6578 fi
24176f2c 6579
5c6fa7d2
RR
6580 echo "$as_me:6580: checking for --enable-radiobox" >&5
6581echo $ECHO_N "checking for --enable-radiobox... $ECHO_C" >&6
10f2d63a
VZ
6582 no_cache=0
6583 # Check whether --enable-radiobox or --disable-radiobox was given.
6584if test "${enable_radiobox+set}" = set; then
6585 enableval="$enable_radiobox"
5c6fa7d2 6586
10f2d63a
VZ
6587 if test "$enableval" = yes; then
6588 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6589 else
6590 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6591 fi
5c6fa7d2 6592
10f2d63a 6593else
5c6fa7d2 6594
10f2d63a
VZ
6595 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6596 if test "x$LINE" != x ; then
6597 eval "DEFAULT_$LINE"
6598 else
6599 no_cache=1
6600 fi
6601
6602 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 6603
5c6fa7d2 6604fi;
10f2d63a
VZ
6605
6606 eval "$ac_cv_use_radiobox"
6607 if test "$no_cache" != 1; then
6608 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6609 fi
6610
6611 if test "$wxUSE_RADIOBOX" = yes; then
5c6fa7d2
RR
6612 echo "$as_me:6612: result: yes" >&5
6613echo "${ECHO_T}yes" >&6
10f2d63a 6614 else
5c6fa7d2
RR
6615 echo "$as_me:6615: result: no" >&5
6616echo "${ECHO_T}no" >&6
10f2d63a 6617 fi
10f2d63a 6618
5c6fa7d2
RR
6619 echo "$as_me:6619: checking for --enable-radiobtn" >&5
6620echo $ECHO_N "checking for --enable-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
6621 no_cache=0
6622 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6623if test "${enable_radiobtn+set}" = set; then
6624 enableval="$enable_radiobtn"
5c6fa7d2 6625
10f2d63a
VZ
6626 if test "$enableval" = yes; then
6627 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6628 else
6629 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6630 fi
5c6fa7d2 6631
10f2d63a 6632else
5c6fa7d2 6633
10f2d63a
VZ
6634 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6635 if test "x$LINE" != x ; then
6636 eval "DEFAULT_$LINE"
6637 else
6638 no_cache=1
6639 fi
6640
6641 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 6642
5c6fa7d2 6643fi;
10f2d63a
VZ
6644
6645 eval "$ac_cv_use_radiobtn"
6646 if test "$no_cache" != 1; then
6647 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6648 fi
6649
6650 if test "$wxUSE_RADIOBTN" = yes; then
5c6fa7d2
RR
6651 echo "$as_me:6651: result: yes" >&5
6652echo "${ECHO_T}yes" >&6
10f2d63a 6653 else
5c6fa7d2
RR
6654 echo "$as_me:6654: result: no" >&5
6655echo "${ECHO_T}no" >&6
10f2d63a 6656 fi
10f2d63a 6657
5c6fa7d2
RR
6658 echo "$as_me:6658: checking for --enable-sash" >&5
6659echo $ECHO_N "checking for --enable-sash... $ECHO_C" >&6
10f2d63a
VZ
6660 no_cache=0
6661 # Check whether --enable-sash or --disable-sash was given.
6662if test "${enable_sash+set}" = set; then
6663 enableval="$enable_sash"
5c6fa7d2 6664
10f2d63a
VZ
6665 if test "$enableval" = yes; then
6666 ac_cv_use_sash='wxUSE_SASH=yes'
6667 else
6668 ac_cv_use_sash='wxUSE_SASH=no'
6669 fi
5c6fa7d2 6670
10f2d63a 6671else
5c6fa7d2 6672
10f2d63a
VZ
6673 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6674 if test "x$LINE" != x ; then
6675 eval "DEFAULT_$LINE"
6676 else
6677 no_cache=1
6678 fi
6679
6680 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 6681
5c6fa7d2 6682fi;
10f2d63a
VZ
6683
6684 eval "$ac_cv_use_sash"
6685 if test "$no_cache" != 1; then
6686 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6687 fi
6688
6689 if test "$wxUSE_SASH" = yes; then
5c6fa7d2
RR
6690 echo "$as_me:6690: result: yes" >&5
6691echo "${ECHO_T}yes" >&6
10f2d63a 6692 else
5c6fa7d2
RR
6693 echo "$as_me:6693: result: no" >&5
6694echo "${ECHO_T}no" >&6
10f2d63a 6695 fi
10f2d63a 6696
5c6fa7d2
RR
6697 echo "$as_me:6697: checking for --enable-scrollbar" >&5
6698echo $ECHO_N "checking for --enable-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
6699 no_cache=0
6700 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6701if test "${enable_scrollbar+set}" = set; then
6702 enableval="$enable_scrollbar"
5c6fa7d2 6703
10f2d63a
VZ
6704 if test "$enableval" = yes; then
6705 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6706 else
6707 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6708 fi
5c6fa7d2 6709
10f2d63a 6710else
5c6fa7d2 6711
10f2d63a
VZ
6712 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6713 if test "x$LINE" != x ; then
6714 eval "DEFAULT_$LINE"
6715 else
6716 no_cache=1
6717 fi
6718
6719 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 6720
5c6fa7d2 6721fi;
10f2d63a
VZ
6722
6723 eval "$ac_cv_use_scrollbar"
6724 if test "$no_cache" != 1; then
6725 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6726 fi
6727
6728 if test "$wxUSE_SCROLLBAR" = yes; then
5c6fa7d2
RR
6729 echo "$as_me:6729: result: yes" >&5
6730echo "${ECHO_T}yes" >&6
10f2d63a 6731 else
5c6fa7d2
RR
6732 echo "$as_me:6732: result: no" >&5
6733echo "${ECHO_T}no" >&6
10f2d63a 6734 fi
10f2d63a 6735
5c6fa7d2
RR
6736 echo "$as_me:6736: checking for --enable-slider" >&5
6737echo $ECHO_N "checking for --enable-slider... $ECHO_C" >&6
10f2d63a
VZ
6738 no_cache=0
6739 # Check whether --enable-slider or --disable-slider was given.
6740if test "${enable_slider+set}" = set; then
6741 enableval="$enable_slider"
5c6fa7d2 6742
10f2d63a
VZ
6743 if test "$enableval" = yes; then
6744 ac_cv_use_slider='wxUSE_SLIDER=yes'
6745 else
6746 ac_cv_use_slider='wxUSE_SLIDER=no'
6747 fi
5c6fa7d2 6748
10f2d63a 6749else
5c6fa7d2 6750
10f2d63a
VZ
6751 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 6759
5c6fa7d2 6760fi;
10f2d63a
VZ
6761
6762 eval "$ac_cv_use_slider"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6765 fi
6766
6767 if test "$wxUSE_SLIDER" = yes; then
5c6fa7d2
RR
6768 echo "$as_me:6768: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
10f2d63a 6770 else
5c6fa7d2
RR
6771 echo "$as_me:6771: result: no" >&5
6772echo "${ECHO_T}no" >&6
10f2d63a 6773 fi
10f2d63a 6774
5c6fa7d2
RR
6775 echo "$as_me:6775: checking for --enable-spinbtn" >&5
6776echo $ECHO_N "checking for --enable-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
6777 no_cache=0
6778 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6779if test "${enable_spinbtn+set}" = set; then
6780 enableval="$enable_spinbtn"
5c6fa7d2 6781
10f2d63a
VZ
6782 if test "$enableval" = yes; then
6783 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6784 else
6785 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6786 fi
5c6fa7d2 6787
10f2d63a 6788else
5c6fa7d2 6789
10f2d63a
VZ
6790 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 6798
5c6fa7d2 6799fi;
10f2d63a
VZ
6800
6801 eval "$ac_cv_use_spinbtn"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_SPINBTN" = yes; then
5c6fa7d2
RR
6807 echo "$as_me:6807: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
10f2d63a 6809 else
5c6fa7d2
RR
6810 echo "$as_me:6810: result: no" >&5
6811echo "${ECHO_T}no" >&6
10f2d63a 6812 fi
10f2d63a 6813
5c6fa7d2
RR
6814 echo "$as_me:6814: checking for --enable-spinctrl" >&5
6815echo $ECHO_N "checking for --enable-spinctrl... $ECHO_C" >&6
56cfaa52
RR
6816 no_cache=0
6817 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6818if test "${enable_spinctrl+set}" = set; then
6819 enableval="$enable_spinctrl"
5c6fa7d2 6820
56cfaa52
RR
6821 if test "$enableval" = yes; then
6822 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6823 else
6824 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6825 fi
5c6fa7d2 6826
56cfaa52 6827else
5c6fa7d2 6828
56cfaa52
RR
6829 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 6837
5c6fa7d2 6838fi;
56cfaa52
RR
6839
6840 eval "$ac_cv_use_spinctrl"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_SPINCTRL" = yes; then
5c6fa7d2
RR
6846 echo "$as_me:6846: result: yes" >&5
6847echo "${ECHO_T}yes" >&6
56cfaa52 6848 else
5c6fa7d2
RR
6849 echo "$as_me:6849: result: no" >&5
6850echo "${ECHO_T}no" >&6
56cfaa52 6851 fi
56cfaa52 6852
5c6fa7d2
RR
6853 echo "$as_me:6853: checking for --enable-splitter" >&5
6854echo $ECHO_N "checking for --enable-splitter... $ECHO_C" >&6
10f2d63a
VZ
6855 no_cache=0
6856 # Check whether --enable-splitter or --disable-splitter was given.
6857if test "${enable_splitter+set}" = set; then
6858 enableval="$enable_splitter"
5c6fa7d2 6859
10f2d63a
VZ
6860 if test "$enableval" = yes; then
6861 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6862 else
6863 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6864 fi
5c6fa7d2 6865
10f2d63a 6866else
5c6fa7d2 6867
10f2d63a
VZ
6868 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 6876
5c6fa7d2 6877fi;
10f2d63a
VZ
6878
6879 eval "$ac_cv_use_splitter"
6880 if test "$no_cache" != 1; then
6881 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6882 fi
6883
6884 if test "$wxUSE_SPLITTER" = yes; then
5c6fa7d2
RR
6885 echo "$as_me:6885: result: yes" >&5
6886echo "${ECHO_T}yes" >&6
10f2d63a 6887 else
5c6fa7d2
RR
6888 echo "$as_me:6888: result: no" >&5
6889echo "${ECHO_T}no" >&6
10f2d63a 6890 fi
10f2d63a 6891
5c6fa7d2
RR
6892 echo "$as_me:6892: checking for --enable-statbmp" >&5
6893echo $ECHO_N "checking for --enable-statbmp... $ECHO_C" >&6
10f2d63a
VZ
6894 no_cache=0
6895 # Check whether --enable-statbmp or --disable-statbmp was given.
6896if test "${enable_statbmp+set}" = set; then
6897 enableval="$enable_statbmp"
5c6fa7d2 6898
10f2d63a
VZ
6899 if test "$enableval" = yes; then
6900 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6901 else
6902 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6903 fi
5c6fa7d2 6904
10f2d63a 6905else
5c6fa7d2 6906
10f2d63a
VZ
6907 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 6915
5c6fa7d2 6916fi;
10f2d63a
VZ
6917
6918 eval "$ac_cv_use_statbmp"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_STATBMP" = yes; then
5c6fa7d2
RR
6924 echo "$as_me:6924: result: yes" >&5
6925echo "${ECHO_T}yes" >&6
10f2d63a 6926 else
5c6fa7d2
RR
6927 echo "$as_me:6927: result: no" >&5
6928echo "${ECHO_T}no" >&6
10f2d63a 6929 fi
10f2d63a 6930
5c6fa7d2
RR
6931 echo "$as_me:6931: checking for --enable-statbox" >&5
6932echo $ECHO_N "checking for --enable-statbox... $ECHO_C" >&6
10f2d63a
VZ
6933 no_cache=0
6934 # Check whether --enable-statbox or --disable-statbox was given.
6935if test "${enable_statbox+set}" = set; then
6936 enableval="$enable_statbox"
5c6fa7d2 6937
10f2d63a
VZ
6938 if test "$enableval" = yes; then
6939 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6940 else
6941 ac_cv_use_statbox='wxUSE_STATBOX=no'
6942 fi
5c6fa7d2 6943
10f2d63a 6944else
5c6fa7d2 6945
10f2d63a
VZ
6946 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6947 if test "x$LINE" != x ; then
6948 eval "DEFAULT_$LINE"
6949 else
6950 no_cache=1
6951 fi
6952
6953 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 6954
5c6fa7d2 6955fi;
10f2d63a
VZ
6956
6957 eval "$ac_cv_use_statbox"
6958 if test "$no_cache" != 1; then
6959 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6960 fi
6961
6962 if test "$wxUSE_STATBOX" = yes; then
5c6fa7d2
RR
6963 echo "$as_me:6963: result: yes" >&5
6964echo "${ECHO_T}yes" >&6
10f2d63a 6965 else
5c6fa7d2
RR
6966 echo "$as_me:6966: result: no" >&5
6967echo "${ECHO_T}no" >&6
10f2d63a 6968 fi
10f2d63a 6969
5c6fa7d2
RR
6970 echo "$as_me:6970: checking for --enable-statline" >&5
6971echo $ECHO_N "checking for --enable-statline... $ECHO_C" >&6
10f2d63a
VZ
6972 no_cache=0
6973 # Check whether --enable-statline or --disable-statline was given.
6974if test "${enable_statline+set}" = set; then
6975 enableval="$enable_statline"
5c6fa7d2 6976
10f2d63a
VZ
6977 if test "$enableval" = yes; then
6978 ac_cv_use_statline='wxUSE_STATLINE=yes'
6979 else
6980 ac_cv_use_statline='wxUSE_STATLINE=no'
6981 fi
5c6fa7d2 6982
10f2d63a 6983else
5c6fa7d2 6984
10f2d63a
VZ
6985 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 6993
5c6fa7d2 6994fi;
10f2d63a
VZ
6995
6996 eval "$ac_cv_use_statline"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATLINE" = yes; then
5c6fa7d2
RR
7002 echo "$as_me:7002: result: yes" >&5
7003echo "${ECHO_T}yes" >&6
10f2d63a 7004 else
5c6fa7d2
RR
7005 echo "$as_me:7005: result: no" >&5
7006echo "${ECHO_T}no" >&6
10f2d63a 7007 fi
10f2d63a 7008
5c6fa7d2
RR
7009 echo "$as_me:7009: checking for --enable-stattext" >&5
7010echo $ECHO_N "checking for --enable-stattext... $ECHO_C" >&6
1e6feb95
VZ
7011 no_cache=0
7012 # Check whether --enable-stattext or --disable-stattext was given.
7013if test "${enable_stattext+set}" = set; then
7014 enableval="$enable_stattext"
5c6fa7d2 7015
1e6feb95
VZ
7016 if test "$enableval" = yes; then
7017 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7018 else
7019 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7020 fi
5c6fa7d2 7021
1e6feb95 7022else
5c6fa7d2 7023
1e6feb95
VZ
7024 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7032
5c6fa7d2 7033fi;
1e6feb95
VZ
7034
7035 eval "$ac_cv_use_stattext"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_STATTEXT" = yes; then
5c6fa7d2
RR
7041 echo "$as_me:7041: result: yes" >&5
7042echo "${ECHO_T}yes" >&6
1e6feb95 7043 else
5c6fa7d2
RR
7044 echo "$as_me:7044: result: no" >&5
7045echo "${ECHO_T}no" >&6
1e6feb95 7046 fi
1e6feb95 7047
5c6fa7d2
RR
7048 echo "$as_me:7048: checking for --enable-statusbar" >&5
7049echo $ECHO_N "checking for --enable-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7050 no_cache=0
7051 # Check whether --enable-statusbar or --disable-statusbar was given.
7052if test "${enable_statusbar+set}" = set; then
7053 enableval="$enable_statusbar"
5c6fa7d2 7054
10f2d63a
VZ
7055 if test "$enableval" = yes; then
7056 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7057 else
7058 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7059 fi
5c6fa7d2 7060
10f2d63a 7061else
5c6fa7d2 7062
10f2d63a
VZ
7063 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7071
5c6fa7d2 7072fi;
10f2d63a
VZ
7073
7074 eval "$ac_cv_use_statusbar"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_STATUSBAR" = yes; then
5c6fa7d2
RR
7080 echo "$as_me:7080: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
10f2d63a 7082 else
5c6fa7d2
RR
7083 echo "$as_me:7083: result: no" >&5
7084echo "${ECHO_T}no" >&6
10f2d63a 7085 fi
10f2d63a 7086
5c6fa7d2
RR
7087 echo "$as_me:7087: checking for --enable-tabdialog" >&5
7088echo $ECHO_N "checking for --enable-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7089 no_cache=0
7090 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7091if test "${enable_tabdialog+set}" = set; then
7092 enableval="$enable_tabdialog"
5c6fa7d2 7093
10f2d63a
VZ
7094 if test "$enableval" = yes; then
7095 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7096 else
7097 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7098 fi
5c6fa7d2 7099
10f2d63a 7100else
5c6fa7d2 7101
10f2d63a
VZ
7102 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7103 if test "x$LINE" != x ; then
7104 eval "DEFAULT_$LINE"
7105 else
7106 no_cache=1
7107 fi
7108
7109 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7110
5c6fa7d2 7111fi;
10f2d63a
VZ
7112
7113 eval "$ac_cv_use_tabdialog"
7114 if test "$no_cache" != 1; then
7115 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7116 fi
7117
7118 if test "$wxUSE_TABDIALOG" = yes; then
5c6fa7d2
RR
7119 echo "$as_me:7119: result: yes" >&5
7120echo "${ECHO_T}yes" >&6
10f2d63a 7121 else
5c6fa7d2
RR
7122 echo "$as_me:7122: result: no" >&5
7123echo "${ECHO_T}no" >&6
10f2d63a 7124 fi
10f2d63a 7125
5c6fa7d2
RR
7126 echo "$as_me:7126: checking for --enable-textctrl" >&5
7127echo $ECHO_N "checking for --enable-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7128 no_cache=0
7129 # Check whether --enable-textctrl or --disable-textctrl was given.
7130if test "${enable_textctrl+set}" = set; then
7131 enableval="$enable_textctrl"
5c6fa7d2 7132
1e6feb95
VZ
7133 if test "$enableval" = yes; then
7134 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7135 else
7136 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7137 fi
5c6fa7d2 7138
1e6feb95 7139else
5c6fa7d2 7140
1e6feb95
VZ
7141 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7142 if test "x$LINE" != x ; then
7143 eval "DEFAULT_$LINE"
7144 else
7145 no_cache=1
7146 fi
7147
7148 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7149
5c6fa7d2 7150fi;
1e6feb95
VZ
7151
7152 eval "$ac_cv_use_textctrl"
7153 if test "$no_cache" != 1; then
7154 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7155 fi
7156
7157 if test "$wxUSE_TEXTCTRL" = yes; then
5c6fa7d2
RR
7158 echo "$as_me:7158: result: yes" >&5
7159echo "${ECHO_T}yes" >&6
1e6feb95 7160 else
5c6fa7d2
RR
7161 echo "$as_me:7161: result: no" >&5
7162echo "${ECHO_T}no" >&6
1e6feb95 7163 fi
1e6feb95 7164
5c6fa7d2
RR
7165 echo "$as_me:7165: checking for --enable-togglebtn" >&5
7166echo $ECHO_N "checking for --enable-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7167 no_cache=0
7168 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7169if test "${enable_togglebtn+set}" = set; then
7170 enableval="$enable_togglebtn"
5c6fa7d2 7171
1db8dc4a
VZ
7172 if test "$enableval" = yes; then
7173 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7174 else
7175 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7176 fi
5c6fa7d2 7177
1db8dc4a 7178else
5c6fa7d2 7179
1db8dc4a
VZ
7180 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7181 if test "x$LINE" != x ; then
7182 eval "DEFAULT_$LINE"
7183 else
7184 no_cache=1
7185 fi
7186
7187 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7188
5c6fa7d2 7189fi;
1db8dc4a
VZ
7190
7191 eval "$ac_cv_use_togglebtn"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_TOGGLEBTN" = yes; then
5c6fa7d2
RR
7197 echo "$as_me:7197: result: yes" >&5
7198echo "${ECHO_T}yes" >&6
1db8dc4a 7199 else
5c6fa7d2
RR
7200 echo "$as_me:7200: result: no" >&5
7201echo "${ECHO_T}no" >&6
1db8dc4a 7202 fi
1db8dc4a 7203
5c6fa7d2
RR
7204 echo "$as_me:7204: checking for --enable-toolbar" >&5
7205echo $ECHO_N "checking for --enable-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7206 no_cache=0
7207 # Check whether --enable-toolbar or --disable-toolbar was given.
7208if test "${enable_toolbar+set}" = set; then
7209 enableval="$enable_toolbar"
5c6fa7d2 7210
10f2d63a
VZ
7211 if test "$enableval" = yes; then
7212 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7213 else
7214 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7215 fi
5c6fa7d2 7216
10f2d63a 7217else
5c6fa7d2 7218
10f2d63a
VZ
7219 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7220 if test "x$LINE" != x ; then
7221 eval "DEFAULT_$LINE"
7222 else
7223 no_cache=1
7224 fi
7225
7226 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7227
5c6fa7d2 7228fi;
10f2d63a
VZ
7229
7230 eval "$ac_cv_use_toolbar"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7233 fi
7234
7235 if test "$wxUSE_TOOLBAR" = yes; then
5c6fa7d2
RR
7236 echo "$as_me:7236: result: yes" >&5
7237echo "${ECHO_T}yes" >&6
10f2d63a 7238 else
5c6fa7d2
RR
7239 echo "$as_me:7239: result: no" >&5
7240echo "${ECHO_T}no" >&6
10f2d63a 7241 fi
10f2d63a 7242
5c6fa7d2
RR
7243 echo "$as_me:7243: checking for --enable-tbarnative" >&5
7244echo $ECHO_N "checking for --enable-tbarnative... $ECHO_C" >&6
360d6699
VZ
7245 no_cache=0
7246 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7247if test "${enable_tbarnative+set}" = set; then
7248 enableval="$enable_tbarnative"
5c6fa7d2 7249
360d6699
VZ
7250 if test "$enableval" = yes; then
7251 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7252 else
7253 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7254 fi
5c6fa7d2 7255
360d6699 7256else
5c6fa7d2 7257
360d6699
VZ
7258 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7259 if test "x$LINE" != x ; then
7260 eval "DEFAULT_$LINE"
7261 else
7262 no_cache=1
7263 fi
7264
7265 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7266
5c6fa7d2 7267fi;
360d6699
VZ
7268
7269 eval "$ac_cv_use_tbarnative"
7270 if test "$no_cache" != 1; then
7271 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7272 fi
7273
7274 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5c6fa7d2
RR
7275 echo "$as_me:7275: result: yes" >&5
7276echo "${ECHO_T}yes" >&6
360d6699 7277 else
5c6fa7d2
RR
7278 echo "$as_me:7278: result: no" >&5
7279echo "${ECHO_T}no" >&6
360d6699 7280 fi
360d6699 7281
5c6fa7d2
RR
7282 echo "$as_me:7282: checking for --enable-tbarsmpl" >&5
7283echo $ECHO_N "checking for --enable-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7284 no_cache=0
7285 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7286if test "${enable_tbarsmpl+set}" = set; then
7287 enableval="$enable_tbarsmpl"
5c6fa7d2 7288
360d6699
VZ
7289 if test "$enableval" = yes; then
7290 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7291 else
7292 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7293 fi
5c6fa7d2 7294
360d6699 7295else
5c6fa7d2 7296
360d6699
VZ
7297 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7298 if test "x$LINE" != x ; then
7299 eval "DEFAULT_$LINE"
7300 else
7301 no_cache=1
7302 fi
7303
7304 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7305
5c6fa7d2 7306fi;
360d6699
VZ
7307
7308 eval "$ac_cv_use_tbarsmpl"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5c6fa7d2
RR
7314 echo "$as_me:7314: result: yes" >&5
7315echo "${ECHO_T}yes" >&6
360d6699 7316 else
5c6fa7d2
RR
7317 echo "$as_me:7317: result: no" >&5
7318echo "${ECHO_T}no" >&6
360d6699 7319 fi
360d6699 7320
5c6fa7d2
RR
7321 echo "$as_me:7321: checking for --enable-treectrl" >&5
7322echo $ECHO_N "checking for --enable-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7323 no_cache=0
7324 # Check whether --enable-treectrl or --disable-treectrl was given.
7325if test "${enable_treectrl+set}" = set; then
7326 enableval="$enable_treectrl"
5c6fa7d2 7327
10f2d63a
VZ
7328 if test "$enableval" = yes; then
7329 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7330 else
7331 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7332 fi
5c6fa7d2 7333
10f2d63a 7334else
5c6fa7d2 7335
10f2d63a
VZ
7336 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7337 if test "x$LINE" != x ; then
7338 eval "DEFAULT_$LINE"
7339 else
7340 no_cache=1
7341 fi
7342
7343 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7344
5c6fa7d2 7345fi;
10f2d63a 7346
1e6feb95
VZ
7347 eval "$ac_cv_use_treectrl"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_TREECTRL" = yes; then
5c6fa7d2
RR
7353 echo "$as_me:7353: result: yes" >&5
7354echo "${ECHO_T}yes" >&6
1e6feb95 7355 else
5c6fa7d2
RR
7356 echo "$as_me:7356: result: no" >&5
7357echo "${ECHO_T}no" >&6
1e6feb95 7358 fi
1e6feb95 7359
5c6fa7d2
RR
7360 echo "$as_me:7360: checking for --enable-tipwindow" >&5
7361echo $ECHO_N "checking for --enable-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
7362 no_cache=0
7363 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7364if test "${enable_tipwindow+set}" = set; then
7365 enableval="$enable_tipwindow"
5c6fa7d2 7366
9926e4a4
VZ
7367 if test "$enableval" = yes; then
7368 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7369 else
7370 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7371 fi
5c6fa7d2 7372
9926e4a4 7373else
5c6fa7d2 7374
9926e4a4
VZ
7375 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7376 if test "x$LINE" != x ; then
7377 eval "DEFAULT_$LINE"
7378 else
7379 no_cache=1
7380 fi
7381
7382 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 7383
5c6fa7d2 7384fi;
9926e4a4
VZ
7385
7386 eval "$ac_cv_use_tipwindow"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_TIPWINDOW" = yes; then
5c6fa7d2
RR
7392 echo "$as_me:7392: result: yes" >&5
7393echo "${ECHO_T}yes" >&6
9926e4a4 7394 else
5c6fa7d2
RR
7395 echo "$as_me:7395: result: no" >&5
7396echo "${ECHO_T}no" >&6
9926e4a4 7397 fi
9926e4a4 7398
5c6fa7d2
RR
7399 echo "$as_me:7399: checking for --enable-popupwin" >&5
7400echo $ECHO_N "checking for --enable-popupwin... $ECHO_C" >&6
9f41d601
RR
7401 no_cache=0
7402 # Check whether --enable-popupwin or --disable-popupwin was given.
7403if test "${enable_popupwin+set}" = set; then
7404 enableval="$enable_popupwin"
5c6fa7d2 7405
9f41d601
RR
7406 if test "$enableval" = yes; then
7407 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7408 else
7409 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7410 fi
5c6fa7d2 7411
9f41d601 7412else
5c6fa7d2 7413
9f41d601
RR
7414 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7415 if test "x$LINE" != x ; then
7416 eval "DEFAULT_$LINE"
7417 else
7418 no_cache=1
7419 fi
7420
7421 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 7422
5c6fa7d2 7423fi;
9f41d601
RR
7424
7425 eval "$ac_cv_use_popupwin"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_POPUPWIN" = yes; then
5c6fa7d2
RR
7431 echo "$as_me:7431: result: yes" >&5
7432echo "${ECHO_T}yes" >&6
9f41d601 7433 else
5c6fa7d2
RR
7434 echo "$as_me:7434: result: no" >&5
7435echo "${ECHO_T}no" >&6
9f41d601 7436 fi
52127426 7437
5c6fa7d2
RR
7438 echo "$as_me:7438: checking for --enable-commondlg" >&5
7439echo $ECHO_N "checking for --enable-commondlg... $ECHO_C" >&6
1e6feb95
VZ
7440 no_cache=0
7441 # Check whether --enable-commondlg or --disable-commondlg was given.
7442if test "${enable_commondlg+set}" = set; then
7443 enableval="$enable_commondlg"
5c6fa7d2 7444
1e6feb95
VZ
7445 if test "$enableval" = yes; then
7446 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7447 else
7448 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7449 fi
5c6fa7d2 7450
1e6feb95 7451else
5c6fa7d2 7452
1e6feb95
VZ
7453 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 7461
5c6fa7d2 7462fi;
1e6feb95
VZ
7463
7464 eval "$ac_cv_use_commondlg"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_COMMONDLGS" = yes; then
5c6fa7d2
RR
7470 echo "$as_me:7470: result: yes" >&5
7471echo "${ECHO_T}yes" >&6
1e6feb95 7472 else
5c6fa7d2
RR
7473 echo "$as_me:7473: result: no" >&5
7474echo "${ECHO_T}no" >&6
1e6feb95 7475 fi
1e6feb95 7476
5c6fa7d2
RR
7477 echo "$as_me:7477: checking for --enable-choicedlg" >&5
7478echo $ECHO_N "checking for --enable-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
7479 no_cache=0
7480 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7481if test "${enable_choicedlg+set}" = set; then
7482 enableval="$enable_choicedlg"
5c6fa7d2 7483
1e6feb95
VZ
7484 if test "$enableval" = yes; then
7485 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7486 else
7487 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7488 fi
5c6fa7d2 7489
1e6feb95 7490else
5c6fa7d2 7491
1e6feb95
VZ
7492 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7493 if test "x$LINE" != x ; then
7494 eval "DEFAULT_$LINE"
7495 else
7496 no_cache=1
7497 fi
7498
7499 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 7500
5c6fa7d2 7501fi;
1e6feb95
VZ
7502
7503 eval "$ac_cv_use_choicedlg"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_CHOICEDLG" = yes; then
5c6fa7d2
RR
7509 echo "$as_me:7509: result: yes" >&5
7510echo "${ECHO_T}yes" >&6
1e6feb95 7511 else
5c6fa7d2
RR
7512 echo "$as_me:7512: result: no" >&5
7513echo "${ECHO_T}no" >&6
1e6feb95 7514 fi
1e6feb95 7515
5c6fa7d2
RR
7516 echo "$as_me:7516: checking for --enable-coldlg" >&5
7517echo $ECHO_N "checking for --enable-coldlg... $ECHO_C" >&6
1e6feb95
VZ
7518 no_cache=0
7519 # Check whether --enable-coldlg or --disable-coldlg was given.
7520if test "${enable_coldlg+set}" = set; then
7521 enableval="$enable_coldlg"
5c6fa7d2 7522
1e6feb95
VZ
7523 if test "$enableval" = yes; then
7524 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7525 else
7526 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7527 fi
5c6fa7d2 7528
1e6feb95 7529else
5c6fa7d2 7530
1e6feb95
VZ
7531 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7532 if test "x$LINE" != x ; then
7533 eval "DEFAULT_$LINE"
7534 else
7535 no_cache=1
7536 fi
7537
7538 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 7539
5c6fa7d2 7540fi;
1e6feb95
VZ
7541
7542 eval "$ac_cv_use_coldlg"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_COLOURDLG" = yes; then
5c6fa7d2
RR
7548 echo "$as_me:7548: result: yes" >&5
7549echo "${ECHO_T}yes" >&6
1e6feb95 7550 else
5c6fa7d2
RR
7551 echo "$as_me:7551: result: no" >&5
7552echo "${ECHO_T}no" >&6
1e6feb95 7553 fi
1e6feb95 7554
5c6fa7d2
RR
7555 echo "$as_me:7555: checking for --enable-filedlg" >&5
7556echo $ECHO_N "checking for --enable-filedlg... $ECHO_C" >&6
1e6feb95
VZ
7557 no_cache=0
7558 # Check whether --enable-filedlg or --disable-filedlg was given.
7559if test "${enable_filedlg+set}" = set; then
7560 enableval="$enable_filedlg"
5c6fa7d2 7561
1e6feb95
VZ
7562 if test "$enableval" = yes; then
7563 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7564 else
7565 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7566 fi
5c6fa7d2 7567
1e6feb95 7568else
5c6fa7d2 7569
1e6feb95
VZ
7570 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7571 if test "x$LINE" != x ; then
7572 eval "DEFAULT_$LINE"
7573 else
7574 no_cache=1
7575 fi
7576
7577 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 7578
5c6fa7d2 7579fi;
1e6feb95
VZ
7580
7581 eval "$ac_cv_use_filedlg"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_FILEDLG" = yes; then
5c6fa7d2
RR
7587 echo "$as_me:7587: result: yes" >&5
7588echo "${ECHO_T}yes" >&6
1e6feb95 7589 else
5c6fa7d2
RR
7590 echo "$as_me:7590: result: no" >&5
7591echo "${ECHO_T}no" >&6
1e6feb95 7592 fi
1e6feb95 7593
5c6fa7d2
RR
7594 echo "$as_me:7594: checking for --enable-finddlg" >&5
7595echo $ECHO_N "checking for --enable-finddlg... $ECHO_C" >&6
8db37e06 7596 no_cache=0
69d27ff7
MB
7597 # Check whether --enable-finddlg or --disable-finddlg was given.
7598if test "${enable_finddlg+set}" = set; then
7599 enableval="$enable_finddlg"
5c6fa7d2 7600
8db37e06 7601 if test "$enableval" = yes; then
69d27ff7 7602 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7603 else
69d27ff7 7604 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 7605 fi
5c6fa7d2 7606
8db37e06 7607else
5c6fa7d2 7608
8db37e06
VZ
7609 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
69d27ff7 7616 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 7617
5c6fa7d2 7618fi;
8db37e06 7619
69d27ff7 7620 eval "$ac_cv_use_finddlg"
8db37e06 7621 if test "$no_cache" != 1; then
69d27ff7 7622 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7623 fi
7624
7625 if test "$wxUSE_FINDREPLDLG" = yes; then
5c6fa7d2
RR
7626 echo "$as_me:7626: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
8db37e06 7628 else
5c6fa7d2
RR
7629 echo "$as_me:7629: result: no" >&5
7630echo "${ECHO_T}no" >&6
8db37e06 7631 fi
8db37e06 7632
5c6fa7d2
RR
7633 echo "$as_me:7633: checking for --enable-fontdlg" >&5
7634echo $ECHO_N "checking for --enable-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
7635 no_cache=0
7636 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7637if test "${enable_fontdlg+set}" = set; then
7638 enableval="$enable_fontdlg"
5c6fa7d2 7639
1e6feb95
VZ
7640 if test "$enableval" = yes; then
7641 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7642 else
7643 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7644 fi
5c6fa7d2 7645
1e6feb95 7646else
5c6fa7d2 7647
1e6feb95
VZ
7648 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7649 if test "x$LINE" != x ; then
7650 eval "DEFAULT_$LINE"
7651 else
7652 no_cache=1
7653 fi
7654
7655 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 7656
5c6fa7d2 7657fi;
1e6feb95
VZ
7658
7659 eval "$ac_cv_use_fontdlg"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_FONTDLG" = yes; then
5c6fa7d2
RR
7665 echo "$as_me:7665: result: yes" >&5
7666echo "${ECHO_T}yes" >&6
1e6feb95 7667 else
5c6fa7d2
RR
7668 echo "$as_me:7668: result: no" >&5
7669echo "${ECHO_T}no" >&6
1e6feb95 7670 fi
1e6feb95 7671
5c6fa7d2
RR
7672 echo "$as_me:7672: checking for --enable-dirdlg" >&5
7673echo $ECHO_N "checking for --enable-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
7674 no_cache=0
7675 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7676if test "${enable_dirdlg+set}" = set; then
7677 enableval="$enable_dirdlg"
5c6fa7d2 7678
1e6feb95
VZ
7679 if test "$enableval" = yes; then
7680 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7681 else
7682 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7683 fi
5c6fa7d2 7684
1e6feb95 7685else
5c6fa7d2 7686
1e6feb95
VZ
7687 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 7695
5c6fa7d2 7696fi;
1e6feb95
VZ
7697
7698 eval "$ac_cv_use_dirdlg"
10f2d63a 7699 if test "$no_cache" != 1; then
1e6feb95 7700 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7701 fi
7702
1e6feb95 7703 if test "$wxUSE_DIRDLG" = yes; then
5c6fa7d2
RR
7704 echo "$as_me:7704: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
10f2d63a 7706 else
5c6fa7d2
RR
7707 echo "$as_me:7707: result: no" >&5
7708echo "${ECHO_T}no" >&6
10f2d63a 7709 fi
698dcdb6 7710
5c6fa7d2
RR
7711 echo "$as_me:7711: checking for --enable-msgdlg" >&5
7712echo $ECHO_N "checking for --enable-msgdlg... $ECHO_C" >&6
10f2d63a 7713 no_cache=0
1e6feb95
VZ
7714 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7715if test "${enable_msgdlg+set}" = set; then
7716 enableval="$enable_msgdlg"
5c6fa7d2 7717
10f2d63a 7718 if test "$enableval" = yes; then
1e6feb95 7719 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7720 else
1e6feb95 7721 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7722 fi
5c6fa7d2 7723
10f2d63a 7724else
5c6fa7d2 7725
1e6feb95 7726 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7727 if test "x$LINE" != x ; then
7728 eval "DEFAULT_$LINE"
7729 else
7730 no_cache=1
7731 fi
7732
1e6feb95 7733 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 7734
5c6fa7d2 7735fi;
10f2d63a 7736
1e6feb95 7737 eval "$ac_cv_use_msgdlg"
10f2d63a 7738 if test "$no_cache" != 1; then
1e6feb95 7739 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7740 fi
7741
1e6feb95 7742 if test "$wxUSE_MSGDLG" = yes; then
5c6fa7d2
RR
7743 echo "$as_me:7743: result: yes" >&5
7744echo "${ECHO_T}yes" >&6
10f2d63a 7745 else
5c6fa7d2
RR
7746 echo "$as_me:7746: result: no" >&5
7747echo "${ECHO_T}no" >&6
10f2d63a 7748 fi
10f2d63a 7749
5c6fa7d2
RR
7750 echo "$as_me:7750: checking for --enable-numberdlg" >&5
7751echo $ECHO_N "checking for --enable-numberdlg... $ECHO_C" >&6
10f2d63a 7752 no_cache=0
1e6feb95
VZ
7753 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7754if test "${enable_numberdlg+set}" = set; then
7755 enableval="$enable_numberdlg"
5c6fa7d2 7756
10f2d63a 7757 if test "$enableval" = yes; then
1e6feb95 7758 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7759 else
1e6feb95 7760 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7761 fi
5c6fa7d2 7762
10f2d63a 7763else
5c6fa7d2 7764
1e6feb95 7765 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
1e6feb95 7772 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 7773
5c6fa7d2 7774fi;
10f2d63a 7775
1e6feb95 7776 eval "$ac_cv_use_numberdlg"
10f2d63a 7777 if test "$no_cache" != 1; then
1e6feb95 7778 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7779 fi
7780
1e6feb95 7781 if test "$wxUSE_NUMBERDLG" = yes; then
5c6fa7d2
RR
7782 echo "$as_me:7782: result: yes" >&5
7783echo "${ECHO_T}yes" >&6
10f2d63a 7784 else
5c6fa7d2
RR
7785 echo "$as_me:7785: result: no" >&5
7786echo "${ECHO_T}no" >&6
10f2d63a 7787 fi
10f2d63a 7788
5c6fa7d2
RR
7789 echo "$as_me:7789: checking for --enable-splash" >&5
7790echo $ECHO_N "checking for --enable-splash... $ECHO_C" >&6
cbca9943
VZ
7791 no_cache=0
7792 # Check whether --enable-splash or --disable-splash was given.
7793if test "${enable_splash+set}" = set; then
7794 enableval="$enable_splash"
5c6fa7d2 7795
cbca9943
VZ
7796 if test "$enableval" = yes; then
7797 ac_cv_use_splash='wxUSE_SPLASH=yes'
7798 else
7799 ac_cv_use_splash='wxUSE_SPLASH=no'
7800 fi
5c6fa7d2 7801
cbca9943 7802else
5c6fa7d2 7803
cbca9943
VZ
7804 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 7812
5c6fa7d2 7813fi;
cbca9943
VZ
7814
7815 eval "$ac_cv_use_splash"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_SPLASH" = yes; then
5c6fa7d2
RR
7821 echo "$as_me:7821: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
cbca9943 7823 else
5c6fa7d2
RR
7824 echo "$as_me:7824: result: no" >&5
7825echo "${ECHO_T}no" >&6
cbca9943 7826 fi
cbca9943 7827
5c6fa7d2
RR
7828 echo "$as_me:7828: checking for --enable-textdlg" >&5
7829echo $ECHO_N "checking for --enable-textdlg... $ECHO_C" >&6
10f2d63a
VZ
7830 no_cache=0
7831 # Check whether --enable-textdlg or --disable-textdlg was given.
7832if test "${enable_textdlg+set}" = set; then
7833 enableval="$enable_textdlg"
5c6fa7d2 7834
10f2d63a
VZ
7835 if test "$enableval" = yes; then
7836 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7837 else
7838 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7839 fi
5c6fa7d2 7840
10f2d63a 7841else
5c6fa7d2 7842
10f2d63a
VZ
7843 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7844 if test "x$LINE" != x ; then
7845 eval "DEFAULT_$LINE"
7846 else
7847 no_cache=1
7848 fi
7849
7850 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 7851
5c6fa7d2 7852fi;
10f2d63a
VZ
7853
7854 eval "$ac_cv_use_textdlg"
7855 if test "$no_cache" != 1; then
7856 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7857 fi
7858
7859 if test "$wxUSE_TEXTDLG" = yes; then
5c6fa7d2
RR
7860 echo "$as_me:7860: result: yes" >&5
7861echo "${ECHO_T}yes" >&6
10f2d63a 7862 else
5c6fa7d2
RR
7863 echo "$as_me:7863: result: no" >&5
7864echo "${ECHO_T}no" >&6
10f2d63a 7865 fi
10f2d63a 7866
5c6fa7d2
RR
7867 echo "$as_me:7867: checking for --enable-tipdlg" >&5
7868echo $ECHO_N "checking for --enable-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
7869 no_cache=0
7870 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7871if test "${enable_tipdlg+set}" = set; then
7872 enableval="$enable_tipdlg"
5c6fa7d2 7873
10f2d63a
VZ
7874 if test "$enableval" = yes; then
7875 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7876 else
7877 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7878 fi
5c6fa7d2 7879
10f2d63a 7880else
5c6fa7d2 7881
10f2d63a
VZ
7882 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 7890
5c6fa7d2 7891fi;
10f2d63a
VZ
7892
7893 eval "$ac_cv_use_tipdlg"
7894 if test "$no_cache" != 1; then
7895 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7896 fi
7897
7898 if test "$wxUSE_STARTUP_TIPS" = yes; then
5c6fa7d2
RR
7899 echo "$as_me:7899: result: yes" >&5
7900echo "${ECHO_T}yes" >&6
10f2d63a 7901 else
5c6fa7d2
RR
7902 echo "$as_me:7902: result: no" >&5
7903echo "${ECHO_T}no" >&6
10f2d63a 7904 fi
10f2d63a 7905
5c6fa7d2
RR
7906 echo "$as_me:7906: checking for --enable-progressdlg" >&5
7907echo $ECHO_N "checking for --enable-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
7908 no_cache=0
7909 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7910if test "${enable_progressdlg+set}" = set; then
7911 enableval="$enable_progressdlg"
5c6fa7d2 7912
10f2d63a
VZ
7913 if test "$enableval" = yes; then
7914 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7915 else
7916 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7917 fi
5c6fa7d2 7918
10f2d63a 7919else
5c6fa7d2 7920
10f2d63a
VZ
7921 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 7929
5c6fa7d2 7930fi;
10f2d63a
VZ
7931
7932 eval "$ac_cv_use_progressdlg"
7933 if test "$no_cache" != 1; then
7934 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7935 fi
7936
7937 if test "$wxUSE_PROGRESSDLG" = yes; then
5c6fa7d2
RR
7938 echo "$as_me:7938: result: yes" >&5
7939echo "${ECHO_T}yes" >&6
10f2d63a 7940 else
5c6fa7d2
RR
7941 echo "$as_me:7941: result: no" >&5
7942echo "${ECHO_T}no" >&6
10f2d63a 7943 fi
10f2d63a 7944
5c6fa7d2
RR
7945 echo "$as_me:7945: checking for --enable-wizarddlg" >&5
7946echo $ECHO_N "checking for --enable-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
7947 no_cache=0
7948 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7949if test "${enable_wizarddlg+set}" = set; then
7950 enableval="$enable_wizarddlg"
5c6fa7d2 7951
b1f5d087
VZ
7952 if test "$enableval" = yes; then
7953 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7954 else
7955 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7956 fi
5c6fa7d2 7957
b1f5d087 7958else
5c6fa7d2 7959
b1f5d087
VZ
7960 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 7968
5c6fa7d2 7969fi;
b1f5d087
VZ
7970
7971 eval "$ac_cv_use_wizarddlg"
7972 if test "$no_cache" != 1; then
7973 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7974 fi
7975
7976 if test "$wxUSE_WIZARDDLG" = yes; then
5c6fa7d2
RR
7977 echo "$as_me:7977: result: yes" >&5
7978echo "${ECHO_T}yes" >&6
b1f5d087 7979 else
5c6fa7d2
RR
7980 echo "$as_me:7980: result: no" >&5
7981echo "${ECHO_T}no" >&6
b1f5d087 7982 fi
52127426 7983
5c6fa7d2
RR
7984 echo "$as_me:7984: checking for --enable-menus" >&5
7985echo $ECHO_N "checking for --enable-menus... $ECHO_C" >&6
1e6feb95
VZ
7986 no_cache=0
7987 # Check whether --enable-menus or --disable-menus was given.
7988if test "${enable_menus+set}" = set; then
7989 enableval="$enable_menus"
5c6fa7d2 7990
1e6feb95
VZ
7991 if test "$enableval" = yes; then
7992 ac_cv_use_menus='wxUSE_MENUS=yes'
7993 else
7994 ac_cv_use_menus='wxUSE_MENUS=no'
7995 fi
5c6fa7d2 7996
1e6feb95 7997else
5c6fa7d2 7998
1e6feb95
VZ
7999 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8000 if test "x$LINE" != x ; then
8001 eval "DEFAULT_$LINE"
8002 else
8003 no_cache=1
8004 fi
8005
8006 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8007
5c6fa7d2 8008fi;
1e6feb95
VZ
8009
8010 eval "$ac_cv_use_menus"
8011 if test "$no_cache" != 1; then
8012 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8013 fi
8014
8015 if test "$wxUSE_MENUS" = yes; then
5c6fa7d2
RR
8016 echo "$as_me:8016: result: yes" >&5
8017echo "${ECHO_T}yes" >&6
1e6feb95 8018 else
5c6fa7d2
RR
8019 echo "$as_me:8019: result: no" >&5
8020echo "${ECHO_T}no" >&6
1e6feb95 8021 fi
1e6feb95 8022
5c6fa7d2
RR
8023 echo "$as_me:8023: checking for --enable-miniframe" >&5
8024echo $ECHO_N "checking for --enable-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8025 no_cache=0
8026 # Check whether --enable-miniframe or --disable-miniframe was given.
8027if test "${enable_miniframe+set}" = set; then
8028 enableval="$enable_miniframe"
5c6fa7d2 8029
10f2d63a
VZ
8030 if test "$enableval" = yes; then
8031 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8032 else
8033 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8034 fi
5c6fa7d2 8035
10f2d63a 8036else
5c6fa7d2 8037
10f2d63a
VZ
8038 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8039 if test "x$LINE" != x ; then
8040 eval "DEFAULT_$LINE"
8041 else
8042 no_cache=1
8043 fi
8044
8045 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8046
5c6fa7d2 8047fi;
10f2d63a
VZ
8048
8049 eval "$ac_cv_use_miniframe"
8050 if test "$no_cache" != 1; then
8051 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8052 fi
8053
8054 if test "$wxUSE_MINIFRAME" = yes; then
5c6fa7d2
RR
8055 echo "$as_me:8055: result: yes" >&5
8056echo "${ECHO_T}yes" >&6
10f2d63a 8057 else
5c6fa7d2
RR
8058 echo "$as_me:8058: result: no" >&5
8059echo "${ECHO_T}no" >&6
10f2d63a 8060 fi
10f2d63a 8061
5c6fa7d2
RR
8062 echo "$as_me:8062: checking for --enable-tooltips" >&5
8063echo $ECHO_N "checking for --enable-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8064 no_cache=0
8065 # Check whether --enable-tooltips or --disable-tooltips was given.
8066if test "${enable_tooltips+set}" = set; then
8067 enableval="$enable_tooltips"
5c6fa7d2 8068
10f2d63a
VZ
8069 if test "$enableval" = yes; then
8070 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8071 else
8072 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8073 fi
5c6fa7d2 8074
10f2d63a 8075else
5c6fa7d2 8076
10f2d63a
VZ
8077 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8085
5c6fa7d2 8086fi;
10f2d63a
VZ
8087
8088 eval "$ac_cv_use_tooltips"
8089 if test "$no_cache" != 1; then
8090 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8091 fi
8092
8093 if test "$wxUSE_TOOLTIPS" = yes; then
5c6fa7d2
RR
8094 echo "$as_me:8094: result: yes" >&5
8095echo "${ECHO_T}yes" >&6
10f2d63a 8096 else
5c6fa7d2
RR
8097 echo "$as_me:8097: result: no" >&5
8098echo "${ECHO_T}no" >&6
10f2d63a 8099 fi
10f2d63a 8100
5c6fa7d2
RR
8101 echo "$as_me:8101: checking for --enable-splines" >&5
8102echo $ECHO_N "checking for --enable-splines... $ECHO_C" >&6
10f2d63a
VZ
8103 no_cache=0
8104 # Check whether --enable-splines or --disable-splines was given.
8105if test "${enable_splines+set}" = set; then
8106 enableval="$enable_splines"
5c6fa7d2 8107
10f2d63a
VZ
8108 if test "$enableval" = yes; then
8109 ac_cv_use_splines='wxUSE_SPLINES=yes'
8110 else
8111 ac_cv_use_splines='wxUSE_SPLINES=no'
8112 fi
5c6fa7d2 8113
10f2d63a 8114else
5c6fa7d2 8115
10f2d63a
VZ
8116 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8124
5c6fa7d2 8125fi;
10f2d63a
VZ
8126
8127 eval "$ac_cv_use_splines"
8128 if test "$no_cache" != 1; then
8129 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8130 fi
8131
8132 if test "$wxUSE_SPLINES" = yes; then
5c6fa7d2
RR
8133 echo "$as_me:8133: result: yes" >&5
8134echo "${ECHO_T}yes" >&6
10f2d63a 8135 else
5c6fa7d2
RR
8136 echo "$as_me:8136: result: no" >&5
8137echo "${ECHO_T}no" >&6
10f2d63a 8138 fi
10f2d63a 8139
5c6fa7d2
RR
8140 echo "$as_me:8140: checking for --enable-validators" >&5
8141echo $ECHO_N "checking for --enable-validators... $ECHO_C" >&6
10f2d63a
VZ
8142 no_cache=0
8143 # Check whether --enable-validators or --disable-validators was given.
8144if test "${enable_validators+set}" = set; then
8145 enableval="$enable_validators"
5c6fa7d2 8146
10f2d63a
VZ
8147 if test "$enableval" = yes; then
8148 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8149 else
8150 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8151 fi
5c6fa7d2 8152
10f2d63a 8153else
5c6fa7d2 8154
10f2d63a
VZ
8155 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8163
5c6fa7d2 8164fi;
10f2d63a
VZ
8165
8166 eval "$ac_cv_use_validators"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_VALIDATORS" = yes; then
5c6fa7d2
RR
8172 echo "$as_me:8172: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
10f2d63a 8174 else
5c6fa7d2
RR
8175 echo "$as_me:8175: result: no" >&5
8176echo "${ECHO_T}no" >&6
10f2d63a 8177 fi
10f2d63a 8178
5c6fa7d2
RR
8179 echo "$as_me:8179: checking for --enable-busyinfo" >&5
8180echo $ECHO_N "checking for --enable-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8181 no_cache=0
8182 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8183if test "${enable_busyinfo+set}" = set; then
8184 enableval="$enable_busyinfo"
5c6fa7d2 8185
10f2d63a
VZ
8186 if test "$enableval" = yes; then
8187 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8188 else
8189 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8190 fi
5c6fa7d2 8191
10f2d63a 8192else
5c6fa7d2 8193
10f2d63a
VZ
8194 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8202
5c6fa7d2 8203fi;
10f2d63a
VZ
8204
8205 eval "$ac_cv_use_busyinfo"
8206 if test "$no_cache" != 1; then
8207 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8208 fi
8209
8210 if test "$wxUSE_BUSYINFO" = yes; then
5c6fa7d2
RR
8211 echo "$as_me:8211: result: yes" >&5
8212echo "${ECHO_T}yes" >&6
10f2d63a 8213 else
5c6fa7d2
RR
8214 echo "$as_me:8214: result: no" >&5
8215echo "${ECHO_T}no" >&6
10f2d63a 8216 fi
10f2d63a 8217
5c6fa7d2
RR
8218 echo "$as_me:8218: checking for --enable-joystick" >&5
8219echo $ECHO_N "checking for --enable-joystick... $ECHO_C" >&6
f6bcfd97
BP
8220 no_cache=0
8221 # Check whether --enable-joystick or --disable-joystick was given.
8222if test "${enable_joystick+set}" = set; then
8223 enableval="$enable_joystick"
5c6fa7d2 8224
f6bcfd97
BP
8225 if test "$enableval" = yes; then
8226 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8227 else
8228 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8229 fi
5c6fa7d2 8230
f6bcfd97 8231else
5c6fa7d2 8232
f6bcfd97
BP
8233 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8234 if test "x$LINE" != x ; then
8235 eval "DEFAULT_$LINE"
8236 else
8237 no_cache=1
8238 fi
8239
8240 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8241
5c6fa7d2 8242fi;
f6bcfd97
BP
8243
8244 eval "$ac_cv_use_joystick"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_JOYSTICK" = yes; then
5c6fa7d2
RR
8250 echo "$as_me:8250: result: yes" >&5
8251echo "${ECHO_T}yes" >&6
f6bcfd97 8252 else
5c6fa7d2
RR
8253 echo "$as_me:8253: result: no" >&5
8254echo "${ECHO_T}no" >&6
f6bcfd97 8255 fi
698dcdb6 8256
5c6fa7d2
RR
8257 echo "$as_me:8257: checking for --enable-metafile" >&5
8258echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6
1e6feb95
VZ
8259 no_cache=0
8260 # Check whether --enable-metafile or --disable-metafile was given.
8261if test "${enable_metafile+set}" = set; then
8262 enableval="$enable_metafile"
5c6fa7d2 8263
1e6feb95
VZ
8264 if test "$enableval" = yes; then
8265 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8266 else
8267 ac_cv_use_metafile='wxUSE_METAFILE=no'
8268 fi
5c6fa7d2 8269
1e6feb95 8270else
5c6fa7d2 8271
1e6feb95
VZ
8272 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8280
5c6fa7d2 8281fi;
1e6feb95
VZ
8282
8283 eval "$ac_cv_use_metafile"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_METAFILE" = yes; then
5c6fa7d2
RR
8289 echo "$as_me:8289: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
1e6feb95 8291 else
5c6fa7d2
RR
8292 echo "$as_me:8292: result: no" >&5
8293echo "${ECHO_T}no" >&6
1e6feb95 8294 fi
1e6feb95 8295
5c6fa7d2
RR
8296 echo "$as_me:8296: checking for --enable-dragimage" >&5
8297echo $ECHO_N "checking for --enable-dragimage... $ECHO_C" >&6
24fd6d87
VZ
8298 no_cache=0
8299 # Check whether --enable-dragimage or --disable-dragimage was given.
8300if test "${enable_dragimage+set}" = set; then
8301 enableval="$enable_dragimage"
5c6fa7d2 8302
24fd6d87
VZ
8303 if test "$enableval" = yes; then
8304 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8305 else
8306 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8307 fi
5c6fa7d2 8308
24fd6d87 8309else
5c6fa7d2 8310
24fd6d87
VZ
8311 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8312 if test "x$LINE" != x ; then
8313 eval "DEFAULT_$LINE"
8314 else
8315 no_cache=1
8316 fi
8317
8318 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 8319
5c6fa7d2 8320fi;
24fd6d87
VZ
8321
8322 eval "$ac_cv_use_dragimage"
8323 if test "$no_cache" != 1; then
8324 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8325 fi
8326
8327 if test "$wxUSE_DRAGIMAGE" = yes; then
5c6fa7d2
RR
8328 echo "$as_me:8328: result: yes" >&5
8329echo "${ECHO_T}yes" >&6
24fd6d87 8330 else
5c6fa7d2
RR
8331 echo "$as_me:8331: result: no" >&5
8332echo "${ECHO_T}no" >&6
24fd6d87 8333 fi
52127426 8334
5c6fa7d2
RR
8335 echo "$as_me:8335: checking for --enable-palette" >&5
8336echo $ECHO_N "checking for --enable-palette... $ECHO_C" >&6
edae8572
VZ
8337 no_cache=0
8338 # Check whether --enable-palette or --disable-palette was given.
8339if test "${enable_palette+set}" = set; then
8340 enableval="$enable_palette"
5c6fa7d2 8341
edae8572
VZ
8342 if test "$enableval" = yes; then
8343 ac_cv_use_palette='wxUSE_PALETTE=yes'
8344 else
8345 ac_cv_use_palette='wxUSE_PALETTE=no'
8346 fi
5c6fa7d2 8347
edae8572 8348else
5c6fa7d2 8349
edae8572
VZ
8350 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 8358
5c6fa7d2 8359fi;
edae8572
VZ
8360
8361 eval "$ac_cv_use_palette"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_PALETTE" = yes; then
5c6fa7d2
RR
8367 echo "$as_me:8367: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
edae8572 8369 else
5c6fa7d2
RR
8370 echo "$as_me:8370: result: no" >&5
8371echo "${ECHO_T}no" >&6
edae8572 8372 fi
edae8572 8373
5c6fa7d2
RR
8374 echo "$as_me:8374: checking for --enable-image" >&5
8375echo $ECHO_N "checking for --enable-image... $ECHO_C" >&6
0046ff7c
VS
8376 no_cache=0
8377 # Check whether --enable-image or --disable-image was given.
8378if test "${enable_image+set}" = set; then
8379 enableval="$enable_image"
5c6fa7d2 8380
0046ff7c
VS
8381 if test "$enableval" = yes; then
8382 ac_cv_use_image='wxUSE_IMAGE=yes'
8383 else
8384 ac_cv_use_image='wxUSE_IMAGE=no'
8385 fi
5c6fa7d2 8386
0046ff7c 8387else
5c6fa7d2 8388
0046ff7c
VS
8389 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8390 if test "x$LINE" != x ; then
8391 eval "DEFAULT_$LINE"
8392 else
8393 no_cache=1
8394 fi
8395
8396 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 8397
5c6fa7d2 8398fi;
0046ff7c
VS
8399
8400 eval "$ac_cv_use_image"
8401 if test "$no_cache" != 1; then
8402 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8403 fi
8404
8405 if test "$wxUSE_IMAGE" = yes; then
5c6fa7d2
RR
8406 echo "$as_me:8406: result: yes" >&5
8407echo "${ECHO_T}yes" >&6
0046ff7c 8408 else
5c6fa7d2
RR
8409 echo "$as_me:8409: result: no" >&5
8410echo "${ECHO_T}no" >&6
0046ff7c 8411 fi
0046ff7c 8412
5c6fa7d2
RR
8413 echo "$as_me:8413: checking for --enable-gif" >&5
8414echo $ECHO_N "checking for --enable-gif... $ECHO_C" >&6
10f2d63a
VZ
8415 no_cache=0
8416 # Check whether --enable-gif or --disable-gif was given.
8417if test "${enable_gif+set}" = set; then
8418 enableval="$enable_gif"
5c6fa7d2 8419
10f2d63a
VZ
8420 if test "$enableval" = yes; then
8421 ac_cv_use_gif='wxUSE_GIF=yes'
8422 else
8423 ac_cv_use_gif='wxUSE_GIF=no'
8424 fi
5c6fa7d2 8425
10f2d63a 8426else
5c6fa7d2 8427
10f2d63a
VZ
8428 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8429 if test "x$LINE" != x ; then
8430 eval "DEFAULT_$LINE"
8431 else
8432 no_cache=1
8433 fi
8434
8435 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 8436
5c6fa7d2 8437fi;
10f2d63a
VZ
8438
8439 eval "$ac_cv_use_gif"
8440 if test "$no_cache" != 1; then
8441 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8442 fi
8443
8444 if test "$wxUSE_GIF" = yes; then
5c6fa7d2
RR
8445 echo "$as_me:8445: result: yes" >&5
8446echo "${ECHO_T}yes" >&6
10f2d63a 8447 else
5c6fa7d2
RR
8448 echo "$as_me:8448: result: no" >&5
8449echo "${ECHO_T}no" >&6
10f2d63a 8450 fi
10f2d63a 8451
5c6fa7d2
RR
8452 echo "$as_me:8452: checking for --enable-pcx" >&5
8453echo $ECHO_N "checking for --enable-pcx... $ECHO_C" >&6
10f2d63a
VZ
8454 no_cache=0
8455 # Check whether --enable-pcx or --disable-pcx was given.
8456if test "${enable_pcx+set}" = set; then
8457 enableval="$enable_pcx"
5c6fa7d2 8458
10f2d63a
VZ
8459 if test "$enableval" = yes; then
8460 ac_cv_use_pcx='wxUSE_PCX=yes'
8461 else
8462 ac_cv_use_pcx='wxUSE_PCX=no'
8463 fi
5c6fa7d2 8464
10f2d63a 8465else
5c6fa7d2 8466
10f2d63a
VZ
8467 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8468 if test "x$LINE" != x ; then
8469 eval "DEFAULT_$LINE"
8470 else
8471 no_cache=1
8472 fi
8473
8474 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 8475
5c6fa7d2 8476fi;
10f2d63a
VZ
8477
8478 eval "$ac_cv_use_pcx"
8479 if test "$no_cache" != 1; then
8480 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8481 fi
8482
8483 if test "$wxUSE_PCX" = yes; then
5c6fa7d2
RR
8484 echo "$as_me:8484: result: yes" >&5
8485echo "${ECHO_T}yes" >&6
10f2d63a 8486 else
5c6fa7d2
RR
8487 echo "$as_me:8487: result: no" >&5
8488echo "${ECHO_T}no" >&6
10f2d63a 8489 fi
10f2d63a 8490
5c6fa7d2
RR
8491 echo "$as_me:8491: checking for --enable-iff" >&5
8492echo $ECHO_N "checking for --enable-iff... $ECHO_C" >&6
4b6b4dfc
RR
8493 no_cache=0
8494 # Check whether --enable-iff or --disable-iff was given.
8495if test "${enable_iff+set}" = set; then
8496 enableval="$enable_iff"
5c6fa7d2 8497
4b6b4dfc
RR
8498 if test "$enableval" = yes; then
8499 ac_cv_use_iff='wxUSE_IFF=yes'
8500 else
8501 ac_cv_use_iff='wxUSE_IFF=no'
8502 fi
5c6fa7d2 8503
4b6b4dfc 8504else
5c6fa7d2 8505
4b6b4dfc
RR
8506 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 8514
5c6fa7d2 8515fi;
4b6b4dfc
RR
8516
8517 eval "$ac_cv_use_iff"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_IFF" = yes; then
5c6fa7d2
RR
8523 echo "$as_me:8523: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
4b6b4dfc 8525 else
5c6fa7d2
RR
8526 echo "$as_me:8526: result: no" >&5
8527echo "${ECHO_T}no" >&6
4b6b4dfc 8528 fi
4b6b4dfc 8529
5c6fa7d2
RR
8530 echo "$as_me:8530: checking for --enable-pnm" >&5
8531echo $ECHO_N "checking for --enable-pnm... $ECHO_C" >&6
10f2d63a
VZ
8532 no_cache=0
8533 # Check whether --enable-pnm or --disable-pnm was given.
8534if test "${enable_pnm+set}" = set; then
8535 enableval="$enable_pnm"
5c6fa7d2 8536
10f2d63a
VZ
8537 if test "$enableval" = yes; then
8538 ac_cv_use_pnm='wxUSE_PNM=yes'
8539 else
8540 ac_cv_use_pnm='wxUSE_PNM=no'
8541 fi
5c6fa7d2 8542
10f2d63a 8543else
5c6fa7d2 8544
10f2d63a
VZ
8545 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 8553
5c6fa7d2 8554fi;
10f2d63a
VZ
8555
8556 eval "$ac_cv_use_pnm"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_PNM" = yes; then
5c6fa7d2
RR
8562 echo "$as_me:8562: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
10f2d63a 8564 else
5c6fa7d2
RR
8565 echo "$as_me:8565: result: no" >&5
8566echo "${ECHO_T}no" >&6
10f2d63a 8567 fi
10f2d63a 8568
5c6fa7d2
RR
8569 echo "$as_me:8569: checking for --enable-xpm" >&5
8570echo $ECHO_N "checking for --enable-xpm... $ECHO_C" >&6
0046ff7c 8571 no_cache=0
69d27ff7
MB
8572 # Check whether --enable-xpm or --disable-xpm was given.
8573if test "${enable_xpm+set}" = set; then
8574 enableval="$enable_xpm"
5c6fa7d2 8575
0046ff7c 8576 if test "$enableval" = yes; then
69d27ff7 8577 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8578 else
69d27ff7 8579 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8580 fi
5c6fa7d2 8581
0046ff7c 8582else
5c6fa7d2 8583
0046ff7c
VS
8584 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
69d27ff7 8591 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 8592
5c6fa7d2 8593fi;
0046ff7c 8594
69d27ff7 8595 eval "$ac_cv_use_xpm"
0046ff7c 8596 if test "$no_cache" != 1; then
69d27ff7 8597 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8598 fi
8599
8600 if test "$wxUSE_XPM" = yes; then
5c6fa7d2
RR
8601 echo "$as_me:8601: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
0046ff7c 8603 else
5c6fa7d2
RR
8604 echo "$as_me:8604: result: no" >&5
8605echo "${ECHO_T}no" >&6
0046ff7c 8606 fi
0046ff7c 8607
5c6fa7d2
RR
8608 echo "$as_me:8608: checking for --enable-ico_cur" >&5
8609echo $ECHO_N "checking for --enable-ico_cur... $ECHO_C" >&6
658974ae 8610 no_cache=0
c7206e64
VS
8611 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8612if test "${enable_ico_cur+set}" = set; then
8613 enableval="$enable_ico_cur"
5c6fa7d2 8614
658974ae 8615 if test "$enableval" = yes; then
c7206e64 8616 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8617 else
c7206e64 8618 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 8619 fi
5c6fa7d2 8620
658974ae 8621else
5c6fa7d2 8622
658974ae
VS
8623 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
c7206e64 8630 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 8631
5c6fa7d2 8632fi;
658974ae 8633
c7206e64 8634 eval "$ac_cv_use_ico_cur"
658974ae 8635 if test "$no_cache" != 1; then
c7206e64 8636 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8637 fi
8638
8639 if test "$wxUSE_ICO_CUR" = yes; then
5c6fa7d2
RR
8640 echo "$as_me:8640: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
658974ae 8642 else
5c6fa7d2
RR
8643 echo "$as_me:8643: result: no" >&5
8644echo "${ECHO_T}no" >&6
658974ae 8645 fi
658974ae 8646
b12915c1
VZ
8647fi
8648
d558c907
VS
8649case "${host}" in
8650 *-pc-os2_emx | *-pc-os2-emx )
8651 LEX_STEM="lexyy"
8652 ;;
8653 *)
8654 PATH_IFS=':'
8655 LEX_STEM="lex.yy"
8656 ;;
8657esac
8658
10f2d63a
VZ
8659 echo "saving argument cache $wx_arg_cache_file"
8660 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 8661
5c6fa7d2
RR
8662echo "$as_me:8662: checking for toolkit" >&5
8663echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10f2d63a
VZ
8664
8665if test "$wxUSE_GUI" = "yes"; then
8666
3a922bb4 8667 if test "$USE_BEOS" = 1; then
5c6fa7d2
RR
8668 { { echo "$as_me:8668: error: BeOS GUI is not supported yet, use --disable-gui" >&5
8669echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
8670 { (exit 1); exit 1; }; }
3a922bb4 8671 fi
b12915c1 8672
3a922bb4
RL
8673 if test "$TOOLKIT_GIVEN" = 1; then
8674 for toolkit in `echo $ALL_TOOLKITS`; do
8675 var=wxUSE_$toolkit
8676 eval "value=\$${var}"
8677 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8678 done
10f2d63a 8679 else
3a922bb4
RL
8680 for toolkit in `echo $ALL_TOOLKITS`; do
8681 if test "$has_toolkit_in_cache" != 1; then
8682 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8683 else
8684 var=DEFAULT_wxUSE_$toolkit
8685 fi
8686 eval "wxUSE_$toolkit=\$${var}"
8687 done
10f2d63a 8688 fi
10f2d63a 8689
3a922bb4 8690 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8691 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8692
d558c907 8693 case "${host}" in
6fa882bd 8694 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8695 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8696 esac
10f2d63a 8697
3a922bb4
RL
8698 case "$NUM_TOOLKITS" in
8699 1)
8700 ;;
8701 0)
5c6fa7d2
RR
8702 { { echo "$as_me:8702: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
8703echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
8704 { (exit 1); exit 1; }; }
3a922bb4
RL
8705 ;;
8706 *)
5c6fa7d2
RR
8707 { { echo "$as_me:8707: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
8708echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
8709 { (exit 1); exit 1; }; }
3a922bb4 8710 esac
10f2d63a 8711
3a922bb4
RL
8712 for toolkit in `echo $ALL_TOOLKITS`; do
8713 var=wxUSE_$toolkit
8714 eval "value=\$${var}"
8715 if test "x$value" != x; then
8716 cache_var=CACHE_$toolkit
8717 eval "cache=\$${cache_var}"
8718 if test "$cache" = 1; then
8719 echo "$var=$value" >> ${wx_arg_cache_file}
8720 fi
8721 if test "$value" = 1; then
8722 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
5c6fa7d2
RR
8723 echo "$as_me:8723: result: $toolkit_echo" >&5
8724echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
8725 fi
8726 fi
8727 done
10f2d63a 8728else
5c6fa7d2
RR
8729 echo "$as_me:8729: result: base ($host_alias hosted) only" >&5
8730echo "${ECHO_T}base ($host_alias hosted) only" >&6
10f2d63a
VZ
8731fi
8732
43d99b6d
VS
8733wants_win32=0
8734doesnt_want_win32=0
17234b26
MB
8735case "${host}" in
8736 *-*-cygwin*)
8737 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
8738 wants_win32=1
8739 else
8740 doesnt_want_win32=1
17234b26
MB
8741 fi
8742 ;;
8743 *-*-mingw*)
43d99b6d 8744 wants_win32=1
17234b26
MB
8745 ;;
8746esac
8747
43d99b6d 8748if test "$wants_win32" = 1 ; then
17234b26
MB
8749 USE_UNIX=0
8750 USE_WIN32=1
5c6fa7d2 8751 cat >>confdefs.h <<\EOF
17234b26
MB
8752#define __WIN32__ 1
8753EOF
8754
5c6fa7d2 8755 cat >>confdefs.h <<\EOF
17234b26
MB
8756#define __WIN95__ 1
8757EOF
8758
5c6fa7d2 8759 cat >>confdefs.h <<\EOF
17234b26
MB
8760#define __WINDOWS__ 1
8761EOF
8762
5c6fa7d2 8763 cat >>confdefs.h <<\EOF
17234b26
MB
8764#define __GNUWIN32__ 1
8765EOF
8766
5c6fa7d2 8767 cat >>confdefs.h <<\EOF
17234b26
MB
8768#define STRICT 1
8769EOF
8770
5c6fa7d2 8771 cat >>confdefs.h <<\EOF
17234b26
MB
8772#define WINVER 0x0400
8773EOF
8774
43d99b6d
VS
8775fi
8776if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
8777 USE_UNIX=1
8778 USE_WIN32=0
8779fi
8780
8781if test "$USE_UNIX" = 1 ; then
8782 wxUSE_UNIX=yes
5c6fa7d2 8783 cat >>confdefs.h <<\EOF
17234b26
MB
8784#define __UNIX__ 1
8785EOF
8786
8787fi
8788
5c6fa7d2 8789cat >confcache <<\_ACEOF
10f2d63a
VZ
8790# This file is a shell script that caches the results of configure
8791# tests run on this system so they can be shared between configure
5c6fa7d2
RR
8792# scripts and configure runs, see configure's option --config-cache.
8793# It is not useful on other systems. If it contains results you don't
8794# want to keep, you may remove or edit it.
10f2d63a 8795#
5c6fa7d2
RR
8796# config.status only pays attention to the cache file if you give it
8797# the --recheck option to rerun configure.
10f2d63a 8798#
5c6fa7d2
RR
8799# `ac_cv_env_foo' variables (set or unset) will be overriden when
8800# loading this file, other *unset* `ac_cv_foo' will be assigned the
8801# following values.
8802
8803_ACEOF
8804
10f2d63a
VZ
8805# The following way of writing the cache mishandles newlines in values,
8806# but we know of no workaround that is simple, portable, and efficient.
8807# So, don't put newlines in cache variables' values.
8808# Ultrix sh set writes to stderr and can't be redirected directly,
8809# and sets the high bit in the cache file unless we assign to the vars.
5c6fa7d2
RR
8810{
8811 (set) 2>&1 |
8812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8813 *ac_space=\ *)
8814 # `set' does not quote correctly, so add quotes (double-quote
8815 # substitution turns \\\\ into \\, and sed turns \\ into \).
8816 sed -n \
8817 "s/'/'\\\\''/g;
8818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8819 ;;
8820 *)
8821 # `set' quotes correctly as required by POSIX, so do not add quotes.
8822 sed -n \
8823 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8824 ;;
8825 esac;
8826} |
8827 sed '
8828 t clear
8829 : clear
8830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8831 t end
8832 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8833 : end' >>confcache
8834if cmp -s $cache_file confcache; then :; else
10f2d63a 8835 if test -w $cache_file; then
5c6fa7d2
RR
8836 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8837 cat confcache >$cache_file
10f2d63a
VZ
8838 else
8839 echo "not updating unwritable cache $cache_file"
8840 fi
8841fi
8842rm -f confcache
8843
e59890c3 8844if test "$build" != "$host" ; then
9d353d4a 8845 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8846 CC=$host_alias-gcc
8847 CXX=$host_alias-c++
8848 AR=$host_alias-ar
8849 RANLIB=$host_alias-ranlib
8850 DLLTOOL=$host_alias-dlltool
8851 RESCOMP=$host_alias-windres
8852 LD=$host_alias-ld
8853 NM=$host_alias-nm
8854 STRIP=$host_alias-strip
8855 else
5c6fa7d2
RR
8856 { { echo "$as_me:8856: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
8857echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
8858 { (exit 1); exit 1; }; }
3a922bb4 8859 fi
10f2d63a
VZ
8860fi
8861
ec603395 8862CFLAGS=${CFLAGS:=}
5c6fa7d2
RR
8863ac_ext=c
8864ac_cpp='$CPP $CPPFLAGS'
8865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8867ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868if test -n "$ac_tool_prefix"; then
8869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8870set dummy ${ac_tool_prefix}gcc; ac_word=$2
8871echo "$as_me:8871: checking for $ac_word" >&5
8872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8873if test "${ac_cv_prog_CC+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
8875else
8876 if test -n "$CC"; then
8877 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8878else
5c6fa7d2
RR
8879 ac_save_IFS=$IFS; IFS=$ac_path_separator
8880ac_dummy="$PATH"
8881for ac_dir in $ac_dummy; do
8882 IFS=$ac_save_IFS
8883 test -z "$ac_dir" && ac_dir=.
8884 $as_executable_p "$ac_dir/$ac_word" || continue
8885ac_cv_prog_CC="${ac_tool_prefix}gcc"
8886echo "$as_me:8886: found $ac_dir/$ac_word" >&5
8887break
8888done
8889
10f2d63a 8890fi
6232543b 8891fi
5c6fa7d2 8892CC=$ac_cv_prog_CC
6232543b 8893if test -n "$CC"; then
5c6fa7d2
RR
8894 echo "$as_me:8894: result: $CC" >&5
8895echo "${ECHO_T}$CC" >&6
1e487827 8896else
5c6fa7d2
RR
8897 echo "$as_me:8897: result: no" >&5
8898echo "${ECHO_T}no" >&6
8899fi
8900
8901fi
8902if test -z "$ac_cv_prog_CC"; then
8903 ac_ct_CC=$CC
8904 # Extract the first word of "gcc", so it can be a program name with args.
8905set dummy gcc; ac_word=$2
8906echo "$as_me:8906: checking for $ac_word" >&5
8907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8908if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 if test -n "$ac_ct_CC"; then
8912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8913else
8914 ac_save_IFS=$IFS; IFS=$ac_path_separator
8915ac_dummy="$PATH"
8916for ac_dir in $ac_dummy; do
8917 IFS=$ac_save_IFS
8918 test -z "$ac_dir" && ac_dir=.
8919 $as_executable_p "$ac_dir/$ac_word" || continue
8920ac_cv_prog_ac_ct_CC="gcc"
8921echo "$as_me:8921: found $ac_dir/$ac_word" >&5
8922break
8923done
8924
8925fi
8926fi
8927ac_ct_CC=$ac_cv_prog_ac_ct_CC
8928if test -n "$ac_ct_CC"; then
8929 echo "$as_me:8929: result: $ac_ct_CC" >&5
8930echo "${ECHO_T}$ac_ct_CC" >&6
8931else
8932 echo "$as_me:8932: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934fi
8935
8936 CC=$ac_ct_CC
8937else
8938 CC="$ac_cv_prog_CC"
1e487827 8939fi
6232543b 8940
1e487827 8941if test -z "$CC"; then
5c6fa7d2
RR
8942 if test -n "$ac_tool_prefix"; then
8943 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8944set dummy ${ac_tool_prefix}cc; ac_word=$2
8945echo "$as_me:8945: checking for $ac_word" >&5
8946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8947if test "${ac_cv_prog_CC+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f
RR
8949else
8950 if test -n "$CC"; then
8951 ac_cv_prog_CC="$CC" # Let the user override the test.
8952else
5c6fa7d2
RR
8953 ac_save_IFS=$IFS; IFS=$ac_path_separator
8954ac_dummy="$PATH"
8955for ac_dir in $ac_dummy; do
8956 IFS=$ac_save_IFS
8957 test -z "$ac_dir" && ac_dir=.
8958 $as_executable_p "$ac_dir/$ac_word" || continue
8959ac_cv_prog_CC="${ac_tool_prefix}cc"
8960echo "$as_me:8960: found $ac_dir/$ac_word" >&5
8961break
8962done
8963
8964fi
8965fi
8966CC=$ac_cv_prog_CC
8967if test -n "$CC"; then
8968 echo "$as_me:8968: result: $CC" >&5
8969echo "${ECHO_T}$CC" >&6
8970else
8971 echo "$as_me:8971: result: no" >&5
8972echo "${ECHO_T}no" >&6
8973fi
8974
8975fi
8976if test -z "$ac_cv_prog_CC"; then
8977 ac_ct_CC=$CC
8978 # Extract the first word of "cc", so it can be a program name with args.
8979set dummy cc; ac_word=$2
8980echo "$as_me:8980: checking for $ac_word" >&5
8981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8982if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984else
8985 if test -n "$ac_ct_CC"; then
8986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8987else
8988 ac_save_IFS=$IFS; IFS=$ac_path_separator
8989ac_dummy="$PATH"
8990for ac_dir in $ac_dummy; do
8991 IFS=$ac_save_IFS
8992 test -z "$ac_dir" && ac_dir=.
8993 $as_executable_p "$ac_dir/$ac_word" || continue
8994ac_cv_prog_ac_ct_CC="cc"
8995echo "$as_me:8995: found $ac_dir/$ac_word" >&5
8996break
8997done
8998
8999fi
9000fi
9001ac_ct_CC=$ac_cv_prog_ac_ct_CC
9002if test -n "$ac_ct_CC"; then
9003 echo "$as_me:9003: result: $ac_ct_CC" >&5
9004echo "${ECHO_T}$ac_ct_CC" >&6
9005else
9006 echo "$as_me:9006: result: no" >&5
9007echo "${ECHO_T}no" >&6
9008fi
9009
9010 CC=$ac_ct_CC
9011else
9012 CC="$ac_cv_prog_CC"
9013fi
9014
9015fi
9016if test -z "$CC"; then
9017 # Extract the first word of "cc", so it can be a program name with args.
9018set dummy cc; ac_word=$2
9019echo "$as_me:9019: checking for $ac_word" >&5
9020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021if test "${ac_cv_prog_CC+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
9024 if test -n "$CC"; then
9025 ac_cv_prog_CC="$CC" # Let the user override the test.
9026else
9027 ac_prog_rejected=no
9028 ac_save_IFS=$IFS; IFS=$ac_path_separator
9029ac_dummy="$PATH"
9030for ac_dir in $ac_dummy; do
9031 IFS=$ac_save_IFS
9032 test -z "$ac_dir" && ac_dir=.
9033 $as_executable_p "$ac_dir/$ac_word" || continue
9034if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9035 ac_prog_rejected=yes
9036 continue
9037fi
9038ac_cv_prog_CC="cc"
9039echo "$as_me:9039: found $ac_dir/$ac_word" >&5
9040break
9041done
9042
328a083c
RR
9043if test $ac_prog_rejected = yes; then
9044 # We found a bogon in the path, so make sure we never use it.
9045 set dummy $ac_cv_prog_CC
9046 shift
5c6fa7d2 9047 if test $# != 0; then
328a083c 9048 # We chose a different compiler from the bogus one.
1e487827
VS
9049 # However, it has the same basename, so the bogon will be chosen
9050 # first if we set CC to just the basename; use the full file name.
9051 shift
5c6fa7d2 9052 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1e487827
VS
9053 shift
9054 ac_cv_prog_CC="$@"
703e0a69 9055 fi
1e487827
VS
9056fi
9057fi
9058fi
5c6fa7d2 9059CC=$ac_cv_prog_CC
1e487827 9060if test -n "$CC"; then
5c6fa7d2
RR
9061 echo "$as_me:9061: result: $CC" >&5
9062echo "${ECHO_T}$CC" >&6
703e0a69 9063else
5c6fa7d2
RR
9064 echo "$as_me:9064: result: no" >&5
9065echo "${ECHO_T}no" >&6
703e0a69 9066fi
1e487827 9067
5c6fa7d2
RR
9068fi
9069if test -z "$CC"; then
9070 if test -n "$ac_tool_prefix"; then
9071 for ac_prog in cl
9072 do
9073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9075echo "$as_me:9075: checking for $ac_word" >&5
9076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077if test "${ac_cv_prog_CC+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9079else
9080 if test -n "$CC"; then
9081 ac_cv_prog_CC="$CC" # Let the user override the test.
9082else
5c6fa7d2
RR
9083 ac_save_IFS=$IFS; IFS=$ac_path_separator
9084ac_dummy="$PATH"
9085for ac_dir in $ac_dummy; do
9086 IFS=$ac_save_IFS
9087 test -z "$ac_dir" && ac_dir=.
9088 $as_executable_p "$ac_dir/$ac_word" || continue
9089ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9090echo "$as_me:9090: found $ac_dir/$ac_word" >&5
9091break
9092done
9093
f09359cf
VS
9094fi
9095fi
5c6fa7d2 9096CC=$ac_cv_prog_CC
f09359cf 9097if test -n "$CC"; then
5c6fa7d2
RR
9098 echo "$as_me:9098: result: $CC" >&5
9099echo "${ECHO_T}$CC" >&6
f09359cf 9100else
5c6fa7d2
RR
9101 echo "$as_me:9101: result: no" >&5
9102echo "${ECHO_T}no" >&6
7b4a847f 9103fi
6232543b 9104
5c6fa7d2
RR
9105 test -n "$CC" && break
9106 done
9107fi
9108if test -z "$CC"; then
9109 ac_ct_CC=$CC
9110 for ac_prog in cl
9111do
9112 # Extract the first word of "$ac_prog", so it can be a program name with args.
9113set dummy $ac_prog; ac_word=$2
9114echo "$as_me:9114: checking for $ac_word" >&5
9115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9116if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119 if test -n "$ac_ct_CC"; then
9120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9121else
9122 ac_save_IFS=$IFS; IFS=$ac_path_separator
9123ac_dummy="$PATH"
9124for ac_dir in $ac_dummy; do
9125 IFS=$ac_save_IFS
9126 test -z "$ac_dir" && ac_dir=.
9127 $as_executable_p "$ac_dir/$ac_word" || continue
9128ac_cv_prog_ac_ct_CC="$ac_prog"
9129echo "$as_me:9129: found $ac_dir/$ac_word" >&5
9130break
9131done
1e487827 9132
5c6fa7d2
RR
9133fi
9134fi
9135ac_ct_CC=$ac_cv_prog_ac_ct_CC
9136if test -n "$ac_ct_CC"; then
9137 echo "$as_me:9137: result: $ac_ct_CC" >&5
9138echo "${ECHO_T}$ac_ct_CC" >&6
9139else
9140 echo "$as_me:9140: result: no" >&5
9141echo "${ECHO_T}no" >&6
9142fi
f09359cf 9143
5c6fa7d2
RR
9144 test -n "$ac_ct_CC" && break
9145done
f09359cf 9146
5c6fa7d2
RR
9147 CC=$ac_ct_CC
9148fi
9149
9150fi
9151
9152test -z "$CC" && { { echo "$as_me:9152: error: no acceptable cc found in \$PATH" >&5
9153echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
9154 { (exit 1); exit 1; }; }
9155
9156# Provide some information about the compiler.
9157echo "$as_me:9157:" \
9158 "checking for C compiler version" >&5
9159ac_compiler=`set X $ac_compile; echo $2`
9160{ (eval echo "$as_me:9160: \"$ac_compiler --version </dev/null >&5\"") >&5
9161 (eval $ac_compiler --version </dev/null >&5) 2>&5
9162 ac_status=$?
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit $ac_status); }
9165{ (eval echo "$as_me:9165: \"$ac_compiler -v </dev/null >&5\"") >&5
9166 (eval $ac_compiler -v </dev/null >&5) 2>&5
9167 ac_status=$?
9168 echo "$as_me:9168: \$? = $ac_status" >&5
9169 (exit $ac_status); }
9170{ (eval echo "$as_me:9170: \"$ac_compiler -V </dev/null >&5\"") >&5
9171 (eval $ac_compiler -V </dev/null >&5) 2>&5
9172 ac_status=$?
9173 echo "$as_me:9173: \$? = $ac_status" >&5
9174 (exit $ac_status); }
9175
9176cat >conftest.$ac_ext <<_ACEOF
9177#line 9177 "configure"
52127426 9178#include "confdefs.h"
7b4a847f 9179
5c6fa7d2
RR
9180int
9181main ()
9182{
9183
9184 ;
9185 return 0;
9186}
9187_ACEOF
9188ac_clean_files_save=$ac_clean_files
9189ac_clean_files="$ac_clean_files a.out a.exe"
9190# Try to create an executable without -o first, disregard a.out.
9191# It will help us diagnose broken compilers, and finding out an intuition
9192# of exeext.
9193echo "$as_me:9193: checking for C compiler default output" >&5
9194echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9196if { (eval echo "$as_me:9196: \"$ac_link_default\"") >&5
9197 (eval $ac_link_default) 2>&5
9198 ac_status=$?
9199 echo "$as_me:9199: \$? = $ac_status" >&5
9200 (exit $ac_status); }; then
9201 # Find the output, starting from the most likely. This scheme is
9202# not robust to junk in `.', hence go to wildcards (a.*) only as a last
9203# resort.
9204for ac_file in `ls a.exe conftest.exe 2>/dev/null;
9205 ls a.out conftest 2>/dev/null;
9206 ls a.* conftest.* 2>/dev/null`; do
9207 case $ac_file in
9208 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
9209 a.out ) # We found the default executable, but exeext='' is most
9210 # certainly right.
9211 break;;
9212 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9213 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
9214 export ac_cv_exeext
9215 break;;
9216 * ) break;;
9217 esac
9218done
9219else
9220 echo "$as_me: failed program was:" >&5
9221cat conftest.$ac_ext >&5
9222{ { echo "$as_me:9222: error: C compiler cannot create executables" >&5
9223echo "$as_me: error: C compiler cannot create executables" >&2;}
9224 { (exit 77); exit 77; }; }
9225fi
9226
9227ac_exeext=$ac_cv_exeext
9228echo "$as_me:9228: result: $ac_file" >&5
9229echo "${ECHO_T}$ac_file" >&6
9230
9231# Check the compiler produces executables we can run. If not, either
9232# the compiler is broken, or we cross compile.
9233echo "$as_me:9233: checking whether the C compiler works" >&5
9234echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
9235# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
9236# If not cross compiling, check that we can run a simple program.
9237if test "$cross_compiling" != yes; then
9238 if { ac_try='./$ac_file'
9239 { (eval echo "$as_me:9239: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:9242: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 cross_compiling=no
698dcdb6 9245 else
5c6fa7d2
RR
9246 if test "$cross_compiling" = maybe; then
9247 cross_compiling=yes
9248 else
9249 { { echo "$as_me:9249: error: cannot run C compiled programs.
9250If you meant to cross compile, use \`--host'." >&5
9251echo "$as_me: error: cannot run C compiled programs.
9252If you meant to cross compile, use \`--host'." >&2;}
9253 { (exit 1); exit 1; }; }
9254 fi
698dcdb6 9255 fi
579d8138 9256fi
5c6fa7d2
RR
9257echo "$as_me:9257: result: yes" >&5
9258echo "${ECHO_T}yes" >&6
9259
9260rm -f a.out a.exe conftest$ac_cv_exeext
9261ac_clean_files=$ac_clean_files_save
9262# Check the compiler produces executables we can run. If not, either
9263# the compiler is broken, or we cross compile.
9264echo "$as_me:9264: checking whether we are cross compiling" >&5
9265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
9266echo "$as_me:9266: result: $cross_compiling" >&5
9267echo "${ECHO_T}$cross_compiling" >&6
9268
9269echo "$as_me:9269: checking for executable suffix" >&5
9270echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
9271if { (eval echo "$as_me:9271: \"$ac_link\"") >&5
9272 (eval $ac_link) 2>&5
9273 ac_status=$?
9274 echo "$as_me:9274: \$? = $ac_status" >&5
9275 (exit $ac_status); }; then
9276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
9277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
9278# work properly (i.e., refer to `conftest.exe'), while it won't with
9279# `rm'.
9280for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
9281 case $ac_file in
9282 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
9283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9284 export ac_cv_exeext
9285 break;;
9286 * ) break;;
9287 esac
9288done
7b4a847f 9289else
5c6fa7d2
RR
9290 { { echo "$as_me:9290: error: cannot compute EXEEXT: cannot compile and link" >&5
9291echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
9292 { (exit 1); exit 1; }; }
52127426 9293fi
7b4a847f 9294
5c6fa7d2
RR
9295rm -f conftest$ac_cv_exeext
9296echo "$as_me:9296: result: $ac_cv_exeext" >&5
9297echo "${ECHO_T}$ac_cv_exeext" >&6
9298
9299rm -f conftest.$ac_ext
9300EXEEXT=$ac_cv_exeext
9301ac_exeext=$EXEEXT
9302echo "$as_me:9302: checking for object suffix" >&5
9303echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
9304if test "${ac_cv_objext+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306else
9307 cat >conftest.$ac_ext <<_ACEOF
9308#line 9308 "configure"
9309#include "confdefs.h"
9310
9311int
9312main ()
9313{
1e487827 9314
5c6fa7d2
RR
9315 ;
9316 return 0;
9317}
9318_ACEOF
9319rm -f conftest.o conftest.obj
9320if { (eval echo "$as_me:9320: \"$ac_compile\"") >&5
9321 (eval $ac_compile) 2>&5
9322 ac_status=$?
9323 echo "$as_me:9323: \$? = $ac_status" >&5
9324 (exit $ac_status); }; then
9325 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
9326 case $ac_file in
9327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
9328 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
9329 break;;
9330 esac
9331done
f09359cf 9332else
5c6fa7d2
RR
9333 echo "$as_me: failed program was:" >&5
9334cat conftest.$ac_ext >&5
9335{ { echo "$as_me:9335: error: cannot compute OBJEXT: cannot compile" >&5
9336echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
9337 { (exit 1); exit 1; }; }
f09359cf
VS
9338fi
9339
5c6fa7d2
RR
9340rm -f conftest.$ac_cv_objext conftest.$ac_ext
9341fi
9342echo "$as_me:9342: result: $ac_cv_objext" >&5
9343echo "${ECHO_T}$ac_cv_objext" >&6
9344OBJEXT=$ac_cv_objext
9345ac_objext=$OBJEXT
9346echo "$as_me:9346: checking whether we are using the GNU C compiler" >&5
9347echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
9348if test "${ac_cv_c_compiler_gnu+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 9350else
5c6fa7d2
RR
9351 cat >conftest.$ac_ext <<_ACEOF
9352#line 9352 "configure"
9353#include "confdefs.h"
9354
9355int
9356main ()
9357{
9358#ifndef __GNUC__
9359 choke me
9360#endif
9361
9362 ;
9363 return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext
9367if { (eval echo "$as_me:9367: \"$ac_compile\"") >&5
9368 (eval $ac_compile) 2>&5
9369 ac_status=$?
9370 echo "$as_me:9370: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -s conftest.$ac_objext'
9373 { (eval echo "$as_me:9373: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:9376: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_compiler_gnu=yes
9379else
9380 echo "$as_me: failed program was:" >&5
9381cat conftest.$ac_ext >&5
9382ac_compiler_gnu=no
9383fi
9384rm -f conftest.$ac_objext conftest.$ac_ext
9385ac_cv_c_compiler_gnu=$ac_compiler_gnu
9386
9387fi
9388echo "$as_me:9388: result: $ac_cv_c_compiler_gnu" >&5
9389echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
9390GCC=`test $ac_compiler_gnu = yes && echo yes`
9391ac_test_CFLAGS=${CFLAGS+set}
9392ac_save_CFLAGS=$CFLAGS
9393CFLAGS="-g"
9394echo "$as_me:9394: checking whether $CC accepts -g" >&5
9395echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
9396if test "${ac_cv_prog_cc_g+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9398else
9399 cat >conftest.$ac_ext <<_ACEOF
9400#line 9400 "configure"
9401#include "confdefs.h"
9402
9403int
9404main ()
9405{
9406
9407 ;
9408 return 0;
9409}
9410_ACEOF
9411rm -f conftest.$ac_objext
9412if { (eval echo "$as_me:9412: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9414 ac_status=$?
9415 echo "$as_me:9415: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest.$ac_objext'
9418 { (eval echo "$as_me:9418: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:9421: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
10f2d63a
VZ
9423 ac_cv_prog_cc_g=yes
9424else
5c6fa7d2
RR
9425 echo "$as_me: failed program was:" >&5
9426cat conftest.$ac_ext >&5
9427ac_cv_prog_cc_g=no
10f2d63a 9428fi
5c6fa7d2 9429rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 9430fi
5c6fa7d2
RR
9431echo "$as_me:9431: result: $ac_cv_prog_cc_g" >&5
9432echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 9433if test "$ac_test_CFLAGS" = set; then
5c6fa7d2 9434 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
9435elif test $ac_cv_prog_cc_g = yes; then
9436 if test "$GCC" = yes; then
10f2d63a
VZ
9437 CFLAGS="-g -O2"
9438 else
f09359cf 9439 CFLAGS="-g"
10f2d63a 9440 fi
5c0a20c3 9441else
f09359cf
VS
9442 if test "$GCC" = yes; then
9443 CFLAGS="-O2"
9444 else
9445 CFLAGS=
9446 fi
10f2d63a 9447fi
5c6fa7d2
RR
9448# Some people use a C++ compiler to compile C. Since we use `exit',
9449# in C++ we need to declare it. In case someone uses the same compiler
9450# for both compiling C and C++ we need to have the C++ compiler decide
9451# the declaration of exit, since it's the most demanding environment.
9452cat >conftest.$ac_ext <<_ACEOF
9453#ifndef __cplusplus
9454 choke me
9455#endif
9456_ACEOF
9457rm -f conftest.$ac_objext
9458if { (eval echo "$as_me:9458: \"$ac_compile\"") >&5
9459 (eval $ac_compile) 2>&5
9460 ac_status=$?
9461 echo "$as_me:9461: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest.$ac_objext'
9464 { (eval echo "$as_me:9464: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:9467: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 for ac_declaration in \
9470 ''\
9471 '#include <stdlib.h>' \
9472 'extern "C" void std::exit (int) throw (); using std::exit;' \
9473 'extern "C" void std::exit (int); using std::exit;' \
9474 'extern "C" void exit (int) throw ();' \
9475 'extern "C" void exit (int);' \
9476 'void exit (int);'
9477do
9478 cat >conftest.$ac_ext <<_ACEOF
9479#line 9479 "configure"
9480#include "confdefs.h"
9481#include <stdlib.h>
9482$ac_declaration
9483int
9484main ()
9485{
9486exit (42);
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491rm -f conftest.$ac_objext
9492if { (eval echo "$as_me:9492: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>&5
9494 ac_status=$?
9495 echo "$as_me:9495: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -s conftest.$ac_objext'
9498 { (eval echo "$as_me:9498: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:9501: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 :
9504else
9505 echo "$as_me: failed program was:" >&5
9506cat conftest.$ac_ext >&5
9507continue
9508fi
9509rm -f conftest.$ac_objext conftest.$ac_ext
9510 cat >conftest.$ac_ext <<_ACEOF
9511#line 9511 "configure"
9512#include "confdefs.h"
9513$ac_declaration
9514int
9515main ()
9516{
9517exit (42);
9518 ;
9519 return 0;
9520}
9521_ACEOF
9522rm -f conftest.$ac_objext
9523if { (eval echo "$as_me:9523: \"$ac_compile\"") >&5
9524 (eval $ac_compile) 2>&5
9525 ac_status=$?
9526 echo "$as_me:9526: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -s conftest.$ac_objext'
9529 { (eval echo "$as_me:9529: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:9532: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 break
9535else
9536 echo "$as_me: failed program was:" >&5
9537cat conftest.$ac_ext >&5
9538fi
9539rm -f conftest.$ac_objext conftest.$ac_ext
9540done
9541rm -f conftest*
9542if test -n "$ac_declaration"; then
9543 echo '#ifdef __cplusplus' >>confdefs.h
9544 echo $ac_declaration >>confdefs.h
9545 echo '#endif' >>confdefs.h
9546fi
10f2d63a 9547
5c6fa7d2
RR
9548else
9549 echo "$as_me: failed program was:" >&5
9550cat conftest.$ac_ext >&5
9551fi
9552rm -f conftest.$ac_objext conftest.$ac_ext
9553ac_ext=c
9554ac_cpp='$CPP $CPPFLAGS'
9555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9557ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 9558
5c6fa7d2
RR
9559ac_ext=c
9560ac_cpp='$CPP $CPPFLAGS'
9561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9563ac_compiler_gnu=$ac_cv_c_compiler_gnu
9564echo "$as_me:9564: checking how to run the C preprocessor" >&5
9565echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
9566# On Suns, sometimes $CPP names a directory.
9567if test -n "$CPP" && test -d "$CPP"; then
9568 CPP=
9569fi
9570if test -z "$CPP"; then
5c6fa7d2
RR
9571 if test "${ac_cv_prog_CPP+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 # Double quotes because CPP needs to be expanded
9575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9576 do
9577 ac_preproc_ok=false
9578for ac_c_preproc_warn_flag in '' yes
9579do
9580 # Use a header file that comes with gcc, so configuring glibc
9581 # with a fresh cross-compiler works.
10f2d63a 9582 # On the NeXT, cc -E runs the code through the compiler's parser,
5c6fa7d2
RR
9583 # not just through cpp. "Syntax error" is here to catch this case.
9584 cat >conftest.$ac_ext <<_ACEOF
9585#line 9585 "configure"
10f2d63a
VZ
9586#include "confdefs.h"
9587#include <assert.h>
5c6fa7d2
RR
9588 Syntax error
9589_ACEOF
9590if { (eval echo "$as_me:9590: \"$ac_cpp conftest.$ac_ext\"") >&5
9591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9592 ac_status=$?
9593 egrep -v '^ *\+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:9596: \$? = $ac_status" >&5
9597 (exit $ac_status); } >/dev/null; then
9598 if test -s conftest.err; then
9599 ac_cpp_err=$ac_c_preproc_warn_flag
9600 else
9601 ac_cpp_err=
9602 fi
9603else
9604 ac_cpp_err=yes
9605fi
9606if test -z "$ac_cpp_err"; then
10f2d63a
VZ
9607 :
9608else
5c6fa7d2 9609 echo "$as_me: failed program was:" >&5
10f2d63a 9610 cat conftest.$ac_ext >&5
5c6fa7d2
RR
9611 # Broken: fails on valid input.
9612continue
9613fi
9614rm -f conftest.err conftest.$ac_ext
9615
9616 # OK, works on sane cases. Now check whether non-existent headers
9617 # can be detected and how.
9618 cat >conftest.$ac_ext <<_ACEOF
9619#line 9619 "configure"
f09359cf 9620#include "confdefs.h"
5c6fa7d2
RR
9621#include <ac_nonexistent.h>
9622_ACEOF
9623if { (eval echo "$as_me:9623: \"$ac_cpp conftest.$ac_ext\"") >&5
9624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9625 ac_status=$?
9626 egrep -v '^ *\+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:9629: \$? = $ac_status" >&5
9630 (exit $ac_status); } >/dev/null; then
9631 if test -s conftest.err; then
9632 ac_cpp_err=$ac_c_preproc_warn_flag
9633 else
9634 ac_cpp_err=
9635 fi
9636else
9637 ac_cpp_err=yes
9638fi
9639if test -z "$ac_cpp_err"; then
9640 # Broken: success on invalid input.
9641continue
f09359cf 9642else
5c6fa7d2 9643 echo "$as_me: failed program was:" >&5
f09359cf 9644 cat conftest.$ac_ext >&5
5c6fa7d2
RR
9645 # Passes both tests.
9646ac_preproc_ok=:
9647break
9648fi
9649rm -f conftest.err conftest.$ac_ext
9650
9651done
9652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9653rm -f conftest.err conftest.$ac_ext
9654if $ac_preproc_ok; then
9655 break
9656fi
9657
9658 done
9659 ac_cv_prog_CPP=$CPP
9660
9661fi
9662 CPP=$ac_cv_prog_CPP
9663else
9664 ac_cv_prog_CPP=$CPP
9665fi
9666echo "$as_me:9666: result: $CPP" >&5
9667echo "${ECHO_T}$CPP" >&6
9668ac_preproc_ok=false
9669for ac_c_preproc_warn_flag in '' yes
9670do
9671 # Use a header file that comes with gcc, so configuring glibc
9672 # with a fresh cross-compiler works.
9673 # On the NeXT, cc -E runs the code through the compiler's parser,
9674 # not just through cpp. "Syntax error" is here to catch this case.
9675 cat >conftest.$ac_ext <<_ACEOF
9676#line 9676 "configure"
10f2d63a
VZ
9677#include "confdefs.h"
9678#include <assert.h>
5c6fa7d2
RR
9679 Syntax error
9680_ACEOF
9681if { (eval echo "$as_me:9681: \"$ac_cpp conftest.$ac_ext\"") >&5
9682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9683 ac_status=$?
9684 egrep -v '^ *\+' conftest.er1 >conftest.err
9685 rm -f conftest.er1
9686 cat conftest.err >&5
9687 echo "$as_me:9687: \$? = $ac_status" >&5
9688 (exit $ac_status); } >/dev/null; then
9689 if test -s conftest.err; then
9690 ac_cpp_err=$ac_c_preproc_warn_flag
9691 else
9692 ac_cpp_err=
9693 fi
9694else
9695 ac_cpp_err=yes
9696fi
9697if test -z "$ac_cpp_err"; then
10f2d63a
VZ
9698 :
9699else
5c6fa7d2 9700 echo "$as_me: failed program was:" >&5
10f2d63a 9701 cat conftest.$ac_ext >&5
5c6fa7d2
RR
9702 # Broken: fails on valid input.
9703continue
f09359cf 9704fi
5c6fa7d2
RR
9705rm -f conftest.err conftest.$ac_ext
9706
9707 # OK, works on sane cases. Now check whether non-existent headers
9708 # can be detected and how.
9709 cat >conftest.$ac_ext <<_ACEOF
9710#line 9710 "configure"
9711#include "confdefs.h"
9712#include <ac_nonexistent.h>
9713_ACEOF
9714if { (eval echo "$as_me:9714: \"$ac_cpp conftest.$ac_ext\"") >&5
9715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9716 ac_status=$?
9717 egrep -v '^ *\+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:9720: \$? = $ac_status" >&5
9721 (exit $ac_status); } >/dev/null; then
9722 if test -s conftest.err; then
9723 ac_cpp_err=$ac_c_preproc_warn_flag
9724 else
9725 ac_cpp_err=
9726 fi
9727else
9728 ac_cpp_err=yes
579d8138 9729fi
5c6fa7d2
RR
9730if test -z "$ac_cpp_err"; then
9731 # Broken: success on invalid input.
9732continue
9733else
9734 echo "$as_me: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9736 # Passes both tests.
9737ac_preproc_ok=:
9738break
52127426 9739fi
5c6fa7d2
RR
9740rm -f conftest.err conftest.$ac_ext
9741
9742done
9743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9744rm -f conftest.err conftest.$ac_ext
9745if $ac_preproc_ok; then
9746 :
10f2d63a 9747else
5c6fa7d2
RR
9748 { { echo "$as_me:9748: error: C preprocessor \"$CPP\" fails sanity check" >&5
9749echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
9750 { (exit 1); exit 1; }; }
10f2d63a 9751fi
10f2d63a 9752
5c6fa7d2
RR
9753ac_ext=c
9754ac_cpp='$CPP $CPPFLAGS'
9755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9757ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758
9759if test $ac_cv_c_compiler_gnu = yes; then
9760 echo "$as_me:9760: checking whether $CC needs -traditional" >&5
9761echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
9762if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
9764else
9765 ac_pattern="Autoconf.*'x'"
5c6fa7d2
RR
9766 cat >conftest.$ac_ext <<_ACEOF
9767#line 9767 "configure"
10f2d63a
VZ
9768#include "confdefs.h"
9769#include <sgtty.h>
9770Autoconf TIOCGETP
5c6fa7d2 9771_ACEOF
10f2d63a
VZ
9772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9773 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
9774 ac_cv_prog_gcc_traditional=yes
9775else
10f2d63a
VZ
9776 ac_cv_prog_gcc_traditional=no
9777fi
9778rm -f conftest*
9779
10f2d63a 9780 if test $ac_cv_prog_gcc_traditional = no; then
5c6fa7d2
RR
9781 cat >conftest.$ac_ext <<_ACEOF
9782#line 9782 "configure"
10f2d63a
VZ
9783#include "confdefs.h"
9784#include <termio.h>
9785Autoconf TCGETA
5c6fa7d2 9786_ACEOF
10f2d63a
VZ
9787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9788 egrep "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
9789 ac_cv_prog_gcc_traditional=yes
9790fi
9791rm -f conftest*
9792
9793 fi
9794fi
5c6fa7d2
RR
9795echo "$as_me:9795: result: $ac_cv_prog_gcc_traditional" >&5
9796echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
9797 if test $ac_cv_prog_gcc_traditional = yes; then
9798 CC="$CC -traditional"
9799 fi
9800fi
9801
5c6fa7d2 9802ac_ext=cc
1e487827 9803ac_cpp='$CXXCPP $CPPFLAGS'
5c6fa7d2
RR
9804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698dcdb6 9807
ec603395 9808CXXFLAGS=${CXXFLAGS:=}
5c6fa7d2
RR
9809ac_ext=cc
9810ac_cpp='$CXXCPP $CPPFLAGS'
9811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9814if test -n "$ac_tool_prefix"; then
9815 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9816 do
9817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9818set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9819echo "$as_me:9819: checking for $ac_word" >&5
9820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9821if test "${ac_cv_prog_CXX+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
9823else
9824 if test -n "$CXX"; then
9825 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9826else
5c6fa7d2
RR
9827 ac_save_IFS=$IFS; IFS=$ac_path_separator
9828ac_dummy="$PATH"
9829for ac_dir in $ac_dummy; do
9830 IFS=$ac_save_IFS
9831 test -z "$ac_dir" && ac_dir=.
9832 $as_executable_p "$ac_dir/$ac_word" || continue
9833ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9834echo "$as_me:9834: found $ac_dir/$ac_word" >&5
9835break
9836done
9837
10f2d63a
VZ
9838fi
9839fi
5c6fa7d2 9840CXX=$ac_cv_prog_CXX
10f2d63a 9841if test -n "$CXX"; then
5c6fa7d2
RR
9842 echo "$as_me:9842: result: $CXX" >&5
9843echo "${ECHO_T}$CXX" >&6
10f2d63a 9844else
5c6fa7d2
RR
9845 echo "$as_me:9845: result: no" >&5
9846echo "${ECHO_T}no" >&6
10f2d63a
VZ
9847fi
9848
5c6fa7d2
RR
9849 test -n "$CXX" && break
9850 done
9851fi
9852if test -z "$CXX"; then
9853 ac_ct_CXX=$CXX
9854 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9855do
9856 # Extract the first word of "$ac_prog", so it can be a program name with args.
9857set dummy $ac_prog; ac_word=$2
9858echo "$as_me:9858: checking for $ac_word" >&5
9859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9860if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 if test -n "$ac_ct_CXX"; then
9864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9865else
9866 ac_save_IFS=$IFS; IFS=$ac_path_separator
9867ac_dummy="$PATH"
9868for ac_dir in $ac_dummy; do
9869 IFS=$ac_save_IFS
9870 test -z "$ac_dir" && ac_dir=.
9871 $as_executable_p "$ac_dir/$ac_word" || continue
9872ac_cv_prog_ac_ct_CXX="$ac_prog"
9873echo "$as_me:9873: found $ac_dir/$ac_word" >&5
9874break
10f2d63a 9875done
52127426 9876
5c6fa7d2
RR
9877fi
9878fi
9879ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9880if test -n "$ac_ct_CXX"; then
9881 echo "$as_me:9881: result: $ac_ct_CXX" >&5
9882echo "${ECHO_T}$ac_ct_CXX" >&6
9883else
9884 echo "$as_me:9884: result: no" >&5
9885echo "${ECHO_T}no" >&6
9886fi
52127426 9887
5c6fa7d2
RR
9888 test -n "$ac_ct_CXX" && break
9889done
9890test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
9891
9892 CXX=$ac_ct_CXX
9893fi
9894
9895# Provide some information about the compiler.
9896echo "$as_me:9896:" \
9897 "checking for C++ compiler version" >&5
9898ac_compiler=`set X $ac_compile; echo $2`
9899{ (eval echo "$as_me:9899: \"$ac_compiler --version </dev/null >&5\"") >&5
9900 (eval $ac_compiler --version </dev/null >&5) 2>&5
9901 ac_status=$?
9902 echo "$as_me:9902: \$? = $ac_status" >&5
9903 (exit $ac_status); }
9904{ (eval echo "$as_me:9904: \"$ac_compiler -v </dev/null >&5\"") >&5
9905 (eval $ac_compiler -v </dev/null >&5) 2>&5
9906 ac_status=$?
9907 echo "$as_me:9907: \$? = $ac_status" >&5
9908 (exit $ac_status); }
9909{ (eval echo "$as_me:9909: \"$ac_compiler -V </dev/null >&5\"") >&5
9910 (eval $ac_compiler -V </dev/null >&5) 2>&5
9911 ac_status=$?
9912 echo "$as_me:9912: \$? = $ac_status" >&5
9913 (exit $ac_status); }
9914
9915echo "$as_me:9915: checking whether we are using the GNU C++ compiler" >&5
9916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
9917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920 cat >conftest.$ac_ext <<_ACEOF
9921#line 9921 "configure"
10f2d63a 9922#include "confdefs.h"
f09359cf 9923
5c6fa7d2
RR
9924int
9925main ()
9926{
9927#ifndef __GNUC__
9928 choke me
10f2d63a 9929#endif
10f2d63a 9930
5c6fa7d2
RR
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (eval echo "$as_me:9936: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9938 ac_status=$?
9939 echo "$as_me:9939: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest.$ac_objext'
9942 { (eval echo "$as_me:9942: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:9945: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_compiler_gnu=yes
9948else
9949 echo "$as_me: failed program was:" >&5
9950cat conftest.$ac_ext >&5
9951ac_compiler_gnu=no
9952fi
9953rm -f conftest.$ac_objext conftest.$ac_ext
9954ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9955
9956fi
9957echo "$as_me:9957: result: $ac_cv_cxx_compiler_gnu" >&5
9958echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
9959GXX=`test $ac_compiler_gnu = yes && echo yes`
9960ac_test_CXXFLAGS=${CXXFLAGS+set}
9961ac_save_CXXFLAGS=$CXXFLAGS
9962CXXFLAGS="-g"
9963echo "$as_me:9963: checking whether $CXX accepts -g" >&5
9964echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
9965if test "${ac_cv_prog_cxx_g+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968 cat >conftest.$ac_ext <<_ACEOF
9969#line 9969 "configure"
9970#include "confdefs.h"
10f2d63a 9971
5c6fa7d2
RR
9972int
9973main ()
9974{
f09359cf 9975
5c6fa7d2
RR
9976 ;
9977 return 0;
9978}
9979_ACEOF
9980rm -f conftest.$ac_objext
9981if { (eval echo "$as_me:9981: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>&5
9983 ac_status=$?
9984 echo "$as_me:9984: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:9987: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:9990: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
10f2d63a
VZ
9992 ac_cv_prog_cxx_g=yes
9993else
5c6fa7d2
RR
9994 echo "$as_me: failed program was:" >&5
9995cat conftest.$ac_ext >&5
9996ac_cv_prog_cxx_g=no
10f2d63a 9997fi
5c6fa7d2 9998rm -f conftest.$ac_objext conftest.$ac_ext
10f2d63a 9999fi
5c6fa7d2
RR
10000echo "$as_me:10000: result: $ac_cv_prog_cxx_g" >&5
10001echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 10002if test "$ac_test_CXXFLAGS" = set; then
5c6fa7d2 10003 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
10004elif test $ac_cv_prog_cxx_g = yes; then
10005 if test "$GXX" = yes; then
10f2d63a
VZ
10006 CXXFLAGS="-g -O2"
10007 else
f09359cf 10008 CXXFLAGS="-g"
10f2d63a 10009 fi
5c0a20c3 10010else
f09359cf
VS
10011 if test "$GXX" = yes; then
10012 CXXFLAGS="-O2"
10013 else
10014 CXXFLAGS=
10015 fi
10f2d63a 10016fi
5c6fa7d2
RR
10017for ac_declaration in \
10018 ''\
10019 '#include <stdlib.h>' \
10020 'extern "C" void std::exit (int) throw (); using std::exit;' \
10021 'extern "C" void std::exit (int); using std::exit;' \
10022 'extern "C" void exit (int) throw ();' \
10023 'extern "C" void exit (int);' \
10024 'void exit (int);'
10025do
10026 cat >conftest.$ac_ext <<_ACEOF
10027#line 10027 "configure"
10028#include "confdefs.h"
10029#include <stdlib.h>
10030$ac_declaration
10031int
10032main ()
10033{
10034exit (42);
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:10040: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10042 ac_status=$?
10043 echo "$as_me:10043: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:10046: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 :
10052else
10053 echo "$as_me: failed program was:" >&5
10054cat conftest.$ac_ext >&5
10055continue
10056fi
10057rm -f conftest.$ac_objext conftest.$ac_ext
10058 cat >conftest.$ac_ext <<_ACEOF
10059#line 10059 "configure"
10060#include "confdefs.h"
10061$ac_declaration
10062int
10063main ()
10064{
10065exit (42);
10066 ;
10067 return 0;
10068}
10069_ACEOF
10070rm -f conftest.$ac_objext
10071if { (eval echo "$as_me:10071: \"$ac_compile\"") >&5
10072 (eval $ac_compile) 2>&5
10073 ac_status=$?
10074 echo "$as_me:10074: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -s conftest.$ac_objext'
10077 { (eval echo "$as_me:10077: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:10080: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 break
10083else
10084 echo "$as_me: failed program was:" >&5
10085cat conftest.$ac_ext >&5
10086fi
10087rm -f conftest.$ac_objext conftest.$ac_ext
10088done
10089rm -f conftest*
10090if test -n "$ac_declaration"; then
10091 echo '#ifdef __cplusplus' >>confdefs.h
10092 echo $ac_declaration >>confdefs.h
10093 echo '#endif' >>confdefs.h
10094fi
10f2d63a 10095
5c6fa7d2
RR
10096ac_ext=cc
10097ac_cpp='$CXXCPP $CPPFLAGS'
10098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a 10101
10f2d63a 10102ac_ext=c
10f2d63a 10103ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
10104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106ac_compiler_gnu=$ac_cv_c_compiler_gnu
10107
10108if test -n "$ac_tool_prefix"; then
10109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10110set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10111echo "$as_me:10111: checking for $ac_word" >&5
10112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10113if test "${ac_cv_prog_RANLIB+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10115else
10116 if test -n "$RANLIB"; then
10117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10118else
5c6fa7d2
RR
10119 ac_save_IFS=$IFS; IFS=$ac_path_separator
10120ac_dummy="$PATH"
10121for ac_dir in $ac_dummy; do
10122 IFS=$ac_save_IFS
10123 test -z "$ac_dir" && ac_dir=.
10124 $as_executable_p "$ac_dir/$ac_word" || continue
10125ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10126echo "$as_me:10126: found $ac_dir/$ac_word" >&5
10127break
10128done
10129
10f2d63a
VZ
10130fi
10131fi
5c6fa7d2 10132RANLIB=$ac_cv_prog_RANLIB
10f2d63a 10133if test -n "$RANLIB"; then
5c6fa7d2
RR
10134 echo "$as_me:10134: result: $RANLIB" >&5
10135echo "${ECHO_T}$RANLIB" >&6
328a083c 10136else
5c6fa7d2
RR
10137 echo "$as_me:10137: result: no" >&5
10138echo "${ECHO_T}no" >&6
328a083c
RR
10139fi
10140
5c6fa7d2
RR
10141fi
10142if test -z "$ac_cv_prog_RANLIB"; then
10143 ac_ct_RANLIB=$RANLIB
10144 # Extract the first word of "ranlib", so it can be a program name with args.
10145set dummy ranlib; ac_word=$2
10146echo "$as_me:10146: checking for $ac_word" >&5
10147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10148if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 if test -n "$ac_ct_RANLIB"; then
10152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10153else
10154 ac_save_IFS=$IFS; IFS=$ac_path_separator
10155ac_dummy="$PATH"
10156for ac_dir in $ac_dummy; do
10157 IFS=$ac_save_IFS
10158 test -z "$ac_dir" && ac_dir=.
10159 $as_executable_p "$ac_dir/$ac_word" || continue
10160ac_cv_prog_ac_ct_RANLIB="ranlib"
10161echo "$as_me:10161: found $ac_dir/$ac_word" >&5
10162break
10163done
10164
10165 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10166fi
10167fi
10168ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10169if test -n "$ac_ct_RANLIB"; then
10170 echo "$as_me:10170: result: $ac_ct_RANLIB" >&5
10171echo "${ECHO_T}$ac_ct_RANLIB" >&6
10172else
10173 echo "$as_me:10173: result: no" >&5
10174echo "${ECHO_T}no" >&6
10175fi
10176
10177 RANLIB=$ac_ct_RANLIB
10178else
10179 RANLIB="$ac_cv_prog_RANLIB"
10180fi
10f2d63a
VZ
10181
10182# Extract the first word of "ar", so it can be a program name with args.
10183set dummy ar; ac_word=$2
5c6fa7d2
RR
10184echo "$as_me:10184: checking for $ac_word" >&5
10185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186if test "${ac_cv_prog_AR+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10188else
10189 if test -n "$AR"; then
10190 ac_cv_prog_AR="$AR" # Let the user override the test.
10191else
5c6fa7d2
RR
10192 ac_save_IFS=$IFS; IFS=$ac_path_separator
10193ac_dummy="$PATH"
10194for ac_dir in $ac_dummy; do
10195 IFS=$ac_save_IFS
10196 test -z "$ac_dir" && ac_dir=.
10197 $as_executable_p "$ac_dir/$ac_word" || continue
10198ac_cv_prog_AR="ar"
10199echo "$as_me:10199: found $ac_dir/$ac_word" >&5
10200break
10201done
10202
10f2d63a
VZ
10203 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
10204fi
10205fi
5c6fa7d2 10206AR=$ac_cv_prog_AR
10f2d63a 10207if test -n "$AR"; then
5c6fa7d2
RR
10208 echo "$as_me:10208: result: $AR" >&5
10209echo "${ECHO_T}$AR" >&6
10f2d63a 10210else
5c6fa7d2
RR
10211 echo "$as_me:10211: result: no" >&5
10212echo "${ECHO_T}no" >&6
10f2d63a
VZ
10213fi
10214
6054113a 10215# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
10216# so one script is as good as another. But avoid the broken or
10217# incompatible versions:
10218# SysV /etc/install, /usr/sbin/install
10219# SunOS /usr/etc/install
10220# IRIX /sbin/install
10221# AIX /bin/install
5c6fa7d2 10222# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 10223# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
10224# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10225# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10226# ./install, which can be erroneously created by make from ./install.sh.
5c6fa7d2
RR
10227echo "$as_me:10227: checking for a BSD compatible install" >&5
10228echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
10f2d63a 10229if test -z "$INSTALL"; then
5c6fa7d2
RR
10230if test "${ac_cv_path_install+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10232else
5c6fa7d2 10233 ac_save_IFS=$IFS; IFS=$ac_path_separator
10f2d63a 10234 for ac_dir in $PATH; do
5c6fa7d2 10235 IFS=$ac_save_IFS
10f2d63a 10236 # Account for people who put trailing slashes in PATH elements.
5c6fa7d2
RR
10237 case $ac_dir/ in
10238 / | ./ | .// | /cC/* \
10239 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
10240 | /usr/ucb/* ) ;;
10f2d63a
VZ
10241 *)
10242 # OSF1 and SCO ODT 3.0 have their own names for install.
f09359cf
VS
10243 # Don't use installbsd from OSF since it installs stuff as root
10244 # by default.
10245 for ac_prog in ginstall scoinst install; do
5c6fa7d2 10246 if $as_executable_p "$ac_dir/$ac_prog"; then
10f2d63a 10247 if test $ac_prog = install &&
5c6fa7d2 10248 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
10f2d63a
VZ
10249 # AIX install. It has an incompatible calling convention.
10250 :
5c6fa7d2
RR
10251 elif test $ac_prog = install &&
10252 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
10253 # program-specific install script used by HP pwplus--don't use.
10254 :
10f2d63a
VZ
10255 else
10256 ac_cv_path_install="$ac_dir/$ac_prog -c"
10257 break 2
10258 fi
10259 fi
10260 done
10261 ;;
10262 esac
10263 done
10f2d63a
VZ
10264
10265fi
10266 if test "${ac_cv_path_install+set}" = set; then
5c6fa7d2 10267 INSTALL=$ac_cv_path_install
10f2d63a
VZ
10268 else
10269 # As a last resort, use the slow shell script. We don't cache a
10270 # path for INSTALL within a source directory, because that will
10271 # break other packages using the cache if that directory is
10272 # removed, or if the path is relative.
5c6fa7d2 10273 INSTALL=$ac_install_sh
10f2d63a
VZ
10274 fi
10275fi
5c6fa7d2
RR
10276echo "$as_me:10276: result: $INSTALL" >&5
10277echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
10278
10279# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10280# It thinks the first close brace ends the variable substitution.
10281test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10282
5c6fa7d2 10283test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 10284
10f2d63a
VZ
10285test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10286
1d1b75ac
VZ
10287case ${INSTALL} in
10288 /* ) # Absolute
10289 ;;
3bd8fb5f 10290 *)
1d1b75ac
VZ
10291 INSTALL=`pwd`/${INSTALL} ;;
10292esac
10293
6054113a
GD
10294case "${host}" in
10295
b5853384 10296 powerpc-*-darwin* )
eb99ae0b
GD
10297 INSTALL_PROGRAM="cp -fp"
10298 INSTALL_DATA="cp -fp"
6054113a
GD
10299 ;;
10300 *)
10301 ;;
d6853540 10302esac
698dcdb6 10303
10f2d63a
VZ
10304# Extract the first word of "strip", so it can be a program name with args.
10305set dummy strip; ac_word=$2
5c6fa7d2
RR
10306echo "$as_me:10306: checking for $ac_word" >&5
10307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10308if test "${ac_cv_prog_STRIP+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10310else
10311 if test -n "$STRIP"; then
10312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10313else
5c6fa7d2
RR
10314 ac_save_IFS=$IFS; IFS=$ac_path_separator
10315ac_dummy="$PATH"
10316for ac_dir in $ac_dummy; do
10317 IFS=$ac_save_IFS
10318 test -z "$ac_dir" && ac_dir=.
10319 $as_executable_p "$ac_dir/$ac_word" || continue
10320ac_cv_prog_STRIP="strip"
10321echo "$as_me:10321: found $ac_dir/$ac_word" >&5
10322break
10323done
10324
10f2d63a
VZ
10325 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
10326fi
10327fi
5c6fa7d2 10328STRIP=$ac_cv_prog_STRIP
10f2d63a 10329if test -n "$STRIP"; then
5c6fa7d2
RR
10330 echo "$as_me:10330: result: $STRIP" >&5
10331echo "${ECHO_T}$STRIP" >&6
10f2d63a 10332else
5c6fa7d2
RR
10333 echo "$as_me:10333: result: no" >&5
10334echo "${ECHO_T}no" >&6
10f2d63a
VZ
10335fi
10336
5c6fa7d2
RR
10337echo "$as_me:10337: checking if make is GNU make" >&5
10338echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
10339if test "${wx_cv_prog_makeisgnu+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 10341else
5c6fa7d2 10342
414eab6d 10343 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 10344 egrep -s GNU > /dev/null); then
414eab6d
VZ
10345 wx_cv_prog_makeisgnu="yes"
10346 else
10347 wx_cv_prog_makeisgnu="no"
10348 fi
10349
10350fi
5c6fa7d2
RR
10351echo "$as_me:10351: result: $wx_cv_prog_makeisgnu" >&5
10352echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
10353
10354if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
10355 IF_GNU_MAKE=""
10356else
10357 IF_GNU_MAKE="#"
10358fi
10359
414eab6d 10360if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
5c6fa7d2
RR
10361echo "$as_me:10361: checking if make supports VPATH" >&5
10362echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
10363if test "${wx_cv_prog_makevpath+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 10365else
5c6fa7d2 10366
10f2d63a
VZ
10367cat - << EOF > confMake
10368check : file
10369 cp \$? \$@
10370 cp \$? final_file
10371EOF
10372
10373if test ! -d sub ; then
10374 mkdir sub
10375fi
10376echo dummy > sub/file
f6bcfd97 10377${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
10378RESULT=$?
10379rm -f sub/file check final_file confMake
10380rmdir sub
10381if test "$RESULT" = 0; then
04e7a216 10382 wx_cv_prog_makevpath="yes"
10f2d63a 10383else
04e7a216
VZ
10384 wx_cv_prog_makevpath="no"
10385fi
10386
10387fi
5c6fa7d2
RR
10388echo "$as_me:10388: result: $wx_cv_prog_makevpath" >&5
10389echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
10390
10391if test "x$wx_cv_prog_makevpath" != "xyes"; then
5c6fa7d2 10392{ { echo "$as_me:10392: error:
1e487827
VS
10393You need a make-utility that is able to use the variable
10394VPATH correctly.
10395If your version of make does not support VPATH correctly,
10396please install GNU-make (possibly as gmake), and start
10397configure with the following command:
10398export MAKE=gmake; ./configure for sh-type shells
10399setenv MAKE gmake; ./configure for csh-type shells
10400Also please do remember to use gmake in this case every time
10401you are trying to compile.
5c6fa7d2
RR
10402" >&5
10403echo "$as_me: error:
10404You need a make-utility that is able to use the variable
10405VPATH correctly.
10406If your version of make does not support VPATH correctly,
10407please install GNU-make (possibly as gmake), and start
10408configure with the following command:
10409export MAKE=gmake; ./configure for sh-type shells
10410setenv MAKE gmake; ./configure for csh-type shells
10411Also please do remember to use gmake in this case every time
10412you are trying to compile.
10413" >&2;}
10414 { (exit 1); exit 1; }; }
10415fi fi
10f2d63a
VZ
10416for ac_prog in 'bison -y' byacc
10417do
5c6fa7d2 10418 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 10419set dummy $ac_prog; ac_word=$2
5c6fa7d2
RR
10420echo "$as_me:10420: checking for $ac_word" >&5
10421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10422if test "${ac_cv_prog_YACC+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10424else
10425 if test -n "$YACC"; then
10426 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10427else
5c6fa7d2
RR
10428 ac_save_IFS=$IFS; IFS=$ac_path_separator
10429ac_dummy="$PATH"
10430for ac_dir in $ac_dummy; do
10431 IFS=$ac_save_IFS
10432 test -z "$ac_dir" && ac_dir=.
10433 $as_executable_p "$ac_dir/$ac_word" || continue
10434ac_cv_prog_YACC="$ac_prog"
10435echo "$as_me:10435: found $ac_dir/$ac_word" >&5
10436break
10437done
10438
10f2d63a
VZ
10439fi
10440fi
5c6fa7d2 10441YACC=$ac_cv_prog_YACC
10f2d63a 10442if test -n "$YACC"; then
5c6fa7d2
RR
10443 echo "$as_me:10443: result: $YACC" >&5
10444echo "${ECHO_T}$YACC" >&6
10f2d63a 10445else
5c6fa7d2
RR
10446 echo "$as_me:10446: result: no" >&5
10447echo "${ECHO_T}no" >&6
10f2d63a
VZ
10448fi
10449
5c6fa7d2 10450 test -n "$YACC" && break
10f2d63a
VZ
10451done
10452test -n "$YACC" || YACC="yacc"
10453
5c6fa7d2
RR
10454for ac_prog in flex lex
10455do
10456 # Extract the first word of "$ac_prog", so it can be a program name with args.
10457set dummy $ac_prog; ac_word=$2
10458echo "$as_me:10458: checking for $ac_word" >&5
10459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10460if test "${ac_cv_prog_LEX+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10462else
10463 if test -n "$LEX"; then
10464 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10465else
5c6fa7d2
RR
10466 ac_save_IFS=$IFS; IFS=$ac_path_separator
10467ac_dummy="$PATH"
10468for ac_dir in $ac_dummy; do
10469 IFS=$ac_save_IFS
10470 test -z "$ac_dir" && ac_dir=.
10471 $as_executable_p "$ac_dir/$ac_word" || continue
10472ac_cv_prog_LEX="$ac_prog"
10473echo "$as_me:10473: found $ac_dir/$ac_word" >&5
10474break
10475done
10476
10f2d63a
VZ
10477fi
10478fi
5c6fa7d2 10479LEX=$ac_cv_prog_LEX
10f2d63a 10480if test -n "$LEX"; then
5c6fa7d2
RR
10481 echo "$as_me:10481: result: $LEX" >&5
10482echo "${ECHO_T}$LEX" >&6
10f2d63a 10483else
5c6fa7d2
RR
10484 echo "$as_me:10484: result: no" >&5
10485echo "${ECHO_T}no" >&6
10f2d63a
VZ
10486fi
10487
5c6fa7d2
RR
10488 test -n "$LEX" && break
10489done
10490test -n "$LEX" || LEX=":"
10491
10f2d63a
VZ
10492if test -z "$LEXLIB"
10493then
5c6fa7d2
RR
10494 echo "$as_me:10494: checking for yywrap in -lfl" >&5
10495echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10496if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 ac_check_lib_save_LIBS=$LIBS
10500LIBS="-lfl $LIBS"
10501cat >conftest.$ac_ext <<_ACEOF
10502#line 10502 "configure"
10f2d63a 10503#include "confdefs.h"
5c6fa7d2 10504
10f2d63a 10505/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
10506#ifdef __cplusplus
10507extern "C"
10508#endif
10f2d63a 10509/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
10510 builtin and then its argument prototype would still apply. */
10511char yywrap ();
10512int
10513main ()
10514{
10515yywrap ();
10516 ;
10517 return 0;
10518}
10519_ACEOF
10520rm -f conftest.$ac_objext conftest$ac_exeext
10521if { (eval echo "$as_me:10521: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>&5
10523 ac_status=$?
10524 echo "$as_me:10524: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -s conftest$ac_exeext'
10527 { (eval echo "$as_me:10527: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:10530: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_lib_fl_yywrap=yes
10533else
10534 echo "$as_me: failed program was:" >&5
10535cat conftest.$ac_ext >&5
10536ac_cv_lib_fl_yywrap=no
10537fi
10538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10539LIBS=$ac_check_lib_save_LIBS
10540fi
10541echo "$as_me:10541: result: $ac_cv_lib_fl_yywrap" >&5
10542echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10543if test $ac_cv_lib_fl_yywrap = yes; then
10544 LEXLIB="-lfl"
10545else
10546 echo "$as_me:10546: checking for yywrap in -ll" >&5
10547echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10548if test "${ac_cv_lib_l_yywrap+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10550else
10551 ac_check_lib_save_LIBS=$LIBS
10552LIBS="-ll $LIBS"
10553cat >conftest.$ac_ext <<_ACEOF
10554#line 10554 "configure"
10555#include "confdefs.h"
10f2d63a 10556
5c6fa7d2
RR
10557/* Override any gcc2 internal prototype to avoid an error. */
10558#ifdef __cplusplus
10559extern "C"
10560#endif
10561/* We use char because int might match the return type of a gcc2
10562 builtin and then its argument prototype would still apply. */
10563char yywrap ();
10564int
10565main ()
10566{
10567yywrap ();
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext conftest$ac_exeext
10573if { (eval echo "$as_me:10573: \"$ac_link\"") >&5
10574 (eval $ac_link) 2>&5
10575 ac_status=$?
10576 echo "$as_me:10576: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (eval echo "$as_me:10579: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:10582: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 ac_cv_lib_l_yywrap=yes
10f2d63a 10585else
5c6fa7d2
RR
10586 echo "$as_me: failed program was:" >&5
10587cat conftest.$ac_ext >&5
10588ac_cv_lib_l_yywrap=no
10f2d63a 10589fi
5c6fa7d2
RR
10590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10591LIBS=$ac_check_lib_save_LIBS
10f2d63a 10592fi
5c6fa7d2
RR
10593echo "$as_me:10593: result: $ac_cv_lib_l_yywrap" >&5
10594echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10595if test $ac_cv_lib_l_yywrap = yes; then
10596 LEXLIB="-ll"
10f2d63a
VZ
10597fi
10598
10599fi
10600
5c6fa7d2 10601fi
10f2d63a 10602
5c6fa7d2
RR
10603if test "x$LEX" != "x:"; then
10604 echo "$as_me:10604: checking lex output file root" >&5
10605echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10606if test "${ac_cv_prog_lex_root+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10608else
5c6fa7d2
RR
10609 # The minimal lex program is just a single line: %%. But some broken lexes
10610# (Solaris, I think it was) want two %% lines, so accommodate them.
10611echo '%%
10612%%' | $LEX
10613if test -f lex.yy.c; then
10614 ac_cv_prog_lex_root=lex.yy
10615elif test -f lexyy.c; then
10616 ac_cv_prog_lex_root=lexyy
10f2d63a 10617else
5c6fa7d2
RR
10618 { { echo "$as_me:10618: error: cannot find output from $LEX; giving up" >&5
10619echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10620 { (exit 1); exit 1; }; }
10f2d63a
VZ
10621fi
10622fi
5c6fa7d2
RR
10623echo "$as_me:10623: result: $ac_cv_prog_lex_root" >&5
10624echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10625LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10626
10627echo "$as_me:10627: checking whether yytext is a pointer" >&5
10628echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10629if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631else
10632 # POSIX says lex can declare yytext either as a pointer or an array; the
10633# default is implementation-dependent. Figure out which it is, since
10634# not all implementations provide the %pointer and %array declarations.
10635ac_cv_prog_lex_yytext_pointer=no
10636echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10637ac_save_LIBS=$LIBS
10638LIBS="$LIBS $LEXLIB"
10639cat >conftest.$ac_ext <<_ACEOF
10640`cat $LEX_OUTPUT_ROOT.c`
10641_ACEOF
10642rm -f conftest.$ac_objext conftest$ac_exeext
10643if { (eval echo "$as_me:10643: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10645 ac_status=$?
10646 echo "$as_me:10646: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (eval echo "$as_me:10649: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:10652: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 10655else
5c6fa7d2
RR
10656 echo "$as_me: failed program was:" >&5
10657cat conftest.$ac_ext >&5
10658fi
10659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660LIBS=$ac_save_LIBS
10661rm -f "${LEX_OUTPUT_ROOT}.c"
10662
10663fi
10664echo "$as_me:10664: result: $ac_cv_prog_lex_yytext_pointer" >&5
10665echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10666if test $ac_cv_prog_lex_yytext_pointer = yes; then
10667
10668cat >>confdefs.h <<\EOF
10669#define YYTEXT_POINTER 1
10670EOF
10671
10f2d63a
VZ
10672fi
10673
5c6fa7d2 10674fi
10f2d63a 10675
5c6fa7d2
RR
10676echo "$as_me:10676: checking whether ln -s works" >&5
10677echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10678LN_S=$as_ln_s
10679if test "$LN_S" = "ln -s"; then
10680 echo "$as_me:10680: result: yes" >&5
10681echo "${ECHO_T}yes" >&6
10682else
10683 echo "$as_me:10683: result: no, using $LN_S" >&5
10684echo "${ECHO_T}no, using $LN_S" >&6
10685fi
10f2d63a 10686
21d1c967 10687if test "$wxUSE_MAC" != 1; then
5c6fa7d2
RR
10688
10689for ac_header in strings.h
21d1c967 10690do
5c6fa7d2
RR
10691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692echo "$as_me:10692: checking for $ac_header" >&5
10693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10694if eval "test \"\${$as_ac_Header+set}\" = set"; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 cat >conftest.$ac_ext <<_ACEOF
10698#line 10698 "configure"
19bc6aad 10699#include "confdefs.h"
5c6fa7d2
RR
10700#include <$ac_header>
10701_ACEOF
10702if { (eval echo "$as_me:10702: \"$ac_cpp conftest.$ac_ext\"") >&5
10703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10704 ac_status=$?
10705 egrep -v '^ *\+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:10708: \$? = $ac_status" >&5
10709 (exit $ac_status); } >/dev/null; then
10710 if test -s conftest.err; then
10711 ac_cpp_err=$ac_c_preproc_warn_flag
10712 else
10713 ac_cpp_err=
10714 fi
10715else
10716 ac_cpp_err=yes
10717fi
10718if test -z "$ac_cpp_err"; then
10719 eval "$as_ac_Header=yes"
7b4a847f 10720else
5c6fa7d2 10721 echo "$as_me: failed program was:" >&5
19bc6aad 10722 cat conftest.$ac_ext >&5
5c6fa7d2 10723 eval "$as_ac_Header=no"
19bc6aad 10724fi
5c6fa7d2 10725rm -f conftest.err conftest.$ac_ext
19bc6aad 10726fi
5c6fa7d2
RR
10727echo "$as_me:10727: result: `eval echo '${'$as_ac_Header'}'`" >&5
10728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10729if test `eval echo '${'$as_ac_Header'}'` = yes; then
10730 cat >>confdefs.h <<EOF
10731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19bc6aad 10732EOF
5c6fa7d2 10733
21d1c967
GD
10734fi
10735done
19bc6aad 10736
19bc6aad
VZ
10737fi
10738
5c6fa7d2 10739for ac_header in stdlib.h
21d1c967 10740do
5c6fa7d2
RR
10741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742echo "$as_me:10742: checking for $ac_header" >&5
10743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10744if eval "test \"\${$as_ac_Header+set}\" = set"; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747 cat >conftest.$ac_ext <<_ACEOF
10748#line 10748 "configure"
18dbb1f6 10749#include "confdefs.h"
5c6fa7d2
RR
10750#include <$ac_header>
10751_ACEOF
10752if { (eval echo "$as_me:10752: \"$ac_cpp conftest.$ac_ext\"") >&5
10753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10754 ac_status=$?
10755 egrep -v '^ *\+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null; then
10760 if test -s conftest.err; then
10761 ac_cpp_err=$ac_c_preproc_warn_flag
10762 else
10763 ac_cpp_err=
10764 fi
10765else
10766 ac_cpp_err=yes
10767fi
10768if test -z "$ac_cpp_err"; then
10769 eval "$as_ac_Header=yes"
7b4a847f 10770else
5c6fa7d2 10771 echo "$as_me: failed program was:" >&5
18dbb1f6 10772 cat conftest.$ac_ext >&5
5c6fa7d2 10773 eval "$as_ac_Header=no"
18dbb1f6 10774fi
5c6fa7d2 10775rm -f conftest.err conftest.$ac_ext
90dd450c 10776fi
5c6fa7d2
RR
10777echo "$as_me:10777: result: `eval echo '${'$as_ac_Header'}'`" >&5
10778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10779if test `eval echo '${'$as_ac_Header'}'` = yes; then
10780 cat >>confdefs.h <<EOF
10781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 10782EOF
5c6fa7d2 10783
21d1c967
GD
10784fi
10785done
90dd450c 10786
5c6fa7d2 10787for ac_header in malloc.h
21d1c967 10788do
5c6fa7d2
RR
10789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10790echo "$as_me:10790: checking for $ac_header" >&5
10791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10792if eval "test \"\${$as_ac_Header+set}\" = set"; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794else
10795 cat >conftest.$ac_ext <<_ACEOF
10796#line 10796 "configure"
90dd450c 10797#include "confdefs.h"
5c6fa7d2
RR
10798#include <$ac_header>
10799_ACEOF
10800if { (eval echo "$as_me:10800: \"$ac_cpp conftest.$ac_ext\"") >&5
10801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10802 ac_status=$?
10803 egrep -v '^ *\+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:10806: \$? = $ac_status" >&5
10807 (exit $ac_status); } >/dev/null; then
10808 if test -s conftest.err; then
10809 ac_cpp_err=$ac_c_preproc_warn_flag
10810 else
10811 ac_cpp_err=
10812 fi
10813else
10814 ac_cpp_err=yes
10815fi
10816if test -z "$ac_cpp_err"; then
10817 eval "$as_ac_Header=yes"
7b4a847f 10818else
5c6fa7d2 10819 echo "$as_me: failed program was:" >&5
18dbb1f6 10820 cat conftest.$ac_ext >&5
5c6fa7d2 10821 eval "$as_ac_Header=no"
18dbb1f6 10822fi
5c6fa7d2 10823rm -f conftest.err conftest.$ac_ext
18dbb1f6 10824fi
5c6fa7d2
RR
10825echo "$as_me:10825: result: `eval echo '${'$as_ac_Header'}'`" >&5
10826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10827if test `eval echo '${'$as_ac_Header'}'` = yes; then
10828 cat >>confdefs.h <<EOF
10829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4f14bcd8 10830EOF
5c6fa7d2 10831
21d1c967
GD
10832fi
10833done
dad6c0ea 10834
5c6fa7d2 10835for ac_header in unistd.h
21d1c967 10836do
5c6fa7d2
RR
10837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10838echo "$as_me:10838: checking for $ac_header" >&5
10839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10840if eval "test \"\${$as_ac_Header+set}\" = set"; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 cat >conftest.$ac_ext <<_ACEOF
10844#line 10844 "configure"
3a922bb4 10845#include "confdefs.h"
5c6fa7d2
RR
10846#include <$ac_header>
10847_ACEOF
10848if { (eval echo "$as_me:10848: \"$ac_cpp conftest.$ac_ext\"") >&5
10849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10850 ac_status=$?
10851 egrep -v '^ *\+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:10854: \$? = $ac_status" >&5
10855 (exit $ac_status); } >/dev/null; then
10856 if test -s conftest.err; then
10857 ac_cpp_err=$ac_c_preproc_warn_flag
10858 else
10859 ac_cpp_err=
10860 fi
10861else
10862 ac_cpp_err=yes
10863fi
10864if test -z "$ac_cpp_err"; then
10865 eval "$as_ac_Header=yes"
7b4a847f 10866else
5c6fa7d2 10867 echo "$as_me: failed program was:" >&5
3a922bb4 10868 cat conftest.$ac_ext >&5
5c6fa7d2 10869 eval "$as_ac_Header=no"
3a922bb4 10870fi
5c6fa7d2 10871rm -f conftest.err conftest.$ac_ext
90dd450c 10872fi
5c6fa7d2
RR
10873echo "$as_me:10873: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10875if test `eval echo '${'$as_ac_Header'}'` = yes; then
10876 cat >>confdefs.h <<EOF
10877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 10878EOF
5c6fa7d2 10879
21d1c967
GD
10880fi
10881done
90dd450c 10882
5c6fa7d2 10883for ac_header in wchar.h
21d1c967 10884do
5c6fa7d2
RR
10885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10886echo "$as_me:10886: checking for $ac_header" >&5
10887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10888if eval "test \"\${$as_ac_Header+set}\" = set"; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890else
10891 cat >conftest.$ac_ext <<_ACEOF
10892#line 10892 "configure"
4f14bcd8 10893#include "confdefs.h"
5c6fa7d2
RR
10894#include <$ac_header>
10895_ACEOF
10896if { (eval echo "$as_me:10896: \"$ac_cpp conftest.$ac_ext\"") >&5
10897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10898 ac_status=$?
10899 egrep -v '^ *\+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:10902: \$? = $ac_status" >&5
10903 (exit $ac_status); } >/dev/null; then
10904 if test -s conftest.err; then
10905 ac_cpp_err=$ac_c_preproc_warn_flag
10906 else
10907 ac_cpp_err=
10908 fi
10909else
10910 ac_cpp_err=yes
10911fi
10912if test -z "$ac_cpp_err"; then
10913 eval "$as_ac_Header=yes"
7b4a847f 10914else
5c6fa7d2 10915 echo "$as_me: failed program was:" >&5
4f14bcd8 10916 cat conftest.$ac_ext >&5
5c6fa7d2 10917 eval "$as_ac_Header=no"
3a922bb4 10918fi
5c6fa7d2 10919rm -f conftest.err conftest.$ac_ext
4f14bcd8 10920fi
5c6fa7d2
RR
10921echo "$as_me:10921: result: `eval echo '${'$as_ac_Header'}'`" >&5
10922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10923if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924 cat >>confdefs.h <<EOF
10925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4f14bcd8 10926EOF
5c6fa7d2 10927
21d1c967
GD
10928fi
10929done
4f14bcd8 10930
52127426 10931if test "$ac_cv_header_wchar_h" != "yes"; then
5c6fa7d2
RR
10932
10933for ac_header in wcstr.h
21d1c967 10934do
5c6fa7d2
RR
10935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10936echo "$as_me:10936: checking for $ac_header" >&5
10937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10938if eval "test \"\${$as_ac_Header+set}\" = set"; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 cat >conftest.$ac_ext <<_ACEOF
10942#line 10942 "configure"
d4158b5d 10943#include "confdefs.h"
5c6fa7d2
RR
10944#include <$ac_header>
10945_ACEOF
10946if { (eval echo "$as_me:10946: \"$ac_cpp conftest.$ac_ext\"") >&5
10947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10948 ac_status=$?
10949 egrep -v '^ *\+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:10952: \$? = $ac_status" >&5
10953 (exit $ac_status); } >/dev/null; then
10954 if test -s conftest.err; then
10955 ac_cpp_err=$ac_c_preproc_warn_flag
10956 else
10957 ac_cpp_err=
10958 fi
10959else
10960 ac_cpp_err=yes
10961fi
10962if test -z "$ac_cpp_err"; then
10963 eval "$as_ac_Header=yes"
d4158b5d 10964else
5c6fa7d2 10965 echo "$as_me: failed program was:" >&5
d4158b5d 10966 cat conftest.$ac_ext >&5
5c6fa7d2 10967 eval "$as_ac_Header=no"
d4158b5d 10968fi
5c6fa7d2 10969rm -f conftest.err conftest.$ac_ext
21d1c967 10970fi
5c6fa7d2
RR
10971echo "$as_me:10971: result: `eval echo '${'$as_ac_Header'}'`" >&5
10972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10973if test `eval echo '${'$as_ac_Header'}'` = yes; then
10974 cat >>confdefs.h <<EOF
10975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21d1c967 10976EOF
5c6fa7d2 10977
d4158b5d 10978fi
21d1c967 10979done
f6bcfd97 10980
90dd450c 10981fi
90dd450c 10982
5c6fa7d2 10983for ac_header in fnmatch.h
21d1c967 10984do
5c6fa7d2
RR
10985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10986echo "$as_me:10986: checking for $ac_header" >&5
10987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10988if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 cat >conftest.$ac_ext <<_ACEOF
10992#line 10992 "configure"
90dd450c 10993#include "confdefs.h"
5c6fa7d2
RR
10994#include <$ac_header>
10995_ACEOF
10996if { (eval echo "$as_me:10996: \"$ac_cpp conftest.$ac_ext\"") >&5
10997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10998 ac_status=$?
10999 egrep -v '^ *\+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 echo "$as_me:11002: \$? = $ac_status" >&5
11003 (exit $ac_status); } >/dev/null; then
11004 if test -s conftest.err; then
11005 ac_cpp_err=$ac_c_preproc_warn_flag
11006 else
11007 ac_cpp_err=
11008 fi
11009else
11010 ac_cpp_err=yes
11011fi
11012if test -z "$ac_cpp_err"; then
11013 eval "$as_ac_Header=yes"
3a922bb4 11014else
5c6fa7d2 11015 echo "$as_me: failed program was:" >&5
3a922bb4 11016 cat conftest.$ac_ext >&5
5c6fa7d2 11017 eval "$as_ac_Header=no"
3a922bb4 11018fi
5c6fa7d2 11019rm -f conftest.err conftest.$ac_ext
4f14bcd8 11020fi
5c6fa7d2
RR
11021echo "$as_me:11021: result: `eval echo '${'$as_ac_Header'}'`" >&5
11022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11023if test `eval echo '${'$as_ac_Header'}'` = yes; then
11024 cat >>confdefs.h <<EOF
11025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 11026EOF
5c6fa7d2 11027
21d1c967
GD
11028fi
11029done
90dd450c 11030
52127426 11031if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
5c6fa7d2
RR
11032
11033for ac_func in fnmatch
21d1c967 11034do
5c6fa7d2
RR
11035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11036echo "$as_me:11036: checking for $ac_func" >&5
11037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11038if eval "test \"\${$as_ac_var+set}\" = set"; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040else
11041 cat >conftest.$ac_ext <<_ACEOF
11042#line 11042 "configure"
90dd450c 11043#include "confdefs.h"
21d1c967 11044/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 11045 which can conflict with char $ac_func (); below. */
21d1c967
GD
11046#include <assert.h>
11047/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
11048#ifdef __cplusplus
11049extern "C"
11050#endif
21d1c967 11051/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
11052 builtin and then its argument prototype would still apply. */
11053char $ac_func ();
11054char (*f) ();
21d1c967 11055
5c6fa7d2
RR
11056int
11057main ()
11058{
21d1c967
GD
11059/* The GNU C library defines this for functions which it implements
11060 to always fail with ENOSYS. Some functions are actually named
11061 something starting with __ and the normal name is an alias. */
11062#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11063choke me
11064#else
5c6fa7d2 11065f = $ac_func;
21d1c967
GD
11066#endif
11067
5c6fa7d2
RR
11068 ;
11069 return 0;
11070}
11071_ACEOF
11072rm -f conftest.$ac_objext conftest$ac_exeext
11073if { (eval echo "$as_me:11073: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11075 ac_status=$?
11076 echo "$as_me:11076: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (eval echo "$as_me:11079: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11081 ac_status=$?
11082 echo "$as_me:11082: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 eval "$as_ac_var=yes"
11085else
11086 echo "$as_me: failed program was:" >&5
11087cat conftest.$ac_ext >&5
11088eval "$as_ac_var=no"
11089fi
11090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11091fi
11092echo "$as_me:11092: result: `eval echo '${'$as_ac_var'}'`" >&5
11093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11094if test `eval echo '${'$as_ac_var'}'` = yes; then
11095 cat >>confdefs.h <<EOF
11096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
90dd450c 11097EOF
32832908 11098
21d1c967
GD
11099fi
11100done
90dd450c 11101
21d1c967 11102fi
90dd450c 11103
5c6fa7d2 11104for ac_header in langinfo.h
21d1c967 11105do
5c6fa7d2
RR
11106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11107echo "$as_me:11107: checking for $ac_header" >&5
11108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11109if eval "test \"\${$as_ac_Header+set}\" = set"; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 cat >conftest.$ac_ext <<_ACEOF
11113#line 11113 "configure"
90dd450c 11114#include "confdefs.h"
5c6fa7d2
RR
11115#include <$ac_header>
11116_ACEOF
11117if { (eval echo "$as_me:11117: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11119 ac_status=$?
11120 egrep -v '^ *\+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:11123: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null; then
11125 if test -s conftest.err; then
11126 ac_cpp_err=$ac_c_preproc_warn_flag
11127 else
11128 ac_cpp_err=
11129 fi
11130else
11131 ac_cpp_err=yes
11132fi
11133if test -z "$ac_cpp_err"; then
11134 eval "$as_ac_Header=yes"
7b4a847f 11135else
5c6fa7d2 11136 echo "$as_me: failed program was:" >&5
90dd450c 11137 cat conftest.$ac_ext >&5
5c6fa7d2 11138 eval "$as_ac_Header=no"
90dd450c 11139fi
5c6fa7d2 11140rm -f conftest.err conftest.$ac_ext
4f14bcd8 11141fi
5c6fa7d2
RR
11142echo "$as_me:11142: result: `eval echo '${'$as_ac_Header'}'`" >&5
11143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11144if test `eval echo '${'$as_ac_Header'}'` = yes; then
11145 cat >>confdefs.h <<EOF
11146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
90dd450c 11147EOF
5c6fa7d2 11148
21d1c967
GD
11149fi
11150done
3a922bb4 11151
21d1c967
GD
11152if test "$wxUSE_GUI" = "yes"; then
11153 if test "$wxUSE_UNIX" = "yes"; then
5c6fa7d2
RR
11154
11155for ac_header in X11/XKBlib.h
21d1c967 11156do
5c6fa7d2
RR
11157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158echo "$as_me:11158: checking for $ac_header" >&5
11159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11160if eval "test \"\${$as_ac_Header+set}\" = set"; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11162else
11163 cat >conftest.$ac_ext <<_ACEOF
11164#line 11164 "configure"
90dd450c 11165#include "confdefs.h"
5c6fa7d2
RR
11166#include <$ac_header>
11167_ACEOF
11168if { (eval echo "$as_me:11168: \"$ac_cpp conftest.$ac_ext\"") >&5
11169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11170 ac_status=$?
11171 egrep -v '^ *\+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:11174: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_c_preproc_warn_flag
11178 else
11179 ac_cpp_err=
11180 fi
328a083c 11181else
5c6fa7d2
RR
11182 ac_cpp_err=yes
11183fi
11184if test -z "$ac_cpp_err"; then
11185 eval "$as_ac_Header=yes"
11186else
11187 echo "$as_me: failed program was:" >&5
90dd450c 11188 cat conftest.$ac_ext >&5
5c6fa7d2 11189 eval "$as_ac_Header=no"
3a922bb4 11190fi
5c6fa7d2 11191rm -f conftest.err conftest.$ac_ext
90dd450c 11192fi
5c6fa7d2
RR
11193echo "$as_me:11193: result: `eval echo '${'$as_ac_Header'}'`" >&5
11194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11195if test `eval echo '${'$as_ac_Header'}'` = yes; then
11196 cat >>confdefs.h <<EOF
11197#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4f14bcd8 11198EOF
5c6fa7d2 11199
21d1c967
GD
11200fi
11201done
10f2d63a 11202
21d1c967 11203 fi
90dd450c 11204fi
81809c07 11205
5c6fa7d2
RR
11206echo "$as_me:11206: checking for $CC option to accept ANSI C" >&5
11207echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11208if test "${ac_cv_prog_cc_stdc+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 11210else
5c6fa7d2
RR
11211 ac_cv_prog_cc_stdc=no
11212ac_save_CC=$CC
11213cat >conftest.$ac_ext <<_ACEOF
11214#line 11214 "configure"
4f14bcd8 11215#include "confdefs.h"
5c6fa7d2
RR
11216#include <stdarg.h>
11217#include <stdio.h>
11218#include <sys/types.h>
11219#include <sys/stat.h>
11220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11221struct buf { int x; };
11222FILE * (*rcsopen) (struct buf *, struct stat *, int);
11223static char *e (p, i)
11224 char **p;
11225 int i;
11226{
11227 return p[i];
328a083c 11228}
5c6fa7d2
RR
11229static char *f (char * (*g) (char **, int), char **p, ...)
11230{
11231 char *s;
11232 va_list v;
11233 va_start (v,p);
11234 s = g (p, va_arg (v,int));
11235 va_end (v);
11236 return s;
52127426 11237}
5c6fa7d2
RR
11238int test (int i, double x);
11239struct s1 {int (*f) (int a);};
11240struct s2 {int (*f) (double a);};
11241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11242int argc;
11243char **argv;
11244int
11245main ()
11246{
11247return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11248 ;
11249 return 0;
7b4a847f 11250}
5c6fa7d2
RR
11251_ACEOF
11252# Don't try gcc -ansi; that turns off useful extensions and
11253# breaks some systems' header files.
11254# AIX -qlanglvl=ansi
11255# Ultrix and OSF/1 -std1
11256# HP-UX 10.20 and later -Ae
11257# HP-UX older versions -Aa -D_HPUX_SOURCE
11258# SVR4 -Xc -D__EXTENSIONS__
11259for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11260do
11261 CC="$ac_save_CC $ac_arg"
11262 rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:11263: \"$ac_compile\"") >&5
11264 (eval $ac_compile) 2>&5
11265 ac_status=$?
11266 echo "$as_me:11266: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -s conftest.$ac_objext'
11269 { (eval echo "$as_me:11269: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:11272: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 ac_cv_prog_cc_stdc=$ac_arg
11275break
11276else
11277 echo "$as_me: failed program was:" >&5
11278cat conftest.$ac_ext >&5
11279fi
11280rm -f conftest.$ac_objext
11281done
11282rm -f conftest.$ac_ext conftest.$ac_objext
11283CC=$ac_save_CC
52127426 11284
5c6fa7d2
RR
11285fi
11286
11287case "x$ac_cv_prog_cc_stdc" in
11288 x|xno)
11289 echo "$as_me:11289: result: none needed" >&5
11290echo "${ECHO_T}none needed" >&6 ;;
11291 *)
11292 echo "$as_me:11292: result: $ac_cv_prog_cc_stdc" >&5
11293echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11294 CC="$CC $ac_cv_prog_cc_stdc" ;;
11295esac
11296
11297echo "$as_me:11297: checking for an ANSI C-conforming const" >&5
11298echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11299if test "${ac_cv_c_const+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302 cat >conftest.$ac_ext <<_ACEOF
11303#line 11303 "configure"
11304#include "confdefs.h"
11305
11306int
11307main ()
11308{
11309/* FIXME: Include the comments suggested by Paul. */
11310#ifndef __cplusplus
11311 /* Ultrix mips cc rejects this. */
11312 typedef int charset[2];
11313 const charset x;
11314 /* SunOS 4.1.1 cc rejects this. */
11315 char const *const *ccp;
11316 char **p;
11317 /* NEC SVR4.0.2 mips cc rejects this. */
11318 struct point {int x, y;};
11319 static struct point const zero = {0,0};
11320 /* AIX XL C 1.02.0.0 rejects this.
11321 It does not let you subtract one const X* pointer from another in
11322 an arm of an if-expression whose if-part is not a constant
11323 expression */
11324 const char *g = "string";
11325 ccp = &g + (g ? g-g : 0);
11326 /* HPUX 7.0 cc rejects these. */
11327 ++ccp;
11328 p = (char**) ccp;
11329 ccp = (char const *const *) p;
11330 { /* SCO 3.2v4 cc rejects this. */
11331 char *t;
11332 char const *s = 0 ? (char *) 0 : (char const *) 0;
11333
11334 *t++ = 0;
11335 }
11336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11337 int x[] = {25, 17};
11338 const int *foo = &x[0];
11339 ++foo;
11340 }
11341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11342 typedef const int *iptr;
11343 iptr p = 0;
11344 ++p;
11345 }
11346 { /* AIX XL C 1.02.0.0 rejects this saying
11347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11348 struct s { int j; const int *ap[3]; };
11349 struct s *b; b->j = 5;
11350 }
11351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11352 const int foo = 10;
11353 }
11354#endif
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:11361: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>&5
11363 ac_status=$?
11364 echo "$as_me:11364: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -s conftest.$ac_objext'
11367 { (eval echo "$as_me:11367: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:11370: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
21d1c967 11372 ac_cv_c_const=yes
6f72b082 11373else
5c6fa7d2
RR
11374 echo "$as_me: failed program was:" >&5
11375cat conftest.$ac_ext >&5
11376ac_cv_c_const=no
4f14bcd8 11377fi
5c6fa7d2 11378rm -f conftest.$ac_objext conftest.$ac_ext
698dcdb6 11379fi
5c6fa7d2
RR
11380echo "$as_me:11380: result: $ac_cv_c_const" >&5
11381echo "${ECHO_T}$ac_cv_c_const" >&6
52127426 11382if test $ac_cv_c_const = no; then
5c6fa7d2
RR
11383
11384cat >>confdefs.h <<\EOF
11385#define const
90dd450c
VZ
11386EOF
11387
21d1c967 11388fi
90dd450c 11389
5c6fa7d2
RR
11390echo "$as_me:11390: checking for inline" >&5
11391echo $ECHO_N "checking for inline... $ECHO_C" >&6
11392if test "${ac_cv_c_inline+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
6f72b082 11394else
21d1c967
GD
11395 ac_cv_c_inline=no
11396for ac_kw in inline __inline__ __inline; do
5c6fa7d2
RR
11397 cat >conftest.$ac_ext <<_ACEOF
11398#line 11398 "configure"
4f14bcd8 11399#include "confdefs.h"
5c6fa7d2
RR
11400#ifndef __cplusplus
11401static $ac_kw int static_foo () {return 0; }
11402$ac_kw int foo () {return 0; }
11403#endif
90dd450c 11404
5c6fa7d2
RR
11405_ACEOF
11406rm -f conftest.$ac_objext
11407if { (eval echo "$as_me:11407: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>&5
11409 ac_status=$?
11410 echo "$as_me:11410: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:11413: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:11416: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
21d1c967 11418 ac_cv_c_inline=$ac_kw; break
6f72b082 11419else
5c6fa7d2
RR
11420 echo "$as_me: failed program was:" >&5
11421cat conftest.$ac_ext >&5
698dcdb6 11422fi
5c6fa7d2 11423rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 11424done
4f14bcd8 11425
21d1c967 11426fi
5c6fa7d2
RR
11427echo "$as_me:11427: result: $ac_cv_c_inline" >&5
11428echo "${ECHO_T}$ac_cv_c_inline" >&6
11429case $ac_cv_c_inline in
21d1c967 11430 inline | yes) ;;
5c6fa7d2
RR
11431 no)
11432cat >>confdefs.h <<\EOF
11433#define inline
90dd450c 11434EOF
21d1c967 11435 ;;
5c6fa7d2 11436 *) cat >>confdefs.h <<EOF
21d1c967 11437#define inline $ac_cv_c_inline
4f14bcd8 11438EOF
21d1c967
GD
11439 ;;
11440esac
4f14bcd8 11441
5c6fa7d2
RR
11442echo "$as_me:11442: checking for ANSI C header files" >&5
11443echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11444if test "${ac_cv_header_stdc+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 11446else
5c6fa7d2
RR
11447 cat >conftest.$ac_ext <<_ACEOF
11448#line 11448 "configure"
7b4a847f 11449#include "confdefs.h"
5c6fa7d2
RR
11450#include <stdlib.h>
11451#include <stdarg.h>
11452#include <string.h>
11453#include <float.h>
11454
11455_ACEOF
11456if { (eval echo "$as_me:11456: \"$ac_cpp conftest.$ac_ext\"") >&5
11457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11458 ac_status=$?
11459 egrep -v '^ *\+' conftest.er1 >conftest.err
11460 rm -f conftest.er1
11461 cat conftest.err >&5
11462 echo "$as_me:11462: \$? = $ac_status" >&5
11463 (exit $ac_status); } >/dev/null; then
11464 if test -s conftest.err; then
11465 ac_cpp_err=$ac_c_preproc_warn_flag
11466 else
11467 ac_cpp_err=
11468 fi
7b4a847f 11469else
5c6fa7d2 11470 ac_cpp_err=yes
52127426 11471fi
5c6fa7d2
RR
11472if test -z "$ac_cpp_err"; then
11473 ac_cv_header_stdc=yes
11474else
11475 echo "$as_me: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11477 ac_cv_header_stdc=no
328a083c 11478fi
5c6fa7d2
RR
11479rm -f conftest.err conftest.$ac_ext
11480
11481if test $ac_cv_header_stdc = yes; then
11482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11483 cat >conftest.$ac_ext <<_ACEOF
11484#line 11484 "configure"
11485#include "confdefs.h"
11486#include <string.h>
328a083c 11487
5c6fa7d2
RR
11488_ACEOF
11489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11490 egrep "memchr" >/dev/null 2>&1; then
11491 :
11492else
11493 ac_cv_header_stdc=no
7b4a847f 11494fi
5c6fa7d2 11495rm -f conftest*
328a083c 11496
5c6fa7d2 11497fi
7b4a847f 11498
5c6fa7d2
RR
11499if test $ac_cv_header_stdc = yes; then
11500 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11501 cat >conftest.$ac_ext <<_ACEOF
11502#line 11502 "configure"
11503#include "confdefs.h"
11504#include <stdlib.h>
11505
11506_ACEOF
11507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11508 egrep "free" >/dev/null 2>&1; then
11509 :
7b4a847f 11510else
5c6fa7d2
RR
11511 ac_cv_header_stdc=no
11512fi
11513rm -f conftest*
11514
11515fi
11516
11517if test $ac_cv_header_stdc = yes; then
11518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21d1c967 11519 if test "$cross_compiling" = yes; then
5c6fa7d2 11520 :
21d1c967 11521else
5c6fa7d2
RR
11522 cat >conftest.$ac_ext <<_ACEOF
11523#line 11523 "configure"
21d1c967 11524#include "confdefs.h"
5c6fa7d2
RR
11525#include <ctype.h>
11526#if ((' ' & 0x0FF) == 0x020)
11527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11529#else
11530# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11531 || ('j' <= (c) && (c) <= 'r') \
11532 || ('s' <= (c) && (c) <= 'z'))
11533# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11534#endif
11535
11536#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11537int
11538main ()
21d1c967 11539{
5c6fa7d2
RR
11540 int i;
11541 for (i = 0; i < 256; i++)
11542 if (XOR (islower (i), ISLOWER (i))
11543 || toupper (i) != TOUPPER (i))
11544 exit(2);
11545 exit (0);
21d1c967 11546}
5c6fa7d2
RR
11547_ACEOF
11548rm -f conftest$ac_exeext
11549if { (eval echo "$as_me:11549: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11551 ac_status=$?
11552 echo "$as_me:11552: \$? = $ac_status" >&5
11553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11554 { (eval echo "$as_me:11554: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:11557: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 :
21d1c967 11560else
5c6fa7d2
RR
11561 echo "$as_me: program exited with status $ac_status" >&5
11562echo "$as_me: failed program was:" >&5
11563cat conftest.$ac_ext >&5
11564ac_cv_header_stdc=no
11565fi
11566rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7b4a847f
RR
11567fi
11568fi
5c6fa7d2
RR
11569fi
11570echo "$as_me:11570: result: $ac_cv_header_stdc" >&5
11571echo "${ECHO_T}$ac_cv_header_stdc" >&6
11572if test $ac_cv_header_stdc = yes; then
11573
11574cat >>confdefs.h <<\EOF
11575#define STDC_HEADERS 1
11576EOF
4f14bcd8 11577
4f14bcd8 11578fi
5c6fa7d2
RR
11579
11580# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11581
11582for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11583 inttypes.h stdint.h unistd.h
11584do
11585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586echo "$as_me:11586: checking for $ac_header" >&5
11587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11588if eval "test \"\${$as_ac_Header+set}\" = set"; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
11591 cat >conftest.$ac_ext <<_ACEOF
11592#line 11592 "configure"
11593#include "confdefs.h"
11594$ac_includes_default
11595#include <$ac_header>
11596_ACEOF
11597rm -f conftest.$ac_objext
11598if { (eval echo "$as_me:11598: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>&5
11600 ac_status=$?
11601 echo "$as_me:11601: \$? = $ac_status" >&5
11602 (exit $ac_status); } &&
11603 { ac_try='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:11604: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 eval "$as_ac_Header=yes"
11610else
11611 echo "$as_me: failed program was:" >&5
11612cat conftest.$ac_ext >&5
11613eval "$as_ac_Header=no"
11614fi
11615rm -f conftest.$ac_objext conftest.$ac_ext
11616fi
11617echo "$as_me:11617: result: `eval echo '${'$as_ac_Header'}'`" >&5
11618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11619if test `eval echo '${'$as_ac_Header'}'` = yes; then
11620 cat >>confdefs.h <<EOF
11621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21d1c967 11622EOF
4f14bcd8 11623
5c6fa7d2
RR
11624fi
11625done
4f14bcd8 11626
5c6fa7d2
RR
11627echo "$as_me:11627: checking for char" >&5
11628echo $ECHO_N "checking for char... $ECHO_C" >&6
11629if test "${ac_cv_type_char+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 11631else
5c6fa7d2
RR
11632 cat >conftest.$ac_ext <<_ACEOF
11633#line 11633 "configure"
11634#include "confdefs.h"
11635$ac_includes_default
11636int
11637main ()
11638{
11639if ((char *) 0)
11640 return 0;
11641if (sizeof (char))
11642 return 0;
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext
11648if { (eval echo "$as_me:11648: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>&5
11650 ac_status=$?
11651 echo "$as_me:11651: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:11654: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:11657: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_cv_type_char=yes
11660else
11661 echo "$as_me: failed program was:" >&5
11662cat conftest.$ac_ext >&5
11663ac_cv_type_char=no
11664fi
11665rm -f conftest.$ac_objext conftest.$ac_ext
11666fi
11667echo "$as_me:11667: result: $ac_cv_type_char" >&5
11668echo "${ECHO_T}$ac_cv_type_char" >&6
11669
11670echo "$as_me:11670: checking size of char" >&5
11671echo $ECHO_N "checking size of char... $ECHO_C" >&6
11672if test "${ac_cv_sizeof_char+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674else
11675 if test "$ac_cv_type_char" = yes; then
7b4a847f 11676 if test "$cross_compiling" = yes; then
5c6fa7d2
RR
11677 # Depending upon the size, compute the lo and hi bounds.
11678cat >conftest.$ac_ext <<_ACEOF
11679#line 11679 "configure"
11680#include "confdefs.h"
11681$ac_includes_default
11682int
11683main ()
11684{
11685int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
11686 ;
11687 return 0;
11688}
11689_ACEOF
11690rm -f conftest.$ac_objext
11691if { (eval echo "$as_me:11691: \"$ac_compile\"") >&5
11692 (eval $ac_compile) 2>&5
11693 ac_status=$?
11694 echo "$as_me:11694: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -s conftest.$ac_objext'
11697 { (eval echo "$as_me:11697: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:11700: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_lo=0 ac_mid=0
11703 while :; do
11704 cat >conftest.$ac_ext <<_ACEOF
11705#line 11705 "configure"
11706#include "confdefs.h"
11707$ac_includes_default
11708int
11709main ()
11710{
11711int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
11712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext
11717if { (eval echo "$as_me:11717: \"$ac_compile\"") >&5
11718 (eval $ac_compile) 2>&5
11719 ac_status=$?
11720 echo "$as_me:11720: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:11723: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:11726: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_hi=$ac_mid; break
11729else
11730 echo "$as_me: failed program was:" >&5
11731cat conftest.$ac_ext >&5
11732ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11733fi
11734rm -f conftest.$ac_objext conftest.$ac_ext
11735 done
7b4a847f 11736else
5c6fa7d2
RR
11737 echo "$as_me: failed program was:" >&5
11738cat conftest.$ac_ext >&5
11739ac_hi=-1 ac_mid=-1
11740 while :; do
11741 cat >conftest.$ac_ext <<_ACEOF
11742#line 11742 "configure"
7b4a847f 11743#include "confdefs.h"
5c6fa7d2
RR
11744$ac_includes_default
11745int
11746main ()
11747{
11748int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
11749 ;
11750 return 0;
11751}
11752_ACEOF
11753rm -f conftest.$ac_objext
11754if { (eval echo "$as_me:11754: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>&5
11756 ac_status=$?
11757 echo "$as_me:11757: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:11760: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_lo=$ac_mid; break
11766else
11767 echo "$as_me: failed program was:" >&5
11768cat conftest.$ac_ext >&5
11769ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
11770fi
11771rm -f conftest.$ac_objext conftest.$ac_ext
11772 done
11773fi
11774rm -f conftest.$ac_objext conftest.$ac_ext
11775# Binary search between lo and hi bounds.
11776while test "x$ac_lo" != "x$ac_hi"; do
11777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11778 cat >conftest.$ac_ext <<_ACEOF
11779#line 11779 "configure"
11780#include "confdefs.h"
11781$ac_includes_default
11782int
11783main ()
21d1c967 11784{
5c6fa7d2
RR
11785int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
11786 ;
11787 return 0;
21d1c967 11788}
5c6fa7d2
RR
11789_ACEOF
11790rm -f conftest.$ac_objext
11791if { (eval echo "$as_me:11791: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>&5
11793 ac_status=$?
11794 echo "$as_me:11794: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:11797: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_hi=$ac_mid
11803else
11804 echo "$as_me: failed program was:" >&5
11805cat conftest.$ac_ext >&5
11806ac_lo=`expr $ac_mid + 1`
11807fi
11808rm -f conftest.$ac_objext conftest.$ac_ext
11809done
11810ac_cv_sizeof_char=$ac_lo
11811else
11812 if test "$cross_compiling" = yes; then
11813 { { echo "$as_me:11813: error: cannot run test program while cross compiling" >&5
11814echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11815 { (exit 1); exit 1; }; }
11816else
11817 cat >conftest.$ac_ext <<_ACEOF
11818#line 11818 "configure"
11819#include "confdefs.h"
11820$ac_includes_default
11821int
11822main ()
11823{
11824FILE *f = fopen ("conftest.val", "w");
11825if (!f)
11826 exit (1);
11827fprintf (f, "%d", (sizeof (char)));
11828fclose (f);
11829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest$ac_exeext
11834if { (eval echo "$as_me:11834: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>&5
11836 ac_status=$?
11837 echo "$as_me:11837: \$? = $ac_status" >&5
11838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11839 { (eval echo "$as_me:11839: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:11842: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_sizeof_char=`cat conftest.val`
11845else
11846 echo "$as_me: program exited with status $ac_status" >&5
11847echo "$as_me: failed program was:" >&5
11848cat conftest.$ac_ext >&5
11849fi
11850rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11851fi
11852fi
11853rm -f conftest.val
11854else
11855 ac_cv_sizeof_char=0
11856fi
11857fi
11858echo "$as_me:11858: result: $ac_cv_sizeof_char" >&5
11859echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11860cat >>confdefs.h <<EOF
11861#define SIZEOF_CHAR $ac_cv_sizeof_char
4f14bcd8 11862EOF
5c6fa7d2
RR
11863
11864echo "$as_me:11864: checking for short" >&5
11865echo $ECHO_N "checking for short... $ECHO_C" >&6
11866if test "${ac_cv_type_short+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 11868else
5c6fa7d2
RR
11869 cat >conftest.$ac_ext <<_ACEOF
11870#line 11870 "configure"
11871#include "confdefs.h"
11872$ac_includes_default
11873int
11874main ()
11875{
11876if ((short *) 0)
11877 return 0;
11878if (sizeof (short))
11879 return 0;
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext
11885if { (eval echo "$as_me:11885: \"$ac_compile\"") >&5
11886 (eval $ac_compile) 2>&5
11887 ac_status=$?
11888 echo "$as_me:11888: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest.$ac_objext'
11891 { (eval echo "$as_me:11891: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:11894: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_cv_type_short=yes
11897else
11898 echo "$as_me: failed program was:" >&5
11899cat conftest.$ac_ext >&5
11900ac_cv_type_short=no
11901fi
11902rm -f conftest.$ac_objext conftest.$ac_ext
11903fi
11904echo "$as_me:11904: result: $ac_cv_type_short" >&5
11905echo "${ECHO_T}$ac_cv_type_short" >&6
11906
11907echo "$as_me:11907: checking size of short" >&5
11908echo $ECHO_N "checking size of short... $ECHO_C" >&6
11909if test "${ac_cv_sizeof_short+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 if test "$ac_cv_type_short" = yes; then
11913 if test "$cross_compiling" = yes; then
11914 # Depending upon the size, compute the lo and hi bounds.
11915cat >conftest.$ac_ext <<_ACEOF
11916#line 11916 "configure"
11917#include "confdefs.h"
11918$ac_includes_default
11919int
11920main ()
11921{
11922int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (eval echo "$as_me:11928: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>&5
11930 ac_status=$?
11931 echo "$as_me:11931: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:11934: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:11937: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_lo=0 ac_mid=0
11940 while :; do
11941 cat >conftest.$ac_ext <<_ACEOF
11942#line 11942 "configure"
11943#include "confdefs.h"
11944$ac_includes_default
11945int
11946main ()
11947{
11948int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext
11954if { (eval echo "$as_me:11954: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>&5
11956 ac_status=$?
11957 echo "$as_me:11957: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -s conftest.$ac_objext'
11960 { (eval echo "$as_me:11960: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:11963: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_hi=$ac_mid; break
11966else
11967 echo "$as_me: failed program was:" >&5
11968cat conftest.$ac_ext >&5
11969ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
11970fi
11971rm -f conftest.$ac_objext conftest.$ac_ext
11972 done
11973else
11974 echo "$as_me: failed program was:" >&5
11975cat conftest.$ac_ext >&5
11976ac_hi=-1 ac_mid=-1
11977 while :; do
11978 cat >conftest.$ac_ext <<_ACEOF
11979#line 11979 "configure"
11980#include "confdefs.h"
11981$ac_includes_default
11982int
11983main ()
11984{
11985int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext
11991if { (eval echo "$as_me:11991: \"$ac_compile\"") >&5
11992 (eval $ac_compile) 2>&5
11993 ac_status=$?
11994 echo "$as_me:11994: \$? = $ac_status" >&5
11995 (exit $ac_status); } &&
11996 { ac_try='test -s conftest.$ac_objext'
11997 { (eval echo "$as_me:11997: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:12000: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_lo=$ac_mid; break
12003else
12004 echo "$as_me: failed program was:" >&5
12005cat conftest.$ac_ext >&5
12006ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12007fi
12008rm -f conftest.$ac_objext conftest.$ac_ext
12009 done
12010fi
12011rm -f conftest.$ac_objext conftest.$ac_ext
12012# Binary search between lo and hi bounds.
12013while test "x$ac_lo" != "x$ac_hi"; do
12014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12015 cat >conftest.$ac_ext <<_ACEOF
12016#line 12016 "configure"
12017#include "confdefs.h"
12018$ac_includes_default
12019int
12020main ()
12021{
12022int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
12023 ;
12024 return 0;
12025}
12026_ACEOF
12027rm -f conftest.$ac_objext
12028if { (eval echo "$as_me:12028: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>&5
12030 ac_status=$?
12031 echo "$as_me:12031: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -s conftest.$ac_objext'
12034 { (eval echo "$as_me:12034: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_hi=$ac_mid
12040else
12041 echo "$as_me: failed program was:" >&5
12042cat conftest.$ac_ext >&5
12043ac_lo=`expr $ac_mid + 1`
12044fi
12045rm -f conftest.$ac_objext conftest.$ac_ext
12046done
12047ac_cv_sizeof_short=$ac_lo
12048else
12049 if test "$cross_compiling" = yes; then
12050 { { echo "$as_me:12050: error: cannot run test program while cross compiling" >&5
12051echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12052 { (exit 1); exit 1; }; }
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055#line 12055 "configure"
12056#include "confdefs.h"
12057$ac_includes_default
12058int
12059main ()
12060{
12061FILE *f = fopen ("conftest.val", "w");
12062if (!f)
12063 exit (1);
12064fprintf (f, "%d", (sizeof (short)));
12065fclose (f);
12066 ;
12067 return 0;
12068}
12069_ACEOF
12070rm -f conftest$ac_exeext
12071if { (eval echo "$as_me:12071: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 echo "$as_me:12074: \$? = $ac_status" >&5
12075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12076 { (eval echo "$as_me:12076: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:12079: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_sizeof_short=`cat conftest.val`
12082else
12083 echo "$as_me: program exited with status $ac_status" >&5
12084echo "$as_me: failed program was:" >&5
12085cat conftest.$ac_ext >&5
12086fi
12087rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12088fi
12089fi
12090rm -f conftest.val
12091else
12092 ac_cv_sizeof_short=0
7b4a847f
RR
12093fi
12094fi
5c6fa7d2
RR
12095echo "$as_me:12095: result: $ac_cv_sizeof_short" >&5
12096echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12097cat >>confdefs.h <<EOF
12098#define SIZEOF_SHORT $ac_cv_sizeof_short
12099EOF
4f14bcd8 12100
5c6fa7d2
RR
12101echo "$as_me:12101: checking for void *" >&5
12102echo $ECHO_N "checking for void *... $ECHO_C" >&6
12103if test "${ac_cv_type_void_p+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 cat >conftest.$ac_ext <<_ACEOF
12107#line 12107 "configure"
12108#include "confdefs.h"
12109$ac_includes_default
12110int
12111main ()
12112{
12113if ((void * *) 0)
12114 return 0;
12115if (sizeof (void *))
12116 return 0;
12117 ;
12118 return 0;
12119}
12120_ACEOF
12121rm -f conftest.$ac_objext
12122if { (eval echo "$as_me:12122: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>&5
12124 ac_status=$?
12125 echo "$as_me:12125: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -s conftest.$ac_objext'
12128 { (eval echo "$as_me:12128: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:12131: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_type_void_p=yes
12134else
12135 echo "$as_me: failed program was:" >&5
12136cat conftest.$ac_ext >&5
12137ac_cv_type_void_p=no
12138fi
12139rm -f conftest.$ac_objext conftest.$ac_ext
12140fi
12141echo "$as_me:12141: result: $ac_cv_type_void_p" >&5
12142echo "${ECHO_T}$ac_cv_type_void_p" >&6
12143
12144echo "$as_me:12144: checking size of void *" >&5
12145echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12146if test "${ac_cv_sizeof_void_p+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148else
12149 if test "$ac_cv_type_void_p" = yes; then
12150 if test "$cross_compiling" = yes; then
12151 # Depending upon the size, compute the lo and hi bounds.
12152cat >conftest.$ac_ext <<_ACEOF
12153#line 12153 "configure"
12154#include "confdefs.h"
12155$ac_includes_default
12156int
12157main ()
12158{
12159int _array_ [1 - 2 * !((sizeof (void *)) >= 0)]
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext
12165if { (eval echo "$as_me:12165: \"$ac_compile\"") >&5
12166 (eval $ac_compile) 2>&5
12167 ac_status=$?
12168 echo "$as_me:12168: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:12171: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:12174: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_lo=0 ac_mid=0
12177 while :; do
12178 cat >conftest.$ac_ext <<_ACEOF
12179#line 12179 "configure"
12180#include "confdefs.h"
12181$ac_includes_default
12182int
12183main ()
12184{
12185int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
12186 ;
12187 return 0;
12188}
12189_ACEOF
12190rm -f conftest.$ac_objext
12191if { (eval echo "$as_me:12191: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>&5
12193 ac_status=$?
12194 echo "$as_me:12194: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:12197: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:12200: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_hi=$ac_mid; break
12203else
12204 echo "$as_me: failed program was:" >&5
12205cat conftest.$ac_ext >&5
12206ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12207fi
12208rm -f conftest.$ac_objext conftest.$ac_ext
12209 done
12210else
12211 echo "$as_me: failed program was:" >&5
12212cat conftest.$ac_ext >&5
12213ac_hi=-1 ac_mid=-1
12214 while :; do
12215 cat >conftest.$ac_ext <<_ACEOF
12216#line 12216 "configure"
12217#include "confdefs.h"
12218$ac_includes_default
12219int
12220main ()
12221{
12222int _array_ [1 - 2 * !((sizeof (void *)) >= $ac_mid)]
12223 ;
12224 return 0;
12225}
12226_ACEOF
12227rm -f conftest.$ac_objext
12228if { (eval echo "$as_me:12228: \"$ac_compile\"") >&5
12229 (eval $ac_compile) 2>&5
12230 ac_status=$?
12231 echo "$as_me:12231: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:12234: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:12237: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_lo=$ac_mid; break
12240else
12241 echo "$as_me: failed program was:" >&5
12242cat conftest.$ac_ext >&5
12243ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12244fi
12245rm -f conftest.$ac_objext conftest.$ac_ext
12246 done
12247fi
12248rm -f conftest.$ac_objext conftest.$ac_ext
12249# Binary search between lo and hi bounds.
12250while test "x$ac_lo" != "x$ac_hi"; do
12251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12252 cat >conftest.$ac_ext <<_ACEOF
12253#line 12253 "configure"
12254#include "confdefs.h"
12255$ac_includes_default
12256int
12257main ()
12258{
12259int _array_ [1 - 2 * !((sizeof (void *)) <= $ac_mid)]
12260 ;
12261 return 0;
12262}
12263_ACEOF
12264rm -f conftest.$ac_objext
12265if { (eval echo "$as_me:12265: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>&5
12267 ac_status=$?
12268 echo "$as_me:12268: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -s conftest.$ac_objext'
12271 { (eval echo "$as_me:12271: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:12274: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 ac_hi=$ac_mid
12277else
12278 echo "$as_me: failed program was:" >&5
12279cat conftest.$ac_ext >&5
12280ac_lo=`expr $ac_mid + 1`
12281fi
12282rm -f conftest.$ac_objext conftest.$ac_ext
12283done
12284ac_cv_sizeof_void_p=$ac_lo
12285else
12286 if test "$cross_compiling" = yes; then
12287 { { echo "$as_me:12287: error: cannot run test program while cross compiling" >&5
12288echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12289 { (exit 1); exit 1; }; }
12290else
12291 cat >conftest.$ac_ext <<_ACEOF
12292#line 12292 "configure"
12293#include "confdefs.h"
12294$ac_includes_default
12295int
12296main ()
12297{
12298FILE *f = fopen ("conftest.val", "w");
12299if (!f)
12300 exit (1);
12301fprintf (f, "%d", (sizeof (void *)));
12302fclose (f);
12303 ;
12304 return 0;
12305}
12306_ACEOF
12307rm -f conftest$ac_exeext
12308if { (eval echo "$as_me:12308: \"$ac_link\"") >&5
12309 (eval $ac_link) 2>&5
12310 ac_status=$?
12311 echo "$as_me:12311: \$? = $ac_status" >&5
12312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_sizeof_void_p=`cat conftest.val`
12319else
12320 echo "$as_me: program exited with status $ac_status" >&5
12321echo "$as_me: failed program was:" >&5
12322cat conftest.$ac_ext >&5
12323fi
12324rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12325fi
12326fi
12327rm -f conftest.val
12328else
12329 ac_cv_sizeof_void_p=0
12330fi
7b4a847f 12331fi
5c6fa7d2
RR
12332echo "$as_me:12332: result: $ac_cv_sizeof_void_p" >&5
12333echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12334cat >>confdefs.h <<EOF
21d1c967 12335#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
12336EOF
12337
5c6fa7d2
RR
12338echo "$as_me:12338: checking for int" >&5
12339echo $ECHO_N "checking for int... $ECHO_C" >&6
12340if test "${ac_cv_type_int+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 12342else
5c6fa7d2
RR
12343 cat >conftest.$ac_ext <<_ACEOF
12344#line 12344 "configure"
12345#include "confdefs.h"
12346$ac_includes_default
12347int
12348main ()
12349{
12350if ((int *) 0)
12351 return 0;
12352if (sizeof (int))
12353 return 0;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext
12359if { (eval echo "$as_me:12359: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12361 ac_status=$?
12362 echo "$as_me:12362: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:12365: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:12368: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_type_int=yes
12371else
12372 echo "$as_me: failed program was:" >&5
12373cat conftest.$ac_ext >&5
12374ac_cv_type_int=no
12375fi
12376rm -f conftest.$ac_objext conftest.$ac_ext
12377fi
12378echo "$as_me:12378: result: $ac_cv_type_int" >&5
12379echo "${ECHO_T}$ac_cv_type_int" >&6
12380
12381echo "$as_me:12381: checking size of int" >&5
12382echo $ECHO_N "checking size of int... $ECHO_C" >&6
12383if test "${ac_cv_sizeof_int+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385else
12386 if test "$ac_cv_type_int" = yes; then
328a083c 12387 if test "$cross_compiling" = yes; then
5c6fa7d2
RR
12388 # Depending upon the size, compute the lo and hi bounds.
12389cat >conftest.$ac_ext <<_ACEOF
12390#line 12390 "configure"
12391#include "confdefs.h"
12392$ac_includes_default
12393int
12394main ()
12395{
12396int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401rm -f conftest.$ac_objext
12402if { (eval echo "$as_me:12402: \"$ac_compile\"") >&5
12403 (eval $ac_compile) 2>&5
12404 ac_status=$?
12405 echo "$as_me:12405: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try='test -s conftest.$ac_objext'
12408 { (eval echo "$as_me:12408: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:12411: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_lo=0 ac_mid=0
12414 while :; do
12415 cat >conftest.$ac_ext <<_ACEOF
12416#line 12416 "configure"
12417#include "confdefs.h"
12418$ac_includes_default
12419int
12420main ()
12421{
12422int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext
12428if { (eval echo "$as_me:12428: \"$ac_compile\"") >&5
12429 (eval $ac_compile) 2>&5
12430 ac_status=$?
12431 echo "$as_me:12431: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -s conftest.$ac_objext'
12434 { (eval echo "$as_me:12434: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_hi=$ac_mid; break
12440else
12441 echo "$as_me: failed program was:" >&5
12442cat conftest.$ac_ext >&5
12443ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12444fi
12445rm -f conftest.$ac_objext conftest.$ac_ext
12446 done
328a083c 12447else
5c6fa7d2
RR
12448 echo "$as_me: failed program was:" >&5
12449cat conftest.$ac_ext >&5
12450ac_hi=-1 ac_mid=-1
12451 while :; do
12452 cat >conftest.$ac_ext <<_ACEOF
12453#line 12453 "configure"
328a083c 12454#include "confdefs.h"
5c6fa7d2
RR
12455$ac_includes_default
12456int
12457main ()
328a083c 12458{
5c6fa7d2
RR
12459int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
12460 ;
12461 return 0;
328a083c 12462}
5c6fa7d2
RR
12463_ACEOF
12464rm -f conftest.$ac_objext
12465if { (eval echo "$as_me:12465: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>&5
12467 ac_status=$?
12468 echo "$as_me:12468: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -s conftest.$ac_objext'
12471 { (eval echo "$as_me:12471: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:12474: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_lo=$ac_mid; break
12477else
12478 echo "$as_me: failed program was:" >&5
12479cat conftest.$ac_ext >&5
12480ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12481fi
12482rm -f conftest.$ac_objext conftest.$ac_ext
12483 done
12484fi
12485rm -f conftest.$ac_objext conftest.$ac_ext
12486# Binary search between lo and hi bounds.
12487while test "x$ac_lo" != "x$ac_hi"; do
12488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12489 cat >conftest.$ac_ext <<_ACEOF
12490#line 12490 "configure"
12491#include "confdefs.h"
12492$ac_includes_default
12493int
12494main ()
12495{
12496int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
12497 ;
12498 return 0;
12499}
12500_ACEOF
12501rm -f conftest.$ac_objext
12502if { (eval echo "$as_me:12502: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12504 ac_status=$?
12505 echo "$as_me:12505: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (eval echo "$as_me:12508: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:12511: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513 ac_hi=$ac_mid
12514else
12515 echo "$as_me: failed program was:" >&5
12516cat conftest.$ac_ext >&5
12517ac_lo=`expr $ac_mid + 1`
12518fi
12519rm -f conftest.$ac_objext conftest.$ac_ext
12520done
12521ac_cv_sizeof_int=$ac_lo
7b4a847f 12522else
5c6fa7d2
RR
12523 if test "$cross_compiling" = yes; then
12524 { { echo "$as_me:12524: error: cannot run test program while cross compiling" >&5
12525echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12526 { (exit 1); exit 1; }; }
12527else
12528 cat >conftest.$ac_ext <<_ACEOF
12529#line 12529 "configure"
12530#include "confdefs.h"
12531$ac_includes_default
12532int
12533main ()
12534{
12535FILE *f = fopen ("conftest.val", "w");
12536if (!f)
12537 exit (1);
12538fprintf (f, "%d", (sizeof (int)));
12539fclose (f);
12540 ;
12541 return 0;
12542}
12543_ACEOF
12544rm -f conftest$ac_exeext
12545if { (eval echo "$as_me:12545: \"$ac_link\"") >&5
12546 (eval $ac_link) 2>&5
12547 ac_status=$?
12548 echo "$as_me:12548: \$? = $ac_status" >&5
12549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12550 { (eval echo "$as_me:12550: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:12553: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 ac_cv_sizeof_int=`cat conftest.val`
12556else
12557 echo "$as_me: program exited with status $ac_status" >&5
12558echo "$as_me: failed program was:" >&5
12559cat conftest.$ac_ext >&5
21d1c967 12560fi
5c6fa7d2 12561rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
579d8138 12562fi
52127426 12563fi
5c6fa7d2
RR
12564rm -f conftest.val
12565else
12566 ac_cv_sizeof_int=0
12567fi
12568fi
12569echo "$as_me:12569: result: $ac_cv_sizeof_int" >&5
12570echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12571cat >>confdefs.h <<EOF
21d1c967 12572#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
12573EOF
12574
5c6fa7d2
RR
12575echo "$as_me:12575: checking for long" >&5
12576echo $ECHO_N "checking for long... $ECHO_C" >&6
12577if test "${ac_cv_type_long+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 12579else
5c6fa7d2
RR
12580 cat >conftest.$ac_ext <<_ACEOF
12581#line 12581 "configure"
12582#include "confdefs.h"
12583$ac_includes_default
12584int
12585main ()
12586{
12587if ((long *) 0)
12588 return 0;
12589if (sizeof (long))
12590 return 0;
12591 ;
12592 return 0;
12593}
12594_ACEOF
12595rm -f conftest.$ac_objext
12596if { (eval echo "$as_me:12596: \"$ac_compile\"") >&5
12597 (eval $ac_compile) 2>&5
12598 ac_status=$?
12599 echo "$as_me:12599: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -s conftest.$ac_objext'
12602 { (eval echo "$as_me:12602: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:12605: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_cv_type_long=yes
12608else
12609 echo "$as_me: failed program was:" >&5
12610cat conftest.$ac_ext >&5
12611ac_cv_type_long=no
12612fi
12613rm -f conftest.$ac_objext conftest.$ac_ext
12614fi
12615echo "$as_me:12615: result: $ac_cv_type_long" >&5
12616echo "${ECHO_T}$ac_cv_type_long" >&6
12617
12618echo "$as_me:12618: checking size of long" >&5
12619echo $ECHO_N "checking size of long... $ECHO_C" >&6
12620if test "${ac_cv_sizeof_long+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 if test "$ac_cv_type_long" = yes; then
7b4a847f 12624 if test "$cross_compiling" = yes; then
5c6fa7d2
RR
12625 # Depending upon the size, compute the lo and hi bounds.
12626cat >conftest.$ac_ext <<_ACEOF
12627#line 12627 "configure"
12628#include "confdefs.h"
12629$ac_includes_default
12630int
12631main ()
12632{
12633int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext
12639if { (eval echo "$as_me:12639: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>&5
12641 ac_status=$?
12642 echo "$as_me:12642: \$? = $ac_status" >&5
12643 (exit $ac_status); } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (eval echo "$as_me:12645: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:12648: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 ac_lo=0 ac_mid=0
12651 while :; do
12652 cat >conftest.$ac_ext <<_ACEOF
12653#line 12653 "configure"
12654#include "confdefs.h"
12655$ac_includes_default
12656int
12657main ()
12658{
12659int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
12660 ;
12661 return 0;
12662}
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (eval echo "$as_me:12665: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>&5
12667 ac_status=$?
12668 echo "$as_me:12668: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -s conftest.$ac_objext'
12671 { (eval echo "$as_me:12671: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_hi=$ac_mid; break
12677else
12678 echo "$as_me: failed program was:" >&5
12679cat conftest.$ac_ext >&5
12680ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12681fi
12682rm -f conftest.$ac_objext conftest.$ac_ext
12683 done
7b4a847f 12684else
5c6fa7d2
RR
12685 echo "$as_me: failed program was:" >&5
12686cat conftest.$ac_ext >&5
12687ac_hi=-1 ac_mid=-1
12688 while :; do
12689 cat >conftest.$ac_ext <<_ACEOF
12690#line 12690 "configure"
7b4a847f 12691#include "confdefs.h"
5c6fa7d2
RR
12692$ac_includes_default
12693int
12694main ()
7b4a847f 12695{
5c6fa7d2
RR
12696int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
12697 ;
12698 return 0;
7b4a847f 12699}
5c6fa7d2
RR
12700_ACEOF
12701rm -f conftest.$ac_objext
12702if { (eval echo "$as_me:12702: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>&5
12704 ac_status=$?
12705 echo "$as_me:12705: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:12708: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_lo=$ac_mid; break
12714else
12715 echo "$as_me: failed program was:" >&5
12716cat conftest.$ac_ext >&5
12717ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12718fi
12719rm -f conftest.$ac_objext conftest.$ac_ext
12720 done
12721fi
12722rm -f conftest.$ac_objext conftest.$ac_ext
12723# Binary search between lo and hi bounds.
12724while test "x$ac_lo" != "x$ac_hi"; do
12725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12726 cat >conftest.$ac_ext <<_ACEOF
12727#line 12727 "configure"
12728#include "confdefs.h"
12729$ac_includes_default
12730int
12731main ()
12732{
12733int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
12734 ;
12735 return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext
12739if { (eval echo "$as_me:12739: \"$ac_compile\"") >&5
12740 (eval $ac_compile) 2>&5
12741 ac_status=$?
12742 echo "$as_me:12742: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest.$ac_objext'
12745 { (eval echo "$as_me:12745: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12747 ac_status=$?
12748 echo "$as_me:12748: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_hi=$ac_mid
12751else
12752 echo "$as_me: failed program was:" >&5
12753cat conftest.$ac_ext >&5
12754ac_lo=`expr $ac_mid + 1`
12755fi
12756rm -f conftest.$ac_objext conftest.$ac_ext
12757done
12758ac_cv_sizeof_long=$ac_lo
7b4a847f 12759else
5c6fa7d2
RR
12760 if test "$cross_compiling" = yes; then
12761 { { echo "$as_me:12761: error: cannot run test program while cross compiling" >&5
12762echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12763 { (exit 1); exit 1; }; }
12764else
12765 cat >conftest.$ac_ext <<_ACEOF
12766#line 12766 "configure"
12767#include "confdefs.h"
12768$ac_includes_default
12769int
12770main ()
12771{
12772FILE *f = fopen ("conftest.val", "w");
12773if (!f)
12774 exit (1);
12775fprintf (f, "%d", (sizeof (long)));
12776fclose (f);
12777 ;
12778 return 0;
12779}
12780_ACEOF
12781rm -f conftest$ac_exeext
12782if { (eval echo "$as_me:12782: \"$ac_link\"") >&5
12783 (eval $ac_link) 2>&5
12784 ac_status=$?
12785 echo "$as_me:12785: \$? = $ac_status" >&5
12786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12787 { (eval echo "$as_me:12787: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:12790: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_sizeof_long=`cat conftest.val`
12793else
12794 echo "$as_me: program exited with status $ac_status" >&5
12795echo "$as_me: failed program was:" >&5
12796cat conftest.$ac_ext >&5
579d8138 12797fi
5c6fa7d2 12798rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 12799fi
52127426 12800fi
5c6fa7d2
RR
12801rm -f conftest.val
12802else
12803 ac_cv_sizeof_long=0
12804fi
12805fi
12806echo "$as_me:12806: result: $ac_cv_sizeof_long" >&5
12807echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12808cat >>confdefs.h <<EOF
52127426
JS
12809#define SIZEOF_LONG $ac_cv_sizeof_long
12810EOF
12811
52127426
JS
12812case "${host}" in
12813 arm-*-linux* )
5c6fa7d2
RR
12814 echo "$as_me:12814: checking for long long" >&5
12815echo $ECHO_N "checking for long long... $ECHO_C" >&6
12816if test "${ac_cv_type_long_long+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818else
12819 cat >conftest.$ac_ext <<_ACEOF
12820#line 12820 "configure"
12821#include "confdefs.h"
12822$ac_includes_default
12823int
12824main ()
12825{
12826if ((long long *) 0)
12827 return 0;
12828if (sizeof (long long))
12829 return 0;
12830 ;
12831 return 0;
12832}
12833_ACEOF
12834rm -f conftest.$ac_objext
12835if { (eval echo "$as_me:12835: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>&5
12837 ac_status=$?
12838 echo "$as_me:12838: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -s conftest.$ac_objext'
12841 { (eval echo "$as_me:12841: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:12844: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_type_long_long=yes
12847else
12848 echo "$as_me: failed program was:" >&5
12849cat conftest.$ac_ext >&5
12850ac_cv_type_long_long=no
12851fi
12852rm -f conftest.$ac_objext conftest.$ac_ext
12853fi
12854echo "$as_me:12854: result: $ac_cv_type_long_long" >&5
12855echo "${ECHO_T}$ac_cv_type_long_long" >&6
12856
12857echo "$as_me:12857: checking size of long long" >&5
12858echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12859if test "${ac_cv_sizeof_long_long+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12861else
12862 if test "$ac_cv_type_long_long" = yes; then
12863 if test "$cross_compiling" = yes; then
12864 # Depending upon the size, compute the lo and hi bounds.
12865cat >conftest.$ac_ext <<_ACEOF
12866#line 12866 "configure"
12867#include "confdefs.h"
12868$ac_includes_default
12869int
12870main ()
12871{
12872int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
12873 ;
12874 return 0;
12875}
12876_ACEOF
12877rm -f conftest.$ac_objext
12878if { (eval echo "$as_me:12878: \"$ac_compile\"") >&5
12879 (eval $ac_compile) 2>&5
12880 ac_status=$?
12881 echo "$as_me:12881: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -s conftest.$ac_objext'
12884 { (eval echo "$as_me:12884: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 ac_lo=0 ac_mid=0
12890 while :; do
12891 cat >conftest.$ac_ext <<_ACEOF
12892#line 12892 "configure"
12893#include "confdefs.h"
12894$ac_includes_default
12895int
12896main ()
12897{
12898int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
12899 ;
12900 return 0;
12901}
12902_ACEOF
12903rm -f conftest.$ac_objext
12904if { (eval echo "$as_me:12904: \"$ac_compile\"") >&5
12905 (eval $ac_compile) 2>&5
12906 ac_status=$?
12907 echo "$as_me:12907: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:12910: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:12913: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_hi=$ac_mid; break
12916else
12917 echo "$as_me: failed program was:" >&5
12918cat conftest.$ac_ext >&5
12919ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12920fi
12921rm -f conftest.$ac_objext conftest.$ac_ext
12922 done
12923else
12924 echo "$as_me: failed program was:" >&5
12925cat conftest.$ac_ext >&5
12926ac_hi=-1 ac_mid=-1
12927 while :; do
12928 cat >conftest.$ac_ext <<_ACEOF
12929#line 12929 "configure"
12930#include "confdefs.h"
12931$ac_includes_default
12932int
12933main ()
12934{
12935int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940rm -f conftest.$ac_objext
12941if { (eval echo "$as_me:12941: \"$ac_compile\"") >&5
12942 (eval $ac_compile) 2>&5
12943 ac_status=$?
12944 echo "$as_me:12944: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -s conftest.$ac_objext'
12947 { (eval echo "$as_me:12947: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:12950: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 ac_lo=$ac_mid; break
12953else
12954 echo "$as_me: failed program was:" >&5
12955cat conftest.$ac_ext >&5
12956ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12957fi
12958rm -f conftest.$ac_objext conftest.$ac_ext
12959 done
12960fi
12961rm -f conftest.$ac_objext conftest.$ac_ext
12962# Binary search between lo and hi bounds.
12963while test "x$ac_lo" != "x$ac_hi"; do
12964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12965 cat >conftest.$ac_ext <<_ACEOF
12966#line 12966 "configure"
12967#include "confdefs.h"
12968$ac_includes_default
12969int
12970main ()
12971{
12972int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
12973 ;
12974 return 0;
12975}
12976_ACEOF
12977rm -f conftest.$ac_objext
12978if { (eval echo "$as_me:12978: \"$ac_compile\"") >&5
12979 (eval $ac_compile) 2>&5
12980 ac_status=$?
12981 echo "$as_me:12981: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest.$ac_objext'
12984 { (eval echo "$as_me:12984: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12986 ac_status=$?
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_hi=$ac_mid
12990else
12991 echo "$as_me: failed program was:" >&5
12992cat conftest.$ac_ext >&5
12993ac_lo=`expr $ac_mid + 1`
12994fi
12995rm -f conftest.$ac_objext conftest.$ac_ext
12996done
12997ac_cv_sizeof_long_long=$ac_lo
12998else
12999 if test "$cross_compiling" = yes; then
13000 { { echo "$as_me:13000: error: cannot run test program while cross compiling" >&5
13001echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13002 { (exit 1); exit 1; }; }
13003else
13004 cat >conftest.$ac_ext <<_ACEOF
13005#line 13005 "configure"
13006#include "confdefs.h"
13007$ac_includes_default
13008int
13009main ()
13010{
13011FILE *f = fopen ("conftest.val", "w");
13012if (!f)
13013 exit (1);
13014fprintf (f, "%d", (sizeof (long long)));
13015fclose (f);
13016 ;
13017 return 0;
13018}
13019_ACEOF
13020rm -f conftest$ac_exeext
13021if { (eval echo "$as_me:13021: \"$ac_link\"") >&5
13022 (eval $ac_link) 2>&5
13023 ac_status=$?
13024 echo "$as_me:13024: \$? = $ac_status" >&5
13025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13026 { (eval echo "$as_me:13026: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:13029: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_cv_sizeof_long_long=`cat conftest.val`
13032else
13033 echo "$as_me: program exited with status $ac_status" >&5
13034echo "$as_me: failed program was:" >&5
13035cat conftest.$ac_ext >&5
13036fi
13037rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13038fi
13039fi
13040rm -f conftest.val
13041else
13042 ac_cv_sizeof_long_long=0
13043fi
13044fi
13045echo "$as_me:13045: result: $ac_cv_sizeof_long_long" >&5
13046echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13047cat >>confdefs.h <<EOF
13048#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13049EOF
13050
13051 ;;
13052 * )
13053 echo "$as_me:13053: checking for long long" >&5
13054echo $ECHO_N "checking for long long... $ECHO_C" >&6
13055if test "${ac_cv_type_long_long+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 13057else
5c6fa7d2
RR
13058 cat >conftest.$ac_ext <<_ACEOF
13059#line 13059 "configure"
13060#include "confdefs.h"
13061$ac_includes_default
13062int
13063main ()
13064{
13065if ((long long *) 0)
13066 return 0;
13067if (sizeof (long long))
13068 return 0;
13069 ;
13070 return 0;
13071}
13072_ACEOF
13073rm -f conftest.$ac_objext
13074if { (eval echo "$as_me:13074: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>&5
13076 ac_status=$?
13077 echo "$as_me:13077: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:13080: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:13083: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085 ac_cv_type_long_long=yes
13086else
13087 echo "$as_me: failed program was:" >&5
13088cat conftest.$ac_ext >&5
13089ac_cv_type_long_long=no
13090fi
13091rm -f conftest.$ac_objext conftest.$ac_ext
13092fi
13093echo "$as_me:13093: result: $ac_cv_type_long_long" >&5
13094echo "${ECHO_T}$ac_cv_type_long_long" >&6
13095
13096echo "$as_me:13096: checking size of long long" >&5
13097echo $ECHO_N "checking size of long long... $ECHO_C" >&6
13098if test "${ac_cv_sizeof_long_long+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100else
13101 if test "$ac_cv_type_long_long" = yes; then
21d1c967 13102 if test "$cross_compiling" = yes; then
5c6fa7d2
RR
13103 # Depending upon the size, compute the lo and hi bounds.
13104cat >conftest.$ac_ext <<_ACEOF
13105#line 13105 "configure"
13106#include "confdefs.h"
13107$ac_includes_default
13108int
13109main ()
13110{
13111int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
13112 ;
13113 return 0;
13114}
13115_ACEOF
13116rm -f conftest.$ac_objext
13117if { (eval echo "$as_me:13117: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13119 ac_status=$?
13120 echo "$as_me:13120: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:13123: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:13126: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_lo=0 ac_mid=0
13129 while :; do
13130 cat >conftest.$ac_ext <<_ACEOF
13131#line 13131 "configure"
13132#include "confdefs.h"
13133$ac_includes_default
13134int
13135main ()
13136{
13137int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:13143: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>&5
13145 ac_status=$?
13146 echo "$as_me:13146: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try='test -s conftest.$ac_objext'
13149 { (eval echo "$as_me:13149: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13151 ac_status=$?
13152 echo "$as_me:13152: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_hi=$ac_mid; break
13155else
13156 echo "$as_me: failed program was:" >&5
13157cat conftest.$ac_ext >&5
13158ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
13159fi
13160rm -f conftest.$ac_objext conftest.$ac_ext
13161 done
21d1c967 13162else
5c6fa7d2
RR
13163 echo "$as_me: failed program was:" >&5
13164cat conftest.$ac_ext >&5
13165ac_hi=-1 ac_mid=-1
13166 while :; do
13167 cat >conftest.$ac_ext <<_ACEOF
13168#line 13168 "configure"
21d1c967 13169#include "confdefs.h"
5c6fa7d2
RR
13170$ac_includes_default
13171int
13172main ()
21d1c967 13173{
5c6fa7d2
RR
13174int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
13175 ;
13176 return 0;
21d1c967 13177}
5c6fa7d2
RR
13178_ACEOF
13179rm -f conftest.$ac_objext
13180if { (eval echo "$as_me:13180: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>&5
13182 ac_status=$?
13183 echo "$as_me:13183: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -s conftest.$ac_objext'
13186 { (eval echo "$as_me:13186: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:13189: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_lo=$ac_mid; break
13192else
13193 echo "$as_me: failed program was:" >&5
13194cat conftest.$ac_ext >&5
13195ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
13196fi
13197rm -f conftest.$ac_objext conftest.$ac_ext
13198 done
7b4a847f 13199fi
5c6fa7d2
RR
13200rm -f conftest.$ac_objext conftest.$ac_ext
13201# Binary search between lo and hi bounds.
13202while test "x$ac_lo" != "x$ac_hi"; do
13203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13204 cat >conftest.$ac_ext <<_ACEOF
13205#line 13205 "configure"
13206#include "confdefs.h"
13207$ac_includes_default
13208int
13209main ()
13210{
13211int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
13212 ;
13213 return 0;
13214}
13215_ACEOF
13216rm -f conftest.$ac_objext
13217if { (eval echo "$as_me:13217: \"$ac_compile\"") >&5
13218 (eval $ac_compile) 2>&5
13219 ac_status=$?
13220 echo "$as_me:13220: \$? = $ac_status" >&5
13221 (exit $ac_status); } &&
13222 { ac_try='test -s conftest.$ac_objext'
13223 { (eval echo "$as_me:13223: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:13226: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_hi=$ac_mid
13229else
13230 echo "$as_me: failed program was:" >&5
13231cat conftest.$ac_ext >&5
13232ac_lo=`expr $ac_mid + 1`
13233fi
13234rm -f conftest.$ac_objext conftest.$ac_ext
13235done
13236ac_cv_sizeof_long_long=$ac_lo
328a083c 13237else
7b4a847f 13238 if test "$cross_compiling" = yes; then
5c6fa7d2
RR
13239 { { echo "$as_me:13239: error: cannot run test program while cross compiling" >&5
13240echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13241 { (exit 1); exit 1; }; }
7b4a847f 13242else
5c6fa7d2
RR
13243 cat >conftest.$ac_ext <<_ACEOF
13244#line 13244 "configure"
7b4a847f 13245#include "confdefs.h"
5c6fa7d2
RR
13246$ac_includes_default
13247int
13248main ()
7b4a847f 13249{
5c6fa7d2
RR
13250FILE *f = fopen ("conftest.val", "w");
13251if (!f)
13252 exit (1);
13253fprintf (f, "%d", (sizeof (long long)));
13254fclose (f);
13255 ;
13256 return 0;
7b4a847f 13257}
5c6fa7d2
RR
13258_ACEOF
13259rm -f conftest$ac_exeext
13260if { (eval echo "$as_me:13260: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13262 ac_status=$?
13263 echo "$as_me:13263: \$? = $ac_status" >&5
13264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13265 { (eval echo "$as_me:13265: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:13268: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_cv_sizeof_long_long=`cat conftest.val`
7b4a847f 13271else
5c6fa7d2
RR
13272 echo "$as_me: program exited with status $ac_status" >&5
13273echo "$as_me: failed program was:" >&5
13274cat conftest.$ac_ext >&5
7b4a847f 13275fi
5c6fa7d2
RR
13276rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13277fi
13278fi
13279rm -f conftest.val
13280else
13281 ac_cv_sizeof_long_long=0
52127426 13282fi
7b4a847f 13283fi
5c6fa7d2
RR
13284echo "$as_me:13284: result: $ac_cv_sizeof_long_long" >&5
13285echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13286cat >>confdefs.h <<EOF
21d1c967 13287#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 13288EOF
9e691f46 13289
21d1c967
GD
13290esac
13291
5c6fa7d2
RR
13292echo "$as_me:13292: checking size of wchar_t" >&5
13293echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
13294if test "${wx_cv_sizeof_wchar_t+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 13296else
5c6fa7d2 13297
21d1c967
GD
13298 if test "$cross_compiling" = yes; then
13299 wx_cv_sizeof_wchar_t=4
5c6fa7d2 13300
6f72b082 13301else
5c6fa7d2
RR
13302 cat >conftest.$ac_ext <<_ACEOF
13303#line 13303 "configure"
6f72b082 13304#include "confdefs.h"
21d1c967
GD
13305
13306 #ifdef HAVE_WCHAR_H
13307 # ifdef __CYGWIN__
13308 # include <stddef.h>
13309 # endif
13310 # include <wchar.h>
13311 #endif
13312 #ifdef HAVE_STDLIB_H
13313 # include <stdlib.h>
13314 #endif
13315 #include <stdio.h>
13316 int main()
13317 {
13318 FILE *f=fopen("conftestval", "w");
13319 if (!f) exit(1);
13320 fprintf(f, "%i", sizeof(wchar_t));
13321 exit(0);
13322 }
5c6fa7d2
RR
13323
13324_ACEOF
13325rm -f conftest$ac_exeext
13326if { (eval echo "$as_me:13326: \"$ac_link\"") >&5
13327 (eval $ac_link) 2>&5
13328 ac_status=$?
13329 echo "$as_me:13329: \$? = $ac_status" >&5
13330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13331 { (eval echo "$as_me:13331: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13333 ac_status=$?
13334 echo "$as_me:13334: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
21d1c967 13336 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 13337else
5c6fa7d2
RR
13338 echo "$as_me: program exited with status $ac_status" >&5
13339echo "$as_me: failed program was:" >&5
13340cat conftest.$ac_ext >&5
13341wx_cv_sizeof_wchar_t=0
6f72b082 13342fi
5c6fa7d2 13343rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 13344fi
6f72b082 13345
3f345b47 13346fi
5c6fa7d2
RR
13347echo "$as_me:13347: result: $wx_cv_sizeof_wchar_t" >&5
13348echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 13349
5c6fa7d2 13350cat >>confdefs.h <<EOF
21d1c967
GD
13351#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13352EOF
90dd450c 13353
21d1c967
GD
13354# Check whether --enable-largefile or --disable-largefile was given.
13355if test "${enable_largefile+set}" = set; then
13356 enableval="$enable_largefile"
3f345b47 13357
5c6fa7d2 13358fi;
21d1c967
GD
13359if test "$enable_largefile" != no; then
13360 wx_largefile=no
5c6fa7d2
RR
13361
13362 echo "$as_me:13362: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13363echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13364if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367
13368 cat >conftest.$ac_ext <<_ACEOF
13369#line 13369 "configure"
90dd450c 13370#include "confdefs.h"
21d1c967
GD
13371#define _FILE_OFFSET_BITS 64
13372 #include <sys/types.h>
5c6fa7d2
RR
13373int
13374main ()
13375{
21d1c967
GD
13376typedef struct {
13377 unsigned int field: sizeof(off_t) == 8;
13378} wxlf;
13379
5c6fa7d2
RR
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext
13385if { (eval echo "$as_me:13385: \"$ac_compile\"") >&5
13386 (eval $ac_compile) 2>&5
13387 ac_status=$?
13388 echo "$as_me:13388: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -s conftest.$ac_objext'
13391 { (eval echo "$as_me:13391: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:13394: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }; then
21d1c967 13396 ac_cv_sys_file_offset_bits=64
f6bcfd97 13397else
5c6fa7d2
RR
13398 echo "$as_me: failed program was:" >&5
13399cat conftest.$ac_ext >&5
13400ac_cv_sys_file_offset_bits=no
7b4a847f 13401fi
5c6fa7d2 13402rm -f conftest.$ac_objext conftest.$ac_ext
52127426 13403
5c6fa7d2
RR
13404fi
13405echo "$as_me:13405: result: $ac_cv_sys_file_offset_bits" >&5
13406echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
13407
13408 if test "$ac_cv_sys_file_offset_bits" != no; then
13409 wx_largefile=yes
5c6fa7d2 13410 cat >>confdefs.h <<EOF
21d1c967
GD
13411#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13412EOF
13413
13414 fi
13415
13416 if test "x$wx_largefile" != "xyes"; then
5c6fa7d2
RR
13417
13418 echo "$as_me:13418: checking for _LARGE_FILES value needed for large files" >&5
13419echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13420if test "${ac_cv_sys_large_files+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423
13424 cat >conftest.$ac_ext <<_ACEOF
13425#line 13425 "configure"
f6bcfd97 13426#include "confdefs.h"
21d1c967
GD
13427#define _LARGE_FILES 1
13428 #include <sys/types.h>
5c6fa7d2
RR
13429int
13430main ()
13431{
21d1c967
GD
13432typedef struct {
13433 unsigned int field: sizeof(off_t) == 8;
13434} wxlf;
13435
5c6fa7d2
RR
13436 ;
13437 return 0;
13438}
13439_ACEOF
13440rm -f conftest.$ac_objext
13441if { (eval echo "$as_me:13441: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>&5
13443 ac_status=$?
13444 echo "$as_me:13444: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (eval echo "$as_me:13447: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:13450: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
21d1c967 13452 ac_cv_sys_large_files=1
f6bcfd97 13453else
5c6fa7d2
RR
13454 echo "$as_me: failed program was:" >&5
13455cat conftest.$ac_ext >&5
13456ac_cv_sys_large_files=no
7b4a847f 13457fi
5c6fa7d2 13458rm -f conftest.$ac_objext conftest.$ac_ext
52127426 13459
5c6fa7d2
RR
13460fi
13461echo "$as_me:13461: result: $ac_cv_sys_large_files" >&5
13462echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 13463
21d1c967
GD
13464 if test "$ac_cv_sys_large_files" != no; then
13465 wx_largefile=yes
5c6fa7d2 13466 cat >>confdefs.h <<EOF
21d1c967
GD
13467#define _LARGE_FILES $ac_cv_sys_large_files
13468EOF
90dd450c 13469
90dd450c
VZ
13470 fi
13471
90dd450c 13472 fi
90dd450c 13473
5c6fa7d2
RR
13474 echo "$as_me:13474: checking if large file support is available" >&5
13475echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 13476 if test "x$wx_largefile" = "xyes"; then
5c6fa7d2 13477 cat >>confdefs.h <<\EOF
21d1c967 13478#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
13479EOF
13480
90dd450c 13481 fi
5c6fa7d2
RR
13482 echo "$as_me:13482: result: $wx_largefile" >&5
13483echo "${ECHO_T}$wx_largefile" >&6
21d1c967 13484fi
90dd450c 13485
5c6fa7d2
RR
13486echo "$as_me:13486: checking whether byte ordering is bigendian" >&5
13487echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13488if test "${ac_cv_c_bigendian+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 13490else
21d1c967
GD
13491 ac_cv_c_bigendian=unknown
13492# See if sys/param.h defines the BYTE_ORDER macro.
5c6fa7d2
RR
13493cat >conftest.$ac_ext <<_ACEOF
13494#line 13494 "configure"
90dd450c 13495#include "confdefs.h"
21d1c967
GD
13496#include <sys/types.h>
13497#include <sys/param.h>
5c6fa7d2
RR
13498int
13499main ()
13500{
21d1c967
GD
13501
13502#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13503 bogus endian macros
13504#endif
5c6fa7d2
RR
13505 ;
13506 return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:13510: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>&5
13512 ac_status=$?
13513 echo "$as_me:13513: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -s conftest.$ac_objext'
13516 { (eval echo "$as_me:13516: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
21d1c967 13521 # It does; now see whether it defined to BIG_ENDIAN or not.
5c6fa7d2
RR
13522cat >conftest.$ac_ext <<_ACEOF
13523#line 13523 "configure"
90dd450c 13524#include "confdefs.h"
21d1c967
GD
13525#include <sys/types.h>
13526#include <sys/param.h>
5c6fa7d2
RR
13527int
13528main ()
13529{
21d1c967
GD
13530
13531#if BYTE_ORDER != BIG_ENDIAN
13532 not big endian
13533#endif
5c6fa7d2
RR
13534 ;
13535 return 0;
13536}
13537_ACEOF
13538rm -f conftest.$ac_objext
13539if { (eval echo "$as_me:13539: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>&5
13541 ac_status=$?
13542 echo "$as_me:13542: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -s conftest.$ac_objext'
13545 { (eval echo "$as_me:13545: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:13548: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
21d1c967 13550 ac_cv_c_bigendian=yes
3f345b47 13551else
5c6fa7d2
RR
13552 echo "$as_me: failed program was:" >&5
13553cat conftest.$ac_ext >&5
13554ac_cv_c_bigendian=no
3f345b47 13555fi
5c6fa7d2 13556rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 13557else
5c6fa7d2
RR
13558 echo "$as_me: failed program was:" >&5
13559cat conftest.$ac_ext >&5
3f345b47 13560fi
5c6fa7d2 13561rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
13562if test $ac_cv_c_bigendian = unknown; then
13563if test "$cross_compiling" = yes; then
13564 ac_cv_c_bigendian=unknown
10f2d63a 13565else
5c6fa7d2
RR
13566 cat >conftest.$ac_ext <<_ACEOF
13567#line 13567 "configure"
90dd450c 13568#include "confdefs.h"
21d1c967
GD
13569main () {
13570 /* Are we little or big endian? From Harbison&Steele. */
13571 union
13572 {
13573 long l;
13574 char c[sizeof (long)];
13575 } u;
13576 u.l = 1;
13577 exit (u.c[sizeof (long) - 1] == 1);
13578}
5c6fa7d2
RR
13579_ACEOF
13580rm -f conftest$ac_exeext
13581if { (eval echo "$as_me:13581: \"$ac_link\"") >&5
13582 (eval $ac_link) 2>&5
13583 ac_status=$?
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13586 { (eval echo "$as_me:13586: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:13589: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
21d1c967 13591 ac_cv_c_bigendian=no
3f345b47 13592else
5c6fa7d2
RR
13593 echo "$as_me: program exited with status $ac_status" >&5
13594echo "$as_me: failed program was:" >&5
13595cat conftest.$ac_ext >&5
13596ac_cv_c_bigendian=yes
3f345b47 13597fi
5c6fa7d2 13598rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8168de4c 13599fi
21d1c967
GD
13600fi
13601fi
5c6fa7d2
RR
13602echo "$as_me:13602: result: $ac_cv_c_bigendian" >&5
13603echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21d1c967 13604if test $ac_cv_c_bigendian = unknown; then
5c6fa7d2
RR
13605 { echo "$as_me:13605: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
13606echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
21d1c967
GD
13607fi
13608if test $ac_cv_c_bigendian = yes; then
5c6fa7d2 13609 cat >>confdefs.h <<\EOF
21d1c967
GD
13610#define WORDS_BIGENDIAN 1
13611EOF
13612
13613fi
13614
5c6fa7d2
RR
13615ac_ext=cc
13616ac_cpp='$CXXCPP $CPPFLAGS'
13617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13620echo "$as_me:13620: checking how to run the C++ preprocessor" >&5
13621echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
52127426 13622if test -z "$CXXCPP"; then
5c6fa7d2
RR
13623 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626 # Double quotes because CXXCPP needs to be expanded
13627 for CXXCPP in "$CXX -E" "/lib/cpp"
13628 do
13629 ac_preproc_ok=false
13630for ac_cxx_preproc_warn_flag in '' yes
13631do
13632 # Use a header file that comes with gcc, so configuring glibc
13633 # with a fresh cross-compiler works.
13634 # On the NeXT, cc -E runs the code through the compiler's parser,
13635 # not just through cpp. "Syntax error" is here to catch this case.
13636 cat >conftest.$ac_ext <<_ACEOF
13637#line 13637 "configure"
13638#include "confdefs.h"
13639#include <assert.h>
13640 Syntax error
13641_ACEOF
13642if { (eval echo "$as_me:13642: \"$ac_cpp conftest.$ac_ext\"") >&5
13643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13644 ac_status=$?
13645 egrep -v '^ *\+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit $ac_status); } >/dev/null; then
13650 if test -s conftest.err; then
13651 ac_cpp_err=$ac_cxx_preproc_warn_flag
13652 else
13653 ac_cpp_err=
13654 fi
7b4a847f 13655else
5c6fa7d2
RR
13656 ac_cpp_err=yes
13657fi
13658if test -z "$ac_cpp_err"; then
13659 :
13660else
13661 echo "$as_me: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 # Broken: fails on valid input.
13664continue
13665fi
13666rm -f conftest.err conftest.$ac_ext
13667
13668 # OK, works on sane cases. Now check whether non-existent headers
13669 # can be detected and how.
13670 cat >conftest.$ac_ext <<_ACEOF
13671#line 13671 "configure"
7b4a847f 13672#include "confdefs.h"
5c6fa7d2
RR
13673#include <ac_nonexistent.h>
13674_ACEOF
13675if { (eval echo "$as_me:13675: \"$ac_cpp conftest.$ac_ext\"") >&5
13676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13677 ac_status=$?
13678 egrep -v '^ *\+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:13681: \$? = $ac_status" >&5
13682 (exit $ac_status); } >/dev/null; then
13683 if test -s conftest.err; then
13684 ac_cpp_err=$ac_cxx_preproc_warn_flag
13685 else
13686 ac_cpp_err=
13687 fi
13688else
13689 ac_cpp_err=yes
13690fi
13691if test -z "$ac_cpp_err"; then
13692 # Broken: success on invalid input.
13693continue
13694else
13695 echo "$as_me: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13697 # Passes both tests.
13698ac_preproc_ok=:
13699break
13700fi
13701rm -f conftest.err conftest.$ac_ext
13702
13703done
13704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13705rm -f conftest.err conftest.$ac_ext
13706if $ac_preproc_ok; then
13707 break
13708fi
13709
13710 done
13711 ac_cv_prog_CXXCPP=$CXXCPP
13712
13713fi
13714 CXXCPP=$ac_cv_prog_CXXCPP
13715else
13716 ac_cv_prog_CXXCPP=$CXXCPP
13717fi
13718echo "$as_me:13718: result: $CXXCPP" >&5
13719echo "${ECHO_T}$CXXCPP" >&6
13720ac_preproc_ok=false
13721for ac_cxx_preproc_warn_flag in '' yes
13722do
13723 # Use a header file that comes with gcc, so configuring glibc
13724 # with a fresh cross-compiler works.
13725 # On the NeXT, cc -E runs the code through the compiler's parser,
13726 # not just through cpp. "Syntax error" is here to catch this case.
13727 cat >conftest.$ac_ext <<_ACEOF
13728#line 13728 "configure"
13729#include "confdefs.h"
13730#include <assert.h>
13731 Syntax error
13732_ACEOF
13733if { (eval echo "$as_me:13733: \"$ac_cpp conftest.$ac_ext\"") >&5
13734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13735 ac_status=$?
13736 egrep -v '^ *\+' conftest.er1 >conftest.err
13737 rm -f conftest.er1
13738 cat conftest.err >&5
13739 echo "$as_me:13739: \$? = $ac_status" >&5
13740 (exit $ac_status); } >/dev/null; then
13741 if test -s conftest.err; then
13742 ac_cpp_err=$ac_cxx_preproc_warn_flag
13743 else
13744 ac_cpp_err=
13745 fi
13746else
13747 ac_cpp_err=yes
13748fi
13749if test -z "$ac_cpp_err"; then
21d1c967 13750 :
698dcdb6 13751else
5c6fa7d2 13752 echo "$as_me: failed program was:" >&5
698dcdb6 13753 cat conftest.$ac_ext >&5
5c6fa7d2
RR
13754 # Broken: fails on valid input.
13755continue
7ec2881a 13756fi
5c6fa7d2
RR
13757rm -f conftest.err conftest.$ac_ext
13758
13759 # OK, works on sane cases. Now check whether non-existent headers
13760 # can be detected and how.
13761 cat >conftest.$ac_ext <<_ACEOF
13762#line 13762 "configure"
13763#include "confdefs.h"
13764#include <ac_nonexistent.h>
13765_ACEOF
13766if { (eval echo "$as_me:13766: \"$ac_cpp conftest.$ac_ext\"") >&5
13767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13768 ac_status=$?
13769 egrep -v '^ *\+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); } >/dev/null; then
13774 if test -s conftest.err; then
13775 ac_cpp_err=$ac_cxx_preproc_warn_flag
13776 else
13777 ac_cpp_err=
13778 fi
13779else
13780 ac_cpp_err=yes
13781fi
13782if test -z "$ac_cpp_err"; then
13783 # Broken: success on invalid input.
13784continue
13785else
13786 echo "$as_me: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13788 # Passes both tests.
13789ac_preproc_ok=:
13790break
328a083c 13791fi
5c6fa7d2
RR
13792rm -f conftest.err conftest.$ac_ext
13793
13794done
13795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13796rm -f conftest.err conftest.$ac_ext
13797if $ac_preproc_ok; then
13798 :
13799else
13800 { { echo "$as_me:13800: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
13801echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
13802 { (exit 1); exit 1; }; }
90dd450c 13803fi
1e6feb95 13804
5c6fa7d2
RR
13805ac_ext=cc
13806ac_cpp='$CXXCPP $CPPFLAGS'
13807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1725144d 13810
21d1c967 13811 if test "$cross_compiling" = "yes"; then
5c6fa7d2 13812 cat >>confdefs.h <<\EOF
21d1c967 13813#define wxUSE_IOSTREAMH 1
90dd450c 13814EOF
ab9b9eab 13815
21d1c967 13816 else
579d8138 13817
5c6fa7d2
RR
13818 ac_ext=cc
13819ac_cpp='$CXXCPP $CPPFLAGS'
13820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 13823
5c6fa7d2 13824for ac_header in iostream
21d1c967 13825do
5c6fa7d2
RR
13826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13827echo "$as_me:13827: checking for $ac_header" >&5
13828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13829if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 cat >conftest.$ac_ext <<_ACEOF
13833#line 13833 "configure"
ab9b9eab 13834#include "confdefs.h"
5c6fa7d2
RR
13835#include <$ac_header>
13836_ACEOF
13837if { (eval echo "$as_me:13837: \"$ac_cpp conftest.$ac_ext\"") >&5
13838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13839 ac_status=$?
13840 egrep -v '^ *\+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:13843: \$? = $ac_status" >&5
13844 (exit $ac_status); } >/dev/null; then
13845 if test -s conftest.err; then
13846 ac_cpp_err=$ac_cxx_preproc_warn_flag
13847 else
13848 ac_cpp_err=
13849 fi
13850else
13851 ac_cpp_err=yes
13852fi
13853if test -z "$ac_cpp_err"; then
13854 eval "$as_ac_Header=yes"
7b4a847f 13855else
5c6fa7d2 13856 echo "$as_me: failed program was:" >&5
ab9b9eab 13857 cat conftest.$ac_ext >&5
5c6fa7d2 13858 eval "$as_ac_Header=no"
ab9b9eab 13859fi
5c6fa7d2 13860rm -f conftest.err conftest.$ac_ext
90dd450c 13861fi
5c6fa7d2
RR
13862echo "$as_me:13862: result: `eval echo '${'$as_ac_Header'}'`" >&5
13863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13864if test `eval echo '${'$as_ac_Header'}'` = yes; then
13865 cat >>confdefs.h <<EOF
13866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
698dcdb6 13867EOF
5c6fa7d2 13868
90dd450c 13869fi
21d1c967 13870done
10f2d63a 13871
21d1c967
GD
13872 if test "$ac_cv_header_iostream" = "yes" ; then
13873 :
13874 else
5c6fa7d2 13875 cat >>confdefs.h <<\EOF
21d1c967
GD
13876#define wxUSE_IOSTREAMH 1
13877EOF
788deba1 13878
90dd450c 13879 fi
ab9b9eab 13880
21d1c967 13881 ac_ext=c
21d1c967 13882ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
13883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 13886
21d1c967 13887 fi
ab9b9eab 13888
5c6fa7d2
RR
13889 echo "$as_me:13889: checking if C++ compiler supports bool" >&5
13890echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
13891if test "${wx_cv_cpp_bool+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 13893else
52127426 13894
5c6fa7d2
RR
13895 ac_ext=cc
13896ac_cpp='$CXXCPP $CPPFLAGS'
13897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 13900
5c6fa7d2
RR
13901 cat >conftest.$ac_ext <<_ACEOF
13902#line 13902 "configure"
ab9b9eab 13903#include "confdefs.h"
21d1c967 13904
5c6fa7d2
RR
13905int
13906main ()
13907{
21d1c967
GD
13908
13909 bool b = true;
13910
13911 return 0;
5c6fa7d2
RR
13912
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext
13918if { (eval echo "$as_me:13918: \"$ac_compile\"") >&5
13919 (eval $ac_compile) 2>&5
13920 ac_status=$?
13921 echo "$as_me:13921: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -s conftest.$ac_objext'
13924 { (eval echo "$as_me:13924: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:13927: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929
21d1c967 13930 wx_cv_cpp_bool=yes
5c6fa7d2 13931
698dcdb6 13932else
5c6fa7d2
RR
13933 echo "$as_me: failed program was:" >&5
13934cat conftest.$ac_ext >&5
13935
21d1c967 13936 wx_cv_cpp_bool=no
5c6fa7d2 13937
698dcdb6 13938fi
5c6fa7d2 13939rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
13940
13941 ac_ext=c
21d1c967 13942ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
13943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13945ac_compiler_gnu=$ac_cv_c_compiler_gnu
21d1c967 13946
698dcdb6 13947fi
5c6fa7d2
RR
13948echo "$as_me:13948: result: $wx_cv_cpp_bool" >&5
13949echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
13950
13951 if test "$wx_cv_cpp_bool" = "yes"; then
5c6fa7d2 13952 cat >>confdefs.h <<\EOF
21d1c967 13953#define HAVE_BOOL 1
90dd450c 13954EOF
ab9b9eab 13955
21d1c967
GD
13956 fi
13957
5c6fa7d2
RR
13958 echo "$as_me:13958: checking if C++ compiler supports the explicit keyword" >&5
13959echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
13960if test "${wx_cv_explicit+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 13962else
52127426 13963
5c6fa7d2
RR
13964 ac_ext=cc
13965ac_cpp='$CXXCPP $CPPFLAGS'
13966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 13969
5c6fa7d2
RR
13970 cat >conftest.$ac_ext <<_ACEOF
13971#line 13971 "configure"
986ecc86
VZ
13972#include "confdefs.h"
13973
13974 class Foo { public: explicit Foo(int) {} };
5c6fa7d2
RR
13975
13976int
13977main ()
13978{
986ecc86
VZ
13979
13980 return 0;
5c6fa7d2
RR
13981
13982 ;
13983 return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext
13987if { (eval echo "$as_me:13987: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>&5
13989 ac_status=$?
13990 echo "$as_me:13990: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:13993: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:13996: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998
13999 cat >conftest.$ac_ext <<_ACEOF
14000#line 14000 "configure"
986ecc86
VZ
14001#include "confdefs.h"
14002
14003 class Foo { public: explicit Foo(int) {} };
14004 static void TakeFoo(const Foo& foo) { }
5c6fa7d2
RR
14005
14006int
14007main ()
14008{
986ecc86
VZ
14009
14010 TakeFoo(17);
14011 return 0;
5c6fa7d2
RR
14012
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (eval echo "$as_me:14018: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>&5
14020 ac_status=$?
14021 echo "$as_me:14021: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:14024: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:14027: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
986ecc86
VZ
14029 wx_cv_explicit=no
14030else
5c6fa7d2
RR
14031 echo "$as_me: failed program was:" >&5
14032cat conftest.$ac_ext >&5
14033wx_cv_explicit=yes
14034
986ecc86 14035fi
5c6fa7d2
RR
14036rm -f conftest.$ac_objext conftest.$ac_ext
14037
986ecc86 14038else
5c6fa7d2
RR
14039 echo "$as_me: failed program was:" >&5
14040cat conftest.$ac_ext >&5
14041wx_cv_explicit=no
14042
986ecc86 14043fi
5c6fa7d2 14044rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
14045
14046 ac_ext=c
986ecc86 14047ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
14048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14050ac_compiler_gnu=$ac_cv_c_compiler_gnu
986ecc86 14051
986ecc86 14052fi
5c6fa7d2
RR
14053echo "$as_me:14053: result: $wx_cv_explicit" >&5
14054echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
14055
14056 if test "$wx_cv_explicit" = "yes"; then
5c6fa7d2 14057 cat >>confdefs.h <<\EOF
986ecc86
VZ
14058#define HAVE_EXPLICIT 1
14059EOF
14060
14061 fi
14062
21d1c967
GD
14063SEARCH_INCLUDE="\
14064 /usr/local/include \
14065 \
14066 /usr/Motif-1.2/include \
14067 /usr/Motif-2.1/include \
14068 \
14069 /usr/include/Motif1.2 \
14070 /opt/xpm/include/X11 \
14071 /opt/GBxpm/include/ \
14072 /opt/GBxpm/X11/include/ \
14073 \
14074 /usr/Motif1.2/include \
14075 /usr/dt/include \
14076 /usr/openwin/include \
14077 \
14078 /usr/include/Xm \
14079 \
14080 /usr/X11R6/include \
14081 /usr/X11R6.4/include \
14082 /usr/X11R5/include \
14083 /usr/X11R4/include \
14084 \
14085 /usr/include/X11R6 \
14086 /usr/include/X11R5 \
14087 /usr/include/X11R4 \
14088 \
14089 /usr/local/X11R6/include \
14090 /usr/local/X11R5/include \
14091 /usr/local/X11R4/include \
14092 \
14093 /usr/local/include/X11R6 \
14094 /usr/local/include/X11R5 \
14095 /usr/local/include/X11R4 \
14096 \
14097 /usr/X11/include \
14098 /usr/include/X11 \
14099 /usr/local/X11/include \
14100 /usr/local/include/X11 \
14101 \
14102 /usr/X386/include \
14103 /usr/x386/include \
14104 /usr/XFree86/include/X11 \
14105 \
14106 X:/XFree86/include \
14107 X:/XFree86/include/X11 \
14108 \
14109 /usr/include/gtk \
14110 /usr/local/include/gtk \
14111 /usr/include/glib \
14112 /usr/local/include/glib \
14113 \
14114 /usr/include/qt \
14115 /usr/local/include/qt \
14116 \
14117 /usr/include/windows \
14118 /usr/include/wine \
14119 /usr/local/include/wine \
14120 \
14121 /usr/unsupported/include \
14122 /usr/athena/include \
14123 /usr/local/x11r5/include \
14124 /usr/lpp/Xamples/include \
14125 \
14126 /usr/openwin/share/include \
14127 \
14128 /usr/include"
14129
14130SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
14131
5c6fa7d2 14132cat >confcache <<\_ACEOF
21d1c967
GD
14133# This file is a shell script that caches the results of configure
14134# tests run on this system so they can be shared between configure
5c6fa7d2
RR
14135# scripts and configure runs, see configure's option --config-cache.
14136# It is not useful on other systems. If it contains results you don't
14137# want to keep, you may remove or edit it.
21d1c967 14138#
5c6fa7d2
RR
14139# config.status only pays attention to the cache file if you give it
14140# the --recheck option to rerun configure.
21d1c967 14141#
5c6fa7d2
RR
14142# `ac_cv_env_foo' variables (set or unset) will be overriden when
14143# loading this file, other *unset* `ac_cv_foo' will be assigned the
14144# following values.
14145
14146_ACEOF
14147
21d1c967
GD
14148# The following way of writing the cache mishandles newlines in values,
14149# but we know of no workaround that is simple, portable, and efficient.
14150# So, don't put newlines in cache variables' values.
14151# Ultrix sh set writes to stderr and can't be redirected directly,
14152# and sets the high bit in the cache file unless we assign to the vars.
5c6fa7d2
RR
14153{
14154 (set) 2>&1 |
14155 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14156 *ac_space=\ *)
14157 # `set' does not quote correctly, so add quotes (double-quote
14158 # substitution turns \\\\ into \\, and sed turns \\ into \).
14159 sed -n \
14160 "s/'/'\\\\''/g;
14161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14162 ;;
14163 *)
14164 # `set' quotes correctly as required by POSIX, so do not add quotes.
14165 sed -n \
14166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14167 ;;
14168 esac;
14169} |
14170 sed '
14171 t clear
14172 : clear
14173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14174 t end
14175 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14176 : end' >>confcache
14177if cmp -s $cache_file confcache; then :; else
21d1c967 14178 if test -w $cache_file; then
5c6fa7d2
RR
14179 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14180 cat confcache >$cache_file
21d1c967
GD
14181 else
14182 echo "not updating unwritable cache $cache_file"
14183 fi
ab9b9eab 14184fi
21d1c967 14185rm -f confcache
ab9b9eab 14186
52127426 14187if test "$USE_LINUX" = 1; then
5c6fa7d2
RR
14188 echo "$as_me:14188: checking for glibc 2.1 or later" >&5
14189echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
14190if test "${wx_cv_lib_glibc21+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192else
14193
14194 cat >conftest.$ac_ext <<_ACEOF
14195#line 14195 "configure"
ab9b9eab 14196#include "confdefs.h"
21d1c967 14197#include <features.h>
5c6fa7d2
RR
14198int
14199main ()
14200{
ab9b9eab 14201
21d1c967
GD
14202 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
14203 #error not glibc2.1
14204 #endif
5c6fa7d2
RR
14205
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext
14211if { (eval echo "$as_me:14211: \"$ac_compile\"") >&5
14212 (eval $ac_compile) 2>&5
14213 ac_status=$?
14214 echo "$as_me:14214: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -s conftest.$ac_objext'
14217 { (eval echo "$as_me:14217: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:14220: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222
21d1c967 14223 wx_cv_lib_glibc21=yes
5c6fa7d2 14224
698dcdb6 14225else
5c6fa7d2
RR
14226 echo "$as_me: failed program was:" >&5
14227cat conftest.$ac_ext >&5
14228
21d1c967 14229 wx_cv_lib_glibc21=no
5c6fa7d2 14230
328a083c 14231fi
5c6fa7d2 14232rm -f conftest.$ac_objext conftest.$ac_ext
579d8138 14233
5c6fa7d2
RR
14234fi
14235echo "$as_me:14235: result: $wx_cv_lib_glibc21" >&5
14236echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 14237 if test "$wx_cv_lib_glibc21" = "yes"; then
5c6fa7d2 14238 cat >>confdefs.h <<\EOF
21d1c967
GD
14239#define wxHAVE_GLIBC2 1
14240EOF
1e487827 14241
90dd450c 14242 fi
ab9b9eab
VZ
14243fi
14244
5c0a20c3
VZ
14245if test "x$wx_cv_lib_glibc21" = "xyes"; then
14246 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
5c6fa7d2 14247 cat >>confdefs.h <<\EOF
5c0a20c3
VZ
14248#define _GNU_SOURCE 1
14249EOF
14250
14251 fi
14252fi
14253
21d1c967
GD
14254REGEX_INCLUDE=
14255if test "$wxUSE_REGEX" != "no"; then
5c6fa7d2 14256 cat >>confdefs.h <<\EOF
21d1c967
GD
14257#define wxUSE_REGEX 1
14258EOF
698dcdb6 14259
21d1c967 14260 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
5c6fa7d2
RR
14261 echo "$as_me:14261: checking for regex.h" >&5
14262echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
14263if test "${ac_cv_header_regex_h+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266 cat >conftest.$ac_ext <<_ACEOF
14267#line 14267 "configure"
21d1c967
GD
14268#include "confdefs.h"
14269#include <regex.h>
5c6fa7d2
RR
14270_ACEOF
14271if { (eval echo "$as_me:14271: \"$ac_cpp conftest.$ac_ext\"") >&5
14272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14273 ac_status=$?
14274 egrep -v '^ *\+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:14277: \$? = $ac_status" >&5
14278 (exit $ac_status); } >/dev/null; then
14279 if test -s conftest.err; then
14280 ac_cpp_err=$ac_c_preproc_warn_flag
14281 else
14282 ac_cpp_err=
14283 fi
14284else
14285 ac_cpp_err=yes
14286fi
14287if test -z "$ac_cpp_err"; then
14288 ac_cv_header_regex_h=yes
7b4a847f 14289else
5c6fa7d2 14290 echo "$as_me: failed program was:" >&5
21d1c967 14291 cat conftest.$ac_ext >&5
5c6fa7d2 14292 ac_cv_header_regex_h=no
21d1c967 14293fi
5c6fa7d2 14294rm -f conftest.err conftest.$ac_ext
698dcdb6 14295fi
5c6fa7d2
RR
14296echo "$as_me:14296: result: $ac_cv_header_regex_h" >&5
14297echo "${ECHO_T}$ac_cv_header_regex_h" >&6
14298if test $ac_cv_header_regex_h = yes; then
14299
14300for ac_func in regcomp
21d1c967 14301do
5c6fa7d2
RR
14302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14303echo "$as_me:14303: checking for $ac_func" >&5
14304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14305if eval "test \"\${$as_ac_var+set}\" = set"; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307else
14308 cat >conftest.$ac_ext <<_ACEOF
14309#line 14309 "configure"
52127426 14310#include "confdefs.h"
5c6fa7d2
RR
14311/* System header to define __stub macros and hopefully few prototypes
14312else
14313 which can conflict with char $ac_func (); below. */
21d1c967
GD
14314#include <assert.h>
14315/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
14316#ifdef __cplusplus
14317extern "C"
14318#endif
21d1c967 14319/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
14320 builtin and then its argument prototype would still apply. */
14321char $ac_func ();
14322char (*f) ();
90dd450c 14323
5c6fa7d2
RR
14324int
14325main ()
14326{
21d1c967
GD
14327/* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14331choke me
14332#else
5c6fa7d2 14333f = $ac_func;
21d1c967 14334#endif
90dd450c 14335
5c6fa7d2
RR
14336 ;
14337 return 0;
14338}
14339_ACEOF
14340rm -f conftest.$ac_objext conftest$ac_exeext
14341if { (eval echo "$as_me:14341: \"$ac_link\"") >&5
14342 (eval $ac_link) 2>&5
14343 ac_status=$?
14344 echo "$as_me:14344: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -s conftest$ac_exeext'
14347 { (eval echo "$as_me:14347: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 echo "$as_me:14350: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 eval "$as_ac_var=yes"
14353else
14354 echo "$as_me: failed program was:" >&5
14355cat conftest.$ac_ext >&5
14356eval "$as_ac_var=no"
14357fi
14358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14359fi
14360echo "$as_me:14360: result: `eval echo '${'$as_ac_var'}'`" >&5
14361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14362if test `eval echo '${'$as_ac_var'}'` = yes; then
14363 cat >>confdefs.h <<EOF
14364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52127426 14365EOF
5c6fa7d2 14366
698dcdb6 14367fi
21d1c967
GD
14368done
14369
ab9b9eab
VZ
14370fi
14371
21d1c967
GD
14372 if test "x$ac_cv_func_regcomp" != "xyes"; then
14373 if test "$wxUSE_REGEX" = "sys" ; then
5c6fa7d2
RR
14374 { { echo "$as_me:14374: error: system regex library not found! Use --with-regex to use built-in version" >&5
14375echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
14376 { (exit 1); exit 1; }; }
21d1c967 14377 else
5c6fa7d2
RR
14378 { echo "$as_me:14378: WARNING: system regex library not found, will use built-in instead" >&5
14379echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
14380 wxUSE_REGEX=builtin
14381 fi
14382 else
14383 wxUSE_REGEX=sys
14384 fi
ab9b9eab 14385 fi
90dd450c 14386
21d1c967
GD
14387 if test "$wxUSE_REGEX" = "builtin" ; then
14388 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 14389 fi
21d1c967 14390fi
90dd450c 14391
21d1c967
GD
14392ZLIB_INCLUDE=
14393ZLIB_LINK=
14394if test "$wxUSE_ZLIB" != "no" ; then
5c6fa7d2 14395 cat >>confdefs.h <<\EOF
21d1c967
GD
14396#define wxUSE_ZLIB 1
14397EOF
14398
21d1c967 14399 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
5c6fa7d2
RR
14400 echo "$as_me:14400: checking for zlib.h" >&5
14401echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
14402if test "${ac_cv_header_zlib_h+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 cat >conftest.$ac_ext <<_ACEOF
14406#line 14406 "configure"
ab9b9eab 14407#include "confdefs.h"
21d1c967 14408#include <zlib.h>
5c6fa7d2
RR
14409_ACEOF
14410if { (eval echo "$as_me:14410: \"$ac_cpp conftest.$ac_ext\"") >&5
14411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14412 ac_status=$?
14413 egrep -v '^ *\+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:14416: \$? = $ac_status" >&5
14417 (exit $ac_status); } >/dev/null; then
14418 if test -s conftest.err; then
14419 ac_cpp_err=$ac_c_preproc_warn_flag
14420 else
14421 ac_cpp_err=
14422 fi
14423else
14424 ac_cpp_err=yes
14425fi
14426if test -z "$ac_cpp_err"; then
14427 ac_cv_header_zlib_h=yes
328a083c 14428else
5c6fa7d2 14429 echo "$as_me: failed program was:" >&5
698dcdb6 14430 cat conftest.$ac_ext >&5
5c6fa7d2 14431 ac_cv_header_zlib_h=no
698dcdb6 14432fi
5c6fa7d2 14433rm -f conftest.err conftest.$ac_ext
ab9b9eab 14434fi
5c6fa7d2
RR
14435echo "$as_me:14435: result: $ac_cv_header_zlib_h" >&5
14436echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
14437if test $ac_cv_header_zlib_h = yes; then
14438 echo "$as_me:14438: checking for deflate in -lz" >&5
14439echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
14440if test "${ac_cv_lib_z_deflate+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14442else
5c6fa7d2 14443 ac_check_lib_save_LIBS=$LIBS
21d1c967 14444LIBS="-lz $LIBS"
5c6fa7d2
RR
14445cat >conftest.$ac_ext <<_ACEOF
14446#line 14446 "configure"
ab9b9eab 14447#include "confdefs.h"
5c6fa7d2 14448
21d1c967 14449/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
14450#ifdef __cplusplus
14451extern "C"
14452#endif
21d1c967 14453/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
14454 builtin and then its argument prototype would still apply. */
14455char deflate ();
14456int
14457main ()
14458{
14459deflate ();
14460 ;
14461 return 0;
14462}
14463_ACEOF
14464rm -f conftest.$ac_objext conftest$ac_exeext
14465if { (eval echo "$as_me:14465: \"$ac_link\"") >&5
14466 (eval $ac_link) 2>&5
14467 ac_status=$?
14468 echo "$as_me:14468: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -s conftest$ac_exeext'
14471 { (eval echo "$as_me:14471: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:14474: \$? = $ac_status" >&5
14475 (exit $ac_status); }; }; then
14476 ac_cv_lib_z_deflate=yes
14477else
14478 echo "$as_me: failed program was:" >&5
14479cat conftest.$ac_ext >&5
14480ac_cv_lib_z_deflate=no
14481fi
14482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14483LIBS=$ac_check_lib_save_LIBS
14484fi
14485echo "$as_me:14485: result: $ac_cv_lib_z_deflate" >&5
14486echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
14487if test $ac_cv_lib_z_deflate = yes; then
21d1c967 14488 ZLIB_LINK=" -lz"
90dd450c 14489fi
698dcdb6 14490
698dcdb6 14491fi
698dcdb6 14492
21d1c967
GD
14493 if test "x$ZLIB_LINK" = "x" ; then
14494 if test "$wxUSE_ZLIB" = "sys" ; then
5c6fa7d2
RR
14495 { { echo "$as_me:14495: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&5
14496echo "$as_me: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&2;}
14497 { (exit 1); exit 1; }; }
21d1c967 14498 else
5c6fa7d2
RR
14499 { echo "$as_me:14499: WARNING: system zlib compression library not found, will use built-in instead" >&5
14500echo "$as_me: WARNING: system zlib compression library not found, will use built-in instead" >&2;}
21d1c967
GD
14501 wxUSE_ZLIB=builtin
14502 fi
14503 else
14504 wxUSE_ZLIB=sys
14505 fi
14506 fi
14507
14508 if test "$wxUSE_ZLIB" = "builtin" ; then
14509 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14510 fi
ab9b9eab
VZ
14511fi
14512
21d1c967
GD
14513PNG_INCLUDE=
14514PNG_LINK=
14515if test "$wxUSE_LIBPNG" != "no" ; then
5c6fa7d2 14516 cat >>confdefs.h <<\EOF
21d1c967
GD
14517#define wxUSE_LIBPNG 1
14518EOF
90dd450c 14519
21d1c967 14520 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
5c6fa7d2
RR
14521 { echo "$as_me:14521: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
14522echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
14523 wxUSE_LIBPNG=sys
14524 fi
90dd450c 14525
21d1c967 14526 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
5c6fa7d2
RR
14527 { echo "$as_me:14527: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
14528echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
14529 wxUSE_LIBPNG=builtin
14530 fi
14531
14532 if test "$wxUSE_MGL" != 1 ; then
14533 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
5c6fa7d2
RR
14534 echo "$as_me:14534: checking for png.h" >&5
14535echo $ECHO_N "checking for png.h... $ECHO_C" >&6
14536if test "${ac_cv_header_png_h+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538else
14539 cat >conftest.$ac_ext <<_ACEOF
14540#line 14540 "configure"
21d1c967
GD
14541#include "confdefs.h"
14542#include <png.h>
5c6fa7d2
RR
14543_ACEOF
14544if { (eval echo "$as_me:14544: \"$ac_cpp conftest.$ac_ext\"") >&5
14545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14546 ac_status=$?
14547 egrep -v '^ *\+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:14550: \$? = $ac_status" >&5
14551 (exit $ac_status); } >/dev/null; then
14552 if test -s conftest.err; then
14553 ac_cpp_err=$ac_c_preproc_warn_flag
14554 else
14555 ac_cpp_err=
14556 fi
14557else
14558 ac_cpp_err=yes
14559fi
14560if test -z "$ac_cpp_err"; then
14561 ac_cv_header_png_h=yes
90dd450c 14562else
5c6fa7d2 14563 echo "$as_me: failed program was:" >&5
90dd450c 14564 cat conftest.$ac_ext >&5
5c6fa7d2 14565 ac_cv_header_png_h=no
90dd450c 14566fi
5c6fa7d2 14567rm -f conftest.err conftest.$ac_ext
90dd450c 14568fi
5c6fa7d2
RR
14569echo "$as_me:14569: result: $ac_cv_header_png_h" >&5
14570echo "${ECHO_T}$ac_cv_header_png_h" >&6
14571if test $ac_cv_header_png_h = yes; then
14572 echo "$as_me:14572: checking for png_check_sig in -lpng" >&5
14573echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
14574if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14576else
5c6fa7d2 14577 ac_check_lib_save_LIBS=$LIBS
21d1c967 14578LIBS="-lpng -lz -lm $LIBS"
5c6fa7d2
RR
14579cat >conftest.$ac_ext <<_ACEOF
14580#line 14580 "configure"
90dd450c 14581#include "confdefs.h"
5c6fa7d2 14582
21d1c967 14583/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
14584#ifdef __cplusplus
14585extern "C"
14586#endif
21d1c967 14587/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
14588 builtin and then its argument prototype would still apply. */
14589char png_check_sig ();
14590int
14591main ()
14592{
14593png_check_sig ();
14594 ;
14595 return 0;
14596}
14597_ACEOF
14598rm -f conftest.$ac_objext conftest$ac_exeext
14599if { (eval echo "$as_me:14599: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>&5
14601 ac_status=$?
14602 echo "$as_me:14602: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try='test -s conftest$ac_exeext'
14605 { (eval echo "$as_me:14605: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:14608: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_lib_png_png_check_sig=yes
14611else
14612 echo "$as_me: failed program was:" >&5
14613cat conftest.$ac_ext >&5
14614ac_cv_lib_png_png_check_sig=no
14615fi
14616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14617LIBS=$ac_check_lib_save_LIBS
14618fi
14619echo "$as_me:14619: result: $ac_cv_lib_png_png_check_sig" >&5
14620echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
14621if test $ac_cv_lib_png_png_check_sig = yes; then
21d1c967 14622 PNG_LINK=" -lpng"
90dd450c
VZ
14623fi
14624
90dd450c
VZ
14625fi
14626
21d1c967
GD
14627 if test "x$PNG_LINK" = "x" ; then
14628 if test "$wxUSE_LIBPNG" = "sys" ; then
5c6fa7d2
RR
14629 { { echo "$as_me:14629: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&5
14630echo "$as_me: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&2;}
14631 { (exit 1); exit 1; }; }
21d1c967 14632 else
5c6fa7d2
RR
14633 { echo "$as_me:14633: WARNING: system png library not found, will use built-in instead" >&5
14634echo "$as_me: WARNING: system png library not found, will use built-in instead" >&2;}
21d1c967
GD
14635 wxUSE_LIBPNG=builtin
14636 fi
14637 else
14638 wxUSE_LIBPNG=yes
14639 fi
14640 fi
14641 fi
90dd450c 14642
21d1c967
GD
14643 if test "$wxUSE_LIBPNG" = "builtin" ; then
14644 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14645 fi
90dd450c 14646
21d1c967 14647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
14648fi
14649
21d1c967
GD
14650JPEG_INCLUDE=
14651JPEG_LINK=
14652if test "$wxUSE_LIBJPEG" != "no" ; then
5c6fa7d2 14653 cat >>confdefs.h <<\EOF
21d1c967
GD
14654#define wxUSE_LIBJPEG 1
14655EOF
90dd450c 14656
21d1c967 14657 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
5c6fa7d2
RR
14658 { echo "$as_me:14658: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
14659echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
14660 wxUSE_LIBJPEG=sys
14661 fi
90dd450c 14662
21d1c967
GD
14663 if test "$wxUSE_MGL" != 1 ; then
14664 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
5c6fa7d2
RR
14665 echo "$as_me:14665: checking for jpeglib.h" >&5
14666echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
14667 if test "${ac_cv_header_jpeglib_h+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14669else
5c6fa7d2
RR
14670 cat >conftest.$ac_ext <<_ACEOF
14671#line 14671 "configure"
21d1c967 14672#include "confdefs.h"
90dd450c 14673
21d1c967
GD
14674 #undef HAVE_STDLIB_H
14675 #include <stdio.h>
14676 #include <jpeglib.h>
90dd450c 14677
5c6fa7d2
RR
14678int
14679main ()
14680{
14681
14682 ;
14683 return 0;
14684}
14685_ACEOF
14686rm -f conftest.$ac_objext
14687if { (eval echo "$as_me:14687: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>&5
14689 ac_status=$?
14690 echo "$as_me:14690: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:14693: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:14696: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
21d1c967 14698 ac_cv_header_jpeglib_h=yes
90dd450c 14699else
5c6fa7d2
RR
14700 echo "$as_me: failed program was:" >&5
14701cat conftest.$ac_ext >&5
14702ac_cv_header_jpeglib_h=no
14703
90dd450c 14704fi
5c6fa7d2
RR
14705rm -f conftest.$ac_objext conftest.$ac_ext
14706
90dd450c
VZ
14707fi
14708
5c6fa7d2
RR
14709 echo "$as_me:14709: result: $ac_cv_header_jpeglib_h" >&5
14710echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 14711
21d1c967 14712 if test "$ac_cv_header_jpeglib_h" = "yes"; then
5c6fa7d2
RR
14713 echo "$as_me:14713: checking for jpeg_read_header in -ljpeg" >&5
14714echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
14715if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14717else
5c6fa7d2 14718 ac_check_lib_save_LIBS=$LIBS
21d1c967 14719LIBS="-ljpeg $LIBS"
5c6fa7d2
RR
14720cat >conftest.$ac_ext <<_ACEOF
14721#line 14721 "configure"
21d1c967 14722#include "confdefs.h"
5c6fa7d2 14723
21d1c967 14724/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
14725#ifdef __cplusplus
14726extern "C"
14727#endif
21d1c967 14728/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
14729 builtin and then its argument prototype would still apply. */
14730char jpeg_read_header ();
14731int
14732main ()
14733{
14734jpeg_read_header ();
14735 ;
14736 return 0;
14737}
14738_ACEOF
14739rm -f conftest.$ac_objext conftest$ac_exeext
14740if { (eval echo "$as_me:14740: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>&5
14742 ac_status=$?
14743 echo "$as_me:14743: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest$ac_exeext'
14746 { (eval echo "$as_me:14746: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:14749: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_lib_jpeg_jpeg_read_header=yes
14752else
14753 echo "$as_me: failed program was:" >&5
14754cat conftest.$ac_ext >&5
14755ac_cv_lib_jpeg_jpeg_read_header=no
14756fi
14757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14758LIBS=$ac_check_lib_save_LIBS
14759fi
14760echo "$as_me:14760: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
14761echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
14762if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 14763 JPEG_LINK=" -ljpeg"
90dd450c
VZ
14764fi
14765
21d1c967 14766 fi
90dd450c 14767
21d1c967
GD
14768 if test "x$JPEG_LINK" = "x" ; then
14769 if test "$wxUSE_LIBJPEG" = "sys" ; then
5c6fa7d2
RR
14770 { { echo "$as_me:14770: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
14771echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
14772 { (exit 1); exit 1; }; }
21d1c967 14773 else
5c6fa7d2
RR
14774 { echo "$as_me:14774: WARNING: system jpeg library not found, will use built-in instead" >&5
14775echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
14776 wxUSE_LIBJPEG=builtin
14777 fi
14778 else
14779 wxUSE_LIBJPEG=sys
14780 fi
14781 fi
14782 fi
90dd450c 14783
21d1c967
GD
14784 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14785 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14786 fi
14787fi
90dd450c 14788
21d1c967
GD
14789TIFF_INCLUDE=
14790TIFF_LINK=
14791if test "$wxUSE_LIBTIFF" != "no" ; then
5c6fa7d2 14792 cat >>confdefs.h <<\EOF
21d1c967
GD
14793#define wxUSE_LIBTIFF 1
14794EOF
14795
21d1c967 14796 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
5c6fa7d2
RR
14797 echo "$as_me:14797: checking for tiffio.h" >&5
14798echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
14799if test "${ac_cv_header_tiffio_h+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801else
14802 cat >conftest.$ac_ext <<_ACEOF
14803#line 14803 "configure"
21d1c967
GD
14804#include "confdefs.h"
14805#include <tiffio.h>
5c6fa7d2
RR
14806_ACEOF
14807if { (eval echo "$as_me:14807: \"$ac_cpp conftest.$ac_ext\"") >&5
14808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14809 ac_status=$?
14810 egrep -v '^ *\+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:14813: \$? = $ac_status" >&5
14814 (exit $ac_status); } >/dev/null; then
14815 if test -s conftest.err; then
14816 ac_cpp_err=$ac_c_preproc_warn_flag
14817 else
14818 ac_cpp_err=
14819 fi
14820else
14821 ac_cpp_err=yes
14822fi
14823if test -z "$ac_cpp_err"; then
14824 ac_cv_header_tiffio_h=yes
21d1c967 14825else
5c6fa7d2 14826 echo "$as_me: failed program was:" >&5
21d1c967 14827 cat conftest.$ac_ext >&5
5c6fa7d2 14828 ac_cv_header_tiffio_h=no
21d1c967 14829fi
5c6fa7d2 14830rm -f conftest.err conftest.$ac_ext
21d1c967 14831fi
5c6fa7d2
RR
14832echo "$as_me:14832: result: $ac_cv_header_tiffio_h" >&5
14833echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
14834if test $ac_cv_header_tiffio_h = yes; then
14835 echo "$as_me:14835: checking for TIFFError in -ltiff" >&5
14836echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
14837if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 14839else
5c6fa7d2 14840 ac_check_lib_save_LIBS=$LIBS
21d1c967 14841LIBS="-ltiff -lm $LIBS"
5c6fa7d2
RR
14842cat >conftest.$ac_ext <<_ACEOF
14843#line 14843 "configure"
ab9b9eab 14844#include "confdefs.h"
5c6fa7d2 14845
ab9b9eab 14846/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
14847#ifdef __cplusplus
14848extern "C"
14849#endif
ab9b9eab 14850/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
14851 builtin and then its argument prototype would still apply. */
14852char TIFFError ();
14853int
14854main ()
14855{
14856TIFFError ();
14857 ;
14858 return 0;
14859}
14860_ACEOF
14861rm -f conftest.$ac_objext conftest$ac_exeext
14862if { (eval echo "$as_me:14862: \"$ac_link\"") >&5
14863 (eval $ac_link) 2>&5
14864 ac_status=$?
14865 echo "$as_me:14865: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -s conftest$ac_exeext'
14868 { (eval echo "$as_me:14868: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 echo "$as_me:14871: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_cv_lib_tiff_TIFFError=yes
14874else
14875 echo "$as_me: failed program was:" >&5
14876cat conftest.$ac_ext >&5
14877ac_cv_lib_tiff_TIFFError=no
14878fi
14879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14880LIBS=$ac_check_lib_save_LIBS
14881fi
14882echo "$as_me:14882: result: $ac_cv_lib_tiff_TIFFError" >&5
14883echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
14884if test $ac_cv_lib_tiff_TIFFError = yes; then
21d1c967 14885 TIFF_LINK=" -ltiff"
ab9b9eab
VZ
14886fi
14887
21d1c967 14888fi
cd6d6d5b 14889
21d1c967
GD
14890 if test "x$TIFF_LINK" = "x" ; then
14891 if test "$wxUSE_LIBTIFF" = "sys" ; then
5c6fa7d2
RR
14892 { { echo "$as_me:14892: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
14893echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
14894 { (exit 1); exit 1; }; }
90dd450c 14895 else
5c6fa7d2
RR
14896 { echo "$as_me:14896: WARNING: system tiff library not found, will use built-in instead" >&5
14897echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 14898 wxUSE_LIBTIFF=builtin
d8356fa3 14899 fi
d8356fa3 14900 else
21d1c967 14901 wxUSE_LIBTIFF=sys
d8356fa3 14902 fi
21d1c967 14903 fi
d8356fa3 14904
21d1c967
GD
14905 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14906 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 14907 fi
21d1c967 14908fi
10f2d63a 14909
21d1c967 14910AFMINSTALL=
90dd450c 14911
21d1c967
GD
14912TOOLKIT=
14913TOOLKIT_INCLUDE=
14914WIDGET_SET=
14915
14916if test "$USE_WIN32" = 1 ; then
5c6fa7d2
RR
14917
14918for ac_header in w32api.h
21d1c967 14919do
5c6fa7d2
RR
14920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14921echo "$as_me:14921: checking for $ac_header" >&5
14922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14923if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925else
14926 cat >conftest.$ac_ext <<_ACEOF
14927#line 14927 "configure"
f79bd02d 14928#include "confdefs.h"
5c6fa7d2
RR
14929#include <$ac_header>
14930_ACEOF
14931if { (eval echo "$as_me:14931: \"$ac_cpp conftest.$ac_ext\"") >&5
14932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14933 ac_status=$?
14934 egrep -v '^ *\+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:14937: \$? = $ac_status" >&5
14938 (exit $ac_status); } >/dev/null; then
14939 if test -s conftest.err; then
14940 ac_cpp_err=$ac_c_preproc_warn_flag
14941 else
14942 ac_cpp_err=
14943 fi
14944else
14945 ac_cpp_err=yes
14946fi
14947if test -z "$ac_cpp_err"; then
14948 eval "$as_ac_Header=yes"
f79bd02d 14949else
5c6fa7d2 14950 echo "$as_me: failed program was:" >&5
f79bd02d 14951 cat conftest.$ac_ext >&5
5c6fa7d2 14952 eval "$as_ac_Header=no"
f79bd02d 14953fi
5c6fa7d2 14954rm -f conftest.err conftest.$ac_ext
21d1c967 14955fi
5c6fa7d2
RR
14956echo "$as_me:14956: result: `eval echo '${'$as_ac_Header'}'`" >&5
14957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14958if test `eval echo '${'$as_ac_Header'}'` = yes; then
14959 cat >>confdefs.h <<EOF
14960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21d1c967 14961EOF
5c6fa7d2 14962
21d1c967
GD
14963fi
14964done
f79bd02d 14965
5c6fa7d2
RR
14966 echo "$as_me:14966: checking for windows.h" >&5
14967echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
14968if test "${ac_cv_header_windows_h+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 14970else
5c6fa7d2
RR
14971 cat >conftest.$ac_ext <<_ACEOF
14972#line 14972 "configure"
90dd450c 14973#include "confdefs.h"
21d1c967 14974#include <windows.h>
5c6fa7d2
RR
14975_ACEOF
14976if { (eval echo "$as_me:14976: \"$ac_cpp conftest.$ac_ext\"") >&5
14977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14978 ac_status=$?
14979 egrep -v '^ *\+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 (exit $ac_status); } >/dev/null; then
14984 if test -s conftest.err; then
14985 ac_cpp_err=$ac_c_preproc_warn_flag
14986 else
14987 ac_cpp_err=
14988 fi
14989else
14990 ac_cpp_err=yes
14991fi
14992if test -z "$ac_cpp_err"; then
14993 ac_cv_header_windows_h=yes
90dd450c 14994else
5c6fa7d2 14995 echo "$as_me: failed program was:" >&5
90dd450c 14996 cat conftest.$ac_ext >&5
5c6fa7d2 14997 ac_cv_header_windows_h=no
90dd450c 14998fi
5c6fa7d2 14999rm -f conftest.err conftest.$ac_ext
90dd450c 15000fi
5c6fa7d2
RR
15001echo "$as_me:15001: result: $ac_cv_header_windows_h" >&5
15002echo "${ECHO_T}$ac_cv_header_windows_h" >&6
15003if test $ac_cv_header_windows_h = yes; then
21d1c967 15004 :
90dd450c 15005else
21d1c967 15006
5c6fa7d2
RR
15007 { { echo "$as_me:15007: error: please set CFLAGS to contain the location of windows.h" >&5
15008echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
15009 { (exit 1); exit 1; }; }
328a083c 15010
5c6fa7d2 15011fi
7b4a847f 15012
5c6fa7d2
RR
15013 echo "$as_me:15013: checking if w32api has good enough MSIE support" >&5
15014echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
15015if test "${wx_cv_w32api_win32_ie+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 15017else
5c6fa7d2
RR
15018
15019 cat >conftest.$ac_ext <<_ACEOF
15020#line 15020 "configure"
f79bd02d 15021#include "confdefs.h"
21d1c967 15022#include <w32api.h>
5c6fa7d2
RR
15023int
15024main ()
15025{
f79bd02d 15026
21d1c967
GD
15027 #define wxCHECK_W32API_VERSION( major, minor ) \
15028 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
15029 && ( ( __W32API_MAJOR_VERSION > (major) ) \
15030 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
15031
15032 #if !wxCHECK_W32API_VERSION(1,1)
15033 #error You need w32api 1.1 or newer
15034 #endif
5c6fa7d2
RR
15035
15036 ;
15037 return 0;
15038}
15039_ACEOF
15040rm -f conftest.$ac_objext
15041if { (eval echo "$as_me:15041: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>&5
15043 ac_status=$?
15044 echo "$as_me:15044: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -s conftest.$ac_objext'
15047 { (eval echo "$as_me:15047: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 echo "$as_me:15050: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052
21d1c967 15053 wx_cv_w32api_win32_ie=yes
5c6fa7d2 15054
f79bd02d 15055else
5c6fa7d2
RR
15056 echo "$as_me: failed program was:" >&5
15057cat conftest.$ac_ext >&5
15058
21d1c967 15059 wx_cv_w32api_win32_ie=no
5c6fa7d2 15060
7b4a847f 15061fi
5c6fa7d2 15062rm -f conftest.$ac_objext conftest.$ac_ext
52127426 15063
5c6fa7d2
RR
15064fi
15065echo "$as_me:15065: result: $wx_cv_w32api_win32_ie" >&5
15066echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
15067 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
15068 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
15069 fi
f79bd02d 15070
21d1c967
GD
15071 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
15072
15073 case "${host}" in
15074 *-*-cygwin* )
15075 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
15076 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 15077 esac
f79bd02d 15078
21d1c967
GD
15079 if test "$wxUSE_ODBC" = "yes" ; then
15080 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
15081 fi
f79bd02d 15082
21d1c967
GD
15083 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
15084 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 15085fi
f79bd02d 15086
21d1c967
GD
15087if test "$wxUSE_GUI" = "yes"; then
15088 USE_GUI=1
f79bd02d 15089
21d1c967 15090 GUI_TK_LIBRARY=
f79bd02d 15091
21d1c967
GD
15092 WXGTK12=
15093 WXGTK127=
15094 WXGTK20=
f79bd02d 15095
21d1c967
GD
15096 if test "$wxUSE_MSW" = 1 ; then
15097 TOOLKIT=MSW
15098 GUIDIST=MSW_DIST
f79bd02d 15099
21d1c967
GD
15100 case "${host}" in
15101 *-*-mingw32* )
15102 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
15103 esac
f79bd02d
JS
15104 fi
15105
21d1c967 15106 if test "$wxUSE_GTK" = 1; then
5c6fa7d2
RR
15107 echo "$as_me:15107: checking for GTK+ version" >&5
15108echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
15109
15110 gtk_version_cached=1
5c6fa7d2
RR
15111 if test "${wx_cv_lib_gtk+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 15113else
5c6fa7d2 15114
21d1c967 15115 gtk_version_cached=0
5c6fa7d2
RR
15116 echo "$as_me:15116: result: " >&5
15117echo "${ECHO_T}" >&6
f79bd02d 15118
21d1c967
GD
15119 GTK_MODULES=
15120 if test "$wxUSE_THREADS" = "yes"; then
15121 GTK_MODULES=gthread
15122 fi
f79bd02d 15123
21d1c967
GD
15124 wx_cv_lib_gtk=
15125 if test "x$wxUSE_GTK2" = "xyes"; then
15126 # Check whether --enable-gtktest or --disable-gtktest was given.
15127if test "${enable_gtktest+set}" = set; then
15128 enableval="$enable_gtktest"
5c6fa7d2 15129
f79bd02d 15130else
21d1c967 15131 enable_gtktest=yes
5c6fa7d2 15132fi;
f79bd02d 15133
21d1c967
GD
15134 pkg_config_args=gtk+-2.0
15135 for module in . $GTK_MODULES
15136 do
15137 case "$module" in
5c6fa7d2 15138 gthread)
21d1c967
GD
15139 pkg_config_args="$pkg_config_args gthread-2.0"
15140 ;;
15141 esac
15142 done
15143
15144 no_gtk=""
f79bd02d 15145
21d1c967
GD
15146 # Extract the first word of "pkg-config", so it can be a program name with args.
15147set dummy pkg-config; ac_word=$2
5c6fa7d2
RR
15148echo "$as_me:15148: checking for $ac_word" >&5
15149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15150if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 15152else
5c6fa7d2
RR
15153 case $PKG_CONFIG in
15154 [\\/]* | ?:[\\/]*)
21d1c967
GD
15155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15156 ;;
21d1c967 15157 *)
5c6fa7d2
RR
15158 ac_save_IFS=$IFS; IFS=$ac_path_separator
15159ac_dummy="$PATH"
15160for ac_dir in $ac_dummy; do
15161 IFS=$ac_save_IFS
15162 test -z "$ac_dir" && ac_dir=.
15163 if $as_executable_p "$ac_dir/$ac_word"; then
15164 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
15165 echo "$as_me:15165: found $ac_dir/$ac_word" >&5
15166 break
15167fi
15168done
15169
21d1c967
GD
15170 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
15171 ;;
15172esac
f79bd02d 15173fi
5c6fa7d2
RR
15174PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15175
21d1c967 15176if test -n "$PKG_CONFIG"; then
5c6fa7d2
RR
15177 echo "$as_me:15177: result: $PKG_CONFIG" >&5
15178echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 15179else
5c6fa7d2
RR
15180 echo "$as_me:15180: result: no" >&5
15181echo "${ECHO_T}no" >&6
f79bd02d
JS
15182fi
15183
21d1c967
GD
15184 if test x$PKG_CONFIG != xno ; then
15185 if pkg-config --atleast-pkgconfig-version 0.7 ; then
15186 :
15187 else
15188 echo *** pkg-config too old; version 0.7 or better required.
15189 no_gtk=yes
15190 PKG_CONFIG=no
15191 fi
15192 else
15193 no_gtk=yes
15194 fi
f79bd02d 15195
21d1c967 15196 min_gtk_version=2.0.0
5c6fa7d2
RR
15197 echo "$as_me:15197: checking for GTK+ - version >= $min_gtk_version" >&5
15198echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 15199
21d1c967
GD
15200 if test x$PKG_CONFIG != xno ; then
15201 ## don't try to run the test against uninstalled libtool libs
15202 if $PKG_CONFIG --uninstalled $pkg_config_args; then
15203 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
15204 enable_gtktest=no
15205 fi
f79bd02d 15206
21d1c967
GD
15207 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
15208 :
15209 else
15210 no_gtk=yes
15211 fi
15212 fi
f79bd02d 15213
21d1c967
GD
15214 if test x"$no_gtk" = x ; then
15215 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
15216 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
15217 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15219 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15221 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
15222 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15223 if test "x$enable_gtktest" = "xyes" ; then
15224 ac_save_CFLAGS="$CFLAGS"
15225 ac_save_LIBS="$LIBS"
15226 CFLAGS="$CFLAGS $GTK_CFLAGS"
15227 LIBS="$GTK_LIBS $LIBS"
15228 rm -f conf.gtktest
15229 if test "$cross_compiling" = yes; then
15230 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 15231else
5c6fa7d2
RR
15232 cat >conftest.$ac_ext <<_ACEOF
15233#line 15233 "configure"
f79bd02d 15234#include "confdefs.h"
f79bd02d 15235
21d1c967
GD
15236#include <gtk/gtk.h>
15237#include <stdio.h>
15238#include <stdlib.h>
f79bd02d 15239
5c6fa7d2 15240int
21d1c967
GD
15241main ()
15242{
15243 int major, minor, micro;
15244 char *tmp_version;
f79bd02d 15245
21d1c967 15246 system ("touch conf.gtktest");
f79bd02d 15247
21d1c967
GD
15248 /* HP/UX 9 (%@#!) writes to sscanf strings */
15249 tmp_version = g_strdup("$min_gtk_version");
15250 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15251 printf("%s, bad version string\n", "$min_gtk_version");
15252 exit(1);
15253 }
f79bd02d 15254
21d1c967
GD
15255 if ((gtk_major_version != $gtk_config_major_version) ||
15256 (gtk_minor_version != $gtk_config_minor_version) ||
15257 (gtk_micro_version != $gtk_config_micro_version))
15258 {
5c6fa7d2 15259 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
15260 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15261 gtk_major_version, gtk_minor_version, gtk_micro_version);
15262 printf ("*** was found! If pkg-config was correct, then it is best\n");
15263 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15264 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15265 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15266 printf("*** required on your system.\n");
15267 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15268 printf("*** to point to the correct configuration files\n");
5c6fa7d2 15269 }
21d1c967
GD
15270 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15271 (gtk_minor_version != GTK_MINOR_VERSION) ||
15272 (gtk_micro_version != GTK_MICRO_VERSION))
15273 {
15274 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15275 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15276 printf("*** library (version %d.%d.%d)\n",
15277 gtk_major_version, gtk_minor_version, gtk_micro_version);
15278 }
15279 else
15280 {
15281 if ((gtk_major_version > major) ||
15282 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15283 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15284 {
15285 return 0;
15286 }
15287 else
15288 {
15289 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15290 gtk_major_version, gtk_minor_version, gtk_micro_version);
15291 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15292 major, minor, micro);
15293 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15294 printf("***\n");
15295 printf("*** If you have already installed a sufficiently new version, this error\n");
15296 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15297 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15298 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
15299 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15300 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15301 printf("*** so that the correct libraries are found at run-time))\n");
15302 }
15303 }
15304 return 1;
15305}
f79bd02d 15306
5c6fa7d2
RR
15307_ACEOF
15308rm -f conftest$ac_exeext
15309if { (eval echo "$as_me:15309: \"$ac_link\"") >&5
15310 (eval $ac_link) 2>&5
15311 ac_status=$?
15312 echo "$as_me:15312: \$? = $ac_status" >&5
15313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15314 { (eval echo "$as_me:15314: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:15317: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
21d1c967 15319 :
f79bd02d 15320else
5c6fa7d2
RR
15321 echo "$as_me: program exited with status $ac_status" >&5
15322echo "$as_me: failed program was:" >&5
15323cat conftest.$ac_ext >&5
15324no_gtk=yes
f79bd02d 15325fi
5c6fa7d2 15326rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 15327fi
21d1c967
GD
15328 CFLAGS="$ac_save_CFLAGS"
15329 LIBS="$ac_save_LIBS"
15330 fi
15331 fi
15332 if test "x$no_gtk" = x ; then
5c6fa7d2
RR
15333 echo "$as_me:15333: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
15334echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
15335 wx_cv_lib_gtk=2.0
21d1c967 15336 else
5c6fa7d2
RR
15337 echo "$as_me:15337: result: no" >&5
15338echo "${ECHO_T}no" >&6
21d1c967
GD
15339 if test "$PKG_CONFIG" = "no" ; then
15340 echo "*** A new enough version of pkg-config was not found."
15341 echo "*** See http://pkgconfig.sourceforge.net"
15342 else
15343 if test -f conf.gtktest ; then
15344 :
15345 else
15346 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
15347 ac_save_CFLAGS="$CFLAGS"
15348 ac_save_LIBS="$LIBS"
21d1c967
GD
15349 CFLAGS="$CFLAGS $GTK_CFLAGS"
15350 LIBS="$LIBS $GTK_LIBS"
5c6fa7d2
RR
15351 cat >conftest.$ac_ext <<_ACEOF
15352#line 15352 "configure"
f79bd02d 15353#include "confdefs.h"
21d1c967
GD
15354
15355#include <gtk/gtk.h>
15356#include <stdio.h>
f79bd02d 15357
5c6fa7d2
RR
15358int
15359main ()
15360{
15361 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15362 ;
15363 return 0;
15364}
15365_ACEOF
15366rm -f conftest.$ac_objext conftest$ac_exeext
15367if { (eval echo "$as_me:15367: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>&5
15369 ac_status=$?
15370 echo "$as_me:15370: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -s conftest$ac_exeext'
15373 { (eval echo "$as_me:15373: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:15376: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
21d1c967
GD
15378 echo "*** The test program compiled, but did not run. This usually means"
15379 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
15380 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
15381 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15382 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15383 echo "*** is required on your system"
15384 echo "***"
15385 echo "*** If you have an old version installed, it is best to remove it, although"
5c6fa7d2 15386 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 15387else
5c6fa7d2
RR
15388 echo "$as_me: failed program was:" >&5
15389cat conftest.$ac_ext >&5
15390 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 15391 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 15392fi
5c6fa7d2 15393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
15394 CFLAGS="$ac_save_CFLAGS"
15395 LIBS="$ac_save_LIBS"
15396 fi
15397 fi
15398 GTK_CFLAGS=""
15399 GTK_LIBS=""
15400 :
15401 fi
5c6fa7d2 15402
21d1c967 15403 rm -f conf.gtktest
f79bd02d 15404
21d1c967 15405 fi
f79bd02d 15406
21d1c967 15407 if test -z "$wx_cv_lib_gtk"; then
5c6fa7d2
RR
15408
15409# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
15410if test "${with_gtk_prefix+set}" = set; then
15411 withval="$with_gtk_prefix"
15412 gtk_config_prefix="$withval"
15413else
15414 gtk_config_prefix=""
5c6fa7d2 15415fi;
f79bd02d 15416
21d1c967
GD
15417# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
15418if test "${with_gtk_exec_prefix+set}" = set; then
15419 withval="$with_gtk_exec_prefix"
15420 gtk_config_exec_prefix="$withval"
15421else
15422 gtk_config_exec_prefix=""
5c6fa7d2 15423fi;
21d1c967
GD
15424# Check whether --enable-gtktest or --disable-gtktest was given.
15425if test "${enable_gtktest+set}" = set; then
15426 enableval="$enable_gtktest"
5c6fa7d2 15427
21d1c967
GD
15428else
15429 enable_gtktest=yes
5c6fa7d2 15430fi;
21d1c967
GD
15431
15432 for module in . $GTK_MODULES
15433 do
15434 case "$module" in
5c6fa7d2 15435 gthread)
21d1c967
GD
15436 gtk_config_args="$gtk_config_args gthread"
15437 ;;
15438 esac
15439 done
15440
15441 if test x$gtk_config_exec_prefix != x ; then
15442 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
15443 if test x${GTK_CONFIG+set} != xset ; then
15444 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
15445 fi
15446 fi
15447 if test x$gtk_config_prefix != x ; then
15448 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
15449 if test x${GTK_CONFIG+set} != xset ; then
15450 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
15451 fi
15452 fi
15453
15454 # Extract the first word of "gtk-config", so it can be a program name with args.
15455set dummy gtk-config; ac_word=$2
5c6fa7d2
RR
15456echo "$as_me:15456: checking for $ac_word" >&5
15457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15458if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 15460else
5c6fa7d2
RR
15461 case $GTK_CONFIG in
15462 [\\/]* | ?:[\\/]*)
21d1c967
GD
15463 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
15464 ;;
21d1c967 15465 *)
5c6fa7d2
RR
15466 ac_save_IFS=$IFS; IFS=$ac_path_separator
15467ac_dummy="$PATH"
15468for ac_dir in $ac_dummy; do
15469 IFS=$ac_save_IFS
15470 test -z "$ac_dir" && ac_dir=.
15471 if $as_executable_p "$ac_dir/$ac_word"; then
15472 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
15473 echo "$as_me:15473: found $ac_dir/$ac_word" >&5
15474 break
15475fi
15476done
15477
21d1c967
GD
15478 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
15479 ;;
15480esac
15481fi
5c6fa7d2
RR
15482GTK_CONFIG=$ac_cv_path_GTK_CONFIG
15483
21d1c967 15484if test -n "$GTK_CONFIG"; then
5c6fa7d2
RR
15485 echo "$as_me:15485: result: $GTK_CONFIG" >&5
15486echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 15487else
5c6fa7d2
RR
15488 echo "$as_me:15488: result: no" >&5
15489echo "${ECHO_T}no" >&6
21d1c967
GD
15490fi
15491
15492 min_gtk_version=1.2.7
5c6fa7d2
RR
15493 echo "$as_me:15493: checking for GTK - version >= $min_gtk_version" >&5
15494echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
15495 no_gtk=""
15496 if test "$GTK_CONFIG" = "no" ; then
15497 no_gtk=yes
15498 else
15499 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
15500 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
15501 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
15502 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15503 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
15504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15505 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
15506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15507 if test "x$enable_gtktest" = "xyes" ; then
15508 ac_save_CFLAGS="$CFLAGS"
15509 ac_save_LIBS="$LIBS"
15510 CFLAGS="$CFLAGS $GTK_CFLAGS"
15511 LIBS="$GTK_LIBS $LIBS"
15512 rm -f conf.gtktest
15513 if test "$cross_compiling" = yes; then
15514 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 15515else
5c6fa7d2
RR
15516 cat >conftest.$ac_ext <<_ACEOF
15517#line 15517 "configure"
f79bd02d
JS
15518#include "confdefs.h"
15519
21d1c967
GD
15520#include <gtk/gtk.h>
15521#include <stdio.h>
15522#include <stdlib.h>
f79bd02d 15523
5c6fa7d2 15524int
21d1c967
GD
15525main ()
15526{
15527 int major, minor, micro;
15528 char *tmp_version;
15529
15530 system ("touch conf.gtktest");
15531
15532 /* HP/UX 9 (%@#!) writes to sscanf strings */
15533 tmp_version = g_strdup("$min_gtk_version");
15534 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15535 printf("%s, bad version string\n", "$min_gtk_version");
15536 exit(1);
15537 }
90dd450c 15538
21d1c967
GD
15539 if ((gtk_major_version != $gtk_config_major_version) ||
15540 (gtk_minor_version != $gtk_config_minor_version) ||
15541 (gtk_micro_version != $gtk_config_micro_version))
15542 {
5c6fa7d2 15543 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
15544 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15545 gtk_major_version, gtk_minor_version, gtk_micro_version);
15546 printf ("*** was found! If gtk-config was correct, then it is best\n");
15547 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15548 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15549 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15550 printf("*** required on your system.\n");
15551 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
15552 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
15553 printf("*** before re-running configure\n");
5c6fa7d2 15554 }
21d1c967
GD
15555#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
15556 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15557 (gtk_minor_version != GTK_MINOR_VERSION) ||
15558 (gtk_micro_version != GTK_MICRO_VERSION))
15559 {
15560 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15561 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15562 printf("*** library (version %d.%d.%d)\n",
15563 gtk_major_version, gtk_minor_version, gtk_micro_version);
15564 }
15565#endif /* defined (GTK_MAJOR_VERSION) ... */
15566 else
15567 {
15568 if ((gtk_major_version > major) ||
15569 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15570 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15571 {
15572 return 0;
15573 }
15574 else
15575 {
15576 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15577 gtk_major_version, gtk_minor_version, gtk_micro_version);
15578 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15579 major, minor, micro);
15580 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15581 printf("***\n");
15582 printf("*** If you have already installed a sufficiently new version, this error\n");
15583 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
15584 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15585 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
15586 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
15587 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15588 printf("*** so that the correct libraries are found at run-time))\n");
15589 }
15590 }
15591 return 1;
15592}
15593
5c6fa7d2
RR
15594_ACEOF
15595rm -f conftest$ac_exeext
15596if { (eval echo "$as_me:15596: \"$ac_link\"") >&5
15597 (eval $ac_link) 2>&5
15598 ac_status=$?
15599 echo "$as_me:15599: \$? = $ac_status" >&5
15600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15601 { (eval echo "$as_me:15601: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:15604: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
21d1c967
GD
15606 :
15607else
5c6fa7d2
RR
15608 echo "$as_me: program exited with status $ac_status" >&5
15609echo "$as_me: failed program was:" >&5
15610cat conftest.$ac_ext >&5
15611no_gtk=yes
21d1c967 15612fi
5c6fa7d2 15613rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 15614fi
21d1c967
GD
15615 CFLAGS="$ac_save_CFLAGS"
15616 LIBS="$ac_save_LIBS"
15617 fi
15618 fi
15619 if test "x$no_gtk" = x ; then
5c6fa7d2
RR
15620 echo "$as_me:15620: result: yes" >&5
15621echo "${ECHO_T}yes" >&6
15622 wx_cv_lib_gtk=1.2.7
21d1c967 15623 else
5c6fa7d2
RR
15624 echo "$as_me:15624: result: no" >&5
15625echo "${ECHO_T}no" >&6
21d1c967
GD
15626 if test "$GTK_CONFIG" = "no" ; then
15627 echo "*** The gtk-config script installed by GTK could not be found"
15628 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
15629 echo "*** your path, or set the GTK_CONFIG environment variable to the"
15630 echo "*** full path to gtk-config."
15631 else
15632 if test -f conf.gtktest ; then
15633 :
15634 else
15635 echo "*** Could not run GTK test program, checking why..."
15636 CFLAGS="$CFLAGS $GTK_CFLAGS"
15637 LIBS="$LIBS $GTK_LIBS"
5c6fa7d2
RR
15638 cat >conftest.$ac_ext <<_ACEOF
15639#line 15639 "configure"
21d1c967
GD
15640#include "confdefs.h"
15641
15642#include <gtk/gtk.h>
15643#include <stdio.h>
15644
5c6fa7d2
RR
15645int
15646main ()
15647{
15648 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15649 ;
15650 return 0;
15651}
15652_ACEOF
15653rm -f conftest.$ac_objext conftest$ac_exeext
15654if { (eval echo "$as_me:15654: \"$ac_link\"") >&5
15655 (eval $ac_link) 2>&5
15656 ac_status=$?
15657 echo "$as_me:15657: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -s conftest$ac_exeext'
15660 { (eval echo "$as_me:15660: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
21d1c967
GD
15665 echo "*** The test program compiled, but did not run. This usually means"
15666 echo "*** that the run-time linker is not finding GTK or finding the wrong"
15667 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
15668 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15669 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15670 echo "*** is required on your system"
15671 echo "***"
15672 echo "*** If you have an old version installed, it is best to remove it, although"
15673 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15674 echo "***"
15675 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
15676 echo "*** came with the system with the command"
15677 echo "***"
5c6fa7d2 15678 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 15679else
5c6fa7d2
RR
15680 echo "$as_me: failed program was:" >&5
15681cat conftest.$ac_ext >&5
15682 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
15683 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
15684 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
5c6fa7d2 15685 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 15686fi
5c6fa7d2 15687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
15688 CFLAGS="$ac_save_CFLAGS"
15689 LIBS="$ac_save_LIBS"
15690 fi
15691 fi
15692 GTK_CFLAGS=""
15693 GTK_LIBS=""
15694 :
15695 fi
5c6fa7d2 15696
21d1c967
GD
15697 rm -f conf.gtktest
15698
15699 fi
15700
15701 if test -z "$wx_cv_lib_gtk"; then
5c6fa7d2
RR
15702
15703# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
15704if test "${with_gtk_prefix+set}" = set; then
15705 withval="$with_gtk_prefix"
15706 gtk_config_prefix="$withval"
15707else
15708 gtk_config_prefix=""
5c6fa7d2 15709fi;
f79bd02d 15710
21d1c967
GD
15711# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
15712if test "${with_gtk_exec_prefix+set}" = set; then
15713 withval="$with_gtk_exec_prefix"
15714 gtk_config_exec_prefix="$withval"
15715else
15716 gtk_config_exec_prefix=""
5c6fa7d2 15717fi;
21d1c967
GD
15718# Check whether --enable-gtktest or --disable-gtktest was given.
15719if test "${enable_gtktest+set}" = set; then
15720 enableval="$enable_gtktest"
5c6fa7d2 15721
90dd450c 15722else
21d1c967 15723 enable_gtktest=yes
5c6fa7d2 15724fi;
21d1c967
GD
15725
15726 for module in . $GTK_MODULES
15727 do
15728 case "$module" in
5c6fa7d2 15729 gthread)
21d1c967
GD
15730 gtk_config_args="$gtk_config_args gthread"
15731 ;;
15732 esac
15733 done
15734
15735 if test x$gtk_config_exec_prefix != x ; then
15736 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
15737 if test x${GTK_CONFIG+set} != xset ; then
15738 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
15739 fi
15740 fi
15741 if test x$gtk_config_prefix != x ; then
15742 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
15743 if test x${GTK_CONFIG+set} != xset ; then
15744 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
15745 fi
15746 fi
15747
15748 # Extract the first word of "gtk-config", so it can be a program name with args.
15749set dummy gtk-config; ac_word=$2
5c6fa7d2
RR
15750echo "$as_me:15750: checking for $ac_word" >&5
15751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15752if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 15754else
5c6fa7d2
RR
15755 case $GTK_CONFIG in
15756 [\\/]* | ?:[\\/]*)
21d1c967
GD
15757 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
15758 ;;
21d1c967 15759 *)
5c6fa7d2
RR
15760 ac_save_IFS=$IFS; IFS=$ac_path_separator
15761ac_dummy="$PATH"
15762for ac_dir in $ac_dummy; do
15763 IFS=$ac_save_IFS
15764 test -z "$ac_dir" && ac_dir=.
15765 if $as_executable_p "$ac_dir/$ac_word"; then
15766 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
15767 echo "$as_me:15767: found $ac_dir/$ac_word" >&5
15768 break
15769fi
15770done
15771
21d1c967
GD
15772 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
15773 ;;
15774esac
15775fi
5c6fa7d2
RR
15776GTK_CONFIG=$ac_cv_path_GTK_CONFIG
15777
21d1c967 15778if test -n "$GTK_CONFIG"; then
5c6fa7d2
RR
15779 echo "$as_me:15779: result: $GTK_CONFIG" >&5
15780echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 15781else
5c6fa7d2
RR
15782 echo "$as_me:15782: result: no" >&5
15783echo "${ECHO_T}no" >&6
21d1c967
GD
15784fi
15785
15786 min_gtk_version=1.2.3
5c6fa7d2
RR
15787 echo "$as_me:15787: checking for GTK - version >= $min_gtk_version" >&5
15788echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
15789 no_gtk=""
15790 if test "$GTK_CONFIG" = "no" ; then
15791 no_gtk=yes
15792 else
15793 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
15794 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
15795 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
15796 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15797 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
15798 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15799 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
15800 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15801 if test "x$enable_gtktest" = "xyes" ; then
15802 ac_save_CFLAGS="$CFLAGS"
15803 ac_save_LIBS="$LIBS"
15804 CFLAGS="$CFLAGS $GTK_CFLAGS"
15805 LIBS="$GTK_LIBS $LIBS"
15806 rm -f conf.gtktest
15807 if test "$cross_compiling" = yes; then
15808 echo $ac_n "cross compiling; assumed OK... $ac_c"
15809else
5c6fa7d2
RR
15810 cat >conftest.$ac_ext <<_ACEOF
15811#line 15811 "configure"
f79bd02d 15812#include "confdefs.h"
21d1c967
GD
15813
15814#include <gtk/gtk.h>
15815#include <stdio.h>
15816#include <stdlib.h>
15817
5c6fa7d2 15818int
21d1c967
GD
15819main ()
15820{
15821 int major, minor, micro;
15822 char *tmp_version;
15823
15824 system ("touch conf.gtktest");
15825
15826 /* HP/UX 9 (%@#!) writes to sscanf strings */
15827 tmp_version = g_strdup("$min_gtk_version");
15828 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
15829 printf("%s, bad version string\n", "$min_gtk_version");
15830 exit(1);
15831 }
15832
15833 if ((gtk_major_version != $gtk_config_major_version) ||
15834 (gtk_minor_version != $gtk_config_minor_version) ||
15835 (gtk_micro_version != $gtk_config_micro_version))
15836 {
5c6fa7d2 15837 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
15838 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
15839 gtk_major_version, gtk_minor_version, gtk_micro_version);
15840 printf ("*** was found! If gtk-config was correct, then it is best\n");
15841 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
15842 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15843 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15844 printf("*** required on your system.\n");
15845 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
15846 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
15847 printf("*** before re-running configure\n");
5c6fa7d2 15848 }
21d1c967
GD
15849#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
15850 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
15851 (gtk_minor_version != GTK_MINOR_VERSION) ||
15852 (gtk_micro_version != GTK_MICRO_VERSION))
15853 {
15854 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
15855 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
15856 printf("*** library (version %d.%d.%d)\n",
15857 gtk_major_version, gtk_minor_version, gtk_micro_version);
15858 }
15859#endif /* defined (GTK_MAJOR_VERSION) ... */
15860 else
15861 {
15862 if ((gtk_major_version > major) ||
15863 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
15864 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
15865 {
15866 return 0;
15867 }
15868 else
15869 {
15870 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
15871 gtk_major_version, gtk_minor_version, gtk_micro_version);
15872 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
15873 major, minor, micro);
15874 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
15875 printf("***\n");
15876 printf("*** If you have already installed a sufficiently new version, this error\n");
15877 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
15878 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15879 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
15880 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
15881 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15882 printf("*** so that the correct libraries are found at run-time))\n");
15883 }
15884 }
15885 return 1;
15886}
15887
5c6fa7d2
RR
15888_ACEOF
15889rm -f conftest$ac_exeext
15890if { (eval echo "$as_me:15890: \"$ac_link\"") >&5
15891 (eval $ac_link) 2>&5
15892 ac_status=$?
15893 echo "$as_me:15893: \$? = $ac_status" >&5
15894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15895 { (eval echo "$as_me:15895: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:15898: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
21d1c967
GD
15900 :
15901else
5c6fa7d2
RR
15902 echo "$as_me: program exited with status $ac_status" >&5
15903echo "$as_me: failed program was:" >&5
15904cat conftest.$ac_ext >&5
15905no_gtk=yes
21d1c967 15906fi
5c6fa7d2 15907rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 15908fi
21d1c967
GD
15909 CFLAGS="$ac_save_CFLAGS"
15910 LIBS="$ac_save_LIBS"
15911 fi
15912 fi
15913 if test "x$no_gtk" = x ; then
5c6fa7d2
RR
15914 echo "$as_me:15914: result: yes" >&5
15915echo "${ECHO_T}yes" >&6
15916 wx_cv_lib_gtk=1.2.3
21d1c967 15917 else
5c6fa7d2
RR
15918 echo "$as_me:15918: result: no" >&5
15919echo "${ECHO_T}no" >&6
21d1c967
GD
15920 if test "$GTK_CONFIG" = "no" ; then
15921 echo "*** The gtk-config script installed by GTK could not be found"
15922 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
15923 echo "*** your path, or set the GTK_CONFIG environment variable to the"
15924 echo "*** full path to gtk-config."
15925 else
15926 if test -f conf.gtktest ; then
15927 :
15928 else
15929 echo "*** Could not run GTK test program, checking why..."
15930 CFLAGS="$CFLAGS $GTK_CFLAGS"
15931 LIBS="$LIBS $GTK_LIBS"
5c6fa7d2
RR
15932 cat >conftest.$ac_ext <<_ACEOF
15933#line 15933 "configure"
21d1c967
GD
15934#include "confdefs.h"
15935
15936#include <gtk/gtk.h>
15937#include <stdio.h>
f79bd02d 15938
5c6fa7d2
RR
15939int
15940main ()
15941{
15942 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
15943 ;
15944 return 0;
15945}
15946_ACEOF
15947rm -f conftest.$ac_objext conftest$ac_exeext
15948if { (eval echo "$as_me:15948: \"$ac_link\"") >&5
15949 (eval $ac_link) 2>&5
15950 ac_status=$?
15951 echo "$as_me:15951: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -s conftest$ac_exeext'
15954 { (eval echo "$as_me:15954: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:15957: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
21d1c967
GD
15959 echo "*** The test program compiled, but did not run. This usually means"
15960 echo "*** that the run-time linker is not finding GTK or finding the wrong"
15961 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
15962 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15963 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15964 echo "*** is required on your system"
15965 echo "***"
15966 echo "*** If you have an old version installed, it is best to remove it, although"
15967 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15968 echo "***"
15969 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
15970 echo "*** came with the system with the command"
15971 echo "***"
5c6fa7d2 15972 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 15973else
5c6fa7d2
RR
15974 echo "$as_me: failed program was:" >&5
15975cat conftest.$ac_ext >&5
15976 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
15977 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
15978 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
5c6fa7d2 15979 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 15980fi
5c6fa7d2 15981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
15982 CFLAGS="$ac_save_CFLAGS"
15983 LIBS="$ac_save_LIBS"
15984 fi
15985 fi
15986 GTK_CFLAGS=""
15987 GTK_LIBS=""
15988 :
15989 fi
5c6fa7d2 15990
21d1c967 15991 rm -f conf.gtktest
f79bd02d 15992
21d1c967
GD
15993 fi
15994
15995 if test -z "$wx_cv_lib_gtk"; then
15996 wx_cv_lib_gtk=none
15997 else
15998 wx_cv_cflags_gtk=$GTK_CFLAGS
15999 wx_cv_libs_gtk=$GTK_LIBS
16000 fi
579d8138 16001
5c6fa7d2 16002fi
52127426 16003
21d1c967 16004 if test "$gtk_version_cached" = 1; then
5c6fa7d2
RR
16005 echo "$as_me:16005: result: $wx_cv_lib_gtk" >&5
16006echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
16007 fi
16008
16009 case "$wx_cv_lib_gtk" in
16010 2.0) WXGTK20=1
16011 ;;
16012 1.2.7) WXGTK127=1
16013 WXGTK12=1
16014 ;;
16015 1.2.3) WXGTK12=1
16016 ;;
5c6fa7d2
RR
16017 *) { { echo "$as_me:16017: error:
16018Please check that gtk-config is in path, the directory
16019where GTK+ libraries are installed (returned by
16020'gtk-config --libs' command) is in LD_LIBRARY_PATH or
16021equivalent variable and GTK+ is version 1.2.3 or above.
16022 " >&5
16023echo "$as_me: error:
328a083c
RR
16024Please check that gtk-config is in path, the directory
16025where GTK+ libraries are installed (returned by
16026'gtk-config --libs' command) is in LD_LIBRARY_PATH or
16027equivalent variable and GTK+ is version 1.2.3 or above.
5c6fa7d2
RR
16028 " >&2;}
16029 { (exit 1); exit 1; }; }
21d1c967
GD
16030 ;;
16031 esac
16032
b13cd66e
VZ
16033 if test "$WXGTK20" = 1; then
16034 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
5c6fa7d2 16035
f09359cf
VS
16036 succeeded=no
16037
16038 if test -z "$PKG_CONFIG"; then
16039 # Extract the first word of "pkg-config", so it can be a program name with args.
16040set dummy pkg-config; ac_word=$2
5c6fa7d2
RR
16041echo "$as_me:16041: checking for $ac_word" >&5
16042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16043if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 16045else
5c6fa7d2
RR
16046 case $PKG_CONFIG in
16047 [\\/]* | ?:[\\/]*)
f09359cf
VS
16048 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16049 ;;
f09359cf 16050 *)
5c6fa7d2
RR
16051 ac_save_IFS=$IFS; IFS=$ac_path_separator
16052ac_dummy="$PATH"
16053for ac_dir in $ac_dummy; do
16054 IFS=$ac_save_IFS
16055 test -z "$ac_dir" && ac_dir=.
16056 if $as_executable_p "$ac_dir/$ac_word"; then
16057 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
16058 echo "$as_me:16058: found $ac_dir/$ac_word" >&5
16059 break
16060fi
16061done
16062
f09359cf
VS
16063 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16064 ;;
16065esac
16066fi
5c6fa7d2
RR
16067PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16068
f09359cf 16069if test -n "$PKG_CONFIG"; then
5c6fa7d2
RR
16070 echo "$as_me:16070: result: $PKG_CONFIG" >&5
16071echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 16072else
5c6fa7d2
RR
16073 echo "$as_me:16073: result: no" >&5
16074echo "${ECHO_T}no" >&6
f09359cf
VS
16075fi
16076
16077 fi
16078
16079 if test "$PKG_CONFIG" = "no" ; then
16080 echo "*** The pkg-config script could not be found. Make sure it is"
16081 echo "*** in your path, or set the PKG_CONFIG environment variable"
16082 echo "*** to the full path to pkg-config."
16083 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
16084 else
16085 PKG_CONFIG_MIN_VERSION=0.9.0
16086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5c6fa7d2
RR
16087 echo "$as_me:16087: checking for pangoft2" >&5
16088echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
16089
16090 if $PKG_CONFIG --exists "pangoft2" ; then
5c6fa7d2
RR
16091 echo "$as_me:16091: result: yes" >&5
16092echo "${ECHO_T}yes" >&6
f09359cf
VS
16093 succeeded=yes
16094
5c6fa7d2
RR
16095 echo "$as_me:16095: checking PANGOFT2_CFLAGS" >&5
16096echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 16097 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
5c6fa7d2
RR
16098 echo "$as_me:16098: result: $PANGOFT2_CFLAGS" >&5
16099echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 16100
5c6fa7d2
RR
16101 echo "$as_me:16101: checking PANGOFT2_LIBS" >&5
16102echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 16103 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
5c6fa7d2
RR
16104 echo "$as_me:16104: result: $PANGOFT2_LIBS" >&5
16105echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
16106 else
16107 PANGOFT2_CFLAGS=""
16108 PANGOFT2_LIBS=""
5c6fa7d2 16109 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
16110 ## do set a variable so people can do so.
16111 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
5c6fa7d2 16112
f09359cf
VS
16113 fi
16114
f09359cf
VS
16115 else
16116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16118 fi
16119 fi
16120
16121 if test $succeeded = yes; then
5c6fa7d2 16122
b13cd66e
VZ
16123 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
16124 LIBS="$LIBS $PANGOFT2_LIBS"
5c6fa7d2 16125
f09359cf 16126 else
5c6fa7d2
RR
16127
16128 { echo "$as_me:16128: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
16129echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 16130 wxUSE_PRINTING_ARCHITECTURE="no"
5c6fa7d2 16131
f09359cf
VS
16132 fi
16133
b13cd66e 16134 fi
f09359cf
VS
16135 fi
16136
21d1c967
GD
16137 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
16138 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
16139
16140 AFMINSTALL=afminstall
16141 TOOLKIT=GTK
16142 GUIDIST=GTK_DIST
16143
5c6fa7d2
RR
16144 echo "$as_me:16144: checking for gdk_im_open in -lgdk" >&5
16145echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
16146if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16148else
5c6fa7d2 16149 ac_check_lib_save_LIBS=$LIBS
21d1c967 16150LIBS="-lgdk $LIBS"
5c6fa7d2
RR
16151cat >conftest.$ac_ext <<_ACEOF
16152#line 16152 "configure"
90dd450c 16153#include "confdefs.h"
52127426 16154
5c6fa7d2
RR
16155/* Override any gcc2 internal prototype to avoid an error. */
16156#ifdef __cplusplus
16157extern "C"
16158#endif
16159/* We use char because int might match the return type of a gcc2
16160 builtin and then its argument prototype would still apply. */
16161char gdk_im_open ();
16162int
16163main ()
16164{
16165gdk_im_open ();
16166 ;
16167 return 0;
16168}
16169_ACEOF
16170rm -f conftest.$ac_objext conftest$ac_exeext
16171if { (eval echo "$as_me:16171: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>&5
16173 ac_status=$?
16174 echo "$as_me:16174: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -s conftest$ac_exeext'
16177 { (eval echo "$as_me:16177: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16179 ac_status=$?
16180 echo "$as_me:16180: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 ac_cv_lib_gdk_gdk_im_open=yes
16183else
16184 echo "$as_me: failed program was:" >&5
16185cat conftest.$ac_ext >&5
16186ac_cv_lib_gdk_gdk_im_open=no
16187fi
16188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16189LIBS=$ac_check_lib_save_LIBS
16190fi
16191echo "$as_me:16191: result: $ac_cv_lib_gdk_gdk_im_open" >&5
16192echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
16193if test $ac_cv_lib_gdk_gdk_im_open = yes; then
16194 cat >>confdefs.h <<\EOF
21d1c967
GD
16195#define HAVE_XIM 1
16196EOF
16197
90dd450c 16198fi
1e6feb95 16199
21d1c967 16200 fi
1e6feb95 16201
21d1c967 16202 if test "$wxUSE_MGL" = 1; then
5c6fa7d2
RR
16203 echo "$as_me:16203: checking for SciTech MGL library" >&5
16204echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 16205 if test "x$MGL_ROOT" = x ; then
5c6fa7d2
RR
16206 echo "$as_me:16206: result: not found" >&5
16207echo "${ECHO_T}not found" >&6
16208 { { echo "$as_me:16208: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
16209echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
16210 { (exit 1); exit 1; }; }
21d1c967 16211 else
5c6fa7d2
RR
16212 echo "$as_me:16212: result: $MGL_ROOT" >&5
16213echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
16214 fi
16215
16216 case "${host}" in
16217 *-*-linux* )
16218 mgl_os=linux/gcc/glibc
16219 ;;
16220 *-pc-msdosdjgpp )
16221 mgl_os=dos32/dj2
16222 ;;
16223 *)
5c6fa7d2
RR
16224 { { echo "$as_me:16224: error: This system type ${host} is not yet supported by wxMGL." >&5
16225echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
16226 { (exit 1); exit 1; }; }
21d1c967 16227 esac
1e6feb95 16228
21d1c967 16229 mgl_lib_type=""
3fcdd07b 16230
21d1c967
GD
16231 if test "$wxUSE_DEBUG_FLAG" = yes ; then
16232 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
16233 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
16234 mgl_lib_type=debug
16235 fi
16236 fi
16237 if test "x$mgl_lib_type" = x ; then
16238 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
16239 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
16240 mgl_lib_type=release
16241 else
5c6fa7d2
RR
16242 { { echo "$as_me:16242: error: Cannot find MGL libraries, make sure they are compiled." >&5
16243echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
16244 { (exit 1); exit 1; }; }
21d1c967 16245 fi
90dd450c 16246 fi
2224580a 16247
1d1b75ac
VZ
16248 wxUSE_UNIVERSAL="yes"
16249
21d1c967
GD
16250 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
16251 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
16252
90dd450c 16253 AFMINSTALL=afminstall
21d1c967
GD
16254 TOOLKIT=MGL
16255 GUIDIST=MGL_DIST
16256 fi
dad6c0ea 16257
21d1c967 16258 if test "$wxUSE_MICROWIN" = 1; then
5c6fa7d2
RR
16259 echo "$as_me:16259: checking for MicroWindows" >&5
16260echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 16261 if test "x$MICROWINDOWS" = x ; then
5c6fa7d2
RR
16262 echo "$as_me:16262: result: not found" >&5
16263echo "${ECHO_T}not found" >&6
16264 { { echo "$as_me:16264: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
16265echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
16266 { (exit 1); exit 1; }; }
21d1c967 16267 else
5c6fa7d2
RR
16268 echo "$as_me:16268: result: $MICROWINDOWS" >&5
16269echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 16270 fi
f6bcfd97 16271
21d1c967 16272 if test -f $MICROWINDOWS/lib/libmwin.a; then
5c6fa7d2
RR
16273 echo "$as_me:16273: result: MicroWindows' libraries found." >&5
16274echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 16275 else
5c6fa7d2
RR
16276 { { echo "$as_me:16276: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
16277echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
16278 { (exit 1); exit 1; }; }
90dd450c 16279 fi
0b2effe9 16280
21d1c967
GD
16281 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
16282 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
16283
1d1b75ac
VZ
16284 wxUSE_UNIVERSAL="yes"
16285
21d1c967
GD
16286 AFMINSTALL=afminstall
16287 TOOLKIT=MICROWIN
16288 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
16289
16290 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 16291 fi
f6bcfd97 16292
21d1c967 16293 if test "$wxUSE_X11" = 1; then
5c6fa7d2
RR
16294 echo "$as_me:16294: checking for X" >&5
16295echo $ECHO_N "checking for X... $ECHO_C" >&6
d8356fa3 16296
21d1c967
GD
16297# Check whether --with-x or --without-x was given.
16298if test "${with_x+set}" = set; then
16299 withval="$with_x"
2224580a 16300
5c6fa7d2 16301fi;
21d1c967
GD
16302# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16303if test "x$with_x" = xno; then
16304 # The user explicitly disabled X.
16305 have_x=disabled
16306else
16307 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
16308 # Both variables are already set.
16309 have_x=yes
16310 else
5c6fa7d2
RR
16311 if test "${ac_cv_have_x+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
16313else
16314 # One or both of the vars are not set, and there is no cached value.
5c6fa7d2
RR
16315ac_x_includes=no ac_x_libraries=no
16316rm -fr conftest.dir
16317if mkdir conftest.dir; then
16318 cd conftest.dir
21d1c967 16319 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5c6fa7d2 16320 cat >Imakefile <<'EOF'
21d1c967
GD
16321acfindx:
16322 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
16323EOF
16324 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
16325 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16326 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
16327 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16328 for ac_extension in a so sl; do
16329 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5c6fa7d2 16330 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
16331 ac_im_usrlibdir=$ac_im_libdir; break
16332 fi
16333 done
16334 # Screen out bogus values from the imake configuration. They are
16335 # bogus both because they are the default anyway, and because
16336 # using them would break gcc on systems where it needs fixed includes.
5c6fa7d2 16337 case $ac_im_incroot in
21d1c967 16338 /usr/include) ;;
5c6fa7d2 16339 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 16340 esac
5c6fa7d2 16341 case $ac_im_usrlibdir in
21d1c967 16342 /usr/lib | /lib) ;;
5c6fa7d2 16343 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
16344 esac
16345 fi
16346 cd ..
5c6fa7d2 16347 rm -fr conftest.dir
21d1c967 16348fi
10f2d63a 16349
5c6fa7d2
RR
16350# Standard set of common directories for X headers.
16351# Check X11 before X11Rn because it is often a symlink to the current release.
16352ac_x_header_dirs='
16353/usr/X11/include
16354/usr/X11R6/include
16355/usr/X11R5/include
16356/usr/X11R4/include
16357
16358/usr/include/X11
16359/usr/include/X11R6
16360/usr/include/X11R5
16361/usr/include/X11R4
16362
16363/usr/local/X11/include
16364/usr/local/X11R6/include
16365/usr/local/X11R5/include
16366/usr/local/X11R4/include
16367
16368/usr/local/include/X11
16369/usr/local/include/X11R6
16370/usr/local/include/X11R5
16371/usr/local/include/X11R4
16372
16373/usr/X386/include
16374/usr/x386/include
16375/usr/XFree86/include/X11
16376
16377/usr/include
16378/usr/local/include
16379/usr/unsupported/include
16380/usr/athena/include
16381/usr/local/x11r5/include
16382/usr/lpp/Xamples/include
16383
16384/usr/openwin/include
16385/usr/openwin/share/include'
16386
16387if test "$ac_x_includes" = no; then
16388 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 16389 # First, try using that file with no special directory specified.
5c6fa7d2
RR
16390 cat >conftest.$ac_ext <<_ACEOF
16391#line 16391 "configure"
21d1c967 16392#include "confdefs.h"
5c6fa7d2
RR
16393#include <X11/Intrinsic.h>
16394_ACEOF
16395if { (eval echo "$as_me:16395: \"$ac_cpp conftest.$ac_ext\"") >&5
16396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16397 ac_status=$?
16398 egrep -v '^ *\+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 echo "$as_me:16401: \$? = $ac_status" >&5
16402 (exit $ac_status); } >/dev/null; then
16403 if test -s conftest.err; then
16404 ac_cpp_err=$ac_c_preproc_warn_flag
16405 else
16406 ac_cpp_err=
16407 fi
16408else
16409 ac_cpp_err=yes
16410fi
16411if test -z "$ac_cpp_err"; then
21d1c967
GD
16412 # We can compile using X headers with no special include directory.
16413ac_x_includes=
90dd450c 16414else
5c6fa7d2 16415 echo "$as_me: failed program was:" >&5
90dd450c 16416 cat conftest.$ac_ext >&5
5c6fa7d2
RR
16417 for ac_dir in $ac_x_header_dirs; do
16418 if test -r "$ac_dir/X11/Intrinsic.h"; then
16419 ac_x_includes=$ac_dir
16420 break
16421 fi
16422done
3a922bb4 16423fi
5c6fa7d2
RR
16424rm -f conftest.err conftest.$ac_ext
16425fi # $ac_x_includes = no
10f2d63a 16426
5c6fa7d2 16427if test "$ac_x_libraries" = no; then
21d1c967 16428 # Check for the libraries.
21d1c967
GD
16429 # See if we find them without any special options.
16430 # Don't add to $LIBS permanently.
5c6fa7d2
RR
16431 ac_save_LIBS=$LIBS
16432 LIBS="-lXt $LIBS"
16433 cat >conftest.$ac_ext <<_ACEOF
16434#line 16434 "configure"
3a922bb4 16435#include "confdefs.h"
5c6fa7d2
RR
16436#include <X11/Intrinsic.h>
16437int
16438main ()
16439{
16440XtMalloc (0)
16441 ;
16442 return 0;
16443}
16444_ACEOF
16445rm -f conftest.$ac_objext conftest$ac_exeext
16446if { (eval echo "$as_me:16446: \"$ac_link\"") >&5
16447 (eval $ac_link) 2>&5
16448 ac_status=$?
16449 echo "$as_me:16449: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -s conftest$ac_exeext'
16452 { (eval echo "$as_me:16452: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:16455: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 LIBS=$ac_save_LIBS
21d1c967
GD
16458# We can link X programs with no special library path.
16459ac_x_libraries=
3a922bb4 16460else
5c6fa7d2
RR
16461 echo "$as_me: failed program was:" >&5
16462cat conftest.$ac_ext >&5
16463LIBS=$ac_save_LIBS
16464for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 16465do
5c6fa7d2 16466 # Don't even attempt the hair of trying to link an X program!
21d1c967 16467 for ac_extension in a so sl; do
5c6fa7d2 16468 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
16469 ac_x_libraries=$ac_dir
16470 break 2
16471 fi
16472 done
16473done
3a922bb4 16474fi
5c6fa7d2
RR
16475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16476fi # $ac_x_libraries = no
90dd450c 16477
5c6fa7d2 16478if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
16479 # Didn't find X anywhere. Cache the known absence of X.
16480 ac_cv_have_x="have_x=no"
16481else
16482 # Record where we found X for the cache.
16483 ac_cv_have_x="have_x=yes \
16484 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 16485fi
21d1c967 16486fi
5c6fa7d2 16487
21d1c967
GD
16488 fi
16489 eval "$ac_cv_have_x"
16490fi # $with_x != no
90dd450c 16491
21d1c967 16492if test "$have_x" != yes; then
5c6fa7d2
RR
16493 echo "$as_me:16493: result: $have_x" >&5
16494echo "${ECHO_T}$have_x" >&6
21d1c967
GD
16495 no_x=yes
16496else
16497 # If each of the values was on the command line, it overrides each guess.
16498 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16499 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16500 # Update the cache value to reflect the command line values.
16501 ac_cv_have_x="have_x=yes \
16502 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5c6fa7d2
RR
16503 echo "$as_me:16503: result: libraries $x_libraries, headers $x_includes" >&5
16504echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 16505fi
90dd450c 16506
21d1c967 16507if test "$no_x" = yes; then
90dd450c 16508 # Not all programs may use this symbol, but it does not hurt to define it.
5c6fa7d2
RR
16509
16510cat >>confdefs.h <<\EOF
90dd450c
VZ
16511#define X_DISPLAY_MISSING 1
16512EOF
16513
16514 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16515else
16516 if test -n "$x_includes"; then
16517 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 16518 fi
3a922bb4 16519
90dd450c
VZ
16520 # It would also be nice to do this for all -L options, not just this one.
16521 if test -n "$x_libraries"; then
16522 X_LIBS="$X_LIBS -L$x_libraries"
16523 # For Solaris; some versions of Sun CC require a space after -R and
16524 # others require no space. Words are not sufficient . . . .
5c6fa7d2 16525 case `(uname -sr) 2>/dev/null` in
90dd450c 16526 "SunOS 5"*)
5c6fa7d2
RR
16527 echo "$as_me:16527: checking whether -R must be followed by a space" >&5
16528echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
16529 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16530 cat >conftest.$ac_ext <<_ACEOF
16531#line 16531 "configure"
90dd450c
VZ
16532#include "confdefs.h"
16533
5c6fa7d2
RR
16534int
16535main ()
16536{
90dd450c 16537
5c6fa7d2
RR
16538 ;
16539 return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext conftest$ac_exeext
16543if { (eval echo "$as_me:16543: \"$ac_link\"") >&5
16544 (eval $ac_link) 2>&5
16545 ac_status=$?
16546 echo "$as_me:16546: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
16548 { ac_try='test -s conftest$ac_exeext'
16549 { (eval echo "$as_me:16549: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:16552: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
90dd450c 16554 ac_R_nospace=yes
3a922bb4 16555else
5c6fa7d2
RR
16556 echo "$as_me: failed program was:" >&5
16557cat conftest.$ac_ext >&5
16558ac_R_nospace=no
3a922bb4 16559fi
5c6fa7d2 16560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 16561 if test $ac_R_nospace = yes; then
5c6fa7d2
RR
16562 echo "$as_me:16562: result: no" >&5
16563echo "${ECHO_T}no" >&6
90dd450c
VZ
16564 X_LIBS="$X_LIBS -R$x_libraries"
16565 else
16566 LIBS="$ac_xsave_LIBS -R $x_libraries"
5c6fa7d2
RR
16567 cat >conftest.$ac_ext <<_ACEOF
16568#line 16568 "configure"
90dd450c 16569#include "confdefs.h"
3a922bb4 16570
5c6fa7d2
RR
16571int
16572main ()
16573{
6f754473 16574
5c6fa7d2
RR
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579rm -f conftest.$ac_objext conftest$ac_exeext
16580if { (eval echo "$as_me:16580: \"$ac_link\"") >&5
16581 (eval $ac_link) 2>&5
16582 ac_status=$?
16583 echo "$as_me:16583: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -s conftest$ac_exeext'
16586 { (eval echo "$as_me:16586: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:16589: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
90dd450c
VZ
16591 ac_R_space=yes
16592else
5c6fa7d2
RR
16593 echo "$as_me: failed program was:" >&5
16594cat conftest.$ac_ext >&5
16595ac_R_space=no
90dd450c 16596fi
5c6fa7d2 16597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 16598 if test $ac_R_space = yes; then
5c6fa7d2
RR
16599 echo "$as_me:16599: result: yes" >&5
16600echo "${ECHO_T}yes" >&6
90dd450c
VZ
16601 X_LIBS="$X_LIBS -R $x_libraries"
16602 else
5c6fa7d2
RR
16603 echo "$as_me:16603: result: neither works" >&5
16604echo "${ECHO_T}neither works" >&6
90dd450c
VZ
16605 fi
16606 fi
5c6fa7d2 16607 LIBS=$ac_xsave_LIBS
90dd450c
VZ
16608 esac
16609 fi
16610
16611 # Check for system-dependent libraries X programs must link with.
16612 # Do this before checking for the system-independent R6 libraries
16613 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 16614
90dd450c
VZ
16615 if test "$ISC" = yes; then
16616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16617 else
5c6fa7d2
RR
16618 # Martyn Johnson says this is needed for Ultrix, if the X
16619 # libraries were built with DECnet support. And Karl Berry says
90dd450c 16620 # the Alpha needs dnet_stub (dnet does not exist).
5c6fa7d2
RR
16621 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16622 cat >conftest.$ac_ext <<_ACEOF
16623#line 16623 "configure"
7b4a847f 16624#include "confdefs.h"
5c6fa7d2 16625
7b4a847f 16626/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
16627#ifdef __cplusplus
16628extern "C"
16629#endif
7b4a847f 16630/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
16631 builtin and then its argument prototype would still apply. */
16632char XOpenDisplay ();
16633int
16634main ()
16635{
16636XOpenDisplay ();
16637 ;
16638 return 0;
16639}
16640_ACEOF
16641rm -f conftest.$ac_objext conftest$ac_exeext
16642if { (eval echo "$as_me:16642: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>&5
16644 ac_status=$?
16645 echo "$as_me:16645: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (eval echo "$as_me:16648: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:16651: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 :
52127426 16654else
5c6fa7d2
RR
16655 echo "$as_me: failed program was:" >&5
16656cat conftest.$ac_ext >&5
16657echo "$as_me:16657: checking for dnet_ntoa in -ldnet" >&5
16658echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
16659if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661else
16662 ac_check_lib_save_LIBS=$LIBS
16663LIBS="-ldnet $LIBS"
16664cat >conftest.$ac_ext <<_ACEOF
16665#line 16665 "configure"
16666#include "confdefs.h"
52127426 16667
5c6fa7d2
RR
16668/* Override any gcc2 internal prototype to avoid an error. */
16669#ifdef __cplusplus
16670extern "C"
16671#endif
16672/* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16674char dnet_ntoa ();
16675int
16676main ()
16677{
16678dnet_ntoa ();
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext conftest$ac_exeext
16684if { (eval echo "$as_me:16684: \"$ac_link\"") >&5
16685 (eval $ac_link) 2>&5
16686 ac_status=$?
16687 echo "$as_me:16687: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -s conftest$ac_exeext'
16690 { (eval echo "$as_me:16690: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:16693: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_lib_dnet_dnet_ntoa=yes
16696else
16697 echo "$as_me: failed program was:" >&5
16698cat conftest.$ac_ext >&5
16699ac_cv_lib_dnet_dnet_ntoa=no
16700fi
16701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16702LIBS=$ac_check_lib_save_LIBS
16703fi
16704echo "$as_me:16704: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16705echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
16706if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 16707 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
16708fi
16709
90dd450c 16710 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5c6fa7d2
RR
16711 echo "$as_me:16711: checking for dnet_ntoa in -ldnet_stub" >&5
16712echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
16713if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16715else
5c6fa7d2 16716 ac_check_lib_save_LIBS=$LIBS
90dd450c 16717LIBS="-ldnet_stub $LIBS"
5c6fa7d2
RR
16718cat >conftest.$ac_ext <<_ACEOF
16719#line 16719 "configure"
90dd450c 16720#include "confdefs.h"
5c6fa7d2 16721
90dd450c 16722/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
16723#ifdef __cplusplus
16724extern "C"
16725#endif
90dd450c 16726/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
16727 builtin and then its argument prototype would still apply. */
16728char dnet_ntoa ();
16729int
16730main ()
16731{
16732dnet_ntoa ();
16733 ;
16734 return 0;
16735}
16736_ACEOF
16737rm -f conftest.$ac_objext conftest$ac_exeext
16738if { (eval echo "$as_me:16738: \"$ac_link\"") >&5
16739 (eval $ac_link) 2>&5
16740 ac_status=$?
16741 echo "$as_me:16741: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -s conftest$ac_exeext'
16744 { (eval echo "$as_me:16744: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:16747: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 ac_cv_lib_dnet_stub_dnet_ntoa=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752cat conftest.$ac_ext >&5
16753ac_cv_lib_dnet_stub_dnet_ntoa=no
16754fi
16755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16756LIBS=$ac_check_lib_save_LIBS
16757fi
16758echo "$as_me:16758: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16759echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
16760if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 16761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
16762fi
16763
90dd450c 16764 fi
5c6fa7d2
RR
16765fi
16766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16767 LIBS="$ac_xsave_LIBS"
978f1259 16768
90dd450c
VZ
16769 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
16770 # to get the SysV transport functions.
5c6fa7d2 16771 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
16772 # needs -lnsl.
16773 # The nsl library prevents programs from opening the X display
5c6fa7d2
RR
16774 # on Irix 5.2, according to T.E. Dickey.
16775 # The functions gethostbyname, getservbyname, and inet_addr are
16776 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16777 echo "$as_me:16777: checking for gethostbyname" >&5
16778echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
16779if test "${ac_cv_func_gethostbyname+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781else
16782 cat >conftest.$ac_ext <<_ACEOF
16783#line 16783 "configure"
90dd450c
VZ
16784#include "confdefs.h"
16785/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 16786 which can conflict with char gethostbyname (); below. */
90dd450c
VZ
16787#include <assert.h>
16788/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
16789#ifdef __cplusplus
16790extern "C"
16791#endif
90dd450c 16792/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
16793 builtin and then its argument prototype would still apply. */
16794char gethostbyname ();
16795char (*f) ();
978f1259 16796
5c6fa7d2
RR
16797int
16798main ()
16799{
90dd450c
VZ
16800/* The GNU C library defines this for functions which it implements
16801 to always fail with ENOSYS. Some functions are actually named
16802 something starting with __ and the normal name is an alias. */
16803#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
16804choke me
16805#else
5c6fa7d2 16806f = gethostbyname;
90dd450c 16807#endif
978f1259 16808
5c6fa7d2
RR
16809 ;
16810 return 0;
16811}
16812_ACEOF
16813rm -f conftest.$ac_objext conftest$ac_exeext
16814if { (eval echo "$as_me:16814: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>&5
16816 ac_status=$?
16817 echo "$as_me:16817: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (eval echo "$as_me:16820: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:16823: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 ac_cv_func_gethostbyname=yes
16826else
16827 echo "$as_me: failed program was:" >&5
16828cat conftest.$ac_ext >&5
16829ac_cv_func_gethostbyname=no
16830fi
16831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16832fi
16833echo "$as_me:16833: result: $ac_cv_func_gethostbyname" >&5
16834echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 16835
90dd450c 16836 if test $ac_cv_func_gethostbyname = no; then
5c6fa7d2
RR
16837 echo "$as_me:16837: checking for gethostbyname in -lnsl" >&5
16838echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
16839if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16841else
5c6fa7d2 16842 ac_check_lib_save_LIBS=$LIBS
90dd450c 16843LIBS="-lnsl $LIBS"
5c6fa7d2
RR
16844cat >conftest.$ac_ext <<_ACEOF
16845#line 16845 "configure"
90dd450c 16846#include "confdefs.h"
5c6fa7d2 16847
90dd450c 16848/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
16849#ifdef __cplusplus
16850extern "C"
16851#endif
90dd450c 16852/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
16853 builtin and then its argument prototype would still apply. */
16854char gethostbyname ();
16855int
16856main ()
16857{
16858gethostbyname ();
16859 ;
16860 return 0;
16861}
16862_ACEOF
16863rm -f conftest.$ac_objext conftest$ac_exeext
16864if { (eval echo "$as_me:16864: \"$ac_link\"") >&5
16865 (eval $ac_link) 2>&5
16866 ac_status=$?
16867 echo "$as_me:16867: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -s conftest$ac_exeext'
16870 { (eval echo "$as_me:16870: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:16873: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_nsl_gethostbyname=yes
16876else
16877 echo "$as_me: failed program was:" >&5
16878cat conftest.$ac_ext >&5
16879ac_cv_lib_nsl_gethostbyname=no
16880fi
16881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882LIBS=$ac_check_lib_save_LIBS
16883fi
16884echo "$as_me:16884: result: $ac_cv_lib_nsl_gethostbyname" >&5
16885echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
16886if test $ac_cv_lib_nsl_gethostbyname = yes; then
16887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
52127426 16888fi
7b4a847f 16889
5c6fa7d2
RR
16890 if test $ac_cv_lib_nsl_gethostbyname = no; then
16891 echo "$as_me:16891: checking for gethostbyname in -lbsd" >&5
16892echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
16893if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 16895else
5c6fa7d2
RR
16896 ac_check_lib_save_LIBS=$LIBS
16897LIBS="-lbsd $LIBS"
16898cat >conftest.$ac_ext <<_ACEOF
16899#line 16899 "configure"
16900#include "confdefs.h"
16901
16902/* Override any gcc2 internal prototype to avoid an error. */
16903#ifdef __cplusplus
16904extern "C"
16905#endif
16906/* We use char because int might match the return type of a gcc2
16907 builtin and then its argument prototype would still apply. */
16908char gethostbyname ();
16909int
16910main ()
16911{
16912gethostbyname ();
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext conftest$ac_exeext
16918if { (eval echo "$as_me:16918: \"$ac_link\"") >&5
16919 (eval $ac_link) 2>&5
16920 ac_status=$?
16921 echo "$as_me:16921: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -s conftest$ac_exeext'
16924 { (eval echo "$as_me:16924: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:16927: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_lib_bsd_gethostbyname=yes
16930else
16931 echo "$as_me: failed program was:" >&5
16932cat conftest.$ac_ext >&5
16933ac_cv_lib_bsd_gethostbyname=no
16934fi
16935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936LIBS=$ac_check_lib_save_LIBS
16937fi
16938echo "$as_me:16938: result: $ac_cv_lib_bsd_gethostbyname" >&5
16939echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
16940if test $ac_cv_lib_bsd_gethostbyname = yes; then
16941 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 16942fi
b12915c1 16943
5c6fa7d2 16944 fi
90dd450c
VZ
16945 fi
16946
16947 # lieder@skyler.mavd.honeywell.com says without -lsocket,
16948 # socket/setsockopt and other routines are undefined under SCO ODT
16949 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5c6fa7d2
RR
16950 # on later versions), says Simon Leinen: it contains gethostby*
16951 # variants that don't use the nameserver (or something). -lsocket
16952 # must be given before -lnsl if both are needed. We assume that
16953 # if connect needs -lnsl, so does gethostbyname.
16954 echo "$as_me:16954: checking for connect" >&5
16955echo $ECHO_N "checking for connect... $ECHO_C" >&6
16956if test "${ac_cv_func_connect+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958else
16959 cat >conftest.$ac_ext <<_ACEOF
16960#line 16960 "configure"
55e80573 16961#include "confdefs.h"
90dd450c 16962/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 16963 which can conflict with char connect (); below. */
90dd450c
VZ
16964#include <assert.h>
16965/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
16966#ifdef __cplusplus
16967extern "C"
16968#endif
90dd450c 16969/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
16970 builtin and then its argument prototype would still apply. */
16971char connect ();
16972char (*f) ();
55e80573 16973
5c6fa7d2
RR
16974int
16975main ()
16976{
90dd450c
VZ
16977/* The GNU C library defines this for functions which it implements
16978 to always fail with ENOSYS. Some functions are actually named
16979 something starting with __ and the normal name is an alias. */
16980#if defined (__stub_connect) || defined (__stub___connect)
16981choke me
16982#else
5c6fa7d2 16983f = connect;
90dd450c
VZ
16984#endif
16985
5c6fa7d2
RR
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext conftest$ac_exeext
16991if { (eval echo "$as_me:16991: \"$ac_link\"") >&5
16992 (eval $ac_link) 2>&5
16993 ac_status=$?
16994 echo "$as_me:16994: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
16996 { ac_try='test -s conftest$ac_exeext'
16997 { (eval echo "$as_me:16997: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
16999 ac_status=$?
17000 echo "$as_me:17000: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_func_connect=yes
17003else
17004 echo "$as_me: failed program was:" >&5
17005cat conftest.$ac_ext >&5
17006ac_cv_func_connect=no
17007fi
17008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17009fi
17010echo "$as_me:17010: result: $ac_cv_func_connect" >&5
17011echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 17012
90dd450c 17013 if test $ac_cv_func_connect = no; then
5c6fa7d2
RR
17014 echo "$as_me:17014: checking for connect in -lsocket" >&5
17015echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
17016if test "${ac_cv_lib_socket_connect+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17018else
5c6fa7d2 17019 ac_check_lib_save_LIBS=$LIBS
90dd450c 17020LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5c6fa7d2
RR
17021cat >conftest.$ac_ext <<_ACEOF
17022#line 17022 "configure"
90dd450c 17023#include "confdefs.h"
5c6fa7d2 17024
90dd450c 17025/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17026#ifdef __cplusplus
17027extern "C"
17028#endif
90dd450c 17029/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17030 builtin and then its argument prototype would still apply. */
17031char connect ();
17032int
17033main ()
17034{
17035connect ();
17036 ;
17037 return 0;
17038}
17039_ACEOF
17040rm -f conftest.$ac_objext conftest$ac_exeext
17041if { (eval echo "$as_me:17041: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>&5
17043 ac_status=$?
17044 echo "$as_me:17044: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -s conftest$ac_exeext'
17047 { (eval echo "$as_me:17047: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 echo "$as_me:17050: \$? = $ac_status" >&5
17051 (exit $ac_status); }; }; then
17052 ac_cv_lib_socket_connect=yes
17053else
17054 echo "$as_me: failed program was:" >&5
17055cat conftest.$ac_ext >&5
17056ac_cv_lib_socket_connect=no
17057fi
17058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17059LIBS=$ac_check_lib_save_LIBS
17060fi
17061echo "$as_me:17061: result: $ac_cv_lib_socket_connect" >&5
17062echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
17063if test $ac_cv_lib_socket_connect = yes; then
90dd450c 17064 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 17065fi
77e13408 17066
90dd450c 17067 fi
25d0687a 17068
5c6fa7d2
RR
17069 # Guillermo Gomez says -lposix is necessary on A/UX.
17070 echo "$as_me:17070: checking for remove" >&5
17071echo $ECHO_N "checking for remove... $ECHO_C" >&6
17072if test "${ac_cv_func_remove+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17074else
5c6fa7d2
RR
17075 cat >conftest.$ac_ext <<_ACEOF
17076#line 17076 "configure"
90dd450c
VZ
17077#include "confdefs.h"
17078/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 17079 which can conflict with char remove (); below. */
90dd450c
VZ
17080#include <assert.h>
17081/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17082#ifdef __cplusplus
17083extern "C"
17084#endif
90dd450c 17085/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17086 builtin and then its argument prototype would still apply. */
17087char remove ();
17088char (*f) ();
55e80573 17089
5c6fa7d2
RR
17090int
17091main ()
17092{
90dd450c
VZ
17093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096#if defined (__stub_remove) || defined (__stub___remove)
17097choke me
17098#else
5c6fa7d2 17099f = remove;
90dd450c 17100#endif
55e80573 17101
5c6fa7d2
RR
17102 ;
17103 return 0;
17104}
17105_ACEOF
17106rm -f conftest.$ac_objext conftest$ac_exeext
17107if { (eval echo "$as_me:17107: \"$ac_link\"") >&5
17108 (eval $ac_link) 2>&5
17109 ac_status=$?
17110 echo "$as_me:17110: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -s conftest$ac_exeext'
17113 { (eval echo "$as_me:17113: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:17116: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_cv_func_remove=yes
17119else
17120 echo "$as_me: failed program was:" >&5
17121cat conftest.$ac_ext >&5
17122ac_cv_func_remove=no
17123fi
17124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17125fi
17126echo "$as_me:17126: result: $ac_cv_func_remove" >&5
17127echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 17128
90dd450c 17129 if test $ac_cv_func_remove = no; then
5c6fa7d2
RR
17130 echo "$as_me:17130: checking for remove in -lposix" >&5
17131echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
17132if test "${ac_cv_lib_posix_remove+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17134else
5c6fa7d2 17135 ac_check_lib_save_LIBS=$LIBS
90dd450c 17136LIBS="-lposix $LIBS"
5c6fa7d2
RR
17137cat >conftest.$ac_ext <<_ACEOF
17138#line 17138 "configure"
90dd450c 17139#include "confdefs.h"
5c6fa7d2 17140
90dd450c 17141/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17142#ifdef __cplusplus
17143extern "C"
17144#endif
90dd450c 17145/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17146 builtin and then its argument prototype would still apply. */
17147char remove ();
17148int
17149main ()
17150{
17151remove ();
17152 ;
17153 return 0;
17154}
17155_ACEOF
17156rm -f conftest.$ac_objext conftest$ac_exeext
17157if { (eval echo "$as_me:17157: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>&5
17159 ac_status=$?
17160 echo "$as_me:17160: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
17162 { ac_try='test -s conftest$ac_exeext'
17163 { (eval echo "$as_me:17163: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:17166: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_lib_posix_remove=yes
17169else
17170 echo "$as_me: failed program was:" >&5
17171cat conftest.$ac_ext >&5
17172ac_cv_lib_posix_remove=no
17173fi
17174rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17175LIBS=$ac_check_lib_save_LIBS
17176fi
17177echo "$as_me:17177: result: $ac_cv_lib_posix_remove" >&5
17178echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
17179if test $ac_cv_lib_posix_remove = yes; then
90dd450c 17180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 17181fi
f6bcfd97 17182
6fa882bd
RR
17183 fi
17184
90dd450c 17185 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5c6fa7d2
RR
17186 echo "$as_me:17186: checking for shmat" >&5
17187echo $ECHO_N "checking for shmat... $ECHO_C" >&6
17188if test "${ac_cv_func_shmat+set}" = set; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17190else
5c6fa7d2
RR
17191 cat >conftest.$ac_ext <<_ACEOF
17192#line 17192 "configure"
90dd450c
VZ
17193#include "confdefs.h"
17194/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 17195 which can conflict with char shmat (); below. */
90dd450c
VZ
17196#include <assert.h>
17197/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17198#ifdef __cplusplus
17199extern "C"
17200#endif
90dd450c 17201/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17202 builtin and then its argument prototype would still apply. */
17203char shmat ();
17204char (*f) ();
3a922bb4 17205
5c6fa7d2
RR
17206int
17207main ()
17208{
90dd450c
VZ
17209/* The GNU C library defines this for functions which it implements
17210 to always fail with ENOSYS. Some functions are actually named
17211 something starting with __ and the normal name is an alias. */
17212#if defined (__stub_shmat) || defined (__stub___shmat)
17213choke me
17214#else
5c6fa7d2 17215f = shmat;
90dd450c 17216#endif
10f2d63a 17217
5c6fa7d2
RR
17218 ;
17219 return 0;
17220}
17221_ACEOF
17222rm -f conftest.$ac_objext conftest$ac_exeext
17223if { (eval echo "$as_me:17223: \"$ac_link\"") >&5
17224 (eval $ac_link) 2>&5
17225 ac_status=$?
17226 echo "$as_me:17226: \$? = $ac_status" >&5
17227 (exit $ac_status); } &&
17228 { ac_try='test -s conftest$ac_exeext'
17229 { (eval echo "$as_me:17229: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:17232: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_func_shmat=yes
17235else
17236 echo "$as_me: failed program was:" >&5
17237cat conftest.$ac_ext >&5
17238ac_cv_func_shmat=no
17239fi
17240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17241fi
17242echo "$as_me:17242: result: $ac_cv_func_shmat" >&5
17243echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 17244
90dd450c 17245 if test $ac_cv_func_shmat = no; then
5c6fa7d2
RR
17246 echo "$as_me:17246: checking for shmat in -lipc" >&5
17247echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
17248if test "${ac_cv_lib_ipc_shmat+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 17250else
5c6fa7d2 17251 ac_check_lib_save_LIBS=$LIBS
90dd450c 17252LIBS="-lipc $LIBS"
5c6fa7d2
RR
17253cat >conftest.$ac_ext <<_ACEOF
17254#line 17254 "configure"
90dd450c 17255#include "confdefs.h"
5c6fa7d2 17256
90dd450c 17257/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17258#ifdef __cplusplus
17259extern "C"
17260#endif
90dd450c 17261/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17262 builtin and then its argument prototype would still apply. */
17263char shmat ();
17264int
17265main ()
17266{
17267shmat ();
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext conftest$ac_exeext
17273if { (eval echo "$as_me:17273: \"$ac_link\"") >&5
17274 (eval $ac_link) 2>&5
17275 ac_status=$?
17276 echo "$as_me:17276: \$? = $ac_status" >&5
17277 (exit $ac_status); } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (eval echo "$as_me:17279: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17281 ac_status=$?
17282 echo "$as_me:17282: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_lib_ipc_shmat=yes
17285else
17286 echo "$as_me: failed program was:" >&5
17287cat conftest.$ac_ext >&5
17288ac_cv_lib_ipc_shmat=no
17289fi
17290rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17291LIBS=$ac_check_lib_save_LIBS
17292fi
17293echo "$as_me:17293: result: $ac_cv_lib_ipc_shmat" >&5
17294echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
17295if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 17296 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
17297fi
17298
d558c907 17299 fi
90dd450c 17300 fi
3a922bb4 17301
90dd450c 17302 # Check for libraries that X11R6 Xt/Xaw programs need.
5c6fa7d2 17303 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
17304 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17305 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17306 # check for ICE first), but we must link in the order -lSM -lICE or
17307 # we get undefined symbols. So assume we have SM if we have ICE.
17308 # These have to be linked with before -lX11, unlike the other
17309 # libraries we check for below, so use a different variable.
5c6fa7d2
RR
17310 # John Interrante, Karl Berry
17311 echo "$as_me:17311: checking for IceConnectionNumber in -lICE" >&5
17312echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
17313if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315else
17316 ac_check_lib_save_LIBS=$LIBS
f09359cf 17317LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5c6fa7d2
RR
17318cat >conftest.$ac_ext <<_ACEOF
17319#line 17319 "configure"
9cfadba2 17320#include "confdefs.h"
5c6fa7d2 17321
90dd450c 17322/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17323#ifdef __cplusplus
17324extern "C"
17325#endif
90dd450c 17326/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17327 builtin and then its argument prototype would still apply. */
17328char IceConnectionNumber ();
17329int
17330main ()
17331{
17332IceConnectionNumber ();
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337rm -f conftest.$ac_objext conftest$ac_exeext
17338if { (eval echo "$as_me:17338: \"$ac_link\"") >&5
17339 (eval $ac_link) 2>&5
17340 ac_status=$?
17341 echo "$as_me:17341: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
17343 { ac_try='test -s conftest$ac_exeext'
17344 { (eval echo "$as_me:17344: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:17347: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_lib_ICE_IceConnectionNumber=yes
17350else
17351 echo "$as_me: failed program was:" >&5
17352cat conftest.$ac_ext >&5
17353ac_cv_lib_ICE_IceConnectionNumber=no
17354fi
17355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17356LIBS=$ac_check_lib_save_LIBS
17357fi
17358echo "$as_me:17358: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17359echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
17360if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 17361 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 17362fi
10f2d63a 17363
5c6fa7d2 17364 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
17365
17366fi
17367
90dd450c 17368 if test "$no_x" = "yes"; then
5c6fa7d2
RR
17369 { { echo "$as_me:17369: error: X11 not found" >&5
17370echo "$as_me: error: X11 not found" >&2;}
17371 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
17372 fi
17373
17374 GUI_TK_LIBRARY="$X_LIBS"
17375 TOOLKIT_INCLUDE="$X_CFLAGS"
17376 AFMINSTALL=afminstall
17377 COMPILED_X_PROGRAM=0
17378
21d1c967 17379 if test "$wxUSE_NANOX" = "yes"; then
5c6fa7d2
RR
17380 echo "$as_me:17380: checking for MicroWindows/NanoX distribution" >&5
17381echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 17382 if test "x$MICROWIN" = x ; then
5c6fa7d2
RR
17383 echo "$as_me:17383: result: not found" >&5
17384echo "${ECHO_T}not found" >&6
17385 { { echo "$as_me:17385: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
17386echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
17387 { (exit 1); exit 1; }; }
90dd450c 17388 else
5c6fa7d2
RR
17389 echo "$as_me:17389: result: $MICROWIN" >&5
17390echo "${ECHO_T}$MICROWIN" >&6
17391 cat >>confdefs.h <<\EOF
21d1c967 17392#define wxUSE_NANOX 1
698dcdb6 17393EOF
21d1c967 17394
90dd450c
VZ
17395 fi
17396 fi
17397
17398 xpm_link=
5c6fa7d2
RR
17399 echo "$as_me:17399: checking for Xpm library" >&5
17400echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
17401
90dd450c
VZ
17402ac_find_libraries=
17403for ac_dir in $SEARCH_LIB;
17404 do
17405 for ac_extension in a so sl dylib; do
17406 if test -f "$ac_dir/libXpm.$ac_extension"; then
17407 ac_find_libraries=$ac_dir
17408 break 2
17409 fi
17410 done
17411 done
17412
17413 if test "$ac_find_libraries" != "" ; then
5c6fa7d2 17414
90dd450c
VZ
17415 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
17416 result=$?
17417 if test $result = 0; then
17418 ac_path_to_link=""
17419 else
17420 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 17421 fi
90dd450c 17422
21d1c967
GD
17423 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
17424 xpm_link=" -lXpm"
5c6fa7d2 17425 cat >>confdefs.h <<\EOF
21d1c967
GD
17426#define wxHAVE_LIB_XPM 1
17427EOF
90dd450c 17428
5c6fa7d2
RR
17429 echo "$as_me:17429: result: found at $ac_find_libraries" >&5
17430echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 17431 else
5c6fa7d2
RR
17432 cat >conftest.$ac_ext <<_ACEOF
17433#line 17433 "configure"
21d1c967 17434#include "confdefs.h"
90dd450c 17435
21d1c967 17436 #include <X11/xpm.h>
5c6fa7d2
RR
17437
17438int
17439main ()
17440{
6f72b082 17441
21d1c967
GD
17442 int version;
17443 version = XpmLibraryVersion();
5c6fa7d2
RR
17444
17445 ;
17446 return 0;
17447}
17448_ACEOF
17449rm -f conftest.$ac_objext
17450if { (eval echo "$as_me:17450: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>&5
17452 ac_status=$?
17453 echo "$as_me:17453: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (eval echo "$as_me:17456: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:17459: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461
21d1c967 17462 xpm_link=" -lXpm"
5c6fa7d2 17463 cat >>confdefs.h <<\EOF
21d1c967
GD
17464#define wxHAVE_LIB_XPM 1
17465EOF
90dd450c 17466
5c6fa7d2
RR
17467 echo "$as_me:17467: result: found in default search path" >&5
17468echo "${ECHO_T}found in default search path" >&6
21d1c967 17469 COMPILED_X_PROGRAM=0
5c6fa7d2 17470
21d1c967 17471else
5c6fa7d2
RR
17472 echo "$as_me: failed program was:" >&5
17473cat conftest.$ac_ext >&5
17474
17475 echo "$as_me:17475: result: no" >&5
17476echo "${ECHO_T}no" >&6
17477 { echo "$as_me:17477: WARNING: library will be compiled without support for images in XPM format" >&5
17478echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
17479
6f72b082 17480fi
5c6fa7d2 17481rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 17482 fi
90dd450c 17483
1d1b75ac
VZ
17484 wxUSE_UNIVERSAL="yes"
17485
21d1c967
GD
17486 if test "$wxUSE_NANOX" = "yes"; then
17487 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
17488 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
17489 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
17490 else
17491 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
17492 fi
6f72b082 17493
21d1c967
GD
17494 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
17495 TOOLKIT=X11
17496 GUIDIST=X11_DIST
17497 fi
90dd450c 17498
21d1c967 17499 if test "$wxUSE_WINE" = 1; then
5c6fa7d2
RR
17500 echo "$as_me:17500: checking for windows.h" >&5
17501echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
17502if test "${ac_cv_header_windows_h+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504else
17505 cat >conftest.$ac_ext <<_ACEOF
17506#line 17506 "configure"
6f72b082 17507#include "confdefs.h"
21d1c967 17508#include <windows.h>
5c6fa7d2
RR
17509_ACEOF
17510if { (eval echo "$as_me:17510: \"$ac_cpp conftest.$ac_ext\"") >&5
17511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17512 ac_status=$?
17513 egrep -v '^ *\+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:17516: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null; then
17518 if test -s conftest.err; then
17519 ac_cpp_err=$ac_c_preproc_warn_flag
17520 else
17521 ac_cpp_err=
17522 fi
17523else
17524 ac_cpp_err=yes
17525fi
17526if test -z "$ac_cpp_err"; then
17527 ac_cv_header_windows_h=yes
10f2d63a 17528else
5c6fa7d2 17529 echo "$as_me: failed program was:" >&5
10f2d63a 17530 cat conftest.$ac_ext >&5
5c6fa7d2 17531 ac_cv_header_windows_h=no
10f2d63a 17532fi
5c6fa7d2 17533rm -f conftest.err conftest.$ac_ext
10f2d63a 17534fi
5c6fa7d2
RR
17535echo "$as_me:17535: result: $ac_cv_header_windows_h" >&5
17536echo "${ECHO_T}$ac_cv_header_windows_h" >&6
17537if test $ac_cv_header_windows_h = yes; then
21d1c967
GD
17538 :
17539else
21d1c967 17540
5c6fa7d2
RR
17541 { { echo "$as_me:17541: error: please set CFLAGS to contain the location of windows.h" >&5
17542echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
17543 { (exit 1); exit 1; }; }
328a083c 17544
5c6fa7d2 17545fi
7b4a847f 17546
52127426 17547 xpm_link=
5c6fa7d2
RR
17548 echo "$as_me:17548: checking for Xpm library" >&5
17549echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
17550
90dd450c
VZ
17551ac_find_libraries=
17552for ac_dir in $SEARCH_LIB;
17553 do
17554 for ac_extension in a so sl dylib; do
21d1c967 17555 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
17556 ac_find_libraries=$ac_dir
17557 break 2
17558 fi
17559 done
17560 done
17561
21d1c967
GD
17562 if test "$ac_find_libraries" != "" ; then
17563 GUI_TK_LIBRARY="-L$ac_find_libraries"
17564 xpm_link=" -lXpm"
5c6fa7d2 17565 cat >>confdefs.h <<\EOF
21d1c967
GD
17566#define wxHAVE_LIB_XPM 1
17567EOF
90dd450c 17568
5c6fa7d2
RR
17569 echo "$as_me:17569: result: found at $ac_find_libraries" >&5
17570echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 17571 else
5c6fa7d2
RR
17572 echo "$as_me:17572: result: no" >&5
17573echo "${ECHO_T}no" >&6
17574 { echo "$as_me:17574: WARNING: library will be compiled without support for images in XPM format" >&5
17575echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
21d1c967
GD
17576 fi
17577
17578 mesa_link=
5c6fa7d2
RR
17579 echo "$as_me:17579: checking for Mesa library" >&5
17580echo $ECHO_N "checking for Mesa library... $ECHO_C" >&6
17581
90dd450c
VZ
17582ac_find_libraries=
17583for ac_dir in $SEARCH_LIB;
17584 do
17585 for ac_extension in a so sl dylib; do
17586 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
17587 ac_find_libraries=$ac_dir
17588 break 2
17589 fi
17590 done
17591 done
17592
21d1c967
GD
17593 if test "$ac_find_libraries" != "" ; then
17594 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
17595 mesa_link=" -lMesaGL"
5c6fa7d2
RR
17596 echo "$as_me:17596: result: found at $ac_find_libraries" >&5
17597echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 17598 else
5c6fa7d2
RR
17599 { { echo "$as_me:17599: error: no" >&5
17600echo "$as_me: error: no" >&2;}
17601 { (exit 1); exit 1; }; }
21d1c967
GD
17602 fi
17603
17604 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
17605 TOOLKIT=MSW
17606 GUIDIST=MSW_DIST
17607 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
17608 fi
17609
17610 if test "$wxUSE_MOTIF" = 1; then
17611 if test "$no_x" = yes; then
17612 # Not all programs may use this symbol, but it does not hurt to define it.
5c6fa7d2
RR
17613
17614cat >>confdefs.h <<\EOF
21d1c967
GD
17615#define X_DISPLAY_MISSING 1
17616EOF
17617
17618 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17619else
17620 if test -n "$x_includes"; then
17621 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
17622 fi
17623
21d1c967
GD
17624 # It would also be nice to do this for all -L options, not just this one.
17625 if test -n "$x_libraries"; then
17626 X_LIBS="$X_LIBS -L$x_libraries"
17627 # For Solaris; some versions of Sun CC require a space after -R and
17628 # others require no space. Words are not sufficient . . . .
5c6fa7d2 17629 case `(uname -sr) 2>/dev/null` in
21d1c967 17630 "SunOS 5"*)
5c6fa7d2
RR
17631 echo "$as_me:17631: checking whether -R must be followed by a space" >&5
17632echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17633 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17634 cat >conftest.$ac_ext <<_ACEOF
17635#line 17635 "configure"
21d1c967
GD
17636#include "confdefs.h"
17637
5c6fa7d2
RR
17638int
17639main ()
17640{
21d1c967 17641
5c6fa7d2
RR
17642 ;
17643 return 0;
17644}
17645_ACEOF
17646rm -f conftest.$ac_objext conftest$ac_exeext
17647if { (eval echo "$as_me:17647: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>&5
17649 ac_status=$?
17650 echo "$as_me:17650: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:17653: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:17656: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
21d1c967 17658 ac_R_nospace=yes
698dcdb6 17659else
5c6fa7d2
RR
17660 echo "$as_me: failed program was:" >&5
17661cat conftest.$ac_ext >&5
17662ac_R_nospace=no
10f2d63a 17663fi
5c6fa7d2 17664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 17665 if test $ac_R_nospace = yes; then
5c6fa7d2
RR
17666 echo "$as_me:17666: result: no" >&5
17667echo "${ECHO_T}no" >&6
21d1c967
GD
17668 X_LIBS="$X_LIBS -R$x_libraries"
17669 else
17670 LIBS="$ac_xsave_LIBS -R $x_libraries"
5c6fa7d2
RR
17671 cat >conftest.$ac_ext <<_ACEOF
17672#line 17672 "configure"
21d1c967 17673#include "confdefs.h"
10f2d63a 17674
5c6fa7d2
RR
17675int
17676main ()
17677{
f0c87536 17678
5c6fa7d2
RR
17679 ;
17680 return 0;
17681}
17682_ACEOF
17683rm -f conftest.$ac_objext conftest$ac_exeext
17684if { (eval echo "$as_me:17684: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17686 ac_status=$?
17687 echo "$as_me:17687: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
17689 { ac_try='test -s conftest$ac_exeext'
17690 { (eval echo "$as_me:17690: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:17693: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
21d1c967
GD
17695 ac_R_space=yes
17696else
5c6fa7d2
RR
17697 echo "$as_me: failed program was:" >&5
17698cat conftest.$ac_ext >&5
17699ac_R_space=no
21d1c967 17700fi
5c6fa7d2 17701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 17702 if test $ac_R_space = yes; then
5c6fa7d2
RR
17703 echo "$as_me:17703: result: yes" >&5
17704echo "${ECHO_T}yes" >&6
21d1c967
GD
17705 X_LIBS="$X_LIBS -R $x_libraries"
17706 else
5c6fa7d2
RR
17707 echo "$as_me:17707: result: neither works" >&5
17708echo "${ECHO_T}neither works" >&6
21d1c967
GD
17709 fi
17710 fi
5c6fa7d2 17711 LIBS=$ac_xsave_LIBS
21d1c967
GD
17712 esac
17713 fi
90dd450c 17714
21d1c967
GD
17715 # Check for system-dependent libraries X programs must link with.
17716 # Do this before checking for the system-independent R6 libraries
17717 # (-lICE), since we may need -lsocket or whatever for X linking.
17718
17719 if test "$ISC" = yes; then
17720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17721 else
5c6fa7d2
RR
17722 # Martyn Johnson says this is needed for Ultrix, if the X
17723 # libraries were built with DECnet support. And Karl Berry says
21d1c967 17724 # the Alpha needs dnet_stub (dnet does not exist).
5c6fa7d2
RR
17725 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17726 cat >conftest.$ac_ext <<_ACEOF
17727#line 17727 "configure"
7b4a847f 17728#include "confdefs.h"
5c6fa7d2 17729
7b4a847f 17730/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17731#ifdef __cplusplus
17732extern "C"
17733#endif
7b4a847f 17734/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17735 builtin and then its argument prototype would still apply. */
17736char XOpenDisplay ();
17737int
17738main ()
17739{
17740XOpenDisplay ();
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext conftest$ac_exeext
17746if { (eval echo "$as_me:17746: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17748 ac_status=$?
17749 echo "$as_me:17749: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -s conftest$ac_exeext'
17752 { (eval echo "$as_me:17752: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:17755: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 :
52127426 17758else
5c6fa7d2
RR
17759 echo "$as_me: failed program was:" >&5
17760cat conftest.$ac_ext >&5
17761echo "$as_me:17761: checking for dnet_ntoa in -ldnet" >&5
17762echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17763if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766 ac_check_lib_save_LIBS=$LIBS
17767LIBS="-ldnet $LIBS"
17768cat >conftest.$ac_ext <<_ACEOF
17769#line 17769 "configure"
17770#include "confdefs.h"
52127426 17771
5c6fa7d2
RR
17772/* Override any gcc2 internal prototype to avoid an error. */
17773#ifdef __cplusplus
17774extern "C"
17775#endif
17776/* We use char because int might match the return type of a gcc2
17777 builtin and then its argument prototype would still apply. */
17778char dnet_ntoa ();
17779int
17780main ()
17781{
17782dnet_ntoa ();
17783 ;
17784 return 0;
17785}
17786_ACEOF
17787rm -f conftest.$ac_objext conftest$ac_exeext
17788if { (eval echo "$as_me:17788: \"$ac_link\"") >&5
17789 (eval $ac_link) 2>&5
17790 ac_status=$?
17791 echo "$as_me:17791: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -s conftest$ac_exeext'
17794 { (eval echo "$as_me:17794: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:17797: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_lib_dnet_dnet_ntoa=yes
17800else
17801 echo "$as_me: failed program was:" >&5
17802cat conftest.$ac_ext >&5
17803ac_cv_lib_dnet_dnet_ntoa=no
17804fi
17805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17806LIBS=$ac_check_lib_save_LIBS
17807fi
17808echo "$as_me:17808: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17809echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17810if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 17811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 17812fi
0fb0dd83 17813
21d1c967 17814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5c6fa7d2
RR
17815 echo "$as_me:17815: checking for dnet_ntoa in -ldnet_stub" >&5
17816echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17817if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17819else
5c6fa7d2 17820 ac_check_lib_save_LIBS=$LIBS
21d1c967 17821LIBS="-ldnet_stub $LIBS"
5c6fa7d2
RR
17822cat >conftest.$ac_ext <<_ACEOF
17823#line 17823 "configure"
21d1c967 17824#include "confdefs.h"
5c6fa7d2 17825
21d1c967 17826/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17827#ifdef __cplusplus
17828extern "C"
17829#endif
21d1c967 17830/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17831 builtin and then its argument prototype would still apply. */
17832char dnet_ntoa ();
17833int
17834main ()
17835{
17836dnet_ntoa ();
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (eval echo "$as_me:17842: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>&5
17844 ac_status=$?
17845 echo "$as_me:17845: \$? = $ac_status" >&5
17846 (exit $ac_status); } &&
17847 { ac_try='test -s conftest$ac_exeext'
17848 { (eval echo "$as_me:17848: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17850 ac_status=$?
17851 echo "$as_me:17851: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17854else
17855 echo "$as_me: failed program was:" >&5
17856cat conftest.$ac_ext >&5
17857ac_cv_lib_dnet_stub_dnet_ntoa=no
17858fi
17859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17860LIBS=$ac_check_lib_save_LIBS
17861fi
17862echo "$as_me:17862: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17863echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17864if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 17865 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
17866fi
17867
21d1c967 17868 fi
5c6fa7d2
RR
17869fi
17870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17871 LIBS="$ac_xsave_LIBS"
90dd450c 17872
21d1c967
GD
17873 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17874 # to get the SysV transport functions.
5c6fa7d2 17875 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
17876 # needs -lnsl.
17877 # The nsl library prevents programs from opening the X display
5c6fa7d2
RR
17878 # on Irix 5.2, according to T.E. Dickey.
17879 # The functions gethostbyname, getservbyname, and inet_addr are
17880 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17881 echo "$as_me:17881: checking for gethostbyname" >&5
17882echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
17883if test "${ac_cv_func_gethostbyname+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17885else
17886 cat >conftest.$ac_ext <<_ACEOF
17887#line 17887 "configure"
21d1c967
GD
17888#include "confdefs.h"
17889/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 17890 which can conflict with char gethostbyname (); below. */
21d1c967
GD
17891#include <assert.h>
17892/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17893#ifdef __cplusplus
17894extern "C"
17895#endif
21d1c967 17896/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17897 builtin and then its argument prototype would still apply. */
17898char gethostbyname ();
17899char (*f) ();
90dd450c 17900
5c6fa7d2
RR
17901int
17902main ()
17903{
21d1c967
GD
17904/* The GNU C library defines this for functions which it implements
17905 to always fail with ENOSYS. Some functions are actually named
17906 something starting with __ and the normal name is an alias. */
17907#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
17908choke me
17909#else
5c6fa7d2 17910f = gethostbyname;
21d1c967 17911#endif
90dd450c 17912
5c6fa7d2
RR
17913 ;
17914 return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext conftest$ac_exeext
17918if { (eval echo "$as_me:17918: \"$ac_link\"") >&5
17919 (eval $ac_link) 2>&5
17920 ac_status=$?
17921 echo "$as_me:17921: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:17924: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:17927: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_func_gethostbyname=yes
17930else
17931 echo "$as_me: failed program was:" >&5
17932cat conftest.$ac_ext >&5
17933ac_cv_func_gethostbyname=no
17934fi
17935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17936fi
17937echo "$as_me:17937: result: $ac_cv_func_gethostbyname" >&5
17938echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 17939
21d1c967 17940 if test $ac_cv_func_gethostbyname = no; then
5c6fa7d2
RR
17941 echo "$as_me:17941: checking for gethostbyname in -lnsl" >&5
17942echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
17943if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17945else
5c6fa7d2 17946 ac_check_lib_save_LIBS=$LIBS
21d1c967 17947LIBS="-lnsl $LIBS"
5c6fa7d2
RR
17948cat >conftest.$ac_ext <<_ACEOF
17949#line 17949 "configure"
21d1c967 17950#include "confdefs.h"
5c6fa7d2 17951
21d1c967 17952/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
17953#ifdef __cplusplus
17954extern "C"
17955#endif
21d1c967 17956/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
17957 builtin and then its argument prototype would still apply. */
17958char gethostbyname ();
17959int
17960main ()
17961{
17962gethostbyname ();
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967rm -f conftest.$ac_objext conftest$ac_exeext
17968if { (eval echo "$as_me:17968: \"$ac_link\"") >&5
17969 (eval $ac_link) 2>&5
17970 ac_status=$?
17971 echo "$as_me:17971: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -s conftest$ac_exeext'
17974 { (eval echo "$as_me:17974: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:17977: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 ac_cv_lib_nsl_gethostbyname=yes
17980else
17981 echo "$as_me: failed program was:" >&5
17982cat conftest.$ac_ext >&5
17983ac_cv_lib_nsl_gethostbyname=no
17984fi
17985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17986LIBS=$ac_check_lib_save_LIBS
17987fi
17988echo "$as_me:17988: result: $ac_cv_lib_nsl_gethostbyname" >&5
17989echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
17990if test $ac_cv_lib_nsl_gethostbyname = yes; then
17991 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
52127426 17992fi
7b4a847f 17993
5c6fa7d2
RR
17994 if test $ac_cv_lib_nsl_gethostbyname = no; then
17995 echo "$as_me:17995: checking for gethostbyname in -lbsd" >&5
17996echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
17997if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 17999else
5c6fa7d2
RR
18000 ac_check_lib_save_LIBS=$LIBS
18001LIBS="-lbsd $LIBS"
18002cat >conftest.$ac_ext <<_ACEOF
18003#line 18003 "configure"
18004#include "confdefs.h"
18005
18006/* Override any gcc2 internal prototype to avoid an error. */
18007#ifdef __cplusplus
18008extern "C"
18009#endif
18010/* We use char because int might match the return type of a gcc2
18011 builtin and then its argument prototype would still apply. */
18012char gethostbyname ();
18013int
18014main ()
18015{
18016gethostbyname ();
18017 ;
18018 return 0;
18019}
18020_ACEOF
18021rm -f conftest.$ac_objext conftest$ac_exeext
18022if { (eval echo "$as_me:18022: \"$ac_link\"") >&5
18023 (eval $ac_link) 2>&5
18024 ac_status=$?
18025 echo "$as_me:18025: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -s conftest$ac_exeext'
18028 { (eval echo "$as_me:18028: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:18031: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033 ac_cv_lib_bsd_gethostbyname=yes
18034else
18035 echo "$as_me: failed program was:" >&5
18036cat conftest.$ac_ext >&5
18037ac_cv_lib_bsd_gethostbyname=no
18038fi
18039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18040LIBS=$ac_check_lib_save_LIBS
18041fi
18042echo "$as_me:18042: result: $ac_cv_lib_bsd_gethostbyname" >&5
18043echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18044if test $ac_cv_lib_bsd_gethostbyname = yes; then
18045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 18046fi
90dd450c 18047
5c6fa7d2 18048 fi
90dd450c
VZ
18049 fi
18050
21d1c967
GD
18051 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18052 # socket/setsockopt and other routines are undefined under SCO ODT
18053 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5c6fa7d2
RR
18054 # on later versions), says Simon Leinen: it contains gethostby*
18055 # variants that don't use the nameserver (or something). -lsocket
18056 # must be given before -lnsl if both are needed. We assume that
18057 # if connect needs -lnsl, so does gethostbyname.
18058 echo "$as_me:18058: checking for connect" >&5
18059echo $ECHO_N "checking for connect... $ECHO_C" >&6
18060if test "${ac_cv_func_connect+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 cat >conftest.$ac_ext <<_ACEOF
18064#line 18064 "configure"
21d1c967
GD
18065#include "confdefs.h"
18066/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 18067 which can conflict with char connect (); below. */
21d1c967
GD
18068#include <assert.h>
18069/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
18070#ifdef __cplusplus
18071extern "C"
18072#endif
21d1c967 18073/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
18074 builtin and then its argument prototype would still apply. */
18075char connect ();
18076char (*f) ();
90dd450c 18077
5c6fa7d2
RR
18078int
18079main ()
18080{
21d1c967
GD
18081/* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084#if defined (__stub_connect) || defined (__stub___connect)
18085choke me
18086#else
5c6fa7d2 18087f = connect;
21d1c967 18088#endif
90dd450c 18089
5c6fa7d2
RR
18090 ;
18091 return 0;
18092}
18093_ACEOF
18094rm -f conftest.$ac_objext conftest$ac_exeext
18095if { (eval echo "$as_me:18095: \"$ac_link\"") >&5
18096 (eval $ac_link) 2>&5
18097 ac_status=$?
18098 echo "$as_me:18098: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -s conftest$ac_exeext'
18101 { (eval echo "$as_me:18101: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:18104: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_func_connect=yes
18107else
18108 echo "$as_me: failed program was:" >&5
18109cat conftest.$ac_ext >&5
18110ac_cv_func_connect=no
18111fi
18112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18113fi
18114echo "$as_me:18114: result: $ac_cv_func_connect" >&5
18115echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 18116
21d1c967 18117 if test $ac_cv_func_connect = no; then
5c6fa7d2
RR
18118 echo "$as_me:18118: checking for connect in -lsocket" >&5
18119echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18120if test "${ac_cv_lib_socket_connect+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 18122else
5c6fa7d2 18123 ac_check_lib_save_LIBS=$LIBS
21d1c967 18124LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5c6fa7d2
RR
18125cat >conftest.$ac_ext <<_ACEOF
18126#line 18126 "configure"
0fbb762e 18127#include "confdefs.h"
5c6fa7d2 18128
21d1c967 18129/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
18130#ifdef __cplusplus
18131extern "C"
18132#endif
21d1c967 18133/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
18134 builtin and then its argument prototype would still apply. */
18135char connect ();
18136int
18137main ()
18138{
18139connect ();
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext conftest$ac_exeext
18145if { (eval echo "$as_me:18145: \"$ac_link\"") >&5
18146 (eval $ac_link) 2>&5
18147 ac_status=$?
18148 echo "$as_me:18148: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -s conftest$ac_exeext'
18151 { (eval echo "$as_me:18151: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:18154: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 ac_cv_lib_socket_connect=yes
18157else
18158 echo "$as_me: failed program was:" >&5
18159cat conftest.$ac_ext >&5
18160ac_cv_lib_socket_connect=no
18161fi
18162rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18163LIBS=$ac_check_lib_save_LIBS
18164fi
18165echo "$as_me:18165: result: $ac_cv_lib_socket_connect" >&5
18166echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18167if test $ac_cv_lib_socket_connect = yes; then
21d1c967 18168 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 18169fi
90dd450c 18170
21d1c967 18171 fi
90dd450c 18172
5c6fa7d2
RR
18173 # Guillermo Gomez says -lposix is necessary on A/UX.
18174 echo "$as_me:18174: checking for remove" >&5
18175echo $ECHO_N "checking for remove... $ECHO_C" >&6
18176if test "${ac_cv_func_remove+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18178else
5c6fa7d2
RR
18179 cat >conftest.$ac_ext <<_ACEOF
18180#line 18180 "configure"
21d1c967
GD
18181#include "confdefs.h"
18182/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 18183 which can conflict with char remove (); below. */
21d1c967
GD
18184#include <assert.h>
18185/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
18186#ifdef __cplusplus
18187extern "C"
18188#endif
21d1c967 18189/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
18190 builtin and then its argument prototype would still apply. */
18191char remove ();
18192char (*f) ();
90dd450c 18193
5c6fa7d2
RR
18194int
18195main ()
18196{
21d1c967
GD
18197/* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200#if defined (__stub_remove) || defined (__stub___remove)
18201choke me
18202#else
5c6fa7d2 18203f = remove;
21d1c967 18204#endif
90dd450c 18205
5c6fa7d2
RR
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext conftest$ac_exeext
18211if { (eval echo "$as_me:18211: \"$ac_link\"") >&5
18212 (eval $ac_link) 2>&5
18213 ac_status=$?
18214 echo "$as_me:18214: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -s conftest$ac_exeext'
18217 { (eval echo "$as_me:18217: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:18220: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_func_remove=yes
18223else
18224 echo "$as_me: failed program was:" >&5
18225cat conftest.$ac_ext >&5
18226ac_cv_func_remove=no
18227fi
18228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18229fi
18230echo "$as_me:18230: result: $ac_cv_func_remove" >&5
18231echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 18232
21d1c967 18233 if test $ac_cv_func_remove = no; then
5c6fa7d2
RR
18234 echo "$as_me:18234: checking for remove in -lposix" >&5
18235echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18236if test "${ac_cv_lib_posix_remove+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18238else
5c6fa7d2 18239 ac_check_lib_save_LIBS=$LIBS
21d1c967 18240LIBS="-lposix $LIBS"
5c6fa7d2
RR
18241cat >conftest.$ac_ext <<_ACEOF
18242#line 18242 "configure"
21d1c967 18243#include "confdefs.h"
5c6fa7d2 18244
21d1c967 18245/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
18246#ifdef __cplusplus
18247extern "C"
18248#endif
21d1c967 18249/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
18250 builtin and then its argument prototype would still apply. */
18251char remove ();
18252int
18253main ()
18254{
18255remove ();
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext conftest$ac_exeext
18261if { (eval echo "$as_me:18261: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>&5
18263 ac_status=$?
18264 echo "$as_me:18264: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -s conftest$ac_exeext'
18267 { (eval echo "$as_me:18267: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:18270: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_posix_remove=yes
18273else
18274 echo "$as_me: failed program was:" >&5
18275cat conftest.$ac_ext >&5
18276ac_cv_lib_posix_remove=no
18277fi
18278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18279LIBS=$ac_check_lib_save_LIBS
18280fi
18281echo "$as_me:18281: result: $ac_cv_lib_posix_remove" >&5
18282echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18283if test $ac_cv_lib_posix_remove = yes; then
21d1c967 18284 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 18285fi
19bc6aad 18286
90dd450c 18287 fi
19bc6aad 18288
21d1c967 18289 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5c6fa7d2
RR
18290 echo "$as_me:18290: checking for shmat" >&5
18291echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18292if test "${ac_cv_func_shmat+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18294else
5c6fa7d2
RR
18295 cat >conftest.$ac_ext <<_ACEOF
18296#line 18296 "configure"
21d1c967
GD
18297#include "confdefs.h"
18298/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 18299 which can conflict with char shmat (); below. */
21d1c967
GD
18300#include <assert.h>
18301/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
18302#ifdef __cplusplus
18303extern "C"
18304#endif
21d1c967 18305/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
18306 builtin and then its argument prototype would still apply. */
18307char shmat ();
18308char (*f) ();
90dd450c 18309
5c6fa7d2
RR
18310int
18311main ()
18312{
21d1c967
GD
18313/* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316#if defined (__stub_shmat) || defined (__stub___shmat)
18317choke me
18318#else
5c6fa7d2 18319f = shmat;
21d1c967 18320#endif
90dd450c 18321
5c6fa7d2
RR
18322 ;
18323 return 0;
18324}
18325_ACEOF
18326rm -f conftest.$ac_objext conftest$ac_exeext
18327if { (eval echo "$as_me:18327: \"$ac_link\"") >&5
18328 (eval $ac_link) 2>&5
18329 ac_status=$?
18330 echo "$as_me:18330: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -s conftest$ac_exeext'
18333 { (eval echo "$as_me:18333: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:18336: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 ac_cv_func_shmat=yes
18339else
18340 echo "$as_me: failed program was:" >&5
18341cat conftest.$ac_ext >&5
18342ac_cv_func_shmat=no
18343fi
18344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18345fi
18346echo "$as_me:18346: result: $ac_cv_func_shmat" >&5
18347echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 18348
21d1c967 18349 if test $ac_cv_func_shmat = no; then
5c6fa7d2
RR
18350 echo "$as_me:18350: checking for shmat in -lipc" >&5
18351echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18352if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18354else
18355 ac_check_lib_save_LIBS=$LIBS
18356LIBS="-lipc $LIBS"
18357cat >conftest.$ac_ext <<_ACEOF
18358#line 18358 "configure"
18359#include "confdefs.h"
52127426 18360
5c6fa7d2
RR
18361/* Override any gcc2 internal prototype to avoid an error. */
18362#ifdef __cplusplus
18363extern "C"
18364#endif
18365/* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18367char shmat ();
18368int
18369main ()
18370{
18371shmat ();
18372 ;
18373 return 0;
18374}
18375_ACEOF
18376rm -f conftest.$ac_objext conftest$ac_exeext
18377if { (eval echo "$as_me:18377: \"$ac_link\"") >&5
18378 (eval $ac_link) 2>&5
18379 ac_status=$?
18380 echo "$as_me:18380: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -s conftest$ac_exeext'
18383 { (eval echo "$as_me:18383: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:18386: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
18388 ac_cv_lib_ipc_shmat=yes
18389else
18390 echo "$as_me: failed program was:" >&5
18391cat conftest.$ac_ext >&5
18392ac_cv_lib_ipc_shmat=no
18393fi
18394rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18395LIBS=$ac_check_lib_save_LIBS
18396fi
18397echo "$as_me:18397: result: $ac_cv_lib_ipc_shmat" >&5
18398echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18399if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 18400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 18401fi
90dd450c 18402
90dd450c 18403 fi
21d1c967 18404 fi
10f2d63a 18405
21d1c967 18406 # Check for libraries that X11R6 Xt/Xaw programs need.
5c6fa7d2 18407 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
18408 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18409 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18410 # check for ICE first), but we must link in the order -lSM -lICE or
18411 # we get undefined symbols. So assume we have SM if we have ICE.
18412 # These have to be linked with before -lX11, unlike the other
18413 # libraries we check for below, so use a different variable.
5c6fa7d2
RR
18414 # John Interrante, Karl Berry
18415 echo "$as_me:18415: checking for IceConnectionNumber in -lICE" >&5
18416echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18417if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18419else
18420 ac_check_lib_save_LIBS=$LIBS
f09359cf 18421LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5c6fa7d2
RR
18422cat >conftest.$ac_ext <<_ACEOF
18423#line 18423 "configure"
29fd3c0c 18424#include "confdefs.h"
5c6fa7d2 18425
21d1c967 18426/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
18427#ifdef __cplusplus
18428extern "C"
18429#endif
21d1c967 18430/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
18431 builtin and then its argument prototype would still apply. */
18432char IceConnectionNumber ();
18433int
18434main ()
18435{
18436IceConnectionNumber ();
18437 ;
18438 return 0;
18439}
18440_ACEOF
18441rm -f conftest.$ac_objext conftest$ac_exeext
18442if { (eval echo "$as_me:18442: \"$ac_link\"") >&5
18443 (eval $ac_link) 2>&5
18444 ac_status=$?
18445 echo "$as_me:18445: \$? = $ac_status" >&5
18446 (exit $ac_status); } &&
18447 { ac_try='test -s conftest$ac_exeext'
18448 { (eval echo "$as_me:18448: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:18451: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_lib_ICE_IceConnectionNumber=yes
18454else
18455 echo "$as_me: failed program was:" >&5
18456cat conftest.$ac_ext >&5
18457ac_cv_lib_ICE_IceConnectionNumber=no
18458fi
18459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18460LIBS=$ac_check_lib_save_LIBS
18461fi
18462echo "$as_me:18462: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18463echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18464if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 18465 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 18466fi
21d1c967 18467
5c6fa7d2 18468 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 18469
10f2d63a
VZ
18470fi
18471
21d1c967 18472 if test "$no_x" = "yes"; then
5c6fa7d2
RR
18473 { { echo "$as_me:18473: error: X11 not found" >&5
18474echo "$as_me: error: X11 not found" >&2;}
18475 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
18476 fi
18477
18478 GUI_TK_LIBRARY="$X_LIBS"
18479 TOOLKIT_INCLUDE="$X_CFLAGS"
18480 AFMINSTALL=afminstall
18481 COMPILED_X_PROGRAM=0
18482
5c6fa7d2
RR
18483 echo "$as_me:18483: checking for Motif/Lesstif headers" >&5
18484echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
18485
21d1c967
GD
18486ac_find_includes=
18487for ac_dir in $SEARCH_INCLUDE;
18488 do
18489 if test -f "$ac_dir/Xm/Xm.h"; then
18490 ac_find_includes=$ac_dir
18491 break
18492 fi
18493 done
18494
18495 if test "$ac_find_includes" != "" ; then
5c6fa7d2
RR
18496 echo "$as_me:18496: result: found in $ac_find_includes" >&5
18497echo "${ECHO_T}found in $ac_find_includes" >&6
18498
dd0e4a90
VZ
18499 ac_path_to_include=$ac_find_includes
18500 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
18501 result=$?
18502 if test $result = 0; then
18503 ac_path_to_include=""
18504 else
18505 ac_path_to_include=" -I$ac_find_includes"
18506 fi
18507
18508 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 18509 else
5c6fa7d2
RR
18510 cat >conftest.$ac_ext <<_ACEOF
18511#line 18511 "configure"
10f2d63a 18512#include "confdefs.h"
21d1c967
GD
18513
18514 #include <Xm/Xm.h>
5c6fa7d2
RR
18515
18516int
18517main ()
18518{
21d1c967
GD
18519
18520 int version;
18521 version = xmUseVersion;
5c6fa7d2
RR
18522
18523 ;
18524 return 0;
18525}
18526_ACEOF
18527rm -f conftest.$ac_objext
18528if { (eval echo "$as_me:18528: \"$ac_compile\"") >&5
18529 (eval $ac_compile) 2>&5
18530 ac_status=$?
18531 echo "$as_me:18531: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
18533 { ac_try='test -s conftest.$ac_objext'
18534 { (eval echo "$as_me:18534: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:18537: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539
18540 echo "$as_me:18540: result: found in default search path" >&5
18541echo "${ECHO_T}found in default search path" >&6
21d1c967 18542 COMPILED_X_PROGRAM=1
5c6fa7d2 18543
10f2d63a 18544else
5c6fa7d2
RR
18545 echo "$as_me: failed program was:" >&5
18546cat conftest.$ac_ext >&5
18547
18548 echo "$as_me:18548: result: no" >&5
18549echo "${ECHO_T}no" >&6
18550 { { echo "$as_me:18550: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
18551echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
18552 { (exit 1); exit 1; }; }
18553
10f2d63a 18554fi
5c6fa7d2 18555rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 18556 fi
10f2d63a 18557
21d1c967 18558 if test "$COMPILED_X_PROGRAM" = 0; then
5c6fa7d2
RR
18559 echo "$as_me:18559: checking for Motif/Lesstif library" >&5
18560echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
18561
21d1c967
GD
18562ac_find_libraries=
18563for ac_dir in $SEARCH_LIB;
18564 do
18565 for ac_extension in a so sl dylib; do
18566 if test -f "$ac_dir/libXm.$ac_extension"; then
18567 ac_find_libraries=$ac_dir
18568 break 2
18569 fi
18570 done
18571 done
18572
18573 if test "$ac_find_libraries" != "" ; then
5c6fa7d2
RR
18574 echo "$as_me:18574: result: found at $ac_find_libraries" >&5
18575echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 18576
21d1c967
GD
18577 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
18578 result=$?
18579 if test $result = 0; then
18580 ac_path_to_link=""
18581 else
18582 ac_path_to_link=" -L$ac_find_libraries"
18583 fi
18584
21d1c967 18585 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 18586 else
dd0e4a90
VZ
18587 save_CFLAGS=$CFLAGS
18588 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
18589
5c6fa7d2
RR
18590 cat >conftest.$ac_ext <<_ACEOF
18591#line 18591 "configure"
d836ee96 18592#include "confdefs.h"
21d1c967
GD
18593
18594 #include <Xm/Xm.h>
5c6fa7d2
RR
18595
18596int
18597main ()
18598{
21d1c967
GD
18599
18600 int version;
18601 version = xmUseVersion;
5c6fa7d2
RR
18602
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext
18608if { (eval echo "$as_me:18608: \"$ac_compile\"") >&5
18609 (eval $ac_compile) 2>&5
18610 ac_status=$?
18611 echo "$as_me:18611: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -s conftest.$ac_objext'
18614 { (eval echo "$as_me:18614: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:18617: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619
18620 echo "$as_me:18620: result: found in default search path" >&5
18621echo "${ECHO_T}found in default search path" >&6
21d1c967 18622 COMPILED_X_PROGRAM=1
5c6fa7d2 18623
d836ee96 18624else
5c6fa7d2
RR
18625 echo "$as_me: failed program was:" >&5
18626cat conftest.$ac_ext >&5
18627
18628 echo "$as_me:18628: result: no" >&5
18629echo "${ECHO_T}no" >&6
18630 { { echo "$as_me:18630: error: please set LDFLAGS to contain the location of libXm" >&5
18631echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
18632 { (exit 1); exit 1; }; }
18633
d836ee96 18634fi
5c6fa7d2 18635rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
18636
18637 CFLAGS=$save_CFLAGS
21d1c967
GD
18638 fi
18639 fi
18640
18641 xpm_link=
5c6fa7d2
RR
18642 echo "$as_me:18642: checking for Xpm library" >&5
18643echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
18644
21d1c967
GD
18645ac_find_libraries=
18646for ac_dir in $SEARCH_LIB;
18647 do
18648 for ac_extension in a so sl dylib; do
18649 if test -f "$ac_dir/libXpm.$ac_extension"; then
18650 ac_find_libraries=$ac_dir
18651 break 2
18652 fi
18653 done
18654 done
18655
18656 if test "$ac_find_libraries" != "" ; then
5c6fa7d2 18657
21d1c967
GD
18658 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
18659 result=$?
18660 if test $result = 0; then
18661 ac_path_to_link=""
18662 else
18663 ac_path_to_link=" -L$ac_find_libraries"
18664 fi
18665
18666 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 18667
21d1c967 18668 xpm_link=" -lXpm"
5c6fa7d2 18669 cat >>confdefs.h <<\EOF
21d1c967 18670#define wxHAVE_LIB_XPM 1
d836ee96 18671EOF
90dd450c 18672
5c6fa7d2
RR
18673 echo "$as_me:18673: result: found at $ac_find_libraries" >&5
18674echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 18675 else
dd0e4a90
VZ
18676 save_CFLAGS=$CFLAGS
18677 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
18678
5c6fa7d2
RR
18679 cat >conftest.$ac_ext <<_ACEOF
18680#line 18680 "configure"
d836ee96 18681#include "confdefs.h"
21d1c967
GD
18682
18683 #include <X11/xpm.h>
5c6fa7d2
RR
18684
18685int
18686main ()
18687{
21d1c967
GD
18688
18689 int version;
18690 version = XpmLibraryVersion();
5c6fa7d2
RR
18691
18692 ;
18693 return 0;
18694}
18695_ACEOF
18696rm -f conftest.$ac_objext
18697if { (eval echo "$as_me:18697: \"$ac_compile\"") >&5
18698 (eval $ac_compile) 2>&5
18699 ac_status=$?
18700 echo "$as_me:18700: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -s conftest.$ac_objext'
18703 { (eval echo "$as_me:18703: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:18706: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708
21d1c967 18709 xpm_link=" -lXpm"
5c6fa7d2 18710 cat >>confdefs.h <<\EOF
21d1c967
GD
18711#define wxHAVE_LIB_XPM 1
18712EOF
18713
5c6fa7d2
RR
18714 echo "$as_me:18714: result: found in default search path" >&5
18715echo "${ECHO_T}found in default search path" >&6
21d1c967 18716 COMPILED_X_PROGRAM=0
5c6fa7d2 18717
d836ee96 18718else
5c6fa7d2
RR
18719 echo "$as_me: failed program was:" >&5
18720cat conftest.$ac_ext >&5
18721
18722 echo "$as_me:18722: result: no" >&5
18723echo "${ECHO_T}no" >&6
18724 { echo "$as_me:18724: WARNING: library will be compiled without support for images in XPM format" >&5
18725echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
18726
d836ee96 18727fi
5c6fa7d2 18728rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
18729
18730 CFLAGS=$save_CFLAGS
21d1c967
GD
18731 fi
18732
5c6fa7d2
RR
18733 echo "$as_me:18733: checking if we need -lXp and/or -lSM -lICE" >&5
18734echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
18735 libp_link=""
18736 libsm_ice_link=""
18737 libs_found=0
18738 for libp in "" " -lXp"; do
18739 if test "$libs_found" = "0"; then
18740 for libsm_ice in " -lSM -lICE"; do
5c6fa7d2 18741 if test "$libs_found" = "0"; then
6a30f1c8
MB
18742 save_LIBS="$LIBS"
18743 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
18744 save_CFLAGS=$CFLAGS
18745 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
18746
5c6fa7d2
RR
18747 cat >conftest.$ac_ext <<_ACEOF
18748#line 18748 "configure"
6a30f1c8 18749#include "confdefs.h"
17234b26 18750
6a30f1c8
MB
18751 #include <Xm/Xm.h>
18752 #include <Xm/List.h>
5c6fa7d2
RR
18753
18754int
18755main ()
18756{
6a30f1c8
MB
18757
18758 XmString string = NULL;
18759 Widget w = NULL;
18760 int position = 0;
18761 XmListAddItem(w, string, position);
5c6fa7d2
RR
18762
18763 ;
18764 return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext conftest$ac_exeext
18768if { (eval echo "$as_me:18768: \"$ac_link\"") >&5
18769 (eval $ac_link) 2>&5
18770 ac_status=$?
18771 echo "$as_me:18771: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (eval echo "$as_me:18774: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:18777: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779
6a30f1c8
MB
18780 libp_link="$libp"
18781 libsm_ice_link="$libsm_ice"
5c6fa7d2
RR
18782 echo "$as_me:18782: result: need${libp_link}${libsm_ice_link}" >&5
18783echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 18784 libs_found=1
5c6fa7d2 18785
6a30f1c8 18786else
5c6fa7d2
RR
18787 echo "$as_me: failed program was:" >&5
18788cat conftest.$ac_ext >&5
18789
6a30f1c8 18790fi
5c6fa7d2 18791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 18792
6a30f1c8 18793 LIBS="$save_LIBS"
dd0e4a90 18794 CFLAGS=$save_CFLAGS
6a30f1c8
MB
18795 fi
18796 done
18797 fi
18798 done
18799
18800 if test "$libs_found" = "0"; then
5c6fa7d2
RR
18801 echo "$as_me:18801: result: can't find the right libraries" >&5
18802echo "${ECHO_T}can't find the right libraries" >&6
18803 { { echo "$as_me:18803: error: can't link a simple motif program" >&5
18804echo "$as_me: error: can't link a simple motif program" >&2;}
18805 { (exit 1); exit 1; }; }
6a30f1c8
MB
18806 fi
18807
18808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
21d1c967
GD
18809 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
18810 TOOLKIT=MOTIF
18811 GUIDIST=MOTIF_DIST
18812 fi
18813
18814 if test "$wxUSE_MAC" = 1; then
18815 if test "$wxUSE_PRECOMP" = "yes"; then
18816 CPPFLAGS="$CPPFLAGS -cpp-precomp"
18817 else
18818 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
18819 fi
18820 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
18821 CFLAGS="$CFLAGS -fpascal-strings"
18822 CXXFLAGS="$CXXFLAGS -fpascal-strings"
18823
18824 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
18825 TOOLKIT=MAC
18826 GUIDIST=MACX_DIST
18827 fi
18828
18829 if test "$wxUSE_PM" = 1; then
18830 TOOLKIT=PM
18831 GUIDIST=GTK_DIST
18832 fi
18833
18834 if test "$TOOLKIT" = "PM" ; then
18835 TOOLKIT_DIR="os2"
18836 else
18837 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
18838 fi
18839
18840 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
18841
18842 if test "$wxUSE_UNIVERSAL" = "yes"; then
18843 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
18844
18845 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
18846 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
18847
18848 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
18849 if test "$wxUSE_X11" = 1; then
18850 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
18851 else
18852 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
18853 fi
18854 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
18855 WIDGET_SET=univ
18856 else
18857 ALL_OBJECTS="\$(GUIOBJS)"
18858 ALL_SOURCES="\$(ALL_SOURCES)"
18859 ALL_HEADERS="\$(ALL_HEADERS)"
18860 fi
18861
18862 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
18863
18864 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
18865 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
18866 fi
18867
18868 if test "$wxUSE_HTML" = "yes"; then
18869 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
18870 fi
18871
18872 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18873 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
18874 fi
18875 if test "$wxUSE_LIBTIFF" = "builtin" ; then
18876 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
18877 fi
18878 if test "$wxUSE_LIBPNG" = "builtin" ; then
18879 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
18880 fi
18881
18882 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
18883 DISTDIR="wx\$(TOOLKIT)"
90dd450c 18884else
21d1c967
GD
18885 USE_GUI=0
18886
18887 TOOLKIT_DIR="base"
18888
18889 if test "$USE_WIN32" = 1 ; then
18890 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
18891 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
18892
18893 TOOLKIT="MSW"
18894 else
18895 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
18896 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
18897 fi
18898
18899 ALL_SOURCES="\$(ALL_SOURCES)"
18900 ALL_HEADERS="\$(ALL_HEADERS)"
18901
18902 PORT_FILES="\${top_srcdir}/src/files.lst"
18903
18904 GUIDIST="BASE_DIST"
18905 DISTDIR="wxBase"
d836ee96
VZ
18906fi
18907
21d1c967
GD
18908if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
18909 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 18910fi
21d1c967
GD
18911
18912if test "$wxUSE_REGEX" = "builtin" ; then
18913 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 18914fi
21d1c967
GD
18915if test "$wxUSE_ZLIB" = "builtin" ; then
18916 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
18917fi
18918
21d1c967
GD
18919if test "$wxUSE_OPENGL" = "yes"; then
18920 if test "$wxUSE_MAC" = 1; then
18921 OPENGL_LIBS="-framework OpenGL -framework AGL"
18922 elif test "$wxUSE_MSW" = 1; then
18923 OPENGL_LIBS="-lopengl32 -lglu32"
18924 else
5c6fa7d2
RR
18925 echo "$as_me:18925: checking for GL/gl.h" >&5
18926echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
18927if test "${ac_cv_header_GL_gl_h+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18929else
18930 cat >conftest.$ac_ext <<_ACEOF
18931#line 18931 "configure"
10f2d63a 18932#include "confdefs.h"
21d1c967 18933#include <GL/gl.h>
5c6fa7d2
RR
18934_ACEOF
18935if { (eval echo "$as_me:18935: \"$ac_cpp conftest.$ac_ext\"") >&5
18936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18937 ac_status=$?
18938 egrep -v '^ *\+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 echo "$as_me:18941: \$? = $ac_status" >&5
18942 (exit $ac_status); } >/dev/null; then
18943 if test -s conftest.err; then
18944 ac_cpp_err=$ac_c_preproc_warn_flag
18945 else
18946 ac_cpp_err=
18947 fi
18948else
18949 ac_cpp_err=yes
18950fi
18951if test -z "$ac_cpp_err"; then
18952 ac_cv_header_GL_gl_h=yes
328a083c 18953else
5c6fa7d2 18954 echo "$as_me: failed program was:" >&5
698dcdb6 18955 cat conftest.$ac_ext >&5
5c6fa7d2 18956 ac_cv_header_GL_gl_h=no
703e0a69 18957fi
5c6fa7d2 18958rm -f conftest.err conftest.$ac_ext
698dcdb6 18959fi
5c6fa7d2
RR
18960echo "$as_me:18960: result: $ac_cv_header_GL_gl_h" >&5
18961echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
18962if test $ac_cv_header_GL_gl_h = yes; then
18963
18964 echo "$as_me:18964: checking for -lGL" >&5
18965echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
18966
21d1c967
GD
18967ac_find_libraries=
18968for ac_dir in $SEARCH_LIB;
18969 do
18970 for ac_extension in a so sl dylib; do
18971 if test -f "$ac_dir/libGL.$ac_extension"; then
18972 ac_find_libraries=$ac_dir
18973 break 2
18974 fi
18975 done
18976 done
18977
18978 if test "$ac_find_libraries" != "" ; then
5c6fa7d2 18979
21d1c967
GD
18980 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
18981 result=$?
18982 if test $result = 0; then
18983 ac_path_to_link=""
18984 else
18985 ac_path_to_link=" -L$ac_find_libraries"
18986 fi
18987
18988 if test "$ac_path_to_link" = " -L/usr/lib" ; then
18989 LDFLAGS_GL="$LDFLAGS"
18990 else
18991 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
18992 fi
18993 OPENGL_LIBS="-lGL -lGLU"
5c6fa7d2
RR
18994 echo "$as_me:18994: result: yes" >&5
18995echo "${ECHO_T}yes" >&6
21d1c967 18996 else
5c6fa7d2
RR
18997 echo "$as_me:18997: result: no" >&5
18998echo "${ECHO_T}no" >&6
18999 echo "$as_me:18999: checking for -lMesaGL" >&5
19000echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
19001
21d1c967
GD
19002ac_find_libraries=
19003for ac_dir in $SEARCH_LIB;
19004 do
19005 for ac_extension in a so sl dylib; do
19006 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
19007 ac_find_libraries=$ac_dir
19008 break 2
19009 fi
19010 done
19011 done
19012
19013 if test "$ac_find_libraries" != "" ; then
5c6fa7d2 19014
21d1c967
GD
19015 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
19016 result=$?
19017 if test $result = 0; then
19018 ac_path_to_link=""
19019 else
19020 ac_path_to_link=" -L$ac_find_libraries"
19021 fi
19022
19023 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
19024 OPENGL_LIBS="-lMesaGL -lMesaGLU"
5c6fa7d2
RR
19025 echo "$as_me:19025: result: yes" >&5
19026echo "${ECHO_T}yes" >&6
21d1c967 19027 else
5c6fa7d2
RR
19028 echo "$as_me:19028: result: no" >&5
19029echo "${ECHO_T}no" >&6
21d1c967
GD
19030 fi
19031 fi
579d8138 19032
5c6fa7d2 19033fi
52127426 19034
21d1c967 19035 if test "x$OPENGL_LIBS" = "x"; then
5c6fa7d2
RR
19036 { { echo "$as_me:19036: error: OpenGL libraries not available" >&5
19037echo "$as_me: error: OpenGL libraries not available" >&2;}
19038 { (exit 1); exit 1; }; }
21d1c967
GD
19039 fi
19040 fi
90dd450c 19041
21d1c967 19042 if test "$wxUSE_OPENGL" = "yes"; then
5c6fa7d2 19043 cat >>confdefs.h <<\EOF
21d1c967 19044#define wxUSE_OPENGL 1
698dcdb6 19045EOF
21d1c967 19046
5c6fa7d2 19047 cat >>confdefs.h <<\EOF
21d1c967
GD
19048#define wxUSE_GLCANVAS 1
19049EOF
19050
19051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
19052 fi
10f2d63a 19053fi
21d1c967
GD
19054
19055if test -z "$TOOLKIT_VPATH" ; then
19056 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 19057fi
21d1c967
GD
19058
19059if test -n "$TOOLKIT" ; then
19060 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
19061fi
19062
19063lib_unicode_suffix=
19064if test "$wxUSE_UNICODE" = "yes"; then
19065 lib_unicode_suffix=u
90dd450c 19066fi
698dcdb6 19067
21d1c967
GD
19068lib_debug_suffix=
19069if test "$wxUSE_DEBUG_FLAG" = "yes"; then
19070 lib_debug_suffix=d
19071fi
698dcdb6 19072
21d1c967
GD
19073TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
19074TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
19075
19076if test "$cross_compiling" = "yes"; then
19077 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
19078 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
19079fi
19080
19081WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
19082WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
19083
19084WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
19085WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
19086
19087WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
19088WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
19089WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
19090WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
19091
19092case "${host}" in
19093 *-*-cygwin* | *-*-mingw32* )
19094
17234b26 19095 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
19096 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
19097 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
19098 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
19099 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
19100 else
19101 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
19102 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
19103 fi
19104 ;;
19105
19106 *-*-darwin* )
19107 if test "$wxUSE_MAC" = 1; then
3bd8fb5f 19108 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
21d1c967
GD
19109 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
19110 fi
19111 ;;
19112esac
19113
19114WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
19115WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
19116
19117WXCONFIG_LIBS="-l${WX_LIBRARY}"
19118WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
19119
19120if test "$wxUSE_OPENGL" = "yes"; then
19121 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
19122 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
19123fi
19124
21d1c967
GD
19125if test "$wxUSE_SHARED" = "yes"; then
19126 case "${host}" in
19127 *-pc-os2_emx | *-pc-os2-emx | \
19128 *-pc-msdosdjgpp )
19129 wxUSE_SHARED=no
5c6fa7d2
RR
19130 { echo "$as_me:19130: WARNING: Host system doesn't support shared libraries, disabling" >&5
19131echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
19132 ;;
19133 esac
19134fi
19135
19136if test "$wxUSE_SHARED" = "yes"; then
19137
19138 if test "$wxUSE_OPENGL" = "yes"; then
19139 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
19140 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
19141 else
19142 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
19143 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
19144 fi
19145
19146 if test "$GCC" = "yes"; then
19147 PIC_FLAG="-fPIC"
19148 fi
19149
19150 SHARED_LD="${CXX} -shared -o"
19151
19152 case "${host}" in
19153 *-hp-hpux* )
19154 if test "$GCC" == "yes"; then
19155 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
19156 else
19157 LDFLAGS="$LDFLAGS -L/usr/lib"
19158
19159 SHARED_LD="${CXX} -b -o"
19160 PIC_FLAG="+Z"
19161 fi
19162
19163 if test "$wxUSE_OPENGL" = "yes"; then
19164 WX_ALL_INSTALLED="preinstall_gl"
19165 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
19166 else
19167 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
19168 fi
19169 ;;
19170
19171 *-*-linux* )
19172 if test "$GCC" != "yes"; then
5c6fa7d2
RR
19173 echo "$as_me:19173: checking for Intel compiler" >&5
19174echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
19175if test "${wx_cv_prog_icc+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177else
19178
19179 cat >conftest.$ac_ext <<_ACEOF
19180#line 19180 "configure"
698dcdb6 19181#include "confdefs.h"
90dd450c 19182
5c6fa7d2
RR
19183int
19184main ()
19185{
90dd450c 19186
21d1c967
GD
19187 #ifndef __INTEL_COMPILER
19188 #error Not icc
19189 #endif
5c6fa7d2
RR
19190
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
19196if { (eval echo "$as_me:19196: \"$ac_compile\"") >&5
19197 (eval $ac_compile) 2>&5
19198 ac_status=$?
19199 echo "$as_me:19199: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -s conftest.$ac_objext'
19202 { (eval echo "$as_me:19202: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:19205: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
21d1c967 19207 wx_cv_prog_icc=yes
6232543b 19208else
5c6fa7d2
RR
19209 echo "$as_me: failed program was:" >&5
19210cat conftest.$ac_ext >&5
19211wx_cv_prog_icc=no
19212
7b4a847f 19213fi
5c6fa7d2 19214rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19215
5c6fa7d2
RR
19216fi
19217echo "$as_me:19217: result: $wx_cv_prog_icc" >&5
19218echo "${ECHO_T}$wx_cv_prog_icc" >&6
21d1c967
GD
19219 if test "$wx_cv_prog_icc" = "yes"; then
19220 PIC_FLAG="-KPIC"
19221 fi
19222 fi
19223
19224 if test "$wxUSE_SONAME" = "yes" ; then
19225 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
19226 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
19227 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
19228 fi
19229 ;;
19230
19231 *-*-solaris2* )
19232 if test "$GCC" = yes ; then
19233 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
19234 else
19235 SHARED_LD="${CXX} -G -o"
19236 PIC_FLAG="-KPIC"
19237 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
19238 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
19239 fi
19240 ;;
19241
19242 *-*-darwin* )
19243 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
19244 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
19245 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
19246 PIC_FLAG="-dynamic -fPIC"
19247 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
19248 SONAME_FLAGS_GL=${SONAME_FLAGS}
19249 ;;
19250
19251 *-*-aix* )
321d2b14
VZ
19252 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
19253set dummy makeC++SharedLib; ac_word=$2
5c6fa7d2
RR
19254echo "$as_me:19254: checking for $ac_word" >&5
19255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19256if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
321d2b14
VZ
19258else
19259 if test -n "$AIX_CXX_LD"; then
19260 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
19261else
5c6fa7d2
RR
19262 ac_save_IFS=$IFS; IFS=$ac_path_separator
19263ac_dummy="$PATH"
19264for ac_dir in $ac_dummy; do
19265 IFS=$ac_save_IFS
19266 test -z "$ac_dir" && ac_dir=.
19267 $as_executable_p "$ac_dir/$ac_word" || continue
19268ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
19269echo "$as_me:19269: found $ac_dir/$ac_word" >&5
19270break
19271done
19272
321d2b14
VZ
19273 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
19274fi
19275fi
5c6fa7d2 19276AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
321d2b14 19277if test -n "$AIX_CXX_LD"; then
5c6fa7d2
RR
19278 echo "$as_me:19278: result: $AIX_CXX_LD" >&5
19279echo "${ECHO_T}$AIX_CXX_LD" >&6
321d2b14 19280else
5c6fa7d2
RR
19281 echo "$as_me:19281: result: no" >&5
19282echo "${ECHO_T}no" >&6
321d2b14
VZ
19283fi
19284
321d2b14 19285 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
21d1c967
GD
19286 ;;
19287
19288 *-*-cygwin* | *-*-mingw32* )
19289
19290 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
19291
19292 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
19293 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
19294
19295 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
19296
19297 if test "$wxUSE_OPENGL" = "yes"; then
19298 WX_ALL_INSTALLED="preinstall_gl"
19299 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
19300 else
19301 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
19302 fi
19303 ;;
19304
19305 *-*-beos* )
19306 SHARED_LD="${LD} -shared -o"
19307 ;;
19308
19309 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
19310 *-*-sunos4* | \
19311 *-*-irix5* | *-*-irix6* | \
19312 *-*-osf* | \
19313 *-*-dgux5* | \
19314 *-*-sysv5* )
19315 ;;
19316
19317 *)
5c6fa7d2
RR
19318 { { echo "$as_me:19318: error: unknown system type $host." >&5
19319echo "$as_me: error: unknown system type $host." >&2;}
19320 { (exit 1); exit 1; }; }
21d1c967
GD
19321 esac
19322
19323 if test "x$WX_TARGET_LIBRARY" = "x"; then
19324 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
19325 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
19326 fi
19327
19328 WX_TARGET_LIBRARY_TYPE="so"
19329 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 19330fi
10f2d63a 19331
21d1c967
GD
19332if test "$wxUSE_SHARED" = "no"; then
19333
19334 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
19335 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
19336 fi
19337
19338 if test "$wxUSE_MAC" = 1; then
19339 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
19340 fi
19341
19342 if test "$wxUSE_OPENGL" = "yes"; then
19343 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
19344 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
19345 else
19346 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
19347 fi
19348
19349 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
19350 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
19351
19352 WX_TARGET_LIBRARY_TYPE="a"
19353 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 19354fi
1e487827 19355
21d1c967
GD
19356if test "$wxUSE_MAC" = 1; then
19357 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
19358 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
19359 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
19360 # Extract the first word of "Rez", so it can be a program name with args.
19361set dummy Rez; ac_word=$2
5c6fa7d2
RR
19362echo "$as_me:19362: checking for $ac_word" >&5
19363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19364if test "${ac_cv_prog_RESCOMP+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 19366else
21d1c967
GD
19367 if test -n "$RESCOMP"; then
19368 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 19369else
5c6fa7d2
RR
19370 ac_save_IFS=$IFS; IFS=$ac_path_separator
19371ac_dummy="$PATH"
19372for ac_dir in $ac_dummy; do
19373 IFS=$ac_save_IFS
19374 test -z "$ac_dir" && ac_dir=.
19375 $as_executable_p "$ac_dir/$ac_word" || continue
19376ac_cv_prog_RESCOMP="Rez"
19377echo "$as_me:19377: found $ac_dir/$ac_word" >&5
19378break
19379done
19380
21d1c967 19381 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 19382fi
b93d0d08 19383fi
5c6fa7d2 19384RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 19385if test -n "$RESCOMP"; then
5c6fa7d2
RR
19386 echo "$as_me:19386: result: $RESCOMP" >&5
19387echo "${ECHO_T}$RESCOMP" >&6
90dd450c 19388else
5c6fa7d2
RR
19389 echo "$as_me:19389: result: no" >&5
19390echo "${ECHO_T}no" >&6
90dd450c 19391fi
b93d0d08 19392
21d1c967
GD
19393 # Extract the first word of "DeRez", so it can be a program name with args.
19394set dummy DeRez; ac_word=$2
5c6fa7d2
RR
19395echo "$as_me:19395: checking for $ac_word" >&5
19396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19397if test "${ac_cv_prog_DEREZ+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 19399else
21d1c967
GD
19400 if test -n "$DEREZ"; then
19401 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 19402else
5c6fa7d2
RR
19403 ac_save_IFS=$IFS; IFS=$ac_path_separator
19404ac_dummy="$PATH"
19405for ac_dir in $ac_dummy; do
19406 IFS=$ac_save_IFS
19407 test -z "$ac_dir" && ac_dir=.
19408 $as_executable_p "$ac_dir/$ac_word" || continue
19409ac_cv_prog_DEREZ="DeRez"
19410echo "$as_me:19410: found $ac_dir/$ac_word" >&5
19411break
19412done
19413
21d1c967 19414 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 19415fi
90dd450c 19416fi
5c6fa7d2 19417DEREZ=$ac_cv_prog_DEREZ
21d1c967 19418if test -n "$DEREZ"; then
5c6fa7d2
RR
19419 echo "$as_me:19419: result: $DEREZ" >&5
19420echo "${ECHO_T}$DEREZ" >&6
90dd450c 19421else
5c6fa7d2
RR
19422 echo "$as_me:19422: result: no" >&5
19423echo "${ECHO_T}no" >&6
3a922bb4 19424fi
698dcdb6 19425
21d1c967
GD
19426 MACOSX_BUNDLE="bundle"
19427 if test "$wxUSE_SHARED" = "yes"; then
19428 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
19429 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
19430 else
19431 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
19432 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
19433 fi
19434else
19435 if test "$wxUSE_PM" = 1; then
19436 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 19437 fi
4f14bcd8 19438fi
10f2d63a 19439
5c6fa7d2
RR
19440echo "$as_me:19440: checking for mode_t" >&5
19441echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
19442if test "${ac_cv_type_mode_t+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 19444else
5c6fa7d2
RR
19445 cat >conftest.$ac_ext <<_ACEOF
19446#line 19446 "configure"
52127426 19447#include "confdefs.h"
5c6fa7d2
RR
19448$ac_includes_default
19449int
19450main ()
19451{
19452if ((mode_t *) 0)
19453 return 0;
19454if (sizeof (mode_t))
19455 return 0;
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460rm -f conftest.$ac_objext
19461if { (eval echo "$as_me:19461: \"$ac_compile\"") >&5
19462 (eval $ac_compile) 2>&5
19463 ac_status=$?
19464 echo "$as_me:19464: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (eval echo "$as_me:19467: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:19470: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_cv_type_mode_t=yes
579d8138 19473else
5c6fa7d2
RR
19474 echo "$as_me: failed program was:" >&5
19475cat conftest.$ac_ext >&5
19476ac_cv_type_mode_t=no
52127426 19477fi
5c6fa7d2 19478rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19479fi
5c6fa7d2
RR
19480echo "$as_me:19480: result: $ac_cv_type_mode_t" >&5
19481echo "${ECHO_T}$ac_cv_type_mode_t" >&6
19482if test $ac_cv_type_mode_t = yes; then
52127426
JS
19483 :
19484else
52127426 19485
5c6fa7d2 19486cat >>confdefs.h <<EOF
52127426
JS
19487#define mode_t int
19488EOF
19489
19490fi
19491
5c6fa7d2
RR
19492echo "$as_me:19492: checking for off_t" >&5
19493echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19494if test "${ac_cv_type_off_t+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 19496else
5c6fa7d2
RR
19497 cat >conftest.$ac_ext <<_ACEOF
19498#line 19498 "configure"
52127426 19499#include "confdefs.h"
5c6fa7d2
RR
19500$ac_includes_default
19501int
19502main ()
19503{
19504if ((off_t *) 0)
19505 return 0;
19506if (sizeof (off_t))
19507 return 0;
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (eval echo "$as_me:19513: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>&5
19515 ac_status=$?
19516 echo "$as_me:19516: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:19519: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:19522: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
52127426 19524 ac_cv_type_off_t=yes
7b4a847f 19525else
5c6fa7d2
RR
19526 echo "$as_me: failed program was:" >&5
19527cat conftest.$ac_ext >&5
19528ac_cv_type_off_t=no
52127426 19529fi
5c6fa7d2 19530rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19531fi
5c6fa7d2
RR
19532echo "$as_me:19532: result: $ac_cv_type_off_t" >&5
19533echo "${ECHO_T}$ac_cv_type_off_t" >&6
19534if test $ac_cv_type_off_t = yes; then
19535 :
19536else
19537
19538cat >>confdefs.h <<EOF
90dd450c 19539#define off_t long
10f2d63a
VZ
19540EOF
19541
90dd450c 19542fi
10f2d63a 19543
5c6fa7d2
RR
19544echo "$as_me:19544: checking for pid_t" >&5
19545echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19546if test "${ac_cv_type_pid_t+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 19548else
5c6fa7d2
RR
19549 cat >conftest.$ac_ext <<_ACEOF
19550#line 19550 "configure"
10f2d63a 19551#include "confdefs.h"
5c6fa7d2
RR
19552$ac_includes_default
19553int
19554main ()
19555{
19556if ((pid_t *) 0)
19557 return 0;
19558if (sizeof (pid_t))
19559 return 0;
19560 ;
19561 return 0;
19562}
19563_ACEOF
19564rm -f conftest.$ac_objext
19565if { (eval echo "$as_me:19565: \"$ac_compile\"") >&5
19566 (eval $ac_compile) 2>&5
19567 ac_status=$?
19568 echo "$as_me:19568: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:19571: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:19574: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
90dd450c 19576 ac_cv_type_pid_t=yes
698dcdb6 19577else
5c6fa7d2
RR
19578 echo "$as_me: failed program was:" >&5
19579cat conftest.$ac_ext >&5
19580ac_cv_type_pid_t=no
579d8138 19581fi
5c6fa7d2 19582rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19583fi
5c6fa7d2
RR
19584echo "$as_me:19584: result: $ac_cv_type_pid_t" >&5
19585echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19586if test $ac_cv_type_pid_t = yes; then
19587 :
19588else
19589
19590cat >>confdefs.h <<EOF
90dd450c 19591#define pid_t int
10f2d63a
VZ
19592EOF
19593
7b4a847f
RR
19594fi
19595
5c6fa7d2
RR
19596echo "$as_me:19596: checking for size_t" >&5
19597echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19598if test "${ac_cv_type_size_t+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 19600else
5c6fa7d2
RR
19601 cat >conftest.$ac_ext <<_ACEOF
19602#line 19602 "configure"
7b4a847f 19603#include "confdefs.h"
5c6fa7d2
RR
19604$ac_includes_default
19605int
19606main ()
19607{
19608if ((size_t *) 0)
19609 return 0;
19610if (sizeof (size_t))
19611 return 0;
19612 ;
19613 return 0;
19614}
19615_ACEOF
19616rm -f conftest.$ac_objext
19617if { (eval echo "$as_me:19617: \"$ac_compile\"") >&5
19618 (eval $ac_compile) 2>&5
19619 ac_status=$?
19620 echo "$as_me:19620: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:19623: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:19626: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
90dd450c 19628 ac_cv_type_size_t=yes
18dbb1f6 19629else
5c6fa7d2
RR
19630 echo "$as_me: failed program was:" >&5
19631cat conftest.$ac_ext >&5
19632ac_cv_type_size_t=no
18dbb1f6 19633fi
5c6fa7d2 19634rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19635fi
5c6fa7d2
RR
19636echo "$as_me:19636: result: $ac_cv_type_size_t" >&5
19637echo "${ECHO_T}$ac_cv_type_size_t" >&6
19638if test $ac_cv_type_size_t = yes; then
19639 :
19640else
19641
19642cat >>confdefs.h <<EOF
90dd450c
VZ
19643#define size_t unsigned
19644EOF
19645
19646fi
19647
5c6fa7d2
RR
19648echo "$as_me:19648: checking for uid_t in sys/types.h" >&5
19649echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
19650if test "${ac_cv_type_uid_t+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 19652else
5c6fa7d2
RR
19653 cat >conftest.$ac_ext <<_ACEOF
19654#line 19654 "configure"
b3e8d00a 19655#include "confdefs.h"
90dd450c 19656#include <sys/types.h>
5c6fa7d2
RR
19657
19658_ACEOF
90dd450c
VZ
19659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19660 egrep "uid_t" >/dev/null 2>&1; then
90dd450c 19661 ac_cv_type_uid_t=yes
b3e8d00a 19662else
90dd450c 19663 ac_cv_type_uid_t=no
b3e8d00a 19664fi
90dd450c 19665rm -f conftest*
b3e8d00a 19666
4f14bcd8 19667fi
5c6fa7d2
RR
19668echo "$as_me:19668: result: $ac_cv_type_uid_t" >&5
19669echo "${ECHO_T}$ac_cv_type_uid_t" >&6
52127426 19670if test $ac_cv_type_uid_t = no; then
5c6fa7d2
RR
19671
19672cat >>confdefs.h <<\EOF
90dd450c
VZ
19673#define uid_t int
19674EOF
19675
5c6fa7d2 19676cat >>confdefs.h <<\EOF
90dd450c 19677#define gid_t int
b3e8d00a 19678EOF
4f14bcd8 19679
b3e8d00a 19680fi
b3e8d00a 19681
5c6fa7d2 19682ac_ext=cc
4f14bcd8 19683ac_cpp='$CXXCPP $CPPFLAGS'
5c6fa7d2
RR
19684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
90dd450c 19687
5c6fa7d2
RR
19688echo "$as_me:19688: checking if size_t is unsigned int" >&5
19689echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
19690if test "${wx_cv_size_t_is_uint+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 19692else
5c6fa7d2
RR
19693 cat >conftest.$ac_ext <<_ACEOF
19694#line 19694 "configure"
10f2d63a 19695#include "confdefs.h"
90dd450c 19696#include <stddef.h>
5c6fa7d2
RR
19697int
19698main ()
19699{
90dd450c
VZ
19700
19701 return 0; }
19702
19703 struct Foo { void foo(size_t); void foo(unsigned int); };
19704
19705 int bar() {
5c6fa7d2
RR
19706
19707 ;
19708 return 0;
19709}
19710_ACEOF
19711rm -f conftest.$ac_objext
19712if { (eval echo "$as_me:19712: \"$ac_compile\"") >&5
19713 (eval $ac_compile) 2>&5
19714 ac_status=$?
19715 echo "$as_me:19715: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -s conftest.$ac_objext'
19718 { (eval echo "$as_me:19718: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:19721: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
90dd450c 19723 wx_cv_size_t_is_uint=no
698dcdb6 19724else
5c6fa7d2
RR
19725 echo "$as_me: failed program was:" >&5
19726cat conftest.$ac_ext >&5
19727wx_cv_size_t_is_uint=yes
579d8138 19728
7b4a847f 19729fi
5c6fa7d2 19730rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19731
5c6fa7d2
RR
19732fi
19733echo "$as_me:19733: result: $wx_cv_size_t_is_uint" >&5
19734echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 19735
90dd450c 19736if test "$wx_cv_size_t_is_uint" = "yes"; then
5c6fa7d2 19737 cat >>confdefs.h <<\EOF
90dd450c 19738#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
19739EOF
19740
90dd450c 19741else
5c6fa7d2
RR
19742 echo "$as_me:19742: checking if size_t is unsigned long" >&5
19743echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
19744if test "${wx_cv_size_t_is_ulong+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19746else
5c6fa7d2
RR
19747 cat >conftest.$ac_ext <<_ACEOF
19748#line 19748 "configure"
10f2d63a 19749#include "confdefs.h"
90dd450c 19750#include <stddef.h>
5c6fa7d2
RR
19751int
19752main ()
19753{
90dd450c
VZ
19754
19755 return 0; }
19756
19757 struct Foo { void foo(size_t); void foo(unsigned long); };
19758
19759 int bar() {
5c6fa7d2
RR
19760
19761 ;
19762 return 0;
19763}
19764_ACEOF
19765rm -f conftest.$ac_objext
19766if { (eval echo "$as_me:19766: \"$ac_compile\"") >&5
19767 (eval $ac_compile) 2>&5
19768 ac_status=$?
19769 echo "$as_me:19769: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -s conftest.$ac_objext'
19772 { (eval echo "$as_me:19772: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:19775: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
90dd450c 19777 wx_cv_size_t_is_ulong=no
698dcdb6 19778else
5c6fa7d2
RR
19779 echo "$as_me: failed program was:" >&5
19780cat conftest.$ac_ext >&5
19781wx_cv_size_t_is_ulong=yes
19782
7b4a847f 19783fi
5c6fa7d2 19784rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19785
5c6fa7d2
RR
19786fi
19787echo "$as_me:19787: result: $wx_cv_size_t_is_ulong" >&5
19788echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 19789
90dd450c 19790 if test "$wx_cv_size_t_is_ulong" = "yes"; then
5c6fa7d2 19791 cat >>confdefs.h <<\EOF
90dd450c 19792#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
19793EOF
19794
19795 fi
90dd450c 19796fi
1e487827 19797
90dd450c 19798ac_ext=c
4f14bcd8 19799ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
19800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 19803
5c6fa7d2
RR
19804echo "$as_me:19804: checking for pw_gecos in struct passwd" >&5
19805echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
19806if test "${wx_cv_struct_pw_gecos+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 19808else
5c6fa7d2
RR
19809
19810 cat >conftest.$ac_ext <<_ACEOF
19811#line 19811 "configure"
4f14bcd8 19812#include "confdefs.h"
90dd450c 19813#include <pwd.h>
5c6fa7d2
RR
19814int
19815main ()
19816{
f6bcfd97 19817
90dd450c
VZ
19818 char *p;
19819 struct passwd *pw;
19820 p = pw->pw_gecos;
5c6fa7d2
RR
19821
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826rm -f conftest.$ac_objext
19827if { (eval echo "$as_me:19827: \"$ac_compile\"") >&5
19828 (eval $ac_compile) 2>&5
19829 ac_status=$?
19830 echo "$as_me:19830: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -s conftest.$ac_objext'
19833 { (eval echo "$as_me:19833: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:19836: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838
90dd450c 19839 wx_cv_struct_pw_gecos=yes
5c6fa7d2 19840
10f2d63a 19841else
5c6fa7d2
RR
19842 echo "$as_me: failed program was:" >&5
19843cat conftest.$ac_ext >&5
19844
90dd450c 19845 wx_cv_struct_pw_gecos=no
579d8138 19846
7b4a847f 19847fi
5c6fa7d2 19848rm -f conftest.$ac_objext conftest.$ac_ext
52127426 19849
5c6fa7d2
RR
19850fi
19851echo "$as_me:19851: result: $wx_cv_struct_pw_gecos" >&5
19852echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 19853
90dd450c 19854if test "$wx_cv_struct_pw_gecos" = "yes"; then
5c6fa7d2 19855 cat >>confdefs.h <<\EOF
90dd450c 19856#define HAVE_PW_GECOS 1
4f14bcd8 19857EOF
c521c494 19858
90dd450c 19859fi
4f14bcd8 19860
d29b553b 19861if test "$wx_cv_sizeof_wchar_t" != "0"; then
5c6fa7d2 19862 cat >>confdefs.h <<\EOF
d74f4b5a
VZ
19863#define wxUSE_WCHAR_T 1
19864EOF
19865
d74f4b5a
VZ
19866 WCSLEN_FOUND=0
19867 WCHAR_LINK=
5c6fa7d2
RR
19868
19869for ac_func in wcslen
7a30264c 19870do
5c6fa7d2
RR
19871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19872echo "$as_me:19872: checking for $ac_func" >&5
19873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19874if eval "test \"\${$as_ac_var+set}\" = set"; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876else
19877 cat >conftest.$ac_ext <<_ACEOF
19878#line 19878 "configure"
4f14bcd8 19879#include "confdefs.h"
7a30264c 19880/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 19881 which can conflict with char $ac_func (); below. */
7a30264c 19882#include <assert.h>
4f14bcd8 19883/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
19884#ifdef __cplusplus
19885extern "C"
19886#endif
4f14bcd8 19887/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
19888 builtin and then its argument prototype would still apply. */
19889char $ac_func ();
19890char (*f) ();
7a30264c 19891
5c6fa7d2
RR
19892int
19893main ()
19894{
7a30264c
VZ
19895/* The GNU C library defines this for functions which it implements
19896 to always fail with ENOSYS. Some functions are actually named
19897 something starting with __ and the normal name is an alias. */
19898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19899choke me
19900#else
5c6fa7d2 19901f = $ac_func;
7a30264c
VZ
19902#endif
19903
5c6fa7d2
RR
19904 ;
19905 return 0;
19906}
19907_ACEOF
19908rm -f conftest.$ac_objext conftest$ac_exeext
19909if { (eval echo "$as_me:19909: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>&5
19911 ac_status=$?
19912 echo "$as_me:19912: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -s conftest$ac_exeext'
19915 { (eval echo "$as_me:19915: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:19918: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 eval "$as_ac_var=yes"
19921else
19922 echo "$as_me: failed program was:" >&5
19923cat conftest.$ac_ext >&5
19924eval "$as_ac_var=no"
19925fi
19926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19927fi
19928echo "$as_me:19928: result: `eval echo '${'$as_ac_var'}'`" >&5
19929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19930if test `eval echo '${'$as_ac_var'}'` = yes; then
19931 cat >>confdefs.h <<EOF
19932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52127426 19933EOF
d74f4b5a 19934 WCSLEN_FOUND=1
7a30264c
VZ
19935fi
19936done
9d8deca0 19937
d74f4b5a 19938 if test "$WCSLEN_FOUND" = 0; then
7a30264c 19939 if test "$TOOLKIT" = "MSW"; then
5c6fa7d2
RR
19940 echo "$as_me:19940: checking for wcslen in -lmsvcrt" >&5
19941echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
19942if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 19944else
5c6fa7d2 19945 ac_check_lib_save_LIBS=$LIBS
7a30264c 19946LIBS="-lmsvcrt $LIBS"
5c6fa7d2
RR
19947cat >conftest.$ac_ext <<_ACEOF
19948#line 19948 "configure"
10f2d63a 19949#include "confdefs.h"
5c6fa7d2 19950
4f14bcd8 19951/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
19952#ifdef __cplusplus
19953extern "C"
19954#endif
4f14bcd8 19955/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
19956 builtin and then its argument prototype would still apply. */
19957char wcslen ();
19958int
19959main ()
19960{
19961wcslen ();
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext conftest$ac_exeext
19967if { (eval echo "$as_me:19967: \"$ac_link\"") >&5
19968 (eval $ac_link) 2>&5
19969 ac_status=$?
19970 echo "$as_me:19970: \$? = $ac_status" >&5
19971 (exit $ac_status); } &&
19972 { ac_try='test -s conftest$ac_exeext'
19973 { (eval echo "$as_me:19973: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:19976: \$? = $ac_status" >&5
19977 (exit $ac_status); }; }; then
19978 ac_cv_lib_msvcrt_wcslen=yes
19979else
19980 echo "$as_me: failed program was:" >&5
19981cat conftest.$ac_ext >&5
19982ac_cv_lib_msvcrt_wcslen=no
19983fi
19984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19985LIBS=$ac_check_lib_save_LIBS
19986fi
19987echo "$as_me:19987: result: $ac_cv_lib_msvcrt_wcslen" >&5
19988echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
19989if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 19990 WCHAR_OK=1
d29b553b 19991fi
698dcdb6 19992
7a30264c 19993 else
5c6fa7d2
RR
19994 echo "$as_me:19994: checking for wcslen in -lw" >&5
19995echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
19996if test "${ac_cv_lib_w_wcslen+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19998else
5c6fa7d2 19999 ac_check_lib_save_LIBS=$LIBS
7a30264c 20000LIBS="-lw $LIBS"
5c6fa7d2
RR
20001cat >conftest.$ac_ext <<_ACEOF
20002#line 20002 "configure"
95c8801c 20003#include "confdefs.h"
5c6fa7d2 20004
4f14bcd8 20005/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20006#ifdef __cplusplus
20007extern "C"
20008#endif
4f14bcd8 20009/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20010 builtin and then its argument prototype would still apply. */
20011char wcslen ();
20012int
20013main ()
20014{
20015wcslen ();
20016 ;
20017 return 0;
20018}
20019_ACEOF
20020rm -f conftest.$ac_objext conftest$ac_exeext
20021if { (eval echo "$as_me:20021: \"$ac_link\"") >&5
20022 (eval $ac_link) 2>&5
20023 ac_status=$?
20024 echo "$as_me:20024: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try='test -s conftest$ac_exeext'
20027 { (eval echo "$as_me:20027: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20029 ac_status=$?
20030 echo "$as_me:20030: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 ac_cv_lib_w_wcslen=yes
20033else
20034 echo "$as_me: failed program was:" >&5
20035cat conftest.$ac_ext >&5
20036ac_cv_lib_w_wcslen=no
20037fi
20038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20039LIBS=$ac_check_lib_save_LIBS
20040fi
20041echo "$as_me:20041: result: $ac_cv_lib_w_wcslen" >&5
20042echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
20043if test $ac_cv_lib_w_wcslen = yes; then
52127426 20044
7a30264c 20045 WCHAR_LINK=" -lw"
d74f4b5a 20046 WCSLEN_FOUND=1
5c6fa7d2 20047
4f14bcd8 20048fi
10f2d63a 20049
7a30264c 20050 fi
d29b553b 20051 fi
95c8801c 20052
d74f4b5a 20053 if test "$WCSLEN_FOUND" = 1; then
5c6fa7d2 20054 cat >>confdefs.h <<\EOF
d74f4b5a 20055#define HAVE_WCSLEN 1
d29b553b 20056EOF
10f2d63a 20057
d74f4b5a 20058 fi
52127426 20059
5c6fa7d2 20060for ac_func in wcsrtombs
eb4efbdc 20061do
5c6fa7d2
RR
20062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20063echo "$as_me:20063: checking for $ac_func" >&5
20064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20065if eval "test \"\${$as_ac_var+set}\" = set"; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067else
20068 cat >conftest.$ac_ext <<_ACEOF
20069#line 20069 "configure"
eb4efbdc
VZ
20070#include "confdefs.h"
20071/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20072 which can conflict with char $ac_func (); below. */
eb4efbdc
VZ
20073#include <assert.h>
20074/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20075#ifdef __cplusplus
20076extern "C"
20077#endif
eb4efbdc 20078/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20079 builtin and then its argument prototype would still apply. */
20080char $ac_func ();
20081char (*f) ();
eb4efbdc 20082
5c6fa7d2
RR
20083int
20084main ()
20085{
eb4efbdc
VZ
20086/* The GNU C library defines this for functions which it implements
20087 to always fail with ENOSYS. Some functions are actually named
20088 something starting with __ and the normal name is an alias. */
20089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20090choke me
20091#else
5c6fa7d2 20092f = $ac_func;
eb4efbdc
VZ
20093#endif
20094
5c6fa7d2
RR
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099rm -f conftest.$ac_objext conftest$ac_exeext
20100if { (eval echo "$as_me:20100: \"$ac_link\"") >&5
20101 (eval $ac_link) 2>&5
20102 ac_status=$?
20103 echo "$as_me:20103: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest$ac_exeext'
20106 { (eval echo "$as_me:20106: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:20109: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 eval "$as_ac_var=yes"
20112else
20113 echo "$as_me: failed program was:" >&5
20114cat conftest.$ac_ext >&5
20115eval "$as_ac_var=no"
20116fi
20117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20118fi
20119echo "$as_me:20119: result: `eval echo '${'$as_ac_var'}'`" >&5
20120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20121if test `eval echo '${'$as_ac_var'}'` = yes; then
20122 cat >>confdefs.h <<EOF
20123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
eb4efbdc 20124EOF
eb4efbdc 20125
eb4efbdc
VZ
20126fi
20127done
20128
d29b553b 20129else
5c6fa7d2
RR
20130 { echo "$as_me:20130: WARNING: Wide character support is unavailable" >&5
20131echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
d29b553b 20132fi
698dcdb6 20133
5c6fa7d2
RR
20134for ac_func in vprintf
20135do
20136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20137echo "$as_me:20137: checking for $ac_func" >&5
20138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20139if eval "test \"\${$as_ac_var+set}\" = set"; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141else
20142 cat >conftest.$ac_ext <<_ACEOF
20143#line 20143 "configure"
f6bcfd97 20144#include "confdefs.h"
4f14bcd8 20145/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20146 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
20147#include <assert.h>
20148/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20149#ifdef __cplusplus
20150extern "C"
20151#endif
4f14bcd8 20152/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20153 builtin and then its argument prototype would still apply. */
20154char $ac_func ();
20155char (*f) ();
f6bcfd97 20156
5c6fa7d2
RR
20157int
20158main ()
20159{
4f14bcd8
GD
20160/* The GNU C library defines this for functions which it implements
20161 to always fail with ENOSYS. Some functions are actually named
20162 something starting with __ and the normal name is an alias. */
5c6fa7d2 20163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4f14bcd8
GD
20164choke me
20165#else
5c6fa7d2 20166f = $ac_func;
4f14bcd8 20167#endif
f6bcfd97 20168
5c6fa7d2
RR
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173rm -f conftest.$ac_objext conftest$ac_exeext
20174if { (eval echo "$as_me:20174: \"$ac_link\"") >&5
20175 (eval $ac_link) 2>&5
20176 ac_status=$?
20177 echo "$as_me:20177: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -s conftest$ac_exeext'
20180 { (eval echo "$as_me:20180: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:20183: \$? = $ac_status" >&5
20184 (exit $ac_status); }; }; then
20185 eval "$as_ac_var=yes"
20186else
20187 echo "$as_me: failed program was:" >&5
20188cat conftest.$ac_ext >&5
20189eval "$as_ac_var=no"
20190fi
20191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20192fi
20193echo "$as_me:20193: result: `eval echo '${'$as_ac_var'}'`" >&5
20194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20195if test `eval echo '${'$as_ac_var'}'` = yes; then
20196 cat >>confdefs.h <<EOF
20197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20198EOF
20199
20200echo "$as_me:20200: checking for _doprnt" >&5
20201echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20202if test "${ac_cv_func__doprnt+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20204else
20205 cat >conftest.$ac_ext <<_ACEOF
20206#line 20206 "configure"
10f2d63a
VZ
20207#include "confdefs.h"
20208/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20209 which can conflict with char _doprnt (); below. */
10f2d63a
VZ
20210#include <assert.h>
20211/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20212#ifdef __cplusplus
20213extern "C"
20214#endif
10f2d63a 20215/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20216 builtin and then its argument prototype would still apply. */
20217char _doprnt ();
20218char (*f) ();
10f2d63a 20219
5c6fa7d2
RR
20220int
20221main ()
20222{
10f2d63a
VZ
20223/* The GNU C library defines this for functions which it implements
20224 to always fail with ENOSYS. Some functions are actually named
20225 something starting with __ and the normal name is an alias. */
4f14bcd8 20226#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
20227choke me
20228#else
5c6fa7d2 20229f = _doprnt;
10f2d63a
VZ
20230#endif
20231
5c6fa7d2
RR
20232 ;
20233 return 0;
20234}
20235_ACEOF
20236rm -f conftest.$ac_objext conftest$ac_exeext
20237if { (eval echo "$as_me:20237: \"$ac_link\"") >&5
20238 (eval $ac_link) 2>&5
20239 ac_status=$?
20240 echo "$as_me:20240: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -s conftest$ac_exeext'
20243 { (eval echo "$as_me:20243: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:20246: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_cv_func__doprnt=yes
20249else
20250 echo "$as_me: failed program was:" >&5
20251cat conftest.$ac_ext >&5
20252ac_cv_func__doprnt=no
20253fi
20254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20255fi
20256echo "$as_me:20256: result: $ac_cv_func__doprnt" >&5
20257echo "${ECHO_T}$ac_cv_func__doprnt" >&6
20258if test $ac_cv_func__doprnt = yes; then
20259
20260cat >>confdefs.h <<\EOF
4f14bcd8 20261#define HAVE_DOPRNT 1
698dcdb6 20262EOF
4f14bcd8 20263
270a909e 20264fi
270a909e 20265
4f14bcd8 20266fi
5c6fa7d2 20267done
1e487827 20268
5c6fa7d2
RR
20269echo "$as_me:20269: checking for vsnprintf" >&5
20270echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
20271if test "${wx_cv_func_vsnprintf+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 20273else
5c6fa7d2
RR
20274
20275 cat >conftest.$ac_ext <<_ACEOF
20276#line 20276 "configure"
c63c7106 20277#include "confdefs.h"
698dcdb6 20278
4f14bcd8
GD
20279 #include <stdio.h>
20280 #include <stdarg.h>
5c6fa7d2
RR
20281
20282int
20283main ()
20284{
af15babd 20285
4f14bcd8
GD
20286 int wx_test_vsnprintf(const char *, ...);
20287
20288 wx_test_vsnprintf("%s");
20289 return 0;
20290 }
20291
20292 int wx_test_vsnprintf(const char *fmt, ...)
20293 {
20294 char *s;
20295
20296 va_list argp;
20297 va_start(argp, fmt);
20298 vsnprintf(s, 42, fmt, argp);
20299 va_end(argp);
5c6fa7d2
RR
20300
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext conftest$ac_exeext
20306if { (eval echo "$as_me:20306: \"$ac_link\"") >&5
20307 (eval $ac_link) 2>&5
20308 ac_status=$?
20309 echo "$as_me:20309: \$? = $ac_status" >&5
20310 (exit $ac_status); } &&
20311 { ac_try='test -s conftest$ac_exeext'
20312 { (eval echo "$as_me:20312: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:20315: \$? = $ac_status" >&5
20316 (exit $ac_status); }; }; then
20317
4f14bcd8 20318 wx_cv_func_vsnprintf=yes
5c6fa7d2 20319
af15babd 20320else
5c6fa7d2
RR
20321 echo "$as_me: failed program was:" >&5
20322cat conftest.$ac_ext >&5
20323
20324 cat >conftest.$ac_ext <<_ACEOF
20325#line 20325 "configure"
af15babd 20326#include "confdefs.h"
af15babd 20327
4f14bcd8
GD
20328 #include <stdio.h>
20329 #include <stdarg.h>
5c6fa7d2
RR
20330
20331int
20332main ()
20333{
af15babd 20334
4f14bcd8
GD
20335 int wx_test_vsnprintf(const char *, ...);
20336
20337 wx_test_vsnprintf("%s");
20338 return 0;
20339 }
20340
20341 int wx_test_vsnprintf(const char *fmt, ...)
20342 {
20343 char *s;
af15babd 20344
4f14bcd8
GD
20345 va_list argp;
20346 va_start(argp, fmt);
20347 _vsnprintf(s, 42, fmt, argp);
20348 va_end(argp);
5c6fa7d2
RR
20349
20350 ;
20351 return 0;
20352}
20353_ACEOF
20354rm -f conftest.$ac_objext conftest$ac_exeext
20355if { (eval echo "$as_me:20355: \"$ac_link\"") >&5
20356 (eval $ac_link) 2>&5
20357 ac_status=$?
20358 echo "$as_me:20358: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -s conftest$ac_exeext'
20361 { (eval echo "$as_me:20361: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:20364: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366
4f14bcd8 20367 wx_cv_func_vsnprintf=yes
5c6fa7d2 20368
af15babd 20369else
5c6fa7d2
RR
20370 echo "$as_me: failed program was:" >&5
20371cat conftest.$ac_ext >&5
20372
4f14bcd8 20373 wx_cv_func_vsnprintf=no
5c6fa7d2 20374
328a083c 20375fi
5c6fa7d2 20376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
579d8138 20377
7b4a847f 20378fi
5c6fa7d2 20379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52127426 20380
5c6fa7d2
RR
20381fi
20382echo "$as_me:20382: result: $wx_cv_func_vsnprintf" >&5
20383echo "${ECHO_T}$wx_cv_func_vsnprintf" >&6
af15babd 20384
4f14bcd8 20385if test "$wx_cv_func_vsnprintf" = yes; then
5c6fa7d2 20386 cat >>confdefs.h <<\EOF
4f14bcd8
GD
20387#define HAVE_VSNPRINTF 1
20388EOF
20389
20390else
5c6fa7d2
RR
20391 { echo "$as_me:20391: WARNING: unsafe function vsprintf will be used instead of vsnprintf" >&5
20392echo "$as_me: WARNING: unsafe function vsprintf will be used instead of vsnprintf" >&2;}
af15babd
VZ
20393fi
20394
5c6fa7d2
RR
20395echo "$as_me:20395: checking for vsscanf" >&5
20396echo $ECHO_N "checking for vsscanf... $ECHO_C" >&6
20397if test "${wx_cv_func_vsscanf+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 20399else
5c6fa7d2
RR
20400
20401 cat >conftest.$ac_ext <<_ACEOF
20402#line 20402 "configure"
af15babd 20403#include "confdefs.h"
af15babd 20404
4f14bcd8
GD
20405 #include <stdio.h>
20406 #include <stdarg.h>
5c6fa7d2
RR
20407
20408int
20409main ()
20410{
af15babd 20411
4f14bcd8
GD
20412 int wx_test_vsscanf(const char *, ...);
20413
20414 wx_test_vsscanf("%d");
20415 return 0;
20416 }
af15babd 20417
4f14bcd8
GD
20418 int wx_test_vsscanf(const char *fmt, ...)
20419 {
20420 va_list argp;
20421 va_start(argp, fmt);
20422 vsscanf("42", fmt, argp);
20423 va_end(argp);
5c6fa7d2
RR
20424
20425 ;
20426 return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext
20430if { (eval echo "$as_me:20430: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>&5
20432 ac_status=$?
20433 echo "$as_me:20433: \$? = $ac_status" >&5
20434 (exit $ac_status); } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:20436: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:20439: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441
4f14bcd8 20442 wx_cv_func_vsscanf=yes
5c6fa7d2 20443
af15babd 20444else
5c6fa7d2
RR
20445 echo "$as_me: failed program was:" >&5
20446cat conftest.$ac_ext >&5
20447
4f14bcd8 20448 wx_cv_func_vsscanf=no
579d8138 20449
7b4a847f 20450fi
5c6fa7d2 20451rm -f conftest.$ac_objext conftest.$ac_ext
52127426 20452
5c6fa7d2
RR
20453fi
20454echo "$as_me:20454: result: $wx_cv_func_vsscanf" >&5
20455echo "${ECHO_T}$wx_cv_func_vsscanf" >&6
4f14bcd8
GD
20456
20457if test "$wx_cv_func_vsscanf" = yes; then
5c6fa7d2 20458 cat >>confdefs.h <<\EOF
4f14bcd8 20459#define HAVE_VSSCANF 1
af15babd 20460EOF
4f14bcd8 20461
af15babd 20462fi
af15babd 20463
d74f4b5a 20464if test "$wxUSE_UNICODE" = yes; then
5c6fa7d2
RR
20465
20466for ac_func in fputwc wprintf vswprintf
d74f4b5a 20467do
5c6fa7d2
RR
20468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20469echo "$as_me:20469: checking for $ac_func" >&5
20470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20471if eval "test \"\${$as_ac_var+set}\" = set"; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20473else
20474 cat >conftest.$ac_ext <<_ACEOF
20475#line 20475 "configure"
d74f4b5a
VZ
20476#include "confdefs.h"
20477/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20478 which can conflict with char $ac_func (); below. */
d74f4b5a
VZ
20479#include <assert.h>
20480/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20481#ifdef __cplusplus
20482extern "C"
20483#endif
d74f4b5a 20484/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20485 builtin and then its argument prototype would still apply. */
20486char $ac_func ();
20487char (*f) ();
d74f4b5a 20488
5c6fa7d2
RR
20489int
20490main ()
20491{
d74f4b5a
VZ
20492/* The GNU C library defines this for functions which it implements
20493 to always fail with ENOSYS. Some functions are actually named
20494 something starting with __ and the normal name is an alias. */
20495#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20496choke me
20497#else
5c6fa7d2 20498f = $ac_func;
d74f4b5a
VZ
20499#endif
20500
5c6fa7d2
RR
20501 ;
20502 return 0;
20503}
20504_ACEOF
20505rm -f conftest.$ac_objext conftest$ac_exeext
20506if { (eval echo "$as_me:20506: \"$ac_link\"") >&5
20507 (eval $ac_link) 2>&5
20508 ac_status=$?
20509 echo "$as_me:20509: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -s conftest$ac_exeext'
20512 { (eval echo "$as_me:20512: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:20515: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 eval "$as_ac_var=yes"
20518else
20519 echo "$as_me: failed program was:" >&5
20520cat conftest.$ac_ext >&5
20521eval "$as_ac_var=no"
20522fi
20523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20524fi
20525echo "$as_me:20525: result: `eval echo '${'$as_ac_var'}'`" >&5
20526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20527if test `eval echo '${'$as_ac_var'}'` = yes; then
20528 cat >>confdefs.h <<EOF
20529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d74f4b5a 20530EOF
d74f4b5a 20531
d74f4b5a
VZ
20532fi
20533done
20534
20535fi
20536
4f14bcd8 20537if test "$TOOLKIT" != "MSW"; then
af15babd 20538
5c6fa7d2 20539ac_ext=cc
4f14bcd8 20540ac_cpp='$CXXCPP $CPPFLAGS'
5c6fa7d2
RR
20541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 20544
5c6fa7d2 20545# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
20546if test "${with_libiconv_prefix+set}" = set; then
20547 withval="$with_libiconv_prefix"
5c6fa7d2 20548
b040e242
VS
20549 for dir in `echo "$withval" | tr : ' '`; do
20550 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
20551 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
20552 done
b040e242 20553
5c6fa7d2 20554fi;
b040e242 20555
5c6fa7d2
RR
20556 echo "$as_me:20556: checking for iconv" >&5
20557echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20558if test "${am_cv_func_iconv+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 20560else
5c6fa7d2 20561
b040e242
VS
20562 am_cv_func_iconv="no, consider installing GNU libiconv"
20563 am_cv_lib_iconv=no
5c6fa7d2
RR
20564 cat >conftest.$ac_ext <<_ACEOF
20565#line 20565 "configure"
af15babd 20566#include "confdefs.h"
b040e242 20567#include <stdlib.h>
4f14bcd8 20568#include <iconv.h>
5c6fa7d2
RR
20569int
20570main ()
20571{
b040e242
VS
20572iconv_t cd = iconv_open("","");
20573 iconv(cd,NULL,NULL,NULL,NULL);
20574 iconv_close(cd);
5c6fa7d2
RR
20575 ;
20576 return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext conftest$ac_exeext
20580if { (eval echo "$as_me:20580: \"$ac_link\"") >&5
20581 (eval $ac_link) 2>&5
20582 ac_status=$?
20583 echo "$as_me:20583: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (eval echo "$as_me:20586: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20588 ac_status=$?
20589 echo "$as_me:20589: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
b040e242 20591 am_cv_func_iconv=yes
af15babd 20592else
5c6fa7d2
RR
20593 echo "$as_me: failed program was:" >&5
20594cat conftest.$ac_ext >&5
b040e242 20595fi
5c6fa7d2 20596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
20597 if test "$am_cv_func_iconv" != yes; then
20598 am_save_LIBS="$LIBS"
20599 LIBS="$LIBS -liconv"
5c6fa7d2
RR
20600 cat >conftest.$ac_ext <<_ACEOF
20601#line 20601 "configure"
b040e242
VS
20602#include "confdefs.h"
20603#include <stdlib.h>
20604#include <iconv.h>
5c6fa7d2
RR
20605int
20606main ()
20607{
b040e242
VS
20608iconv_t cd = iconv_open("","");
20609 iconv(cd,NULL,NULL,NULL,NULL);
20610 iconv_close(cd);
5c6fa7d2
RR
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext conftest$ac_exeext
20616if { (eval echo "$as_me:20616: \"$ac_link\"") >&5
20617 (eval $ac_link) 2>&5
20618 ac_status=$?
20619 echo "$as_me:20619: \$? = $ac_status" >&5
20620 (exit $ac_status); } &&
20621 { ac_try='test -s conftest$ac_exeext'
20622 { (eval echo "$as_me:20622: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:20625: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
b040e242
VS
20627 am_cv_lib_iconv=yes
20628 am_cv_func_iconv=yes
20629else
5c6fa7d2
RR
20630 echo "$as_me: failed program was:" >&5
20631cat conftest.$ac_ext >&5
af15babd 20632fi
5c6fa7d2 20633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
20634 LIBS="$am_save_LIBS"
20635 fi
7b4a847f 20636
5c6fa7d2
RR
20637fi
20638echo "$as_me:20638: result: $am_cv_func_iconv" >&5
20639echo "${ECHO_T}$am_cv_func_iconv" >&6
52127426 20640 if test "$am_cv_func_iconv" = yes; then
5c6fa7d2
RR
20641
20642cat >>confdefs.h <<\EOF
b040e242
VS
20643#define HAVE_ICONV 1
20644EOF
20645
5c6fa7d2
RR
20646 echo "$as_me:20646: checking if iconv needs const" >&5
20647echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
20648if test "${wx_cv_func_iconv_const+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 20650else
5c6fa7d2
RR
20651 cat >conftest.$ac_ext <<_ACEOF
20652#line 20652 "configure"
b040e242
VS
20653#include "confdefs.h"
20654
20655#include <stdlib.h>
20656#include <iconv.h>
20657extern
20658#ifdef __cplusplus
20659"C"
20660#endif
20661#if defined(__STDC__) || defined(__cplusplus)
20662size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20663#else
20664size_t iconv();
20665#endif
af15babd 20666
5c6fa7d2
RR
20667int
20668main ()
20669{
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:20676: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>&5
20678 ac_status=$?
20679 echo "$as_me:20679: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
20681 { ac_try='test -s conftest.$ac_objext'
20682 { (eval echo "$as_me:20682: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:20685: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
b7043674 20687 wx_cv_func_iconv_const="no"
b040e242 20688else
5c6fa7d2
RR
20689 echo "$as_me: failed program was:" >&5
20690cat conftest.$ac_ext >&5
20691wx_cv_func_iconv_const="yes"
20692
7b4a847f 20693fi
5c6fa7d2 20694rm -f conftest.$ac_objext conftest.$ac_ext
52127426 20695
5c6fa7d2
RR
20696fi
20697echo "$as_me:20697: result: $wx_cv_func_iconv_const" >&5
20698echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
20699
20700 iconv_const=
1c405bb5 20701 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
20702 iconv_const="const"
20703 fi
20704
5c6fa7d2 20705cat >>confdefs.h <<EOF
f09359cf 20706#define ICONV_CONST $iconv_const
b040e242
VS
20707EOF
20708
20709 fi
20710 LIBICONV=
20711 if test "$am_cv_lib_iconv" = yes; then
20712 LIBICONV="-liconv"
20713 fi
b040e242
VS
20714
20715LIBS="$LIBICONV $LIBS"
4f14bcd8 20716ac_ext=c
4f14bcd8 20717ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
20718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 20721
52127426 20722if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
5c6fa7d2
RR
20723
20724for ac_func in sigaction
af15babd 20725do
5c6fa7d2
RR
20726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20727echo "$as_me:20727: checking for $ac_func" >&5
20728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20729if eval "test \"\${$as_ac_var+set}\" = set"; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731else
20732 cat >conftest.$ac_ext <<_ACEOF
20733#line 20733 "configure"
af15babd
VZ
20734#include "confdefs.h"
20735/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20736 which can conflict with char $ac_func (); below. */
af15babd
VZ
20737#include <assert.h>
20738/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20739#ifdef __cplusplus
20740extern "C"
20741#endif
af15babd 20742/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20743 builtin and then its argument prototype would still apply. */
20744char $ac_func ();
20745char (*f) ();
af15babd 20746
5c6fa7d2
RR
20747int
20748main ()
20749{
af15babd
VZ
20750/* The GNU C library defines this for functions which it implements
20751 to always fail with ENOSYS. Some functions are actually named
20752 something starting with __ and the normal name is an alias. */
20753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20754choke me
20755#else
5c6fa7d2 20756f = $ac_func;
af15babd
VZ
20757#endif
20758
5c6fa7d2
RR
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext conftest$ac_exeext
20764if { (eval echo "$as_me:20764: \"$ac_link\"") >&5
20765 (eval $ac_link) 2>&5
20766 ac_status=$?
20767 echo "$as_me:20767: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -s conftest$ac_exeext'
20770 { (eval echo "$as_me:20770: \"$ac_try\"") >&5
20771 (eval $ac_try) 2>&5
20772 ac_status=$?
20773 echo "$as_me:20773: \$? = $ac_status" >&5
20774 (exit $ac_status); }; }; then
20775 eval "$as_ac_var=yes"
20776else
20777 echo "$as_me: failed program was:" >&5
20778cat conftest.$ac_ext >&5
20779eval "$as_ac_var=no"
20780fi
20781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20782fi
20783echo "$as_me:20783: result: `eval echo '${'$as_ac_var'}'`" >&5
20784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20785if test `eval echo '${'$as_ac_var'}'` = yes; then
20786 cat >>confdefs.h <<EOF
20787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
579d8138 20788EOF
7b4a847f 20789
4f14bcd8
GD
20790fi
20791done
20792
4f14bcd8 20793 if test "$ac_cv_func_sigaction" = "no"; then
5c6fa7d2
RR
20794 { echo "$as_me:20794: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
20795echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
20796 wxUSE_ON_FATAL_EXCEPTION=no
20797 fi
20798
20799 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
328a083c 20800
5c6fa7d2
RR
20801 ac_ext=cc
20802ac_cpp='$CXXCPP $CPPFLAGS'
20803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 20806
5c6fa7d2
RR
20807 echo "$as_me:20807: checking for sa_handler type" >&5
20808echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
20809if test "${wx_cv_type_sa_handler+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 20811else
5c6fa7d2
RR
20812
20813 cat >conftest.$ac_ext <<_ACEOF
20814#line 20814 "configure"
af15babd 20815#include "confdefs.h"
4f14bcd8 20816#include <signal.h>
5c6fa7d2
RR
20817int
20818main ()
20819{
4f14bcd8
GD
20820
20821 extern void testSigHandler(int);
20822
20823 struct sigaction sa;
20824 sa.sa_handler = testSigHandler;
5c6fa7d2
RR
20825
20826 ;
20827 return 0;
20828}
20829_ACEOF
20830rm -f conftest.$ac_objext
20831if { (eval echo "$as_me:20831: \"$ac_compile\"") >&5
20832 (eval $ac_compile) 2>&5
20833 ac_status=$?
20834 echo "$as_me:20834: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try='test -s conftest.$ac_objext'
20837 { (eval echo "$as_me:20837: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:20840: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842
4f14bcd8 20843 wx_cv_type_sa_handler=int
5c6fa7d2 20844
af15babd 20845else
5c6fa7d2
RR
20846 echo "$as_me: failed program was:" >&5
20847cat conftest.$ac_ext >&5
20848
4f14bcd8 20849 wx_cv_type_sa_handler=void
5c6fa7d2 20850
7b4a847f 20851fi
5c6fa7d2 20852rm -f conftest.$ac_objext conftest.$ac_ext
52127426 20853
5c6fa7d2
RR
20854fi
20855echo "$as_me:20855: result: $wx_cv_type_sa_handler" >&5
20856echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
20857
20858 ac_ext=c
4f14bcd8 20859ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 20863
5c6fa7d2 20864 cat >>confdefs.h <<EOF
4f14bcd8 20865#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
20866EOF
20867
4f14bcd8
GD
20868 fi
20869fi
af15babd 20870
4f14bcd8 20871for ac_func in vfork
af15babd 20872do
5c6fa7d2
RR
20873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20874echo "$as_me:20874: checking for $ac_func" >&5
20875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20876if eval "test \"\${$as_ac_var+set}\" = set"; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20878else
20879 cat >conftest.$ac_ext <<_ACEOF
20880#line 20880 "configure"
af15babd
VZ
20881#include "confdefs.h"
20882/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20883 which can conflict with char $ac_func (); below. */
af15babd
VZ
20884#include <assert.h>
20885/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20886#ifdef __cplusplus
20887extern "C"
20888#endif
af15babd 20889/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20890 builtin and then its argument prototype would still apply. */
20891char $ac_func ();
20892char (*f) ();
af15babd 20893
5c6fa7d2
RR
20894int
20895main ()
20896{
af15babd
VZ
20897/* The GNU C library defines this for functions which it implements
20898 to always fail with ENOSYS. Some functions are actually named
20899 something starting with __ and the normal name is an alias. */
20900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20901choke me
20902#else
5c6fa7d2 20903f = $ac_func;
af15babd
VZ
20904#endif
20905
5c6fa7d2
RR
20906 ;
20907 return 0;
20908}
20909_ACEOF
20910rm -f conftest.$ac_objext conftest$ac_exeext
20911if { (eval echo "$as_me:20911: \"$ac_link\"") >&5
20912 (eval $ac_link) 2>&5
20913 ac_status=$?
20914 echo "$as_me:20914: \$? = $ac_status" >&5
20915 (exit $ac_status); } &&
20916 { ac_try='test -s conftest$ac_exeext'
20917 { (eval echo "$as_me:20917: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:20920: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922 eval "$as_ac_var=yes"
20923else
20924 echo "$as_me: failed program was:" >&5
20925cat conftest.$ac_ext >&5
20926eval "$as_ac_var=no"
20927fi
20928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20929fi
20930echo "$as_me:20930: result: `eval echo '${'$as_ac_var'}'`" >&5
20931echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20932if test `eval echo '${'$as_ac_var'}'` = yes; then
20933 cat >>confdefs.h <<EOF
20934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
af15babd 20935EOF
af15babd 20936
af15babd
VZ
20937fi
20938done
20939
ade35f11
VZ
20940for ac_func in mkstemp mktemp
20941do
5c6fa7d2
RR
20942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20943echo "$as_me:20943: checking for $ac_func" >&5
20944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20945if eval "test \"\${$as_ac_var+set}\" = set"; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20947else
20948 cat >conftest.$ac_ext <<_ACEOF
20949#line 20949 "configure"
ade35f11
VZ
20950#include "confdefs.h"
20951/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 20952 which can conflict with char $ac_func (); below. */
ade35f11
VZ
20953#include <assert.h>
20954/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
20955#ifdef __cplusplus
20956extern "C"
20957#endif
ade35f11 20958/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
20959 builtin and then its argument prototype would still apply. */
20960char $ac_func ();
20961char (*f) ();
ade35f11 20962
5c6fa7d2
RR
20963int
20964main ()
20965{
ade35f11
VZ
20966/* The GNU C library defines this for functions which it implements
20967 to always fail with ENOSYS. Some functions are actually named
20968 something starting with __ and the normal name is an alias. */
20969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20970choke me
20971#else
5c6fa7d2 20972f = $ac_func;
ade35f11
VZ
20973#endif
20974
5c6fa7d2
RR
20975 ;
20976 return 0;
20977}
20978_ACEOF
20979rm -f conftest.$ac_objext conftest$ac_exeext
20980if { (eval echo "$as_me:20980: \"$ac_link\"") >&5
20981 (eval $ac_link) 2>&5
20982 ac_status=$?
20983 echo "$as_me:20983: \$? = $ac_status" >&5
20984 (exit $ac_status); } &&
20985 { ac_try='test -s conftest$ac_exeext'
20986 { (eval echo "$as_me:20986: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:20989: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 eval "$as_ac_var=yes"
20992else
20993 echo "$as_me: failed program was:" >&5
20994cat conftest.$ac_ext >&5
20995eval "$as_ac_var=no"
20996fi
20997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20998fi
20999echo "$as_me:20999: result: `eval echo '${'$as_ac_var'}'`" >&5
21000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21001if test `eval echo '${'$as_ac_var'}'` = yes; then
21002 cat >>confdefs.h <<EOF
21003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ade35f11
VZ
21004EOF
21005 break
ade35f11
VZ
21006fi
21007done
21008
5c6fa7d2
RR
21009echo "$as_me:21009: checking for statfs" >&5
21010echo $ECHO_N "checking for statfs... $ECHO_C" >&6
21011if test "${wx_cv_func_statfs+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 21013else
5c6fa7d2
RR
21014 cat >conftest.$ac_ext <<_ACEOF
21015#line 21015 "configure"
4f14bcd8
GD
21016#include "confdefs.h"
21017
21018 #if defined(__BSD__)
21019 #include <sys/param.h>
21020 #include <sys/mount.h>
21021 #else
21022 #include <sys/vfs.h>
21023 #endif
5c6fa7d2
RR
21024
21025int
21026main ()
21027{
4f14bcd8
GD
21028
21029 long l;
21030 struct statfs fs;
21031 statfs("/", &fs);
21032 l = fs.f_bsize;
21033 l += fs.f_blocks;
21034 l += fs.f_bavail;
5c6fa7d2
RR
21035
21036 ;
21037 return 0;
21038}
21039_ACEOF
21040rm -f conftest.$ac_objext
21041if { (eval echo "$as_me:21041: \"$ac_compile\"") >&5
21042 (eval $ac_compile) 2>&5
21043 ac_status=$?
21044 echo "$as_me:21044: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
21046 { ac_try='test -s conftest.$ac_objext'
21047 { (eval echo "$as_me:21047: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:21050: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052
4f14bcd8 21053 wx_cv_func_statfs=yes
5c6fa7d2 21054
4f14bcd8 21055else
5c6fa7d2
RR
21056 echo "$as_me: failed program was:" >&5
21057cat conftest.$ac_ext >&5
21058
4f14bcd8 21059 wx_cv_func_statfs=no
579d8138 21060
7b4a847f 21061fi
5c6fa7d2 21062rm -f conftest.$ac_objext conftest.$ac_ext
52127426 21063
5c6fa7d2
RR
21064fi
21065echo "$as_me:21065: result: $wx_cv_func_statfs" >&5
21066echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
21067
21068if test "$wx_cv_func_statfs" = "yes"; then
5c6fa7d2 21069 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21070#define HAVE_STATFS 1
21071EOF
21072
21073else
5c6fa7d2
RR
21074 echo "$as_me:21074: checking for statvfs" >&5
21075echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
21076if test "${wx_cv_func_statvfs+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 21078else
5c6fa7d2
RR
21079 cat >conftest.$ac_ext <<_ACEOF
21080#line 21080 "configure"
af15babd 21081#include "confdefs.h"
af15babd 21082
4f14bcd8 21083 #include <sys/statvfs.h>
5c6fa7d2
RR
21084
21085int
21086main ()
21087{
af15babd 21088
4f14bcd8
GD
21089 long l;
21090 struct statvfs fs;
21091 statvfs("/", &fs);
21092 l = fs.f_bsize;
21093 l += fs.f_blocks;
21094 l += fs.f_bavail;
5c6fa7d2
RR
21095
21096 ;
21097 return 0;
21098}
21099_ACEOF
21100rm -f conftest.$ac_objext
21101if { (eval echo "$as_me:21101: \"$ac_compile\"") >&5
21102 (eval $ac_compile) 2>&5
21103 ac_status=$?
21104 echo "$as_me:21104: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (eval echo "$as_me:21107: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:21110: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112
4f14bcd8 21113 wx_cv_func_statvfs=yes
5c6fa7d2 21114
af15babd 21115else
5c6fa7d2
RR
21116 echo "$as_me: failed program was:" >&5
21117cat conftest.$ac_ext >&5
21118
4f14bcd8 21119 wx_cv_func_statvfs=no
5c6fa7d2 21120
7b4a847f 21121fi
5c6fa7d2 21122rm -f conftest.$ac_objext conftest.$ac_ext
52127426 21123
5c6fa7d2
RR
21124fi
21125echo "$as_me:21125: result: $wx_cv_func_statvfs" >&5
21126echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 21127
4f14bcd8 21128 if test "$wx_cv_func_statvfs" = "yes"; then
5c6fa7d2 21129 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21130#define HAVE_STATVFS 1
21131EOF
af15babd 21132
4f14bcd8 21133 else
5c6fa7d2
RR
21134 { echo "$as_me:21134: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
21135echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
4f14bcd8
GD
21136 fi
21137fi
af15babd 21138
4f14bcd8 21139if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
5c6fa7d2
RR
21140
21141for ac_func in fcntl flock
af15babd 21142do
5c6fa7d2
RR
21143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21144echo "$as_me:21144: checking for $ac_func" >&5
21145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21146if eval "test \"\${$as_ac_var+set}\" = set"; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148else
21149 cat >conftest.$ac_ext <<_ACEOF
21150#line 21150 "configure"
af15babd
VZ
21151#include "confdefs.h"
21152/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21153 which can conflict with char $ac_func (); below. */
af15babd
VZ
21154#include <assert.h>
21155/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21156#ifdef __cplusplus
21157extern "C"
21158#endif
af15babd 21159/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21160 builtin and then its argument prototype would still apply. */
21161char $ac_func ();
21162char (*f) ();
af15babd 21163
5c6fa7d2
RR
21164int
21165main ()
21166{
af15babd
VZ
21167/* The GNU C library defines this for functions which it implements
21168 to always fail with ENOSYS. Some functions are actually named
21169 something starting with __ and the normal name is an alias. */
21170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21171choke me
21172#else
5c6fa7d2 21173f = $ac_func;
af15babd
VZ
21174#endif
21175
5c6fa7d2
RR
21176 ;
21177 return 0;
21178}
21179_ACEOF
21180rm -f conftest.$ac_objext conftest$ac_exeext
21181if { (eval echo "$as_me:21181: \"$ac_link\"") >&5
21182 (eval $ac_link) 2>&5
21183 ac_status=$?
21184 echo "$as_me:21184: \$? = $ac_status" >&5
21185 (exit $ac_status); } &&
21186 { ac_try='test -s conftest$ac_exeext'
21187 { (eval echo "$as_me:21187: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:21190: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 eval "$as_ac_var=yes"
21193else
21194 echo "$as_me: failed program was:" >&5
21195cat conftest.$ac_ext >&5
21196eval "$as_ac_var=no"
21197fi
21198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21199fi
21200echo "$as_me:21200: result: `eval echo '${'$as_ac_var'}'`" >&5
21201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21202if test `eval echo '${'$as_ac_var'}'` = yes; then
21203 cat >>confdefs.h <<EOF
21204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
af15babd 21205EOF
4f14bcd8 21206 break
af15babd
VZ
21207fi
21208done
21209
4f14bcd8 21210 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
5c6fa7d2
RR
21211 { echo "$as_me:21211: WARNING: wxSingleInstanceChecker not available" >&5
21212echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
21213 wxUSE_SNGLINST_CHECKER=no
21214 fi
21215fi
af15babd 21216
4f14bcd8 21217for ac_func in timegm
af15babd 21218do
5c6fa7d2
RR
21219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21220echo "$as_me:21220: checking for $ac_func" >&5
21221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21222if eval "test \"\${$as_ac_var+set}\" = set"; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
21224else
21225 cat >conftest.$ac_ext <<_ACEOF
21226#line 21226 "configure"
af15babd
VZ
21227#include "confdefs.h"
21228/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21229 which can conflict with char $ac_func (); below. */
af15babd
VZ
21230#include <assert.h>
21231/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21232#ifdef __cplusplus
21233extern "C"
21234#endif
af15babd 21235/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21236 builtin and then its argument prototype would still apply. */
21237char $ac_func ();
21238char (*f) ();
698dcdb6 21239
5c6fa7d2
RR
21240int
21241main ()
21242{
af15babd
VZ
21243/* The GNU C library defines this for functions which it implements
21244 to always fail with ENOSYS. Some functions are actually named
21245 something starting with __ and the normal name is an alias. */
21246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21247choke me
21248#else
5c6fa7d2 21249f = $ac_func;
af15babd
VZ
21250#endif
21251
5c6fa7d2
RR
21252 ;
21253 return 0;
21254}
21255_ACEOF
21256rm -f conftest.$ac_objext conftest$ac_exeext
21257if { (eval echo "$as_me:21257: \"$ac_link\"") >&5
21258 (eval $ac_link) 2>&5
21259 ac_status=$?
21260 echo "$as_me:21260: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -s conftest$ac_exeext'
21263 { (eval echo "$as_me:21263: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21265 ac_status=$?
21266 echo "$as_me:21266: \$? = $ac_status" >&5
21267 (exit $ac_status); }; }; then
21268 eval "$as_ac_var=yes"
21269else
21270 echo "$as_me: failed program was:" >&5
21271cat conftest.$ac_ext >&5
21272eval "$as_ac_var=no"
21273fi
21274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21275fi
21276echo "$as_me:21276: result: `eval echo '${'$as_ac_var'}'`" >&5
21277echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21278if test `eval echo '${'$as_ac_var'}'` = yes; then
21279 cat >>confdefs.h <<EOF
21280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 21281EOF
703e0a69 21282
af15babd
VZ
21283fi
21284done
21285
4f14bcd8 21286for ac_func in putenv setenv
10f2d63a 21287do
5c6fa7d2
RR
21288as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21289echo "$as_me:21289: checking for $ac_func" >&5
21290echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21291if eval "test \"\${$as_ac_var+set}\" = set"; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21293else
21294 cat >conftest.$ac_ext <<_ACEOF
21295#line 21295 "configure"
af15babd
VZ
21296#include "confdefs.h"
21297/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21298 which can conflict with char $ac_func (); below. */
af15babd
VZ
21299#include <assert.h>
21300/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21301#ifdef __cplusplus
21302extern "C"
21303#endif
af15babd 21304/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21305 builtin and then its argument prototype would still apply. */
21306char $ac_func ();
21307char (*f) ();
af15babd 21308
5c6fa7d2
RR
21309int
21310main ()
21311{
af15babd
VZ
21312/* The GNU C library defines this for functions which it implements
21313 to always fail with ENOSYS. Some functions are actually named
21314 something starting with __ and the normal name is an alias. */
21315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21316choke me
21317#else
5c6fa7d2 21318f = $ac_func;
af15babd
VZ
21319#endif
21320
5c6fa7d2
RR
21321 ;
21322 return 0;
21323}
21324_ACEOF
21325rm -f conftest.$ac_objext conftest$ac_exeext
21326if { (eval echo "$as_me:21326: \"$ac_link\"") >&5
21327 (eval $ac_link) 2>&5
21328 ac_status=$?
21329 echo "$as_me:21329: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -s conftest$ac_exeext'
21332 { (eval echo "$as_me:21332: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:21335: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 eval "$as_ac_var=yes"
21338else
21339 echo "$as_me: failed program was:" >&5
21340cat conftest.$ac_ext >&5
21341eval "$as_ac_var=no"
21342fi
21343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21344fi
21345echo "$as_me:21345: result: `eval echo '${'$as_ac_var'}'`" >&5
21346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21347if test `eval echo '${'$as_ac_var'}'` = yes; then
21348 cat >>confdefs.h <<EOF
21349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
af15babd 21350EOF
4f14bcd8 21351 break
af15babd 21352fi
af15babd
VZ
21353done
21354
4f14bcd8
GD
21355HAVE_SOME_SLEEP_FUNC=0
21356if test "$USE_BEOS" = 1; then
5c6fa7d2 21357 cat >>confdefs.h <<\EOF
4f14bcd8 21358#define HAVE_SLEEP 1
af15babd
VZ
21359EOF
21360
4f14bcd8 21361 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
21362fi
21363
4f14bcd8 21364if test "$USE_DARWIN" = 1; then
5c6fa7d2 21365 cat >>confdefs.h <<\EOF
4f14bcd8 21366#define HAVE_USLEEP 1
af15babd 21367EOF
10f2d63a 21368
4f14bcd8 21369 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
21370fi
21371
4f14bcd8
GD
21372if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
21373 POSIX4_LINK=
5c6fa7d2
RR
21374
21375for ac_func in nanosleep
4f14bcd8 21376do
5c6fa7d2
RR
21377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21378echo "$as_me:21378: checking for $ac_func" >&5
21379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21380if eval "test \"\${$as_ac_var+set}\" = set"; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21382else
21383 cat >conftest.$ac_ext <<_ACEOF
21384#line 21384 "configure"
10f2d63a 21385#include "confdefs.h"
4f14bcd8 21386/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21387 which can conflict with char $ac_func (); below. */
4f14bcd8 21388#include <assert.h>
10f2d63a 21389/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21390#ifdef __cplusplus
21391extern "C"
21392#endif
10f2d63a 21393/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21394 builtin and then its argument prototype would still apply. */
21395char $ac_func ();
21396char (*f) ();
4f14bcd8 21397
5c6fa7d2
RR
21398int
21399main ()
21400{
4f14bcd8
GD
21401/* The GNU C library defines this for functions which it implements
21402 to always fail with ENOSYS. Some functions are actually named
21403 something starting with __ and the normal name is an alias. */
21404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21405choke me
21406#else
5c6fa7d2 21407f = $ac_func;
4f14bcd8
GD
21408#endif
21409
5c6fa7d2
RR
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext conftest$ac_exeext
21415if { (eval echo "$as_me:21415: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>&5
21417 ac_status=$?
21418 echo "$as_me:21418: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -s conftest$ac_exeext'
21421 { (eval echo "$as_me:21421: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:21424: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 eval "$as_ac_var=yes"
21427else
21428 echo "$as_me: failed program was:" >&5
21429cat conftest.$ac_ext >&5
21430eval "$as_ac_var=no"
21431fi
21432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21433fi
21434echo "$as_me:21434: result: `eval echo '${'$as_ac_var'}'`" >&5
21435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21436if test `eval echo '${'$as_ac_var'}'` = yes; then
21437 cat >>confdefs.h <<EOF
21438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21439EOF
21440 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21441#define HAVE_NANOSLEEP 1
21442EOF
21443
10f2d63a 21444else
5c6fa7d2
RR
21445
21446 echo "$as_me:21446: checking for nanosleep in -lposix4" >&5
21447echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
21448if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 21450else
5c6fa7d2 21451 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21452LIBS="-lposix4 $LIBS"
5c6fa7d2
RR
21453cat >conftest.$ac_ext <<_ACEOF
21454#line 21454 "configure"
10f2d63a 21455#include "confdefs.h"
5c6fa7d2 21456
10f2d63a 21457/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21458#ifdef __cplusplus
21459extern "C"
21460#endif
10f2d63a 21461/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21462 builtin and then its argument prototype would still apply. */
21463char nanosleep ();
21464int
21465main ()
21466{
21467nanosleep ();
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472rm -f conftest.$ac_objext conftest$ac_exeext
21473if { (eval echo "$as_me:21473: \"$ac_link\"") >&5
21474 (eval $ac_link) 2>&5
21475 ac_status=$?
21476 echo "$as_me:21476: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -s conftest$ac_exeext'
21479 { (eval echo "$as_me:21479: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21481 ac_status=$?
21482 echo "$as_me:21482: \$? = $ac_status" >&5
21483 (exit $ac_status); }; }; then
21484 ac_cv_lib_posix4_nanosleep=yes
21485else
21486 echo "$as_me: failed program was:" >&5
21487cat conftest.$ac_ext >&5
21488ac_cv_lib_posix4_nanosleep=no
21489fi
21490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21491LIBS=$ac_check_lib_save_LIBS
21492fi
21493echo "$as_me:21493: result: $ac_cv_lib_posix4_nanosleep" >&5
21494echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
21495if test $ac_cv_lib_posix4_nanosleep = yes; then
21496
21497 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21498#define HAVE_NANOSLEEP 1
21499EOF
21500
3d63bc3a 21501 POSIX4_LINK=" -lposix4"
5c6fa7d2 21502
10f2d63a 21503else
10f2d63a 21504
5c6fa7d2 21505for ac_func in usleep
4f14bcd8 21506do
5c6fa7d2
RR
21507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21508echo "$as_me:21508: checking for $ac_func" >&5
21509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21510if eval "test \"\${$as_ac_var+set}\" = set"; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513 cat >conftest.$ac_ext <<_ACEOF
21514#line 21514 "configure"
10f2d63a 21515#include "confdefs.h"
4f14bcd8 21516/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21517 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
21518#include <assert.h>
21519/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21520#ifdef __cplusplus
21521extern "C"
21522#endif
4f14bcd8 21523/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21524 builtin and then its argument prototype would still apply. */
21525char $ac_func ();
21526char (*f) ();
4f14bcd8 21527
5c6fa7d2
RR
21528int
21529main ()
21530{
4f14bcd8
GD
21531/* The GNU C library defines this for functions which it implements
21532 to always fail with ENOSYS. Some functions are actually named
21533 something starting with __ and the normal name is an alias. */
21534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21535choke me
21536#else
5c6fa7d2 21537f = $ac_func;
4f14bcd8
GD
21538#endif
21539
5c6fa7d2
RR
21540 ;
21541 return 0;
21542}
21543_ACEOF
21544rm -f conftest.$ac_objext conftest$ac_exeext
21545if { (eval echo "$as_me:21545: \"$ac_link\"") >&5
21546 (eval $ac_link) 2>&5
21547 ac_status=$?
21548 echo "$as_me:21548: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
21550 { ac_try='test -s conftest$ac_exeext'
21551 { (eval echo "$as_me:21551: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:21554: \$? = $ac_status" >&5
21555 (exit $ac_status); }; }; then
21556 eval "$as_ac_var=yes"
21557else
21558 echo "$as_me: failed program was:" >&5
21559cat conftest.$ac_ext >&5
21560eval "$as_ac_var=no"
21561fi
21562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21563fi
21564echo "$as_me:21564: result: `eval echo '${'$as_ac_var'}'`" >&5
21565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21566if test `eval echo '${'$as_ac_var'}'` = yes; then
21567 cat >>confdefs.h <<EOF
21568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21569EOF
21570 cat >>confdefs.h <<\EOF
4f14bcd8
GD
21571#define HAVE_USLEEP 1
21572EOF
21573
698dcdb6 21574else
5c6fa7d2
RR
21575 { echo "$as_me:21575: WARNING: wxSleep() function will not work" >&5
21576echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
21577
10f2d63a 21578fi
4f14bcd8 21579done
10f2d63a 21580
6232543b 21581fi
10f2d63a 21582
1e487827 21583fi
4f14bcd8 21584done
703e0a69 21585
10f2d63a
VZ
21586fi
21587
4f14bcd8 21588for ac_func in uname gethostname
70846f0a 21589do
5c6fa7d2
RR
21590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21591echo "$as_me:21591: checking for $ac_func" >&5
21592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21593if eval "test \"\${$as_ac_var+set}\" = set"; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595else
21596 cat >conftest.$ac_ext <<_ACEOF
21597#line 21597 "configure"
70846f0a
VZ
21598#include "confdefs.h"
21599/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21600 which can conflict with char $ac_func (); below. */
70846f0a
VZ
21601#include <assert.h>
21602/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21603#ifdef __cplusplus
21604extern "C"
21605#endif
70846f0a 21606/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21607 builtin and then its argument prototype would still apply. */
21608char $ac_func ();
21609char (*f) ();
70846f0a 21610
5c6fa7d2
RR
21611int
21612main ()
21613{
70846f0a
VZ
21614/* The GNU C library defines this for functions which it implements
21615 to always fail with ENOSYS. Some functions are actually named
21616 something starting with __ and the normal name is an alias. */
21617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21618choke me
21619#else
5c6fa7d2 21620f = $ac_func;
70846f0a
VZ
21621#endif
21622
5c6fa7d2
RR
21623 ;
21624 return 0;
21625}
21626_ACEOF
21627rm -f conftest.$ac_objext conftest$ac_exeext
21628if { (eval echo "$as_me:21628: \"$ac_link\"") >&5
21629 (eval $ac_link) 2>&5
21630 ac_status=$?
21631 echo "$as_me:21631: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -s conftest$ac_exeext'
21634 { (eval echo "$as_me:21634: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:21637: \$? = $ac_status" >&5
21638 (exit $ac_status); }; }; then
21639 eval "$as_ac_var=yes"
21640else
21641 echo "$as_me: failed program was:" >&5
21642cat conftest.$ac_ext >&5
21643eval "$as_ac_var=no"
21644fi
21645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21646fi
21647echo "$as_me:21647: result: `eval echo '${'$as_ac_var'}'`" >&5
21648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21649if test `eval echo '${'$as_ac_var'}'` = yes; then
21650 cat >>confdefs.h <<EOF
21651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 21652EOF
4f14bcd8 21653 break
70846f0a
VZ
21654fi
21655done
21656
5c6fa7d2 21657ac_ext=cc
4f14bcd8 21658ac_cpp='$CXXCPP $CPPFLAGS'
5c6fa7d2
RR
21659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4f14bcd8
GD
21662
21663for ac_func in strtok_r
10f2d63a 21664do
5c6fa7d2
RR
21665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21666echo "$as_me:21666: checking for $ac_func" >&5
21667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21668if eval "test \"\${$as_ac_var+set}\" = set"; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670else
21671 cat >conftest.$ac_ext <<_ACEOF
21672#line 21672 "configure"
10f2d63a 21673#include "confdefs.h"
4f14bcd8 21674/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21675 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
21676#include <assert.h>
21677/* Override any gcc2 internal prototype to avoid an error. */
21678#ifdef __cplusplus
21679extern "C"
21680#endif
21681/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21682 builtin and then its argument prototype would still apply. */
21683char $ac_func ();
21684char (*f) ();
4f14bcd8 21685
5c6fa7d2
RR
21686int
21687main ()
21688{
4f14bcd8
GD
21689/* The GNU C library defines this for functions which it implements
21690 to always fail with ENOSYS. Some functions are actually named
21691 something starting with __ and the normal name is an alias. */
21692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21693choke me
21694#else
5c6fa7d2 21695f = $ac_func;
4f14bcd8
GD
21696#endif
21697
5c6fa7d2
RR
21698 ;
21699 return 0;
21700}
21701_ACEOF
21702rm -f conftest.$ac_objext conftest$ac_exeext
21703if { (eval echo "$as_me:21703: \"$ac_link\"") >&5
21704 (eval $ac_link) 2>&5
21705 ac_status=$?
21706 echo "$as_me:21706: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -s conftest$ac_exeext'
21709 { (eval echo "$as_me:21709: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21711 ac_status=$?
21712 echo "$as_me:21712: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 eval "$as_ac_var=yes"
21715else
21716 echo "$as_me: failed program was:" >&5
21717cat conftest.$ac_ext >&5
21718eval "$as_ac_var=no"
21719fi
21720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21721fi
21722echo "$as_me:21722: result: `eval echo '${'$as_ac_var'}'`" >&5
21723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21724if test `eval echo '${'$as_ac_var'}'` = yes; then
21725 cat >>confdefs.h <<EOF
21726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 21727EOF
4f14bcd8 21728
10f2d63a
VZ
21729fi
21730done
21731
4f14bcd8 21732ac_ext=c
4f14bcd8 21733ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
21734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21736ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 21737
52127426 21738INET_LINK=
5c6fa7d2 21739
4f14bcd8
GD
21740for ac_func in inet_addr
21741do
5c6fa7d2
RR
21742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21743echo "$as_me:21743: checking for $ac_func" >&5
21744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21745if eval "test \"\${$as_ac_var+set}\" = set"; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748 cat >conftest.$ac_ext <<_ACEOF
21749#line 21749 "configure"
10f2d63a 21750#include "confdefs.h"
4f14bcd8 21751/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21752 which can conflict with char $ac_func (); below. */
4f14bcd8 21753#include <assert.h>
10f2d63a 21754/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21755#ifdef __cplusplus
21756extern "C"
21757#endif
10f2d63a 21758/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21759 builtin and then its argument prototype would still apply. */
21760char $ac_func ();
21761char (*f) ();
4f14bcd8 21762
5c6fa7d2
RR
21763int
21764main ()
21765{
4f14bcd8
GD
21766/* The GNU C library defines this for functions which it implements
21767 to always fail with ENOSYS. Some functions are actually named
21768 something starting with __ and the normal name is an alias. */
21769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21770choke me
21771#else
5c6fa7d2 21772f = $ac_func;
4f14bcd8
GD
21773#endif
21774
5c6fa7d2
RR
21775 ;
21776 return 0;
21777}
21778_ACEOF
21779rm -f conftest.$ac_objext conftest$ac_exeext
21780if { (eval echo "$as_me:21780: \"$ac_link\"") >&5
21781 (eval $ac_link) 2>&5
21782 ac_status=$?
21783 echo "$as_me:21783: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try='test -s conftest$ac_exeext'
21786 { (eval echo "$as_me:21786: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:21789: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 eval "$as_ac_var=yes"
21792else
21793 echo "$as_me: failed program was:" >&5
21794cat conftest.$ac_ext >&5
21795eval "$as_ac_var=no"
21796fi
21797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21798fi
21799echo "$as_me:21799: result: `eval echo '${'$as_ac_var'}'`" >&5
21800echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21801if test `eval echo '${'$as_ac_var'}'` = yes; then
21802 cat >>confdefs.h <<EOF
21803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21804EOF
21805 cat >>confdefs.h <<\EOF
4f14bcd8 21806#define HAVE_INET_ADDR 1
10f2d63a
VZ
21807EOF
21808
21809else
5c6fa7d2
RR
21810
21811 echo "$as_me:21811: checking for inet_addr in -lnsl" >&5
21812echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
21813if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 21815else
5c6fa7d2 21816 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21817LIBS="-lnsl $LIBS"
5c6fa7d2
RR
21818cat >conftest.$ac_ext <<_ACEOF
21819#line 21819 "configure"
10f2d63a 21820#include "confdefs.h"
5c6fa7d2 21821
10f2d63a 21822/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21823#ifdef __cplusplus
21824extern "C"
21825#endif
10f2d63a 21826/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21827 builtin and then its argument prototype would still apply. */
21828char inet_addr ();
21829int
21830main ()
21831{
21832inet_addr ();
21833 ;
21834 return 0;
21835}
21836_ACEOF
21837rm -f conftest.$ac_objext conftest$ac_exeext
21838if { (eval echo "$as_me:21838: \"$ac_link\"") >&5
21839 (eval $ac_link) 2>&5
21840 ac_status=$?
21841 echo "$as_me:21841: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
21843 { ac_try='test -s conftest$ac_exeext'
21844 { (eval echo "$as_me:21844: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 echo "$as_me:21847: \$? = $ac_status" >&5
21848 (exit $ac_status); }; }; then
21849 ac_cv_lib_nsl_inet_addr=yes
21850else
21851 echo "$as_me: failed program was:" >&5
21852cat conftest.$ac_ext >&5
21853ac_cv_lib_nsl_inet_addr=no
21854fi
21855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21856LIBS=$ac_check_lib_save_LIBS
21857fi
21858echo "$as_me:21858: result: $ac_cv_lib_nsl_inet_addr" >&5
21859echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
21860if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 21861 INET_LINK="nsl"
10f2d63a 21862else
5c6fa7d2
RR
21863 echo "$as_me:21863: checking for inet_addr in -lresolv" >&5
21864echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
21865if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 21867else
5c6fa7d2 21868 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 21869LIBS="-lresolv $LIBS"
5c6fa7d2
RR
21870cat >conftest.$ac_ext <<_ACEOF
21871#line 21871 "configure"
7b4a847f 21872#include "confdefs.h"
52127426 21873
5c6fa7d2
RR
21874/* Override any gcc2 internal prototype to avoid an error. */
21875#ifdef __cplusplus
21876extern "C"
21877#endif
21878/* We use char because int might match the return type of a gcc2
21879 builtin and then its argument prototype would still apply. */
21880char inet_addr ();
21881int
21882main ()
21883{
21884inet_addr ();
21885 ;
21886 return 0;
21887}
21888_ACEOF
21889rm -f conftest.$ac_objext conftest$ac_exeext
21890if { (eval echo "$as_me:21890: \"$ac_link\"") >&5
21891 (eval $ac_link) 2>&5
21892 ac_status=$?
21893 echo "$as_me:21893: \$? = $ac_status" >&5
21894 (exit $ac_status); } &&
21895 { ac_try='test -s conftest$ac_exeext'
21896 { (eval echo "$as_me:21896: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:21899: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_cv_lib_resolv_inet_addr=yes
21902else
21903 echo "$as_me: failed program was:" >&5
21904cat conftest.$ac_ext >&5
21905ac_cv_lib_resolv_inet_addr=no
21906fi
21907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21908LIBS=$ac_check_lib_save_LIBS
21909fi
21910echo "$as_me:21910: result: $ac_cv_lib_resolv_inet_addr" >&5
21911echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
21912if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 21913 INET_LINK="resolv"
698dcdb6 21914else
5c6fa7d2
RR
21915 echo "$as_me:21915: checking for inet_addr in -lsocket" >&5
21916echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
21917if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 21919else
5c6fa7d2 21920 ac_check_lib_save_LIBS=$LIBS
3c011993 21921LIBS="-lsocket $LIBS"
5c6fa7d2
RR
21922cat >conftest.$ac_ext <<_ACEOF
21923#line 21923 "configure"
3c011993 21924#include "confdefs.h"
5c6fa7d2 21925
3c011993 21926/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21927#ifdef __cplusplus
21928extern "C"
21929#endif
3c011993 21930/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21931 builtin and then its argument prototype would still apply. */
21932char inet_addr ();
21933int
21934main ()
21935{
21936inet_addr ();
21937 ;
21938 return 0;
21939}
21940_ACEOF
21941rm -f conftest.$ac_objext conftest$ac_exeext
21942if { (eval echo "$as_me:21942: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21944 ac_status=$?
21945 echo "$as_me:21945: \$? = $ac_status" >&5
21946 (exit $ac_status); } &&
21947 { ac_try='test -s conftest$ac_exeext'
21948 { (eval echo "$as_me:21948: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:21951: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_cv_lib_socket_inet_addr=yes
21954else
21955 echo "$as_me: failed program was:" >&5
21956cat conftest.$ac_ext >&5
21957ac_cv_lib_socket_inet_addr=no
21958fi
21959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21960LIBS=$ac_check_lib_save_LIBS
21961fi
21962echo "$as_me:21962: result: $ac_cv_lib_socket_inet_addr" >&5
21963echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
21964if test $ac_cv_lib_socket_inet_addr = yes; then
52127426 21965 INET_LINK="socket"
4f14bcd8 21966
328a083c 21967fi
698dcdb6 21968
7b4a847f 21969fi
579d8138 21970
5c6fa7d2 21971fi
52127426 21972
698dcdb6 21973fi
4f14bcd8
GD
21974done
21975
4f14bcd8
GD
21976for ac_func in inet_aton
21977do
5c6fa7d2
RR
21978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21979echo "$as_me:21979: checking for $ac_func" >&5
21980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21981if eval "test \"\${$as_ac_var+set}\" = set"; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21983else
21984 cat >conftest.$ac_ext <<_ACEOF
21985#line 21985 "configure"
f6bcfd97 21986#include "confdefs.h"
4f14bcd8 21987/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 21988 which can conflict with char $ac_func (); below. */
4f14bcd8 21989#include <assert.h>
f6bcfd97 21990/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
21991#ifdef __cplusplus
21992extern "C"
21993#endif
f6bcfd97 21994/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
21995 builtin and then its argument prototype would still apply. */
21996char $ac_func ();
21997char (*f) ();
4f14bcd8 21998
5c6fa7d2
RR
21999int
22000main ()
22001{
4f14bcd8
GD
22002/* The GNU C library defines this for functions which it implements
22003 to always fail with ENOSYS. Some functions are actually named
22004 something starting with __ and the normal name is an alias. */
22005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22006choke me
22007#else
5c6fa7d2 22008f = $ac_func;
4f14bcd8
GD
22009#endif
22010
5c6fa7d2
RR
22011 ;
22012 return 0;
22013}
22014_ACEOF
22015rm -f conftest.$ac_objext conftest$ac_exeext
22016if { (eval echo "$as_me:22016: \"$ac_link\"") >&5
22017 (eval $ac_link) 2>&5
22018 ac_status=$?
22019 echo "$as_me:22019: \$? = $ac_status" >&5
22020 (exit $ac_status); } &&
22021 { ac_try='test -s conftest$ac_exeext'
22022 { (eval echo "$as_me:22022: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:22025: \$? = $ac_status" >&5
22026 (exit $ac_status); }; }; then
22027 eval "$as_ac_var=yes"
22028else
22029 echo "$as_me: failed program was:" >&5
22030cat conftest.$ac_ext >&5
22031eval "$as_ac_var=no"
22032fi
22033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22034fi
22035echo "$as_me:22035: result: `eval echo '${'$as_ac_var'}'`" >&5
22036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22037if test `eval echo '${'$as_ac_var'}'` = yes; then
22038 cat >>confdefs.h <<EOF
22039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22040EOF
22041 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22042#define HAVE_INET_ATON 1
22043EOF
22044
10f2d63a 22045else
5c6fa7d2
RR
22046
22047 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
22048echo "$as_me:22048: checking for inet_aton in -l$INET_LINK" >&5
22049echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
22050if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
1e487827 22052else
5c6fa7d2 22053 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 22054LIBS="-l$INET_LINK $LIBS"
5c6fa7d2
RR
22055cat >conftest.$ac_ext <<_ACEOF
22056#line 22056 "configure"
10f2d63a 22057#include "confdefs.h"
5c6fa7d2 22058
6232543b 22059/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22060#ifdef __cplusplus
22061extern "C"
22062#endif
6232543b 22063/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22064 builtin and then its argument prototype would still apply. */
22065char inet_aton ();
22066int
22067main ()
22068{
22069inet_aton ();
22070 ;
22071 return 0;
22072}
22073_ACEOF
22074rm -f conftest.$ac_objext conftest$ac_exeext
22075if { (eval echo "$as_me:22075: \"$ac_link\"") >&5
22076 (eval $ac_link) 2>&5
22077 ac_status=$?
22078 echo "$as_me:22078: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -s conftest$ac_exeext'
22081 { (eval echo "$as_me:22081: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22083 ac_status=$?
22084 echo "$as_me:22084: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 eval "$as_ac_Lib=yes"
22087else
22088 echo "$as_me: failed program was:" >&5
22089cat conftest.$ac_ext >&5
22090eval "$as_ac_Lib=no"
22091fi
22092rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22093LIBS=$ac_check_lib_save_LIBS
22094fi
22095echo "$as_me:22095: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22096echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22097if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22098 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22099#define HAVE_INET_ATON 1
22100EOF
22101
10f2d63a
VZ
22102fi
22103
10f2d63a 22104fi
4f14bcd8 22105done
10f2d63a 22106
4f14bcd8 22107if test "x$INET_LINK" != "x"; then
5c6fa7d2 22108 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22109#define HAVE_INET_ADDR 1
22110EOF
22111
3d63bc3a 22112 INET_LINK=" -l$INET_LINK"
6232543b 22113fi
10f2d63a 22114
1e487827 22115fi
703e0a69 22116
5c6fa7d2 22117cat >confcache <<\_ACEOF
4f14bcd8
GD
22118# This file is a shell script that caches the results of configure
22119# tests run on this system so they can be shared between configure
5c6fa7d2
RR
22120# scripts and configure runs, see configure's option --config-cache.
22121# It is not useful on other systems. If it contains results you don't
22122# want to keep, you may remove or edit it.
4f14bcd8 22123#
5c6fa7d2
RR
22124# config.status only pays attention to the cache file if you give it
22125# the --recheck option to rerun configure.
4f14bcd8 22126#
5c6fa7d2
RR
22127# `ac_cv_env_foo' variables (set or unset) will be overriden when
22128# loading this file, other *unset* `ac_cv_foo' will be assigned the
22129# following values.
22130
22131_ACEOF
22132
4f14bcd8
GD
22133# The following way of writing the cache mishandles newlines in values,
22134# but we know of no workaround that is simple, portable, and efficient.
22135# So, don't put newlines in cache variables' values.
22136# Ultrix sh set writes to stderr and can't be redirected directly,
22137# and sets the high bit in the cache file unless we assign to the vars.
5c6fa7d2
RR
22138{
22139 (set) 2>&1 |
22140 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22141 *ac_space=\ *)
22142 # `set' does not quote correctly, so add quotes (double-quote
22143 # substitution turns \\\\ into \\, and sed turns \\ into \).
22144 sed -n \
22145 "s/'/'\\\\''/g;
22146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22147 ;;
22148 *)
22149 # `set' quotes correctly as required by POSIX, so do not add quotes.
22150 sed -n \
22151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22152 ;;
22153 esac;
22154} |
22155 sed '
22156 t clear
22157 : clear
22158 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22159 t end
22160 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22161 : end' >>confcache
22162if cmp -s $cache_file confcache; then :; else
4f14bcd8 22163 if test -w $cache_file; then
5c6fa7d2
RR
22164 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22165 cat confcache >$cache_file
f6bcfd97 22166 else
4f14bcd8 22167 echo "not updating unwritable cache $cache_file"
f6bcfd97 22168 fi
4f14bcd8
GD
22169fi
22170rm -f confcache
f6bcfd97 22171
009fead0 22172CPP_MT_FLAG=
4f14bcd8
GD
22173if test "$TOOLKIT" != "MSW"; then
22174
7274f1c7 22175 THREADS_LINK=
009fead0 22176 THREADS_CFLAGS=
7274f1c7
RL
22177
22178 if test "$wxUSE_THREADS" = "yes" ; then
22179 if test "$wxUSE_WINE" = 1 ; then
5c6fa7d2
RR
22180 { echo "$as_me:22180: WARNING: Threads are not supported under WINE... disabled" >&5
22181echo "$as_me: WARNING: Threads are not supported under WINE... disabled" >&2;}
7274f1c7
RL
22182 wxUSE_THREADS="no"
22183 elif test "$USE_BEOS" = 1; then
5c6fa7d2
RR
22184 { echo "$as_me:22184: WARNING: BeOS threads are not yet supported... disabled" >&5
22185echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
22186 wxUSE_THREADS="no"
22187 fi
4f14bcd8 22188 fi
4f14bcd8 22189
7274f1c7 22190 if test "$wxUSE_THREADS" = "yes" ; then
5c6fa7d2 22191
009fead0
VZ
22192 THREAD_OPTS="-pthread"
22193 case "${host}" in
22194 *-*-solaris2* | *-*-sunos4* )
22195 if test "x$GCC" = "xyes"; then
126be6b4 22196 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
22197 else
22198 THREAD_OPTS="-mt $THREAD_OPTS"
22199 fi
22200 ;;
22201 *-*-freebsd*)
22202 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
22203 ;;
17234b26
MB
22204 *-*-darwin* | *-*-cygwin* )
22205 THREAD_OPTS=""
4101db81 22206 ;;
8f4a9a10 22207 *-*-aix*)
009fead0
VZ
22208 THREAD_OPTS="pthreads"
22209 ;;
009fead0 22210 esac
4f14bcd8 22211
02a1dfba 22212 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 22213
009fead0
VZ
22214 THREADS_OK=no
22215 for flag in $THREAD_OPTS; do
22216 case $flag in
22217 none)
5c6fa7d2
RR
22218 echo "$as_me:22218: checking whether pthreads work without any flags" >&5
22219echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 22220 ;;
698dcdb6 22221
009fead0 22222 -*)
5c6fa7d2
RR
22223 echo "$as_me:22223: checking whether pthreads work with $flag" >&5
22224echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
22225 THREADS_CFLAGS="$flag"
22226 ;;
698dcdb6 22227
009fead0 22228 *)
5c6fa7d2
RR
22229 echo "$as_me:22229: checking for the pthreads library -l$flag" >&5
22230echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
22231 THREADS_LINK="-l$flag"
22232 ;;
22233 esac
10f2d63a 22234
009fead0
VZ
22235 save_LIBS="$LIBS"
22236 save_CFLAGS="$CFLAGS"
22237 LIBS="$THREADS_LINK $LIBS"
04727afd 22238 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 22239
5c6fa7d2
RR
22240 cat >conftest.$ac_ext <<_ACEOF
22241#line 22241 "configure"
009fead0
VZ
22242#include "confdefs.h"
22243#include <pthread.h>
5c6fa7d2
RR
22244int
22245main ()
22246{
009fead0 22247pthread_create(0,0,0,0);
5c6fa7d2
RR
22248 ;
22249 return 0;
22250}
22251_ACEOF
22252rm -f conftest.$ac_objext conftest$ac_exeext
22253if { (eval echo "$as_me:22253: \"$ac_link\"") >&5
22254 (eval $ac_link) 2>&5
22255 ac_status=$?
22256 echo "$as_me:22256: \$? = $ac_status" >&5
22257 (exit $ac_status); } &&
22258 { ac_try='test -s conftest$ac_exeext'
22259 { (eval echo "$as_me:22259: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22261 ac_status=$?
22262 echo "$as_me:22262: \$? = $ac_status" >&5
22263 (exit $ac_status); }; }; then
009fead0 22264 THREADS_OK=yes
10f2d63a 22265else
5c6fa7d2
RR
22266 echo "$as_me: failed program was:" >&5
22267cat conftest.$ac_ext >&5
6232543b 22268fi
5c6fa7d2 22269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 22270
009fead0
VZ
22271 LIBS="$save_LIBS"
22272 CFLAGS="$save_CFLAGS"
d9b9876f 22273
5c6fa7d2
RR
22274 echo "$as_me:22274: result: $THREADS_OK" >&5
22275echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
22276 if test "x$THREADS_OK" = "xyes"; then
22277 break;
22278 fi
d9b9876f 22279
009fead0
VZ
22280 THREADS_LINK=""
22281 THREADS_CFLAGS=""
22282 done
4f14bcd8 22283
009fead0
VZ
22284 if test "x$THREADS_OK" != "xyes"; then
22285 wxUSE_THREADS=no
5c6fa7d2
RR
22286 { echo "$as_me:22286: WARNING: No thread support on this system... disabled" >&5
22287echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 22288 else
fe5a9cab
VZ
22289 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
22290
5c6fa7d2
RR
22291 echo "$as_me:22291: checking if more special flags are required for pthreads" >&5
22292echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
22293 flag=no
22294 case "${host}" in
22295 *-aix* | *-freebsd*)
22296 flag="-D_THREAD_SAFE"
22297 ;;
22298 *solaris* | alpha*-osf*)
22299 flag="-D_REENTRANT"
22300 ;;
22301 esac
5c6fa7d2
RR
22302 echo "$as_me:22302: result: ${flag}" >&5
22303echo "${ECHO_T}${flag}" >&6
009fead0 22304 if test "x$flag" != xno; then
04727afd 22305 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
22306 fi
22307
009fead0 22308 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 22309 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
22310 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
22311 fi
22312 fi
4f14bcd8 22313 fi
4f14bcd8 22314
7274f1c7 22315 if test "$wxUSE_THREADS" = "yes" ; then
5c6fa7d2
RR
22316
22317for ac_func in thr_setconcurrency
4f14bcd8 22318do
5c6fa7d2
RR
22319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320echo "$as_me:22320: checking for $ac_func" >&5
22321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22322if eval "test \"\${$as_ac_var+set}\" = set"; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324else
22325 cat >conftest.$ac_ext <<_ACEOF
22326#line 22326 "configure"
d9b9876f 22327#include "confdefs.h"
4f14bcd8 22328/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 22329 which can conflict with char $ac_func (); below. */
4f14bcd8
GD
22330#include <assert.h>
22331/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22332#ifdef __cplusplus
22333extern "C"
22334#endif
4f14bcd8 22335/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22336 builtin and then its argument prototype would still apply. */
22337char $ac_func ();
22338char (*f) ();
d9b9876f 22339
5c6fa7d2
RR
22340int
22341main ()
22342{
4f14bcd8
GD
22343/* The GNU C library defines this for functions which it implements
22344 to always fail with ENOSYS. Some functions are actually named
22345 something starting with __ and the normal name is an alias. */
22346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22347choke me
22348#else
5c6fa7d2 22349f = $ac_func;
4f14bcd8
GD
22350#endif
22351
5c6fa7d2
RR
22352 ;
22353 return 0;
22354}
22355_ACEOF
22356rm -f conftest.$ac_objext conftest$ac_exeext
22357if { (eval echo "$as_me:22357: \"$ac_link\"") >&5
22358 (eval $ac_link) 2>&5
22359 ac_status=$?
22360 echo "$as_me:22360: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
22362 { ac_try='test -s conftest$ac_exeext'
22363 { (eval echo "$as_me:22363: \"$ac_try\"") >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 echo "$as_me:22366: \$? = $ac_status" >&5
22367 (exit $ac_status); }; }; then
22368 eval "$as_ac_var=yes"
22369else
22370 echo "$as_me: failed program was:" >&5
22371cat conftest.$ac_ext >&5
22372eval "$as_ac_var=no"
22373fi
22374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22375fi
22376echo "$as_me:22376: result: `eval echo '${'$as_ac_var'}'`" >&5
22377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22378if test `eval echo '${'$as_ac_var'}'` = yes; then
22379 cat >>confdefs.h <<EOF
22380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
698dcdb6 22381EOF
698dcdb6 22382
10f2d63a 22383fi
4f14bcd8 22384done
10f2d63a 22385
5c6fa7d2 22386for ac_header in sched.h
4f14bcd8 22387do
5c6fa7d2
RR
22388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22389echo "$as_me:22389: checking for $ac_header" >&5
22390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22391if eval "test \"\${$as_ac_Header+set}\" = set"; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22393else
22394 cat >conftest.$ac_ext <<_ACEOF
22395#line 22395 "configure"
4f14bcd8 22396#include "confdefs.h"
5c6fa7d2
RR
22397#include <$ac_header>
22398_ACEOF
22399if { (eval echo "$as_me:22399: \"$ac_cpp conftest.$ac_ext\"") >&5
22400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22401 ac_status=$?
22402 egrep -v '^ *\+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 echo "$as_me:22405: \$? = $ac_status" >&5
22406 (exit $ac_status); } >/dev/null; then
22407 if test -s conftest.err; then
22408 ac_cpp_err=$ac_c_preproc_warn_flag
22409 else
22410 ac_cpp_err=
22411 fi
4f14bcd8 22412else
5c6fa7d2
RR
22413 ac_cpp_err=yes
22414fi
22415if test -z "$ac_cpp_err"; then
22416 eval "$as_ac_Header=yes"
22417else
22418 echo "$as_me: failed program was:" >&5
4f14bcd8 22419 cat conftest.$ac_ext >&5
5c6fa7d2 22420 eval "$as_ac_Header=no"
13111b2a 22421fi
5c6fa7d2 22422rm -f conftest.err conftest.$ac_ext
10f2d63a 22423fi
5c6fa7d2
RR
22424echo "$as_me:22424: result: `eval echo '${'$as_ac_Header'}'`" >&5
22425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22426if test `eval echo '${'$as_ac_Header'}'` = yes; then
22427 cat >>confdefs.h <<EOF
22428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
f6bcfd97 22429EOF
5c6fa7d2 22430
f6bcfd97 22431fi
4f14bcd8 22432done
f6bcfd97 22433
009fead0 22434 if test "$ac_cv_header_sched_h" = "yes"; then
5c6fa7d2
RR
22435 echo "$as_me:22435: checking for sched_yield" >&5
22436echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
22437if test "${ac_cv_func_sched_yield+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 22439else
5c6fa7d2
RR
22440 cat >conftest.$ac_ext <<_ACEOF
22441#line 22441 "configure"
4f14bcd8 22442#include "confdefs.h"
009fead0 22443/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 22444 which can conflict with char sched_yield (); below. */
009fead0 22445#include <assert.h>
4f14bcd8 22446/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22447#ifdef __cplusplus
22448extern "C"
22449#endif
4f14bcd8 22450/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22451 builtin and then its argument prototype would still apply. */
22452char sched_yield ();
22453char (*f) ();
009fead0 22454
5c6fa7d2
RR
22455int
22456main ()
22457{
009fead0
VZ
22458/* The GNU C library defines this for functions which it implements
22459 to always fail with ENOSYS. Some functions are actually named
22460 something starting with __ and the normal name is an alias. */
22461#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
22462choke me
22463#else
5c6fa7d2 22464f = sched_yield;
009fead0
VZ
22465#endif
22466
5c6fa7d2
RR
22467 ;
22468 return 0;
22469}
22470_ACEOF
22471rm -f conftest.$ac_objext conftest$ac_exeext
22472if { (eval echo "$as_me:22472: \"$ac_link\"") >&5
22473 (eval $ac_link) 2>&5
22474 ac_status=$?
22475 echo "$as_me:22475: \$? = $ac_status" >&5
22476 (exit $ac_status); } &&
22477 { ac_try='test -s conftest$ac_exeext'
22478 { (eval echo "$as_me:22478: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 echo "$as_me:22481: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_cv_func_sched_yield=yes
22484else
22485 echo "$as_me: failed program was:" >&5
22486cat conftest.$ac_ext >&5
22487ac_cv_func_sched_yield=no
22488fi
22489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22490fi
22491echo "$as_me:22491: result: $ac_cv_func_sched_yield" >&5
22492echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
22493if test $ac_cv_func_sched_yield = yes; then
22494 cat >>confdefs.h <<\EOF
4f14bcd8 22495#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
22496EOF
22497
4f14bcd8 22498else
009fead0 22499
5c6fa7d2
RR
22500 echo "$as_me:22500: checking for sched_yield in -lposix4" >&5
22501echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
22502if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 22504else
5c6fa7d2 22505 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 22506LIBS="-lposix4 $LIBS"
5c6fa7d2
RR
22507cat >conftest.$ac_ext <<_ACEOF
22508#line 22508 "configure"
4f14bcd8 22509#include "confdefs.h"
5c6fa7d2 22510
4f14bcd8 22511/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22512#ifdef __cplusplus
22513extern "C"
22514#endif
4f14bcd8 22515/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22516 builtin and then its argument prototype would still apply. */
22517char sched_yield ();
22518int
22519main ()
22520{
22521sched_yield ();
22522 ;
22523 return 0;
22524}
22525_ACEOF
22526rm -f conftest.$ac_objext conftest$ac_exeext
22527if { (eval echo "$as_me:22527: \"$ac_link\"") >&5
22528 (eval $ac_link) 2>&5
22529 ac_status=$?
22530 echo "$as_me:22530: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -s conftest$ac_exeext'
22533 { (eval echo "$as_me:22533: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:22536: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_lib_posix4_sched_yield=yes
22539else
22540 echo "$as_me: failed program was:" >&5
22541cat conftest.$ac_ext >&5
22542ac_cv_lib_posix4_sched_yield=no
22543fi
22544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22545LIBS=$ac_check_lib_save_LIBS
22546fi
22547echo "$as_me:22547: result: $ac_cv_lib_posix4_sched_yield" >&5
22548echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
22549if test $ac_cv_lib_posix4_sched_yield = yes; then
22550 cat >>confdefs.h <<\EOF
4f14bcd8 22551#define HAVE_SCHED_YIELD 1
54276ccf 22552EOF
3d63bc3a 22553 POSIX4_LINK=" -lposix4"
4f14bcd8 22554else
5c6fa7d2
RR
22555 { echo "$as_me:22555: WARNING: wxThread::Yield will not work properly" >&5
22556echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
22557
54276ccf
VZ
22558fi
22559
4f14bcd8 22560fi
698dcdb6 22561
009fead0 22562 fi
10f2d63a 22563
7274f1c7 22564 HAVE_PRIOR_FUNCS=0
5c6fa7d2
RR
22565 echo "$as_me:22565: checking for pthread_attr_getschedpolicy" >&5
22566echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
22567if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 22569else
5c6fa7d2
RR
22570 cat >conftest.$ac_ext <<_ACEOF
22571#line 22571 "configure"
422107f9 22572#include "confdefs.h"
009fead0 22573/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 22574 which can conflict with char pthread_attr_getschedpolicy (); below. */
009fead0 22575#include <assert.h>
4f14bcd8 22576/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22577#ifdef __cplusplus
22578extern "C"
22579#endif
4f14bcd8 22580/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22581 builtin and then its argument prototype would still apply. */
22582char pthread_attr_getschedpolicy ();
22583char (*f) ();
009fead0 22584
5c6fa7d2
RR
22585int
22586main ()
22587{
009fead0
VZ
22588/* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
22592choke me
22593#else
5c6fa7d2 22594f = pthread_attr_getschedpolicy;
009fead0
VZ
22595#endif
22596
5c6fa7d2
RR
22597 ;
22598 return 0;
22599}
22600_ACEOF
22601rm -f conftest.$ac_objext conftest$ac_exeext
22602if { (eval echo "$as_me:22602: \"$ac_link\"") >&5
22603 (eval $ac_link) 2>&5
22604 ac_status=$?
22605 echo "$as_me:22605: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
22607 { ac_try='test -s conftest$ac_exeext'
22608 { (eval echo "$as_me:22608: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:22611: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613 ac_cv_func_pthread_attr_getschedpolicy=yes
22614else
22615 echo "$as_me: failed program was:" >&5
22616cat conftest.$ac_ext >&5
22617ac_cv_func_pthread_attr_getschedpolicy=no
22618fi
22619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22620fi
22621echo "$as_me:22621: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
22622echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
22623if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
22624 echo "$as_me:22624: checking for pthread_attr_setschedparam" >&5
22625echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
22626if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
22627 echo $ECHO_N "(cached) $ECHO_C" >&6
22628else
22629 cat >conftest.$ac_ext <<_ACEOF
22630#line 22630 "configure"
52127426 22631#include "confdefs.h"
5c6fa7d2
RR
22632/* System header to define __stub macros and hopefully few prototypes
22633else
22634 which can conflict with char pthread_attr_setschedparam (); below. */
009fead0 22635#include <assert.h>
422107f9 22636/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22637#ifdef __cplusplus
22638extern "C"
22639#endif
422107f9 22640/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22641 builtin and then its argument prototype would still apply. */
22642char pthread_attr_setschedparam ();
22643char (*f) ();
009fead0 22644
5c6fa7d2
RR
22645int
22646main ()
22647{
009fead0
VZ
22648/* The GNU C library defines this for functions which it implements
22649 to always fail with ENOSYS. Some functions are actually named
22650 something starting with __ and the normal name is an alias. */
22651#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
22652choke me
22653#else
5c6fa7d2 22654f = pthread_attr_setschedparam;
009fead0
VZ
22655#endif
22656
5c6fa7d2
RR
22657 ;
22658 return 0;
22659}
22660_ACEOF
22661rm -f conftest.$ac_objext conftest$ac_exeext
22662if { (eval echo "$as_me:22662: \"$ac_link\"") >&5
22663 (eval $ac_link) 2>&5
22664 ac_status=$?
22665 echo "$as_me:22665: \$? = $ac_status" >&5
22666 (exit $ac_status); } &&
22667 { ac_try='test -s conftest$ac_exeext'
22668 { (eval echo "$as_me:22668: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:22671: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22673 ac_cv_func_pthread_attr_setschedparam=yes
22674else
22675 echo "$as_me: failed program was:" >&5
22676cat conftest.$ac_ext >&5
22677ac_cv_func_pthread_attr_setschedparam=no
22678fi
22679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22680fi
22681echo "$as_me:22681: result: $ac_cv_func_pthread_attr_setschedparam" >&5
22682echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
22683if test $ac_cv_func_pthread_attr_setschedparam = yes; then
22684 echo "$as_me:22684: checking for sched_get_priority_max" >&5
22685echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
22686if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
22687 echo $ECHO_N "(cached) $ECHO_C" >&6
22688else
22689 cat >conftest.$ac_ext <<_ACEOF
22690#line 22690 "configure"
422107f9 22691#include "confdefs.h"
009fead0
VZ
22692/* System header to define __stub macros and hopefully few prototypes
22693else
5c6fa7d2 22694 which can conflict with char sched_get_priority_max (); below. */
009fead0 22695#include <assert.h>
4f14bcd8 22696/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22697#ifdef __cplusplus
22698extern "C"
22699#endif
4f14bcd8 22700/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22701 builtin and then its argument prototype would still apply. */
22702char sched_get_priority_max ();
22703char (*f) ();
009fead0 22704
5c6fa7d2
RR
22705int
22706main ()
22707{
009fead0
VZ
22708/* The GNU C library defines this for functions which it implements
22709 to always fail with ENOSYS. Some functions are actually named
22710 something starting with __ and the normal name is an alias. */
22711#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
22712choke me
22713#else
5c6fa7d2 22714f = sched_get_priority_max;
009fead0
VZ
22715#endif
22716
5c6fa7d2
RR
22717 ;
22718 return 0;
22719}
22720_ACEOF
22721rm -f conftest.$ac_objext conftest$ac_exeext
22722if { (eval echo "$as_me:22722: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>&5
22724 ac_status=$?
22725 echo "$as_me:22725: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
22727 { ac_try='test -s conftest$ac_exeext'
22728 { (eval echo "$as_me:22728: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 echo "$as_me:22731: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }; then
22733 ac_cv_func_sched_get_priority_max=yes
22734else
22735 echo "$as_me: failed program was:" >&5
22736cat conftest.$ac_ext >&5
22737ac_cv_func_sched_get_priority_max=no
22738fi
22739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22740fi
22741echo "$as_me:22741: result: $ac_cv_func_sched_get_priority_max" >&5
22742echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
22743if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
22744 HAVE_PRIOR_FUNCS=1
22745else
5c6fa7d2
RR
22746 echo "$as_me:22746: checking for sched_get_priority_max in -lposix4" >&5
22747echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
22748if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 22750else
5c6fa7d2 22751 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 22752LIBS="-lposix4 $LIBS"
5c6fa7d2
RR
22753cat >conftest.$ac_ext <<_ACEOF
22754#line 22754 "configure"
422107f9 22755#include "confdefs.h"
5c6fa7d2 22756
422107f9 22757/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22758#ifdef __cplusplus
22759extern "C"
22760#endif
422107f9 22761/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22762 builtin and then its argument prototype would still apply. */
22763char sched_get_priority_max ();
22764int
22765main ()
22766{
22767sched_get_priority_max ();
22768 ;
22769 return 0;
22770}
22771_ACEOF
22772rm -f conftest.$ac_objext conftest$ac_exeext
22773if { (eval echo "$as_me:22773: \"$ac_link\"") >&5
22774 (eval $ac_link) 2>&5
22775 ac_status=$?
22776 echo "$as_me:22776: \$? = $ac_status" >&5
22777 (exit $ac_status); } &&
22778 { ac_try='test -s conftest$ac_exeext'
22779 { (eval echo "$as_me:22779: \"$ac_try\"") >&5
22780 (eval $ac_try) 2>&5
22781 ac_status=$?
22782 echo "$as_me:22782: \$? = $ac_status" >&5
22783 (exit $ac_status); }; }; then
22784 ac_cv_lib_posix4_sched_get_priority_max=yes
22785else
22786 echo "$as_me: failed program was:" >&5
22787cat conftest.$ac_ext >&5
22788ac_cv_lib_posix4_sched_get_priority_max=no
22789fi
22790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22791LIBS=$ac_check_lib_save_LIBS
22792fi
22793echo "$as_me:22793: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
22794echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
22795if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 22796
7274f1c7
RL
22797 HAVE_PRIOR_FUNCS=1
22798 POSIX4_LINK=" -lposix4"
10f2d63a 22799
4f14bcd8 22800fi
463abc64 22801
328a083c 22802fi
463abc64 22803
7b4a847f 22804fi
579d8138 22805
5c6fa7d2 22806fi
52127426 22807
7274f1c7 22808 if test "$HAVE_PRIOR_FUNCS" = 1; then
5c6fa7d2 22809 cat >>confdefs.h <<\EOF
4f14bcd8 22810#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 22811EOF
463abc64 22812
7274f1c7 22813 else
5c6fa7d2
RR
22814 { echo "$as_me:22814: WARNING: Setting thread priority will not work" >&5
22815echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 22816 fi
463abc64 22817
5c6fa7d2
RR
22818 echo "$as_me:22818: checking for pthread_cancel" >&5
22819echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
22820if test "${ac_cv_func_pthread_cancel+set}" = set; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 22822else
5c6fa7d2
RR
22823 cat >conftest.$ac_ext <<_ACEOF
22824#line 22824 "configure"
422107f9 22825#include "confdefs.h"
009fead0 22826/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 22827 which can conflict with char pthread_cancel (); below. */
009fead0 22828#include <assert.h>
422107f9 22829/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
22830#ifdef __cplusplus
22831extern "C"
22832#endif
422107f9 22833/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
22834 builtin and then its argument prototype would still apply. */
22835char pthread_cancel ();
22836char (*f) ();
009fead0 22837
5c6fa7d2
RR
22838int
22839main ()
22840{
009fead0
VZ
22841/* The GNU C library defines this for functions which it implements
22842 to always fail with ENOSYS. Some functions are actually named
22843 something starting with __ and the normal name is an alias. */
22844#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
22845choke me
22846#else
5c6fa7d2 22847f = pthread_cancel;
009fead0
VZ
22848#endif
22849
5c6fa7d2
RR
22850 ;
22851 return 0;
22852}
22853_ACEOF
22854rm -f conftest.$ac_objext conftest$ac_exeext
22855if { (eval echo "$as_me:22855: \"$ac_link\"") >&5
22856 (eval $ac_link) 2>&5
22857 ac_status=$?
22858 echo "$as_me:22858: \$? = $ac_status" >&5
22859 (exit $ac_status); } &&
22860 { ac_try='test -s conftest$ac_exeext'
22861 { (eval echo "$as_me:22861: \"$ac_try\"") >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 echo "$as_me:22864: \$? = $ac_status" >&5
22865 (exit $ac_status); }; }; then
22866 ac_cv_func_pthread_cancel=yes
22867else
22868 echo "$as_me: failed program was:" >&5
22869cat conftest.$ac_ext >&5
22870ac_cv_func_pthread_cancel=no
22871fi
22872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22873fi
22874echo "$as_me:22874: result: $ac_cv_func_pthread_cancel" >&5
22875echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
22876if test $ac_cv_func_pthread_cancel = yes; then
22877 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22878#define HAVE_PTHREAD_CANCEL 1
22879EOF
22880
698dcdb6 22881else
5c6fa7d2
RR
22882 { echo "$as_me:22882: WARNING: wxThread::Kill() will not work properly" >&5
22883echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
22884fi
22885
5c6fa7d2
RR
22886 echo "$as_me:22886: checking for pthread_cleanup_push/pop" >&5
22887echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
22888if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
22889 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 22890else
5c6fa7d2
RR
22891
22892 cat >conftest.$ac_ext <<_ACEOF
22893#line 22893 "configure"
4f14bcd8
GD
22894#include "confdefs.h"
22895#include <pthread.h>
5c6fa7d2
RR
22896int
22897main ()
22898{
4f14bcd8 22899
7274f1c7
RL
22900 pthread_cleanup_push(NULL, NULL);
22901 pthread_cleanup_pop(0);
5c6fa7d2
RR
22902
22903 ;
22904 return 0;
22905}
22906_ACEOF
22907rm -f conftest.$ac_objext
22908if { (eval echo "$as_me:22908: \"$ac_compile\"") >&5
22909 (eval $ac_compile) 2>&5
22910 ac_status=$?
22911 echo "$as_me:22911: \$? = $ac_status" >&5
22912 (exit $ac_status); } &&
22913 { ac_try='test -s conftest.$ac_objext'
22914 { (eval echo "$as_me:22914: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22916 ac_status=$?
22917 echo "$as_me:22917: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919
7274f1c7 22920 wx_cv_func_pthread_cleanup_push=yes
5c6fa7d2 22921
4f14bcd8 22922else
5c6fa7d2
RR
22923 echo "$as_me: failed program was:" >&5
22924cat conftest.$ac_ext >&5
22925
7274f1c7 22926 wx_cv_func_pthread_cleanup_push=no
5c6fa7d2 22927
7b4a847f 22928fi
5c6fa7d2 22929rm -f conftest.$ac_objext conftest.$ac_ext
52127426 22930
5c6fa7d2
RR
22931fi
22932echo "$as_me:22932: result: $wx_cv_func_pthread_cleanup_push" >&5
22933echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 22934
7274f1c7 22935 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
5c6fa7d2 22936 cat >>confdefs.h <<\EOF
4f14bcd8 22937#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
22938EOF
22939
7274f1c7 22940 fi
4f14bcd8 22941
5c6fa7d2
RR
22942 echo "$as_me:22942: checking for pthread_mutexattr_t" >&5
22943echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
22944if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 22946else
5c6fa7d2
RR
22947
22948 cat >conftest.$ac_ext <<_ACEOF
22949#line 22949 "configure"
0dcf9893 22950#include "confdefs.h"
4f14bcd8 22951#include <pthread.h>
5c6fa7d2
RR
22952int
22953main ()
22954{
4f14bcd8 22955
7274f1c7
RL
22956 pthread_mutexattr_t attr;
22957 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
5c6fa7d2
RR
22958
22959 ;
22960 return 0;
22961}
22962_ACEOF
22963rm -f conftest.$ac_objext
22964if { (eval echo "$as_me:22964: \"$ac_compile\"") >&5
22965 (eval $ac_compile) 2>&5
22966 ac_status=$?
22967 echo "$as_me:22967: \$? = $ac_status" >&5
22968 (exit $ac_status); } &&
22969 { ac_try='test -s conftest.$ac_objext'
22970 { (eval echo "$as_me:22970: \"$ac_try\"") >&5
22971 (eval $ac_try) 2>&5
22972 ac_status=$?
22973 echo "$as_me:22973: \$? = $ac_status" >&5
22974 (exit $ac_status); }; }; then
22975
7274f1c7 22976 wx_cv_type_pthread_mutexattr_t=yes
5c6fa7d2 22977
3fed1840 22978else
5c6fa7d2
RR
22979 echo "$as_me: failed program was:" >&5
22980cat conftest.$ac_ext >&5
22981
7274f1c7 22982 wx_cv_type_pthread_mutexattr_t=no
5c6fa7d2 22983
7b4a847f 22984fi
5c6fa7d2 22985rm -f conftest.$ac_objext conftest.$ac_ext
52127426 22986
5c6fa7d2
RR
22987fi
22988echo "$as_me:22988: result: $wx_cv_type_pthread_mutexattr_t" >&5
22989echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 22990
7274f1c7 22991 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
5c6fa7d2 22992 cat >>confdefs.h <<\EOF
4f14bcd8
GD
22993#define HAVE_PTHREAD_MUTEXATTR_T 1
22994EOF
22995
7274f1c7 22996 else
5c6fa7d2
RR
22997 echo "$as_me:22997: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
22998echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
22999if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23001else
23002
23003 cat >conftest.$ac_ext <<_ACEOF
23004#line 23004 "configure"
3fed1840 23005#include "confdefs.h"
4f14bcd8 23006#include <pthread.h>
5c6fa7d2
RR
23007int
23008main ()
23009{
4f14bcd8 23010
7274f1c7 23011 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
5c6fa7d2
RR
23012
23013 ;
23014 return 0;
23015}
23016_ACEOF
23017rm -f conftest.$ac_objext
23018if { (eval echo "$as_me:23018: \"$ac_compile\"") >&5
23019 (eval $ac_compile) 2>&5
23020 ac_status=$?
23021 echo "$as_me:23021: \$? = $ac_status" >&5
23022 (exit $ac_status); } &&
23023 { ac_try='test -s conftest.$ac_objext'
23024 { (eval echo "$as_me:23024: \"$ac_try\"") >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 echo "$as_me:23027: \$? = $ac_status" >&5
23028 (exit $ac_status); }; }; then
23029
7274f1c7 23030 wx_cv_type_pthread_rec_mutex_init=yes
5c6fa7d2 23031
698dcdb6 23032else
5c6fa7d2
RR
23033 echo "$as_me: failed program was:" >&5
23034cat conftest.$ac_ext >&5
23035
7274f1c7 23036 wx_cv_type_pthread_rec_mutex_init=no
5c6fa7d2 23037
7b4a847f 23038fi
5c6fa7d2 23039rm -f conftest.$ac_objext conftest.$ac_ext
52127426 23040
5c6fa7d2
RR
23041fi
23042echo "$as_me:23042: result: $wx_cv_type_pthread_rec_mutex_init" >&5
23043echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 23044 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
5c6fa7d2 23045 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23046#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
23047EOF
3fed1840 23048
7274f1c7 23049 else
5c6fa7d2
RR
23050 { echo "$as_me:23050: WARNING: wxMutex won't be recursive on this platform" >&5
23051echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
23052 fi
23053 fi
7274f1c7 23054 fi
3fed1840 23055
4f14bcd8
GD
23056fi
23057
23058if test "$wxUSE_THREADS" = "yes"; then
5c6fa7d2 23059 cat >>confdefs.h <<\EOF
4f14bcd8 23060#define wxUSE_THREADS 1
7b6058cd
GD
23061EOF
23062
4f14bcd8 23063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 23064else
4f14bcd8 23065 if test "$ac_cv_func_strtok_r" = "yes"; then
5c6fa7d2
RR
23066 echo "$as_me:23066: checking if -D_REENTRANT is needed" >&5
23067echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
23068 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
23069 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
5c6fa7d2
RR
23070 echo "$as_me:23070: result: yes" >&5
23071echo "${ECHO_T}yes" >&6
4f14bcd8 23072 else
5c6fa7d2
RR
23073 echo "$as_me:23073: result: no" >&5
23074echo "${ECHO_T}no" >&6
4f14bcd8
GD
23075 fi
23076 fi
23077fi
23078
23079if test "$WXGTK20" = 1 ; then
5c6fa7d2 23080 cat >>confdefs.h <<EOF
4f14bcd8 23081#define __WXGTK20__ $WXGTK20
698dcdb6 23082EOF
4f14bcd8
GD
23083
23084 WXGTK12=1
10f2d63a 23085fi
4f14bcd8
GD
23086
23087if test "$WXGTK12" = 1 ; then
5c6fa7d2 23088 cat >>confdefs.h <<EOF
4f14bcd8
GD
23089#define __WXGTK12__ $WXGTK12
23090EOF
23091
10f2d63a 23092fi
698dcdb6 23093
4f14bcd8 23094if test "$WXGTK127" = 1 ; then
5c6fa7d2 23095 cat >>confdefs.h <<EOF
4f14bcd8 23096#define __WXGTK127__ $WXGTK127
698dcdb6 23097EOF
4f14bcd8 23098
698dcdb6 23099fi
10f2d63a 23100
4f14bcd8
GD
23101WXDEBUG=
23102
23103if test "$wxUSE_DEBUG_INFO" = "yes" ; then
23104 WXDEBUG="-g"
23105 wxUSE_OPTIMISE=no
698dcdb6 23106fi
4f14bcd8
GD
23107
23108if test "$wxUSE_DEBUG_GDB" = "yes" ; then
23109 wxUSE_DEBUG_INFO=yes
23110 WXDEBUG="-ggdb"
10f2d63a
VZ
23111fi
23112
4f14bcd8 23113if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
5c6fa7d2 23114 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23115#define WXDEBUG 1
23116EOF
23117
23118 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 23119else
4f14bcd8
GD
23120 if test "$wxUSE_GTK" = 1 ; then
23121 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
23122 fi
23123fi
23124
23125if test "$wxUSE_MEM_TRACING" = "yes" ; then
5c6fa7d2 23126 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23127#define wxUSE_MEMORY_TRACING 1
23128EOF
23129
5c6fa7d2 23130 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23131#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
23132EOF
23133
5c6fa7d2 23134 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23135#define wxUSE_DEBUG_NEW_ALWAYS 1
23136EOF
23137
23138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
23139fi
23140
23141if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 23142 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
23143fi
23144
23145PROFILE=
23146if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 23147 PROFILE=" -pg"
10f2d63a
VZ
23148fi
23149
009fead0
VZ
23150CODE_GEN_FLAGS=
23151CODE_GEN_FLAGS_CXX=
88e30f2b 23152if test "$GCC" = "yes" ; then
4f14bcd8
GD
23153 if test "$wxUSE_NO_RTTI" = "yes" ; then
23154 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 23155 fi
4f14bcd8
GD
23156 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
23157 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
23158 fi
23159 if test "$wxUSE_PERMISSIVE" = "yes" ; then
23160 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
23161 fi
4f14bcd8
GD
23162 if test "$USE_WIN32" = 1 ; then
23163 # I'm not even really sure what this was ever added to solve,
23164 # but someone added it for mingw native builds, so I guess
23165 # they had a reason, right??
23166 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
23167 fi
1d1b75ac
VZ
23168
23169 case "${host}" in
23170 powerpc*-*-aix* )
23171 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
23172 ;;
23173 esac
4f14bcd8
GD
23174fi
23175
4f14bcd8
GD
23176if test "$wxUSE_OPTIMISE" = "no" ; then
23177 OPTIMISE=
23178else
23179 if test "$GCC" = yes ; then
23180 OPTIMISE="-O2"
23181 case "${host}" in
23182 i586-*-*|i686-*-* )
23183 OPTIMISE="${OPTIMISE} "
23184 ;;
23185 esac
23186 else
23187 OPTIMISE="-O"
23188 fi
23189fi
23190
23191if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
5c6fa7d2 23192 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23193#define WXWIN_COMPATIBILITY_2 1
23194EOF
23195
4f14bcd8
GD
23196 WXWIN_COMPATIBILITY_2_2="yes"
23197fi
23198
0c9a1c32 23199if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
5c6fa7d2 23200 cat >>confdefs.h <<\EOF
4f14bcd8
GD
23201#define WXWIN_COMPATIBILITY_2_2 1
23202EOF
23203
10f2d63a
VZ
23204fi
23205
10f2d63a 23206if test "$wxUSE_GUI" = "yes"; then
5c6fa7d2 23207 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23208#define wxUSE_GUI 1
23209EOF
23210
10f2d63a 23211 else
5c6fa7d2 23212 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23213#define wxUSE_NOGUI 1
23214EOF
23215
23216fi
23217
10f2d63a 23218if test "$wxUSE_UNIX" = "yes"; then
5c6fa7d2 23219 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23220#define wxUSE_UNIX 1
23221EOF
23222
23223fi
23224
10f2d63a 23225if test "$wxUSE_APPLE_IEEE" = "yes"; then
5c6fa7d2 23226 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23227#define wxUSE_APPLE_IEEE 1
23228EOF
23229
23230fi
23231
1e6feb95 23232if test "$wxUSE_TIMER" = "yes"; then
5c6fa7d2 23233 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23234#define wxUSE_TIMER 1
23235EOF
23236
23237fi
23238
10f2d63a 23239if test "$wxUSE_WAVE" = "yes"; then
5c6fa7d2 23240 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23241#define wxUSE_WAVE 1
23242EOF
23243
23244fi
23245
1e6feb95 23246if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
5c6fa7d2 23247 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23248#define wxUSE_CMDLINE_PARSER 1
23249EOF
23250
23251fi
23252
23253if test "$wxUSE_STOPWATCH" = "yes"; then
5c6fa7d2 23254 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23255#define wxUSE_STOPWATCH 1
23256EOF
23257
23258fi
23259
23260if test "$wxUSE_DATETIME" = "yes"; then
5c6fa7d2 23261 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23262#define wxUSE_DATETIME 1
23263EOF
23264
23265fi
23266
23267if test "$wxUSE_TIMEDATE" = "yes"; then
5c6fa7d2 23268 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23269#define wxUSE_TIMEDATE 1
23270EOF
23271
23272fi
23273
10f2d63a 23274if test "$wxUSE_FILE" = "yes"; then
5c6fa7d2 23275 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23276#define wxUSE_FILE 1
23277EOF
23278
23279fi
23280
1e6feb95 23281if test "$wxUSE_FFILE" = "yes"; then
5c6fa7d2 23282 cat >>confdefs.h <<\EOF
1e6feb95
VZ
23283#define wxUSE_FFILE 1
23284EOF
23285
23286fi
23287
24528b0c 23288if test "$wxUSE_FILESYSTEM" = "yes"; then
5c6fa7d2 23289 cat >>confdefs.h <<\EOF
24528b0c
VS
23290#define wxUSE_FILESYSTEM 1
23291EOF
23292
23293fi
23294
10f2d63a 23295if test "$wxUSE_FS_INET" = "yes"; then
5c6fa7d2 23296 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23297#define wxUSE_FS_INET 1
23298EOF
23299
23300fi
23301
23302if test "$wxUSE_FS_ZIP" = "yes"; then
5c6fa7d2 23303 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23304#define wxUSE_FS_ZIP 1
23305EOF
23306
23307fi
23308
23309if test "$wxUSE_ZIPSTREAM" = "yes"; then
5c6fa7d2 23310 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23311#define wxUSE_ZIPSTREAM 1
23312EOF
23313
23314fi
23315
eb4efbdc 23316if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
5c6fa7d2 23317 cat >>confdefs.h <<\EOF
eb4efbdc
VZ
23318#define wxUSE_ON_FATAL_EXCEPTION 1
23319EOF
23320
23321fi
23322
4f3c5f06 23323if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
5c6fa7d2 23324 cat >>confdefs.h <<\EOF
4f3c5f06
VZ
23325#define wxUSE_SNGLINST_CHECKER 1
23326EOF
23327
23328fi
23329
10f2d63a 23330if test "$wxUSE_BUSYINFO" = "yes"; then
5c6fa7d2 23331 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23332#define wxUSE_BUSYINFO 1
23333EOF
23334
23335fi
23336
23337if test "$wxUSE_STD_IOSTREAM" = "yes"; then
5c6fa7d2 23338 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23339#define wxUSE_STD_IOSTREAM 1
23340EOF
23341
23342fi
23343
a3a584a7 23344if test "$wxUSE_TEXTBUFFER" = "yes"; then
5c6fa7d2 23345 cat >>confdefs.h <<\EOF
a3a584a7
VZ
23346#define wxUSE_TEXTBUFFER 1
23347EOF
23348
23349fi
23350
10f2d63a 23351if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 23352 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
5c6fa7d2
RR
23353 { echo "$as_me:23353: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
23354echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 23355 else
5c6fa7d2 23356 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23357#define wxUSE_TEXTFILE 1
23358EOF
23359
23360 fi
23361fi
23362
23363if test "$wxUSE_CONFIG" = "yes" ; then
23364 if test "$wxUSE_TEXTFILE" != "yes"; then
5c6fa7d2
RR
23365 { echo "$as_me:23365: WARNING: wxConfig requires wxTextFile... disabled" >&5
23366echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 23367 else
5c6fa7d2 23368 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23369#define wxUSE_CONFIG 1
23370EOF
23371
23372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
23373 fi
23374fi
23375
23376if test "$wxUSE_INTL" = "yes" ; then
23377 if test "$wxUSE_FILE" != "yes"; then
5c6fa7d2
RR
23378 { echo "$as_me:23378: WARNING: I18n code requires wxFile... disabled" >&5
23379echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 23380 else
5c6fa7d2 23381 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23382#define wxUSE_INTL 1
23383EOF
23384
23385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 23386 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
23387 fi
23388fi
23389
23390if test "$wxUSE_LOG" = "yes"; then
5c6fa7d2 23391 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23392#define wxUSE_LOG 1
23393EOF
23394
d73be714 23395 if test "$wxUSE_LOGGUI" = "yes"; then
5c6fa7d2 23396 cat >>confdefs.h <<\EOF
d73be714
VZ
23397#define wxUSE_LOGGUI 1
23398EOF
23399
23400 fi
23401
23402 if test "$wxUSE_LOGWINDOW" = "yes"; then
5c6fa7d2 23403 cat >>confdefs.h <<\EOF
d73be714 23404#define wxUSE_LOGWINDOW 1
69d27ff7
MB
23405EOF
23406
23407 fi
23408
23409 if test "$wxUSE_LOGDIALOG" = "yes"; then
5c6fa7d2 23410 cat >>confdefs.h <<\EOF
69d27ff7 23411#define wxUSE_LOG_DIALOG 1
d73be714
VZ
23412EOF
23413
23414 fi
10f2d63a
VZ
23415fi
23416
23417if test "$wxUSE_LONGLONG" = "yes"; then
5c6fa7d2 23418 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23419#define wxUSE_LONGLONG 1
23420EOF
23421
23422fi
23423
e8f65ba6 23424if test "$wxUSE_GEOMETRY" = "yes"; then
5c6fa7d2 23425 cat >>confdefs.h <<\EOF
e8f65ba6
RR
23426#define wxUSE_GEOMETRY 1
23427EOF
23428
23429fi
23430
10f2d63a 23431if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
5c6fa7d2 23432 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23433#define wxUSE_DIALUP_MANAGER 1
23434EOF
23435
70f7a477 23436 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
23437fi
23438
23439if test "$wxUSE_STREAMS" = "yes" ; then
5c6fa7d2 23440 cat >>confdefs.h <<\EOF
10f2d63a
VZ
23441#define wxUSE_STREAMS 1
23442EOF
23443
23444fi
23445
52127426 23446if test "$wxUSE_DATETIME" = "yes"; then
5c6fa7d2
RR
23447
23448for ac_func in strptime
83307f33 23449do
5c6fa7d2
RR
23450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23451echo "$as_me:23451: checking for $ac_func" >&5
23452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23453if eval "test \"\${$as_ac_var+set}\" = set"; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455else
23456 cat >conftest.$ac_ext <<_ACEOF
23457#line 23457 "configure"
83307f33
VZ
23458#include "confdefs.h"
23459/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 23460 which can conflict with char $ac_func (); below. */
83307f33
VZ
23461#include <assert.h>
23462/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
23463#ifdef __cplusplus
23464extern "C"
23465#endif
83307f33 23466/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
23467 builtin and then its argument prototype would still apply. */
23468char $ac_func ();
23469char (*f) ();
83307f33 23470
5c6fa7d2
RR
23471int
23472main ()
23473{
83307f33
VZ
23474/* The GNU C library defines this for functions which it implements
23475 to always fail with ENOSYS. Some functions are actually named
23476 something starting with __ and the normal name is an alias. */
23477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23478choke me
23479#else
5c6fa7d2 23480f = $ac_func;
83307f33
VZ
23481#endif
23482
5c6fa7d2
RR
23483 ;
23484 return 0;
23485}
23486_ACEOF
23487rm -f conftest.$ac_objext conftest$ac_exeext
23488if { (eval echo "$as_me:23488: \"$ac_link\"") >&5
23489 (eval $ac_link) 2>&5
23490 ac_status=$?
23491 echo "$as_me:23491: \$? = $ac_status" >&5
23492 (exit $ac_status); } &&
23493 { ac_try='test -s conftest$ac_exeext'
23494 { (eval echo "$as_me:23494: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:23497: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23499 eval "$as_ac_var=yes"
23500else
23501 echo "$as_me: failed program was:" >&5
23502cat conftest.$ac_ext >&5
23503eval "$as_ac_var=no"
23504fi
23505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23506fi
23507echo "$as_me:23507: result: `eval echo '${'$as_ac_var'}'`" >&5
23508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23509if test `eval echo '${'$as_ac_var'}'` = yes; then
23510 cat >>confdefs.h <<EOF
23511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
83307f33 23512EOF
83307f33 23513
83307f33
VZ
23514fi
23515done
23516
5c6fa7d2
RR
23517 echo "$as_me:23517: checking for timezone variable in <time.h>" >&5
23518echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
23519if test "${wx_cv_var_timezone+set}" = set; then
23520 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 23521else
5c6fa7d2
RR
23522
23523 cat >conftest.$ac_ext <<_ACEOF
23524#line 23524 "configure"
360d6699
VZ
23525#include "confdefs.h"
23526
b4085ce6 23527 #include <time.h>
5c6fa7d2
RR
23528
23529int
23530main ()
23531{
360d6699
VZ
23532
23533 int tz;
4f11a343 23534 tz = timezone;
5c6fa7d2
RR
23535
23536 ;
23537 return 0;
23538}
23539_ACEOF
23540rm -f conftest.$ac_objext
23541if { (eval echo "$as_me:23541: \"$ac_compile\"") >&5
23542 (eval $ac_compile) 2>&5
23543 ac_status=$?
23544 echo "$as_me:23544: \$? = $ac_status" >&5
23545 (exit $ac_status); } &&
23546 { ac_try='test -s conftest.$ac_objext'
23547 { (eval echo "$as_me:23547: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23549 ac_status=$?
23550 echo "$as_me:23550: \$? = $ac_status" >&5
23551 (exit $ac_status); }; }; then
23552
4f11a343 23553 wx_cv_var_timezone=timezone
5c6fa7d2 23554
360d6699 23555else
5c6fa7d2
RR
23556 echo "$as_me: failed program was:" >&5
23557cat conftest.$ac_ext >&5
23558
23559 cat >conftest.$ac_ext <<_ACEOF
23560#line 23560 "configure"
360d6699
VZ
23561#include "confdefs.h"
23562
b4085ce6 23563 #include <time.h>
5c6fa7d2
RR
23564
23565int
23566main ()
23567{
360d6699
VZ
23568
23569 int tz;
23570 tz = _timezone;
5c6fa7d2
RR
23571
23572 ;
23573 return 0;
23574}
23575_ACEOF
23576rm -f conftest.$ac_objext
23577if { (eval echo "$as_me:23577: \"$ac_compile\"") >&5
23578 (eval $ac_compile) 2>&5
23579 ac_status=$?
23580 echo "$as_me:23580: \$? = $ac_status" >&5
23581 (exit $ac_status); } &&
23582 { ac_try='test -s conftest.$ac_objext'
23583 { (eval echo "$as_me:23583: \"$ac_try\"") >&5
23584 (eval $ac_try) 2>&5
23585 ac_status=$?
23586 echo "$as_me:23586: \$? = $ac_status" >&5
23587 (exit $ac_status); }; }; then
23588
360d6699 23589 wx_cv_var_timezone=_timezone
5c6fa7d2 23590
5357c8e8 23591else
5c6fa7d2
RR
23592 echo "$as_me: failed program was:" >&5
23593cat conftest.$ac_ext >&5
23594
23595 cat >conftest.$ac_ext <<_ACEOF
23596#line 23596 "configure"
5357c8e8
VZ
23597#include "confdefs.h"
23598
b4085ce6 23599 #include <time.h>
5c6fa7d2
RR
23600
23601int
23602main ()
23603{
5357c8e8
VZ
23604
23605 int tz;
4f11a343 23606 tz = __timezone;
5c6fa7d2
RR
23607
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext
23613if { (eval echo "$as_me:23613: \"$ac_compile\"") >&5
23614 (eval $ac_compile) 2>&5
23615 ac_status=$?
23616 echo "$as_me:23616: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
23618 { ac_try='test -s conftest.$ac_objext'
23619 { (eval echo "$as_me:23619: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 echo "$as_me:23622: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624
4f11a343 23625 wx_cv_var_timezone=__timezone
5c6fa7d2 23626
360d6699 23627else
5c6fa7d2
RR
23628 echo "$as_me: failed program was:" >&5
23629cat conftest.$ac_ext >&5
23630
f9bc1684 23631 if test "$USE_DOS" = 0 ; then
5c6fa7d2
RR
23632 { echo "$as_me:23632: WARNING: no timezone variable" >&5
23633echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 23634 fi
5c6fa7d2 23635
1e487827 23636fi
5c6fa7d2
RR
23637rm -f conftest.$ac_objext conftest.$ac_ext
23638
328a083c 23639fi
5c6fa7d2
RR
23640rm -f conftest.$ac_objext conftest.$ac_ext
23641
7b4a847f 23642fi
5c6fa7d2 23643rm -f conftest.$ac_objext conftest.$ac_ext
52127426 23644
5c6fa7d2
RR
23645fi
23646echo "$as_me:23646: result: $wx_cv_var_timezone" >&5
23647echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 23648
f9bc1684 23649 if test "x$wx_cv_var_timezone" != x ; then
5c6fa7d2 23650 cat >>confdefs.h <<EOF
360d6699
VZ
23651#define WX_TIMEZONE $wx_cv_var_timezone
23652EOF
23653
f9bc1684 23654 fi
698dcdb6 23655
5c6fa7d2 23656for ac_func in localtime
afc31813 23657do
5c6fa7d2
RR
23658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23659echo "$as_me:23659: checking for $ac_func" >&5
23660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23661if eval "test \"\${$as_ac_var+set}\" = set"; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23663else
23664 cat >conftest.$ac_ext <<_ACEOF
23665#line 23665 "configure"
10f2d63a 23666#include "confdefs.h"
afc31813 23667/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 23668 which can conflict with char $ac_func (); below. */
afc31813
VZ
23669#include <assert.h>
23670/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
23671#ifdef __cplusplus
23672extern "C"
23673#endif
afc31813 23674/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
23675 builtin and then its argument prototype would still apply. */
23676char $ac_func ();
23677char (*f) ();
afc31813 23678
5c6fa7d2
RR
23679int
23680main ()
23681{
afc31813
VZ
23682/* The GNU C library defines this for functions which it implements
23683 to always fail with ENOSYS. Some functions are actually named
23684 something starting with __ and the normal name is an alias. */
23685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23686choke me
23687#else
5c6fa7d2 23688f = $ac_func;
afc31813
VZ
23689#endif
23690
5c6fa7d2
RR
23691 ;
23692 return 0;
23693}
23694_ACEOF
23695rm -f conftest.$ac_objext conftest$ac_exeext
23696if { (eval echo "$as_me:23696: \"$ac_link\"") >&5
23697 (eval $ac_link) 2>&5
23698 ac_status=$?
23699 echo "$as_me:23699: \$? = $ac_status" >&5
23700 (exit $ac_status); } &&
23701 { ac_try='test -s conftest$ac_exeext'
23702 { (eval echo "$as_me:23702: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23704 ac_status=$?
23705 echo "$as_me:23705: \$? = $ac_status" >&5
23706 (exit $ac_status); }; }; then
23707 eval "$as_ac_var=yes"
23708else
23709 echo "$as_me: failed program was:" >&5
23710cat conftest.$ac_ext >&5
23711eval "$as_ac_var=no"
23712fi
23713rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23714fi
23715echo "$as_me:23715: result: `eval echo '${'$as_ac_var'}'`" >&5
23716echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23717if test `eval echo '${'$as_ac_var'}'` = yes; then
23718 cat >>confdefs.h <<EOF
23719#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10f2d63a 23720EOF
afc31813 23721
afc31813
VZ
23722fi
23723done
23724
52127426 23725 if test "$ac_cv_func_localtime" = "yes"; then
5c6fa7d2
RR
23726 echo "$as_me:23726: checking for tm_gmtoff in struct tm" >&5
23727echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
23728if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730else
23731
23732 cat >conftest.$ac_ext <<_ACEOF
23733#line 23733 "configure"
0470b1e6
VZ
23734#include "confdefs.h"
23735
b4085ce6 23736 #include <time.h>
5c6fa7d2
RR
23737
23738int
23739main ()
23740{
0470b1e6
VZ
23741
23742 struct tm tm;
23743 tm.tm_gmtoff++;
5c6fa7d2
RR
23744
23745 ;
23746 return 0;
23747}
23748_ACEOF
23749rm -f conftest.$ac_objext
23750if { (eval echo "$as_me:23750: \"$ac_compile\"") >&5
23751 (eval $ac_compile) 2>&5
23752 ac_status=$?
23753 echo "$as_me:23753: \$? = $ac_status" >&5
23754 (exit $ac_status); } &&
23755 { ac_try='test -s conftest.$ac_objext'
23756 { (eval echo "$as_me:23756: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:23759: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761
f03a98d8 23762 wx_cv_struct_tm_has_gmtoff=yes
5c6fa7d2 23763
0470b1e6 23764else
5c6fa7d2
RR
23765 echo "$as_me: failed program was:" >&5
23766cat conftest.$ac_ext >&5
23767wx_cv_struct_tm_has_gmtoff=no
23768
7b4a847f 23769fi
5c6fa7d2 23770rm -f conftest.$ac_objext conftest.$ac_ext
52127426 23771
5c6fa7d2
RR
23772fi
23773echo "$as_me:23773: result: $wx_cv_struct_tm_has_gmtoff" >&5
23774echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
23775 fi
23776
23777 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
5c6fa7d2 23778 cat >>confdefs.h <<\EOF
6232543b
VS
23779#define WX_GMTOFF_IN_TM 1
23780EOF
0470b1e6 23781
3fcdd07b
VZ
23782 fi
23783
5c6fa7d2 23784for ac_func in gettimeofday ftime
3fcdd07b 23785do
5c6fa7d2
RR
23786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23787echo "$as_me:23787: checking for $ac_func" >&5
23788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23789if eval "test \"\${$as_ac_var+set}\" = set"; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23791else
23792 cat >conftest.$ac_ext <<_ACEOF
23793#line 23793 "configure"
3fcdd07b
VZ
23794#include "confdefs.h"
23795/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 23796 which can conflict with char $ac_func (); below. */
3fcdd07b
VZ
23797#include <assert.h>
23798/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
23799#ifdef __cplusplus
23800extern "C"
23801#endif
3fcdd07b 23802/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
23803 builtin and then its argument prototype would still apply. */
23804char $ac_func ();
23805char (*f) ();
3fcdd07b 23806
5c6fa7d2
RR
23807int
23808main ()
23809{
3fcdd07b
VZ
23810/* The GNU C library defines this for functions which it implements
23811 to always fail with ENOSYS. Some functions are actually named
23812 something starting with __ and the normal name is an alias. */
23813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23814choke me
23815#else
5c6fa7d2 23816f = $ac_func;
3fcdd07b
VZ
23817#endif
23818
5c6fa7d2
RR
23819 ;
23820 return 0;
23821}
23822_ACEOF
23823rm -f conftest.$ac_objext conftest$ac_exeext
23824if { (eval echo "$as_me:23824: \"$ac_link\"") >&5
23825 (eval $ac_link) 2>&5
23826 ac_status=$?
23827 echo "$as_me:23827: \$? = $ac_status" >&5
23828 (exit $ac_status); } &&
23829 { ac_try='test -s conftest$ac_exeext'
23830 { (eval echo "$as_me:23830: \"$ac_try\"") >&5
23831 (eval $ac_try) 2>&5
23832 ac_status=$?
23833 echo "$as_me:23833: \$? = $ac_status" >&5
23834 (exit $ac_status); }; }; then
23835 eval "$as_ac_var=yes"
23836else
23837 echo "$as_me: failed program was:" >&5
23838cat conftest.$ac_ext >&5
23839eval "$as_ac_var=no"
23840fi
23841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23842fi
23843echo "$as_me:23843: result: `eval echo '${'$as_ac_var'}'`" >&5
23844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23845if test `eval echo '${'$as_ac_var'}'` = yes; then
23846 cat >>confdefs.h <<EOF
23847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3fcdd07b
VZ
23848EOF
23849 break
3fcdd07b
VZ
23850fi
23851done
23852
52127426 23853 if test "$ac_cv_func_gettimeofday" = "yes"; then
5c6fa7d2
RR
23854 echo "$as_me:23854: checking whether gettimeofday takes two arguments" >&5
23855echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
23856if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
23857 echo $ECHO_N "(cached) $ECHO_C" >&6
23858else
698dcdb6 23859
5c6fa7d2
RR
23860 ac_ext=cc
23861ac_cpp='$CXXCPP $CPPFLAGS'
23862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 23865
5c6fa7d2
RR
23866 cat >conftest.$ac_ext <<_ACEOF
23867#line 23867 "configure"
10f2d63a 23868#include "confdefs.h"
afc31813
VZ
23869
23870 #include <sys/time.h>
23871 #include <unistd.h>
5c6fa7d2
RR
23872
23873int
23874main ()
23875{
afc31813
VZ
23876
23877 struct timeval tv;
776862b4 23878 gettimeofday(&tv, NULL);
5c6fa7d2
RR
23879
23880 ;
23881 return 0;
23882}
23883_ACEOF
23884rm -f conftest.$ac_objext
23885if { (eval echo "$as_me:23885: \"$ac_compile\"") >&5
23886 (eval $ac_compile) 2>&5
23887 ac_status=$?
23888 echo "$as_me:23888: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
23890 { ac_try='test -s conftest.$ac_objext'
23891 { (eval echo "$as_me:23891: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 echo "$as_me:23894: \$? = $ac_status" >&5
23895 (exit $ac_status); }; }; then
afc31813 23896 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 23897else
5c6fa7d2
RR
23898 echo "$as_me: failed program was:" >&5
23899cat conftest.$ac_ext >&5
23900cat >conftest.$ac_ext <<_ACEOF
23901#line 23901 "configure"
10f2d63a 23902#include "confdefs.h"
afc31813
VZ
23903
23904 #include <sys/time.h>
23905 #include <unistd.h>
5c6fa7d2
RR
23906
23907int
23908main ()
23909{
afc31813
VZ
23910
23911 struct timeval tv;
23912 gettimeofday(&tv);
5c6fa7d2
RR
23913
23914 ;
23915 return 0;
23916}
23917_ACEOF
23918rm -f conftest.$ac_objext
23919if { (eval echo "$as_me:23919: \"$ac_compile\"") >&5
23920 (eval $ac_compile) 2>&5
23921 ac_status=$?
23922 echo "$as_me:23922: \$? = $ac_status" >&5
23923 (exit $ac_status); } &&
23924 { ac_try='test -s conftest.$ac_objext'
23925 { (eval echo "$as_me:23925: \"$ac_try\"") >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 echo "$as_me:23928: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
afc31813 23930 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 23931else
5c6fa7d2
RR
23932 echo "$as_me: failed program was:" >&5
23933cat conftest.$ac_ext >&5
23934
23935 { echo "$as_me:23935: WARNING: failed to determine number of gettimeofday() arguments" >&5
23936echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 23937 wx_cv_func_gettimeofday_has_2_args=unknown
5c6fa7d2 23938
10f2d63a 23939fi
5c6fa7d2
RR
23940rm -f conftest.$ac_objext conftest.$ac_ext
23941
10f2d63a 23942fi
5c6fa7d2 23943rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 23944 ac_ext=c
10f2d63a 23945ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
23946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23948ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 23949
afc31813 23950fi
5c6fa7d2
RR
23951echo "$as_me:23951: result: $wx_cv_func_gettimeofday_has_2_args" >&5
23952echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 23953
afc31813 23954 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
5c6fa7d2 23955 cat >>confdefs.h <<\EOF
afc31813
VZ
23956#define WX_GETTIMEOFDAY_NO_TZ 1
23957EOF
23958
23959 fi
23960 fi
23961
5c6fa7d2 23962 cat >>confdefs.h <<\EOF
afc31813
VZ
23963#define wxUSE_TIMEDATE 1
23964EOF
23965
23966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
23967fi
23968
52127426 23969if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 23970 if test "$wxUSE_MGL" = "1"; then
5c6fa7d2
RR
23971 { echo "$as_me:23971: WARNING: wxSocket not yet supported under MGL... disabled" >&5
23972echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
23973 wxUSE_SOCKETS="no"
23974 fi
0feee163 23975fi
b089607b 23976
0feee163
VZ
23977if test "$wxUSE_SOCKETS" = "yes"; then
23978 if test "$TOOLKIT" != "MSW"; then
5c6fa7d2
RR
23979 echo "$as_me:23979: checking for socket" >&5
23980echo $ECHO_N "checking for socket... $ECHO_C" >&6
23981if test "${ac_cv_func_socket+set}" = set; then
23982 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 23983else
5c6fa7d2
RR
23984 cat >conftest.$ac_ext <<_ACEOF
23985#line 23985 "configure"
c63c7106
VZ
23986#include "confdefs.h"
23987/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 23988 which can conflict with char socket (); below. */
c63c7106
VZ
23989#include <assert.h>
23990/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
23991#ifdef __cplusplus
23992extern "C"
23993#endif
c63c7106 23994/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
23995 builtin and then its argument prototype would still apply. */
23996char socket ();
23997char (*f) ();
c63c7106 23998
5c6fa7d2
RR
23999int
24000main ()
24001{
c63c7106
VZ
24002/* The GNU C library defines this for functions which it implements
24003 to always fail with ENOSYS. Some functions are actually named
24004 something starting with __ and the normal name is an alias. */
24005#if defined (__stub_socket) || defined (__stub___socket)
24006choke me
24007#else
5c6fa7d2 24008f = socket;
c63c7106
VZ
24009#endif
24010
5c6fa7d2
RR
24011 ;
24012 return 0;
24013}
24014_ACEOF
24015rm -f conftest.$ac_objext conftest$ac_exeext
24016if { (eval echo "$as_me:24016: \"$ac_link\"") >&5
24017 (eval $ac_link) 2>&5
24018 ac_status=$?
24019 echo "$as_me:24019: \$? = $ac_status" >&5
24020 (exit $ac_status); } &&
24021 { ac_try='test -s conftest$ac_exeext'
24022 { (eval echo "$as_me:24022: \"$ac_try\"") >&5
24023 (eval $ac_try) 2>&5
24024 ac_status=$?
24025 echo "$as_me:24025: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027 ac_cv_func_socket=yes
24028else
24029 echo "$as_me: failed program was:" >&5
24030cat conftest.$ac_ext >&5
24031ac_cv_func_socket=no
24032fi
24033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24034fi
24035echo "$as_me:24035: result: $ac_cv_func_socket" >&5
24036echo "${ECHO_T}$ac_cv_func_socket" >&6
24037if test $ac_cv_func_socket = yes; then
c63c7106
VZ
24038 :
24039else
5c6fa7d2
RR
24040 echo "$as_me:24040: checking for socket in -lsocket" >&5
24041echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
24042if test "${ac_cv_lib_socket_socket+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 24044else
5c6fa7d2 24045 ac_check_lib_save_LIBS=$LIBS
c63c7106 24046LIBS="-lsocket $LIBS"
5c6fa7d2
RR
24047cat >conftest.$ac_ext <<_ACEOF
24048#line 24048 "configure"
c63c7106 24049#include "confdefs.h"
5c6fa7d2 24050
c63c7106 24051/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24052#ifdef __cplusplus
24053extern "C"
24054#endif
c63c7106 24055/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24056 builtin and then its argument prototype would still apply. */
24057char socket ();
24058int
24059main ()
24060{
24061socket ();
24062 ;
24063 return 0;
24064}
24065_ACEOF
24066rm -f conftest.$ac_objext conftest$ac_exeext
24067if { (eval echo "$as_me:24067: \"$ac_link\"") >&5
24068 (eval $ac_link) 2>&5
24069 ac_status=$?
24070 echo "$as_me:24070: \$? = $ac_status" >&5
24071 (exit $ac_status); } &&
24072 { ac_try='test -s conftest$ac_exeext'
24073 { (eval echo "$as_me:24073: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 echo "$as_me:24076: \$? = $ac_status" >&5
24077 (exit $ac_status); }; }; then
24078 ac_cv_lib_socket_socket=yes
24079else
24080 echo "$as_me: failed program was:" >&5
24081cat conftest.$ac_ext >&5
24082ac_cv_lib_socket_socket=no
24083fi
24084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24085LIBS=$ac_check_lib_save_LIBS
24086fi
24087echo "$as_me:24087: result: $ac_cv_lib_socket_socket" >&5
24088echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
24089if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
24090 if test "$INET_LINK" != " -lsocket"; then
24091 INET_LINK="$INET_LINK -lsocket"
24092 fi
c63c7106 24093else
afc31813 24094
5c6fa7d2
RR
24095 { echo "$as_me:24095: WARNING: socket library not found - sockets will be disabled" >&5
24096echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 24097 wxUSE_SOCKETS=no
5c6fa7d2 24098
6232543b 24099fi
b089607b 24100
1e487827 24101fi
afc31813 24102
3a922bb4 24103 fi
0feee163 24104fi
51a9faba 24105
0feee163
VZ
24106if test "$wxUSE_SOCKETS" = "yes" ; then
24107 if test "$TOOLKIT" != "MSW"; then
5c6fa7d2
RR
24108 echo "$as_me:24108: checking what is the type of the third argument of getsockname" >&5
24109echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
24110if test "${wx_cv_type_getsockname3+set}" = set; then
24111 echo $ECHO_N "(cached) $ECHO_C" >&6
24112else
52127426 24113
5c6fa7d2
RR
24114 ac_ext=cc
24115ac_cpp='$CXXCPP $CPPFLAGS'
24116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
698dcdb6 24119
5c6fa7d2
RR
24120 cat >conftest.$ac_ext <<_ACEOF
24121#line 24121 "configure"
afc31813 24122#include "confdefs.h"
51a9faba 24123
3a922bb4
RL
24124 #include <sys/types.h>
24125 #include <sys/socket.h>
5c6fa7d2
RR
24126
24127int
24128main ()
24129{
51a9faba 24130
3a922bb4
RL
24131 socklen_t len;
24132 getsockname(0, 0, &len);
5c6fa7d2
RR
24133
24134 ;
24135 return 0;
24136}
24137_ACEOF
24138rm -f conftest.$ac_objext
24139if { (eval echo "$as_me:24139: \"$ac_compile\"") >&5
24140 (eval $ac_compile) 2>&5
24141 ac_status=$?
24142 echo "$as_me:24142: \$? = $ac_status" >&5
24143 (exit $ac_status); } &&
24144 { ac_try='test -s conftest.$ac_objext'
24145 { (eval echo "$as_me:24145: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24147 ac_status=$?
24148 echo "$as_me:24148: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
51a9faba 24150 wx_cv_type_getsockname3=socklen_t
afc31813 24151else
5c6fa7d2
RR
24152 echo "$as_me: failed program was:" >&5
24153cat conftest.$ac_ext >&5
24154cat >conftest.$ac_ext <<_ACEOF
24155#line 24155 "configure"
afc31813 24156#include "confdefs.h"
51a9faba 24157
3a922bb4
RL
24158 #include <sys/types.h>
24159 #include <sys/socket.h>
5c6fa7d2
RR
24160
24161int
24162main ()
24163{
51a9faba 24164
3a922bb4
RL
24165 size_t len;
24166 getsockname(0, 0, &len);
5c6fa7d2
RR
24167
24168 ;
24169 return 0;
24170}
24171_ACEOF
24172rm -f conftest.$ac_objext
24173if { (eval echo "$as_me:24173: \"$ac_compile\"") >&5
24174 (eval $ac_compile) 2>&5
24175 ac_status=$?
24176 echo "$as_me:24176: \$? = $ac_status" >&5
24177 (exit $ac_status); } &&
24178 { ac_try='test -s conftest.$ac_objext'
24179 { (eval echo "$as_me:24179: \"$ac_try\"") >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 echo "$as_me:24182: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
51a9faba 24184 wx_cv_type_getsockname3=size_t
afc31813 24185else
5c6fa7d2
RR
24186 echo "$as_me: failed program was:" >&5
24187cat conftest.$ac_ext >&5
24188cat >conftest.$ac_ext <<_ACEOF
24189#line 24189 "configure"
afc31813 24190#include "confdefs.h"
51a9faba 24191
3a922bb4
RL
24192 #include <sys/types.h>
24193 #include <sys/socket.h>
5c6fa7d2
RR
24194
24195int
24196main ()
24197{
51a9faba 24198
3a922bb4
RL
24199 int len;
24200 getsockname(0, 0, &len);
5c6fa7d2
RR
24201
24202 ;
24203 return 0;
24204}
24205_ACEOF
24206rm -f conftest.$ac_objext
24207if { (eval echo "$as_me:24207: \"$ac_compile\"") >&5
24208 (eval $ac_compile) 2>&5
24209 ac_status=$?
24210 echo "$as_me:24210: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
24212 { ac_try='test -s conftest.$ac_objext'
24213 { (eval echo "$as_me:24213: \"$ac_try\"") >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 echo "$as_me:24216: \$? = $ac_status" >&5
24217 (exit $ac_status); }; }; then
51a9faba 24218 wx_cv_type_getsockname3=int
afc31813 24219else
5c6fa7d2
RR
24220 echo "$as_me: failed program was:" >&5
24221cat conftest.$ac_ext >&5
24222wx_cv_type_getsockname3=unknown
24223
afc31813 24224fi
5c6fa7d2
RR
24225rm -f conftest.$ac_objext conftest.$ac_ext
24226
afc31813 24227fi
5c6fa7d2
RR
24228rm -f conftest.$ac_objext conftest.$ac_ext
24229
afc31813 24230fi
5c6fa7d2 24231rm -f conftest.$ac_objext conftest.$ac_ext
51a9faba 24232
3a922bb4 24233 ac_ext=c
afc31813 24234ac_cpp='$CPP $CPPFLAGS'
5c6fa7d2
RR
24235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24237ac_compiler_gnu=$ac_cv_c_compiler_gnu
afc31813 24238
51a9faba 24239fi
5c6fa7d2
RR
24240echo "$as_me:24240: result: $wx_cv_type_getsockname3" >&5
24241echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 24242
3a922bb4
RL
24243 if test "$wx_cv_type_getsockname3" = "unknown"; then
24244 wxUSE_SOCKETS=no
5c6fa7d2
RR
24245 { echo "$as_me:24245: WARNING: Couldn't find socklen_t synonym for this system" >&5
24246echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 24247 else
5c6fa7d2 24248 cat >>confdefs.h <<EOF
51a9faba
VZ
24249#define SOCKLEN_T $wx_cv_type_getsockname3
24250EOF
24251
3a922bb4 24252 fi
51a9faba
VZ
24253 fi
24254fi
afc31813 24255
51a9faba 24256if test "$wxUSE_SOCKETS" = "yes" ; then
5c6fa7d2 24257 cat >>confdefs.h <<\EOF
afc31813
VZ
24258#define wxUSE_SOCKETS 1
24259EOF
24260
70f7a477 24261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
24262fi
24263
dc3d889d
VZ
24264if test "$wxUSE_GUI" = "yes"; then
24265
156b2523 24266 if test "$TOOLKIT" = "MAC"; then
5c6fa7d2
RR
24267 { echo "$as_me:24267: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
24268echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
24269 wxUSE_JOYSTICK=no
24270 fi
24271 if test "$TOOLKIT" = "MOTIF"; then
5c6fa7d2
RR
24272 { echo "$as_me:24272: WARNING: Joystick not yet supported under Motif... disabled" >&5
24273echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 24274 wxUSE_JOYSTICK=no
f79bd02d
JS
24275 fi
24276 if test "$TOOLKIT" = "X11"; then
5c6fa7d2
RR
24277 { echo "$as_me:24277: WARNING: Joystick not yet supported under X11... disabled" >&5
24278echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 24279 wxUSE_JOYSTICK=no
156b2523
GD
24280 fi
24281
3a922bb4
RL
24282 if test "$TOOLKIT" != "MSW"; then
24283 if test "$wxUSE_JOYSTICK" = "yes"; then
5c6fa7d2
RR
24284
24285for ac_header in linux/joystick.h
10f2d63a 24286do
5c6fa7d2
RR
24287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24288echo "$as_me:24288: checking for $ac_header" >&5
24289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24290if eval "test \"\${$as_ac_Header+set}\" = set"; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292else
24293 cat >conftest.$ac_ext <<_ACEOF
24294#line 24294 "configure"
10f2d63a 24295#include "confdefs.h"
5c6fa7d2
RR
24296#include <$ac_header>
24297_ACEOF
24298if { (eval echo "$as_me:24298: \"$ac_cpp conftest.$ac_ext\"") >&5
24299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24300 ac_status=$?
24301 egrep -v '^ *\+' conftest.er1 >conftest.err
24302 rm -f conftest.er1
24303 cat conftest.err >&5
24304 echo "$as_me:24304: \$? = $ac_status" >&5
24305 (exit $ac_status); } >/dev/null; then
24306 if test -s conftest.err; then
24307 ac_cpp_err=$ac_c_preproc_warn_flag
24308 else
24309 ac_cpp_err=
24310 fi
10f2d63a 24311else
5c6fa7d2
RR
24312 ac_cpp_err=yes
24313fi
24314if test -z "$ac_cpp_err"; then
24315 eval "$as_ac_Header=yes"
24316else
24317 echo "$as_me: failed program was:" >&5
10f2d63a 24318 cat conftest.$ac_ext >&5
5c6fa7d2 24319 eval "$as_ac_Header=no"
10f2d63a 24320fi
5c6fa7d2 24321rm -f conftest.err conftest.$ac_ext
10f2d63a 24322fi
5c6fa7d2
RR
24323echo "$as_me:24323: result: `eval echo '${'$as_ac_Header'}'`" >&5
24324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24325if test `eval echo '${'$as_ac_Header'}'` = yes; then
24326 cat >>confdefs.h <<EOF
24327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10f2d63a 24328EOF
5c6fa7d2 24329
10f2d63a
VZ
24330fi
24331done
24332
3a922bb4
RL
24333 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
24334 wxUSE_JOYSTICK=no
5c6fa7d2
RR
24335 { echo "$as_me:24335: WARNING: Joystick not supported by this system... disabled" >&5
24336echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
24337 fi
24338 fi
24339 fi
b089607b 24340
3a922bb4 24341 if test "$wxUSE_JOYSTICK" = "yes"; then
5c6fa7d2 24342 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24343#define wxUSE_JOYSTICK 1
24344EOF
24345
3a922bb4
RL
24346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
24347 fi
dc3d889d
VZ
24348fi
24349
b089607b
VZ
24350if test "$TOOLKIT" != "MSW"; then
24351
3a922bb4
RL
24352 HAVE_DL_FUNCS=0
24353 HAVE_SHL_FUNCS=0
0b9ab0bd 24354 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
24355 if test "$USE_DARWIN" = 1; then
24356 HAVE_DL_FUNCS=1
24357 else
5c6fa7d2
RR
24358
24359for ac_func in dlopen
10f2d63a 24360do
5c6fa7d2
RR
24361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24362echo "$as_me:24362: checking for $ac_func" >&5
24363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24364if eval "test \"\${$as_ac_var+set}\" = set"; then
24365 echo $ECHO_N "(cached) $ECHO_C" >&6
24366else
24367 cat >conftest.$ac_ext <<_ACEOF
24368#line 24368 "configure"
10f2d63a
VZ
24369#include "confdefs.h"
24370/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 24371 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
24372#include <assert.h>
24373/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24374#ifdef __cplusplus
24375extern "C"
24376#endif
10f2d63a 24377/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24378 builtin and then its argument prototype would still apply. */
24379char $ac_func ();
24380char (*f) ();
10f2d63a 24381
5c6fa7d2
RR
24382int
24383main ()
24384{
10f2d63a
VZ
24385/* The GNU C library defines this for functions which it implements
24386 to always fail with ENOSYS. Some functions are actually named
24387 something starting with __ and the normal name is an alias. */
24388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24389choke me
24390#else
5c6fa7d2 24391f = $ac_func;
10f2d63a
VZ
24392#endif
24393
5c6fa7d2
RR
24394 ;
24395 return 0;
24396}
24397_ACEOF
24398rm -f conftest.$ac_objext conftest$ac_exeext
24399if { (eval echo "$as_me:24399: \"$ac_link\"") >&5
24400 (eval $ac_link) 2>&5
24401 ac_status=$?
24402 echo "$as_me:24402: \$? = $ac_status" >&5
24403 (exit $ac_status); } &&
24404 { ac_try='test -s conftest$ac_exeext'
24405 { (eval echo "$as_me:24405: \"$ac_try\"") >&5
24406 (eval $ac_try) 2>&5
24407 ac_status=$?
24408 echo "$as_me:24408: \$? = $ac_status" >&5
24409 (exit $ac_status); }; }; then
24410 eval "$as_ac_var=yes"
24411else
24412 echo "$as_me: failed program was:" >&5
24413cat conftest.$ac_ext >&5
24414eval "$as_ac_var=no"
24415fi
24416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24417fi
24418echo "$as_me:24418: result: `eval echo '${'$as_ac_var'}'`" >&5
24419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24420if test `eval echo '${'$as_ac_var'}'` = yes; then
24421 cat >>confdefs.h <<EOF
24422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24423EOF
24424
24425 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24426#define HAVE_DLOPEN 1
24427EOF
24428
3a922bb4 24429 HAVE_DL_FUNCS=1
5c6fa7d2 24430
10f2d63a 24431else
5c6fa7d2
RR
24432
24433 echo "$as_me:24433: checking for dlopen in -ldl" >&5
24434echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24435if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24436 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 24437else
5c6fa7d2 24438 ac_check_lib_save_LIBS=$LIBS
10f2d63a 24439LIBS="-ldl $LIBS"
5c6fa7d2
RR
24440cat >conftest.$ac_ext <<_ACEOF
24441#line 24441 "configure"
10f2d63a 24442#include "confdefs.h"
5c6fa7d2 24443
10f2d63a 24444/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24445#ifdef __cplusplus
24446extern "C"
24447#endif
10f2d63a 24448/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24449 builtin and then its argument prototype would still apply. */
24450char dlopen ();
24451int
24452main ()
24453{
24454dlopen ();
24455 ;
24456 return 0;
24457}
24458_ACEOF
24459rm -f conftest.$ac_objext conftest$ac_exeext
24460if { (eval echo "$as_me:24460: \"$ac_link\"") >&5
24461 (eval $ac_link) 2>&5
24462 ac_status=$?
24463 echo "$as_me:24463: \$? = $ac_status" >&5
24464 (exit $ac_status); } &&
24465 { ac_try='test -s conftest$ac_exeext'
24466 { (eval echo "$as_me:24466: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24468 ac_status=$?
24469 echo "$as_me:24469: \$? = $ac_status" >&5
24470 (exit $ac_status); }; }; then
24471 ac_cv_lib_dl_dlopen=yes
24472else
24473 echo "$as_me: failed program was:" >&5
24474cat conftest.$ac_ext >&5
24475ac_cv_lib_dl_dlopen=no
24476fi
24477rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24478LIBS=$ac_check_lib_save_LIBS
24479fi
24480echo "$as_me:24480: result: $ac_cv_lib_dl_dlopen" >&5
24481echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24482if test $ac_cv_lib_dl_dlopen = yes; then
24483
24484 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24485#define HAVE_DLOPEN 1
24486EOF
24487
3a922bb4 24488 HAVE_DL_FUNCS=1
3d63bc3a 24489 DL_LINK=" -ldl$DL_LINK"
5c6fa7d2 24490
10f2d63a 24491else
10f2d63a 24492
5c6fa7d2 24493for ac_func in shl_load
10f2d63a 24494do
5c6fa7d2
RR
24495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24496echo "$as_me:24496: checking for $ac_func" >&5
24497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24498if eval "test \"\${$as_ac_var+set}\" = set"; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24500else
24501 cat >conftest.$ac_ext <<_ACEOF
24502#line 24502 "configure"
10f2d63a
VZ
24503#include "confdefs.h"
24504/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 24505 which can conflict with char $ac_func (); below. */
10f2d63a
VZ
24506#include <assert.h>
24507/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24508#ifdef __cplusplus
24509extern "C"
24510#endif
10f2d63a 24511/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24512 builtin and then its argument prototype would still apply. */
24513char $ac_func ();
24514char (*f) ();
10f2d63a 24515
5c6fa7d2
RR
24516int
24517main ()
24518{
10f2d63a
VZ
24519/* The GNU C library defines this for functions which it implements
24520 to always fail with ENOSYS. Some functions are actually named
24521 something starting with __ and the normal name is an alias. */
24522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24523choke me
24524#else
5c6fa7d2 24525f = $ac_func;
10f2d63a
VZ
24526#endif
24527
5c6fa7d2
RR
24528 ;
24529 return 0;
24530}
24531_ACEOF
24532rm -f conftest.$ac_objext conftest$ac_exeext
24533if { (eval echo "$as_me:24533: \"$ac_link\"") >&5
24534 (eval $ac_link) 2>&5
24535 ac_status=$?
24536 echo "$as_me:24536: \$? = $ac_status" >&5
24537 (exit $ac_status); } &&
24538 { ac_try='test -s conftest$ac_exeext'
24539 { (eval echo "$as_me:24539: \"$ac_try\"") >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 echo "$as_me:24542: \$? = $ac_status" >&5
24543 (exit $ac_status); }; }; then
24544 eval "$as_ac_var=yes"
24545else
24546 echo "$as_me: failed program was:" >&5
24547cat conftest.$ac_ext >&5
24548eval "$as_ac_var=no"
24549fi
24550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24551fi
24552echo "$as_me:24552: result: `eval echo '${'$as_ac_var'}'`" >&5
24553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24554if test `eval echo '${'$as_ac_var'}'` = yes; then
24555 cat >>confdefs.h <<EOF
24556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24557EOF
24558
24559 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24560#define HAVE_SHL_LOAD 1
24561EOF
24562
3a922bb4 24563 HAVE_SHL_FUNCS=1
5c6fa7d2 24564
10f2d63a 24565else
5c6fa7d2
RR
24566
24567 echo "$as_me:24567: checking for dld in -lshl_load" >&5
24568echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
24569if test "${ac_cv_lib_shl_load_dld+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 24571else
5c6fa7d2 24572 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 24573LIBS="-lshl_load $LIBS"
5c6fa7d2
RR
24574cat >conftest.$ac_ext <<_ACEOF
24575#line 24575 "configure"
f6bcfd97 24576#include "confdefs.h"
5c6fa7d2 24577
f6bcfd97 24578/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24579#ifdef __cplusplus
24580extern "C"
24581#endif
f6bcfd97 24582/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24583 builtin and then its argument prototype would still apply. */
24584char dld ();
24585int
24586main ()
24587{
24588dld ();
24589 ;
24590 return 0;
24591}
24592_ACEOF
24593rm -f conftest.$ac_objext conftest$ac_exeext
24594if { (eval echo "$as_me:24594: \"$ac_link\"") >&5
24595 (eval $ac_link) 2>&5
24596 ac_status=$?
24597 echo "$as_me:24597: \$? = $ac_status" >&5
24598 (exit $ac_status); } &&
24599 { ac_try='test -s conftest$ac_exeext'
24600 { (eval echo "$as_me:24600: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 echo "$as_me:24603: \$? = $ac_status" >&5
24604 (exit $ac_status); }; }; then
24605 ac_cv_lib_shl_load_dld=yes
24606else
24607 echo "$as_me: failed program was:" >&5
24608cat conftest.$ac_ext >&5
24609ac_cv_lib_shl_load_dld=no
24610fi
24611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24612LIBS=$ac_check_lib_save_LIBS
24613fi
24614echo "$as_me:24614: result: $ac_cv_lib_shl_load_dld" >&5
24615echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
24616if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 24617
3a922bb4 24618 HAVE_SHL_FUNCS=1
3d63bc3a 24619 DL_LINK=" -ldld$DL_LINK"
5c6fa7d2 24620
f6bcfd97
BP
24621fi
24622
10f2d63a
VZ
24623fi
24624done
24625
10f2d63a
VZ
24626fi
24627
10f2d63a
VZ
24628fi
24629done
24630
52127426 24631 if test "$HAVE_DL_FUNCS" = 1; then
5c6fa7d2
RR
24632
24633for ac_func in dlerror
f6bcfd97 24634do
5c6fa7d2
RR
24635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24636echo "$as_me:24636: checking for $ac_func" >&5
24637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24638if eval "test \"\${$as_ac_var+set}\" = set"; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24640else
24641 cat >conftest.$ac_ext <<_ACEOF
24642#line 24642 "configure"
f6bcfd97
BP
24643#include "confdefs.h"
24644/* System header to define __stub macros and hopefully few prototypes,
5c6fa7d2 24645 which can conflict with char $ac_func (); below. */
f6bcfd97
BP
24646#include <assert.h>
24647/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24648#ifdef __cplusplus
24649extern "C"
24650#endif
f6bcfd97 24651/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24652 builtin and then its argument prototype would still apply. */
24653char $ac_func ();
24654char (*f) ();
f6bcfd97 24655
5c6fa7d2
RR
24656int
24657main ()
24658{
f6bcfd97
BP
24659/* The GNU C library defines this for functions which it implements
24660 to always fail with ENOSYS. Some functions are actually named
24661 something starting with __ and the normal name is an alias. */
24662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24663choke me
24664#else
5c6fa7d2 24665f = $ac_func;
f6bcfd97
BP
24666#endif
24667
5c6fa7d2
RR
24668 ;
24669 return 0;
24670}
24671_ACEOF
24672rm -f conftest.$ac_objext conftest$ac_exeext
24673if { (eval echo "$as_me:24673: \"$ac_link\"") >&5
24674 (eval $ac_link) 2>&5
24675 ac_status=$?
24676 echo "$as_me:24676: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
24678 { ac_try='test -s conftest$ac_exeext'
24679 { (eval echo "$as_me:24679: \"$ac_try\"") >&5
24680 (eval $ac_try) 2>&5
24681 ac_status=$?
24682 echo "$as_me:24682: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 eval "$as_ac_var=yes"
24685else
24686 echo "$as_me: failed program was:" >&5
24687cat conftest.$ac_ext >&5
24688eval "$as_ac_var=no"
24689fi
24690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24691fi
24692echo "$as_me:24692: result: `eval echo '${'$as_ac_var'}'`" >&5
24693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24694if test `eval echo '${'$as_ac_var'}'` = yes; then
24695 cat >>confdefs.h <<EOF
24696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24697EOF
24698 cat >>confdefs.h <<\EOF
f6bcfd97
BP
24699#define HAVE_DLERROR 1
24700EOF
24701
24702else
5c6fa7d2
RR
24703 echo "$as_me:24703: checking for dlerror in -ldl" >&5
24704echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
24705if test "${ac_cv_lib_dl_dlerror+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 24707else
5c6fa7d2 24708 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 24709LIBS="-ldl $LIBS"
5c6fa7d2
RR
24710cat >conftest.$ac_ext <<_ACEOF
24711#line 24711 "configure"
f6bcfd97 24712#include "confdefs.h"
5c6fa7d2 24713
f6bcfd97 24714/* Override any gcc2 internal prototype to avoid an error. */
5c6fa7d2
RR
24715#ifdef __cplusplus
24716extern "C"
24717#endif
f6bcfd97 24718/* We use char because int might match the return type of a gcc2
5c6fa7d2
RR
24719 builtin and then its argument prototype would still apply. */
24720char dlerror ();
24721int
24722main ()
24723{
24724dlerror ();
24725 ;
24726 return 0;
24727}
24728_ACEOF
24729rm -f conftest.$ac_objext conftest$ac_exeext
24730if { (eval echo "$as_me:24730: \"$ac_link\"") >&5
24731 (eval $ac_link) 2>&5
24732 ac_status=$?
24733 echo "$as_me:24733: \$? = $ac_status" >&5
24734 (exit $ac_status); } &&
24735 { ac_try='test -s conftest$ac_exeext'
24736 { (eval echo "$as_me:24736: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:24739: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
24741 ac_cv_lib_dl_dlerror=yes
24742else
24743 echo "$as_me: failed program was:" >&5
24744cat conftest.$ac_ext >&5
24745ac_cv_lib_dl_dlerror=no
24746fi
24747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24748LIBS=$ac_check_lib_save_LIBS
24749fi
24750echo "$as_me:24750: result: $ac_cv_lib_dl_dlerror" >&5
24751echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
24752if test $ac_cv_lib_dl_dlerror = yes; then
24753 cat >>confdefs.h <<\EOF
f6bcfd97
BP
24754#define HAVE_DLERROR 1
24755EOF
24756
f6bcfd97
BP
24757fi
24758
24759fi
24760done
24761
3a922bb4
RL
24762 fi
24763 fi
f6bcfd97 24764
3a922bb4
RL
24765 if test "$HAVE_DL_FUNCS" = 0; then
24766 if test "$HAVE_SHL_FUNCS" = 0; then
24767 if test "$USE_UNIX" = 1; then
5c6fa7d2
RR
24768 { echo "$as_me:24768: WARNING: Missing dynamic loading support, several features will be disabled" >&5
24769echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 24770 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
24771 wxUSE_DYNLIB_CLASS=no
24772 else
5c6fa7d2
RR
24773 { echo "$as_me:24773: WARNING: Assuming wxLibrary class works on this platform" >&5
24774echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
24775 fi
24776 fi
10f2d63a
VZ
24777 fi
24778 fi
24779fi
24780
0b9ab0bd 24781if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
5c6fa7d2 24782 cat >>confdefs.h <<\EOF
0b9ab0bd
RL
24783#define wxUSE_DYNAMIC_LOADER 1
24784EOF
24785
24786elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
5c6fa7d2 24787 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24788#define wxUSE_DYNLIB_CLASS 1
24789EOF
24790
24791fi
24792
1e6feb95 24793if test "$wxUSE_FONTMAP" = "yes" ; then
5c6fa7d2 24794 cat >>confdefs.h <<\EOF
1e6feb95
VZ
24795#define wxUSE_FONTMAP 1
24796EOF
24797
24798fi
24799
10f2d63a 24800if test "$wxUSE_UNICODE" = "yes" ; then
5c6fa7d2 24801 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24802#define wxUSE_UNICODE 1
24803EOF
24804
bbc3925a
VS
24805 if test "$wxUSE_MSW" != 1; then
24806 wxUSE_UNICODE_MSLU=no
24807 fi
a72a4bfa
VS
24808
24809 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
5c6fa7d2
RR
24810 echo "$as_me:24810: checking for main in -lunicows" >&5
24811echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
24812if test "${ac_cv_lib_unicows_main+set}" = set; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 24814else
5c6fa7d2 24815 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 24816LIBS="-lunicows $LIBS"
5c6fa7d2
RR
24817cat >conftest.$ac_ext <<_ACEOF
24818#line 24818 "configure"
a72a4bfa
VS
24819#include "confdefs.h"
24820
5c6fa7d2
RR
24821int
24822main ()
24823{
24824main ();
24825 ;
24826 return 0;
24827}
24828_ACEOF
24829rm -f conftest.$ac_objext conftest$ac_exeext
24830if { (eval echo "$as_me:24830: \"$ac_link\"") >&5
24831 (eval $ac_link) 2>&5
24832 ac_status=$?
24833 echo "$as_me:24833: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
24835 { ac_try='test -s conftest$ac_exeext'
24836 { (eval echo "$as_me:24836: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 echo "$as_me:24839: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 ac_cv_lib_unicows_main=yes
24842else
24843 echo "$as_me: failed program was:" >&5
24844cat conftest.$ac_ext >&5
24845ac_cv_lib_unicows_main=no
24846fi
24847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24848LIBS=$ac_check_lib_save_LIBS
24849fi
24850echo "$as_me:24850: result: $ac_cv_lib_unicows_main" >&5
24851echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
24852if test $ac_cv_lib_unicows_main = yes; then
24853
24854 cat >>confdefs.h <<\EOF
a72a4bfa
VS
24855#define wxUSE_UNICODE_MSLU 1
24856EOF
24857
a72a4bfa 24858else
a72a4bfa 24859
5c6fa7d2
RR
24860 { echo "$as_me:24860: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
24861 Applications will only run on Windows NT/2000/XP!" >&5
24862echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
24863 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 24864 wxUSE_UNICODE_MSLU=no
5c6fa7d2 24865
a72a4bfa
VS
24866fi
24867
24868 fi
10f2d63a
VZ
24869fi
24870
10f2d63a 24871if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
5c6fa7d2 24872 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24873#define wxUSE_EXPERIMENTAL_PRINTF 1
24874EOF
24875
24876fi
24877
10f2d63a
VZ
24878IODBC_C_SRC=""
24879if test "$wxUSE_ODBC" = "yes" ; then
5c6fa7d2 24880 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24881#define wxUSE_ODBC 1
24882EOF
24883
24884 WXODBCFLAG="-D_IODBC_"
24885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
24886fi
24887
10f2d63a 24888if test "$wxUSE_POSTSCRIPT" = "yes" ; then
5c6fa7d2 24889 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24890#define wxUSE_POSTSCRIPT 1
24891EOF
24892
24893fi
24894
5c6fa7d2 24895cat >>confdefs.h <<\EOF
10f2d63a
VZ
24896#define wxUSE_AFM_FOR_POSTSCRIPT 1
24897EOF
24898
5c6fa7d2 24899cat >>confdefs.h <<\EOF
10f2d63a
VZ
24900#define wxUSE_NORMALIZED_PS_FONTS 1
24901EOF
24902
10f2d63a 24903if test "$wxUSE_CONSTRAINTS" = "yes"; then
5c6fa7d2 24904 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24905#define wxUSE_CONSTRAINTS 1
24906EOF
24907
24908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
24909fi
24910
24911if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 24912
bb811f17 24913 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
5c6fa7d2 24914 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24915#define wxUSE_MDI_ARCHITECTURE 1
24916EOF
24917
bb811f17
JS
24918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
24919 fi
10f2d63a
VZ
24920fi
24921
24922if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
5c6fa7d2 24923 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24924#define wxUSE_DOC_VIEW_ARCHITECTURE 1
24925EOF
24926
24927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
24928 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
24929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
24930 fi
24931fi
24932
24933if test "$wxUSE_HELP" = "yes"; then
5c6fa7d2 24934 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24935#define wxUSE_HELP 1
24936EOF
24937
24938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 24939
77e13408 24940 if test "$wxUSE_MSW" = 1; then
031d8228 24941 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
5c6fa7d2 24942 cat >>confdefs.h <<\EOF
29fd3c0c
VS
24943#define wxUSE_MS_HTML_HELP 1
24944EOF
24945
3e44f09d 24946 fi
3379ed37 24947 fi
031d8228
VS
24948
24949 if test "$wxUSE_WXHTML_HELP" = "yes"; then
24950 if test "$wxUSE_HTML" = "yes"; then
5c6fa7d2 24951 cat >>confdefs.h <<\EOF
031d8228
VS
24952#define wxUSE_WXHTML_HELP 1
24953EOF
24954
24955 else
5c6fa7d2
RR
24956 { echo "$as_me:24956: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
24957echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
24958 wxUSE_WXHTML_HELP=no
24959 fi
24960 fi
10f2d63a
VZ
24961fi
24962
24963if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
24964 if test "$wxUSE_CONSTRAINTS" != "yes"; then
5c6fa7d2
RR
24965 { echo "$as_me:24965: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
24966echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 24967 else
5c6fa7d2 24968 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24969#define wxUSE_PRINTING_ARCHITECTURE 1
24970EOF
24971
24972 fi
24973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
24974fi
24975
24976if test "$wxUSE_PROLOGIO" = "yes" ; then
5c6fa7d2 24977 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24978#define wxUSE_PROLOGIO 1
24979EOF
24980
24981fi
24982
24983if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea 24984 if test "$wxUSE_NANOX" = "yes"; then
5c6fa7d2
RR
24985 { echo "$as_me:24985: WARNING: Cannot use resource database functions in NanoX" >&5
24986echo "$as_me: WARNING: Cannot use resource database functions in NanoX" >&2;}
e334d0ea 24987 else
5c6fa7d2 24988 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24989#define wxUSE_RESOURCES 1
24990EOF
24991
e334d0ea
JS
24992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
24993 fi
10f2d63a
VZ
24994fi
24995
24996if test "$wxUSE_X_RESOURCES" = "yes"; then
5c6fa7d2 24997 cat >>confdefs.h <<\EOF
10f2d63a
VZ
24998#define wxUSE_X_RESOURCES 1
24999EOF
25000
25001fi
25002
77e13408
RL
25003if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
25004 -o "$wxUSE_CLIPBOARD" = "yes" \
25005 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
5c6fa7d2
RR
25006
25007for ac_header in ole2.h
10f2d63a 25008do
5c6fa7d2
RR
25009as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25010echo "$as_me:25010: checking for $ac_header" >&5
25011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25012if eval "test \"\${$as_ac_Header+set}\" = set"; then
25013 echo $ECHO_N "(cached) $ECHO_C" >&6
25014else
25015 cat >conftest.$ac_ext <<_ACEOF
25016#line 25016 "configure"
10f2d63a 25017#include "confdefs.h"
5c6fa7d2
RR
25018#include <$ac_header>
25019_ACEOF
25020if { (eval echo "$as_me:25020: \"$ac_cpp conftest.$ac_ext\"") >&5
25021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25022 ac_status=$?
25023 egrep -v '^ *\+' conftest.er1 >conftest.err
25024 rm -f conftest.er1
25025 cat conftest.err >&5
25026 echo "$as_me:25026: \$? = $ac_status" >&5
25027 (exit $ac_status); } >/dev/null; then
25028 if test -s conftest.err; then
25029 ac_cpp_err=$ac_c_preproc_warn_flag
25030 else
25031 ac_cpp_err=
25032 fi
25033else
25034 ac_cpp_err=yes
25035fi
25036if test -z "$ac_cpp_err"; then
25037 eval "$as_ac_Header=yes"
1e487827 25038else
5c6fa7d2 25039 echo "$as_me: failed program was:" >&5
10f2d63a 25040 cat conftest.$ac_ext >&5
5c6fa7d2 25041 eval "$as_ac_Header=no"
10f2d63a 25042fi
5c6fa7d2 25043rm -f conftest.err conftest.$ac_ext
10f2d63a 25044fi
5c6fa7d2
RR
25045echo "$as_me:25045: result: `eval echo '${'$as_ac_Header'}'`" >&5
25046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25047if test `eval echo '${'$as_ac_Header'}'` = yes; then
25048 cat >>confdefs.h <<EOF
25049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10f2d63a 25050EOF
5c6fa7d2 25051
10f2d63a
VZ
25052fi
25053done
25054
2b9bdf71
VZ
25055 if test "$ac_cv_header_ole2_h" = "yes" ; then
25056 if test "$GCC" = yes ; then
25057 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 25058 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 25059 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
5c6fa7d2 25060 cat >>confdefs.h <<\EOF
4f11a343
VS
25061#define wxUSE_OLE 1
25062EOF
25063
2b9bdf71
VZ
25064 fi
25065
5c6fa7d2 25066 cat >>confdefs.h <<\EOF
2b9bdf71
VZ
25067#define wxUSE_DATAOBJ 1
25068EOF
25069
25070 else
5c6fa7d2
RR
25071 { echo "$as_me:25071: WARNING: Some features disabled because OLE headers not found" >&5
25072echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
25073
25074 wxUSE_CLIPBOARD=no
25075 wxUSE_DRAG_AND_DROP=no
25076 wxUSE_DATAOBJ=no
25077 fi
25078
77e13408 25079 if test "$wxUSE_METAFILE" = "yes"; then
5c6fa7d2 25080 cat >>confdefs.h <<\EOF
b64f0a5f
RL
25081#define wxUSE_METAFILE 1
25082EOF
25083
5c6fa7d2 25084 cat >>confdefs.h <<\EOF
b64f0a5f
RL
25085#define wxUSE_ENH_METAFILE 1
25086EOF
25087
2b9bdf71
VZ
25088 fi
25089fi
25090
25091if test "$wxUSE_IPC" = "yes"; then
25092 if test "$wxUSE_SOCKETS" != "yes"; then
5c6fa7d2
RR
25093 { echo "$as_me:25093: WARNING: wxWindows IPC classes require sockets... disabled" >&5
25094echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
25095 fi
25096
5c6fa7d2 25097 cat >>confdefs.h <<\EOF
2b9bdf71
VZ
25098#define wxUSE_IPC 1
25099EOF
25100
25101fi
25102
25103if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 25104 if test "$wxUSE_MGL" = 1; then
5c6fa7d2
RR
25105 { echo "$as_me:25105: WARNING: Clipboard not yet supported under MGL... disabled" >&5
25106echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
25107 wxUSE_CLIPBOARD=no
25108 fi
25109
25110 if test "$wxUSE_CLIPBOARD" = "yes"; then
5c6fa7d2 25111 cat >>confdefs.h <<\EOF
2b9bdf71
VZ
25112#define wxUSE_CLIPBOARD 1
25113EOF
25114
5c6fa7d2 25115 cat >>confdefs.h <<\EOF
673f4220
VZ
25116#define wxUSE_DATAOBJ 1
25117EOF
25118
6c657b52 25119 fi
2b9bdf71
VZ
25120fi
25121
25122if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
25123 if test "$wxUSE_GTK" = 1; then
25124 if test "$WXGTK12" != 1; then
5c6fa7d2
RR
25125 { echo "$as_me:25125: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
25126echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
25127 wxUSE_DRAG_AND_DROP=no
25128 fi
25129 fi
25130
2b9bdf71 25131 if test "$wxUSE_MOTIF" = 1; then
5c6fa7d2
RR
25132 { echo "$as_me:25132: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
25133echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
25134 wxUSE_DRAG_AND_DROP=no
25135 fi
25136
f79bd02d 25137 if test "$wxUSE_X11" = 1; then
5c6fa7d2
RR
25138 { echo "$as_me:25138: WARNING: Drag and drop not yet supported under X11... disabled" >&5
25139echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
25140 wxUSE_DRAG_AND_DROP=no
25141 fi
25142
6c657b52 25143 if test "$wxUSE_MGL" = 1; then
5c6fa7d2
RR
25144 { echo "$as_me:25144: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
25145echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
25146 wxUSE_DRAG_AND_DROP=no
25147 fi
25148
10f2d63a 25149 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
5c6fa7d2 25150 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25151#define wxUSE_DRAG_AND_DROP 1
25152EOF
25153
25154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
25155 fi
25156
25157fi
25158
25159if test "$wxUSE_SPLINES" = "yes" ; then
5c6fa7d2 25160 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25161#define wxUSE_SPLINES 1
25162EOF
25163
25164fi
25165
1e6feb95
VZ
25166USES_CONTROLS=0
25167if test "$wxUSE_CONTROLS" = "yes"; then
25168 USES_CONTROLS=1
25169fi
25170
10f2d63a 25171if test "$wxUSE_ACCEL" = "yes"; then
5c6fa7d2 25172 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25173#define wxUSE_ACCEL 1
25174EOF
25175
1e6feb95
VZ
25176 USES_CONTROLS=1
25177fi
25178
25179if test "$wxUSE_BUTTON" = "yes"; then
5c6fa7d2 25180 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25181#define wxUSE_BUTTON 1
25182EOF
25183
25184 USES_CONTROLS=1
25185fi
25186
25187if test "$wxUSE_BMPBUTTON" = "yes"; then
5c6fa7d2 25188 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25189#define wxUSE_BMPBUTTON 1
25190EOF
25191
25192 USES_CONTROLS=1
25193fi
25194
25195if test "$wxUSE_CALCTRL" = "yes"; then
5c6fa7d2 25196 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25197#define wxUSE_CALENDARCTRL 1
25198EOF
25199
25200 USES_CONTROLS=1
25201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
25202fi
25203
25204if test "$wxUSE_CARET" = "yes"; then
5c6fa7d2 25205 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25206#define wxUSE_CARET 1
25207EOF
25208
1e6feb95 25209 USES_CONTROLS=1
10f2d63a
VZ
25210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
25211fi
25212
25213if test "$wxUSE_COMBOBOX" = "yes"; then
5c6fa7d2 25214 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25215#define wxUSE_COMBOBOX 1
25216EOF
25217
1e6feb95 25218 USES_CONTROLS=1
10f2d63a
VZ
25219fi
25220
25221if test "$wxUSE_CHOICE" = "yes"; then
5c6fa7d2 25222 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25223#define wxUSE_CHOICE 1
25224EOF
25225
1e6feb95 25226 USES_CONTROLS=1
10f2d63a
VZ
25227fi
25228
25229if test "$wxUSE_CHECKBOX" = "yes"; then
5c6fa7d2 25230 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25231#define wxUSE_CHECKBOX 1
25232EOF
25233
1e6feb95 25234 USES_CONTROLS=1
10f2d63a
VZ
25235fi
25236
25237if test "$wxUSE_CHECKLST" = "yes"; then
5c6fa7d2 25238 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25239#define wxUSE_CHECKLISTBOX 1
25240EOF
25241
1e6feb95 25242 USES_CONTROLS=1
10f2d63a
VZ
25243 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
25244fi
25245
25246if test "$wxUSE_GAUGE" = "yes"; then
5c6fa7d2 25247 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25248#define wxUSE_GAUGE 1
25249EOF
25250
1e6feb95 25251 USES_CONTROLS=1
10f2d63a
VZ
25252fi
25253
d6a55c4b
VZ
25254if test "$wxUSE_NEW_GRID" = "yes"; then
25255 wxUSE_GRID="yes"
5c6fa7d2 25256 cat >>confdefs.h <<\EOF
d6a55c4b 25257#define wxUSE_NEW_GRID 1
10f2d63a
VZ
25258EOF
25259
1e6feb95 25260 USES_CONTROLS=1
d6a55c4b 25261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
25262fi
25263
d6a55c4b 25264if test "$wxUSE_GRID" = "yes"; then
5c6fa7d2 25265 cat >>confdefs.h <<\EOF
d6a55c4b 25266#define wxUSE_GRID 1
10f2d63a
VZ
25267EOF
25268
1e6feb95 25269 USES_CONTROLS=1
d6a55c4b 25270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
25271fi
25272
25273if test "$wxUSE_IMAGLIST" = "yes"; then
5c6fa7d2 25274 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25275#define wxUSE_IMAGLIST 1
25276EOF
25277
25278fi
25279
25280if test "$wxUSE_LISTBOX" = "yes"; then
5c6fa7d2 25281 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25282#define wxUSE_LISTBOX 1
25283EOF
25284
1e6feb95 25285 USES_CONTROLS=1
10f2d63a
VZ
25286fi
25287
25288if test "$wxUSE_LISTCTRL" = "yes"; then
25289 if test "$wxUSE_IMAGLIST" = "yes"; then
5c6fa7d2 25290 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25291#define wxUSE_LISTCTRL 1
25292EOF
25293
1e6feb95 25294 USES_CONTROLS=1
10f2d63a
VZ
25295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
25296 else
5c6fa7d2
RR
25297 { echo "$as_me:25297: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
25298echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
25299 fi
25300fi
25301
25302if test "$wxUSE_NOTEBOOK" = "yes"; then
5c6fa7d2 25303 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25304#define wxUSE_NOTEBOOK 1
25305EOF
25306
1e6feb95 25307 USES_CONTROLS=1
10f2d63a
VZ
25308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
25309fi
25310
24176f2c 25311if test "$wxUSE_PROPSHEET" = "yes"; then
5c6fa7d2 25312 cat >>confdefs.h <<\EOF
24176f2c
GD
25313#define wxUSE_PROPSHEET 1
25314EOF
25315
25316 USES_CONTROLS=1
25317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
25318fi
25319
10f2d63a 25320if test "$wxUSE_RADIOBOX" = "yes"; then
5c6fa7d2 25321 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25322#define wxUSE_RADIOBOX 1
25323EOF
25324
1e6feb95 25325 USES_CONTROLS=1
10f2d63a
VZ
25326fi
25327
25328if test "$wxUSE_RADIOBTN" = "yes"; then
5c6fa7d2 25329 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25330#define wxUSE_RADIOBTN 1
25331EOF
25332
1e6feb95 25333 USES_CONTROLS=1
10f2d63a
VZ
25334fi
25335
25336if test "$wxUSE_SASH" = "yes"; then
5c6fa7d2 25337 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25338#define wxUSE_SASH 1
25339EOF
25340
25341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
25342fi
25343
25344if test "$wxUSE_SCROLLBAR" = "yes"; then
5c6fa7d2 25345 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25346#define wxUSE_SCROLLBAR 1
25347EOF
25348
1e6feb95 25349 USES_CONTROLS=1
741a9306 25350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
25351fi
25352
25353if test "$wxUSE_SLIDER" = "yes"; then
5c6fa7d2 25354 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25355#define wxUSE_SLIDER 1
25356EOF
25357
1e6feb95 25358 USES_CONTROLS=1
10f2d63a
VZ
25359fi
25360
25361if test "$wxUSE_SPINBTN" = "yes"; then
5c6fa7d2 25362 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25363#define wxUSE_SPINBTN 1
25364EOF
25365
1e6feb95 25366 USES_CONTROLS=1
10f2d63a
VZ
25367fi
25368
56cfaa52 25369if test "$wxUSE_SPINCTRL" = "yes"; then
5c6fa7d2 25370 cat >>confdefs.h <<\EOF
56cfaa52
RR
25371#define wxUSE_SPINCTRL 1
25372EOF
25373
1e6feb95 25374 USES_CONTROLS=1
56cfaa52
RR
25375fi
25376
10f2d63a 25377if test "$wxUSE_SPLITTER" = "yes"; then
5c6fa7d2 25378 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25379#define wxUSE_SPLITTER 1
25380EOF
25381
25382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
25383fi
25384
25385if test "$wxUSE_STATBMP" = "yes"; then
5c6fa7d2 25386 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25387#define wxUSE_STATBMP 1
25388EOF
25389
1e6feb95 25390 USES_CONTROLS=1
10f2d63a
VZ
25391fi
25392
25393if test "$wxUSE_STATBOX" = "yes"; then
5c6fa7d2 25394 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25395#define wxUSE_STATBOX 1
25396EOF
25397
1e6feb95
VZ
25398 USES_CONTROLS=1
25399fi
25400
25401if test "$wxUSE_STATTEXT" = "yes"; then
5c6fa7d2 25402 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25403#define wxUSE_STATTEXT 1
25404EOF
25405
25406 USES_CONTROLS=1
10f2d63a
VZ
25407fi
25408
25409if test "$wxUSE_STATLINE" = "yes"; then
25410 if test "$wxUSE_WINE" = 1 ; then
5c6fa7d2
RR
25411 { echo "$as_me:25411: WARNING: wxStaticLine is not supported under WINE" >&5
25412echo "$as_me: WARNING: wxStaticLine is not supported under WINE" >&2;}
10f2d63a 25413 else
5c6fa7d2 25414 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25415#define wxUSE_STATLINE 1
25416EOF
25417
1e6feb95 25418 USES_CONTROLS=1
10f2d63a
VZ
25419 fi
25420fi
25421
25422if test "$wxUSE_STATUSBAR" = "yes"; then
5c6fa7d2 25423 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25424#define wxUSE_STATUSBAR 1
25425EOF
25426
1e6feb95 25427 USES_CONTROLS=1
698dcdb6 25428
2286341c 25429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
25430fi
25431
25432if test "$wxUSE_TABDIALOG" = "yes"; then
5c6fa7d2 25433 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25434#define wxUSE_TAB_DIALOG 1
25435EOF
25436
25437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
25438fi
25439
1e6feb95 25440if test "$wxUSE_TEXTCTRL" = "yes"; then
5c6fa7d2 25441 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25442#define wxUSE_TEXTCTRL 1
25443EOF
25444
25445 USES_CONTROLS=1
25446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
25447fi
25448
1db8dc4a 25449if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523 25450 if test "$wxUSE_MAC" = 1; then
5c6fa7d2
RR
25451 { echo "$as_me:25451: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
25452echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
25453 wxUSE_TOGGLEBTN=no
25454 fi
25455 if test "$wxUSE_UNIVERSAL" = "yes"; then
5c6fa7d2
RR
25456 { echo "$as_me:25456: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
25457echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
25458 wxUSE_TOGGLEBTN=no
25459 fi
25460
25461 if test "$wxUSE_TOGGLEBTN" = "yes"; then
5c6fa7d2 25462 cat >>confdefs.h <<\EOF
1db8dc4a
VZ
25463#define wxUSE_TOGGLEBTN 1
25464EOF
25465
1e6feb95 25466 USES_CONTROLS=1
a45d7ab7 25467 fi
1db8dc4a
VZ
25468fi
25469
360d6699 25470if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
5c6fa7d2 25471 cat >>confdefs.h <<\EOF
360d6699
VZ
25472#define wxUSE_TOOLBAR_SIMPLE 1
25473EOF
25474
25475 wxUSE_TOOLBAR="yes"
1e6feb95 25476 USES_CONTROLS=1
360d6699
VZ
25477fi
25478
10f2d63a 25479if test "$wxUSE_TOOLBAR" = "yes"; then
5c6fa7d2 25480 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25481#define wxUSE_TOOLBAR 1
25482EOF
25483
1e6feb95 25484 USES_CONTROLS=1
698dcdb6 25485
360d6699
VZ
25486 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
25487 wxUSE_TOOLBAR_NATIVE="yes"
25488 fi
25489
1e6feb95 25490 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
5c6fa7d2 25491 cat >>confdefs.h <<\EOF
360d6699
VZ
25492#define wxUSE_TOOLBAR_NATIVE 1
25493EOF
25494
1e6feb95
VZ
25495 USES_CONTROLS=1
25496 fi
25497
25498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
25499fi
25500
10f2d63a
VZ
25501if test "$wxUSE_TOOLTIPS" = "yes"; then
25502 if test "$wxUSE_MOTIF" = 1; then
5c6fa7d2
RR
25503 { echo "$as_me:25503: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
25504echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a
VZ
25505 else
25506 if test "$wxUSE_WINE" = 1; then
5c6fa7d2
RR
25507 { echo "$as_me:25507: WARNING: wxTooltip not supported under WINE... disabled" >&5
25508echo "$as_me: WARNING: wxTooltip not supported under WINE... disabled" >&2;}
10f2d63a 25509 else
69d27ff7 25510 if test "$wxUSE_UNIVERSAL" = "yes"; then
5c6fa7d2
RR
25511 { echo "$as_me:25511: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
25512echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
69d27ff7 25513 else
5c6fa7d2 25514 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25515#define wxUSE_TOOLTIPS 1
25516EOF
25517
69d27ff7 25518 fi
10f2d63a
VZ
25519 fi
25520 fi
25521fi
25522
25523if test "$wxUSE_TREECTRL" = "yes"; then
25524 if test "$wxUSE_IMAGLIST" = "yes"; then
5c6fa7d2 25525 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25526#define wxUSE_TREECTRL 1
25527EOF
25528
1e6feb95 25529 USES_CONTROLS=1
10f2d63a
VZ
25530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
25531 else
5c6fa7d2
RR
25532 { echo "$as_me:25532: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
25533echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
25534 fi
25535fi
25536
9f41d601 25537if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 25538 if test "$wxUSE_MAC" = 1; then
5c6fa7d2
RR
25539 { echo "$as_me:25539: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
25540echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 25541 else
485cf710 25542 if test "$wxUSE_MOTIF" = 1; then
5c6fa7d2
RR
25543 { echo "$as_me:25543: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
25544echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 25545 else
3c011993 25546 if test "$wxUSE_PM" = 1; then
5c6fa7d2
RR
25547 { echo "$as_me:25547: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
25548echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 25549 else
5c6fa7d2 25550 cat >>confdefs.h <<\EOF
9f41d601
RR
25551#define wxUSE_POPUPWIN 1
25552EOF
25553
3c011993
VZ
25554 USES_CONTROLS=1
25555 fi
485cf710 25556 fi
6abe4b65 25557 fi
9f41d601
RR
25558fi
25559
dd964dcc 25560if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 25561 if test "$wxUSE_PM" = 1; then
5c6fa7d2
RR
25562 { echo "$as_me:25562: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
25563echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 25564 else
5c6fa7d2 25565 cat >>confdefs.h <<\EOF
dd964dcc
VZ
25566#define wxUSE_TIPWINDOW 1
25567EOF
25568
3c011993 25569 fi
dd964dcc
VZ
25570fi
25571
1e6feb95 25572if test "$USES_CONTROLS" = 1; then
5c6fa7d2 25573 cat >>confdefs.h <<\EOF
1e6feb95 25574#define wxUSE_CONTROLS 1
10f2d63a
VZ
25575EOF
25576
10f2d63a
VZ
25577fi
25578
24176f2c 25579if test "$wxUSE_TREELAYOUT" = "yes"; then
5c6fa7d2 25580 cat >>confdefs.h <<\EOF
24176f2c
GD
25581#define wxUSE_TREELAYOUT 1
25582EOF
25583
25584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
25585fi
1e6feb95 25586
24fd6d87 25587if test "$wxUSE_DRAGIMAGE" = "yes"; then
5c6fa7d2 25588 cat >>confdefs.h <<\EOF
24fd6d87
VZ
25589#define wxUSE_DRAGIMAGE 1
25590EOF
25591
25592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
25593fi
25594
1e6feb95 25595if test "$wxUSE_MENUS" = "yes"; then
5c6fa7d2 25596 cat >>confdefs.h <<\EOF
1e6feb95 25597#define wxUSE_MENUS 1
10f2d63a
VZ
25598EOF
25599
1e6feb95 25600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
25601fi
25602
1e6feb95 25603if test "$wxUSE_METAFILE" = "yes"; then
5c6fa7d2 25604 cat >>confdefs.h <<\EOF
1e6feb95 25605#define wxUSE_METAFILE 1
10f2d63a
VZ
25606EOF
25607
10f2d63a
VZ
25608fi
25609
1e6feb95 25610if test "$wxUSE_MIMETYPE" = "yes"; then
5c6fa7d2 25611 cat >>confdefs.h <<\EOF
1e6feb95 25612#define wxUSE_MIMETYPE 1
10f2d63a
VZ
25613EOF
25614
10f2d63a
VZ
25615fi
25616
3e44f09d 25617if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
5c6fa7d2 25618 cat >>confdefs.h <<\EOF
3e44f09d
VZ
25619#define wxUSE_SYSTEM_OPTIONS 1
25620EOF
25621
321d2b14
VZ
25622if test "$TOOLKIT" = "MSW"; then
25623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
25624fi
25625
3e44f09d
VZ
25626fi
25627
4cdb0ab0 25628if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 25629 if test "$wxUSE_SOCKETS" != "yes"; then
5c6fa7d2
RR
25630 { echo "$as_me:25630: WARNING: Protocol classes require sockets... disabled" >&5
25631echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
25632 wxUSE_PROTOCOL=no
25633 fi
25634
25635 if test "$wxUSE_PROTOCOL" = "yes"; then
5c6fa7d2 25636 cat >>confdefs.h <<\EOF
4cdb0ab0
VS
25637#define wxUSE_PROTOCOL 1
25638EOF
25639
3954f9ca 25640 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
5c6fa7d2 25641 cat >>confdefs.h <<\EOF
4cdb0ab0
VS
25642#define wxUSE_PROTOCOL_HTTP 1
25643EOF
25644
3954f9ca
VS
25645 fi
25646 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
5c6fa7d2 25647 cat >>confdefs.h <<\EOF
4cdb0ab0
VS
25648#define wxUSE_PROTOCOL_FTP 1
25649EOF
25650
3954f9ca
VS
25651 fi
25652 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
5c6fa7d2 25653 cat >>confdefs.h <<\EOF
3954f9ca
VS
25654#define wxUSE_PROTOCOL_FILE 1
25655EOF
25656
25657 fi
4cdb0ab0 25658 fi
3954f9ca
VS
25659fi
25660
25661if test "$wxUSE_URL" = "yes"; then
25662 if test "$wxUSE_PROTOCOL" != "yes"; then
5c6fa7d2
RR
25663 { echo "$as_me:25663: WARNING: wxURL class requires wxProtocol... disabled" >&5
25664echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
25665 wxUSE_URL=no
25666 fi
25667 if test "$wxUSE_URL" = "yes"; then
5c6fa7d2 25668 cat >>confdefs.h <<\EOF
3954f9ca 25669#define wxUSE_URL 1
4cdb0ab0
VS
25670EOF
25671
25672 fi
25673fi
25674
10f2d63a 25675if test "$wxUSE_MINIFRAME" = "yes"; then
5c6fa7d2 25676 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25677#define wxUSE_MINIFRAME 1
25678EOF
25679
25680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
25681fi
25682
25683if test "$wxUSE_HTML" = "yes"; then
5c6fa7d2 25684 cat >>confdefs.h <<\EOF
10f2d63a
VZ
25685#define wxUSE_HTML 1
25686EOF
25687
25688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
25689fi
25690
25691if test "$wxUSE_VALIDATORS" = "yes"; then
5c6fa7d2 25692 cat >>confdefs.h <<\EOF
1e487827
VS
25693#define wxUSE_VALIDATORS 1
25694EOF
703e0a69 25695
698dcdb6
VZ
25696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
25697fi
25698
edae8572 25699if test "$wxUSE_PALETTE" = "yes" ; then
5c6fa7d2 25700 cat >>confdefs.h <<\EOF
edae8572
VZ
25701#define wxUSE_PALETTE 1
25702EOF
25703
25704fi
25705
698dcdb6 25706if test "$wxUSE_IMAGE" = "yes" ; then
5c6fa7d2 25707 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25708#define wxUSE_IMAGE 1
25709EOF
25710
25711fi
25712
25713if test "$wxUSE_GIF" = "yes" ; then
5c6fa7d2 25714 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25715#define wxUSE_GIF 1
25716EOF
25717
25718fi
25719
25720if test "$wxUSE_PCX" = "yes" ; then
5c6fa7d2 25721 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25722#define wxUSE_PCX 1
25723EOF
25724
25725fi
25726
4b6b4dfc 25727if test "$wxUSE_IFF" = "yes" ; then
5c6fa7d2 25728 cat >>confdefs.h <<\EOF
4b6b4dfc
RR
25729#define wxUSE_IFF 1
25730EOF
25731
25732fi
25733
698dcdb6 25734if test "$wxUSE_PNM" = "yes" ; then
5c6fa7d2 25735 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25736#define wxUSE_PNM 1
25737EOF
25738
25739fi
25740
25741if test "$wxUSE_XPM" = "yes" ; then
5c6fa7d2 25742 cat >>confdefs.h <<\EOF
698dcdb6
VZ
25743#define wxUSE_XPM 1
25744EOF
25745
25746fi
25747
658974ae 25748if test "$wxUSE_ICO_CUR" = "yes" ; then
5c6fa7d2 25749 cat >>confdefs.h <<\EOF
658974ae
VS
25750#define wxUSE_ICO_CUR 1
25751EOF
25752
25753fi
25754
a72a4bfa
VS
25755if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
25756 LIBS=" -lunicows $LIBS"
25757fi
25758
1e6feb95 25759if test "$wxUSE_CHOICEDLG" = "yes"; then
5c6fa7d2 25760 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25761#define wxUSE_CHOICEDLG 1
25762EOF
25763
25764fi
25765
25766if test "$wxUSE_COLOURDLG" = "yes"; then
5c6fa7d2 25767 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25768#define wxUSE_COLOURDLG 1
25769EOF
25770
25771fi
25772
25773if test "$wxUSE_FILEDLG" = "yes"; then
5c6fa7d2 25774 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25775#define wxUSE_FILEDLG 1
25776EOF
25777
25778fi
25779
8db37e06 25780if test "$wxUSE_FINDREPLDLG" = "yes"; then
5c6fa7d2 25781 cat >>confdefs.h <<\EOF
8db37e06
VZ
25782#define wxUSE_FINDREPLDLG 1
25783EOF
25784
25785fi
25786
1e6feb95 25787if test "$wxUSE_FONTDLG" = "yes"; then
5c6fa7d2 25788 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25789#define wxUSE_FONTDLG 1
25790EOF
25791
25792fi
25793
25794if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 25795 if test "$wxUSE_TREECTRL" != "yes"; then
5c6fa7d2
RR
25796 { echo "$as_me:25796: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
25797echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 25798 else
5c6fa7d2 25799 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25800#define wxUSE_DIRDLG 1
25801EOF
25802
1e6feb95
VZ
25803 fi
25804fi
25805
25806if test "$wxUSE_MSGDLG" = "yes"; then
5c6fa7d2 25807 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25808#define wxUSE_MSGDLG 1
25809EOF
25810
25811fi
25812
25813if test "$wxUSE_NUMBERDLG" = "yes"; then
5c6fa7d2 25814 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25815#define wxUSE_NUMBERDLG 1
25816EOF
25817
25818fi
25819
25820if test "$wxUSE_PROGRESSDLG" = "yes"; then
25821 if test "$wxUSE_CONSTRAINTS" != "yes"; then
5c6fa7d2
RR
25822 { echo "$as_me:25822: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
25823echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 25824 else
5c6fa7d2 25825 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25826#define wxUSE_PROGRESSDLG 1
25827EOF
25828
25829 fi
25830fi
25831
cbca9943 25832if test "$wxUSE_SPLASH" = "yes"; then
5c6fa7d2 25833 cat >>confdefs.h <<\EOF
cbca9943
VZ
25834#define wxUSE_SPLASH 1
25835EOF
25836
25837fi
25838
1e6feb95
VZ
25839if test "$wxUSE_STARTUP_TIPS" = "yes"; then
25840 if test "$wxUSE_CONSTRAINTS" != "yes"; then
5c6fa7d2
RR
25841 { echo "$as_me:25841: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
25842echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 25843 else
5c6fa7d2 25844 cat >>confdefs.h <<\EOF
1e6feb95
VZ
25845#define wxUSE_STARTUP_TIPS 1
25846EOF
25847
7b4a847f
RR
25848 fi
25849fi
579d8138 25850
5c6fa7d2
RR
25851if test "$wxUSE_TEXTDLG" = "yes"; then
25852 cat >>confdefs.h <<\EOF
25853#define wxUSE_TEXTDLG 1
25854EOF
2f51a9ec 25855
5c6fa7d2 25856fi
2f51a9ec 25857
5c6fa7d2
RR
25858if test "$wxUSE_WIZARDDLG" = "yes"; then
25859 cat >>confdefs.h <<\EOF
25860#define wxUSE_WIZARDDLG 1
25861EOF
2f51a9ec 25862
5c6fa7d2
RR
25863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
25864fi
2f51a9ec 25865
5c6fa7d2
RR
25866if test "$cross_compiling" = "yes"; then
25867 OSINFO="\"$host\""
25868else
25869 OSINFO=`uname -s -r -m`
25870 OSINFO="\"$OSINFO\""
25871fi
f6bcfd97 25872
5c6fa7d2
RR
25873cat >>confdefs.h <<EOF
25874#define WXWIN_OS_DESCRIPTION $OSINFO
25875EOF
dad6c0ea 25876
5c6fa7d2
RR
25877if test "x$prefix" != "xNONE"; then
25878 wxPREFIX=$prefix
25879else
25880 wxPREFIX=$ac_default_prefix
25881fi
caa2c79b 25882
5c6fa7d2
RR
25883cat >>confdefs.h <<EOF
25884#define wxINSTALL_PREFIX "$wxPREFIX"
25885EOF
3711412e 25886
5c6fa7d2
RR
25887if test "$wxUSE_MAC" = 1 ; then
25888 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
25889fi
1e6feb95 25890
5c6fa7d2 25891LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
1e6feb95 25892
5c6fa7d2 25893if test "$wxUSE_GUI" = "yes"; then
885d4bf5 25894
5c6fa7d2 25895 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
885d4bf5 25896
5c6fa7d2
RR
25897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
25898 drawing dynamic erase event exec font image \
25899 minimal propsize rotate widgets"
885d4bf5 25900
5c6fa7d2
RR
25901 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
25902else
25903 SAMPLES_SUBDIRS="console"
25904fi
885d4bf5 25905
5c6fa7d2
RR
25906INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
25907-I\${top_srcdir}/include \
25908$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
25909$TOOLKIT_INCLUDE"
9b695262 25910
5c6fa7d2
RR
25911if test "$wxUSE_GTK" = 1; then
25912 WXCONFIG_INCLUDE=
25913else
25914 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
25915fi
9b695262 25916
5c6fa7d2
RR
25917if test "$GXX" = yes ; then
25918 CXXWARNINGS="-Wall"
62d0491b 25919
5c6fa7d2
RR
25920 if test "$wxUSE_NO_DEPS" = "no" ; then
25921 CFLAGS="-MMD $CFLAGS"
25922 CXXFLAGS="-MMD $CXXFLAGS"
25923 fi
25924fi
ef7f2189 25925
5c6fa7d2 25926EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
40f7145c 25927
5c6fa7d2
RR
25928CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
25929CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
25930LIBS=`echo $LIBS | sed 's/ \+/ /g'`
3bd8fb5f 25931
5c6fa7d2 25932LDFLAGS="$LDFLAGS $PROFILE"
10f2d63a 25933
5c6fa7d2 25934SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
10f2d63a 25935
5c6fa7d2
RR
25936echo "$as_me:25936: checking whether ${MAKE-make} sets \${MAKE}" >&5
25937echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
25938set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
25939if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
25940 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25941else
5c6fa7d2 25942 cat >conftest.make <<\EOF
10f2d63a
VZ
25943all:
25944 @echo 'ac_maketemp="${MAKE}"'
25945EOF
25946# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5c6fa7d2 25947eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10f2d63a
VZ
25948if test -n "$ac_maketemp"; then
25949 eval ac_cv_prog_make_${ac_make}_set=yes
25950else
25951 eval ac_cv_prog_make_${ac_make}_set=no
25952fi
5c6fa7d2 25953rm -f conftest.make
10f2d63a
VZ
25954fi
25955if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5c6fa7d2
RR
25956 echo "$as_me:25956: result: yes" >&5
25957echo "${ECHO_T}yes" >&6
10f2d63a
VZ
25958 SET_MAKE=
25959else
5c6fa7d2
RR
25960 echo "$as_me:25960: result: no" >&5
25961echo "${ECHO_T}no" >&6
10f2d63a
VZ
25962 SET_MAKE="MAKE=${MAKE-make}"
25963fi
25964
3a922bb4
RL
25965if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
25966 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 25967fi
665bbe97 25968
5c6fa7d2 25969ac_config_headers="$ac_config_headers setup.h:setup.h.in"
10f2d63a 25970
57973b9c
VZ
25971wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
25972wx_cv_if_gnu_make=$IF_GNU_MAKE
25973wx_cv_path_ifs=$PATH_IFS
25974wx_cv_program_ext=$PROGRAM_EXT
25975wx_cv_target_library=$WX_TARGET_LIBRARY
25976wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
25977wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
25978export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
25979 wx_cv_path_ifs wx_cv_program_ext \
25980 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
25981
5c6fa7d2 25982subdirs="$subdirs demos samples utils contrib"
10f2d63a 25983
5c6fa7d2
RR
25984ac_config_files="$ac_config_files wx-config src/make.env src/makeprog.env src/makelib.env Makefile"
25985ac_config_commands="$ac_config_commands default"
25986cat >confcache <<\_ACEOF
10f2d63a
VZ
25987# This file is a shell script that caches the results of configure
25988# tests run on this system so they can be shared between configure
5c6fa7d2
RR
25989# scripts and configure runs, see configure's option --config-cache.
25990# It is not useful on other systems. If it contains results you don't
25991# want to keep, you may remove or edit it.
10f2d63a 25992#
5c6fa7d2
RR
25993# config.status only pays attention to the cache file if you give it
25994# the --recheck option to rerun configure.
10f2d63a 25995#
5c6fa7d2
RR
25996# `ac_cv_env_foo' variables (set or unset) will be overriden when
25997# loading this file, other *unset* `ac_cv_foo' will be assigned the
25998# following values.
25999
26000_ACEOF
26001
10f2d63a
VZ
26002# The following way of writing the cache mishandles newlines in values,
26003# but we know of no workaround that is simple, portable, and efficient.
26004# So, don't put newlines in cache variables' values.
26005# Ultrix sh set writes to stderr and can't be redirected directly,
26006# and sets the high bit in the cache file unless we assign to the vars.
5c6fa7d2
RR
26007{
26008 (set) 2>&1 |
26009 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26010 *ac_space=\ *)
26011 # `set' does not quote correctly, so add quotes (double-quote
26012 # substitution turns \\\\ into \\, and sed turns \\ into \).
26013 sed -n \
26014 "s/'/'\\\\''/g;
26015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26016 ;;
26017 *)
26018 # `set' quotes correctly as required by POSIX, so do not add quotes.
26019 sed -n \
26020 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26021 ;;
26022 esac;
26023} |
26024 sed '
26025 t clear
26026 : clear
26027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26028 t end
26029 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26030 : end' >>confcache
26031if cmp -s $cache_file confcache; then :; else
10f2d63a 26032 if test -w $cache_file; then
5c6fa7d2
RR
26033 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26034 cat confcache >$cache_file
10f2d63a
VZ
26035 else
26036 echo "not updating unwritable cache $cache_file"
26037 fi
26038fi
26039rm -f confcache
26040
10f2d63a
VZ
26041test "x$prefix" = xNONE && prefix=$ac_default_prefix
26042# Let make expand exec_prefix.
26043test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26044
5c6fa7d2
RR
26045# VPATH may cause trouble with some makes, so we remove $(srcdir),
26046# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26047# trailing colons and then remove the whole line if VPATH becomes empty
26048# (actually we leave an empty line to preserve line numbers).
10f2d63a 26049if test "x$srcdir" = x.; then
5c6fa7d2
RR
26050 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26051s/:*\$(srcdir):*/:/;
26052s/:*\${srcdir}:*/:/;
26053s/:*@srcdir@:*/:/;
26054s/^\([^=]*=[ ]*\):*/\1/;
26055s/:*$//;
26056s/^[^=]*=[ ]*$//;
26057}'
10f2d63a
VZ
26058fi
26059
10f2d63a
VZ
26060DEFS=-DHAVE_CONFIG_H
26061
10f2d63a 26062: ${CONFIG_STATUS=./config.status}
5c6fa7d2
RR
26063ac_clean_files_save=$ac_clean_files
26064ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26065{ echo "$as_me:26065: creating $CONFIG_STATUS" >&5
26066echo "$as_me: creating $CONFIG_STATUS" >&6;}
26067cat >$CONFIG_STATUS <<_ACEOF
26068#! $SHELL
10f2d63a
VZ
26069# Generated automatically by configure.
26070# Run this file to recreate the current configuration.
52127426 26071# Compiler output produced by configure, useful for debugging
5c6fa7d2 26072# configure, is in config.log if it exists.
579d8138 26073
5c6fa7d2
RR
26074debug=false
26075SHELL=\${CONFIG_SHELL-$SHELL}
26076ac_cs_invocation="\$0 \$@"
26077
26078_ACEOF
26079
26080cat >>$CONFIG_STATUS <<\_ACEOF
26081# Be Bourne compatible
26082if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26083 emulate sh
26084 NULLCMD=:
26085elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26086 set -o posix
26087fi
26088
26089# Name of the executable.
26090as_me=`echo "$0" |sed 's,.*[\\/],,'`
26091
26092if expr a : '\(a\)' >/dev/null 2>&1; then
26093 as_expr=expr
26094else
26095 as_expr=false
26096fi
26097
26098rm -f conf$$ conf$$.exe conf$$.file
26099echo >conf$$.file
26100if ln -s conf$$.file conf$$ 2>/dev/null; then
26101 # We could just check for DJGPP; but this test a) works b) is more generic
26102 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26103 if test -f conf$$.exe; then
26104 # Don't use ln at all; we don't have any links
26105 as_ln_s='cp -p'
26106 else
26107 as_ln_s='ln -s'
26108 fi
26109elif ln conf$$.file conf$$ 2>/dev/null; then
26110 as_ln_s=ln
26111else
26112 as_ln_s='cp -p'
26113fi
26114rm -f conf$$ conf$$.exe conf$$.file
26115
26116as_executable_p="test -f"
26117
26118# Support unset when possible.
26119if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26120 as_unset=unset
26121else
26122 as_unset=false
26123fi
26124
26125# NLS nuisances.
26126$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
26127$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
26128$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
26129$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
26130$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
26131$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
26132$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
26133$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
26134
26135# IFS
26136# We need space, tab and new line, in precisely that order.
26137as_nl='
26138'
26139IFS=" $as_nl"
26140
26141# CDPATH.
26142$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
26143
26144exec 6>&1
26145
26146_ACEOF
26147
26148# Files that config.status was made for.
26149if test -n "$ac_config_files"; then
26150 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26151fi
26152
26153if test -n "$ac_config_headers"; then
26154 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26155fi
26156
26157if test -n "$ac_config_links"; then
26158 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26159fi
26160
26161if test -n "$ac_config_commands"; then
26162 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26163fi
26164
26165cat >>$CONFIG_STATUS <<\EOF
26166
26167ac_cs_usage="\
26168\`$as_me' instantiates files from templates according to the
26169current configuration.
26170
26171Usage: $0 [OPTIONS] [FILE]...
26172
26173 -h, --help print this help, then exit
26174 -V, --version print version number, then exit
26175 -d, --debug don't remove temporary files
26176 --recheck update $as_me by reconfiguring in the same conditions
26177 --file=FILE[:TEMPLATE]
26178 instantiate the configuration file FILE
26179 --header=FILE[:TEMPLATE]
26180 instantiate the configuration header FILE
26181
26182Configuration files:
26183$config_files
26184
26185Configuration headers:
26186$config_headers
26187
26188Configuration commands:
26189$config_commands
26190
26191Report bugs to <bug-autoconf@gnu.org>."
26192EOF
26193
26194cat >>$CONFIG_STATUS <<EOF
26195ac_cs_version="\\
26196config.status
26197configured by $0, generated by GNU Autoconf 2.52,
26198 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26199
26200Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26201Free Software Foundation, Inc.
26202This config.status script is free software; the Free Software Foundation
26203gives unlimited permission to copy, distribute and modify it."
26204srcdir=$srcdir
26205INSTALL="$INSTALL"
26206EOF
26207
26208cat >>$CONFIG_STATUS <<\EOF
26209# If no file are specified by the user, then we need to provide default
26210# value. By we need to know if files were specified by the user.
26211ac_need_defaults=:
26212while test $# != 0
7b4a847f 26213do
5c6fa7d2
RR
26214 case $1 in
26215 --*=*)
26216 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26217 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26218 shift
26219 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
26220 shift
26221 ;;
26222 -*);;
26223 *) # This is not an option, so the user has probably given explicit
26224 # arguments.
26225 ac_need_defaults=false;;
26226 esac
26227
26228 case $1 in
26229 # Handling of the options.
26230EOF
26231cat >>$CONFIG_STATUS <<EOF
52127426 26232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5c6fa7d2
RR
26233 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
26234 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
26235EOF
26236cat >>$CONFIG_STATUS <<\EOF
26237 --version | --vers* | -V )
26238 echo "$ac_cs_version"; exit 0 ;;
26239 --he | --h)
26240 # Conflict between --help and --header
26241 { { echo "$as_me:26241: error: ambiguous option: $1
26242Try \`$0 --help' for more information." >&5
26243echo "$as_me: error: ambiguous option: $1
26244Try \`$0 --help' for more information." >&2;}
26245 { (exit 1); exit 1; }; };;
26246 --help | --hel | -h )
26247 echo "$ac_cs_usage"; exit 0 ;;
26248 --debug | --d* | -d )
26249 debug=: ;;
26250 --file | --fil | --fi | --f )
26251 shift
26252 CONFIG_FILES="$CONFIG_FILES $1"
26253 ac_need_defaults=false;;
26254 --header | --heade | --head | --hea )
26255 shift
26256 CONFIG_HEADERS="$CONFIG_HEADERS $1"
26257 ac_need_defaults=false;;
26258
26259 # This is an error.
26260 -*) { { echo "$as_me:26260: error: unrecognized option: $1
26261Try \`$0 --help' for more information." >&5
26262echo "$as_me: error: unrecognized option: $1
26263Try \`$0 --help' for more information." >&2;}
26264 { (exit 1); exit 1; }; } ;;
26265
26266 *) ac_config_targets="$ac_config_targets $1" ;;
26267
7b4a847f 26268 esac
5c6fa7d2 26269 shift
579d8138 26270done
7b4a847f 26271
5c6fa7d2
RR
26272exec 5>>config.log
26273cat >&5 << _ACEOF
7b4a847f 26274
5c6fa7d2
RR
26275## ----------------------- ##
26276## Running config.status. ##
26277## ----------------------- ##
7b4a847f 26278
5c6fa7d2
RR
26279This file was extended by $as_me 2.52, executed with
26280 CONFIG_FILES = $CONFIG_FILES
26281 CONFIG_HEADERS = $CONFIG_HEADERS
26282 CONFIG_LINKS = $CONFIG_LINKS
26283 CONFIG_COMMANDS = $CONFIG_COMMANDS
26284 > $ac_cs_invocation
26285on `(hostname || uname -n) 2>/dev/null | sed 1q`
7b4a847f 26286
5c6fa7d2 26287_ACEOF
579d8138
VS
26288EOF
26289
5c6fa7d2
RR
26290cat >>$CONFIG_STATUS <<EOF
26291#
26292# INIT-COMMANDS section.
26293#
52127426 26294
5c6fa7d2
RR
26295 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
26296 LN_S="${LN_S}"
26297
26298EOF
26299
26300cat >>$CONFIG_STATUS <<\EOF
26301for ac_config_target in $ac_config_targets
26302do
26303 case "$ac_config_target" in
26304 # Handling of arguments.
26305 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
26306 "src/make.env" ) CONFIG_FILES="$CONFIG_FILES src/make.env" ;;
26307 "src/makeprog.env" ) CONFIG_FILES="$CONFIG_FILES src/makeprog.env" ;;
26308 "src/makelib.env" ) CONFIG_FILES="$CONFIG_FILES src/makelib.env" ;;
26309 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26310 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26311 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h:setup.h.in" ;;
26312 *) { { echo "$as_me:26312: error: invalid argument: $ac_config_target" >&5
26313echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26314 { (exit 1); exit 1; }; };;
26315 esac
52127426 26316done
5c6fa7d2
RR
26317
26318# If the user did not use the arguments to specify the items to instantiate,
26319# then the envvar interface is used. Set only those that are not.
26320# We use the long form for the default assignment because of an extremely
26321# bizarre bug on SunOS 4.1.3.
26322if $ac_need_defaults; then
26323 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26324 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26325 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
52127426 26326fi
5c6fa7d2
RR
26327
26328# Create a temporary directory, and hook for its removal unless debugging.
26329$debug ||
26330{
26331 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26332 trap '{ (exit 1); exit 1; }' 1 2 13 15
26333}
26334
26335# Create a (secure) tmp directory for tmp files.
26336: ${TMPDIR=/tmp}
26337{
26338 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
26339 test -n "$tmp" && test -d "$tmp"
26340} ||
26341{
26342 tmp=$TMPDIR/cs$$-$RANDOM
26343 (umask 077 && mkdir $tmp)
26344} ||
26345{
26346 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
26347 { (exit 1); exit 1; }
26348}
26349
26350EOF
26351
26352cat >>$CONFIG_STATUS <<EOF
26353
26354#
26355# CONFIG_FILES section.
26356#
26357
26358# No need to generate the scripts if there are no CONFIG_FILES.
26359# This happens for instance when ./config.status config.h
26360if test -n "\$CONFIG_FILES"; then
26361 # Protect against being on the right side of a sed subst in config.status.
26362 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26363 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26364s,@SHELL@,$SHELL,;t t
26365s,@exec_prefix@,$exec_prefix,;t t
26366s,@prefix@,$prefix,;t t
26367s,@program_transform_name@,$program_transform_name,;t t
26368s,@bindir@,$bindir,;t t
26369s,@sbindir@,$sbindir,;t t
26370s,@libexecdir@,$libexecdir,;t t
26371s,@datadir@,$datadir,;t t
26372s,@sysconfdir@,$sysconfdir,;t t
26373s,@sharedstatedir@,$sharedstatedir,;t t
26374s,@localstatedir@,$localstatedir,;t t
26375s,@libdir@,$libdir,;t t
26376s,@includedir@,$includedir,;t t
26377s,@oldincludedir@,$oldincludedir,;t t
26378s,@infodir@,$infodir,;t t
26379s,@mandir@,$mandir,;t t
26380s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26381s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26382s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26383s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26384s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26385s,@build_alias@,$build_alias,;t t
26386s,@host_alias@,$host_alias,;t t
26387s,@target_alias@,$target_alias,;t t
26388s,@ECHO_C@,$ECHO_C,;t t
26389s,@ECHO_N@,$ECHO_N,;t t
26390s,@ECHO_T@,$ECHO_T,;t t
26391s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26392s,@DEFS@,$DEFS,;t t
26393s,@LIBS@,$LIBS,;t t
26394s,@build@,$build,;t t
26395s,@build_cpu@,$build_cpu,;t t
26396s,@build_vendor@,$build_vendor,;t t
26397s,@build_os@,$build_os,;t t
26398s,@host@,$host,;t t
26399s,@host_cpu@,$host_cpu,;t t
26400s,@host_vendor@,$host_vendor,;t t
26401s,@host_os@,$host_os,;t t
26402s,@target@,$target,;t t
26403s,@target_cpu@,$target_cpu,;t t
26404s,@target_vendor@,$target_vendor,;t t
26405s,@target_os@,$target_os,;t t
26406s,@CC@,$CC,;t t
26407s,@CFLAGS@,$CFLAGS,;t t
26408s,@LDFLAGS@,$LDFLAGS,;t t
26409s,@CPPFLAGS@,$CPPFLAGS,;t t
26410s,@ac_ct_CC@,$ac_ct_CC,;t t
26411s,@EXEEXT@,$EXEEXT,;t t
26412s,@OBJEXT@,$OBJEXT,;t t
26413s,@CPP@,$CPP,;t t
26414s,@CXX@,$CXX,;t t
26415s,@CXXFLAGS@,$CXXFLAGS,;t t
26416s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26417s,@RANLIB@,$RANLIB,;t t
26418s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26419s,@AR@,$AR,;t t
26420s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26421s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26422s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26423s,@STRIP@,$STRIP,;t t
26424s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
26425s,@YACC@,$YACC,;t t
26426s,@LEX@,$LEX,;t t
26427s,@LEXLIB@,$LEXLIB,;t t
26428s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26429s,@LN_S@,$LN_S,;t t
26430s,@CXXCPP@,$CXXCPP,;t t
26431s,@PKG_CONFIG@,$PKG_CONFIG,;t t
26432s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
26433s,@GTK_LIBS@,$GTK_LIBS,;t t
26434s,@GTK_CONFIG@,$GTK_CONFIG,;t t
26435s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
26436s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
26437s,@X_CFLAGS@,$X_CFLAGS,;t t
26438s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26439s,@X_LIBS@,$X_LIBS,;t t
26440s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26441s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
26442s,@RESCOMP@,$RESCOMP,;t t
26443s,@DEREZ@,$DEREZ,;t t
26444s,@LIBICONV@,$LIBICONV,;t t
26445s,@LEX_STEM@,$LEX_STEM,;t t
26446s,@PATH_IFS@,$PATH_IFS,;t t
26447s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
26448s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
26449s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
26450s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
26451s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
26452s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
26453s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
26454s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
26455s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
26456s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
26457s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
26458s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
26459s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
26460s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
26461s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
26462s,@WX_ALL@,$WX_ALL,;t t
26463s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
26464s,@SHARED_LD@,$SHARED_LD,;t t
26465s,@PIC_FLAG@,$PIC_FLAG,;t t
26466s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
26467s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
26468s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
26469s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
26470s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
26471s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
26472s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
26473s,@USE_GUI@,$USE_GUI,;t t
26474s,@AFMINSTALL@,$AFMINSTALL,;t t
26475s,@TOOLKIT@,$TOOLKIT,;t t
26476s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
26477s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
26478s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
26479s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
26480s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
26481s,@cross_compiling@,$cross_compiling,;t t
26482s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
26483s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
26484s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
26485s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
26486s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
26487s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
26488s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
26489s,@ALL_HEADERS@,$ALL_HEADERS,;t t
26490s,@ALL_SOURCES@,$ALL_SOURCES,;t t
26491s,@GUIDIST@,$GUIDIST,;t t
26492s,@PORT_FILES@,$PORT_FILES,;t t
26493s,@DISTDIR@,$DISTDIR,;t t
26494s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
26495s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
26496s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
26497s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
26498s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
26499s,@EXTRADEFS@,$EXTRADEFS,;t t
26500s,@RESFLAGS@,$RESFLAGS,;t t
26501s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
26502s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
26503s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
26504s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
26505s,@LIBWXMACRES@,$LIBWXMACRES,;t t
26506s,@LIBWXMACRESCOMP@,$LIBWXMACRESCOMP,;t t
26507s,@LIBWXMACRESWXCONFIG@,$LIBWXMACRESWXCONFIG,;t t
26508s,@DLLTOOL@,$DLLTOOL,;t t
26509s,@AS@,$AS,;t t
26510s,@NM@,$NM,;t t
26511s,@LD@,$LD,;t t
26512s,@MAKEINFO@,$MAKEINFO,;t t
26513s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
26514s,@SET_MAKE@,$SET_MAKE,;t t
26515s,@subdirs@,$subdirs,;t t
26516CEOF
26517
52127426
JS
26518EOF
26519
5c6fa7d2
RR
26520 cat >>$CONFIG_STATUS <<\EOF
26521 # Split the substitutions into bite-sized pieces for seds with
26522 # small command number limits, like on Digital OSF/1 and HP-UX.
26523 ac_max_sed_lines=48
26524 ac_sed_frag=1 # Number of current file.
26525 ac_beg=1 # First line for current file.
26526 ac_end=$ac_max_sed_lines # Line after last line for current file.
26527 ac_more_lines=:
26528 ac_sed_cmds=
26529 while $ac_more_lines; do
26530 if test $ac_beg -gt 1; then
26531 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26532 else
26533 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26534 fi
26535 if test ! -s $tmp/subs.frag; then
26536 ac_more_lines=false
26537 else
26538 # The purpose of the label and of the branching condition is to
26539 # speed up the sed processing (if there are no `@' at all, there
26540 # is no need to browse any of the substitutions).
26541 # These are the two extra sed commands mentioned above.
26542 (echo ':t
26543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26544 if test -z "$ac_sed_cmds"; then
26545 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26546 else
26547 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26548 fi
26549 ac_sed_frag=`expr $ac_sed_frag + 1`
26550 ac_beg=$ac_end
26551 ac_end=`expr $ac_end + $ac_max_sed_lines`
26552 fi
26553 done
26554 if test -z "$ac_sed_cmds"; then
26555 ac_sed_cmds=cat
26556 fi
26557fi # test -n "$CONFIG_FILES"
698dcdb6 26558
10f2d63a 26559EOF
5c6fa7d2
RR
26560cat >>$CONFIG_STATUS <<\EOF
26561for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10f2d63a 26562 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5c6fa7d2
RR
26563 case $ac_file in
26564 - | *:- | *:-:* ) # input from stdin
26565 cat >$tmp/stdin
26566 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26568 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26570 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
26571 esac
26572
5c6fa7d2
RR
26573 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26574 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26575 X"$ac_file" : 'X\(//\)[^/]' \| \
26576 X"$ac_file" : 'X\(//\)$' \| \
26577 X"$ac_file" : 'X\(/\)' \| \
26578 . : '\(.\)' 2>/dev/null ||
26579echo X"$ac_file" |
26580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26582 /^X\(\/\/\)$/{ s//\1/; q; }
26583 /^X\(\/\).*/{ s//\1/; q; }
26584 s/.*/./; q'`
52127426 26585 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5c6fa7d2
RR
26586 { case "$ac_dir" in
26587 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26588 *) as_incr_dir=.;;
26589esac
26590as_dummy="$ac_dir"
26591for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26592 case $as_mkdir_dir in
26593 # Skip DOS drivespec
26594 ?:) as_incr_dir=$as_mkdir_dir ;;
26595 *)
26596 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26597 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26598 ;;
26599 esac
26600done; }
26601
26602 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
10f2d63a 26603 # A "../" for each directory in $ac_dir_suffix.
5c6fa7d2 26604 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
10f2d63a
VZ
26605 else
26606 ac_dir_suffix= ac_dots=
26607 fi
26608
5c6fa7d2
RR
26609 case $srcdir in
26610 .) ac_srcdir=.
26611 if test -z "$ac_dots"; then
26612 ac_top_srcdir=.
26613 else
26614 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
26615 fi ;;
26616 [\\/]* | ?:[\\/]* )
26617 ac_srcdir=$srcdir$ac_dir_suffix;
26618 ac_top_srcdir=$srcdir ;;
10f2d63a 26619 *) # Relative path.
5c6fa7d2
RR
26620 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
26621 ac_top_srcdir=$ac_dots$srcdir ;;
10f2d63a
VZ
26622 esac
26623
5c6fa7d2
RR
26624 case $INSTALL in
26625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26626 *) ac_INSTALL=$ac_dots$INSTALL ;;
10f2d63a
VZ
26627 esac
26628
5c6fa7d2
RR
26629 if test x"$ac_file" != x-; then
26630 { echo "$as_me:26630: creating $ac_file" >&5
26631echo "$as_me: creating $ac_file" >&6;}
26632 rm -f "$ac_file"
26633 fi
26634 # Let's still pretend it is `configure' which instantiates (i.e., don't
26635 # use $as_me), people would be surprised to read:
26636 # /* config.h. Generated automatically by config.status. */
26637 configure_input="Generated automatically from `echo $ac_file_in |
26638 sed 's,.*/,,'` by configure."
26639
26640 # First look for the input files in the build tree, otherwise in the
26641 # src tree.
26642 ac_file_inputs=`IFS=:
26643 for f in $ac_file_in; do
26644 case $f in
26645 -) echo $tmp/stdin ;;
26646 [\\/$]*)
26647 # Absolute (can't be DOS-style, as IFS=:)
26648 test -f "$f" || { { echo "$as_me:26648: error: cannot find input file: $f" >&5
26649echo "$as_me: error: cannot find input file: $f" >&2;}
26650 { (exit 1); exit 1; }; }
26651 echo $f;;
26652 *) # Relative
26653 if test -f "$f"; then
26654 # Build tree
26655 echo $f
26656 elif test -f "$srcdir/$f"; then
26657 # Source tree
26658 echo $srcdir/$f
26659 else
26660 # /dev/null tree
26661 { { echo "$as_me:26661: error: cannot find input file: $f" >&5
26662echo "$as_me: error: cannot find input file: $f" >&2;}
26663 { (exit 1); exit 1; }; }
26664 fi;;
26665 esac
26666 done` || { (exit 1); exit 1; }
26667EOF
26668cat >>$CONFIG_STATUS <<EOF
26669 sed "$ac_vpsub
26670$extrasub
26671EOF
26672cat >>$CONFIG_STATUS <<\EOF
26673:t
26674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26675s,@configure_input@,$configure_input,;t t
26676s,@srcdir@,$ac_srcdir,;t t
26677s,@top_srcdir@,$ac_top_srcdir,;t t
26678s,@INSTALL@,$ac_INSTALL,;t t
26679" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26680 rm -f $tmp/stdin
26681 if test x"$ac_file" != x-; then
26682 mv $tmp/out $ac_file
26683 else
26684 cat $tmp/out
26685 rm -f $tmp/out
26686 fi
26687
26688done
26689EOF
26690cat >>$CONFIG_STATUS <<\EOF
10f2d63a 26691
5c6fa7d2
RR
26692#
26693# CONFIG_HEADER section.
26694#
10f2d63a
VZ
26695
26696# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26697# NAME is the cpp macro being defined and VALUE is the value it is being given.
26698#
26699# ac_d sets the value in "#define NAME VALUE" lines.
5c6fa7d2
RR
26700ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26701ac_dB='[ ].*$,\1#\2'
26702ac_dC=' '
26703ac_dD=',;t'
26704# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26705ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26706ac_uB='$,\1#\2define\3'
10f2d63a 26707ac_uC=' '
5c6fa7d2 26708ac_uD=',;t'
10f2d63a 26709
5c6fa7d2 26710for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 26711 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5c6fa7d2
RR
26712 case $ac_file in
26713 - | *:- | *:-:* ) # input from stdin
26714 cat >$tmp/stdin
26715 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26716 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26717 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26719 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
26720 esac
26721
5c6fa7d2
RR
26722 test x"$ac_file" != x- && { echo "$as_me:26722: creating $ac_file" >&5
26723echo "$as_me: creating $ac_file" >&6;}
26724
26725 # First look for the input files in the build tree, otherwise in the
26726 # src tree.
26727 ac_file_inputs=`IFS=:
26728 for f in $ac_file_in; do
26729 case $f in
26730 -) echo $tmp/stdin ;;
26731 [\\/$]*)
26732 # Absolute (can't be DOS-style, as IFS=:)
26733 test -f "$f" || { { echo "$as_me:26733: error: cannot find input file: $f" >&5
26734echo "$as_me: error: cannot find input file: $f" >&2;}
26735 { (exit 1); exit 1; }; }
26736 echo $f;;
26737 *) # Relative
26738 if test -f "$f"; then
26739 # Build tree
26740 echo $f
26741 elif test -f "$srcdir/$f"; then
26742 # Source tree
26743 echo $srcdir/$f
26744 else
26745 # /dev/null tree
26746 { { echo "$as_me:26746: error: cannot find input file: $f" >&5
26747echo "$as_me: error: cannot find input file: $f" >&2;}
26748 { (exit 1); exit 1; }; }
26749 fi;;
26750 esac
26751 done` || { (exit 1); exit 1; }
26752 # Remove the trailing spaces.
26753 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26754
26755EOF
26756
26757# Transform confdefs.h into two sed scripts, `conftest.defines' and
26758# `conftest.undefs', that substitutes the proper values into
26759# config.h.in to produce config.h. The first handles `#define'
26760# templates, and the second `#undef' templates.
26761# And first: Protect against being on the right side of a sed subst in
26762# config.status. Protect against being in an unquoted here document
26763# in config.status.
26764rm -f conftest.defines conftest.undefs
26765# Using a here document instead of a string reduces the quoting nightmare.
26766# Putting comments in sed scripts is not portable.
26767#
26768# `end' is used to avoid that the second main sed command (meant for
26769# 0-ary CPP macros) applies to n-ary macro definitions.
26770# See the Autoconf documentation for `clear'.
26771cat >confdef2sed.sed <<\EOF
26772s/[\\&,]/\\&/g
26773s,[\\$`],\\&,g
26774t clear
26775: clear
26776s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
26777t end
26778s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26779: end
26780EOF
26781# If some macros were called several times there might be several times
26782# the same #defines, which is useless. Nevertheless, we may not want to
26783# sort them, since we want the *last* AC-DEFINE to be honored.
26784uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26785sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26786rm -f confdef2sed.sed
10f2d63a
VZ
26787
26788# This sed command replaces #undef with comments. This is necessary, for
26789# example, in the case of _POSIX_SOURCE, which is predefined and required
26790# on some systems where configure will not decide to define it.
5c6fa7d2
RR
26791cat >>conftest.undefs <<\EOF
26792s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10f2d63a
VZ
26793EOF
26794
5c6fa7d2
RR
26795# Break up conftest.defines because some shells have a limit on the size
26796# of here documents, and old seds have small limits too (100 cmds).
26797echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26798echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26799echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26800echo ' :' >>$CONFIG_STATUS
26801rm -f conftest.tail
26802while grep . conftest.defines >/dev/null
26803do
26804 # Write a limited-size here document to $tmp/defines.sed.
26805 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26806 # Speed up: don't consider the non `#define' lines.
26807 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26808 # Work around the forget-to-reset-the-flag bug.
26809 echo 't clr' >>$CONFIG_STATUS
26810 echo ': clr' >>$CONFIG_STATUS
26811 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26812 echo 'CEOF
26813 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26814 rm -f $tmp/in
26815 mv $tmp/out $tmp/in
26816' >>$CONFIG_STATUS
26817 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26818 rm -f conftest.defines
26819 mv conftest.tail conftest.defines
26820done
26821rm -f conftest.defines
26822echo ' fi # egrep' >>$CONFIG_STATUS
26823echo >>$CONFIG_STATUS
10f2d63a 26824
5c6fa7d2
RR
26825# Break up conftest.undefs because some shells have a limit on the size
26826# of here documents, and old seds have small limits too (100 cmds).
26827echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 26828rm -f conftest.tail
5c6fa7d2 26829while grep . conftest.undefs >/dev/null
10f2d63a 26830do
5c6fa7d2
RR
26831 # Write a limited-size here document to $tmp/undefs.sed.
26832 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26833 # Speed up: don't consider the non `#undef'
26834 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26835 # Work around the forget-to-reset-the-flag bug.
26836 echo 't clr' >>$CONFIG_STATUS
26837 echo ': clr' >>$CONFIG_STATUS
26838 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 26839 echo 'CEOF
5c6fa7d2
RR
26840 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26841 rm -f $tmp/in
26842 mv $tmp/out $tmp/in
26843' >>$CONFIG_STATUS
26844 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26845 rm -f conftest.undefs
26846 mv conftest.tail conftest.undefs
10f2d63a 26847done
5c6fa7d2
RR
26848rm -f conftest.undefs
26849
26850cat >>$CONFIG_STATUS <<\EOF
26851 # Let's still pretend it is `configure' which instantiates (i.e., don't
26852 # use $as_me), people would be surprised to read:
26853 # /* config.h. Generated automatically by config.status. */
26854 if test x"$ac_file" = x-; then
26855 echo "/* Generated automatically by configure. */" >$tmp/config.h
10f2d63a 26856 else
5c6fa7d2
RR
26857 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
26858 fi
26859 cat $tmp/in >>$tmp/config.h
26860 rm -f $tmp/in
26861 if test x"$ac_file" != x-; then
26862 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
26863 { echo "$as_me:26863: $ac_file is unchanged" >&5
26864echo "$as_me: $ac_file is unchanged" >&6;}
26865 else
26866 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26867 X"$ac_file" : 'X\(//\)[^/]' \| \
26868 X"$ac_file" : 'X\(//\)$' \| \
26869 X"$ac_file" : 'X\(/\)' \| \
26870 . : '\(.\)' 2>/dev/null ||
26871echo X"$ac_file" |
26872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26874 /^X\(\/\/\)$/{ s//\1/; q; }
26875 /^X\(\/\).*/{ s//\1/; q; }
26876 s/.*/./; q'`
10f2d63a 26877 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5c6fa7d2
RR
26878 { case "$ac_dir" in
26879 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
26880 *) as_incr_dir=.;;
26881esac
26882as_dummy="$ac_dir"
26883for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26884 case $as_mkdir_dir in
26885 # Skip DOS drivespec
26886 ?:) as_incr_dir=$as_mkdir_dir ;;
26887 *)
26888 as_incr_dir=$as_incr_dir/$as_mkdir_dir
26889 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
26890 ;;
26891 esac
26892done; }
26893
26894 fi
26895 rm -f $ac_file
26896 mv $tmp/config.h $ac_file
10f2d63a 26897 fi
5c6fa7d2
RR
26898 else
26899 cat $tmp/config.h
26900 rm -f $tmp/config.h
10f2d63a 26901 fi
5c6fa7d2 26902done
10f2d63a 26903EOF
5c6fa7d2 26904cat >>$CONFIG_STATUS <<\EOF
10f2d63a 26905
5c6fa7d2
RR
26906#
26907# CONFIG_COMMANDS section.
26908#
26909for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26910 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26911 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10f2d63a 26912
5c6fa7d2
RR
26913 case $ac_dest in
26914 default )
652d930d 26915 if test ! -h wx-config; then
991a5759 26916 chmod +x wx-config
3a922bb4
RL
26917 mv wx-config wx${TOOLCHAIN_NAME}-config
26918 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 26919 fi
665bbe97 26920
00cf1208
RR
26921 if test ! -d lib; then
26922 mkdir lib
26923 fi
26924 if test ! -d lib/wx; then
26925 mkdir lib/wx
26926 fi
26927 if test ! -d lib/wx/include; then
26928 mkdir lib/wx/include
26929 fi
3a922bb4
RL
26930 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
26931 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 26932 fi
3a922bb4
RL
26933 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
26934 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
26935 fi
26936 if test -f setup.h; then
3a922bb4 26937 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 26938 fi
5c6fa7d2
RR
26939 ;;
26940 esac
26941done
26942EOF
26943
26944cat >>$CONFIG_STATUS <<\EOF
26945
26946{ (exit 0); exit 0; }
10f2d63a
VZ
26947EOF
26948chmod +x $CONFIG_STATUS
5c6fa7d2
RR
26949ac_clean_files=$ac_clean_files_save
26950
26951# configure is writing to config.log, and then calls config.status.
26952# config.status does its own redirection, appending to config.log.
26953# Unfortunately, on DOS this fails, as config.log is still kept open
26954# by configure, so config.status won't be able to write to it; its
26955# output is simply discarded. So we exec the FD to /dev/null,
26956# effectively closing config.log, so it can be properly (re)opened and
26957# appended to by config.status. When coming back to configure, we
26958# need to make the FD available again.
26959if test "$no_create" != yes; then
26960 ac_cs_success=:
26961 exec 5>/dev/null
26962 $SHELL $CONFIG_STATUS || ac_cs_success=false
26963 exec 5>>config.log
26964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26965 # would make configure fail if this is the last instruction.
26966 $ac_cs_success || { (exit 1); exit 1; }
26967fi
10f2d63a 26968
5c6fa7d2
RR
26969#
26970# CONFIG_SUBDIRS section.
26971#
2224580a
VZ
26972if test "$no_recursion" != yes; then
26973
26974 # Remove --cache-file and --srcdir arguments so they do not pile up.
26975 ac_sub_configure_args=
26976 ac_prev=
26977 for ac_arg in $ac_configure_args; do
26978 if test -n "$ac_prev"; then
26979 ac_prev=
26980 continue
26981 fi
5c6fa7d2 26982 case $ac_arg in
2224580a
VZ
26983 -cache-file | --cache-file | --cache-fil | --cache-fi \
26984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26985 ac_prev=cache_file ;;
26986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5c6fa7d2
RR
26987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26988 | --c=*)
26989 ;;
26990 --config-cache | -C)
2224580a
VZ
26991 ;;
26992 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26993 ac_prev=srcdir ;;
26994 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26995 ;;
26996 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26997 esac
26998 done
26999
5c6fa7d2 27000 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
2224580a
VZ
27001
27002 # Do not complain, so a configure script can configure whichever
27003 # parts of a large source tree are present.
5c6fa7d2 27004 test -d $srcdir/$ac_subdir || continue
2224580a 27005
5c6fa7d2
RR
27006 { echo "$as_me:27006: configuring in $ac_subdir" >&5
27007echo "$as_me: configuring in $ac_subdir" >&6;}
27008 case $srcdir in
2224580a 27009 .) ;;
5c6fa7d2
RR
27010 *) { case "./$ac_subdir" in
27011 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
27012 *) as_incr_dir=.;;
27013esac
27014as_dummy="./$ac_subdir"
27015for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
27016 case $as_mkdir_dir in
27017 # Skip DOS drivespec
27018 ?:) as_incr_dir=$as_mkdir_dir ;;
2224580a 27019 *)
5c6fa7d2
RR
27020 as_incr_dir=$as_incr_dir/$as_mkdir_dir
27021 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
27022 ;;
27023 esac
27024done; }
27025
27026 if test -d ./$ac_subdir; then :;
27027 else
27028 { { echo "$as_me:27028: error: cannot create \`pwd\`/$ac_subdir" >&5
27029echo "$as_me: error: cannot create \`pwd\`/$ac_subdir" >&2;}
27030 { (exit 1); exit 1; }; }
27031 fi
27032 ;;
2224580a
VZ
27033 esac
27034
27035 ac_popdir=`pwd`
5c6fa7d2 27036 cd $ac_subdir
2224580a 27037
5c6fa7d2
RR
27038 # A "../" for each directory in /$ac_subdir.
27039 ac_dots=`echo $ac_subdir |
27040 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
2224580a 27041
5c6fa7d2 27042 case $srcdir in
2224580a
VZ
27043 .) # No --srcdir option. We are building in place.
27044 ac_sub_srcdir=$srcdir ;;
5c6fa7d2
RR
27045 [\\/]* | ?:[\\/]* ) # Absolute path.
27046 ac_sub_srcdir=$srcdir/$ac_subdir ;;
2224580a 27047 *) # Relative path.
5c6fa7d2 27048 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
2224580a
VZ
27049 esac
27050
27051 # Check for guested configure; otherwise get Cygnus style configure.
5c6fa7d2
RR
27052 if test -f $ac_sub_srcdir/configure.gnu; then
27053 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure.gnu'"
27054 elif test -f $ac_sub_srcdir/configure; then
27055 ac_sub_configure="$SHELL '$ac_sub_srcdir/configure'"
2224580a
VZ
27056 elif test -f $ac_sub_srcdir/configure.in; then
27057 ac_sub_configure=$ac_configure
27058 else
5c6fa7d2
RR
27059 { echo "$as_me:27059: WARNING: no configuration information is in $ac_subdir" >&5
27060echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
2224580a
VZ
27061 ac_sub_configure=
27062 fi
27063
27064 # The recursion is here.
27065 if test -n "$ac_sub_configure"; then
2224580a 27066 # Make the cache file name correct relative to the subdirectory.
5c6fa7d2
RR
27067 case $cache_file in
27068 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2224580a 27069 *) # Relative path.
5c6fa7d2 27070 ac_sub_cache_file=$ac_dots$cache_file ;;
2224580a 27071 esac
2224580a 27072
5c6fa7d2
RR
27073 { echo "$as_me:27073: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&5
27074echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" >&6;}
2224580a 27075 # The eval makes quoting arguments work.
5c6fa7d2
RR
27076 eval $ac_sub_configure $ac_sub_configure_args \
27077 --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir ||
27078 { { echo "$as_me:27078: error: $ac_sub_configure failed for $ac_subdir" >&5
27079echo "$as_me: error: $ac_sub_configure failed for $ac_subdir" >&2;}
27080 { (exit 1); exit 1; }; }
2224580a
VZ
27081 fi
27082
27083 cd $ac_popdir
27084 done
27085fi
27086