]> git.saurik.com Git - wxWidgets.git/blame - configure
fixes to wxBase compilation
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
fe0895cf 9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6
VS
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6
VS
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6
VS
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
272PACKAGE_VERSION='2.5.0'
273PACKAGE_STRING='wxWindows 2.5.0'
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
6d7d8f3b 314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS AIX_CXX_LD RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF WXUNIV MONOLITHIC EXTRALIBS UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TYPE COND_WXUSE_ZLIB_BUILTIN COND_UNICODE_1 COND_BUILD_DEBUG COND_WXUSE_REGEX_BUILTIN COND_USE_SOSYMLINKS_1 COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_SHARED_1_MONOLITHIC_1 COND_WXUSE_ODBC_BUILTIN COND_TOOLKIT_GTK COND_TOOLKIT_MOTIF COND_TOOLKIT_MSW COND_TOOLKIT_MAC COND_TOOLKIT_COCOA COND_TOOLKIT_OS2 COND_TOOLKIT_X11 COND_TOOLKIT_MGL COND_WXUNIV_1 COND_WXUSE_LIBTIFF_BUILTIN COND_PLATFORM_UNIX_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_WIN32_1 COND_USE_SOVERSION_1_PLATFORM_MACOSX_0 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1 COND_PLATFORM_WIN32_0 COND_MONOLITHIC_1 COND_MONOLITHIC_0 COND_USE_GUI_1 COND_DEPS_TYPE_GCC COND_USE_GUI_0 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_SHARED_0_MONOLITHIC_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSOLARIS_1 COND_PLATFORM_MAC_1 COND_SHARED_0 COND_SHARED_1 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX SONAME_FLAGS SONAME_FLAGS_GL WX_TARGET_LIBRARY_SONAME WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK LIBOBJS LTLIBOBJS'
e6cc62c6 315ac_subst_files=''
10f2d63a
VZ
316
317# Initialize some variables set by options.
e6cc62c6
VS
318ac_init_help=
319ac_init_version=false
10f2d63a
VZ
320# The variables have the same names as the options, with
321# dashes changed to underlines.
e6cc62c6 322cache_file=/dev/null
10f2d63a 323exec_prefix=NONE
10f2d63a 324no_create=
10f2d63a
VZ
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
10f2d63a
VZ
333verbose=
334x_includes=NONE
335x_libraries=NONE
e6cc62c6
VS
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
10f2d63a
VZ
355ac_prev=
356for ac_option
357do
10f2d63a
VZ
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
e6cc62c6 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
e6cc62c6 369 case $ac_option in
10f2d63a
VZ
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 374 bindir=$ac_optarg ;;
10f2d63a
VZ
375
376 -build | --build | --buil | --bui | --bu)
e6cc62c6 377 ac_prev=build_alias ;;
10f2d63a 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 379 build_alias=$ac_optarg ;;
10f2d63a
VZ
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
10f2d63a
VZ
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
e6cc62c6 395 datadir=$ac_optarg ;;
10f2d63a
VZ
396
397 -disable-* | --disable-*)
e6cc62c6 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 399 # Reject names that are not valid shell variable names.
e6cc62c6
VS
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
405
406 -enable-* | --enable-*)
e6cc62c6 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 408 # Reject names that are not valid shell variable names.
e6cc62c6
VS
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
415 *) ac_optarg=yes ;;
416 esac
e6cc62c6 417 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
e6cc62c6 426 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
e6cc62c6
VS
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
10f2d63a
VZ
438
439 -host | --host | --hos | --ho)
e6cc62c6 440 ac_prev=host_alias ;;
10f2d63a 441 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 442 host_alias=$ac_optarg ;;
10f2d63a
VZ
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 449 includedir=$ac_optarg ;;
10f2d63a
VZ
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 454 infodir=$ac_optarg ;;
10f2d63a
VZ
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 459 libdir=$ac_optarg ;;
10f2d63a
VZ
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 466 libexecdir=$ac_optarg ;;
10f2d63a
VZ
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 475 localstatedir=$ac_optarg ;;
10f2d63a
VZ
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 480 mandir=$ac_optarg ;;
10f2d63a
VZ
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 487 | --no-cr | --no-c | -n)
10f2d63a
VZ
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 501 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 506 prefix=$ac_optarg ;;
10f2d63a
VZ
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 513 program_prefix=$ac_optarg ;;
10f2d63a
VZ
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 520 program_suffix=$ac_optarg ;;
10f2d63a
VZ
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 537 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
e6cc62c6 547 sbindir=$ac_optarg ;;
10f2d63a
VZ
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
e6cc62c6 558 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
e6cc62c6 563 site=$ac_optarg ;;
10f2d63a
VZ
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 568 srcdir=$ac_optarg ;;
10f2d63a
VZ
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 575 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 578 ac_prev=target_alias ;;
10f2d63a 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 580 target_alias=$ac_optarg ;;
10f2d63a
VZ
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
e6cc62c6
VS
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
10f2d63a
VZ
587
588 -with-* | --with-*)
e6cc62c6 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 590 # Reject names that are not valid shell variable names.
e6cc62c6
VS
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
10f2d63a 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
597 *) ac_optarg=yes ;;
598 esac
e6cc62c6 599 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
600
601 -without-* | --without-*)
e6cc62c6 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 603 # Reject names that are not valid shell variable names.
e6cc62c6
VS
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
10f2d63a
VZ
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 619 x_includes=$ac_optarg ;;
10f2d63a
VZ
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 626 x_libraries=$ac_optarg ;;
10f2d63a 627
e6cc62c6
VS
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
10f2d63a
VZ
631 ;;
632
e6cc62c6
VS
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
10f2d63a 643 *)
e6cc62c6
VS
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
e6cc62c6
VS
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
a0b9e27f 658fi
a0b9e27f 659
e6cc62c6
VS
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
8284b0c5 670
e6cc62c6
VS
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 674do
e6cc62c6
VS
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
10f2d63a
VZ
680 esac
681done
682
e6cc62c6
VS
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
247f5006 700
e6cc62c6
VS
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
10f2d63a 705
10f2d63a
VZ
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
e6cc62c6
VS
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
10f2d63a
VZ
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
10f2d63a 734 else
e6cc62c6
VS
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
10f2d63a
VZ
737 fi
738fi
e6cc62c6
VS
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775ac_env_CXX_set=${CXX+set}
776ac_env_CXX_value=$CXX
777ac_cv_env_CXX_set=${CXX+set}
778ac_cv_env_CXX_value=$CXX
779ac_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_env_CXXFLAGS_value=$CXXFLAGS
781ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_cv_env_CXXFLAGS_value=$CXXFLAGS
783ac_env_CXXCPP_set=${CXXCPP+set}
784ac_env_CXXCPP_value=$CXXCPP
785ac_cv_env_CXXCPP_set=${CXXCPP+set}
786ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 787
e6cc62c6
VS
788#
789# Report the --help message.
790#
791if test "$ac_init_help" = "long"; then
792 # Omit some internal or obsolete options to make the list less imposing.
793 # This message is too long to be a string in the A/UX 3.1 sh.
794 cat <<_ACEOF
795\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 796
e6cc62c6 797Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 798
e6cc62c6
VS
799To assign environment variables (e.g., CC, CFLAGS...), specify them as
800VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 801
e6cc62c6
VS
802Defaults for the options are specified in brackets.
803
804Configuration:
805 -h, --help display this help and exit
806 --help=short display options specific to this package
807 --help=recursive display the short help of all the included packages
808 -V, --version display version information and exit
809 -q, --quiet, --silent do not print \`checking...' messages
810 --cache-file=FILE cache test results in FILE [disabled]
811 -C, --config-cache alias for \`--cache-file=config.cache'
812 -n, --no-create do not create output files
813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
814
815_ACEOF
816
817 cat <<_ACEOF
818Installation directories:
819 --prefix=PREFIX install architecture-independent files in PREFIX
820 [$ac_default_prefix]
821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 [PREFIX]
823
824By default, \`make install' will install all the files in
825\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
826an installation prefix other than \`$ac_default_prefix' using \`--prefix',
827for instance \`--prefix=\$HOME'.
828
829For better control, use the options below.
830
831Fine tuning of the installation directories:
832 --bindir=DIR user executables [EPREFIX/bin]
833 --sbindir=DIR system admin executables [EPREFIX/sbin]
834 --libexecdir=DIR program executables [EPREFIX/libexec]
835 --datadir=DIR read-only architecture-independent data [PREFIX/share]
836 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
837 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
838 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
839 --libdir=DIR object code libraries [EPREFIX/lib]
840 --includedir=DIR C header files [PREFIX/include]
841 --oldincludedir=DIR C header files for non-gcc [/usr/include]
842 --infodir=DIR info documentation [PREFIX/info]
843 --mandir=DIR man documentation [PREFIX/man]
844_ACEOF
845
846 cat <<\_ACEOF
847
848X features:
849 --x-includes=DIR X include files are in DIR
850 --x-libraries=DIR X library files are in DIR
851
852System types:
853 --build=BUILD configure for building on BUILD [guessed]
854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
855 --target=TARGET configure for building compilers for TARGET [HOST]
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860 case $ac_init_help in
861 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
862 esac
863 cat <<\_ACEOF
864
865Optional Features:
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-gui use GUI classes
869 --enable-universal use wxWindows GUI controls instead of native ones
870 --enable-nanox use NanoX
871 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
872 --enable-shared create shared library code
873 --enable-soname set the DT_SONAME field in ELF shared libraries
874 --enable-optimise create optimised code
875 --enable-debug same as debug_flag and debug_info
876 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)
877 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
878 --enable-debug_info create code with debugging information
879 --enable-debug_gdb create code with extra GDB debugging information
880 --enable-debug_cntxt use wxDebugContext
881 --enable-mem_tracing create code with memory tracing
882 --enable-profile create code with profiling information
883 --enable-no_rtti create code without RTTI information
884 --enable-no_exceptions create code without C++ exceptions handling
885 --enable-permissive compile code disregarding strict ANSI
886 --enable-no_deps create code without dependency information
887 --enable-compat20 enable wxWindows 2.0 compatibility
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
898 --enable-ole use OLE classes
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
901 --enable-cmdline use wxCmdLineParser class
902 --enable-datetime use wxDateTime class
903 --enable-stopwatch use wxStopWatch class
904 --enable-dialupman use dialup network classes
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-timer use wxTimer class
907 --enable-wave use wxWave class
908 --enable-fraction use wxFraction class
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-longlong use wxLongLong class
912 --enable-geometry use geometry class
913 --enable-log use logging system
914 --enable-streams use wxStream etc classes
915 --enable-file use wxFile classes
916 --enable-ffile use wxFFile classes
917 --enable-textbuf use wxTextBuffer class
918 --enable-textfile use wxTextFile class
919 --enable-fontmap use font encodings conversion classes
920 --enable-unicode compile wxString with Unicode support
921 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
922 --enable-wxprintfv use wxWindows implementation of vprintf()
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-filesystem use virtual file systems classes
925 --enable-fs_inet use virtual HTTP/FTP filesystems
926 --enable-fs_zip use virtual ZIP filesystems
927 --enable-zipstream use wxZipInputStream
928 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
929 --enable-snglinst use wxSingleInstanceChecker class
930 --enable-mimetype use wxMimeTypesManager
931 --enable-sysoptions use wxSystemOptions
932 --enable-url use wxURL class
933 --enable-protocol use wxProtocol class
934 --enable-protocol-http HTTP support in wxProtocol
935 --enable-protocol-ftp FTP support in wxProtocol
936 --enable-protocol-file FILE support in wxProtocol
937 --enable-threads use threads
938 --enable-docview use document view architecture
939 --enable-help use help subsystem
940 --enable-mshtmlhelp use MS HTML Help (win32)
941 --enable-html use wxHTML sub-library
942 --enable-htmlhelp use wxHTML-based help
943 --enable-constraints use layout-constraints system
944 --enable-printarch use printing architecture
945 --enable-mdi use multiple document interface architecture
946 --enable-loggui use standard GUI logger
947 --enable-logwin use wxLogWindow
948 --enable-logdialog use wxLogDialog
949 --enable-postscript use wxPostscriptDC device context (default for gtk+)
950 --enable-prologio not available; see contrib
951 --enable-resources not available; see contrib
952 --enable-clipboard use wxClipboard class
953 --enable-dnd use Drag'n'Drop classes
954 --enable-metafile use win32 metafiles
955 --enable-controls use all usual controls
956 --enable-accel use accelerators
957 --enable-button use wxButton class
958 --enable-bmpbutton use wxBitmapButton class
959 --enable-calendar use wxCalendarCtrl class
960 --enable-caret use wxCaret class
961 --enable-checkbox use wxCheckBox class
962 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
963 --enable-choice use wxChoice class
964 --enable-combobox use wxComboBox class
965 --enable-display use wxDisplay class
966 --enable-gauge use wxGauge class
967 --enable-grid use wxGrid class
968 --enable-imaglist use wxImageList class
969 --enable-listbox use wxListBox class
970 --enable-listctrl use wxListCtrl class
971 --enable-notebook use wxNotebook class
972 --enable-radiobox use wxRadioBox class
973 --enable-radiobtn use wxRadioButton class
974 --enable-sash use wxSashWindow class
975 --enable-scrollbar use wxScrollBar class and scrollable windows
976 --enable-slider use wxSlider class
977 --enable-spinbtn use wxSpinButton class
978 --enable-spinctrl use wxSpinCtrl class
979 --enable-splitter use wxSplitterWindow class
980 --enable-statbmp use wxStaticBitmap class
981 --enable-statbox use wxStaticBox class
982 --enable-statline use wxStaticLine class
983 --enable-stattext use wxStaticText class
984 --enable-statusbar use wxStatusBar class
985 --enable-tabdialog use wxTabControl class
986 --enable-textctrl use wxTextCtrl class
987 --enable-togglebtn use wxToggleButton class
988 --enable-toolbar use wxToolBar class
989 --enable-tbarnative use native wxToolBar class
990 --enable-tbarsmpl use wxToolBarSimple class
991 --enable-treectrl use wxTreeCtrl class
992 --enable-tipwindow use wxTipWindow class
993 --enable-popupwin use wxPopUpWindow class
994 --enable-commondlg use all common dialogs
995 --enable-choicedlg use wxChoiceDialog
996 --enable-coldlg use wxColourDialog
997 --enable-filedlg use wxFileDialog
998 --enable-finddlg use wxFindReplaceDialog
999 --enable-fontdlg use wxFontDialog
1000 --enable-dirdlg use wxDirDialog
1001 --enable-msgdlg use wxMessageDialog
1002 --enable-numberdlg use wxNumberEntryDialog
1003 --enable-splash use wxSplashScreen
1004 --enable-textdlg use wxTextDialog
1005 --enable-tipdlg use startup tips
1006 --enable-progressdlg use wxProgressDialog
1007 --enable-wizarddlg use wxWizard
1008 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1009 --enable-miniframe use wxMiniFrame class
1010 --enable-tooltips use wxToolTip class
1011 --enable-splines use spline drawing code
1012 --enable-validators use wxValidator and derived classes
1013 --enable-busyinfo use wxBusyInfo
1014 --enable-joystick use wxJoystick (Linux only)
1015 --enable-metafiles use wxMetaFile (Windows only)
1016 --enable-dragimage use wxDragImage
1017 --enable-accessibility enable accessibility support
1018 --enable-palette use wxPalette class
1019 --enable-image use wxImage class
1020 --enable-gif use gif images (GIF file format)
1021 --enable-pcx use pcx images (PCX file format)
1022 --enable-iff use iff images (IFF file format)
1023 --enable-pnm use pnm images (PNM file format)
1024 --enable-xpm use xpm images (XPM file format)
1025 --enable-icocur use Windows ICO and CUR formats
1026 --disable-largefile omit support for large files
1027 --disable-gtktest do not try to compile and run a test GTK+ program
1028 --disable-gtktest Do not try to compile and run a test GTK program
1029
1030Optional Packages:
1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1033 --with-gtk use GTK+
1034 --with-motif use Motif/Lesstif
1035 --with-mac use Mac OS X
1036 --with-cocoa use Cocoa
1037 --with-wine use Wine
1038 --with-msw use MS-Windows
1039 --with-pm use OS/2 Presentation Manager
1040 --with-mgl use SciTech MGL
1041 --with-microwin use MicroWindows
1042 --with-x11 use X11
1043 --with-libpng use libpng (PNG image format)
1044 --with-libjpeg use libjpeg (JPEG file format)
1045 --with-libtiff use libtiff (TIFF file format)
1046 --with-opengl use OpenGL (or Mesa)
1047 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1048 --with-regex enable support for wxRegEx class
1049 --with-zlib use zlib for LZW compression
1050 --with-odbc use the IODBC and wxODBC classes
1051 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1052 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1053 --with-x use the X Window System
1054 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1055
1056Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <wx-dev@lists.wxwindows.org>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
8284b0c5 1130
e6cc62c6
VS
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134wxWindows configure 2.5.0
1135generated by GNU Autoconf 2.57
10f2d63a 1136
e6cc62c6
VS
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
7c66a493 1143fi
e6cc62c6
VS
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by wxWindows $as_me 2.5.0, which was
1150generated by GNU Autoconf 2.57. Invocation command line was
1151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
1247done
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
698dcdb6 1475
8284b0c5 1476
7c66a493 1477
a0b9e27f
MB
1478
1479
a0b9e27f 1480
a0b9e27f 1481
a0b9e27f 1482
a0b9e27f 1483
a0b9e27f 1484
a0b9e27f 1485
e6cc62c6
VS
1486
1487
1488ac_aux_dir=
1489for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
1505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
1513# Make sure we can run config.sub.
1514$ac_config_sub sun4 >/dev/null 2>&1 ||
1515 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1516echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1517 { (exit 1); exit 1; }; }
1518
1519echo "$as_me:$LINENO: checking build system type" >&5
1520echo $ECHO_N "checking build system type... $ECHO_C" >&6
1521if test "${ac_cv_build+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 ac_cv_build_alias=$build_alias
1525test -z "$ac_cv_build_alias" &&
1526 ac_cv_build_alias=`$ac_config_guess`
1527test -z "$ac_cv_build_alias" &&
1528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1529echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1530 { (exit 1); exit 1; }; }
1531ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1532 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1533echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1534 { (exit 1); exit 1; }; }
1535
1536fi
1537echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1538echo "${ECHO_T}$ac_cv_build" >&6
1539build=$ac_cv_build
1540build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1541build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1542build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543
1544
1545echo "$as_me:$LINENO: checking host system type" >&5
1546echo $ECHO_N "checking host system type... $ECHO_C" >&6
1547if test "${ac_cv_host+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550 ac_cv_host_alias=$host_alias
1551test -z "$ac_cv_host_alias" &&
1552 ac_cv_host_alias=$ac_cv_build_alias
1553ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1555echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1557
1558fi
1559echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1560echo "${ECHO_T}$ac_cv_host" >&6
1561host=$ac_cv_host
1562host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565
1566
1567echo "$as_me:$LINENO: checking target system type" >&5
1568echo $ECHO_N "checking target system type... $ECHO_C" >&6
1569if test "${ac_cv_target+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572 ac_cv_target_alias=$target_alias
1573test "x$ac_cv_target_alias" = "x" &&
1574 ac_cv_target_alias=$ac_cv_host_alias
1575ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1577echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580fi
1581echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1582echo "${ECHO_T}$ac_cv_target" >&6
1583target=$ac_cv_target
1584target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589# The aliases save the names the user supplied, while $host etc.
1590# will get canonicalized.
1591test -n "$target_alias" &&
7c66a493
VZ
1592 test "$program_prefix$program_suffix$program_transform_name" = \
1593 NONENONEs,x,x, &&
1594 program_prefix=${target_alias}-
8284b0c5
MB
1595
1596
a0b9e27f 1597
10f2d63a 1598WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1599WX_MINOR_VERSION_NUMBER=5
1600WX_RELEASE_NUMBER=0
10f2d63a 1601
10f2d63a 1602WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1603WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1604
978f1259
RL
1605WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1606
34bed6d9 1607WX_CURRENT=0
6426998c
RL
1608WX_REVISION=0
1609WX_AGE=0
1610
8284b0c5
MB
1611
1612
10f2d63a
VZ
1613USE_UNIX=1
1614USE_WIN32=0
f9bc1684 1615USE_DOS=0
b12915c1 1616USE_BEOS=0
1216f52d 1617USE_MAC=0
b12915c1 1618
10f2d63a 1619USE_AIX=
fe0895cf
VS
1620USE_BSD= USE_DARWIN= USE_FREEBSD=
1621USE_GNU= USE_HPUX=
89e3b3e4 1622USE_LINUX=
f6bcfd97 1623USE_NETBSD=
89e3b3e4 1624USE_OPENBSD=
fe0895cf
VS
1625USE_OSF= USE_SGI=
1626USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1627USE_ULTRIX=
89e3b3e4
VZ
1628USE_UNIXWARE=
1629
1630USE_ALPHA=
10f2d63a 1631
ab9b9eab
VZ
1632NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1633
ac0c4cc3 1634ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1635
ac0c4cc3 1636DEFAULT_wxUSE_COCOA=0
10f2d63a 1637DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1638DEFAULT_wxUSE_MAC=0
1639DEFAULT_wxUSE_MGL=0
1725144d 1640DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1641DEFAULT_wxUSE_MOTIF=0
1642DEFAULT_wxUSE_MSW=0
e07802fc 1643DEFAULT_wxUSE_PM=0
f79bd02d 1644DEFAULT_wxUSE_X11=0
10f2d63a 1645
ac0c4cc3 1646DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1647DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1648DEFAULT_DEFAULT_wxUSE_MAC=0
1649DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1650DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1651DEFAULT_DEFAULT_wxUSE_MOTIF=0
1652DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1653DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1654DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1655
d6a55c4b 1656PROGRAM_EXT=
3a922bb4 1657SO_SUFFIX=so
fe0895cf 1658SAMPLES_RPATH_FLAG=
d6a55c4b 1659
10f2d63a
VZ
1660case "${host}" in
1661 *-hp-hpux* )
1662 USE_HPUX=1
1663 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1664 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1665 SO_SUFFIX=sl
e6cc62c6 1666 cat >>confdefs.h <<\_ACEOF
10f2d63a 1667#define __HPUX__ 1
e6cc62c6 1668_ACEOF
10f2d63a
VZ
1669
1670 ;;
1671 *-*-linux* )
1672 USE_LINUX=1
e6cc62c6 1673 cat >>confdefs.h <<\_ACEOF
10f2d63a 1674#define __LINUX__ 1
e6cc62c6 1675_ACEOF
10f2d63a
VZ
1676
1677 TMP=`uname -m`
1678 if test "x$TMP" = "xalpha"; then
1679 USE_ALPHA=1
e6cc62c6 1680 cat >>confdefs.h <<\_ACEOF
10f2d63a 1681#define __ALPHA__ 1
e6cc62c6 1682_ACEOF
fe0895cf
VS
1683
1684 fi
1685 DEFAULT_DEFAULT_wxUSE_GTK=1
1686 ;;
1687 *-*-gnu* )
1688 USE_GNU=1
e6cc62c6 1689 cat >>confdefs.h <<\_ACEOF
fe0895cf 1690#define __GNU__ 1
e6cc62c6 1691_ACEOF
fe0895cf
VS
1692
1693 TMP=`uname -m`
1694 if test "x$TMP" = "xalpha"; then
1695 USE_ALPHA=1
e6cc62c6 1696 cat >>confdefs.h <<\_ACEOF
fe0895cf 1697#define __ALPHA__ 1
e6cc62c6 1698_ACEOF
10f2d63a
VZ
1699
1700 fi
1701 DEFAULT_DEFAULT_wxUSE_GTK=1
1702 ;;
1703 *-*-irix5* | *-*-irix6* )
1704 USE_SGI=1
1705 USE_SVR4=1
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __SGI__ 1
e6cc62c6 1708_ACEOF
10f2d63a 1709
e6cc62c6 1710 cat >>confdefs.h <<\_ACEOF
10f2d63a 1711#define __SVR4__ 1
e6cc62c6 1712_ACEOF
10f2d63a
VZ
1713
1714 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1715 ;;
1716 *-*-solaris2* )
1717 USE_SUN=1
1718 USE_SOLARIS=1
1719 USE_SVR4=1
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __SUN__ 1
e6cc62c6 1722_ACEOF
10f2d63a 1723
e6cc62c6 1724 cat >>confdefs.h <<\_ACEOF
10f2d63a 1725#define __SOLARIS__ 1
e6cc62c6 1726_ACEOF
10f2d63a 1727
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __SVR4__ 1
e6cc62c6 1730_ACEOF
10f2d63a
VZ
1731
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1734 ;;
1735 *-*-sunos4* )
1736 USE_SUN=1
1737 USE_SUNOS=1
1738 USE_BSD=1
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
10f2d63a 1740#define __SUN__ 1
e6cc62c6 1741_ACEOF
10f2d63a 1742
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SUNOS__ 1
e6cc62c6 1745_ACEOF
10f2d63a 1746
e6cc62c6 1747 cat >>confdefs.h <<\_ACEOF
10f2d63a 1748#define __BSD__ 1
e6cc62c6 1749_ACEOF
10f2d63a
VZ
1750
1751 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1752 ;;
f6bcfd97 1753 *-*-freebsd*)
10f2d63a
VZ
1754 USE_BSD=1
1755 USE_FREEBSD=1
e6cc62c6 1756 cat >>confdefs.h <<\_ACEOF
10f2d63a 1757#define __FREEBSD__ 1
e6cc62c6 1758_ACEOF
10f2d63a 1759
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __BSD__ 1
e6cc62c6 1762_ACEOF
95c8801c
VS
1763
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-openbsd*)
1767 USE_BSD=1
1768 USE_OPENBSD=1
e6cc62c6 1769 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1770#define __OPENBSD__ 1
e6cc62c6 1771_ACEOF
95c8801c 1772
e6cc62c6 1773 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1774#define __BSD__ 1
e6cc62c6 1775_ACEOF
f6bcfd97
BP
1776
1777 DEFAULT_DEFAULT_wxUSE_GTK=1
1778 ;;
1779 *-*-netbsd*)
1780 USE_BSD=1
1781 USE_NETBSD=1
e6cc62c6 1782 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1783#define __NETBSD__ 1
e6cc62c6 1784_ACEOF
f6bcfd97 1785
e6cc62c6 1786 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1787#define __BSD__ 1
e6cc62c6 1788_ACEOF
10f2d63a
VZ
1789
1790 DEFAULT_DEFAULT_wxUSE_GTK=1
1791 ;;
1792 *-*-osf* )
1793 USE_ALPHA=1
1794 USE_OSF=1
e6cc62c6 1795 cat >>confdefs.h <<\_ACEOF
10f2d63a 1796#define __ALPHA__ 1
e6cc62c6 1797_ACEOF
10f2d63a 1798
e6cc62c6 1799 cat >>confdefs.h <<\_ACEOF
10f2d63a 1800#define __OSF__ 1
e6cc62c6 1801_ACEOF
10f2d63a
VZ
1802
1803 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1804 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1805 ;;
1806 *-*-dgux5* )
1807 USE_ALPHA=1
1808 USE_SVR4=1
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
10f2d63a 1810#define __ALPHA__ 1
e6cc62c6 1811_ACEOF
10f2d63a 1812
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
10f2d63a 1814#define __SVR4__ 1
e6cc62c6 1815_ACEOF
10f2d63a
VZ
1816
1817 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818 ;;
1819 *-*-sysv5* )
1820 USE_SYSV=1
1821 USE_SVR4=1
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
10f2d63a 1823#define __SYSV__ 1
e6cc62c6 1824_ACEOF
10f2d63a 1825
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
10f2d63a 1827#define __SVR4__ 1
e6cc62c6 1828_ACEOF
10f2d63a
VZ
1829
1830 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1831 ;;
1832 *-*-aix* )
1833 USE_AIX=1
1834 USE_SYSV=1
1835 USE_SVR4=1
2b5f62a0 1836 SO_SUFFIX=a
e6cc62c6 1837 cat >>confdefs.h <<\_ACEOF
10f2d63a 1838#define __AIX__ 1
e6cc62c6 1839_ACEOF
10f2d63a 1840
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __SYSV__ 1
e6cc62c6 1843_ACEOF
10f2d63a 1844
e6cc62c6 1845 cat >>confdefs.h <<\_ACEOF
10f2d63a 1846#define __SVR4__ 1
e6cc62c6 1847_ACEOF
10f2d63a
VZ
1848
1849 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1850 ;;
1851
89e3b3e4
VZ
1852 *-*-*UnixWare*)
1853 USE_SYSV=1
1854 USE_SVR4=1
1855 USE_UNIXWARE=1
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1857#define __UNIXWARE__ 1
e6cc62c6 1858_ACEOF
89e3b3e4
VZ
1859
1860 ;;
1861
1c8183e2 1862 *-*-cygwin* | *-*-mingw32* )
17234b26 1863 SO_SUFFIX=dll
cf27ef00 1864 PROGRAM_EXT=".exe"
7b7a7637 1865 RESCOMP=windres
10f2d63a
VZ
1866 DEFAULT_DEFAULT_wxUSE_MSW=1
1867 ;;
1868
f9bc1684
VS
1869 *-pc-msdosdjgpp )
1870 USE_UNIX=0
1871 USE_DOS=1
e6cc62c6 1872 cat >>confdefs.h <<\_ACEOF
f9bc1684 1873#define __DOS__ 1
e6cc62c6 1874_ACEOF
f9bc1684
VS
1875
1876 PROGRAM_EXT=".exe"
1877 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1878 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1879 ;;
1880
6fa882bd 1881 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1882 cat >>confdefs.h <<\_ACEOF
10f2d63a 1883#define __EMX__ 1
e6cc62c6 1884_ACEOF
10f2d63a 1885
cf27ef00 1886 PROGRAM_EXT=".exe"
e07802fc 1887 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1888 ;;
1889
d08b457b
GD
1890 powerpc-*-darwin* )
1891 USE_BSD=1
f11bdd03 1892 USE_DARWIN=1
3a922bb4 1893 SO_SUFFIX=dylib
e6cc62c6 1894 cat >>confdefs.h <<\_ACEOF
f11bdd03 1895#define __BSD__ 1
e6cc62c6 1896_ACEOF
b4085ce6 1897
e6cc62c6 1898 cat >>confdefs.h <<\_ACEOF
f11bdd03 1899#define __DARWIN__ 1
e6cc62c6 1900_ACEOF
d08b457b 1901
e6cc62c6 1902 cat >>confdefs.h <<\_ACEOF
d08b457b 1903#define __POWERPC__ 1
e6cc62c6 1904_ACEOF
82d43113 1905
e6cc62c6 1906 cat >>confdefs.h <<\_ACEOF
82d43113 1907#define TARGET_CARBON 1
e6cc62c6 1908_ACEOF
b4085ce6
GD
1909
1910 DEFAULT_DEFAULT_wxUSE_MAC=1
1911 ;;
1912
b12915c1
VZ
1913 *-*-beos* )
1914 USE_BEOS=1
e6cc62c6 1915 cat >>confdefs.h <<\_ACEOF
b12915c1 1916#define __BEOS__ 1
e6cc62c6 1917_ACEOF
b12915c1
VZ
1918
1919 ;;
1920
10f2d63a 1921 *)
e6cc62c6
VS
1922 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1923echo "$as_me: error: unknown system type ${host}." >&2;}
1924 { (exit 1); exit 1; }; }
10f2d63a
VZ
1925esac
1926
8284b0c5
MB
1927
1928
1929
1930 wx_arg_cache_file="configarg.cache"
1931 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1932 rm -f ${wx_arg_cache_file}.tmp
1933 touch ${wx_arg_cache_file}.tmp
1934 touch ${wx_arg_cache_file}
e6cc62c6 1935
10f2d63a
VZ
1936
1937DEBUG_CONFIGURE=0
1938if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1939 DEFAULT_wxUSE_UNIVERSAL=no
1940
d8356fa3
VZ
1941 DEFAULT_wxUSE_NANOX=no
1942
10f2d63a
VZ
1943 DEFAULT_wxUSE_THREADS=yes
1944
1945 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1946 DEFAULT_wxUSE_SONAME=no
1e6feb95 1947 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1948 DEFAULT_wxUSE_PROFILE=no
1949 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1950 DEFAULT_wxUSE_NO_RTTI=no
1951 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1952 DEFAULT_wxUSE_PERMISSIVE=no
1953 DEFAULT_wxUSE_DEBUG_FLAG=yes
1954 DEFAULT_wxUSE_DEBUG_INFO=yes
1955 DEFAULT_wxUSE_DEBUG_GDB=yes
1956 DEFAULT_wxUSE_MEM_TRACING=no
1957 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1958 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1959 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1960 DEFAULT_wxUSE_APPLE_IEEE=no
1961
1962 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1963 DEFAULT_wxUSE_LOGWINDOW=no
1964 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1965 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1966
1967 DEFAULT_wxUSE_GUI=yes
1e6feb95 1968 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1969
3e44f09d 1970 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1971 DEFAULT_wxUSE_ZLIB=no
1972 DEFAULT_wxUSE_LIBPNG=no
1973 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1974 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1975 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1976 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1977
eb4efbdc 1978 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1979 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1980 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1981 DEFAULT_wxUSE_CMDLINE_PARSER=no
1982 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1983 DEFAULT_wxUSE_TIMER=no
1984 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1985 DEFAULT_wxUSE_FILE=no
1e6feb95 1986 DEFAULT_wxUSE_FFILE=no
a3a584a7 1987 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1988 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1989 DEFAULT_wxUSE_WAVE=no
1990 DEFAULT_wxUSE_INTL=no
1991 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1992 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1993 DEFAULT_wxUSE_STREAMS=no
1994 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
1995 DEFAULT_wxUSE_OLE=no
1996 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 1997 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1998 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1999 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2000 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2001 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2002 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2003
2004 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2005 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2006 DEFAULT_wxUSE_POSTSCRIPT=no
2007
10f2d63a
VZ
2008 DEFAULT_wxUSE_CLIPBOARD=no
2009 DEFAULT_wxUSE_TOOLTIPS=no
2010 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2011 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2012 DEFAULT_wxUSE_SPLINES=no
2013
2014 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2015 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2016 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2017
10f2d63a
VZ
2018 DEFAULT_wxUSE_RESOURCES=no
2019 DEFAULT_wxUSE_CONSTRAINTS=no
2020 DEFAULT_wxUSE_IPC=no
2021 DEFAULT_wxUSE_HELP=no
29fd3c0c 2022 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2023 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2024 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2025 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2026 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2027 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2028 DEFAULT_wxUSE_PROTOCOL=no
2029 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2030 DEFAULT_wxUSE_PROTOCOL_FTP=no
2031 DEFAULT_wxUSE_PROTOCOL_FILE=no
2032 DEFAULT_wxUSE_URL=no
3bd8fb5f 2033
10f2d63a 2034 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2035 DEFAULT_wxUSE_CHOICEDLG=no
2036 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2037 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2038 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2039 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2040 DEFAULT_wxUSE_FONTDLG=no
2041 DEFAULT_wxUSE_MSGDLG=no
2042 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2043 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2044 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2045 DEFAULT_wxUSE_STARTUP_TIPS=no
2046 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2047 DEFAULT_wxUSE_WIZARDDLG=no
2048
1e6feb95 2049 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2050 DEFAULT_wxUSE_MINIFRAME=no
2051 DEFAULT_wxUSE_HTML=no
24528b0c 2052 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2053 DEFAULT_wxUSE_FS_INET=no
2054 DEFAULT_wxUSE_FS_ZIP=no
2055 DEFAULT_wxUSE_BUSYINFO=no
2056 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2057 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2058
2059 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2060 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2061 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2062 DEFAULT_wxUSE_CALCTRL=no
2063 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2064 DEFAULT_wxUSE_CHECKBOX=no
2065 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2066 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2067 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2068 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2069 DEFAULT_wxUSE_GAUGE=no
2070 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2071 DEFAULT_wxUSE_IMAGLIST=no
2072 DEFAULT_wxUSE_LISTBOX=no
2073 DEFAULT_wxUSE_LISTCTRL=no
2074 DEFAULT_wxUSE_NOTEBOOK=no
2075 DEFAULT_wxUSE_RADIOBOX=no
2076 DEFAULT_wxUSE_RADIOBTN=no
2077 DEFAULT_wxUSE_SASH=no
2078 DEFAULT_wxUSE_SCROLLBAR=no
2079 DEFAULT_wxUSE_SLIDER=no
2080 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2081 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2082 DEFAULT_wxUSE_SPLITTER=no
2083 DEFAULT_wxUSE_STATBMP=no
2084 DEFAULT_wxUSE_STATBOX=no
2085 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2086 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_STATUSBAR=yes
2088 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2089 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2090 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2091 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2092 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2093 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2094 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2095 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2096 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2097
2098 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2099 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2100 DEFAULT_wxUSE_WCSRTOMBS=no
2101
edae8572 2102 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2103 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2104 DEFAULT_wxUSE_GIF=no
2105 DEFAULT_wxUSE_PCX=no
2106 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2107 DEFAULT_wxUSE_IFF=no
0046ff7c 2108 DEFAULT_wxUSE_XPM=no
658974ae 2109 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2110 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a 2111else
1e6feb95
VZ
2112 DEFAULT_wxUSE_UNIVERSAL=no
2113
d8356fa3
VZ
2114 DEFAULT_wxUSE_NANOX=no
2115
10f2d63a
VZ
2116 DEFAULT_wxUSE_THREADS=yes
2117
2118 DEFAULT_wxUSE_SHARED=yes
3a922bb4 2119 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
2120 DEFAULT_wxUSE_OPTIMISE=yes
2121 DEFAULT_wxUSE_PROFILE=no
2122 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2123 DEFAULT_wxUSE_NO_RTTI=no
2124 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2125 DEFAULT_wxUSE_PERMISSIVE=no
2126 DEFAULT_wxUSE_DEBUG_FLAG=no
2127 DEFAULT_wxUSE_DEBUG_INFO=no
2128 DEFAULT_wxUSE_DEBUG_GDB=no
2129 DEFAULT_wxUSE_MEM_TRACING=no
2130 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2131 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 2132 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
2133 DEFAULT_wxUSE_APPLE_IEEE=yes
2134
2135 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2136 DEFAULT_wxUSE_LOGWINDOW=yes
2137 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2138 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2139
2140 DEFAULT_wxUSE_GUI=yes
2141
831b3152 2142 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
2143 DEFAULT_wxUSE_ZLIB=yes
2144 DEFAULT_wxUSE_LIBPNG=yes
2145 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2146 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2147 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2148 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2149
eb4efbdc 2150 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2151 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2152 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2153 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2154 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2155 DEFAULT_wxUSE_TIMER=yes
2156 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2157 DEFAULT_wxUSE_FILE=yes
1e6feb95 2158 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2159 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2160 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2161 DEFAULT_wxUSE_WAVE=no
2162 DEFAULT_wxUSE_INTL=yes
2163 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2164 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2165 DEFAULT_wxUSE_STREAMS=yes
2166 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2167 DEFAULT_wxUSE_OLE=yes
2168 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2169 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2170 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2171 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2172 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2173 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2174 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2175
2176 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2177 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2178 DEFAULT_wxUSE_POSTSCRIPT=yes
2179
10f2d63a
VZ
2180 DEFAULT_wxUSE_CLIPBOARD=yes
2181 DEFAULT_wxUSE_TOOLTIPS=yes
2182 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2183 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2184 DEFAULT_wxUSE_SPLINES=yes
2185
2186 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2187 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2188 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2189
2b5f62a0 2190 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2191 DEFAULT_wxUSE_CONSTRAINTS=yes
2192 DEFAULT_wxUSE_IPC=yes
2193 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2194 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2195 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2196 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2197 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2198 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2199 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2200 DEFAULT_wxUSE_PROTOCOL=yes
2201 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2202 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2203 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2204 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2205
2206 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2207 DEFAULT_wxUSE_CHOICEDLG=yes
2208 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2209 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2210 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2211 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2212 DEFAULT_wxUSE_FONTDLG=yes
2213 DEFAULT_wxUSE_MSGDLG=yes
2214 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2215 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2216 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2217 DEFAULT_wxUSE_STARTUP_TIPS=yes
2218 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2219 DEFAULT_wxUSE_WIZARDDLG=yes
2220
1e6feb95 2221 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2222 DEFAULT_wxUSE_MINIFRAME=yes
2223 DEFAULT_wxUSE_HTML=yes
24528b0c 2224 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2225 DEFAULT_wxUSE_FS_INET=yes
2226 DEFAULT_wxUSE_FS_ZIP=yes
2227 DEFAULT_wxUSE_BUSYINFO=yes
2228 DEFAULT_wxUSE_ZIPSTREAM=yes
2229 DEFAULT_wxUSE_VALIDATORS=yes
2230
2231 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2232 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2233 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2234 DEFAULT_wxUSE_CALCTRL=yes
2235 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2236 DEFAULT_wxUSE_CHECKBOX=yes
2237 DEFAULT_wxUSE_CHECKLST=yes
2238 DEFAULT_wxUSE_CHOICE=yes
2239 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2240 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2241 DEFAULT_wxUSE_GAUGE=yes
2242 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2243 DEFAULT_wxUSE_IMAGLIST=yes
2244 DEFAULT_wxUSE_LISTBOX=yes
2245 DEFAULT_wxUSE_LISTCTRL=yes
2246 DEFAULT_wxUSE_NOTEBOOK=yes
2247 DEFAULT_wxUSE_RADIOBOX=yes
2248 DEFAULT_wxUSE_RADIOBTN=yes
2249 DEFAULT_wxUSE_SASH=yes
2250 DEFAULT_wxUSE_SCROLLBAR=yes
2251 DEFAULT_wxUSE_SLIDER=yes
2252 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2253 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2254 DEFAULT_wxUSE_SPLITTER=yes
2255 DEFAULT_wxUSE_STATBMP=yes
2256 DEFAULT_wxUSE_STATBOX=yes
2257 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2258 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2259 DEFAULT_wxUSE_STATUSBAR=yes
2260 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2261 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2262 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2263 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2264 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2265 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2266 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2267 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2268 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2269
2270 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2271 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2272 DEFAULT_wxUSE_WCSRTOMBS=no
2273
edae8572 2274 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2275 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2276 DEFAULT_wxUSE_GIF=yes
2277 DEFAULT_wxUSE_PCX=yes
cc0e8480 2278 DEFAULT_wxUSE_IFF=no
10f2d63a 2279 DEFAULT_wxUSE_PNM=yes
0046ff7c 2280 DEFAULT_wxUSE_XPM=yes
658974ae 2281 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2282 DEFAULT_wxUSE_ACCESSIBILITY=no
10f2d63a
VZ
2283fi
2284
8284b0c5
MB
2285
2286
10f2d63a 2287for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2288 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2289 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2290 has_toolkit_in_cache=1
2291 eval "DEFAULT_$LINE"
2292 eval "CACHE_$toolkit=1"
2293 fi
2294done
2295
8284b0c5
MB
2296
2297
5005acfe 2298 enablestring=
e6cc62c6
VS
2299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2300echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2301 no_cache=0
2302 # Check whether --enable-gui or --disable-gui was given.
2303if test "${enable_gui+set}" = set; then
2304 enableval="$enable_gui"
e6cc62c6 2305
10f2d63a
VZ
2306 if test "$enableval" = yes; then
2307 ac_cv_use_gui='wxUSE_GUI=yes'
2308 else
2309 ac_cv_use_gui='wxUSE_GUI=no'
2310 fi
e6cc62c6 2311
10f2d63a 2312else
e6cc62c6 2313
10f2d63a
VZ
2314 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2315 if test "x$LINE" != x ; then
2316 eval "DEFAULT_$LINE"
2317 else
2318 no_cache=1
2319 fi
2320
2321 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2322
e6cc62c6 2323fi;
10f2d63a
VZ
2324
2325 eval "$ac_cv_use_gui"
2326 if test "$no_cache" != 1; then
2327 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2328 fi
2329
2330 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2331 echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
10f2d63a 2333 else
e6cc62c6
VS
2334 echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6
10f2d63a 2336 fi
e6cc62c6 2337
10f2d63a 2338
b12915c1 2339if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2340
8284b0c5 2341
5005acfe 2342 enablestring=
e6cc62c6
VS
2343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2344echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2345 no_cache=0
2346 # Check whether --enable-universal or --disable-universal was given.
2347if test "${enable_universal+set}" = set; then
2348 enableval="$enable_universal"
e6cc62c6 2349
1e6feb95
VZ
2350 if test "$enableval" = yes; then
2351 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2352 else
2353 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2354 fi
e6cc62c6 2355
1e6feb95 2356else
e6cc62c6 2357
1e6feb95
VZ
2358 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2359 if test "x$LINE" != x ; then
2360 eval "DEFAULT_$LINE"
2361 else
2362 no_cache=1
2363 fi
2364
2365 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2366
e6cc62c6 2367fi;
1e6feb95
VZ
2368
2369 eval "$ac_cv_use_universal"
2370 if test "$no_cache" != 1; then
2371 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2372 fi
2373
2374 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2375 echo "$as_me:$LINENO: result: yes" >&5
2376echo "${ECHO_T}yes" >&6
1e6feb95 2377 else
e6cc62c6
VS
2378 echo "$as_me:$LINENO: result: no" >&5
2379echo "${ECHO_T}no" >&6
1e6feb95 2380 fi
e6cc62c6
VS
2381
2382
10f2d63a
VZ
2383# Check whether --with-gtk or --without-gtk was given.
2384if test "${with_gtk+set}" = set; then
2385 withval="$with_gtk"
2386 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2387fi;
10f2d63a
VZ
2388
2389# Check whether --with-motif or --without-motif was given.
2390if test "${with_motif+set}" = set; then
2391 withval="$with_motif"
2392 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2393fi;
10f2d63a 2394
b4085ce6
GD
2395# Check whether --with-mac or --without-mac was given.
2396if test "${with_mac+set}" = set; then
2397 withval="$with_mac"
2398 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2399fi;
b4085ce6 2400
ac0c4cc3
DE
2401# Check whether --with-cocoa or --without-cocoa was given.
2402if test "${with_cocoa+set}" = set; then
2403 withval="$with_cocoa"
2404 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2405fi;
ac0c4cc3 2406
10f2d63a
VZ
2407# Check whether --with-wine or --without-wine was given.
2408if test "${with_wine+set}" = set; then
2409 withval="$with_wine"
89e6bf6d 2410 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2411fi;
10f2d63a 2412
77e13408
RL
2413# Check whether --with-msw or --without-msw was given.
2414if test "${with_msw+set}" = set; then
2415 withval="$with_msw"
b4efce5e 2416 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2417fi;
10f2d63a 2418
e07802fc
VZ
2419# Check whether --with-pm or --without-pm was given.
2420if test "${with_pm+set}" = set; then
2421 withval="$with_pm"
2422 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2423fi;
698dcdb6 2424
1e6feb95
VZ
2425# Check whether --with-mgl or --without-mgl was given.
2426if test "${with_mgl+set}" = set; then
2427 withval="$with_mgl"
6c657b52 2428 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2429fi;
1e6feb95 2430
1725144d
RR
2431# Check whether --with-microwin or --without-microwin was given.
2432if test "${with_microwin+set}" = set; then
2433 withval="$with_microwin"
2434 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2435fi;
1725144d 2436
f79bd02d
JS
2437# Check whether --with-x11 or --without-x11 was given.
2438if test "${with_x11+set}" = set; then
2439 withval="$with_x11"
3c011993 2440 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2441fi;
a0b9e27f 2442
5005acfe 2443 enablestring=
e6cc62c6
VS
2444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2445echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2446 no_cache=0
ba875e66
VZ
2447 # Check whether --enable-nanox or --disable-nanox was given.
2448if test "${enable_nanox+set}" = set; then
2449 enableval="$enable_nanox"
e6cc62c6 2450
d8356fa3 2451 if test "$enableval" = yes; then
ba875e66 2452 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2453 else
ba875e66 2454 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2455 fi
e6cc62c6 2456
d8356fa3 2457else
e6cc62c6 2458
d8356fa3
VZ
2459 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
ba875e66 2466 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2467
e6cc62c6 2468fi;
d8356fa3 2469
ba875e66 2470 eval "$ac_cv_use_nanox"
d8356fa3 2471 if test "$no_cache" != 1; then
ba875e66 2472 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2473 fi
2474
2475 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2476 echo "$as_me:$LINENO: result: yes" >&5
2477echo "${ECHO_T}yes" >&6
d8356fa3 2478 else
e6cc62c6
VS
2479 echo "$as_me:$LINENO: result: no" >&5
2480echo "${ECHO_T}no" >&6
d8356fa3 2481 fi
e6cc62c6 2482
8284b0c5 2483
d74f4b5a 2484
5005acfe 2485 enablestring=
e6cc62c6
VS
2486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2487echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2488 no_cache=0
2489 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2490if test "${enable_gtk2+set}" = set; then
2491 enableval="$enable_gtk2"
e6cc62c6 2492
d74f4b5a
VZ
2493 if test "$enableval" = yes; then
2494 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2495 else
2496 ac_cv_use_gtk2='wxUSE_GTK2=no'
2497 fi
e6cc62c6 2498
10f2d63a 2499else
e6cc62c6 2500
d74f4b5a
VZ
2501 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2502 if test "x$LINE" != x ; then
2503 eval "DEFAULT_$LINE"
2504 else
2505 no_cache=1
2506 fi
2507
2508 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2509
e6cc62c6 2510fi;
328a083c 2511
d74f4b5a
VZ
2512 eval "$ac_cv_use_gtk2"
2513 if test "$no_cache" != 1; then
2514 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2515 fi
2516
2517 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2518 echo "$as_me:$LINENO: result: yes" >&5
2519echo "${ECHO_T}yes" >&6
d74f4b5a 2520 else
e6cc62c6
VS
2521 echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6
d74f4b5a 2523 fi
d74f4b5a 2524
5c6fa7d2 2525
e6cc62c6
VS
2526
2527 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2528echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2529 no_cache=0
e6cc62c6
VS
2530
2531# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2532if test "${with_libpng+set}" = set; then
2533 withval="$with_libpng"
e6cc62c6 2534
10f2d63a 2535 if test "$withval" = yes; then
b12915c1 2536 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2537 elif test "$withval" = no; then
b12915c1 2538 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2539 elif test "$withval" = sys; then
2540 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2541 elif test "$withval" = builtin; then
2542 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2543 else
e6cc62c6
VS
2544 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2545echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2546 { (exit 1); exit 1; }; }
10f2d63a 2547 fi
e6cc62c6 2548
10f2d63a 2549else
e6cc62c6 2550
b12915c1 2551 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
b12915c1 2558 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2559
e6cc62c6 2560fi;
10f2d63a 2561
b12915c1 2562 eval "$ac_cv_use_libpng"
10f2d63a 2563 if test "$no_cache" != 1; then
b12915c1 2564 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2565 fi
2566
b12915c1 2567 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2568 echo "$as_me:$LINENO: result: yes" >&5
2569echo "${ECHO_T}yes" >&6
422107f9 2570 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2571 echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6
422107f9 2573 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2574 echo "$as_me:$LINENO: result: system version" >&5
2575echo "${ECHO_T}system version" >&6
4f14bcd8 2576 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2577 echo "$as_me:$LINENO: result: builtin version" >&5
2578echo "${ECHO_T}builtin version" >&6
422107f9 2579 else
e6cc62c6
VS
2580 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2581echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2582 { (exit 1); exit 1; }; }
10f2d63a 2583 fi
10f2d63a 2584
e6cc62c6
VS
2585
2586 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2587echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2588 no_cache=0
e6cc62c6
VS
2589
2590# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2591if test "${with_libjpeg+set}" = set; then
2592 withval="$with_libjpeg"
e6cc62c6 2593
10f2d63a 2594 if test "$withval" = yes; then
b12915c1 2595 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2596 elif test "$withval" = no; then
b12915c1 2597 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2598 elif test "$withval" = sys; then
2599 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2600 elif test "$withval" = builtin; then
2601 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2602 else
e6cc62c6
VS
2603 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2604echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2605 { (exit 1); exit 1; }; }
10f2d63a 2606 fi
e6cc62c6 2607
10f2d63a 2608else
e6cc62c6 2609
b12915c1 2610 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2611 if test "x$LINE" != x ; then
2612 eval "DEFAULT_$LINE"
2613 else
2614 no_cache=1
2615 fi
2616
b12915c1 2617 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2618
e6cc62c6 2619fi;
10f2d63a 2620
b12915c1 2621 eval "$ac_cv_use_libjpeg"
10f2d63a 2622 if test "$no_cache" != 1; then
b12915c1 2623 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2624 fi
2625
b12915c1 2626 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2627 echo "$as_me:$LINENO: result: yes" >&5
2628echo "${ECHO_T}yes" >&6
422107f9 2629 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2630 echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6
422107f9 2632 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2633 echo "$as_me:$LINENO: result: system version" >&5
2634echo "${ECHO_T}system version" >&6
4f14bcd8 2635 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2636 echo "$as_me:$LINENO: result: builtin version" >&5
2637echo "${ECHO_T}builtin version" >&6
422107f9 2638 else
e6cc62c6
VS
2639 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2640echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2641 { (exit 1); exit 1; }; }
10f2d63a 2642 fi
10f2d63a 2643
e6cc62c6
VS
2644
2645 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2646echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2647 no_cache=0
e6cc62c6
VS
2648
2649# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2650if test "${with_libtiff+set}" = set; then
2651 withval="$with_libtiff"
e6cc62c6 2652
10f2d63a 2653 if test "$withval" = yes; then
b12915c1 2654 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2655 elif test "$withval" = no; then
b12915c1 2656 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2657 elif test "$withval" = sys; then
2658 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2659 elif test "$withval" = builtin; then
2660 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2661 else
e6cc62c6
VS
2662 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2663echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2664 { (exit 1); exit 1; }; }
10f2d63a 2665 fi
e6cc62c6 2666
10f2d63a 2667else
e6cc62c6 2668
b12915c1 2669 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
b12915c1 2676 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2677
e6cc62c6 2678fi;
10f2d63a 2679
b12915c1 2680 eval "$ac_cv_use_libtiff"
10f2d63a 2681 if test "$no_cache" != 1; then
b12915c1 2682 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2683 fi
2684
b12915c1 2685 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2686 echo "$as_me:$LINENO: result: yes" >&5
2687echo "${ECHO_T}yes" >&6
0dcf9893 2688 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2689 echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6
0dcf9893 2691 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2692 echo "$as_me:$LINENO: result: system version" >&5
2693echo "${ECHO_T}system version" >&6
4f14bcd8 2694 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2695 echo "$as_me:$LINENO: result: builtin version" >&5
2696echo "${ECHO_T}builtin version" >&6
0dcf9893 2697 else
e6cc62c6
VS
2698 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2699echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2700 { (exit 1); exit 1; }; }
10f2d63a 2701 fi
10f2d63a 2702
e6cc62c6
VS
2703
2704 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2705echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2706 no_cache=0
e6cc62c6
VS
2707
2708# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2709if test "${with_opengl+set}" = set; then
2710 withval="$with_opengl"
e6cc62c6 2711
10f2d63a 2712 if test "$withval" = yes; then
b12915c1 2713 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2714 else
b12915c1 2715 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2716 fi
e6cc62c6 2717
10f2d63a 2718else
e6cc62c6 2719
b12915c1 2720 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2721 if test "x$LINE" != x ; then
2722 eval "DEFAULT_$LINE"
2723 else
2724 no_cache=1
2725 fi
2726
b12915c1 2727 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2728
e6cc62c6 2729fi;
10f2d63a 2730
b12915c1 2731 eval "$ac_cv_use_opengl"
10f2d63a 2732 if test "$no_cache" != 1; then
b12915c1 2733 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2734 fi
2735
b12915c1 2736 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2737 echo "$as_me:$LINENO: result: yes" >&5
2738echo "${ECHO_T}yes" >&6
10f2d63a 2739 else
e6cc62c6
VS
2740 echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
10f2d63a 2742 fi
e6cc62c6 2743
10f2d63a 2744
b12915c1
VZ
2745fi
2746
5c6fa7d2 2747
e6cc62c6
VS
2748 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2749echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2750 no_cache=0
e6cc62c6
VS
2751
2752# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2753if test "${with_dmalloc+set}" = set; then
2754 withval="$with_dmalloc"
e6cc62c6 2755
c7a2bf27 2756 if test "$withval" = yes; then
b12915c1 2757 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2758 else
b12915c1 2759 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2760 fi
e6cc62c6 2761
c7a2bf27 2762else
e6cc62c6 2763
b12915c1 2764 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2765 if test "x$LINE" != x ; then
2766 eval "DEFAULT_$LINE"
2767 else
2768 no_cache=1
2769 fi
2770
b12915c1 2771 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2772
e6cc62c6 2773fi;
c7a2bf27 2774
b12915c1 2775 eval "$ac_cv_use_dmalloc"
c7a2bf27 2776 if test "$no_cache" != 1; then
b12915c1 2777 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2778 fi
2779
b12915c1 2780 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2781 echo "$as_me:$LINENO: result: yes" >&5
2782echo "${ECHO_T}yes" >&6
c7a2bf27 2783 else
e6cc62c6
VS
2784 echo "$as_me:$LINENO: result: no" >&5
2785echo "${ECHO_T}no" >&6
c7a2bf27 2786 fi
c7a2bf27 2787
e6cc62c6
VS
2788
2789 echo "$as_me:$LINENO: checking for --with-regex" >&5
2790echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2791 no_cache=0
e6cc62c6
VS
2792
2793# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2794if test "${with_regex+set}" = set; then
2795 withval="$with_regex"
e6cc62c6 2796
3e44f09d
VZ
2797 if test "$withval" = yes; then
2798 ac_cv_use_regex='wxUSE_REGEX=yes'
2799 elif test "$withval" = no; then
2800 ac_cv_use_regex='wxUSE_REGEX=no'
2801 elif test "$withval" = sys; then
2802 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2803 elif test "$withval" = builtin; then
2804 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2805 else
e6cc62c6
VS
2806 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2807echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2808 { (exit 1); exit 1; }; }
3e44f09d 2809 fi
e6cc62c6 2810
3e44f09d 2811else
e6cc62c6 2812
3e44f09d
VZ
2813 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2821
e6cc62c6 2822fi;
3e44f09d
VZ
2823
2824 eval "$ac_cv_use_regex"
2825 if test "$no_cache" != 1; then
2826 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2827 fi
2828
2829 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: yes" >&5
2831echo "${ECHO_T}yes" >&6
3e44f09d 2832 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2833 echo "$as_me:$LINENO: result: no" >&5
2834echo "${ECHO_T}no" >&6
3e44f09d 2835 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2836 echo "$as_me:$LINENO: result: system version" >&5
2837echo "${ECHO_T}system version" >&6
4f14bcd8 2838 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2839 echo "$as_me:$LINENO: result: builtin version" >&5
2840echo "${ECHO_T}builtin version" >&6
3e44f09d 2841 else
e6cc62c6
VS
2842 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2843echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2844 { (exit 1); exit 1; }; }
3e44f09d 2845 fi
3e44f09d 2846
e6cc62c6
VS
2847
2848 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2849echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2850 no_cache=0
e6cc62c6
VS
2851
2852# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2853if test "${with_zlib+set}" = set; then
2854 withval="$with_zlib"
e6cc62c6 2855
10f2d63a 2856 if test "$withval" = yes; then
b12915c1 2857 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2858 elif test "$withval" = no; then
b12915c1 2859 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2860 elif test "$withval" = sys; then
2861 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2862 elif test "$withval" = builtin; then
2863 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2864 else
e6cc62c6
VS
2865 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2866echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2867 { (exit 1); exit 1; }; }
10f2d63a 2868 fi
e6cc62c6 2869
10f2d63a 2870else
e6cc62c6 2871
b12915c1 2872 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2873 if test "x$LINE" != x ; then
2874 eval "DEFAULT_$LINE"
2875 else
2876 no_cache=1
2877 fi
2878
b12915c1 2879 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2880
e6cc62c6 2881fi;
10f2d63a 2882
b12915c1 2883 eval "$ac_cv_use_zlib"
10f2d63a 2884 if test "$no_cache" != 1; then
b12915c1 2885 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2886 fi
2887
b12915c1 2888 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2889 echo "$as_me:$LINENO: result: yes" >&5
2890echo "${ECHO_T}yes" >&6
422107f9 2891 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2892 echo "$as_me:$LINENO: result: no" >&5
2893echo "${ECHO_T}no" >&6
422107f9 2894 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2895 echo "$as_me:$LINENO: result: system version" >&5
2896echo "${ECHO_T}system version" >&6
4f14bcd8 2897 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2898 echo "$as_me:$LINENO: result: builtin version" >&5
2899echo "${ECHO_T}builtin version" >&6
422107f9 2900 else
e6cc62c6
VS
2901 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2902echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2903 { (exit 1); exit 1; }; }
10f2d63a 2904 fi
10f2d63a 2905
e6cc62c6
VS
2906
2907 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2908echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2909 no_cache=0
e6cc62c6
VS
2910
2911# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2912if test "${with_odbc+set}" = set; then
2913 withval="$with_odbc"
e6cc62c6 2914
10f2d63a
VZ
2915 if test "$withval" = yes; then
2916 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2917 elif test "$withval" = no; then
10f2d63a 2918 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2919 elif test "$withval" = sys; then
2920 ac_cv_use_odbc='wxUSE_ODBC=sys'
2921 elif test "$withval" = builtin; then
2922 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2923 else
e6cc62c6
VS
2924 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2925echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2926 { (exit 1); exit 1; }; }
10f2d63a 2927 fi
e6cc62c6 2928
10f2d63a 2929else
e6cc62c6 2930
10f2d63a
VZ
2931 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2932 if test "x$LINE" != x ; then
2933 eval "DEFAULT_$LINE"
2934 else
2935 no_cache=1
2936 fi
2937
2938 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2939
e6cc62c6 2940fi;
10f2d63a
VZ
2941
2942 eval "$ac_cv_use_odbc"
2943 if test "$no_cache" != 1; then
2944 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2945 fi
2946
2947 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
2948 echo "$as_me:$LINENO: result: yes" >&5
2949echo "${ECHO_T}yes" >&6
8647bec6 2950 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
2951 echo "$as_me:$LINENO: result: no" >&5
2952echo "${ECHO_T}no" >&6
8647bec6 2953 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
2954 echo "$as_me:$LINENO: result: system version" >&5
2955echo "${ECHO_T}system version" >&6
8647bec6 2956 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
2957 echo "$as_me:$LINENO: result: builtin version" >&5
2958echo "${ECHO_T}builtin version" >&6
8647bec6 2959 else
e6cc62c6
VS
2960 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2961echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2962 { (exit 1); exit 1; }; }
10f2d63a 2963 fi
e6cc62c6 2964
52127426 2965
8284b0c5
MB
2966
2967
5005acfe 2968 enablestring=
e6cc62c6
VS
2969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
2970echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
2971 no_cache=0
2972 # Check whether --enable-shared or --disable-shared was given.
2973if test "${enable_shared+set}" = set; then
2974 enableval="$enable_shared"
e6cc62c6 2975
10f2d63a
VZ
2976 if test "$enableval" = yes; then
2977 ac_cv_use_shared='wxUSE_SHARED=yes'
2978 else
2979 ac_cv_use_shared='wxUSE_SHARED=no'
2980 fi
e6cc62c6 2981
10f2d63a 2982else
e6cc62c6 2983
10f2d63a
VZ
2984 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 2992
e6cc62c6 2993fi;
10f2d63a
VZ
2994
2995 eval "$ac_cv_use_shared"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
10f2d63a 3003 else
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
10f2d63a 3006 fi
e6cc62c6 3007
10f2d63a 3008
5005acfe 3009 enablestring=
e6cc62c6
VS
3010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-soname" >&5
3011echo $ECHO_N "checking for --${enablestring:-enable}-soname... $ECHO_C" >&6
00cf1208 3012 no_cache=0
3a922bb4
RL
3013 # Check whether --enable-soname or --disable-soname was given.
3014if test "${enable_soname+set}" = set; then
3015 enableval="$enable_soname"
e6cc62c6 3016
00cf1208 3017 if test "$enableval" = yes; then
3a922bb4 3018 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 3019 else
3a922bb4 3020 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 3021 fi
e6cc62c6 3022
00cf1208 3023else
e6cc62c6 3024
3a922bb4 3025 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3a922bb4 3032 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
00cf1208 3033
e6cc62c6 3034fi;
00cf1208 3035
3a922bb4 3036 eval "$ac_cv_use_soname"
00cf1208 3037 if test "$no_cache" != 1; then
3a922bb4 3038 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
3039 fi
3040
3a922bb4 3041 if test "$wxUSE_SONAME" = yes; then
e6cc62c6
VS
3042 echo "$as_me:$LINENO: result: yes" >&5
3043echo "${ECHO_T}yes" >&6
00cf1208 3044 else
e6cc62c6
VS
3045 echo "$as_me:$LINENO: result: no" >&5
3046echo "${ECHO_T}no" >&6
00cf1208 3047 fi
e6cc62c6 3048
00cf1208 3049
5005acfe 3050 enablestring=
e6cc62c6
VS
3051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3052echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3053 no_cache=0
3054 # Check whether --enable-optimise or --disable-optimise was given.
3055if test "${enable_optimise+set}" = set; then
3056 enableval="$enable_optimise"
e6cc62c6 3057
10f2d63a
VZ
3058 if test "$enableval" = yes; then
3059 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3060 else
3061 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3062 fi
e6cc62c6 3063
10f2d63a 3064else
e6cc62c6 3065
10f2d63a
VZ
3066 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3074
e6cc62c6 3075fi;
10f2d63a
VZ
3076
3077 eval "$ac_cv_use_optimise"
3078 if test "$no_cache" != 1; then
3079 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3080 fi
3081
3082 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3083 echo "$as_me:$LINENO: result: yes" >&5
3084echo "${ECHO_T}yes" >&6
10f2d63a 3085 else
e6cc62c6
VS
3086 echo "$as_me:$LINENO: result: no" >&5
3087echo "${ECHO_T}no" >&6
10f2d63a 3088 fi
e6cc62c6 3089
10f2d63a 3090
5005acfe 3091 enablestring=
e6cc62c6
VS
3092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3093echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3094 no_cache=0
3095 # Check whether --enable-debug or --disable-debug was given.
3096if test "${enable_debug+set}" = set; then
3097 enableval="$enable_debug"
e6cc62c6 3098
10f2d63a
VZ
3099 if test "$enableval" = yes; then
3100 ac_cv_use_debug='wxUSE_DEBUG=yes'
3101 else
3102 ac_cv_use_debug='wxUSE_DEBUG=no'
3103 fi
e6cc62c6 3104
10f2d63a 3105else
e6cc62c6 3106
10f2d63a
VZ
3107 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3115
e6cc62c6 3116fi;
10f2d63a
VZ
3117
3118 eval "$ac_cv_use_debug"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3124 echo "$as_me:$LINENO: result: yes" >&5
3125echo "${ECHO_T}yes" >&6
10f2d63a 3126 else
e6cc62c6
VS
3127 echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
10f2d63a 3129 fi
e6cc62c6 3130
52127426 3131
8284b0c5 3132
5005acfe 3133 enablestring=
e6cc62c6
VS
3134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5
3135echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6
683dccda
GD
3136 no_cache=0
3137 # Check whether --enable-precomp or --disable-precomp was given.
3138if test "${enable_precomp+set}" = set; then
3139 enableval="$enable_precomp"
e6cc62c6 3140
683dccda
GD
3141 if test "$enableval" = yes; then
3142 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
3143 else
3144 ac_cv_use_precomp='wxUSE_PRECOMP=no'
3145 fi
e6cc62c6 3146
683dccda 3147else
e6cc62c6 3148
683dccda
GD
3149 LINE=`grep "wxUSE_PRECOMP" ${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_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
683dccda 3157
e6cc62c6 3158fi;
683dccda
GD
3159
3160 eval "$ac_cv_use_precomp"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_PRECOMP" = yes; then
e6cc62c6
VS
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
683dccda 3168 else
e6cc62c6
VS
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
683dccda 3171 fi
e6cc62c6 3172
683dccda 3173
10f2d63a
VZ
3174if test "$wxUSE_DEBUG" = "yes"; then
3175 DEFAULT_wxUSE_DEBUG_FLAG=yes
3176 DEFAULT_wxUSE_DEBUG_INFO=yes
3177elif test "$wxUSE_DEBUG" = "no"; then
3178 DEFAULT_wxUSE_DEBUG_FLAG=no
3179 DEFAULT_wxUSE_DEBUG_INFO=no
3180fi
3181
8284b0c5 3182
5005acfe 3183 enablestring=
e6cc62c6
VS
3184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3185echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3186 no_cache=0
3187 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3188if test "${enable_debug_flag+set}" = set; then
3189 enableval="$enable_debug_flag"
e6cc62c6 3190
10f2d63a
VZ
3191 if test "$enableval" = yes; then
3192 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3193 else
3194 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3195 fi
e6cc62c6 3196
10f2d63a 3197else
e6cc62c6 3198
10f2d63a
VZ
3199 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3200 if test "x$LINE" != x ; then
3201 eval "DEFAULT_$LINE"
3202 else
3203 no_cache=1
3204 fi
3205
3206 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3207
e6cc62c6 3208fi;
10f2d63a
VZ
3209
3210 eval "$ac_cv_use_debug_flag"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3216 echo "$as_me:$LINENO: result: yes" >&5
3217echo "${ECHO_T}yes" >&6
10f2d63a 3218 else
e6cc62c6
VS
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
10f2d63a 3221 fi
e6cc62c6 3222
10f2d63a 3223
5005acfe 3224 enablestring=
e6cc62c6
VS
3225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3226echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3227 no_cache=0
3228 # Check whether --enable-debug_info or --disable-debug_info was given.
3229if test "${enable_debug_info+set}" = set; then
3230 enableval="$enable_debug_info"
e6cc62c6 3231
10f2d63a
VZ
3232 if test "$enableval" = yes; then
3233 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3234 else
3235 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3236 fi
e6cc62c6 3237
10f2d63a 3238else
e6cc62c6 3239
10f2d63a
VZ
3240 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3241 if test "x$LINE" != x ; then
3242 eval "DEFAULT_$LINE"
3243 else
3244 no_cache=1
3245 fi
3246
3247 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3248
e6cc62c6 3249fi;
10f2d63a
VZ
3250
3251 eval "$ac_cv_use_debug_info"
3252 if test "$no_cache" != 1; then
3253 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3254 fi
3255
3256 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3257 echo "$as_me:$LINENO: result: yes" >&5
3258echo "${ECHO_T}yes" >&6
10f2d63a 3259 else
e6cc62c6
VS
3260 echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
10f2d63a 3262 fi
e6cc62c6 3263
10f2d63a 3264
5005acfe 3265 enablestring=
e6cc62c6
VS
3266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3267echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3268 no_cache=0
3269 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3270if test "${enable_debug_gdb+set}" = set; then
3271 enableval="$enable_debug_gdb"
e6cc62c6 3272
10f2d63a
VZ
3273 if test "$enableval" = yes; then
3274 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3275 else
3276 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3277 fi
e6cc62c6 3278
10f2d63a 3279else
e6cc62c6 3280
10f2d63a
VZ
3281 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3289
e6cc62c6 3290fi;
10f2d63a
VZ
3291
3292 eval "$ac_cv_use_debug_gdb"
3293 if test "$no_cache" != 1; then
3294 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3295 fi
3296
3297 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3298 echo "$as_me:$LINENO: result: yes" >&5
3299echo "${ECHO_T}yes" >&6
10f2d63a 3300 else
e6cc62c6
VS
3301 echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
10f2d63a 3303 fi
e6cc62c6 3304
10f2d63a 3305
5005acfe 3306 enablestring=
e6cc62c6
VS
3307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3308echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3309 no_cache=0
3310 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3311if test "${enable_debug_cntxt+set}" = set; then
3312 enableval="$enable_debug_cntxt"
e6cc62c6 3313
10f2d63a
VZ
3314 if test "$enableval" = yes; then
3315 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3316 else
3317 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3318 fi
e6cc62c6 3319
10f2d63a 3320else
e6cc62c6 3321
10f2d63a
VZ
3322 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3330
e6cc62c6 3331fi;
10f2d63a
VZ
3332
3333 eval "$ac_cv_use_debug_cntxt"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3339 echo "$as_me:$LINENO: result: yes" >&5
3340echo "${ECHO_T}yes" >&6
10f2d63a 3341 else
e6cc62c6
VS
3342 echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
10f2d63a 3344 fi
e6cc62c6 3345
10f2d63a 3346
5005acfe 3347 enablestring=
e6cc62c6
VS
3348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3349echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3350 no_cache=0
3351 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3352if test "${enable_mem_tracing+set}" = set; then
3353 enableval="$enable_mem_tracing"
e6cc62c6 3354
10f2d63a
VZ
3355 if test "$enableval" = yes; then
3356 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3357 else
3358 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3359 fi
e6cc62c6 3360
10f2d63a 3361else
e6cc62c6 3362
10f2d63a
VZ
3363 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3371
e6cc62c6 3372fi;
10f2d63a
VZ
3373
3374 eval "$ac_cv_use_mem_tracing"
3375 if test "$no_cache" != 1; then
3376 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3377 fi
3378
3379 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3380 echo "$as_me:$LINENO: result: yes" >&5
3381echo "${ECHO_T}yes" >&6
10f2d63a 3382 else
e6cc62c6
VS
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
10f2d63a 3385 fi
e6cc62c6 3386
10f2d63a 3387
5005acfe 3388 enablestring=
e6cc62c6
VS
3389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3390echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3391 no_cache=0
3392 # Check whether --enable-profile or --disable-profile was given.
3393if test "${enable_profile+set}" = set; then
3394 enableval="$enable_profile"
e6cc62c6 3395
10f2d63a
VZ
3396 if test "$enableval" = yes; then
3397 ac_cv_use_profile='wxUSE_PROFILE=yes'
3398 else
3399 ac_cv_use_profile='wxUSE_PROFILE=no'
3400 fi
e6cc62c6 3401
10f2d63a 3402else
e6cc62c6 3403
10f2d63a
VZ
3404 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3412
e6cc62c6 3413fi;
10f2d63a
VZ
3414
3415 eval "$ac_cv_use_profile"
3416 if test "$no_cache" != 1; then
3417 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3418 fi
3419
3420 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3421 echo "$as_me:$LINENO: result: yes" >&5
3422echo "${ECHO_T}yes" >&6
10f2d63a 3423 else
e6cc62c6
VS
3424 echo "$as_me:$LINENO: result: no" >&5
3425echo "${ECHO_T}no" >&6
10f2d63a 3426 fi
e6cc62c6 3427
10f2d63a 3428
5005acfe 3429 enablestring=
e6cc62c6
VS
3430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3431echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3432 no_cache=0
3433 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3434if test "${enable_no_rtti+set}" = set; then
3435 enableval="$enable_no_rtti"
e6cc62c6 3436
10f2d63a
VZ
3437 if test "$enableval" = yes; then
3438 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3439 else
3440 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3441 fi
e6cc62c6 3442
10f2d63a 3443else
e6cc62c6 3444
10f2d63a
VZ
3445 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3453
e6cc62c6 3454fi;
10f2d63a
VZ
3455
3456 eval "$ac_cv_use_no_rtti"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3462 echo "$as_me:$LINENO: result: yes" >&5
3463echo "${ECHO_T}yes" >&6
10f2d63a 3464 else
e6cc62c6
VS
3465 echo "$as_me:$LINENO: result: no" >&5
3466echo "${ECHO_T}no" >&6
10f2d63a 3467 fi
e6cc62c6 3468
10f2d63a 3469
5005acfe 3470 enablestring=
e6cc62c6
VS
3471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3472echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3473 no_cache=0
3474 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3475if test "${enable_no_exceptions+set}" = set; then
3476 enableval="$enable_no_exceptions"
e6cc62c6 3477
10f2d63a
VZ
3478 if test "$enableval" = yes; then
3479 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3480 else
3481 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3482 fi
e6cc62c6 3483
10f2d63a 3484else
e6cc62c6 3485
10f2d63a
VZ
3486 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3494
e6cc62c6 3495fi;
10f2d63a
VZ
3496
3497 eval "$ac_cv_use_no_exceptions"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3503 echo "$as_me:$LINENO: result: yes" >&5
3504echo "${ECHO_T}yes" >&6
10f2d63a 3505 else
e6cc62c6
VS
3506 echo "$as_me:$LINENO: result: no" >&5
3507echo "${ECHO_T}no" >&6
10f2d63a 3508 fi
e6cc62c6 3509
10f2d63a 3510
5005acfe 3511 enablestring=
e6cc62c6
VS
3512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3513echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3514 no_cache=0
3515 # Check whether --enable-permissive or --disable-permissive was given.
3516if test "${enable_permissive+set}" = set; then
3517 enableval="$enable_permissive"
e6cc62c6 3518
10f2d63a
VZ
3519 if test "$enableval" = yes; then
3520 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3521 else
3522 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3523 fi
e6cc62c6 3524
10f2d63a 3525else
e6cc62c6 3526
10f2d63a
VZ
3527 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3535
e6cc62c6 3536fi;
10f2d63a
VZ
3537
3538 eval "$ac_cv_use_permissive"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3544 echo "$as_me:$LINENO: result: yes" >&5
3545echo "${ECHO_T}yes" >&6
10f2d63a 3546 else
e6cc62c6
VS
3547 echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
10f2d63a 3549 fi
e6cc62c6 3550
10f2d63a 3551
5005acfe 3552 enablestring=
e6cc62c6
VS
3553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3554echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3555 no_cache=0
3556 # Check whether --enable-no_deps or --disable-no_deps was given.
3557if test "${enable_no_deps+set}" = set; then
3558 enableval="$enable_no_deps"
e6cc62c6 3559
10f2d63a
VZ
3560 if test "$enableval" = yes; then
3561 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3562 else
3563 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3564 fi
e6cc62c6 3565
10f2d63a 3566else
e6cc62c6 3567
10f2d63a
VZ
3568 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3576
e6cc62c6 3577fi;
10f2d63a
VZ
3578
3579 eval "$ac_cv_use_no_deps"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3585 echo "$as_me:$LINENO: result: yes" >&5
3586echo "${ECHO_T}yes" >&6
10f2d63a 3587 else
e6cc62c6
VS
3588 echo "$as_me:$LINENO: result: no" >&5
3589echo "${ECHO_T}no" >&6
10f2d63a 3590 fi
e6cc62c6 3591
52127426 3592
8284b0c5 3593
5005acfe 3594 enablestring=
e6cc62c6
VS
3595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3596echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
54276ccf
VZ
3597 no_cache=0
3598 # Check whether --enable-compat20 or --disable-compat20 was given.
3599if test "${enable_compat20+set}" = set; then
3600 enableval="$enable_compat20"
e6cc62c6 3601
54276ccf
VZ
3602 if test "$enableval" = yes; then
3603 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3604 else
3605 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3606 fi
e6cc62c6 3607
54276ccf 3608else
e6cc62c6 3609
54276ccf
VZ
3610 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
54276ccf 3618
e6cc62c6 3619fi;
54276ccf
VZ
3620
3621 eval "$ac_cv_use_compat20"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$WXWIN_COMPATIBILITY_2" = yes; then
e6cc62c6
VS
3627 echo "$as_me:$LINENO: result: yes" >&5
3628echo "${ECHO_T}yes" >&6
54276ccf 3629 else
e6cc62c6
VS
3630 echo "$as_me:$LINENO: result: no" >&5
3631echo "${ECHO_T}no" >&6
54276ccf 3632 fi
e6cc62c6 3633
54276ccf 3634
65d8ef1e 3635 enablestring=
e6cc62c6
VS
3636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3637echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3638 no_cache=0
3639 # Check whether --enable-compat22 or --disable-compat22 was given.
3640if test "${enable_compat22+set}" = set; then
3641 enableval="$enable_compat22"
e6cc62c6 3642
54276ccf
VZ
3643 if test "$enableval" = yes; then
3644 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3645 else
3646 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3647 fi
e6cc62c6 3648
54276ccf 3649else
e6cc62c6 3650
54276ccf
VZ
3651 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3659
e6cc62c6 3660fi;
54276ccf
VZ
3661
3662 eval "$ac_cv_use_compat22"
3663 if test "$no_cache" != 1; then
3664 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3665 fi
3666
3667 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3668 echo "$as_me:$LINENO: result: yes" >&5
3669echo "${ECHO_T}yes" >&6
54276ccf 3670 else
e6cc62c6
VS
3671 echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
54276ccf 3673 fi
e6cc62c6 3674
54276ccf 3675
65d8ef1e 3676 enablestring=disable
e6cc62c6
VS
3677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3678echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3679 no_cache=0
3680 # Check whether --enable-compat24 or --disable-compat24 was given.
3681if test "${enable_compat24+set}" = set; then
3682 enableval="$enable_compat24"
e6cc62c6 3683
65d8ef1e
VS
3684 if test "$enableval" = yes; then
3685 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3686 else
3687 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3688 fi
e6cc62c6 3689
65d8ef1e 3690else
e6cc62c6 3691
65d8ef1e
VS
3692 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3693 if test "x$LINE" != x ; then
3694 eval "DEFAULT_$LINE"
3695 else
3696 no_cache=1
3697 fi
3698
3699 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3700
e6cc62c6 3701fi;
65d8ef1e
VS
3702
3703 eval "$ac_cv_use_compat24"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3709 echo "$as_me:$LINENO: result: yes" >&5
3710echo "${ECHO_T}yes" >&6
65d8ef1e 3711 else
e6cc62c6
VS
3712 echo "$as_me:$LINENO: result: no" >&5
3713echo "${ECHO_T}no" >&6
65d8ef1e 3714 fi
e6cc62c6 3715
65d8ef1e 3716
3bd8fb5f
RD
3717# Check whether --enable-rpath or --disable-rpath was given.
3718if test "${enable_rpath+set}" = set; then
3719 enableval="$enable_rpath"
3720 wxRPATH_DIR="$enableval"
e6cc62c6 3721fi;
3bd8fb5f
RD
3722
3723if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3724 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3725fi
3726
8284b0c5
MB
3727
3728
3729
5005acfe 3730 enablestring=
e6cc62c6
VS
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3733 no_cache=0
3734 # Check whether --enable-intl or --disable-intl was given.
3735if test "${enable_intl+set}" = set; then
3736 enableval="$enable_intl"
e6cc62c6 3737
10f2d63a
VZ
3738 if test "$enableval" = yes; then
3739 ac_cv_use_intl='wxUSE_INTL=yes'
3740 else
3741 ac_cv_use_intl='wxUSE_INTL=no'
3742 fi
e6cc62c6 3743
10f2d63a 3744else
e6cc62c6 3745
10f2d63a
VZ
3746 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3754
e6cc62c6 3755fi;
10f2d63a
VZ
3756
3757 eval "$ac_cv_use_intl"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
10f2d63a 3765 else
e6cc62c6
VS
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
10f2d63a 3768 fi
e6cc62c6 3769
10f2d63a 3770
5005acfe 3771 enablestring=
e6cc62c6
VS
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3773echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3774 no_cache=0
3775 # Check whether --enable-config or --disable-config was given.
3776if test "${enable_config+set}" = set; then
3777 enableval="$enable_config"
e6cc62c6 3778
10f2d63a
VZ
3779 if test "$enableval" = yes; then
3780 ac_cv_use_config='wxUSE_CONFIG=yes'
3781 else
3782 ac_cv_use_config='wxUSE_CONFIG=no'
3783 fi
e6cc62c6 3784
10f2d63a 3785else
e6cc62c6 3786
10f2d63a
VZ
3787 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3795
e6cc62c6 3796fi;
10f2d63a
VZ
3797
3798 eval "$ac_cv_use_config"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3804 echo "$as_me:$LINENO: result: yes" >&5
3805echo "${ECHO_T}yes" >&6
10f2d63a 3806 else
e6cc62c6
VS
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
10f2d63a 3809 fi
e6cc62c6 3810
52127426 3811
8284b0c5 3812
5005acfe 3813 enablestring=
e6cc62c6
VS
3814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3815echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3816 no_cache=0
3817 # Check whether --enable-protocols or --disable-protocols was given.
3818if test "${enable_protocols+set}" = set; then
3819 enableval="$enable_protocols"
e6cc62c6 3820
a1622950
VZ
3821 if test "$enableval" = yes; then
3822 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3823 else
3824 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3825 fi
e6cc62c6 3826
a1622950 3827else
e6cc62c6 3828
a1622950
VZ
3829 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3837
e6cc62c6 3838fi;
a1622950
VZ
3839
3840 eval "$ac_cv_use_protocols"
3841 if test "$no_cache" != 1; then
3842 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3843 fi
3844
3845 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3846 echo "$as_me:$LINENO: result: yes" >&5
3847echo "${ECHO_T}yes" >&6
a1622950 3848 else
e6cc62c6
VS
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
a1622950 3851 fi
e6cc62c6 3852
a1622950 3853
5005acfe 3854 enablestring=
e6cc62c6
VS
3855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3856echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3857 no_cache=0
3858 # Check whether --enable-ftp or --disable-ftp was given.
3859if test "${enable_ftp+set}" = set; then
3860 enableval="$enable_ftp"
e6cc62c6 3861
a1622950
VZ
3862 if test "$enableval" = yes; then
3863 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3864 else
3865 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3866 fi
e6cc62c6 3867
a1622950 3868else
e6cc62c6 3869
a1622950
VZ
3870 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3878
e6cc62c6 3879fi;
a1622950
VZ
3880
3881 eval "$ac_cv_use_ftp"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3887 echo "$as_me:$LINENO: result: yes" >&5
3888echo "${ECHO_T}yes" >&6
a1622950 3889 else
e6cc62c6
VS
3890 echo "$as_me:$LINENO: result: no" >&5
3891echo "${ECHO_T}no" >&6
a1622950 3892 fi
e6cc62c6 3893
a1622950 3894
5005acfe 3895 enablestring=
e6cc62c6
VS
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3898 no_cache=0
3899 # Check whether --enable-http or --disable-http was given.
3900if test "${enable_http+set}" = set; then
3901 enableval="$enable_http"
e6cc62c6 3902
a1622950
VZ
3903 if test "$enableval" = yes; then
3904 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3905 else
3906 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3907 fi
e6cc62c6 3908
a1622950 3909else
e6cc62c6 3910
a1622950
VZ
3911 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3919
e6cc62c6 3920fi;
a1622950
VZ
3921
3922 eval "$ac_cv_use_http"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
a1622950 3930 else
e6cc62c6
VS
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
a1622950 3933 fi
e6cc62c6 3934
a1622950 3935
5005acfe 3936 enablestring=
e6cc62c6
VS
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3939 no_cache=0
3940 # Check whether --enable-fileproto or --disable-fileproto was given.
3941if test "${enable_fileproto+set}" = set; then
3942 enableval="$enable_fileproto"
e6cc62c6 3943
a1622950
VZ
3944 if test "$enableval" = yes; then
3945 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3946 else
3947 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3948 fi
e6cc62c6 3949
a1622950 3950else
e6cc62c6 3951
a1622950
VZ
3952 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3960
e6cc62c6 3961fi;
a1622950
VZ
3962
3963 eval "$ac_cv_use_fileproto"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
a1622950 3971 else
e6cc62c6
VS
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
a1622950 3974 fi
e6cc62c6 3975
a1622950 3976
5005acfe 3977 enablestring=
e6cc62c6
VS
3978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
3979echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
3980 no_cache=0
3981 # Check whether --enable-sockets or --disable-sockets was given.
3982if test "${enable_sockets+set}" = set; then
3983 enableval="$enable_sockets"
e6cc62c6 3984
10f2d63a
VZ
3985 if test "$enableval" = yes; then
3986 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3987 else
3988 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3989 fi
e6cc62c6 3990
10f2d63a 3991else
e6cc62c6 3992
10f2d63a
VZ
3993 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4001
e6cc62c6 4002fi;
10f2d63a
VZ
4003
4004 eval "$ac_cv_use_sockets"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4010 echo "$as_me:$LINENO: result: yes" >&5
4011echo "${ECHO_T}yes" >&6
10f2d63a 4012 else
e6cc62c6
VS
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
10f2d63a 4015 fi
e6cc62c6 4016
8284b0c5 4017
5005acfe 4018 enablestring=
e6cc62c6
VS
4019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4020echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4021 no_cache=0
4022 # Check whether --enable-ole or --disable-ole was given.
4023if test "${enable_ole+set}" = set; then
4024 enableval="$enable_ole"
e6cc62c6 4025
3bce6687
JS
4026 if test "$enableval" = yes; then
4027 ac_cv_use_ole='wxUSE_OLE=yes'
4028 else
4029 ac_cv_use_ole='wxUSE_OLE=no'
4030 fi
e6cc62c6 4031
3bce6687 4032else
e6cc62c6 4033
3bce6687
JS
4034 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4042
e6cc62c6 4043fi;
3bce6687
JS
4044
4045 eval "$ac_cv_use_ole"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4051 echo "$as_me:$LINENO: result: yes" >&5
4052echo "${ECHO_T}yes" >&6
3bce6687 4053 else
e6cc62c6
VS
4054 echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
3bce6687 4056 fi
e6cc62c6 4057
3bce6687 4058
5005acfe 4059 enablestring=
e6cc62c6
VS
4060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4061echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4062 no_cache=0
4063 # Check whether --enable-dataobj or --disable-dataobj was given.
4064if test "${enable_dataobj+set}" = set; then
4065 enableval="$enable_dataobj"
e6cc62c6 4066
3bce6687
JS
4067 if test "$enableval" = yes; then
4068 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4069 else
4070 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4071 fi
e6cc62c6 4072
3bce6687 4073else
e6cc62c6 4074
3bce6687
JS
4075 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4083
e6cc62c6 4084fi;
3bce6687
JS
4085
4086 eval "$ac_cv_use_dataobj"
4087 if test "$no_cache" != 1; then
4088 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4089 fi
4090
4091 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4092 echo "$as_me:$LINENO: result: yes" >&5
4093echo "${ECHO_T}yes" >&6
3bce6687 4094 else
e6cc62c6
VS
4095 echo "$as_me:$LINENO: result: no" >&5
4096echo "${ECHO_T}no" >&6
3bce6687 4097 fi
e6cc62c6 4098
3bce6687 4099
52127426 4100
5005acfe 4101 enablestring=
e6cc62c6
VS
4102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4103echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4104 no_cache=0
eb4efbdc
VZ
4105 # Check whether --enable-ipc or --disable-ipc was given.
4106if test "${enable_ipc+set}" = set; then
4107 enableval="$enable_ipc"
e6cc62c6 4108
10f2d63a 4109 if test "$enableval" = yes; then
eb4efbdc 4110 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4111 else
eb4efbdc 4112 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4113 fi
e6cc62c6 4114
10f2d63a 4115else
e6cc62c6 4116
eb4efbdc 4117 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4118 if test "x$LINE" != x ; then
4119 eval "DEFAULT_$LINE"
4120 else
4121 no_cache=1
4122 fi
4123
eb4efbdc 4124 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4125
e6cc62c6 4126fi;
10f2d63a 4127
eb4efbdc 4128 eval "$ac_cv_use_ipc"
10f2d63a 4129 if test "$no_cache" != 1; then
eb4efbdc 4130 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4131 fi
4132
eb4efbdc 4133 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4134 echo "$as_me:$LINENO: result: yes" >&5
4135echo "${ECHO_T}yes" >&6
10f2d63a 4136 else
e6cc62c6
VS
4137 echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6
10f2d63a 4139 fi
e6cc62c6 4140
52127426 4141
8284b0c5 4142
5005acfe 4143 enablestring=
e6cc62c6
VS
4144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4145echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4146 no_cache=0
4147 # Check whether --enable-cmdline or --disable-cmdline was given.
4148if test "${enable_cmdline+set}" = set; then
4149 enableval="$enable_cmdline"
e6cc62c6 4150
1e6feb95
VZ
4151 if test "$enableval" = yes; then
4152 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4153 else
4154 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4155 fi
e6cc62c6 4156
1e6feb95 4157else
e6cc62c6 4158
1e6feb95
VZ
4159 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4167
e6cc62c6 4168fi;
1e6feb95
VZ
4169
4170 eval "$ac_cv_use_cmdline"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4176 echo "$as_me:$LINENO: result: yes" >&5
4177echo "${ECHO_T}yes" >&6
1e6feb95 4178 else
e6cc62c6
VS
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
1e6feb95 4181 fi
e6cc62c6 4182
1e6feb95 4183
5005acfe 4184 enablestring=
e6cc62c6
VS
4185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4186echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4187 no_cache=0
4188 # Check whether --enable-datetime or --disable-datetime was given.
4189if test "${enable_datetime+set}" = set; then
4190 enableval="$enable_datetime"
e6cc62c6 4191
1e6feb95
VZ
4192 if test "$enableval" = yes; then
4193 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4194 else
4195 ac_cv_use_datetime='wxUSE_DATETIME=no'
4196 fi
e6cc62c6 4197
1e6feb95 4198else
e6cc62c6 4199
1e6feb95
VZ
4200 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4208
e6cc62c6 4209fi;
1e6feb95
VZ
4210
4211 eval "$ac_cv_use_datetime"
4212 if test "$no_cache" != 1; then
4213 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4214 fi
4215
4216 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4217 echo "$as_me:$LINENO: result: yes" >&5
4218echo "${ECHO_T}yes" >&6
1e6feb95 4219 else
e6cc62c6
VS
4220 echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
1e6feb95 4222 fi
e6cc62c6 4223
1e6feb95 4224
5005acfe 4225 enablestring=
e6cc62c6
VS
4226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4227echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4228 no_cache=0
4229 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4230if test "${enable_stopwatch+set}" = set; then
4231 enableval="$enable_stopwatch"
e6cc62c6 4232
1e6feb95
VZ
4233 if test "$enableval" = yes; then
4234 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4235 else
4236 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4237 fi
e6cc62c6 4238
1e6feb95 4239else
e6cc62c6 4240
1e6feb95
VZ
4241 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4242 if test "x$LINE" != x ; then
4243 eval "DEFAULT_$LINE"
4244 else
4245 no_cache=1
4246 fi
4247
4248 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4249
e6cc62c6 4250fi;
1e6feb95
VZ
4251
4252 eval "$ac_cv_use_stopwatch"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4258 echo "$as_me:$LINENO: result: yes" >&5
4259echo "${ECHO_T}yes" >&6
1e6feb95 4260 else
e6cc62c6
VS
4261 echo "$as_me:$LINENO: result: no" >&5
4262echo "${ECHO_T}no" >&6
1e6feb95 4263 fi
e6cc62c6 4264
1e6feb95 4265
5005acfe 4266 enablestring=
e6cc62c6
VS
4267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4268echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4269 no_cache=0
eb4efbdc
VZ
4270 # Check whether --enable-dialupman or --disable-dialupman was given.
4271if test "${enable_dialupman+set}" = set; then
4272 enableval="$enable_dialupman"
e6cc62c6 4273
10f2d63a 4274 if test "$enableval" = yes; then
eb4efbdc 4275 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4276 else
eb4efbdc 4277 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4278 fi
e6cc62c6 4279
10f2d63a 4280else
e6cc62c6 4281
eb4efbdc 4282 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
eb4efbdc 4289 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4290
e6cc62c6 4291fi;
10f2d63a 4292
eb4efbdc 4293 eval "$ac_cv_use_dialupman"
10f2d63a 4294 if test "$no_cache" != 1; then
eb4efbdc 4295 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4296 fi
4297
eb4efbdc 4298 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4299 echo "$as_me:$LINENO: result: yes" >&5
4300echo "${ECHO_T}yes" >&6
10f2d63a 4301 else
e6cc62c6
VS
4302 echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
10f2d63a 4304 fi
e6cc62c6 4305
10f2d63a 4306
5005acfe 4307 enablestring=
e6cc62c6
VS
4308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4309echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4310 no_cache=0
4311 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4312if test "${enable_apple_ieee+set}" = set; then
4313 enableval="$enable_apple_ieee"
e6cc62c6 4314
10f2d63a
VZ
4315 if test "$enableval" = yes; then
4316 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4317 else
4318 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4319 fi
e6cc62c6 4320
10f2d63a 4321else
e6cc62c6 4322
10f2d63a
VZ
4323 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4331
e6cc62c6 4332fi;
10f2d63a
VZ
4333
4334 eval "$ac_cv_use_apple_ieee"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4340 echo "$as_me:$LINENO: result: yes" >&5
4341echo "${ECHO_T}yes" >&6
10f2d63a 4342 else
e6cc62c6
VS
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
10f2d63a 4345 fi
e6cc62c6 4346
10f2d63a 4347
5005acfe 4348 enablestring=
e6cc62c6
VS
4349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4350echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4351 no_cache=0
1e6feb95
VZ
4352 # Check whether --enable-timer or --disable-timer was given.
4353if test "${enable_timer+set}" = set; then
4354 enableval="$enable_timer"
e6cc62c6 4355
10f2d63a 4356 if test "$enableval" = yes; then
1e6feb95 4357 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4358 else
1e6feb95 4359 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4360 fi
e6cc62c6 4361
10f2d63a 4362else
e6cc62c6 4363
1e6feb95 4364 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4365 if test "x$LINE" != x ; then
4366 eval "DEFAULT_$LINE"
4367 else
4368 no_cache=1
4369 fi
4370
1e6feb95 4371 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4372
e6cc62c6 4373fi;
10f2d63a 4374
1e6feb95 4375 eval "$ac_cv_use_timer"
10f2d63a 4376 if test "$no_cache" != 1; then
1e6feb95 4377 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4378 fi
4379
1e6feb95 4380 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4381 echo "$as_me:$LINENO: result: yes" >&5
4382echo "${ECHO_T}yes" >&6
10f2d63a 4383 else
e6cc62c6
VS
4384 echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6
10f2d63a 4386 fi
e6cc62c6 4387
10f2d63a 4388
5005acfe 4389 enablestring=
e6cc62c6
VS
4390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4391echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4392 no_cache=0
4393 # Check whether --enable-wave or --disable-wave was given.
4394if test "${enable_wave+set}" = set; then
4395 enableval="$enable_wave"
e6cc62c6 4396
10f2d63a
VZ
4397 if test "$enableval" = yes; then
4398 ac_cv_use_wave='wxUSE_WAVE=yes'
4399 else
4400 ac_cv_use_wave='wxUSE_WAVE=no'
4401 fi
e6cc62c6 4402
10f2d63a 4403else
e6cc62c6 4404
10f2d63a
VZ
4405 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4406 if test "x$LINE" != x ; then
4407 eval "DEFAULT_$LINE"
4408 else
4409 no_cache=1
4410 fi
4411
4412 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4413
e6cc62c6 4414fi;
10f2d63a
VZ
4415
4416 eval "$ac_cv_use_wave"
4417 if test "$no_cache" != 1; then
4418 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4419 fi
4420
4421 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4422 echo "$as_me:$LINENO: result: yes" >&5
4423echo "${ECHO_T}yes" >&6
10f2d63a 4424 else
e6cc62c6
VS
4425 echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6
10f2d63a 4427 fi
e6cc62c6 4428
10f2d63a 4429
5005acfe 4430 enablestring=
e6cc62c6
VS
4431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4432echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4433 no_cache=0
4434 # Check whether --enable-fraction or --disable-fraction was given.
4435if test "${enable_fraction+set}" = set; then
4436 enableval="$enable_fraction"
e6cc62c6 4437
10f2d63a
VZ
4438 if test "$enableval" = yes; then
4439 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4440 else
4441 ac_cv_use_fraction='wxUSE_FRACTION=no'
4442 fi
e6cc62c6 4443
10f2d63a 4444else
e6cc62c6 4445
10f2d63a
VZ
4446 LINE=`grep "wxUSE_FRACTION" ${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_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4454
e6cc62c6 4455fi;
10f2d63a
VZ
4456
4457 eval "$ac_cv_use_fraction"
4458 if test "$no_cache" != 1; then
4459 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4460 fi
4461
4462 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4463 echo "$as_me:$LINENO: result: yes" >&5
4464echo "${ECHO_T}yes" >&6
10f2d63a 4465 else
e6cc62c6
VS
4466 echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
10f2d63a 4468 fi
e6cc62c6 4469
10f2d63a 4470
5005acfe 4471 enablestring=
e6cc62c6
VS
4472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4473echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4474 no_cache=0
4475 # Check whether --enable-dynlib or --disable-dynlib was given.
4476if test "${enable_dynlib+set}" = set; then
4477 enableval="$enable_dynlib"
e6cc62c6 4478
10f2d63a
VZ
4479 if test "$enableval" = yes; then
4480 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4481 else
4482 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4483 fi
e6cc62c6 4484
10f2d63a 4485else
e6cc62c6 4486
10f2d63a
VZ
4487 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4495
e6cc62c6 4496fi;
10f2d63a
VZ
4497
4498 eval "$ac_cv_use_dynlib"
4499 if test "$no_cache" != 1; then
4500 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4501 fi
4502
4503 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4504 echo "$as_me:$LINENO: result: yes" >&5
4505echo "${ECHO_T}yes" >&6
10f2d63a 4506 else
e6cc62c6
VS
4507 echo "$as_me:$LINENO: result: no" >&5
4508echo "${ECHO_T}no" >&6
10f2d63a 4509 fi
e6cc62c6 4510
10f2d63a 4511
5005acfe 4512 enablestring=
e6cc62c6
VS
4513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4514echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4515 no_cache=0
4516 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4517if test "${enable_dynamicloader+set}" = set; then
4518 enableval="$enable_dynamicloader"
e6cc62c6 4519
0b9ab0bd
RL
4520 if test "$enableval" = yes; then
4521 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4522 else
4523 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4524 fi
e6cc62c6 4525
0b9ab0bd 4526else
e6cc62c6 4527
0b9ab0bd
RL
4528 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4529 if test "x$LINE" != x ; then
4530 eval "DEFAULT_$LINE"
4531 else
4532 no_cache=1
4533 fi
4534
4535 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4536
e6cc62c6 4537fi;
0b9ab0bd
RL
4538
4539 eval "$ac_cv_use_dynamicloader"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4545 echo "$as_me:$LINENO: result: yes" >&5
4546echo "${ECHO_T}yes" >&6
0b9ab0bd 4547 else
e6cc62c6
VS
4548 echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
0b9ab0bd 4550 fi
e6cc62c6 4551
0b9ab0bd 4552
5005acfe 4553 enablestring=
e6cc62c6
VS
4554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4555echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4556 no_cache=0
4557 # Check whether --enable-longlong or --disable-longlong was given.
4558if test "${enable_longlong+set}" = set; then
4559 enableval="$enable_longlong"
e6cc62c6 4560
10f2d63a
VZ
4561 if test "$enableval" = yes; then
4562 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4563 else
4564 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4565 fi
e6cc62c6 4566
10f2d63a 4567else
e6cc62c6 4568
10f2d63a
VZ
4569 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4577
e6cc62c6 4578fi;
10f2d63a
VZ
4579
4580 eval "$ac_cv_use_longlong"
4581 if test "$no_cache" != 1; then
4582 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4583 fi
4584
4585 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4586 echo "$as_me:$LINENO: result: yes" >&5
4587echo "${ECHO_T}yes" >&6
10f2d63a 4588 else
e6cc62c6
VS
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
10f2d63a 4591 fi
e6cc62c6 4592
10f2d63a 4593
5005acfe 4594 enablestring=
e6cc62c6
VS
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4597 no_cache=0
4598 # Check whether --enable-geometry or --disable-geometry was given.
4599if test "${enable_geometry+set}" = set; then
4600 enableval="$enable_geometry"
e6cc62c6 4601
e8f65ba6
RR
4602 if test "$enableval" = yes; then
4603 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4604 else
4605 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4606 fi
e6cc62c6 4607
e8f65ba6 4608else
e6cc62c6 4609
e8f65ba6
RR
4610 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4618
e6cc62c6 4619fi;
e8f65ba6
RR
4620
4621 eval "$ac_cv_use_geometry"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
e8f65ba6 4629 else
e6cc62c6
VS
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
e8f65ba6 4632 fi
e6cc62c6 4633
e8f65ba6 4634
5005acfe 4635 enablestring=
e6cc62c6
VS
4636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4637echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4638 no_cache=0
4639 # Check whether --enable-log or --disable-log was given.
4640if test "${enable_log+set}" = set; then
4641 enableval="$enable_log"
e6cc62c6 4642
10f2d63a
VZ
4643 if test "$enableval" = yes; then
4644 ac_cv_use_log='wxUSE_LOG=yes'
4645 else
4646 ac_cv_use_log='wxUSE_LOG=no'
4647 fi
e6cc62c6 4648
10f2d63a 4649else
e6cc62c6 4650
10f2d63a
VZ
4651 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4659
e6cc62c6 4660fi;
10f2d63a
VZ
4661
4662 eval "$ac_cv_use_log"
4663 if test "$no_cache" != 1; then
4664 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4665 fi
4666
4667 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4668 echo "$as_me:$LINENO: result: yes" >&5
4669echo "${ECHO_T}yes" >&6
10f2d63a 4670 else
e6cc62c6
VS
4671 echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6
10f2d63a 4673 fi
e6cc62c6 4674
10f2d63a 4675
5005acfe 4676 enablestring=
e6cc62c6
VS
4677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4678echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4679 no_cache=0
4680 # Check whether --enable-streams or --disable-streams was given.
4681if test "${enable_streams+set}" = set; then
4682 enableval="$enable_streams"
e6cc62c6 4683
10f2d63a
VZ
4684 if test "$enableval" = yes; then
4685 ac_cv_use_streams='wxUSE_STREAMS=yes'
4686 else
4687 ac_cv_use_streams='wxUSE_STREAMS=no'
4688 fi
e6cc62c6 4689
10f2d63a 4690else
e6cc62c6 4691
10f2d63a
VZ
4692 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4700
e6cc62c6 4701fi;
10f2d63a
VZ
4702
4703 eval "$ac_cv_use_streams"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4709 echo "$as_me:$LINENO: result: yes" >&5
4710echo "${ECHO_T}yes" >&6
10f2d63a 4711 else
e6cc62c6
VS
4712 echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6
10f2d63a 4714 fi
e6cc62c6 4715
10f2d63a 4716
5005acfe 4717 enablestring=
e6cc62c6
VS
4718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4719echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4720 no_cache=0
4721 # Check whether --enable-file or --disable-file was given.
4722if test "${enable_file+set}" = set; then
4723 enableval="$enable_file"
e6cc62c6 4724
10f2d63a
VZ
4725 if test "$enableval" = yes; then
4726 ac_cv_use_file='wxUSE_FILE=yes'
4727 else
4728 ac_cv_use_file='wxUSE_FILE=no'
4729 fi
e6cc62c6 4730
10f2d63a 4731else
e6cc62c6 4732
10f2d63a
VZ
4733 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4741
e6cc62c6 4742fi;
10f2d63a
VZ
4743
4744 eval "$ac_cv_use_file"
4745 if test "$no_cache" != 1; then
4746 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4747 fi
4748
4749 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4750 echo "$as_me:$LINENO: result: yes" >&5
4751echo "${ECHO_T}yes" >&6
10f2d63a 4752 else
e6cc62c6
VS
4753 echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
10f2d63a 4755 fi
e6cc62c6 4756
10f2d63a 4757
5005acfe 4758 enablestring=
e6cc62c6
VS
4759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4760echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4761 no_cache=0
1e6feb95
VZ
4762 # Check whether --enable-ffile or --disable-ffile was given.
4763if test "${enable_ffile+set}" = set; then
4764 enableval="$enable_ffile"
e6cc62c6 4765
10f2d63a 4766 if test "$enableval" = yes; then
1e6feb95 4767 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4768 else
1e6feb95 4769 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4770 fi
e6cc62c6 4771
10f2d63a 4772else
e6cc62c6 4773
1e6feb95 4774 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 else
4778 no_cache=1
4779 fi
4780
1e6feb95 4781 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4782
e6cc62c6 4783fi;
10f2d63a 4784
1e6feb95 4785 eval "$ac_cv_use_ffile"
10f2d63a 4786 if test "$no_cache" != 1; then
1e6feb95 4787 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4788 fi
4789
1e6feb95 4790 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4791 echo "$as_me:$LINENO: result: yes" >&5
4792echo "${ECHO_T}yes" >&6
10f2d63a 4793 else
e6cc62c6
VS
4794 echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
10f2d63a 4796 fi
e6cc62c6 4797
10f2d63a 4798
5005acfe 4799 enablestring=
e6cc62c6
VS
4800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4801echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4802 no_cache=0
4803 # Check whether --enable-textbuf or --disable-textbuf was given.
4804if test "${enable_textbuf+set}" = set; then
4805 enableval="$enable_textbuf"
e6cc62c6 4806
a3a584a7
VZ
4807 if test "$enableval" = yes; then
4808 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4809 else
4810 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4811 fi
e6cc62c6 4812
a3a584a7 4813else
e6cc62c6 4814
a3a584a7
VZ
4815 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4816 if test "x$LINE" != x ; then
4817 eval "DEFAULT_$LINE"
4818 else
4819 no_cache=1
4820 fi
4821
4822 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4823
e6cc62c6 4824fi;
a3a584a7
VZ
4825
4826 eval "$ac_cv_use_textbuf"
4827 if test "$no_cache" != 1; then
4828 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4829 fi
4830
4831 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4832 echo "$as_me:$LINENO: result: yes" >&5
4833echo "${ECHO_T}yes" >&6
a3a584a7 4834 else
e6cc62c6
VS
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
a3a584a7 4837 fi
e6cc62c6 4838
a3a584a7 4839
5005acfe 4840 enablestring=
e6cc62c6
VS
4841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4842echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4843 no_cache=0
1e6feb95
VZ
4844 # Check whether --enable-textfile or --disable-textfile was given.
4845if test "${enable_textfile+set}" = set; then
4846 enableval="$enable_textfile"
e6cc62c6 4847
10f2d63a 4848 if test "$enableval" = yes; then
1e6feb95 4849 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4850 else
1e6feb95 4851 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4852 fi
e6cc62c6 4853
10f2d63a 4854else
e6cc62c6 4855
1e6feb95 4856 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
1e6feb95 4863 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4864
e6cc62c6 4865fi;
10f2d63a 4866
1e6feb95 4867 eval "$ac_cv_use_textfile"
10f2d63a 4868 if test "$no_cache" != 1; then
1e6feb95 4869 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4870 fi
4871
1e6feb95 4872 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4873 echo "$as_me:$LINENO: result: yes" >&5
4874echo "${ECHO_T}yes" >&6
10f2d63a 4875 else
e6cc62c6
VS
4876 echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6
10f2d63a 4878 fi
e6cc62c6 4879
10f2d63a 4880
5005acfe 4881 enablestring=
e6cc62c6
VS
4882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4883echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4884 no_cache=0
1e6feb95
VZ
4885 # Check whether --enable-fontmap or --disable-fontmap was given.
4886if test "${enable_fontmap+set}" = set; then
4887 enableval="$enable_fontmap"
e6cc62c6 4888
10f2d63a 4889 if test "$enableval" = yes; then
1e6feb95 4890 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4891 else
1e6feb95 4892 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4893 fi
e6cc62c6 4894
10f2d63a 4895else
e6cc62c6 4896
1e6feb95 4897 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
1e6feb95 4904 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4905
e6cc62c6 4906fi;
10f2d63a 4907
1e6feb95 4908 eval "$ac_cv_use_fontmap"
10f2d63a 4909 if test "$no_cache" != 1; then
1e6feb95 4910 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4911 fi
4912
1e6feb95 4913 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4914 echo "$as_me:$LINENO: result: yes" >&5
4915echo "${ECHO_T}yes" >&6
10f2d63a 4916 else
e6cc62c6
VS
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
10f2d63a 4919 fi
e6cc62c6 4920
10f2d63a 4921
5005acfe 4922 enablestring=
e6cc62c6
VS
4923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4924echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4925 no_cache=0
1e6feb95
VZ
4926 # Check whether --enable-unicode or --disable-unicode was given.
4927if test "${enable_unicode+set}" = set; then
4928 enableval="$enable_unicode"
e6cc62c6 4929
1e6feb95
VZ
4930 if test "$enableval" = yes; then
4931 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4932 else
4933 ac_cv_use_unicode='wxUSE_UNICODE=no'
4934 fi
e6cc62c6 4935
1e6feb95 4936else
e6cc62c6 4937
1e6feb95
VZ
4938 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4939 if test "x$LINE" != x ; then
4940 eval "DEFAULT_$LINE"
4941 else
4942 no_cache=1
4943 fi
4944
4945 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4946
e6cc62c6 4947fi;
1e6feb95
VZ
4948
4949 eval "$ac_cv_use_unicode"
4950 if test "$no_cache" != 1; then
4951 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4952 fi
4953
4954 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
4955 echo "$as_me:$LINENO: result: yes" >&5
4956echo "${ECHO_T}yes" >&6
1e6feb95 4957 else
e6cc62c6
VS
4958 echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6
1e6feb95 4960 fi
e6cc62c6 4961
1e6feb95 4962
5005acfe 4963 enablestring=
e6cc62c6
VS
4964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4965echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4966 no_cache=0
4967 # Check whether --enable-mslu or --disable-mslu was given.
4968if test "${enable_mslu+set}" = set; then
4969 enableval="$enable_mslu"
e6cc62c6 4970
a72a4bfa
VS
4971 if test "$enableval" = yes; then
4972 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4973 else
4974 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4975 fi
e6cc62c6 4976
a72a4bfa 4977else
e6cc62c6 4978
a72a4bfa
VS
4979 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4987
e6cc62c6 4988fi;
a72a4bfa
VS
4989
4990 eval "$ac_cv_use_mslu"
4991 if test "$no_cache" != 1; then
4992 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4993 fi
4994
4995 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
4996 echo "$as_me:$LINENO: result: yes" >&5
4997echo "${ECHO_T}yes" >&6
a72a4bfa 4998 else
e6cc62c6
VS
4999 echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
a72a4bfa 5001 fi
e6cc62c6 5002
a72a4bfa 5003
5005acfe 5004 enablestring=
e6cc62c6
VS
5005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5006echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5007 no_cache=0
5008 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5009if test "${enable_wxprintfv+set}" = set; then
5010 enableval="$enable_wxprintfv"
e6cc62c6 5011
1e6feb95 5012 if test "$enableval" = yes; then
10f2d63a
VZ
5013 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5014 else
5015 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5016 fi
e6cc62c6 5017
10f2d63a 5018else
e6cc62c6 5019
10f2d63a
VZ
5020 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5021 if test "x$LINE" != x ; then
5022 eval "DEFAULT_$LINE"
5023 else
5024 no_cache=1
5025 fi
5026
5027 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5028
e6cc62c6 5029fi;
10f2d63a
VZ
5030
5031 eval "$ac_cv_use_wxprintfv"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5037 echo "$as_me:$LINENO: result: yes" >&5
5038echo "${ECHO_T}yes" >&6
10f2d63a 5039 else
e6cc62c6
VS
5040 echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
10f2d63a 5042 fi
e6cc62c6 5043
10f2d63a 5044
5005acfe 5045 enablestring=
e6cc62c6
VS
5046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5047echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5048 no_cache=0
5049 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5050if test "${enable_std_iostreams+set}" = set; then
5051 enableval="$enable_std_iostreams"
e6cc62c6 5052
10f2d63a
VZ
5053 if test "$enableval" = yes; then
5054 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5055 else
5056 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5057 fi
e6cc62c6 5058
10f2d63a 5059else
e6cc62c6 5060
10f2d63a
VZ
5061 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5062 if test "x$LINE" != x ; then
5063 eval "DEFAULT_$LINE"
5064 else
5065 no_cache=1
5066 fi
5067
5068 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5069
e6cc62c6 5070fi;
10f2d63a
VZ
5071
5072 eval "$ac_cv_use_std_iostreams"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5078 echo "$as_me:$LINENO: result: yes" >&5
5079echo "${ECHO_T}yes" >&6
10f2d63a 5080 else
e6cc62c6
VS
5081 echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
10f2d63a 5083 fi
e6cc62c6 5084
10f2d63a 5085
5005acfe 5086 enablestring=
e6cc62c6
VS
5087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5088echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5089 no_cache=0
5090 # Check whether --enable-filesystem or --disable-filesystem was given.
5091if test "${enable_filesystem+set}" = set; then
5092 enableval="$enable_filesystem"
e6cc62c6 5093
24528b0c
VS
5094 if test "$enableval" = yes; then
5095 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5096 else
5097 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5098 fi
e6cc62c6 5099
24528b0c 5100else
e6cc62c6 5101
24528b0c
VS
5102 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5103 if test "x$LINE" != x ; then
5104 eval "DEFAULT_$LINE"
5105 else
5106 no_cache=1
5107 fi
5108
5109 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5110
e6cc62c6 5111fi;
24528b0c
VS
5112
5113 eval "$ac_cv_use_filesystem"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5119 echo "$as_me:$LINENO: result: yes" >&5
5120echo "${ECHO_T}yes" >&6
24528b0c 5121 else
e6cc62c6
VS
5122 echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6
24528b0c 5124 fi
e6cc62c6 5125
24528b0c 5126
5005acfe 5127 enablestring=
e6cc62c6
VS
5128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5129echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5130 no_cache=0
5131 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5132if test "${enable_fs_inet+set}" = set; then
5133 enableval="$enable_fs_inet"
e6cc62c6 5134
10f2d63a
VZ
5135 if test "$enableval" = yes; then
5136 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5137 else
5138 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5139 fi
e6cc62c6 5140
10f2d63a 5141else
e6cc62c6 5142
10f2d63a
VZ
5143 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5144 if test "x$LINE" != x ; then
5145 eval "DEFAULT_$LINE"
5146 else
5147 no_cache=1
5148 fi
5149
5150 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5151
e6cc62c6 5152fi;
10f2d63a
VZ
5153
5154 eval "$ac_cv_use_fs_inet"
5155 if test "$no_cache" != 1; then
5156 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5157 fi
5158
5159 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5160 echo "$as_me:$LINENO: result: yes" >&5
5161echo "${ECHO_T}yes" >&6
10f2d63a 5162 else
e6cc62c6
VS
5163 echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
10f2d63a 5165 fi
e6cc62c6 5166
10f2d63a 5167
5005acfe 5168 enablestring=
e6cc62c6
VS
5169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5170echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5171 no_cache=0
5172 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5173if test "${enable_fs_zip+set}" = set; then
5174 enableval="$enable_fs_zip"
e6cc62c6 5175
10f2d63a
VZ
5176 if test "$enableval" = yes; then
5177 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5178 else
5179 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5180 fi
e6cc62c6 5181
10f2d63a 5182else
e6cc62c6 5183
10f2d63a
VZ
5184 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5185 if test "x$LINE" != x ; then
5186 eval "DEFAULT_$LINE"
5187 else
5188 no_cache=1
5189 fi
5190
5191 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5192
e6cc62c6 5193fi;
10f2d63a
VZ
5194
5195 eval "$ac_cv_use_fs_zip"
5196 if test "$no_cache" != 1; then
5197 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5198 fi
5199
5200 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5201 echo "$as_me:$LINENO: result: yes" >&5
5202echo "${ECHO_T}yes" >&6
10f2d63a 5203 else
e6cc62c6
VS
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
10f2d63a 5206 fi
e6cc62c6 5207
10f2d63a 5208
5005acfe 5209 enablestring=
e6cc62c6
VS
5210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5211echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5212 no_cache=0
5213 # Check whether --enable-zipstream or --disable-zipstream was given.
5214if test "${enable_zipstream+set}" = set; then
5215 enableval="$enable_zipstream"
e6cc62c6 5216
10f2d63a
VZ
5217 if test "$enableval" = yes; then
5218 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5219 else
5220 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5221 fi
e6cc62c6 5222
10f2d63a 5223else
e6cc62c6 5224
10f2d63a
VZ
5225 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5226 if test "x$LINE" != x ; then
5227 eval "DEFAULT_$LINE"
5228 else
5229 no_cache=1
5230 fi
5231
5232 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5233
e6cc62c6 5234fi;
10f2d63a
VZ
5235
5236 eval "$ac_cv_use_zipstream"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5242 echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6
10f2d63a 5244 else
e6cc62c6
VS
5245 echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
10f2d63a 5247 fi
e6cc62c6 5248
8284b0c5 5249
52127426 5250
5005acfe 5251 enablestring=
e6cc62c6
VS
5252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5254 no_cache=0
5255 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5256if test "${enable_catch_segvs+set}" = set; then
5257 enableval="$enable_catch_segvs"
e6cc62c6 5258
eb4efbdc
VZ
5259 if test "$enableval" = yes; then
5260 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5261 else
5262 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5263 fi
e6cc62c6 5264
eb4efbdc 5265else
e6cc62c6 5266
eb4efbdc
VZ
5267 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${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_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5275
e6cc62c6 5276fi;
eb4efbdc
VZ
5277
5278 eval "$ac_cv_use_catch_segvs"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5284 echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
eb4efbdc 5286 else
e6cc62c6
VS
5287 echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
eb4efbdc 5289 fi
e6cc62c6 5290
eb4efbdc 5291
5005acfe 5292 enablestring=
e6cc62c6
VS
5293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5294echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5295 no_cache=0
5296 # Check whether --enable-snglinst or --disable-snglinst was given.
5297if test "${enable_snglinst+set}" = set; then
5298 enableval="$enable_snglinst"
e6cc62c6 5299
4f3c5f06
VZ
5300 if test "$enableval" = yes; then
5301 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5302 else
5303 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5304 fi
e6cc62c6 5305
4f3c5f06 5306else
e6cc62c6 5307
4f3c5f06
VZ
5308 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5316
e6cc62c6 5317fi;
4f3c5f06
VZ
5318
5319 eval "$ac_cv_use_snglinst"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5325 echo "$as_me:$LINENO: result: yes" >&5
5326echo "${ECHO_T}yes" >&6
4f3c5f06 5327 else
e6cc62c6
VS
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
4f3c5f06 5330 fi
e6cc62c6 5331
52127426 5332
8284b0c5 5333
5005acfe 5334 enablestring=
e6cc62c6
VS
5335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5336echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5337 no_cache=0
5338 # Check whether --enable-mimetype or --disable-mimetype was given.
5339if test "${enable_mimetype+set}" = set; then
5340 enableval="$enable_mimetype"
e6cc62c6 5341
1e6feb95
VZ
5342 if test "$enableval" = yes; then
5343 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5344 else
5345 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5346 fi
e6cc62c6 5347
1e6feb95 5348else
e6cc62c6 5349
1e6feb95
VZ
5350 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5351 if test "x$LINE" != x ; then
5352 eval "DEFAULT_$LINE"
5353 else
5354 no_cache=1
5355 fi
5356
5357 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5358
e6cc62c6 5359fi;
1e6feb95
VZ
5360
5361 eval "$ac_cv_use_mimetype"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5367 echo "$as_me:$LINENO: result: yes" >&5
5368echo "${ECHO_T}yes" >&6
1e6feb95 5369 else
e6cc62c6
VS
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
1e6feb95 5372 fi
e6cc62c6 5373
1e6feb95 5374
5005acfe 5375 enablestring=
e6cc62c6
VS
5376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5377echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5378 no_cache=0
5379 # Check whether --enable-system_options or --disable-system_options was given.
5380if test "${enable_system_options+set}" = set; then
5381 enableval="$enable_system_options"
e6cc62c6 5382
3e44f09d
VZ
5383 if test "$enableval" = yes; then
5384 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5385 else
5386 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5387 fi
e6cc62c6 5388
3e44f09d 5389else
e6cc62c6 5390
3e44f09d
VZ
5391 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5399
e6cc62c6 5400fi;
3e44f09d
VZ
5401
5402 eval "$ac_cv_use_system_options"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5408 echo "$as_me:$LINENO: result: yes" >&5
5409echo "${ECHO_T}yes" >&6
3e44f09d 5410 else
e6cc62c6
VS
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
3e44f09d 5413 fi
e6cc62c6 5414
8284b0c5 5415
52127426 5416
5005acfe 5417 enablestring=
e6cc62c6
VS
5418 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5419echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5420 no_cache=0
5421 # Check whether --enable-url or --disable-url was given.
5422if test "${enable_url+set}" = set; then
5423 enableval="$enable_url"
e6cc62c6 5424
4cdb0ab0
VS
5425 if test "$enableval" = yes; then
5426 ac_cv_use_url='wxUSE_URL=yes'
5427 else
5428 ac_cv_use_url='wxUSE_URL=no'
5429 fi
e6cc62c6 5430
4cdb0ab0 5431else
e6cc62c6 5432
4cdb0ab0
VS
5433 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 else
5437 no_cache=1
5438 fi
5439
5440 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5441
e6cc62c6 5442fi;
4cdb0ab0
VS
5443
5444 eval "$ac_cv_use_url"
5445 if test "$no_cache" != 1; then
5446 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5447 fi
5448
5449 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5450 echo "$as_me:$LINENO: result: yes" >&5
5451echo "${ECHO_T}yes" >&6
4cdb0ab0 5452 else
e6cc62c6
VS
5453 echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
4cdb0ab0 5455 fi
e6cc62c6 5456
4cdb0ab0 5457
5005acfe 5458 enablestring=
e6cc62c6
VS
5459 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5460echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5461 no_cache=0
5462 # Check whether --enable-protocol or --disable-protocol was given.
5463if test "${enable_protocol+set}" = set; then
5464 enableval="$enable_protocol"
e6cc62c6 5465
4cdb0ab0
VS
5466 if test "$enableval" = yes; then
5467 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5468 else
5469 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5470 fi
e6cc62c6 5471
4cdb0ab0 5472else
e6cc62c6 5473
4cdb0ab0
VS
5474 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5475 if test "x$LINE" != x ; then
5476 eval "DEFAULT_$LINE"
5477 else
5478 no_cache=1
5479 fi
5480
5481 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5482
e6cc62c6 5483fi;
4cdb0ab0
VS
5484
5485 eval "$ac_cv_use_protocol"
5486 if test "$no_cache" != 1; then
5487 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5488 fi
5489
5490 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5491 echo "$as_me:$LINENO: result: yes" >&5
5492echo "${ECHO_T}yes" >&6
4cdb0ab0 5493 else
e6cc62c6
VS
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
4cdb0ab0 5496 fi
e6cc62c6 5497
4cdb0ab0 5498
5005acfe 5499 enablestring=
e6cc62c6
VS
5500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5501echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5502 no_cache=0
5503 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5504if test "${enable_protocol_http+set}" = set; then
5505 enableval="$enable_protocol_http"
e6cc62c6 5506
4cdb0ab0
VS
5507 if test "$enableval" = yes; then
5508 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5509 else
5510 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5511 fi
e6cc62c6 5512
4cdb0ab0 5513else
e6cc62c6 5514
4cdb0ab0
VS
5515 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5523
e6cc62c6 5524fi;
4cdb0ab0
VS
5525
5526 eval "$ac_cv_use_protocol_http"
5527 if test "$no_cache" != 1; then
5528 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5529 fi
5530
5531 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5532 echo "$as_me:$LINENO: result: yes" >&5
5533echo "${ECHO_T}yes" >&6
4cdb0ab0 5534 else
e6cc62c6
VS
5535 echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6
4cdb0ab0 5537 fi
e6cc62c6 5538
4cdb0ab0 5539
5005acfe 5540 enablestring=
e6cc62c6
VS
5541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5542echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5543 no_cache=0
5544 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5545if test "${enable_protocol_ftp+set}" = set; then
5546 enableval="$enable_protocol_ftp"
e6cc62c6 5547
4cdb0ab0
VS
5548 if test "$enableval" = yes; then
5549 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5550 else
5551 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5552 fi
e6cc62c6 5553
4cdb0ab0 5554else
e6cc62c6 5555
4cdb0ab0
VS
5556 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5564
e6cc62c6 5565fi;
4cdb0ab0
VS
5566
5567 eval "$ac_cv_use_protocol_ftp"
5568 if test "$no_cache" != 1; then
5569 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5570 fi
5571
5572 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5573 echo "$as_me:$LINENO: result: yes" >&5
5574echo "${ECHO_T}yes" >&6
4cdb0ab0 5575 else
e6cc62c6
VS
5576 echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
4cdb0ab0 5578 fi
e6cc62c6 5579
4cdb0ab0 5580
5005acfe 5581 enablestring=
e6cc62c6
VS
5582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5583echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5584 no_cache=0
5585 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5586if test "${enable_protocol_file+set}" = set; then
5587 enableval="$enable_protocol_file"
e6cc62c6 5588
4cdb0ab0
VS
5589 if test "$enableval" = yes; then
5590 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5591 else
5592 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5593 fi
e6cc62c6 5594
4cdb0ab0 5595else
e6cc62c6 5596
4cdb0ab0
VS
5597 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5598 if test "x$LINE" != x ; then
5599 eval "DEFAULT_$LINE"
5600 else
5601 no_cache=1
5602 fi
5603
5604 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5605
e6cc62c6 5606fi;
4cdb0ab0
VS
5607
5608 eval "$ac_cv_use_protocol_file"
5609 if test "$no_cache" != 1; then
5610 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5611 fi
5612
5613 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5614 echo "$as_me:$LINENO: result: yes" >&5
5615echo "${ECHO_T}yes" >&6
4cdb0ab0 5616 else
e6cc62c6
VS
5617 echo "$as_me:$LINENO: result: no" >&5
5618echo "${ECHO_T}no" >&6
4cdb0ab0 5619 fi
e6cc62c6 5620
52127426 5621
8284b0c5
MB
5622
5623
5624
5005acfe 5625 enablestring=
e6cc62c6
VS
5626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5627echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5628 no_cache=0
5629 # Check whether --enable-threads or --disable-threads was given.
5630if test "${enable_threads+set}" = set; then
5631 enableval="$enable_threads"
e6cc62c6 5632
10f2d63a
VZ
5633 if test "$enableval" = yes; then
5634 ac_cv_use_threads='wxUSE_THREADS=yes'
5635 else
5636 ac_cv_use_threads='wxUSE_THREADS=no'
5637 fi
e6cc62c6 5638
10f2d63a 5639else
e6cc62c6 5640
10f2d63a
VZ
5641 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5649
e6cc62c6 5650fi;
10f2d63a
VZ
5651
5652 eval "$ac_cv_use_threads"
5653 if test "$no_cache" != 1; then
5654 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5655 fi
5656
5657 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5658 echo "$as_me:$LINENO: result: yes" >&5
5659echo "${ECHO_T}yes" >&6
10f2d63a 5660 else
e6cc62c6
VS
5661 echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
10f2d63a 5663 fi
e6cc62c6 5664
10f2d63a 5665
b12915c1
VZ
5666if test "$wxUSE_GUI" = "yes"; then
5667
8284b0c5
MB
5668
5669
5005acfe 5670 enablestring=
e6cc62c6
VS
5671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5672echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5673 no_cache=0
5674 # Check whether --enable-docview or --disable-docview was given.
5675if test "${enable_docview+set}" = set; then
5676 enableval="$enable_docview"
e6cc62c6 5677
10f2d63a
VZ
5678 if test "$enableval" = yes; then
5679 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5680 else
5681 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5682 fi
e6cc62c6 5683
10f2d63a 5684else
e6cc62c6 5685
10f2d63a
VZ
5686 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5687 if test "x$LINE" != x ; then
5688 eval "DEFAULT_$LINE"
5689 else
5690 no_cache=1
5691 fi
5692
5693 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5694
e6cc62c6 5695fi;
10f2d63a
VZ
5696
5697 eval "$ac_cv_use_docview"
5698 if test "$no_cache" != 1; then
5699 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5700 fi
5701
5702 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5703 echo "$as_me:$LINENO: result: yes" >&5
5704echo "${ECHO_T}yes" >&6
10f2d63a 5705 else
e6cc62c6
VS
5706 echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6
10f2d63a 5708 fi
e6cc62c6 5709
10f2d63a 5710
5005acfe 5711 enablestring=
e6cc62c6
VS
5712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5713echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5714 no_cache=0
5715 # Check whether --enable-help or --disable-help was given.
5716if test "${enable_help+set}" = set; then
5717 enableval="$enable_help"
e6cc62c6 5718
10f2d63a
VZ
5719 if test "$enableval" = yes; then
5720 ac_cv_use_help='wxUSE_HELP=yes'
5721 else
5722 ac_cv_use_help='wxUSE_HELP=no'
5723 fi
e6cc62c6 5724
10f2d63a 5725else
e6cc62c6 5726
10f2d63a
VZ
5727 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5728 if test "x$LINE" != x ; then
5729 eval "DEFAULT_$LINE"
5730 else
5731 no_cache=1
5732 fi
5733
5734 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5735
e6cc62c6 5736fi;
10f2d63a
VZ
5737
5738 eval "$ac_cv_use_help"
5739 if test "$no_cache" != 1; then
5740 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5741 fi
5742
5743 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5744 echo "$as_me:$LINENO: result: yes" >&5
5745echo "${ECHO_T}yes" >&6
10f2d63a 5746 else
e6cc62c6
VS
5747 echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
10f2d63a 5749 fi
e6cc62c6 5750
10f2d63a 5751
5005acfe 5752 enablestring=
e6cc62c6
VS
5753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5754echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5755 no_cache=0
5756 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5757if test "${enable_mshtmlhelp+set}" = set; then
5758 enableval="$enable_mshtmlhelp"
e6cc62c6 5759
29fd3c0c
VS
5760 if test "$enableval" = yes; then
5761 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5762 else
5763 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5764 fi
e6cc62c6 5765
29fd3c0c 5766else
e6cc62c6 5767
29fd3c0c
VS
5768 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
5775 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5776
e6cc62c6 5777fi;
29fd3c0c
VS
5778
5779 eval "$ac_cv_use_mshtmlhelp"
5780 if test "$no_cache" != 1; then
5781 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5782 fi
5783
5784 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5785 echo "$as_me:$LINENO: result: yes" >&5
5786echo "${ECHO_T}yes" >&6
29fd3c0c 5787 else
e6cc62c6
VS
5788 echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6
29fd3c0c 5790 fi
e6cc62c6 5791
29fd3c0c 5792
5005acfe 5793 enablestring=
e6cc62c6
VS
5794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5795echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5796 no_cache=0
5797 # Check whether --enable-html or --disable-html was given.
5798if test "${enable_html+set}" = set; then
5799 enableval="$enable_html"
e6cc62c6 5800
3379ed37
VZ
5801 if test "$enableval" = yes; then
5802 ac_cv_use_html='wxUSE_HTML=yes'
5803 else
5804 ac_cv_use_html='wxUSE_HTML=no'
5805 fi
e6cc62c6 5806
3379ed37 5807else
e6cc62c6 5808
3379ed37
VZ
5809 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5810 if test "x$LINE" != x ; then
5811 eval "DEFAULT_$LINE"
5812 else
5813 no_cache=1
5814 fi
5815
5816 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5817
e6cc62c6 5818fi;
3379ed37
VZ
5819
5820 eval "$ac_cv_use_html"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5826 echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6
3379ed37 5828 else
e6cc62c6
VS
5829 echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6
3379ed37 5831 fi
e6cc62c6 5832
3379ed37 5833
5005acfe 5834 enablestring=
e6cc62c6
VS
5835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5836echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5837 no_cache=0
5838 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5839if test "${enable_htmlhelp+set}" = set; then
5840 enableval="$enable_htmlhelp"
e6cc62c6 5841
3379ed37
VZ
5842 if test "$enableval" = yes; then
5843 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5844 else
5845 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5846 fi
e6cc62c6 5847
3379ed37 5848else
e6cc62c6 5849
3379ed37
VZ
5850 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5858
e6cc62c6 5859fi;
3379ed37
VZ
5860
5861 eval "$ac_cv_use_htmlhelp"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5867 echo "$as_me:$LINENO: result: yes" >&5
5868echo "${ECHO_T}yes" >&6
3379ed37 5869 else
e6cc62c6
VS
5870 echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
3379ed37 5872 fi
e6cc62c6 5873
3379ed37 5874
5005acfe 5875 enablestring=
e6cc62c6
VS
5876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5877echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5878 no_cache=0
5879 # Check whether --enable-constraints or --disable-constraints was given.
5880if test "${enable_constraints+set}" = set; then
5881 enableval="$enable_constraints"
e6cc62c6 5882
10f2d63a
VZ
5883 if test "$enableval" = yes; then
5884 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5885 else
5886 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5887 fi
e6cc62c6 5888
10f2d63a 5889else
e6cc62c6 5890
10f2d63a
VZ
5891 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5899
e6cc62c6 5900fi;
10f2d63a
VZ
5901
5902 eval "$ac_cv_use_constraints"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5908 echo "$as_me:$LINENO: result: yes" >&5
5909echo "${ECHO_T}yes" >&6
10f2d63a 5910 else
e6cc62c6
VS
5911 echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6
10f2d63a 5913 fi
e6cc62c6 5914
10f2d63a 5915
5005acfe 5916 enablestring=
e6cc62c6
VS
5917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5918echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5919 no_cache=0
5920 # Check whether --enable-printarch or --disable-printarch was given.
5921if test "${enable_printarch+set}" = set; then
5922 enableval="$enable_printarch"
e6cc62c6 5923
10f2d63a
VZ
5924 if test "$enableval" = yes; then
5925 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5926 else
5927 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5928 fi
e6cc62c6 5929
10f2d63a 5930else
e6cc62c6 5931
10f2d63a
VZ
5932 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5940
e6cc62c6 5941fi;
10f2d63a
VZ
5942
5943 eval "$ac_cv_use_printarch"
5944 if test "$no_cache" != 1; then
5945 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5946 fi
5947
5948 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5949 echo "$as_me:$LINENO: result: yes" >&5
5950echo "${ECHO_T}yes" >&6
10f2d63a 5951 else
e6cc62c6
VS
5952 echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
10f2d63a 5954 fi
e6cc62c6 5955
10f2d63a 5956
5005acfe 5957 enablestring=
e6cc62c6
VS
5958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
5959echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
5960 no_cache=0
5961 # Check whether --enable-mdi or --disable-mdi was given.
5962if test "${enable_mdi+set}" = set; then
5963 enableval="$enable_mdi"
e6cc62c6 5964
10f2d63a
VZ
5965 if test "$enableval" = yes; then
5966 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5967 else
5968 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5969 fi
e6cc62c6 5970
10f2d63a 5971else
e6cc62c6 5972
10f2d63a
VZ
5973 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 5981
e6cc62c6 5982fi;
10f2d63a
VZ
5983
5984 eval "$ac_cv_use_mdi"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
5990 echo "$as_me:$LINENO: result: yes" >&5
5991echo "${ECHO_T}yes" >&6
10f2d63a 5992 else
e6cc62c6
VS
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
10f2d63a 5995 fi
e6cc62c6 5996
698dcdb6 5997
5005acfe 5998 enablestring=
e6cc62c6
VS
5999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6000echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6001 no_cache=0
6002 # Check whether --enable-loggui or --disable-loggui was given.
6003if test "${enable_loggui+set}" = set; then
6004 enableval="$enable_loggui"
e6cc62c6 6005
1e6feb95
VZ
6006 if test "$enableval" = yes; then
6007 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6008 else
6009 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6010 fi
e6cc62c6 6011
1e6feb95 6012else
e6cc62c6 6013
1e6feb95
VZ
6014 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6022
e6cc62c6 6023fi;
1e6feb95
VZ
6024
6025 eval "$ac_cv_use_loggui"
6026 if test "$no_cache" != 1; then
6027 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6028 fi
6029
6030 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6031 echo "$as_me:$LINENO: result: yes" >&5
6032echo "${ECHO_T}yes" >&6
1e6feb95 6033 else
e6cc62c6
VS
6034 echo "$as_me:$LINENO: result: no" >&5
6035echo "${ECHO_T}no" >&6
1e6feb95 6036 fi
e6cc62c6 6037
1e6feb95 6038
5005acfe 6039 enablestring=
e6cc62c6
VS
6040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6041echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6042 no_cache=0
6043 # Check whether --enable-logwin or --disable-logwin was given.
6044if test "${enable_logwin+set}" = set; then
6045 enableval="$enable_logwin"
e6cc62c6 6046
1e6feb95
VZ
6047 if test "$enableval" = yes; then
6048 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6049 else
6050 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6051 fi
e6cc62c6 6052
1e6feb95 6053else
e6cc62c6 6054
1e6feb95
VZ
6055 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6056 if test "x$LINE" != x ; then
6057 eval "DEFAULT_$LINE"
6058 else
6059 no_cache=1
6060 fi
6061
6062 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6063
e6cc62c6 6064fi;
1e6feb95
VZ
6065
6066 eval "$ac_cv_use_logwin"
6067 if test "$no_cache" != 1; then
6068 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6069 fi
6070
6071 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6072 echo "$as_me:$LINENO: result: yes" >&5
6073echo "${ECHO_T}yes" >&6
1e6feb95 6074 else
e6cc62c6
VS
6075 echo "$as_me:$LINENO: result: no" >&5
6076echo "${ECHO_T}no" >&6
1e6feb95 6077 fi
e6cc62c6 6078
1e6feb95 6079
5005acfe 6080 enablestring=
e6cc62c6
VS
6081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6082echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6083 no_cache=0
6084 # Check whether --enable-logdialog or --disable-logdialog was given.
6085if test "${enable_logdialog+set}" = set; then
6086 enableval="$enable_logdialog"
e6cc62c6 6087
69d27ff7
MB
6088 if test "$enableval" = yes; then
6089 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6090 else
6091 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6092 fi
e6cc62c6 6093
69d27ff7 6094else
e6cc62c6 6095
69d27ff7
MB
6096 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6097 if test "x$LINE" != x ; then
6098 eval "DEFAULT_$LINE"
6099 else
6100 no_cache=1
6101 fi
6102
6103 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6104
e6cc62c6 6105fi;
69d27ff7
MB
6106
6107 eval "$ac_cv_use_logdialog"
6108 if test "$no_cache" != 1; then
6109 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6110 fi
6111
6112 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6113 echo "$as_me:$LINENO: result: yes" >&5
6114echo "${ECHO_T}yes" >&6
69d27ff7 6115 else
e6cc62c6
VS
6116 echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6
69d27ff7 6118 fi
e6cc62c6 6119
8284b0c5 6120
52127426 6121
5005acfe 6122 enablestring=
e6cc62c6
VS
6123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6124echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6125 no_cache=0
6126 # Check whether --enable-postscript or --disable-postscript was given.
6127if test "${enable_postscript+set}" = set; then
6128 enableval="$enable_postscript"
e6cc62c6 6129
10f2d63a
VZ
6130 if test "$enableval" = yes; then
6131 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6132 else
6133 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6134 fi
e6cc62c6 6135
10f2d63a 6136else
e6cc62c6 6137
10f2d63a
VZ
6138 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6139 if test "x$LINE" != x ; then
6140 eval "DEFAULT_$LINE"
6141 else
6142 no_cache=1
6143 fi
6144
6145 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6146
e6cc62c6 6147fi;
10f2d63a
VZ
6148
6149 eval "$ac_cv_use_postscript"
6150 if test "$no_cache" != 1; then
6151 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6152 fi
6153
6154 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6155 echo "$as_me:$LINENO: result: yes" >&5
6156echo "${ECHO_T}yes" >&6
10f2d63a 6157 else
e6cc62c6
VS
6158 echo "$as_me:$LINENO: result: no" >&5
6159echo "${ECHO_T}no" >&6
10f2d63a 6160 fi
e6cc62c6 6161
8284b0c5
MB
6162
6163
52127426 6164
8284b0c5 6165
5005acfe 6166 enablestring=
e6cc62c6
VS
6167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6168echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6169 no_cache=0
3c907f20
VZ
6170 # Check whether --enable-prologio or --disable-prologio was given.
6171if test "${enable_prologio+set}" = set; then
6172 enableval="$enable_prologio"
e6cc62c6 6173
10f2d63a 6174 if test "$enableval" = yes; then
3c907f20 6175 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6176 else
3c907f20 6177 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6178 fi
e6cc62c6 6179
10f2d63a 6180else
e6cc62c6 6181
3c907f20 6182 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6183 if test "x$LINE" != x ; then
6184 eval "DEFAULT_$LINE"
6185 else
6186 no_cache=1
6187 fi
6188
3c907f20 6189 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6190
e6cc62c6 6191fi;
10f2d63a 6192
3c907f20 6193 eval "$ac_cv_use_prologio"
10f2d63a 6194 if test "$no_cache" != 1; then
3c907f20 6195 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6196 fi
6197
3c907f20 6198 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6199 echo "$as_me:$LINENO: result: yes" >&5
6200echo "${ECHO_T}yes" >&6
10f2d63a 6201 else
e6cc62c6
VS
6202 echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6
10f2d63a 6204 fi
e6cc62c6 6205
8284b0c5 6206
5005acfe 6207 enablestring=
e6cc62c6
VS
6208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6209echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6210 no_cache=0
3c907f20
VZ
6211 # Check whether --enable-resources or --disable-resources was given.
6212if test "${enable_resources+set}" = set; then
6213 enableval="$enable_resources"
e6cc62c6 6214
10f2d63a 6215 if test "$enableval" = yes; then
3c907f20 6216 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6217 else
3c907f20 6218 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6219 fi
e6cc62c6 6220
10f2d63a 6221else
e6cc62c6 6222
3c907f20 6223 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6224 if test "x$LINE" != x ; then
6225 eval "DEFAULT_$LINE"
6226 else
6227 no_cache=1
6228 fi
6229
3c907f20 6230 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6231
e6cc62c6 6232fi;
10f2d63a 6233
3c907f20 6234 eval "$ac_cv_use_resources"
10f2d63a 6235 if test "$no_cache" != 1; then
3c907f20 6236 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6237 fi
6238
3c907f20 6239 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6240 echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6
10f2d63a 6242 else
e6cc62c6
VS
6243 echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6
10f2d63a 6245 fi
e6cc62c6 6246
8284b0c5
MB
6247
6248
52127426 6249
5005acfe 6250 enablestring=
e6cc62c6
VS
6251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6252echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6253 no_cache=0
6254 # Check whether --enable-clipboard or --disable-clipboard was given.
6255if test "${enable_clipboard+set}" = set; then
6256 enableval="$enable_clipboard"
e6cc62c6 6257
10f2d63a
VZ
6258 if test "$enableval" = yes; then
6259 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6260 else
6261 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6262 fi
e6cc62c6 6263
10f2d63a 6264else
e6cc62c6 6265
10f2d63a
VZ
6266 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6267 if test "x$LINE" != x ; then
6268 eval "DEFAULT_$LINE"
6269 else
6270 no_cache=1
6271 fi
6272
6273 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6274
e6cc62c6 6275fi;
10f2d63a
VZ
6276
6277 eval "$ac_cv_use_clipboard"
6278 if test "$no_cache" != 1; then
6279 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6280 fi
6281
6282 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6283 echo "$as_me:$LINENO: result: yes" >&5
6284echo "${ECHO_T}yes" >&6
10f2d63a 6285 else
e6cc62c6
VS
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
10f2d63a 6288 fi
e6cc62c6 6289
10f2d63a 6290
5005acfe 6291 enablestring=
e6cc62c6
VS
6292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6293echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6294 no_cache=0
6295 # Check whether --enable-dnd or --disable-dnd was given.
6296if test "${enable_dnd+set}" = set; then
6297 enableval="$enable_dnd"
e6cc62c6 6298
10f2d63a
VZ
6299 if test "$enableval" = yes; then
6300 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6301 else
6302 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6303 fi
e6cc62c6 6304
10f2d63a 6305else
e6cc62c6 6306
10f2d63a
VZ
6307 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6308 if test "x$LINE" != x ; then
6309 eval "DEFAULT_$LINE"
6310 else
6311 no_cache=1
6312 fi
6313
6314 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6315
e6cc62c6 6316fi;
10f2d63a
VZ
6317
6318 eval "$ac_cv_use_dnd"
6319 if test "$no_cache" != 1; then
6320 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6321 fi
6322
6323 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6324 echo "$as_me:$LINENO: result: yes" >&5
6325echo "${ECHO_T}yes" >&6
10f2d63a 6326 else
e6cc62c6
VS
6327 echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
10f2d63a 6329 fi
e6cc62c6 6330
10f2d63a 6331
5005acfe 6332 enablestring=
e6cc62c6
VS
6333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6334echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6335 no_cache=0
6336 # Check whether --enable-metafile or --disable-metafile was given.
6337if test "${enable_metafile+set}" = set; then
6338 enableval="$enable_metafile"
e6cc62c6 6339
b64f0a5f
RL
6340 if test "$enableval" = yes; then
6341 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6342 else
6343 ac_cv_use_metafile='wxUSE_METAFILE=no'
6344 fi
e6cc62c6 6345
b64f0a5f 6346else
e6cc62c6 6347
b64f0a5f
RL
6348 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6356
e6cc62c6 6357fi;
b64f0a5f
RL
6358
6359 eval "$ac_cv_use_metafile"
6360 if test "$no_cache" != 1; then
6361 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6362 fi
6363
6364 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6365 echo "$as_me:$LINENO: result: yes" >&5
6366echo "${ECHO_T}yes" >&6
b64f0a5f 6367 else
e6cc62c6
VS
6368 echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6
b64f0a5f 6370 fi
e6cc62c6 6371
52127426 6372
8284b0c5 6373
52127426 6374
8284b0c5 6375
5005acfe 6376 enablestring=
e6cc62c6
VS
6377 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6378echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6379 no_cache=0
6380 # Check whether --enable-controls or --disable-controls was given.
6381if test "${enable_controls+set}" = set; then
6382 enableval="$enable_controls"
e6cc62c6 6383
10f2d63a
VZ
6384 if test "$enableval" = yes; then
6385 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6386 else
6387 ac_cv_use_controls='wxUSE_CONTROLS=no'
6388 fi
e6cc62c6 6389
10f2d63a 6390else
e6cc62c6 6391
10f2d63a
VZ
6392 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6400
e6cc62c6 6401fi;
10f2d63a
VZ
6402
6403 eval "$ac_cv_use_controls"
6404 if test "$no_cache" != 1; then
6405 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6406 fi
6407
6408 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6409 echo "$as_me:$LINENO: result: yes" >&5
6410echo "${ECHO_T}yes" >&6
10f2d63a 6411 else
e6cc62c6
VS
6412 echo "$as_me:$LINENO: result: no" >&5
6413echo "${ECHO_T}no" >&6
10f2d63a 6414 fi
e6cc62c6 6415
10f2d63a
VZ
6416
6417if test "$wxUSE_CONTROLS" = "yes"; then
6418 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6419 DEFAULT_wxUSE_BMPBUTTON=yes
6420 DEFAULT_wxUSE_BUTTON=yes
6421 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6422 DEFAULT_wxUSE_CARET=yes
6423 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6424 DEFAULT_wxUSE_CHECKBOX=yes
6425 DEFAULT_wxUSE_CHECKLISTBOX=yes
6426 DEFAULT_wxUSE_CHOICE=yes
6427 DEFAULT_wxUSE_GAUGE=yes
6428 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6429 DEFAULT_wxUSE_IMAGLIST=yes
6430 DEFAULT_wxUSE_LISTBOX=yes
6431 DEFAULT_wxUSE_LISTCTRL=yes
6432 DEFAULT_wxUSE_NOTEBOOK=yes
6433 DEFAULT_wxUSE_RADIOBOX=yes
6434 DEFAULT_wxUSE_RADIOBTN=yes
6435 DEFAULT_wxUSE_SASH=yes
6436 DEFAULT_wxUSE_SCROLLBAR=yes
6437 DEFAULT_wxUSE_SLIDER=yes
6438 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6439 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6440 DEFAULT_wxUSE_SPLITTER=yes
6441 DEFAULT_wxUSE_STATBMP=yes
6442 DEFAULT_wxUSE_STATBOX=yes
6443 DEFAULT_wxUSE_STATLINE=yes
6444 DEFAULT_wxUSE_STATUSBAR=yes
6445 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6446 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6447 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6448 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6449 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6450 DEFAULT_wxUSE_TOOLTIPS=yes
6451 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6452 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6453 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6454elif test "$wxUSE_CONTROLS" = "no"; then
6455 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6456 DEFAULT_wxUSE_BMPBUTTON=no
6457 DEFAULT_wxUSE_BUTTON=no
6458 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6459 DEFAULT_wxUSE_CARET=no
6460 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6461 DEFAULT_wxUSE_CHECKBOX=no
6462 DEFAULT_wxUSE_CHECKLISTBOX=no
6463 DEFAULT_wxUSE_CHOICE=no
6464 DEFAULT_wxUSE_GAUGE=no
6465 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6466 DEFAULT_wxUSE_IMAGLIST=no
6467 DEFAULT_wxUSE_LISTBOX=no
6468 DEFAULT_wxUSE_LISTCTRL=no
6469 DEFAULT_wxUSE_NOTEBOOK=no
6470 DEFAULT_wxUSE_RADIOBOX=no
6471 DEFAULT_wxUSE_RADIOBTN=no
6472 DEFAULT_wxUSE_SASH=no
6473 DEFAULT_wxUSE_SCROLLBAR=no
6474 DEFAULT_wxUSE_SLIDER=no
6475 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6476 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6477 DEFAULT_wxUSE_SPLITTER=no
6478 DEFAULT_wxUSE_STATBMP=no
6479 DEFAULT_wxUSE_STATBOX=no
6480 DEFAULT_wxUSE_STATLINE=no
6481 DEFAULT_wxUSE_STATUSBAR=no
6482 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6483 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6484 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6485 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6486 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6487 DEFAULT_wxUSE_TOOLTIPS=no
6488 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6489 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6490 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6491fi
6492
ac0c4cc3
DE
6493## FIXME: This is a blatant hack
6494if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6495 wxUSE_PRINTING_ARCHITECTURE=no
6496 wxUSE_HELP=no
6497 wxUSE_CLIPBOARD=no
6498 wxUSE_DRAG_AND_DROP=no
6499 wxUSE_DATAOBJ=no
8b389fab
DE
6500 # Generic notebook requires tab dialog
6501 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6502 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3
DE
6503 DEFAULT_wxUSE_GAUGE=no
6504 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3
DE
6505 DEFAULT_wxUSE_COMBOBOX=no
6506 DEFAULT_wxUSE_CALCTRL=no
6507 DEFAULT_wxUSE_SPINBTN=no
6508 DEFAULT_wxUSE_SPINCTRL=no
6509 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3
DE
6510 DEFAULT_wxUSE_DRAGIMAGE=no
6511 DEFAULT_wxUSE_FINDREPLDLG=no
6512 DEFAULT_wxUSE_FONTDLG=no
6513 DEFAULT_wxUSE_GRID=no
ac0c4cc3
DE
6514 DEFAULT_wxUSE_NUMBERDLG=no
6515 DEFAULT_wxUSE_PROGRESSDLG=no
ac0c4cc3
DE
6516 DEFAULT_wxUSE_SASH=no
6517 DEFAULT_wxUSE_SPLITTER=no
6518 DEFAULT_wxUSE_WIZARDDLG=no
6519 DEFAULT_wxUSE_SPLITTER=no
6520 DEFAULT_wxUSE_STARTUP_TIPS=no
ac0c4cc3
DE
6521fi
6522
8284b0c5 6523
5005acfe 6524 enablestring=
e6cc62c6
VS
6525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6526echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6527 no_cache=0
6528 # Check whether --enable-accel or --disable-accel was given.
6529if test "${enable_accel+set}" = set; then
6530 enableval="$enable_accel"
e6cc62c6 6531
10f2d63a
VZ
6532 if test "$enableval" = yes; then
6533 ac_cv_use_accel='wxUSE_ACCEL=yes'
6534 else
6535 ac_cv_use_accel='wxUSE_ACCEL=no'
6536 fi
e6cc62c6 6537
10f2d63a 6538else
e6cc62c6 6539
10f2d63a
VZ
6540 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6541 if test "x$LINE" != x ; then
6542 eval "DEFAULT_$LINE"
6543 else
6544 no_cache=1
6545 fi
6546
6547 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6548
e6cc62c6 6549fi;
10f2d63a
VZ
6550
6551 eval "$ac_cv_use_accel"
6552 if test "$no_cache" != 1; then
6553 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6554 fi
6555
6556 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
10f2d63a 6559 else
e6cc62c6
VS
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
10f2d63a 6562 fi
e6cc62c6 6563
10f2d63a 6564
5005acfe 6565 enablestring=
e6cc62c6
VS
6566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6567echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6568 no_cache=0
1e6feb95
VZ
6569 # Check whether --enable-button or --disable-button was given.
6570if test "${enable_button+set}" = set; then
6571 enableval="$enable_button"
e6cc62c6 6572
10f2d63a 6573 if test "$enableval" = yes; then
1e6feb95 6574 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6575 else
1e6feb95 6576 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6577 fi
e6cc62c6 6578
10f2d63a 6579else
e6cc62c6 6580
1e6feb95 6581 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
1e6feb95 6588 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6589
e6cc62c6 6590fi;
10f2d63a 6591
1e6feb95 6592 eval "$ac_cv_use_button"
10f2d63a 6593 if test "$no_cache" != 1; then
1e6feb95 6594 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6595 fi
6596
1e6feb95 6597 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6598 echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
10f2d63a 6600 else
e6cc62c6
VS
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
10f2d63a 6603 fi
e6cc62c6 6604
10f2d63a 6605
5005acfe 6606 enablestring=
e6cc62c6
VS
6607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6608echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6609 no_cache=0
6610 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6611if test "${enable_bmpbutton+set}" = set; then
6612 enableval="$enable_bmpbutton"
e6cc62c6 6613
10f2d63a
VZ
6614 if test "$enableval" = yes; then
6615 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6616 else
6617 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6618 fi
e6cc62c6 6619
10f2d63a 6620else
e6cc62c6 6621
10f2d63a
VZ
6622 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6630
e6cc62c6 6631fi;
10f2d63a
VZ
6632
6633 eval "$ac_cv_use_bmpbutton"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6636 fi
6637
6638 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6639 echo "$as_me:$LINENO: result: yes" >&5
6640echo "${ECHO_T}yes" >&6
10f2d63a 6641 else
e6cc62c6
VS
6642 echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
10f2d63a 6644 fi
e6cc62c6 6645
10f2d63a 6646
5005acfe 6647 enablestring=
e6cc62c6
VS
6648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6649echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6650 no_cache=0
6651 # Check whether --enable-calendar or --disable-calendar was given.
6652if test "${enable_calendar+set}" = set; then
6653 enableval="$enable_calendar"
e6cc62c6 6654
1e6feb95
VZ
6655 if test "$enableval" = yes; then
6656 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6657 else
6658 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6659 fi
e6cc62c6 6660
1e6feb95 6661else
e6cc62c6 6662
1e6feb95
VZ
6663 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6671
e6cc62c6 6672fi;
1e6feb95
VZ
6673
6674 eval "$ac_cv_use_calendar"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6677 fi
6678
6679 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6680 echo "$as_me:$LINENO: result: yes" >&5
6681echo "${ECHO_T}yes" >&6
1e6feb95 6682 else
e6cc62c6
VS
6683 echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6
1e6feb95 6685 fi
e6cc62c6 6686
1e6feb95 6687
5005acfe 6688 enablestring=
e6cc62c6
VS
6689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6690echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6691 no_cache=0
6692 # Check whether --enable-caret or --disable-caret was given.
6693if test "${enable_caret+set}" = set; then
6694 enableval="$enable_caret"
e6cc62c6 6695
1e6feb95
VZ
6696 if test "$enableval" = yes; then
6697 ac_cv_use_caret='wxUSE_CARET=yes'
6698 else
6699 ac_cv_use_caret='wxUSE_CARET=no'
6700 fi
e6cc62c6 6701
1e6feb95 6702else
e6cc62c6 6703
1e6feb95
VZ
6704 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6712
e6cc62c6 6713fi;
1e6feb95
VZ
6714
6715 eval "$ac_cv_use_caret"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6721 echo "$as_me:$LINENO: result: yes" >&5
6722echo "${ECHO_T}yes" >&6
1e6feb95 6723 else
e6cc62c6
VS
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
1e6feb95 6726 fi
e6cc62c6 6727
1e6feb95 6728
5005acfe 6729 enablestring=
e6cc62c6
VS
6730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6731echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6732 no_cache=0
6733 # Check whether --enable-checkbox or --disable-checkbox was given.
6734if test "${enable_checkbox+set}" = set; then
6735 enableval="$enable_checkbox"
e6cc62c6 6736
10f2d63a
VZ
6737 if test "$enableval" = yes; then
6738 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6739 else
6740 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6741 fi
e6cc62c6 6742
10f2d63a 6743else
e6cc62c6 6744
10f2d63a
VZ
6745 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6746 if test "x$LINE" != x ; then
6747 eval "DEFAULT_$LINE"
6748 else
6749 no_cache=1
6750 fi
6751
6752 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6753
e6cc62c6 6754fi;
10f2d63a
VZ
6755
6756 eval "$ac_cv_use_checkbox"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6762 echo "$as_me:$LINENO: result: yes" >&5
6763echo "${ECHO_T}yes" >&6
10f2d63a 6764 else
e6cc62c6
VS
6765 echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
10f2d63a 6767 fi
e6cc62c6 6768
10f2d63a 6769
5005acfe 6770 enablestring=
e6cc62c6
VS
6771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6772echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6773 no_cache=0
6774 # Check whether --enable-checklst or --disable-checklst was given.
6775if test "${enable_checklst+set}" = set; then
6776 enableval="$enable_checklst"
e6cc62c6 6777
10f2d63a
VZ
6778 if test "$enableval" = yes; then
6779 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6780 else
6781 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6782 fi
e6cc62c6 6783
10f2d63a 6784else
e6cc62c6 6785
10f2d63a
VZ
6786 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6794
e6cc62c6 6795fi;
10f2d63a
VZ
6796
6797 eval "$ac_cv_use_checklst"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6803 echo "$as_me:$LINENO: result: yes" >&5
6804echo "${ECHO_T}yes" >&6
10f2d63a 6805 else
e6cc62c6
VS
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
10f2d63a 6808 fi
e6cc62c6 6809
10f2d63a 6810
5005acfe 6811 enablestring=
e6cc62c6
VS
6812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6813echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6814 no_cache=0
6815 # Check whether --enable-choice or --disable-choice was given.
6816if test "${enable_choice+set}" = set; then
6817 enableval="$enable_choice"
e6cc62c6 6818
10f2d63a
VZ
6819 if test "$enableval" = yes; then
6820 ac_cv_use_choice='wxUSE_CHOICE=yes'
6821 else
6822 ac_cv_use_choice='wxUSE_CHOICE=no'
6823 fi
e6cc62c6 6824
10f2d63a 6825else
e6cc62c6 6826
10f2d63a
VZ
6827 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6828 if test "x$LINE" != x ; then
6829 eval "DEFAULT_$LINE"
6830 else
6831 no_cache=1
6832 fi
6833
6834 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6835
e6cc62c6 6836fi;
10f2d63a
VZ
6837
6838 eval "$ac_cv_use_choice"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6844 echo "$as_me:$LINENO: result: yes" >&5
6845echo "${ECHO_T}yes" >&6
10f2d63a 6846 else
e6cc62c6
VS
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
10f2d63a 6849 fi
e6cc62c6 6850
10f2d63a 6851
5005acfe 6852 enablestring=
e6cc62c6
VS
6853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6854echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6855 no_cache=0
6856 # Check whether --enable-combobox or --disable-combobox was given.
6857if test "${enable_combobox+set}" = set; then
6858 enableval="$enable_combobox"
e6cc62c6 6859
10f2d63a
VZ
6860 if test "$enableval" = yes; then
6861 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6862 else
6863 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6864 fi
e6cc62c6 6865
10f2d63a 6866else
e6cc62c6 6867
10f2d63a
VZ
6868 LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6876
e6cc62c6 6877fi;
10f2d63a
VZ
6878
6879 eval "$ac_cv_use_combobox"
6880 if test "$no_cache" != 1; then
6881 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6882 fi
6883
6884 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6885 echo "$as_me:$LINENO: result: yes" >&5
6886echo "${ECHO_T}yes" >&6
10f2d63a 6887 else
e6cc62c6
VS
6888 echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6
10f2d63a 6890 fi
e6cc62c6 6891
10f2d63a 6892
da494b40 6893 enablestring=
e6cc62c6
VS
6894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6895echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6896 no_cache=0
6897 # Check whether --enable-display or --disable-display was given.
6898if test "${enable_display+set}" = set; then
6899 enableval="$enable_display"
e6cc62c6 6900
da494b40
MB
6901 if test "$enableval" = yes; then
6902 ac_cv_use_display='wxUSE_DISPLAY=yes'
6903 else
6904 ac_cv_use_display='wxUSE_DISPLAY=no'
6905 fi
e6cc62c6 6906
da494b40 6907else
e6cc62c6 6908
da494b40
MB
6909 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6910 if test "x$LINE" != x ; then
6911 eval "DEFAULT_$LINE"
6912 else
6913 no_cache=1
6914 fi
6915
6916 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6917
e6cc62c6 6918fi;
da494b40
MB
6919
6920 eval "$ac_cv_use_display"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6926 echo "$as_me:$LINENO: result: yes" >&5
6927echo "${ECHO_T}yes" >&6
da494b40 6928 else
e6cc62c6
VS
6929 echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
da494b40 6931 fi
e6cc62c6 6932
da494b40 6933
5005acfe 6934 enablestring=
e6cc62c6
VS
6935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6936echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6937 no_cache=0
6938 # Check whether --enable-gauge or --disable-gauge was given.
6939if test "${enable_gauge+set}" = set; then
6940 enableval="$enable_gauge"
e6cc62c6 6941
10f2d63a
VZ
6942 if test "$enableval" = yes; then
6943 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6944 else
6945 ac_cv_use_gauge='wxUSE_GAUGE=no'
6946 fi
e6cc62c6 6947
10f2d63a 6948else
e6cc62c6 6949
10f2d63a
VZ
6950 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6951 if test "x$LINE" != x ; then
6952 eval "DEFAULT_$LINE"
6953 else
6954 no_cache=1
6955 fi
6956
6957 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6958
e6cc62c6 6959fi;
10f2d63a
VZ
6960
6961 eval "$ac_cv_use_gauge"
6962 if test "$no_cache" != 1; then
6963 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6964 fi
6965
6966 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
6967 echo "$as_me:$LINENO: result: yes" >&5
6968echo "${ECHO_T}yes" >&6
10f2d63a 6969 else
e6cc62c6
VS
6970 echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6
10f2d63a 6972 fi
e6cc62c6 6973
10f2d63a 6974
5005acfe 6975 enablestring=
e6cc62c6
VS
6976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
6977echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
6978 no_cache=0
6979 # Check whether --enable-grid or --disable-grid was given.
6980if test "${enable_grid+set}" = set; then
6981 enableval="$enable_grid"
e6cc62c6 6982
10f2d63a
VZ
6983 if test "$enableval" = yes; then
6984 ac_cv_use_grid='wxUSE_GRID=yes'
6985 else
6986 ac_cv_use_grid='wxUSE_GRID=no'
6987 fi
e6cc62c6 6988
10f2d63a 6989else
e6cc62c6 6990
10f2d63a
VZ
6991 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6992 if test "x$LINE" != x ; then
6993 eval "DEFAULT_$LINE"
6994 else
6995 no_cache=1
6996 fi
6997
6998 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 6999
e6cc62c6 7000fi;
10f2d63a
VZ
7001
7002 eval "$ac_cv_use_grid"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7008 echo "$as_me:$LINENO: result: yes" >&5
7009echo "${ECHO_T}yes" >&6
10f2d63a 7010 else
e6cc62c6
VS
7011 echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6
10f2d63a 7013 fi
e6cc62c6 7014
10f2d63a 7015
5005acfe 7016 enablestring=
e6cc62c6
VS
7017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7018echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7019 no_cache=0
7020 # Check whether --enable-imaglist or --disable-imaglist was given.
7021if test "${enable_imaglist+set}" = set; then
7022 enableval="$enable_imaglist"
e6cc62c6 7023
10f2d63a
VZ
7024 if test "$enableval" = yes; then
7025 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7026 else
7027 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7028 fi
e6cc62c6 7029
10f2d63a 7030else
e6cc62c6 7031
10f2d63a
VZ
7032 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7033 if test "x$LINE" != x ; then
7034 eval "DEFAULT_$LINE"
7035 else
7036 no_cache=1
7037 fi
7038
7039 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7040
e6cc62c6 7041fi;
10f2d63a
VZ
7042
7043 eval "$ac_cv_use_imaglist"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7049 echo "$as_me:$LINENO: result: yes" >&5
7050echo "${ECHO_T}yes" >&6
10f2d63a 7051 else
e6cc62c6
VS
7052 echo "$as_me:$LINENO: result: no" >&5
7053echo "${ECHO_T}no" >&6
10f2d63a 7054 fi
e6cc62c6 7055
10f2d63a 7056
5005acfe 7057 enablestring=
e6cc62c6
VS
7058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7059echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7060 no_cache=0
7061 # Check whether --enable-listbox or --disable-listbox was given.
7062if test "${enable_listbox+set}" = set; then
7063 enableval="$enable_listbox"
e6cc62c6 7064
10f2d63a
VZ
7065 if test "$enableval" = yes; then
7066 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7067 else
7068 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7069 fi
e6cc62c6 7070
10f2d63a 7071else
e6cc62c6 7072
10f2d63a
VZ
7073 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7074 if test "x$LINE" != x ; then
7075 eval "DEFAULT_$LINE"
7076 else
7077 no_cache=1
7078 fi
7079
7080 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7081
e6cc62c6 7082fi;
10f2d63a
VZ
7083
7084 eval "$ac_cv_use_listbox"
7085 if test "$no_cache" != 1; then
7086 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7087 fi
7088
7089 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7090 echo "$as_me:$LINENO: result: yes" >&5
7091echo "${ECHO_T}yes" >&6
10f2d63a 7092 else
e6cc62c6
VS
7093 echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6
10f2d63a 7095 fi
e6cc62c6 7096
10f2d63a 7097
5005acfe 7098 enablestring=
e6cc62c6
VS
7099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7100echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7101 no_cache=0
7102 # Check whether --enable-listctrl or --disable-listctrl was given.
7103if test "${enable_listctrl+set}" = set; then
7104 enableval="$enable_listctrl"
e6cc62c6 7105
10f2d63a
VZ
7106 if test "$enableval" = yes; then
7107 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7108 else
7109 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7110 fi
e6cc62c6 7111
10f2d63a 7112else
e6cc62c6 7113
10f2d63a
VZ
7114 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7115 if test "x$LINE" != x ; then
7116 eval "DEFAULT_$LINE"
7117 else
7118 no_cache=1
7119 fi
7120
7121 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7122
e6cc62c6 7123fi;
10f2d63a
VZ
7124
7125 eval "$ac_cv_use_listctrl"
7126 if test "$no_cache" != 1; then
7127 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7128 fi
7129
7130 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7131 echo "$as_me:$LINENO: result: yes" >&5
7132echo "${ECHO_T}yes" >&6
10f2d63a 7133 else
e6cc62c6
VS
7134 echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
10f2d63a 7136 fi
e6cc62c6 7137
10f2d63a 7138
5005acfe 7139 enablestring=
e6cc62c6
VS
7140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7141echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7142 no_cache=0
7143 # Check whether --enable-notebook or --disable-notebook was given.
7144if test "${enable_notebook+set}" = set; then
7145 enableval="$enable_notebook"
e6cc62c6 7146
10f2d63a
VZ
7147 if test "$enableval" = yes; then
7148 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7149 else
7150 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7151 fi
e6cc62c6 7152
10f2d63a 7153else
e6cc62c6 7154
10f2d63a
VZ
7155 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7156 if test "x$LINE" != x ; then
7157 eval "DEFAULT_$LINE"
7158 else
7159 no_cache=1
7160 fi
7161
7162 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7163
e6cc62c6 7164fi;
10f2d63a
VZ
7165
7166 eval "$ac_cv_use_notebook"
7167 if test "$no_cache" != 1; then
7168 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7169 fi
7170
7171 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7172 echo "$as_me:$LINENO: result: yes" >&5
7173echo "${ECHO_T}yes" >&6
10f2d63a 7174 else
e6cc62c6
VS
7175 echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
10f2d63a 7177 fi
e6cc62c6 7178
10f2d63a 7179
5005acfe 7180 enablestring=
e6cc62c6
VS
7181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7182echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7183 no_cache=0
7184 # Check whether --enable-radiobox or --disable-radiobox was given.
7185if test "${enable_radiobox+set}" = set; then
7186 enableval="$enable_radiobox"
e6cc62c6 7187
10f2d63a
VZ
7188 if test "$enableval" = yes; then
7189 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7190 else
7191 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7192 fi
e6cc62c6 7193
10f2d63a 7194else
e6cc62c6 7195
10f2d63a
VZ
7196 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7197 if test "x$LINE" != x ; then
7198 eval "DEFAULT_$LINE"
7199 else
7200 no_cache=1
7201 fi
7202
7203 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7204
e6cc62c6 7205fi;
10f2d63a
VZ
7206
7207 eval "$ac_cv_use_radiobox"
7208 if test "$no_cache" != 1; then
7209 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7210 fi
7211
7212 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7213 echo "$as_me:$LINENO: result: yes" >&5
7214echo "${ECHO_T}yes" >&6
10f2d63a 7215 else
e6cc62c6
VS
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
10f2d63a 7218 fi
e6cc62c6 7219
10f2d63a 7220
5005acfe 7221 enablestring=
e6cc62c6
VS
7222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7223echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7224 no_cache=0
7225 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7226if test "${enable_radiobtn+set}" = set; then
7227 enableval="$enable_radiobtn"
e6cc62c6 7228
10f2d63a
VZ
7229 if test "$enableval" = yes; then
7230 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7231 else
7232 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7233 fi
e6cc62c6 7234
10f2d63a 7235else
e6cc62c6 7236
10f2d63a
VZ
7237 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7238 if test "x$LINE" != x ; then
7239 eval "DEFAULT_$LINE"
7240 else
7241 no_cache=1
7242 fi
7243
7244 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7245
e6cc62c6 7246fi;
10f2d63a
VZ
7247
7248 eval "$ac_cv_use_radiobtn"
7249 if test "$no_cache" != 1; then
7250 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7251 fi
7252
7253 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7254 echo "$as_me:$LINENO: result: yes" >&5
7255echo "${ECHO_T}yes" >&6
10f2d63a 7256 else
e6cc62c6
VS
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
10f2d63a 7259 fi
e6cc62c6 7260
10f2d63a 7261
5005acfe 7262 enablestring=
e6cc62c6
VS
7263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7264echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7265 no_cache=0
7266 # Check whether --enable-sash or --disable-sash was given.
7267if test "${enable_sash+set}" = set; then
7268 enableval="$enable_sash"
e6cc62c6 7269
10f2d63a
VZ
7270 if test "$enableval" = yes; then
7271 ac_cv_use_sash='wxUSE_SASH=yes'
7272 else
7273 ac_cv_use_sash='wxUSE_SASH=no'
7274 fi
e6cc62c6 7275
10f2d63a 7276else
e6cc62c6 7277
10f2d63a
VZ
7278 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7279 if test "x$LINE" != x ; then
7280 eval "DEFAULT_$LINE"
7281 else
7282 no_cache=1
7283 fi
7284
7285 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7286
e6cc62c6 7287fi;
10f2d63a
VZ
7288
7289 eval "$ac_cv_use_sash"
7290 if test "$no_cache" != 1; then
7291 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7292 fi
7293
7294 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7295 echo "$as_me:$LINENO: result: yes" >&5
7296echo "${ECHO_T}yes" >&6
10f2d63a 7297 else
e6cc62c6
VS
7298 echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6
10f2d63a 7300 fi
e6cc62c6 7301
10f2d63a 7302
5005acfe 7303 enablestring=
e6cc62c6
VS
7304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7305echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7306 no_cache=0
7307 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7308if test "${enable_scrollbar+set}" = set; then
7309 enableval="$enable_scrollbar"
e6cc62c6 7310
10f2d63a
VZ
7311 if test "$enableval" = yes; then
7312 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7313 else
7314 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7315 fi
e6cc62c6 7316
10f2d63a 7317else
e6cc62c6 7318
10f2d63a
VZ
7319 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7320 if test "x$LINE" != x ; then
7321 eval "DEFAULT_$LINE"
7322 else
7323 no_cache=1
7324 fi
7325
7326 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7327
e6cc62c6 7328fi;
10f2d63a
VZ
7329
7330 eval "$ac_cv_use_scrollbar"
7331 if test "$no_cache" != 1; then
7332 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7333 fi
7334
7335 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7336 echo "$as_me:$LINENO: result: yes" >&5
7337echo "${ECHO_T}yes" >&6
10f2d63a 7338 else
e6cc62c6
VS
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
10f2d63a 7341 fi
e6cc62c6 7342
10f2d63a 7343
5005acfe 7344 enablestring=
e6cc62c6
VS
7345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7346echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7347 no_cache=0
7348 # Check whether --enable-slider or --disable-slider was given.
7349if test "${enable_slider+set}" = set; then
7350 enableval="$enable_slider"
e6cc62c6 7351
10f2d63a
VZ
7352 if test "$enableval" = yes; then
7353 ac_cv_use_slider='wxUSE_SLIDER=yes'
7354 else
7355 ac_cv_use_slider='wxUSE_SLIDER=no'
7356 fi
e6cc62c6 7357
10f2d63a 7358else
e6cc62c6 7359
10f2d63a
VZ
7360 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7361 if test "x$LINE" != x ; then
7362 eval "DEFAULT_$LINE"
7363 else
7364 no_cache=1
7365 fi
7366
7367 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7368
e6cc62c6 7369fi;
10f2d63a
VZ
7370
7371 eval "$ac_cv_use_slider"
7372 if test "$no_cache" != 1; then
7373 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7374 fi
7375
7376 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7377 echo "$as_me:$LINENO: result: yes" >&5
7378echo "${ECHO_T}yes" >&6
10f2d63a 7379 else
e6cc62c6
VS
7380 echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
10f2d63a 7382 fi
e6cc62c6 7383
10f2d63a 7384
5005acfe 7385 enablestring=
e6cc62c6
VS
7386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7387echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7388 no_cache=0
7389 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7390if test "${enable_spinbtn+set}" = set; then
7391 enableval="$enable_spinbtn"
e6cc62c6 7392
10f2d63a
VZ
7393 if test "$enableval" = yes; then
7394 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7395 else
7396 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7397 fi
e6cc62c6 7398
10f2d63a 7399else
e6cc62c6 7400
10f2d63a
VZ
7401 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7409
e6cc62c6 7410fi;
10f2d63a
VZ
7411
7412 eval "$ac_cv_use_spinbtn"
7413 if test "$no_cache" != 1; then
7414 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7415 fi
7416
7417 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7418 echo "$as_me:$LINENO: result: yes" >&5
7419echo "${ECHO_T}yes" >&6
10f2d63a 7420 else
e6cc62c6
VS
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
10f2d63a 7423 fi
e6cc62c6 7424
10f2d63a 7425
5005acfe 7426 enablestring=
e6cc62c6
VS
7427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7428echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7429 no_cache=0
7430 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7431if test "${enable_spinctrl+set}" = set; then
7432 enableval="$enable_spinctrl"
e6cc62c6 7433
56cfaa52
RR
7434 if test "$enableval" = yes; then
7435 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7436 else
7437 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7438 fi
e6cc62c6 7439
56cfaa52 7440else
e6cc62c6 7441
56cfaa52
RR
7442 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7443 if test "x$LINE" != x ; then
7444 eval "DEFAULT_$LINE"
7445 else
7446 no_cache=1
7447 fi
7448
7449 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7450
e6cc62c6 7451fi;
56cfaa52
RR
7452
7453 eval "$ac_cv_use_spinctrl"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7459 echo "$as_me:$LINENO: result: yes" >&5
7460echo "${ECHO_T}yes" >&6
56cfaa52 7461 else
e6cc62c6
VS
7462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
56cfaa52 7464 fi
e6cc62c6 7465
56cfaa52 7466
5005acfe 7467 enablestring=
e6cc62c6
VS
7468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7469echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7470 no_cache=0
7471 # Check whether --enable-splitter or --disable-splitter was given.
7472if test "${enable_splitter+set}" = set; then
7473 enableval="$enable_splitter"
e6cc62c6 7474
10f2d63a
VZ
7475 if test "$enableval" = yes; then
7476 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7477 else
7478 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7479 fi
e6cc62c6 7480
10f2d63a 7481else
e6cc62c6 7482
10f2d63a
VZ
7483 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7484 if test "x$LINE" != x ; then
7485 eval "DEFAULT_$LINE"
7486 else
7487 no_cache=1
7488 fi
7489
7490 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7491
e6cc62c6 7492fi;
10f2d63a
VZ
7493
7494 eval "$ac_cv_use_splitter"
7495 if test "$no_cache" != 1; then
7496 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7497 fi
7498
7499 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7500 echo "$as_me:$LINENO: result: yes" >&5
7501echo "${ECHO_T}yes" >&6
10f2d63a 7502 else
e6cc62c6
VS
7503 echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6
10f2d63a 7505 fi
e6cc62c6 7506
10f2d63a 7507
5005acfe 7508 enablestring=
e6cc62c6
VS
7509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7510echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7511 no_cache=0
7512 # Check whether --enable-statbmp or --disable-statbmp was given.
7513if test "${enable_statbmp+set}" = set; then
7514 enableval="$enable_statbmp"
e6cc62c6 7515
10f2d63a
VZ
7516 if test "$enableval" = yes; then
7517 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7518 else
7519 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7520 fi
e6cc62c6 7521
10f2d63a 7522else
e6cc62c6 7523
10f2d63a
VZ
7524 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7525 if test "x$LINE" != x ; then
7526 eval "DEFAULT_$LINE"
7527 else
7528 no_cache=1
7529 fi
7530
7531 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7532
e6cc62c6 7533fi;
10f2d63a
VZ
7534
7535 eval "$ac_cv_use_statbmp"
7536 if test "$no_cache" != 1; then
7537 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7538 fi
7539
7540 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7541 echo "$as_me:$LINENO: result: yes" >&5
7542echo "${ECHO_T}yes" >&6
10f2d63a 7543 else
e6cc62c6
VS
7544 echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
10f2d63a 7546 fi
e6cc62c6 7547
10f2d63a 7548
5005acfe 7549 enablestring=
e6cc62c6
VS
7550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7551echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7552 no_cache=0
7553 # Check whether --enable-statbox or --disable-statbox was given.
7554if test "${enable_statbox+set}" = set; then
7555 enableval="$enable_statbox"
e6cc62c6 7556
10f2d63a
VZ
7557 if test "$enableval" = yes; then
7558 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7559 else
7560 ac_cv_use_statbox='wxUSE_STATBOX=no'
7561 fi
e6cc62c6 7562
10f2d63a 7563else
e6cc62c6 7564
10f2d63a
VZ
7565 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7566 if test "x$LINE" != x ; then
7567 eval "DEFAULT_$LINE"
7568 else
7569 no_cache=1
7570 fi
7571
7572 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7573
e6cc62c6 7574fi;
10f2d63a
VZ
7575
7576 eval "$ac_cv_use_statbox"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7582 echo "$as_me:$LINENO: result: yes" >&5
7583echo "${ECHO_T}yes" >&6
10f2d63a 7584 else
e6cc62c6
VS
7585 echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
10f2d63a 7587 fi
e6cc62c6 7588
10f2d63a 7589
5005acfe 7590 enablestring=
e6cc62c6
VS
7591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7592echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7593 no_cache=0
7594 # Check whether --enable-statline or --disable-statline was given.
7595if test "${enable_statline+set}" = set; then
7596 enableval="$enable_statline"
e6cc62c6 7597
10f2d63a
VZ
7598 if test "$enableval" = yes; then
7599 ac_cv_use_statline='wxUSE_STATLINE=yes'
7600 else
7601 ac_cv_use_statline='wxUSE_STATLINE=no'
7602 fi
e6cc62c6 7603
10f2d63a 7604else
e6cc62c6 7605
10f2d63a
VZ
7606 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7607 if test "x$LINE" != x ; then
7608 eval "DEFAULT_$LINE"
7609 else
7610 no_cache=1
7611 fi
7612
7613 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7614
e6cc62c6 7615fi;
10f2d63a
VZ
7616
7617 eval "$ac_cv_use_statline"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7623 echo "$as_me:$LINENO: result: yes" >&5
7624echo "${ECHO_T}yes" >&6
10f2d63a 7625 else
e6cc62c6
VS
7626 echo "$as_me:$LINENO: result: no" >&5
7627echo "${ECHO_T}no" >&6
10f2d63a 7628 fi
e6cc62c6 7629
10f2d63a 7630
5005acfe 7631 enablestring=
e6cc62c6
VS
7632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7633echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7634 no_cache=0
7635 # Check whether --enable-stattext or --disable-stattext was given.
7636if test "${enable_stattext+set}" = set; then
7637 enableval="$enable_stattext"
e6cc62c6 7638
1e6feb95
VZ
7639 if test "$enableval" = yes; then
7640 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7641 else
7642 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7643 fi
e6cc62c6 7644
1e6feb95 7645else
e6cc62c6 7646
1e6feb95
VZ
7647 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7655
e6cc62c6 7656fi;
1e6feb95
VZ
7657
7658 eval "$ac_cv_use_stattext"
7659 if test "$no_cache" != 1; then
7660 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7661 fi
7662
7663 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7664 echo "$as_me:$LINENO: result: yes" >&5
7665echo "${ECHO_T}yes" >&6
1e6feb95 7666 else
e6cc62c6
VS
7667 echo "$as_me:$LINENO: result: no" >&5
7668echo "${ECHO_T}no" >&6
1e6feb95 7669 fi
e6cc62c6 7670
1e6feb95 7671
5005acfe 7672 enablestring=
e6cc62c6
VS
7673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7674echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7675 no_cache=0
7676 # Check whether --enable-statusbar or --disable-statusbar was given.
7677if test "${enable_statusbar+set}" = set; then
7678 enableval="$enable_statusbar"
e6cc62c6 7679
10f2d63a
VZ
7680 if test "$enableval" = yes; then
7681 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7682 else
7683 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7684 fi
e6cc62c6 7685
10f2d63a 7686else
e6cc62c6 7687
10f2d63a
VZ
7688 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7689 if test "x$LINE" != x ; then
7690 eval "DEFAULT_$LINE"
7691 else
7692 no_cache=1
7693 fi
7694
7695 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7696
e6cc62c6 7697fi;
10f2d63a
VZ
7698
7699 eval "$ac_cv_use_statusbar"
7700 if test "$no_cache" != 1; then
7701 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7702 fi
7703
7704 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7705 echo "$as_me:$LINENO: result: yes" >&5
7706echo "${ECHO_T}yes" >&6
10f2d63a 7707 else
e6cc62c6
VS
7708 echo "$as_me:$LINENO: result: no" >&5
7709echo "${ECHO_T}no" >&6
10f2d63a 7710 fi
e6cc62c6 7711
10f2d63a 7712
5005acfe 7713 enablestring=
e6cc62c6
VS
7714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7715echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7716 no_cache=0
7717 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7718if test "${enable_tabdialog+set}" = set; then
7719 enableval="$enable_tabdialog"
e6cc62c6 7720
10f2d63a
VZ
7721 if test "$enableval" = yes; then
7722 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7723 else
7724 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7725 fi
e6cc62c6 7726
10f2d63a 7727else
e6cc62c6 7728
10f2d63a
VZ
7729 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7730 if test "x$LINE" != x ; then
7731 eval "DEFAULT_$LINE"
7732 else
7733 no_cache=1
7734 fi
7735
7736 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7737
e6cc62c6 7738fi;
10f2d63a
VZ
7739
7740 eval "$ac_cv_use_tabdialog"
7741 if test "$no_cache" != 1; then
7742 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7743 fi
7744
7745 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7746 echo "$as_me:$LINENO: result: yes" >&5
7747echo "${ECHO_T}yes" >&6
10f2d63a 7748 else
e6cc62c6
VS
7749 echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
10f2d63a 7751 fi
e6cc62c6 7752
10f2d63a 7753
5005acfe 7754 enablestring=
e6cc62c6
VS
7755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7756echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7757 no_cache=0
7758 # Check whether --enable-textctrl or --disable-textctrl was given.
7759if test "${enable_textctrl+set}" = set; then
7760 enableval="$enable_textctrl"
e6cc62c6 7761
1e6feb95
VZ
7762 if test "$enableval" = yes; then
7763 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7764 else
7765 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7766 fi
e6cc62c6 7767
1e6feb95 7768else
e6cc62c6 7769
1e6feb95
VZ
7770 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7771 if test "x$LINE" != x ; then
7772 eval "DEFAULT_$LINE"
7773 else
7774 no_cache=1
7775 fi
7776
7777 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7778
e6cc62c6 7779fi;
1e6feb95
VZ
7780
7781 eval "$ac_cv_use_textctrl"
7782 if test "$no_cache" != 1; then
7783 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7784 fi
7785
7786 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7787 echo "$as_me:$LINENO: result: yes" >&5
7788echo "${ECHO_T}yes" >&6
1e6feb95 7789 else
e6cc62c6
VS
7790 echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6
1e6feb95 7792 fi
e6cc62c6 7793
1e6feb95 7794
5005acfe 7795 enablestring=
e6cc62c6
VS
7796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7797echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7798 no_cache=0
7799 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7800if test "${enable_togglebtn+set}" = set; then
7801 enableval="$enable_togglebtn"
e6cc62c6 7802
1db8dc4a
VZ
7803 if test "$enableval" = yes; then
7804 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7805 else
7806 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7807 fi
e6cc62c6 7808
1db8dc4a 7809else
e6cc62c6 7810
1db8dc4a
VZ
7811 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7812 if test "x$LINE" != x ; then
7813 eval "DEFAULT_$LINE"
7814 else
7815 no_cache=1
7816 fi
7817
7818 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7819
e6cc62c6 7820fi;
1db8dc4a
VZ
7821
7822 eval "$ac_cv_use_togglebtn"
7823 if test "$no_cache" != 1; then
7824 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7825 fi
7826
7827 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7828 echo "$as_me:$LINENO: result: yes" >&5
7829echo "${ECHO_T}yes" >&6
1db8dc4a 7830 else
e6cc62c6
VS
7831 echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6
1db8dc4a 7833 fi
e6cc62c6 7834
1db8dc4a 7835
5005acfe 7836 enablestring=
e6cc62c6
VS
7837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7838echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7839 no_cache=0
7840 # Check whether --enable-toolbar or --disable-toolbar was given.
7841if test "${enable_toolbar+set}" = set; then
7842 enableval="$enable_toolbar"
e6cc62c6 7843
10f2d63a
VZ
7844 if test "$enableval" = yes; then
7845 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7846 else
7847 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7848 fi
e6cc62c6 7849
10f2d63a 7850else
e6cc62c6 7851
10f2d63a
VZ
7852 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7860
e6cc62c6 7861fi;
10f2d63a
VZ
7862
7863 eval "$ac_cv_use_toolbar"
7864 if test "$no_cache" != 1; then
7865 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7866 fi
7867
7868 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7869 echo "$as_me:$LINENO: result: yes" >&5
7870echo "${ECHO_T}yes" >&6
10f2d63a 7871 else
e6cc62c6
VS
7872 echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
10f2d63a 7874 fi
e6cc62c6 7875
10f2d63a 7876
5005acfe 7877 enablestring=
e6cc62c6
VS
7878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7879echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7880 no_cache=0
7881 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7882if test "${enable_tbarnative+set}" = set; then
7883 enableval="$enable_tbarnative"
e6cc62c6 7884
360d6699
VZ
7885 if test "$enableval" = yes; then
7886 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7887 else
7888 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7889 fi
e6cc62c6 7890
360d6699 7891else
e6cc62c6 7892
360d6699
VZ
7893 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7894 if test "x$LINE" != x ; then
7895 eval "DEFAULT_$LINE"
7896 else
7897 no_cache=1
7898 fi
7899
7900 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7901
e6cc62c6 7902fi;
360d6699
VZ
7903
7904 eval "$ac_cv_use_tbarnative"
7905 if test "$no_cache" != 1; then
7906 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7907 fi
7908
7909 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7910 echo "$as_me:$LINENO: result: yes" >&5
7911echo "${ECHO_T}yes" >&6
360d6699 7912 else
e6cc62c6
VS
7913 echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
360d6699 7915 fi
e6cc62c6 7916
360d6699 7917
5005acfe 7918 enablestring=
e6cc62c6
VS
7919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7920echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7921 no_cache=0
7922 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7923if test "${enable_tbarsmpl+set}" = set; then
7924 enableval="$enable_tbarsmpl"
e6cc62c6 7925
360d6699
VZ
7926 if test "$enableval" = yes; then
7927 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7928 else
7929 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7930 fi
e6cc62c6 7931
360d6699 7932else
e6cc62c6 7933
360d6699
VZ
7934 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7935 if test "x$LINE" != x ; then
7936 eval "DEFAULT_$LINE"
7937 else
7938 no_cache=1
7939 fi
7940
7941 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7942
e6cc62c6 7943fi;
360d6699
VZ
7944
7945 eval "$ac_cv_use_tbarsmpl"
7946 if test "$no_cache" != 1; then
7947 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7948 fi
7949
7950 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7951 echo "$as_me:$LINENO: result: yes" >&5
7952echo "${ECHO_T}yes" >&6
360d6699 7953 else
e6cc62c6
VS
7954 echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6
360d6699 7956 fi
e6cc62c6 7957
360d6699 7958
5005acfe 7959 enablestring=
e6cc62c6
VS
7960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
7961echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7962 no_cache=0
7963 # Check whether --enable-treectrl or --disable-treectrl was given.
7964if test "${enable_treectrl+set}" = set; then
7965 enableval="$enable_treectrl"
e6cc62c6 7966
10f2d63a
VZ
7967 if test "$enableval" = yes; then
7968 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7969 else
7970 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7971 fi
e6cc62c6 7972
10f2d63a 7973else
e6cc62c6 7974
10f2d63a
VZ
7975 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7983
e6cc62c6 7984fi;
10f2d63a 7985
1e6feb95
VZ
7986 eval "$ac_cv_use_treectrl"
7987 if test "$no_cache" != 1; then
7988 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7989 fi
7990
7991 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
7992 echo "$as_me:$LINENO: result: yes" >&5
7993echo "${ECHO_T}yes" >&6
1e6feb95 7994 else
e6cc62c6
VS
7995 echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6
1e6feb95 7997 fi
e6cc62c6 7998
1e6feb95 7999
5005acfe 8000 enablestring=
e6cc62c6
VS
8001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8002echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8003 no_cache=0
8004 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8005if test "${enable_tipwindow+set}" = set; then
8006 enableval="$enable_tipwindow"
e6cc62c6 8007
9926e4a4
VZ
8008 if test "$enableval" = yes; then
8009 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8010 else
8011 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8012 fi
e6cc62c6 8013
9926e4a4 8014else
e6cc62c6 8015
9926e4a4
VZ
8016 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8017 if test "x$LINE" != x ; then
8018 eval "DEFAULT_$LINE"
8019 else
8020 no_cache=1
8021 fi
8022
8023 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8024
e6cc62c6 8025fi;
9926e4a4
VZ
8026
8027 eval "$ac_cv_use_tipwindow"
8028 if test "$no_cache" != 1; then
8029 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8030 fi
8031
8032 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8033 echo "$as_me:$LINENO: result: yes" >&5
8034echo "${ECHO_T}yes" >&6
9926e4a4 8035 else
e6cc62c6
VS
8036 echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6
9926e4a4 8038 fi
e6cc62c6 8039
9926e4a4 8040
5005acfe 8041 enablestring=
e6cc62c6
VS
8042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8043echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8044 no_cache=0
8045 # Check whether --enable-popupwin or --disable-popupwin was given.
8046if test "${enable_popupwin+set}" = set; then
8047 enableval="$enable_popupwin"
e6cc62c6 8048
9f41d601
RR
8049 if test "$enableval" = yes; then
8050 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8051 else
8052 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8053 fi
e6cc62c6 8054
9f41d601 8055else
e6cc62c6 8056
9f41d601
RR
8057 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8058 if test "x$LINE" != x ; then
8059 eval "DEFAULT_$LINE"
8060 else
8061 no_cache=1
8062 fi
8063
8064 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8065
e6cc62c6 8066fi;
9f41d601
RR
8067
8068 eval "$ac_cv_use_popupwin"
8069 if test "$no_cache" != 1; then
8070 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8071 fi
8072
8073 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8074 echo "$as_me:$LINENO: result: yes" >&5
8075echo "${ECHO_T}yes" >&6
9f41d601 8076 else
e6cc62c6
VS
8077 echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
9f41d601 8079 fi
e6cc62c6 8080
52127426 8081
8284b0c5
MB
8082
8083
5005acfe 8084 enablestring=
e6cc62c6
VS
8085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8086echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8087 no_cache=0
8088 # Check whether --enable-commondlg or --disable-commondlg was given.
8089if test "${enable_commondlg+set}" = set; then
8090 enableval="$enable_commondlg"
e6cc62c6 8091
1e6feb95
VZ
8092 if test "$enableval" = yes; then
8093 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8094 else
8095 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8096 fi
e6cc62c6 8097
1e6feb95 8098else
e6cc62c6 8099
1e6feb95
VZ
8100 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8108
e6cc62c6 8109fi;
1e6feb95
VZ
8110
8111 eval "$ac_cv_use_commondlg"
8112 if test "$no_cache" != 1; then
8113 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8114 fi
8115
8116 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8117 echo "$as_me:$LINENO: result: yes" >&5
8118echo "${ECHO_T}yes" >&6
1e6feb95 8119 else
e6cc62c6
VS
8120 echo "$as_me:$LINENO: result: no" >&5
8121echo "${ECHO_T}no" >&6
1e6feb95 8122 fi
e6cc62c6 8123
1e6feb95 8124
5005acfe 8125 enablestring=
e6cc62c6
VS
8126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8127echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8128 no_cache=0
8129 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8130if test "${enable_choicedlg+set}" = set; then
8131 enableval="$enable_choicedlg"
e6cc62c6 8132
1e6feb95
VZ
8133 if test "$enableval" = yes; then
8134 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8135 else
8136 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8137 fi
e6cc62c6 8138
1e6feb95 8139else
e6cc62c6 8140
1e6feb95
VZ
8141 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8142 if test "x$LINE" != x ; then
8143 eval "DEFAULT_$LINE"
8144 else
8145 no_cache=1
8146 fi
8147
8148 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8149
e6cc62c6 8150fi;
1e6feb95
VZ
8151
8152 eval "$ac_cv_use_choicedlg"
8153 if test "$no_cache" != 1; then
8154 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8155 fi
8156
8157 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8158 echo "$as_me:$LINENO: result: yes" >&5
8159echo "${ECHO_T}yes" >&6
1e6feb95 8160 else
e6cc62c6
VS
8161 echo "$as_me:$LINENO: result: no" >&5
8162echo "${ECHO_T}no" >&6
1e6feb95 8163 fi
e6cc62c6 8164
1e6feb95 8165
5005acfe 8166 enablestring=
e6cc62c6
VS
8167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8168echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8169 no_cache=0
8170 # Check whether --enable-coldlg or --disable-coldlg was given.
8171if test "${enable_coldlg+set}" = set; then
8172 enableval="$enable_coldlg"
e6cc62c6 8173
1e6feb95
VZ
8174 if test "$enableval" = yes; then
8175 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8176 else
8177 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8178 fi
e6cc62c6 8179
1e6feb95 8180else
e6cc62c6 8181
1e6feb95
VZ
8182 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8183 if test "x$LINE" != x ; then
8184 eval "DEFAULT_$LINE"
8185 else
8186 no_cache=1
8187 fi
8188
8189 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8190
e6cc62c6 8191fi;
1e6feb95
VZ
8192
8193 eval "$ac_cv_use_coldlg"
8194 if test "$no_cache" != 1; then
8195 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8196 fi
8197
8198 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8199 echo "$as_me:$LINENO: result: yes" >&5
8200echo "${ECHO_T}yes" >&6
1e6feb95 8201 else
e6cc62c6
VS
8202 echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
1e6feb95 8204 fi
e6cc62c6 8205
1e6feb95 8206
5005acfe 8207 enablestring=
e6cc62c6
VS
8208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8209echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8210 no_cache=0
8211 # Check whether --enable-filedlg or --disable-filedlg was given.
8212if test "${enable_filedlg+set}" = set; then
8213 enableval="$enable_filedlg"
e6cc62c6 8214
1e6feb95
VZ
8215 if test "$enableval" = yes; then
8216 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8217 else
8218 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8219 fi
e6cc62c6 8220
1e6feb95 8221else
e6cc62c6 8222
1e6feb95
VZ
8223 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8224 if test "x$LINE" != x ; then
8225 eval "DEFAULT_$LINE"
8226 else
8227 no_cache=1
8228 fi
8229
8230 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8231
e6cc62c6 8232fi;
1e6feb95
VZ
8233
8234 eval "$ac_cv_use_filedlg"
8235 if test "$no_cache" != 1; then
8236 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8237 fi
8238
8239 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8240 echo "$as_me:$LINENO: result: yes" >&5
8241echo "${ECHO_T}yes" >&6
1e6feb95 8242 else
e6cc62c6
VS
8243 echo "$as_me:$LINENO: result: no" >&5
8244echo "${ECHO_T}no" >&6
1e6feb95 8245 fi
e6cc62c6 8246
1e6feb95 8247
5005acfe 8248 enablestring=
e6cc62c6
VS
8249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8250echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8251 no_cache=0
69d27ff7
MB
8252 # Check whether --enable-finddlg or --disable-finddlg was given.
8253if test "${enable_finddlg+set}" = set; then
8254 enableval="$enable_finddlg"
e6cc62c6 8255
8db37e06 8256 if test "$enableval" = yes; then
69d27ff7 8257 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8258 else
69d27ff7 8259 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8260 fi
e6cc62c6 8261
8db37e06 8262else
e6cc62c6 8263
8db37e06
VZ
8264 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8265 if test "x$LINE" != x ; then
8266 eval "DEFAULT_$LINE"
8267 else
8268 no_cache=1
8269 fi
8270
69d27ff7 8271 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8272
e6cc62c6 8273fi;
8db37e06 8274
69d27ff7 8275 eval "$ac_cv_use_finddlg"
8db37e06 8276 if test "$no_cache" != 1; then
69d27ff7 8277 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8278 fi
8279
8280 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8281 echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
8db37e06 8283 else
e6cc62c6
VS
8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6
8db37e06 8286 fi
e6cc62c6 8287
8db37e06 8288
5005acfe 8289 enablestring=
e6cc62c6
VS
8290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8291echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8292 no_cache=0
8293 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8294if test "${enable_fontdlg+set}" = set; then
8295 enableval="$enable_fontdlg"
e6cc62c6 8296
1e6feb95
VZ
8297 if test "$enableval" = yes; then
8298 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8299 else
8300 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8301 fi
e6cc62c6 8302
1e6feb95 8303else
e6cc62c6 8304
1e6feb95
VZ
8305 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8313
e6cc62c6 8314fi;
1e6feb95
VZ
8315
8316 eval "$ac_cv_use_fontdlg"
8317 if test "$no_cache" != 1; then
8318 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8319 fi
8320
8321 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8322 echo "$as_me:$LINENO: result: yes" >&5
8323echo "${ECHO_T}yes" >&6
1e6feb95 8324 else
e6cc62c6
VS
8325 echo "$as_me:$LINENO: result: no" >&5
8326echo "${ECHO_T}no" >&6
1e6feb95 8327 fi
e6cc62c6 8328
1e6feb95 8329
5005acfe 8330 enablestring=
e6cc62c6
VS
8331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8332echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8333 no_cache=0
8334 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8335if test "${enable_dirdlg+set}" = set; then
8336 enableval="$enable_dirdlg"
e6cc62c6 8337
1e6feb95
VZ
8338 if test "$enableval" = yes; then
8339 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8340 else
8341 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8342 fi
e6cc62c6 8343
1e6feb95 8344else
e6cc62c6 8345
1e6feb95
VZ
8346 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8347 if test "x$LINE" != x ; then
8348 eval "DEFAULT_$LINE"
8349 else
8350 no_cache=1
8351 fi
8352
8353 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8354
e6cc62c6 8355fi;
1e6feb95
VZ
8356
8357 eval "$ac_cv_use_dirdlg"
10f2d63a 8358 if test "$no_cache" != 1; then
1e6feb95 8359 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8360 fi
8361
1e6feb95 8362 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8363 echo "$as_me:$LINENO: result: yes" >&5
8364echo "${ECHO_T}yes" >&6
10f2d63a 8365 else
e6cc62c6
VS
8366 echo "$as_me:$LINENO: result: no" >&5
8367echo "${ECHO_T}no" >&6
10f2d63a 8368 fi
e6cc62c6 8369
698dcdb6 8370
5005acfe 8371 enablestring=
e6cc62c6
VS
8372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8373echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8374 no_cache=0
1e6feb95
VZ
8375 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8376if test "${enable_msgdlg+set}" = set; then
8377 enableval="$enable_msgdlg"
e6cc62c6 8378
10f2d63a 8379 if test "$enableval" = yes; then
1e6feb95 8380 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8381 else
1e6feb95 8382 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8383 fi
e6cc62c6 8384
10f2d63a 8385else
e6cc62c6 8386
1e6feb95 8387 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
1e6feb95 8394 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8395
e6cc62c6 8396fi;
10f2d63a 8397
1e6feb95 8398 eval "$ac_cv_use_msgdlg"
10f2d63a 8399 if test "$no_cache" != 1; then
1e6feb95 8400 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8401 fi
8402
1e6feb95 8403 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8404 echo "$as_me:$LINENO: result: yes" >&5
8405echo "${ECHO_T}yes" >&6
10f2d63a 8406 else
e6cc62c6
VS
8407 echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6
10f2d63a 8409 fi
e6cc62c6 8410
10f2d63a 8411
5005acfe 8412 enablestring=
e6cc62c6
VS
8413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8414echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8415 no_cache=0
1e6feb95
VZ
8416 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8417if test "${enable_numberdlg+set}" = set; then
8418 enableval="$enable_numberdlg"
e6cc62c6 8419
10f2d63a 8420 if test "$enableval" = yes; then
1e6feb95 8421 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8422 else
1e6feb95 8423 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8424 fi
e6cc62c6 8425
10f2d63a 8426else
e6cc62c6 8427
1e6feb95 8428 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8429 if test "x$LINE" != x ; then
8430 eval "DEFAULT_$LINE"
8431 else
8432 no_cache=1
8433 fi
8434
1e6feb95 8435 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8436
e6cc62c6 8437fi;
10f2d63a 8438
1e6feb95 8439 eval "$ac_cv_use_numberdlg"
10f2d63a 8440 if test "$no_cache" != 1; then
1e6feb95 8441 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8442 fi
8443
1e6feb95 8444 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8445 echo "$as_me:$LINENO: result: yes" >&5
8446echo "${ECHO_T}yes" >&6
10f2d63a 8447 else
e6cc62c6
VS
8448 echo "$as_me:$LINENO: result: no" >&5
8449echo "${ECHO_T}no" >&6
10f2d63a 8450 fi
e6cc62c6 8451
10f2d63a 8452
5005acfe 8453 enablestring=
e6cc62c6
VS
8454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8455echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8456 no_cache=0
8457 # Check whether --enable-splash or --disable-splash was given.
8458if test "${enable_splash+set}" = set; then
8459 enableval="$enable_splash"
e6cc62c6 8460
cbca9943
VZ
8461 if test "$enableval" = yes; then
8462 ac_cv_use_splash='wxUSE_SPLASH=yes'
8463 else
8464 ac_cv_use_splash='wxUSE_SPLASH=no'
8465 fi
e6cc62c6 8466
cbca9943 8467else
e6cc62c6 8468
cbca9943
VZ
8469 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8470 if test "x$LINE" != x ; then
8471 eval "DEFAULT_$LINE"
8472 else
8473 no_cache=1
8474 fi
8475
8476 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8477
e6cc62c6 8478fi;
cbca9943
VZ
8479
8480 eval "$ac_cv_use_splash"
8481 if test "$no_cache" != 1; then
8482 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8483 fi
8484
8485 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8486 echo "$as_me:$LINENO: result: yes" >&5
8487echo "${ECHO_T}yes" >&6
cbca9943 8488 else
e6cc62c6
VS
8489 echo "$as_me:$LINENO: result: no" >&5
8490echo "${ECHO_T}no" >&6
cbca9943 8491 fi
e6cc62c6 8492
cbca9943 8493
5005acfe 8494 enablestring=
e6cc62c6
VS
8495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8496echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8497 no_cache=0
8498 # Check whether --enable-textdlg or --disable-textdlg was given.
8499if test "${enable_textdlg+set}" = set; then
8500 enableval="$enable_textdlg"
e6cc62c6 8501
10f2d63a
VZ
8502 if test "$enableval" = yes; then
8503 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8504 else
8505 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8506 fi
e6cc62c6 8507
10f2d63a 8508else
e6cc62c6 8509
10f2d63a
VZ
8510 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8518
e6cc62c6 8519fi;
10f2d63a
VZ
8520
8521 eval "$ac_cv_use_textdlg"
8522 if test "$no_cache" != 1; then
8523 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8524 fi
8525
8526 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8527 echo "$as_me:$LINENO: result: yes" >&5
8528echo "${ECHO_T}yes" >&6
10f2d63a 8529 else
e6cc62c6
VS
8530 echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6
10f2d63a 8532 fi
e6cc62c6 8533
10f2d63a 8534
5005acfe 8535 enablestring=
e6cc62c6
VS
8536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8537echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8538 no_cache=0
8539 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8540if test "${enable_tipdlg+set}" = set; then
8541 enableval="$enable_tipdlg"
e6cc62c6 8542
10f2d63a
VZ
8543 if test "$enableval" = yes; then
8544 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8545 else
8546 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8547 fi
e6cc62c6 8548
10f2d63a 8549else
e6cc62c6 8550
10f2d63a
VZ
8551 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8552 if test "x$LINE" != x ; then
8553 eval "DEFAULT_$LINE"
8554 else
8555 no_cache=1
8556 fi
8557
8558 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8559
e6cc62c6 8560fi;
10f2d63a
VZ
8561
8562 eval "$ac_cv_use_tipdlg"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8568 echo "$as_me:$LINENO: result: yes" >&5
8569echo "${ECHO_T}yes" >&6
10f2d63a 8570 else
e6cc62c6
VS
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
10f2d63a 8573 fi
e6cc62c6 8574
10f2d63a 8575
5005acfe 8576 enablestring=
e6cc62c6
VS
8577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8578echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8579 no_cache=0
8580 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8581if test "${enable_progressdlg+set}" = set; then
8582 enableval="$enable_progressdlg"
e6cc62c6 8583
10f2d63a
VZ
8584 if test "$enableval" = yes; then
8585 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8586 else
8587 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8588 fi
e6cc62c6 8589
10f2d63a 8590else
e6cc62c6 8591
10f2d63a
VZ
8592 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8593 if test "x$LINE" != x ; then
8594 eval "DEFAULT_$LINE"
8595 else
8596 no_cache=1
8597 fi
8598
8599 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8600
e6cc62c6 8601fi;
10f2d63a
VZ
8602
8603 eval "$ac_cv_use_progressdlg"
8604 if test "$no_cache" != 1; then
8605 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8606 fi
8607
8608 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
10f2d63a 8611 else
e6cc62c6
VS
8612 echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6
10f2d63a 8614 fi
e6cc62c6 8615
10f2d63a 8616
5005acfe 8617 enablestring=
e6cc62c6
VS
8618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8619echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8620 no_cache=0
8621 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8622if test "${enable_wizarddlg+set}" = set; then
8623 enableval="$enable_wizarddlg"
e6cc62c6 8624
b1f5d087
VZ
8625 if test "$enableval" = yes; then
8626 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8627 else
8628 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8629 fi
e6cc62c6 8630
b1f5d087 8631else
e6cc62c6 8632
b1f5d087
VZ
8633 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8634 if test "x$LINE" != x ; then
8635 eval "DEFAULT_$LINE"
8636 else
8637 no_cache=1
8638 fi
8639
8640 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8641
e6cc62c6 8642fi;
b1f5d087
VZ
8643
8644 eval "$ac_cv_use_wizarddlg"
8645 if test "$no_cache" != 1; then
8646 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8647 fi
8648
8649 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8650 echo "$as_me:$LINENO: result: yes" >&5
8651echo "${ECHO_T}yes" >&6
b1f5d087 8652 else
e6cc62c6
VS
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
b1f5d087 8655 fi
e6cc62c6 8656
8284b0c5
MB
8657
8658
52127426 8659
5005acfe 8660 enablestring=
e6cc62c6
VS
8661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8662echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8663 no_cache=0
8664 # Check whether --enable-menus or --disable-menus was given.
8665if test "${enable_menus+set}" = set; then
8666 enableval="$enable_menus"
e6cc62c6 8667
1e6feb95
VZ
8668 if test "$enableval" = yes; then
8669 ac_cv_use_menus='wxUSE_MENUS=yes'
8670 else
8671 ac_cv_use_menus='wxUSE_MENUS=no'
8672 fi
e6cc62c6 8673
1e6feb95 8674else
e6cc62c6 8675
1e6feb95
VZ
8676 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8677 if test "x$LINE" != x ; then
8678 eval "DEFAULT_$LINE"
8679 else
8680 no_cache=1
8681 fi
8682
8683 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8684
e6cc62c6 8685fi;
1e6feb95
VZ
8686
8687 eval "$ac_cv_use_menus"
8688 if test "$no_cache" != 1; then
8689 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8690 fi
8691
8692 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8693 echo "$as_me:$LINENO: result: yes" >&5
8694echo "${ECHO_T}yes" >&6
1e6feb95 8695 else
e6cc62c6
VS
8696 echo "$as_me:$LINENO: result: no" >&5
8697echo "${ECHO_T}no" >&6
1e6feb95 8698 fi
e6cc62c6 8699
1e6feb95 8700
5005acfe 8701 enablestring=
e6cc62c6
VS
8702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8703echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8704 no_cache=0
8705 # Check whether --enable-miniframe or --disable-miniframe was given.
8706if test "${enable_miniframe+set}" = set; then
8707 enableval="$enable_miniframe"
e6cc62c6 8708
10f2d63a
VZ
8709 if test "$enableval" = yes; then
8710 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8711 else
8712 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8713 fi
e6cc62c6 8714
10f2d63a 8715else
e6cc62c6 8716
10f2d63a
VZ
8717 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8718 if test "x$LINE" != x ; then
8719 eval "DEFAULT_$LINE"
8720 else
8721 no_cache=1
8722 fi
8723
8724 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8725
e6cc62c6 8726fi;
10f2d63a
VZ
8727
8728 eval "$ac_cv_use_miniframe"
8729 if test "$no_cache" != 1; then
8730 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8731 fi
8732
8733 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8734 echo "$as_me:$LINENO: result: yes" >&5
8735echo "${ECHO_T}yes" >&6
10f2d63a 8736 else
e6cc62c6
VS
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
10f2d63a 8739 fi
e6cc62c6 8740
10f2d63a 8741
5005acfe 8742 enablestring=
e6cc62c6
VS
8743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8744echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8745 no_cache=0
8746 # Check whether --enable-tooltips or --disable-tooltips was given.
8747if test "${enable_tooltips+set}" = set; then
8748 enableval="$enable_tooltips"
e6cc62c6 8749
10f2d63a
VZ
8750 if test "$enableval" = yes; then
8751 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8752 else
8753 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8754 fi
e6cc62c6 8755
10f2d63a 8756else
e6cc62c6 8757
10f2d63a
VZ
8758 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8759 if test "x$LINE" != x ; then
8760 eval "DEFAULT_$LINE"
8761 else
8762 no_cache=1
8763 fi
8764
8765 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8766
e6cc62c6 8767fi;
10f2d63a
VZ
8768
8769 eval "$ac_cv_use_tooltips"
8770 if test "$no_cache" != 1; then
8771 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8772 fi
8773
8774 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8775 echo "$as_me:$LINENO: result: yes" >&5
8776echo "${ECHO_T}yes" >&6
10f2d63a 8777 else
e6cc62c6
VS
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
10f2d63a 8780 fi
e6cc62c6 8781
10f2d63a 8782
5005acfe 8783 enablestring=
e6cc62c6
VS
8784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8785echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8786 no_cache=0
8787 # Check whether --enable-splines or --disable-splines was given.
8788if test "${enable_splines+set}" = set; then
8789 enableval="$enable_splines"
e6cc62c6 8790
10f2d63a
VZ
8791 if test "$enableval" = yes; then
8792 ac_cv_use_splines='wxUSE_SPLINES=yes'
8793 else
8794 ac_cv_use_splines='wxUSE_SPLINES=no'
8795 fi
e6cc62c6 8796
10f2d63a 8797else
e6cc62c6 8798
10f2d63a
VZ
8799 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8800 if test "x$LINE" != x ; then
8801 eval "DEFAULT_$LINE"
8802 else
8803 no_cache=1
8804 fi
8805
8806 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8807
e6cc62c6 8808fi;
10f2d63a
VZ
8809
8810 eval "$ac_cv_use_splines"
8811 if test "$no_cache" != 1; then
8812 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8813 fi
8814
8815 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8816 echo "$as_me:$LINENO: result: yes" >&5
8817echo "${ECHO_T}yes" >&6
10f2d63a 8818 else
e6cc62c6
VS
8819 echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6
10f2d63a 8821 fi
e6cc62c6 8822
10f2d63a 8823
5005acfe 8824 enablestring=
e6cc62c6
VS
8825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8826echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8827 no_cache=0
8828 # Check whether --enable-validators or --disable-validators was given.
8829if test "${enable_validators+set}" = set; then
8830 enableval="$enable_validators"
e6cc62c6 8831
10f2d63a
VZ
8832 if test "$enableval" = yes; then
8833 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8834 else
8835 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8836 fi
e6cc62c6 8837
10f2d63a 8838else
e6cc62c6 8839
10f2d63a
VZ
8840 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8841 if test "x$LINE" != x ; then
8842 eval "DEFAULT_$LINE"
8843 else
8844 no_cache=1
8845 fi
8846
8847 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8848
e6cc62c6 8849fi;
10f2d63a
VZ
8850
8851 eval "$ac_cv_use_validators"
8852 if test "$no_cache" != 1; then
8853 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8854 fi
8855
8856 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8857 echo "$as_me:$LINENO: result: yes" >&5
8858echo "${ECHO_T}yes" >&6
10f2d63a 8859 else
e6cc62c6
VS
8860 echo "$as_me:$LINENO: result: no" >&5
8861echo "${ECHO_T}no" >&6
10f2d63a 8862 fi
e6cc62c6 8863
10f2d63a 8864
5005acfe 8865 enablestring=
e6cc62c6
VS
8866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8867echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8868 no_cache=0
8869 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8870if test "${enable_busyinfo+set}" = set; then
8871 enableval="$enable_busyinfo"
e6cc62c6 8872
10f2d63a
VZ
8873 if test "$enableval" = yes; then
8874 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8875 else
8876 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8877 fi
e6cc62c6 8878
10f2d63a 8879else
e6cc62c6 8880
10f2d63a
VZ
8881 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8882 if test "x$LINE" != x ; then
8883 eval "DEFAULT_$LINE"
8884 else
8885 no_cache=1
8886 fi
8887
8888 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8889
e6cc62c6 8890fi;
10f2d63a
VZ
8891
8892 eval "$ac_cv_use_busyinfo"
8893 if test "$no_cache" != 1; then
8894 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8895 fi
8896
8897 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8898 echo "$as_me:$LINENO: result: yes" >&5
8899echo "${ECHO_T}yes" >&6
10f2d63a 8900 else
e6cc62c6
VS
8901 echo "$as_me:$LINENO: result: no" >&5
8902echo "${ECHO_T}no" >&6
10f2d63a 8903 fi
e6cc62c6 8904
10f2d63a 8905
5005acfe 8906 enablestring=
e6cc62c6
VS
8907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8908echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8909 no_cache=0
8910 # Check whether --enable-joystick or --disable-joystick was given.
8911if test "${enable_joystick+set}" = set; then
8912 enableval="$enable_joystick"
e6cc62c6 8913
f6bcfd97
BP
8914 if test "$enableval" = yes; then
8915 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8916 else
8917 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8918 fi
e6cc62c6 8919
f6bcfd97 8920else
e6cc62c6 8921
f6bcfd97
BP
8922 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8923 if test "x$LINE" != x ; then
8924 eval "DEFAULT_$LINE"
8925 else
8926 no_cache=1
8927 fi
8928
8929 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8930
e6cc62c6 8931fi;
f6bcfd97
BP
8932
8933 eval "$ac_cv_use_joystick"
8934 if test "$no_cache" != 1; then
8935 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8936 fi
8937
8938 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8939 echo "$as_me:$LINENO: result: yes" >&5
8940echo "${ECHO_T}yes" >&6
f6bcfd97 8941 else
e6cc62c6
VS
8942 echo "$as_me:$LINENO: result: no" >&5
8943echo "${ECHO_T}no" >&6
f6bcfd97 8944 fi
e6cc62c6 8945
698dcdb6 8946
5005acfe 8947 enablestring=
e6cc62c6
VS
8948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8949echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8950 no_cache=0
8951 # Check whether --enable-metafile or --disable-metafile was given.
8952if test "${enable_metafile+set}" = set; then
8953 enableval="$enable_metafile"
e6cc62c6 8954
1e6feb95
VZ
8955 if test "$enableval" = yes; then
8956 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8957 else
8958 ac_cv_use_metafile='wxUSE_METAFILE=no'
8959 fi
e6cc62c6 8960
1e6feb95 8961else
e6cc62c6 8962
1e6feb95
VZ
8963 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8964 if test "x$LINE" != x ; then
8965 eval "DEFAULT_$LINE"
8966 else
8967 no_cache=1
8968 fi
8969
8970 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8971
e6cc62c6 8972fi;
1e6feb95
VZ
8973
8974 eval "$ac_cv_use_metafile"
8975 if test "$no_cache" != 1; then
8976 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8977 fi
8978
8979 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
8980 echo "$as_me:$LINENO: result: yes" >&5
8981echo "${ECHO_T}yes" >&6
1e6feb95 8982 else
e6cc62c6
VS
8983 echo "$as_me:$LINENO: result: no" >&5
8984echo "${ECHO_T}no" >&6
1e6feb95 8985 fi
e6cc62c6 8986
1e6feb95 8987
5005acfe 8988 enablestring=
e6cc62c6
VS
8989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
8990echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
8991 no_cache=0
8992 # Check whether --enable-dragimage or --disable-dragimage was given.
8993if test "${enable_dragimage+set}" = set; then
8994 enableval="$enable_dragimage"
e6cc62c6 8995
24fd6d87
VZ
8996 if test "$enableval" = yes; then
8997 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8998 else
8999 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9000 fi
e6cc62c6 9001
24fd6d87 9002else
e6cc62c6 9003
24fd6d87
VZ
9004 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9005 if test "x$LINE" != x ; then
9006 eval "DEFAULT_$LINE"
9007 else
9008 no_cache=1
9009 fi
9010
9011 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9012
e6cc62c6 9013fi;
24fd6d87
VZ
9014
9015 eval "$ac_cv_use_dragimage"
9016 if test "$no_cache" != 1; then
9017 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9018 fi
9019
9020 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9021 echo "$as_me:$LINENO: result: yes" >&5
9022echo "${ECHO_T}yes" >&6
24fd6d87 9023 else
e6cc62c6
VS
9024 echo "$as_me:$LINENO: result: no" >&5
9025echo "${ECHO_T}no" >&6
24fd6d87 9026 fi
e6cc62c6 9027
52127426 9028
7bb2947d 9029 enablestring=
e6cc62c6
VS
9030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9031echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9032 no_cache=0
9033 # Check whether --enable-accessibility or --disable-accessibility was given.
9034if test "${enable_accessibility+set}" = set; then
9035 enableval="$enable_accessibility"
e6cc62c6 9036
7bb2947d
MB
9037 if test "$enableval" = yes; then
9038 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9039 else
9040 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9041 fi
e6cc62c6 9042
7bb2947d 9043else
e6cc62c6 9044
7bb2947d
MB
9045 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9046 if test "x$LINE" != x ; then
9047 eval "DEFAULT_$LINE"
9048 else
9049 no_cache=1
9050 fi
9051
9052 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9053
e6cc62c6 9054fi;
7bb2947d
MB
9055
9056 eval "$ac_cv_use_accessibility"
9057 if test "$no_cache" != 1; then
9058 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9059 fi
9060
9061 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9062 echo "$as_me:$LINENO: result: yes" >&5
9063echo "${ECHO_T}yes" >&6
7bb2947d 9064 else
e6cc62c6
VS
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
7bb2947d 9067 fi
e6cc62c6 9068
7bb2947d 9069
8284b0c5
MB
9070
9071
5005acfe 9072 enablestring=
e6cc62c6
VS
9073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9074echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9075 no_cache=0
9076 # Check whether --enable-palette or --disable-palette was given.
9077if test "${enable_palette+set}" = set; then
9078 enableval="$enable_palette"
e6cc62c6 9079
edae8572
VZ
9080 if test "$enableval" = yes; then
9081 ac_cv_use_palette='wxUSE_PALETTE=yes'
9082 else
9083 ac_cv_use_palette='wxUSE_PALETTE=no'
9084 fi
e6cc62c6 9085
edae8572 9086else
e6cc62c6 9087
edae8572
VZ
9088 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9089 if test "x$LINE" != x ; then
9090 eval "DEFAULT_$LINE"
9091 else
9092 no_cache=1
9093 fi
9094
9095 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9096
e6cc62c6 9097fi;
edae8572
VZ
9098
9099 eval "$ac_cv_use_palette"
9100 if test "$no_cache" != 1; then
9101 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9102 fi
9103
9104 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9105 echo "$as_me:$LINENO: result: yes" >&5
9106echo "${ECHO_T}yes" >&6
edae8572 9107 else
e6cc62c6
VS
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
edae8572 9110 fi
e6cc62c6 9111
edae8572 9112
5005acfe 9113 enablestring=
e6cc62c6
VS
9114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9115echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9116 no_cache=0
9117 # Check whether --enable-image or --disable-image was given.
9118if test "${enable_image+set}" = set; then
9119 enableval="$enable_image"
e6cc62c6 9120
0046ff7c
VS
9121 if test "$enableval" = yes; then
9122 ac_cv_use_image='wxUSE_IMAGE=yes'
9123 else
9124 ac_cv_use_image='wxUSE_IMAGE=no'
9125 fi
e6cc62c6 9126
0046ff7c 9127else
e6cc62c6 9128
0046ff7c
VS
9129 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9130 if test "x$LINE" != x ; then
9131 eval "DEFAULT_$LINE"
9132 else
9133 no_cache=1
9134 fi
9135
9136 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9137
e6cc62c6 9138fi;
0046ff7c
VS
9139
9140 eval "$ac_cv_use_image"
9141 if test "$no_cache" != 1; then
9142 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9143 fi
9144
9145 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9146 echo "$as_me:$LINENO: result: yes" >&5
9147echo "${ECHO_T}yes" >&6
0046ff7c 9148 else
e6cc62c6
VS
9149 echo "$as_me:$LINENO: result: no" >&5
9150echo "${ECHO_T}no" >&6
0046ff7c 9151 fi
e6cc62c6 9152
0046ff7c 9153
5005acfe 9154 enablestring=
e6cc62c6
VS
9155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9156echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9157 no_cache=0
9158 # Check whether --enable-gif or --disable-gif was given.
9159if test "${enable_gif+set}" = set; then
9160 enableval="$enable_gif"
e6cc62c6 9161
10f2d63a
VZ
9162 if test "$enableval" = yes; then
9163 ac_cv_use_gif='wxUSE_GIF=yes'
9164 else
9165 ac_cv_use_gif='wxUSE_GIF=no'
9166 fi
e6cc62c6 9167
10f2d63a 9168else
e6cc62c6 9169
10f2d63a
VZ
9170 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9171 if test "x$LINE" != x ; then
9172 eval "DEFAULT_$LINE"
9173 else
9174 no_cache=1
9175 fi
9176
9177 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9178
e6cc62c6 9179fi;
10f2d63a
VZ
9180
9181 eval "$ac_cv_use_gif"
9182 if test "$no_cache" != 1; then
9183 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9184 fi
9185
9186 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9187 echo "$as_me:$LINENO: result: yes" >&5
9188echo "${ECHO_T}yes" >&6
10f2d63a 9189 else
e6cc62c6
VS
9190 echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6
10f2d63a 9192 fi
e6cc62c6 9193
10f2d63a 9194
5005acfe 9195 enablestring=
e6cc62c6
VS
9196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9197echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9198 no_cache=0
9199 # Check whether --enable-pcx or --disable-pcx was given.
9200if test "${enable_pcx+set}" = set; then
9201 enableval="$enable_pcx"
e6cc62c6 9202
10f2d63a
VZ
9203 if test "$enableval" = yes; then
9204 ac_cv_use_pcx='wxUSE_PCX=yes'
9205 else
9206 ac_cv_use_pcx='wxUSE_PCX=no'
9207 fi
e6cc62c6 9208
10f2d63a 9209else
e6cc62c6 9210
10f2d63a
VZ
9211 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9212 if test "x$LINE" != x ; then
9213 eval "DEFAULT_$LINE"
9214 else
9215 no_cache=1
9216 fi
9217
9218 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9219
e6cc62c6 9220fi;
10f2d63a
VZ
9221
9222 eval "$ac_cv_use_pcx"
9223 if test "$no_cache" != 1; then
9224 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9225 fi
9226
9227 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9228 echo "$as_me:$LINENO: result: yes" >&5
9229echo "${ECHO_T}yes" >&6
10f2d63a 9230 else
e6cc62c6
VS
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
10f2d63a 9233 fi
e6cc62c6 9234
10f2d63a 9235
5005acfe 9236 enablestring=
e6cc62c6
VS
9237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9238echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9239 no_cache=0
9240 # Check whether --enable-iff or --disable-iff was given.
9241if test "${enable_iff+set}" = set; then
9242 enableval="$enable_iff"
e6cc62c6 9243
4b6b4dfc
RR
9244 if test "$enableval" = yes; then
9245 ac_cv_use_iff='wxUSE_IFF=yes'
9246 else
9247 ac_cv_use_iff='wxUSE_IFF=no'
9248 fi
e6cc62c6 9249
4b6b4dfc 9250else
e6cc62c6 9251
4b6b4dfc
RR
9252 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9253 if test "x$LINE" != x ; then
9254 eval "DEFAULT_$LINE"
9255 else
9256 no_cache=1
9257 fi
9258
9259 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9260
e6cc62c6 9261fi;
4b6b4dfc
RR
9262
9263 eval "$ac_cv_use_iff"
9264 if test "$no_cache" != 1; then
9265 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9266 fi
9267
9268 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9269 echo "$as_me:$LINENO: result: yes" >&5
9270echo "${ECHO_T}yes" >&6
4b6b4dfc 9271 else
e6cc62c6
VS
9272 echo "$as_me:$LINENO: result: no" >&5
9273echo "${ECHO_T}no" >&6
4b6b4dfc 9274 fi
e6cc62c6 9275
4b6b4dfc 9276
5005acfe 9277 enablestring=
e6cc62c6
VS
9278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9279echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9280 no_cache=0
9281 # Check whether --enable-pnm or --disable-pnm was given.
9282if test "${enable_pnm+set}" = set; then
9283 enableval="$enable_pnm"
e6cc62c6 9284
10f2d63a
VZ
9285 if test "$enableval" = yes; then
9286 ac_cv_use_pnm='wxUSE_PNM=yes'
9287 else
9288 ac_cv_use_pnm='wxUSE_PNM=no'
9289 fi
e6cc62c6 9290
10f2d63a 9291else
e6cc62c6 9292
10f2d63a
VZ
9293 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9294 if test "x$LINE" != x ; then
9295 eval "DEFAULT_$LINE"
9296 else
9297 no_cache=1
9298 fi
9299
9300 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9301
e6cc62c6 9302fi;
10f2d63a
VZ
9303
9304 eval "$ac_cv_use_pnm"
9305 if test "$no_cache" != 1; then
9306 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9307 fi
9308
9309 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9310 echo "$as_me:$LINENO: result: yes" >&5
9311echo "${ECHO_T}yes" >&6
10f2d63a 9312 else
e6cc62c6
VS
9313 echo "$as_me:$LINENO: result: no" >&5
9314echo "${ECHO_T}no" >&6
10f2d63a 9315 fi
e6cc62c6 9316
10f2d63a 9317
5005acfe 9318 enablestring=
e6cc62c6
VS
9319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9320echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9321 no_cache=0
69d27ff7
MB
9322 # Check whether --enable-xpm or --disable-xpm was given.
9323if test "${enable_xpm+set}" = set; then
9324 enableval="$enable_xpm"
e6cc62c6 9325
0046ff7c 9326 if test "$enableval" = yes; then
69d27ff7 9327 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9328 else
69d27ff7 9329 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9330 fi
e6cc62c6 9331
0046ff7c 9332else
e6cc62c6 9333
0046ff7c
VS
9334 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9335 if test "x$LINE" != x ; then
9336 eval "DEFAULT_$LINE"
9337 else
9338 no_cache=1
9339 fi
9340
69d27ff7 9341 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9342
e6cc62c6 9343fi;
0046ff7c 9344
69d27ff7 9345 eval "$ac_cv_use_xpm"
0046ff7c 9346 if test "$no_cache" != 1; then
69d27ff7 9347 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9348 fi
9349
9350 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9351 echo "$as_me:$LINENO: result: yes" >&5
9352echo "${ECHO_T}yes" >&6
0046ff7c 9353 else
e6cc62c6
VS
9354 echo "$as_me:$LINENO: result: no" >&5
9355echo "${ECHO_T}no" >&6
0046ff7c 9356 fi
e6cc62c6 9357
0046ff7c 9358
5005acfe 9359 enablestring=
e6cc62c6
VS
9360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9361echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9362 no_cache=0
c7206e64
VS
9363 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9364if test "${enable_ico_cur+set}" = set; then
9365 enableval="$enable_ico_cur"
e6cc62c6 9366
658974ae 9367 if test "$enableval" = yes; then
c7206e64 9368 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9369 else
c7206e64 9370 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9371 fi
e6cc62c6 9372
658974ae 9373else
e6cc62c6 9374
658974ae
VS
9375 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9376 if test "x$LINE" != x ; then
9377 eval "DEFAULT_$LINE"
9378 else
9379 no_cache=1
9380 fi
9381
c7206e64 9382 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9383
e6cc62c6 9384fi;
658974ae 9385
c7206e64 9386 eval "$ac_cv_use_ico_cur"
658974ae 9387 if test "$no_cache" != 1; then
c7206e64 9388 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9389 fi
9390
9391 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9392 echo "$as_me:$LINENO: result: yes" >&5
9393echo "${ECHO_T}yes" >&6
658974ae 9394 else
e6cc62c6
VS
9395 echo "$as_me:$LINENO: result: no" >&5
9396echo "${ECHO_T}no" >&6
658974ae 9397 fi
e6cc62c6 9398
658974ae 9399
b12915c1
VZ
9400fi
9401
d558c907
VS
9402case "${host}" in
9403 *-pc-os2_emx | *-pc-os2-emx )
6969f178
MB
9404 PATH_IFS=';'
9405 LEX_STEM="lexyy"
d558c907
VS
9406 ;;
9407 *)
9408 PATH_IFS=':'
9409 LEX_STEM="lex.yy"
9410 ;;
9411esac
9412
8284b0c5
MB
9413
9414
10f2d63a
VZ
9415 echo "saving argument cache $wx_arg_cache_file"
9416 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9417
8284b0c5 9418
e6cc62c6
VS
9419
9420echo "$as_me:$LINENO: checking for toolkit" >&5
9421echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9422
9423# In Wine, we need to default to MSW, not GTK or MOTIF
9424if test "$wxUSE_WINE" = "yes"; then
9425 DEFAULT_DEFAULT_wxUSE_GTK=0
9426 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9427 DEFAULT_DEFAULT_wxUSE_MSW=1
9428fi
10f2d63a
VZ
9429
9430if test "$wxUSE_GUI" = "yes"; then
9431
3a922bb4 9432 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9433 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9434echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9435 { (exit 1); exit 1; }; }
3a922bb4 9436 fi
b12915c1 9437
3a922bb4
RL
9438 if test "$TOOLKIT_GIVEN" = 1; then
9439 for toolkit in `echo $ALL_TOOLKITS`; do
9440 var=wxUSE_$toolkit
9441 eval "value=\$${var}"
9442 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9443 done
10f2d63a 9444 else
3a922bb4
RL
9445 for toolkit in `echo $ALL_TOOLKITS`; do
9446 if test "$has_toolkit_in_cache" != 1; then
9447 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9448 else
9449 var=DEFAULT_wxUSE_$toolkit
9450 fi
9451 eval "wxUSE_$toolkit=\$${var}"
9452 done
10f2d63a 9453 fi
10f2d63a 9454
ac0c4cc3
DE
9455 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9456 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9457 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9458
d558c907 9459 case "${host}" in
6fa882bd 9460 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9461 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9462 esac
10f2d63a 9463
3a922bb4
RL
9464 case "$NUM_TOOLKITS" in
9465 1)
9466 ;;
9467 0)
e6cc62c6
VS
9468 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9469echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9470 { (exit 1); exit 1; }; }
3a922bb4
RL
9471 ;;
9472 *)
e6cc62c6
VS
9473 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9474echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9475 { (exit 1); exit 1; }; }
3a922bb4 9476 esac
10f2d63a 9477
3a922bb4
RL
9478 for toolkit in `echo $ALL_TOOLKITS`; do
9479 var=wxUSE_$toolkit
9480 eval "value=\$${var}"
9481 if test "x$value" != x; then
9482 cache_var=CACHE_$toolkit
9483 eval "cache=\$${cache_var}"
9484 if test "$cache" = 1; then
9485 echo "$var=$value" >> ${wx_arg_cache_file}
9486 fi
9487 if test "$value" = 1; then
9488 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9489 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9490echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9491 fi
9492 fi
9493 done
10f2d63a 9494else
e6cc62c6
VS
9495 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9496echo "${ECHO_T}base ($host_alias hosted) only" >&6
10f2d63a
VZ
9497fi
9498
43d99b6d
VS
9499wants_win32=0
9500doesnt_want_win32=0
17234b26
MB
9501case "${host}" in
9502 *-*-cygwin*)
9503 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9504 wants_win32=1
9505 else
9506 doesnt_want_win32=1
17234b26
MB
9507 fi
9508 ;;
9509 *-*-mingw*)
43d99b6d 9510 wants_win32=1
17234b26
MB
9511 ;;
9512esac
9513
89e6bf6d
VZ
9514if test "$wxUSE_WINE" = "yes"; then
9515 wants_win32=1
9516 CC=winegcc
9517 CXX=wineg++
9518 RESCOMP=wrc
9519fi
9520
43d99b6d 9521if test "$wants_win32" = 1 ; then
17234b26
MB
9522 USE_UNIX=0
9523 USE_WIN32=1
e6cc62c6 9524 cat >>confdefs.h <<\_ACEOF
17234b26 9525#define __WIN32__ 1
e6cc62c6 9526_ACEOF
17234b26 9527
e6cc62c6 9528 cat >>confdefs.h <<\_ACEOF
17234b26 9529#define __WIN95__ 1
e6cc62c6 9530_ACEOF
17234b26 9531
e6cc62c6 9532 cat >>confdefs.h <<\_ACEOF
17234b26 9533#define __WINDOWS__ 1
e6cc62c6 9534_ACEOF
17234b26 9535
e6cc62c6 9536 cat >>confdefs.h <<\_ACEOF
17234b26 9537#define __GNUWIN32__ 1
e6cc62c6 9538_ACEOF
17234b26 9539
e6cc62c6 9540 cat >>confdefs.h <<\_ACEOF
17234b26 9541#define STRICT 1
e6cc62c6 9542_ACEOF
17234b26 9543
e6cc62c6 9544 cat >>confdefs.h <<\_ACEOF
17234b26 9545#define WINVER 0x0400
e6cc62c6 9546_ACEOF
17234b26 9547
43d99b6d
VS
9548fi
9549if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9550 USE_UNIX=1
9551 USE_WIN32=0
9552fi
9553
9554if test "$USE_UNIX" = 1 ; then
9555 wxUSE_UNIX=yes
e6cc62c6 9556 cat >>confdefs.h <<\_ACEOF
17234b26 9557#define __UNIX__ 1
e6cc62c6 9558_ACEOF
17234b26
MB
9559
9560fi
9561
8284b0c5 9562
e6cc62c6 9563cat >confcache <<\_ACEOF
10f2d63a
VZ
9564# This file is a shell script that caches the results of configure
9565# tests run on this system so they can be shared between configure
e6cc62c6
VS
9566# scripts and configure runs, see configure's option --config-cache.
9567# It is not useful on other systems. If it contains results you don't
9568# want to keep, you may remove or edit it.
10f2d63a 9569#
e6cc62c6
VS
9570# config.status only pays attention to the cache file if you give it
9571# the --recheck option to rerun configure.
10f2d63a 9572#
e6cc62c6
VS
9573# `ac_cv_env_foo' variables (set or unset) will be overridden when
9574# loading this file, other *unset* `ac_cv_foo' will be assigned the
9575# following values.
9576
9577_ACEOF
9578
10f2d63a
VZ
9579# The following way of writing the cache mishandles newlines in values,
9580# but we know of no workaround that is simple, portable, and efficient.
9581# So, don't put newlines in cache variables' values.
9582# Ultrix sh set writes to stderr and can't be redirected directly,
9583# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9584{
9585 (set) 2>&1 |
9586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9587 *ac_space=\ *)
9588 # `set' does not quote correctly, so add quotes (double-quote
9589 # substitution turns \\\\ into \\, and sed turns \\ into \).
9590 sed -n \
9591 "s/'/'\\\\''/g;
9592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9593 ;;
9594 *)
9595 # `set' quotes correctly as required by POSIX, so do not add quotes.
9596 sed -n \
9597 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9598 ;;
9599 esac;
9600} |
9601 sed '
9602 t clear
9603 : clear
9604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9605 t end
9606 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9607 : end' >>confcache
9608if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9609 if test -w $cache_file; then
e6cc62c6
VS
9610 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9611 cat confcache >$cache_file
10f2d63a
VZ
9612 else
9613 echo "not updating unwritable cache $cache_file"
9614 fi
9615fi
9616rm -f confcache
9617
e59890c3 9618if test "$build" != "$host" ; then
9d353d4a 9619 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9620 CC=$host_alias-gcc
9621 CXX=$host_alias-c++
9622 AR=$host_alias-ar
9623 RANLIB=$host_alias-ranlib
9624 DLLTOOL=$host_alias-dlltool
9625 RESCOMP=$host_alias-windres
9626 LD=$host_alias-ld
9627 NM=$host_alias-nm
9628 STRIP=$host_alias-strip
9629 else
e6cc62c6
VS
9630 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9631echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9632 { (exit 1); exit 1; }; }
3a922bb4 9633 fi
10f2d63a
VZ
9634fi
9635
ec603395 9636CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9637ac_ext=c
9638ac_cpp='$CPP $CPPFLAGS'
9639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9641ac_compiler_gnu=$ac_cv_c_compiler_gnu
9642if test -n "$ac_tool_prefix"; then
9643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9644set dummy ${ac_tool_prefix}gcc; ac_word=$2
9645echo "$as_me:$LINENO: checking for $ac_word" >&5
9646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9647if test "${ac_cv_prog_CC+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9649else
9650 if test -n "$CC"; then
9651 ac_cv_prog_CC="$CC" # Let the user override the test.
9652else
9653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654for as_dir in $PATH
9655do
9656 IFS=$as_save_IFS
9657 test -z "$as_dir" && as_dir=.
9658 for ac_exec_ext in '' $ac_executable_extensions; do
9659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9662 break 2
9663 fi
9664done
9665done
9666
9667fi
9668fi
9669CC=$ac_cv_prog_CC
9670if test -n "$CC"; then
9671 echo "$as_me:$LINENO: result: $CC" >&5
9672echo "${ECHO_T}$CC" >&6
9673else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676fi
9677
9678fi
9679if test -z "$ac_cv_prog_CC"; then
9680 ac_ct_CC=$CC
9681 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9682set dummy gcc; ac_word=$2
e6cc62c6
VS
9683echo "$as_me:$LINENO: checking for $ac_word" >&5
9684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687else
9688 if test -n "$ac_ct_CC"; then
9689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698 ac_cv_prog_ac_ct_CC="gcc"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702done
9703done
9704
9705fi
9706fi
9707ac_ct_CC=$ac_cv_prog_ac_ct_CC
9708if test -n "$ac_ct_CC"; then
9709 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9710echo "${ECHO_T}$ac_ct_CC" >&6
9711else
9712 echo "$as_me:$LINENO: result: no" >&5
9713echo "${ECHO_T}no" >&6
9714fi
9715
9716 CC=$ac_ct_CC
9717else
9718 CC="$ac_cv_prog_CC"
9719fi
9720
9721if test -z "$CC"; then
9722 if test -n "$ac_tool_prefix"; then
9723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9724set dummy ${ac_tool_prefix}cc; ac_word=$2
9725echo "$as_me:$LINENO: checking for $ac_word" >&5
9726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9727if test "${ac_cv_prog_CC+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9729else
9730 if test -n "$CC"; then
9731 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9732else
e6cc62c6
VS
9733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734for as_dir in $PATH
9735do
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9740 ac_cv_prog_CC="${ac_tool_prefix}cc"
9741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9743 fi
9744done
9745done
9746
10f2d63a 9747fi
6232543b 9748fi
e6cc62c6 9749CC=$ac_cv_prog_CC
6232543b 9750if test -n "$CC"; then
e6cc62c6
VS
9751 echo "$as_me:$LINENO: result: $CC" >&5
9752echo "${ECHO_T}$CC" >&6
9753else
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756fi
9757
9758fi
9759if test -z "$ac_cv_prog_CC"; then
9760 ac_ct_CC=$CC
9761 # Extract the first word of "cc", so it can be a program name with args.
9762set dummy cc; ac_word=$2
9763echo "$as_me:$LINENO: checking for $ac_word" >&5
9764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9765if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 if test -n "$ac_ct_CC"; then
9769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_prog_ac_ct_CC="cc"
9779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783done
9784
9785fi
9786fi
9787ac_ct_CC=$ac_cv_prog_ac_ct_CC
9788if test -n "$ac_ct_CC"; then
9789 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9790echo "${ECHO_T}$ac_ct_CC" >&6
9791else
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
9794fi
9795
9796 CC=$ac_ct_CC
247f5006 9797else
e6cc62c6 9798 CC="$ac_cv_prog_CC"
247f5006
VZ
9799fi
9800
e6cc62c6 9801fi
5c6fa7d2
RR
9802if test -z "$CC"; then
9803 # Extract the first word of "cc", so it can be a program name with args.
9804set dummy cc; ac_word=$2
e6cc62c6
VS
9805echo "$as_me:$LINENO: checking for $ac_word" >&5
9806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9807if test "${ac_cv_prog_CC+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9809else
9810 if test -n "$CC"; then
9811 ac_cv_prog_CC="$CC" # Let the user override the test.
9812else
9813 ac_prog_rejected=no
e6cc62c6
VS
9814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815for as_dir in $PATH
9816do
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9822 ac_prog_rejected=yes
9823 continue
9824 fi
9825 ac_cv_prog_CC="cc"
9826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 break 2
9828 fi
9829done
9830done
9831
328a083c
RR
9832if test $ac_prog_rejected = yes; then
9833 # We found a bogon in the path, so make sure we never use it.
9834 set dummy $ac_cv_prog_CC
9835 shift
e6cc62c6 9836 if test $# != 0; then
328a083c 9837 # We chose a different compiler from the bogus one.
1e487827
VS
9838 # However, it has the same basename, so the bogon will be chosen
9839 # first if we set CC to just the basename; use the full file name.
9840 shift
e6cc62c6 9841 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9842 fi
1e487827
VS
9843fi
9844fi
9845fi
e6cc62c6 9846CC=$ac_cv_prog_CC
1e487827 9847if test -n "$CC"; then
e6cc62c6
VS
9848 echo "$as_me:$LINENO: result: $CC" >&5
9849echo "${ECHO_T}$CC" >&6
703e0a69 9850else
e6cc62c6
VS
9851 echo "$as_me:$LINENO: result: no" >&5
9852echo "${ECHO_T}no" >&6
703e0a69 9853fi
1e487827 9854
e6cc62c6
VS
9855fi
9856if test -z "$CC"; then
9857 if test -n "$ac_tool_prefix"; then
9858 for ac_prog in cl
9859 do
9860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9862echo "$as_me:$LINENO: checking for $ac_word" >&5
9863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9864if test "${ac_cv_prog_CC+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9866else
9867 if test -n "$CC"; then
9868 ac_cv_prog_CC="$CC" # Let the user override the test.
9869else
e6cc62c6
VS
9870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871for as_dir in $PATH
9872do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9880 fi
9881done
9882done
9883
f09359cf
VS
9884fi
9885fi
e6cc62c6 9886CC=$ac_cv_prog_CC
f09359cf 9887if test -n "$CC"; then
e6cc62c6
VS
9888 echo "$as_me:$LINENO: result: $CC" >&5
9889echo "${ECHO_T}$CC" >&6
f09359cf 9890else
e6cc62c6
VS
9891 echo "$as_me:$LINENO: result: no" >&5
9892echo "${ECHO_T}no" >&6
5c6fa7d2 9893fi
1e487827 9894
e6cc62c6
VS
9895 test -n "$CC" && break
9896 done
9897fi
9898if test -z "$CC"; then
9899 ac_ct_CC=$CC
9900 for ac_prog in cl
9901do
9902 # Extract the first word of "$ac_prog", so it can be a program name with args.
9903set dummy $ac_prog; ac_word=$2
9904echo "$as_me:$LINENO: checking for $ac_word" >&5
9905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9906if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 if test -n "$ac_ct_CC"; then
9910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9911else
9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913for as_dir in $PATH
9914do
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_ac_ct_CC="$ac_prog"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9922 fi
9923done
9924done
f09359cf 9925
e6cc62c6
VS
9926fi
9927fi
9928ac_ct_CC=$ac_cv_prog_ac_ct_CC
9929if test -n "$ac_ct_CC"; then
9930 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9931echo "${ECHO_T}$ac_ct_CC" >&6
9932else
9933 echo "$as_me:$LINENO: result: no" >&5
9934echo "${ECHO_T}no" >&6
9935fi
f09359cf 9936
e6cc62c6
VS
9937 test -n "$ac_ct_CC" && break
9938done
247f5006 9939
e6cc62c6
VS
9940 CC=$ac_ct_CC
9941fi
9942
9943fi
9944
9945
9946test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
9947See \`config.log' for more details." >&5
9948echo "$as_me: error: no acceptable C compiler found in \$PATH
9949See \`config.log' for more details." >&2;}
9950 { (exit 1); exit 1; }; }
9951
9952# Provide some information about the compiler.
9953echo "$as_me:$LINENO:" \
9954 "checking for C compiler version" >&5
9955ac_compiler=`set X $ac_compile; echo $2`
9956{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9957 (eval $ac_compiler --version </dev/null >&5) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }
9961{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9962 (eval $ac_compiler -v </dev/null >&5) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }
9966{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9967 (eval $ac_compiler -V </dev/null >&5) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }
9971
9972cat >conftest.$ac_ext <<_ACEOF
9973#line $LINENO "configure"
9974/* confdefs.h. */
9975_ACEOF
9976cat confdefs.h >>conftest.$ac_ext
9977cat >>conftest.$ac_ext <<_ACEOF
9978/* end confdefs.h. */
9979
9980int
9981main ()
9982{
247f5006 9983
e6cc62c6
VS
9984 ;
9985 return 0;
9986}
9987_ACEOF
9988ac_clean_files_save=$ac_clean_files
9989ac_clean_files="$ac_clean_files a.out a.exe b.out"
9990# Try to create an executable without -o first, disregard a.out.
9991# It will help us diagnose broken compilers, and finding out an intuition
9992# of exeext.
9993echo "$as_me:$LINENO: checking for C compiler default output" >&5
9994echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9995ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9996if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9997 (eval $ac_link_default) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; then
10001 # Find the output, starting from the most likely. This scheme is
10002# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10003# resort.
10004
10005# Be careful to initialize this variable, since it used to be cached.
10006# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10007ac_cv_exeext=
10008# b.out is created by i960 compilers.
10009for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10010do
10011 test -f "$ac_file" || continue
10012 case $ac_file in
10013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10014 ;;
10015 conftest.$ac_ext )
10016 # This is the source file.
10017 ;;
10018 [ab].out )
10019 # We found the default executable, but exeext='' is most
10020 # certainly right.
10021 break;;
10022 *.* )
10023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10024 # FIXME: I believe we export ac_cv_exeext for Libtool,
10025 # but it would be cool to find out if it's true. Does anybody
10026 # maintain Libtool? --akim.
10027 export ac_cv_exeext
10028 break;;
10029 * )
10030 break;;
10031 esac
10032done
10033else
10034 echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10038See \`config.log' for more details." >&5
10039echo "$as_me: error: C compiler cannot create executables
10040See \`config.log' for more details." >&2;}
10041 { (exit 77); exit 77; }; }
10042fi
10043
10044ac_exeext=$ac_cv_exeext
10045echo "$as_me:$LINENO: result: $ac_file" >&5
10046echo "${ECHO_T}$ac_file" >&6
10047
10048# Check the compiler produces executables we can run. If not, either
10049# the compiler is broken, or we cross compile.
10050echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10051echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10052# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10053# If not cross compiling, check that we can run a simple program.
10054if test "$cross_compiling" != yes; then
10055 if { ac_try='./$ac_file'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 cross_compiling=no
698dcdb6 10062 else
e6cc62c6
VS
10063 if test "$cross_compiling" = maybe; then
10064 cross_compiling=yes
10065 else
10066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10067If you meant to cross compile, use \`--host'.
10068See \`config.log' for more details." >&5
10069echo "$as_me: error: cannot run C compiled programs.
10070If you meant to cross compile, use \`--host'.
10071See \`config.log' for more details." >&2;}
10072 { (exit 1); exit 1; }; }
10073 fi
698dcdb6 10074 fi
52127426 10075fi
e6cc62c6
VS
10076echo "$as_me:$LINENO: result: yes" >&5
10077echo "${ECHO_T}yes" >&6
10078
10079rm -f a.out a.exe conftest$ac_cv_exeext b.out
10080ac_clean_files=$ac_clean_files_save
10081# Check the compiler produces executables we can run. If not, either
10082# the compiler is broken, or we cross compile.
10083echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10084echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10085echo "$as_me:$LINENO: result: $cross_compiling" >&5
10086echo "${ECHO_T}$cross_compiling" >&6
10087
10088echo "$as_me:$LINENO: checking for suffix of executables" >&5
10089echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; then
10095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10096# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10097# work properly (i.e., refer to `conftest.exe'), while it won't with
10098# `rm'.
10099for ac_file in conftest.exe conftest conftest.*; do
10100 test -f "$ac_file" || continue
10101 case $ac_file in
10102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10104 export ac_cv_exeext
10105 break;;
10106 * ) break;;
10107 esac
10108done
5c6fa7d2 10109else
e6cc62c6
VS
10110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10111See \`config.log' for more details." >&5
10112echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10113See \`config.log' for more details." >&2;}
10114 { (exit 1); exit 1; }; }
10115fi
10116
10117rm -f conftest$ac_cv_exeext
10118echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10119echo "${ECHO_T}$ac_cv_exeext" >&6
10120
10121rm -f conftest.$ac_ext
10122EXEEXT=$ac_cv_exeext
10123ac_exeext=$EXEEXT
10124echo "$as_me:$LINENO: checking for suffix of object files" >&5
10125echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10126if test "${ac_cv_objext+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129 cat >conftest.$ac_ext <<_ACEOF
10130#line $LINENO "configure"
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h. */
10136
10137int
10138main ()
10139{
f09359cf 10140
e6cc62c6
VS
10141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.o conftest.obj
10146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147 (eval $ac_compile) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; then
10151 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10152 case $ac_file in
10153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10155 break;;
10156 esac
10157done
a0b9e27f 10158else
e6cc62c6
VS
10159 echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10163See \`config.log' for more details." >&5
10164echo "$as_me: error: cannot compute suffix of object files: cannot compile
10165See \`config.log' for more details." >&2;}
10166 { (exit 1); exit 1; }; }
a0b9e27f 10167fi
247f5006 10168
e6cc62c6
VS
10169rm -f conftest.$ac_cv_objext conftest.$ac_ext
10170fi
10171echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10172echo "${ECHO_T}$ac_cv_objext" >&6
10173OBJEXT=$ac_cv_objext
10174ac_objext=$OBJEXT
10175echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10176echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10177if test "${ac_cv_c_compiler_gnu+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10179else
e6cc62c6
VS
10180 cat >conftest.$ac_ext <<_ACEOF
10181#line $LINENO "configure"
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187
10188int
10189main ()
10190{
10191#ifndef __GNUC__
10192 choke me
10193#endif
10194
10195 ;
10196 return 0;
10197}
10198_ACEOF
10199rm -f conftest.$ac_objext
10200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -s conftest.$ac_objext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_compiler_gnu=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216ac_compiler_gnu=no
10217fi
10218rm -f conftest.$ac_objext conftest.$ac_ext
10219ac_cv_c_compiler_gnu=$ac_compiler_gnu
10220
10221fi
10222echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10223echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10224GCC=`test $ac_compiler_gnu = yes && echo yes`
10225ac_test_CFLAGS=${CFLAGS+set}
10226ac_save_CFLAGS=$CFLAGS
10227CFLAGS="-g"
10228echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10229echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10230if test "${ac_cv_prog_cc_g+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232else
10233 cat >conftest.$ac_ext <<_ACEOF
10234#line $LINENO "configure"
10235/* confdefs.h. */
10236_ACEOF
10237cat confdefs.h >>conftest.$ac_ext
10238cat >>conftest.$ac_ext <<_ACEOF
10239/* end confdefs.h. */
10240
10241int
10242main ()
10243{
10244
10245 ;
10246 return 0;
10247}
10248_ACEOF
10249rm -f conftest.$ac_objext
10250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10f2d63a
VZ
10261 ac_cv_prog_cc_g=yes
10262else
e6cc62c6
VS
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10265
e6cc62c6 10266ac_cv_prog_cc_g=no
10f2d63a 10267fi
e6cc62c6
VS
10268rm -f conftest.$ac_objext conftest.$ac_ext
10269fi
10270echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10271echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10272if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10273 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10274elif test $ac_cv_prog_cc_g = yes; then
10275 if test "$GCC" = yes; then
10f2d63a
VZ
10276 CFLAGS="-g -O2"
10277 else
f09359cf 10278 CFLAGS="-g"
10f2d63a 10279 fi
5c0a20c3 10280else
f09359cf
VS
10281 if test "$GCC" = yes; then
10282 CFLAGS="-O2"
10283 else
10284 CFLAGS=
10285 fi
10f2d63a 10286fi
e6cc62c6
VS
10287echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10288echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10289if test "${ac_cv_prog_cc_stdc+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 ac_cv_prog_cc_stdc=no
10293ac_save_CC=$CC
10294cat >conftest.$ac_ext <<_ACEOF
10295#line $LINENO "configure"
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301#include <stdarg.h>
10302#include <stdio.h>
10303#include <sys/types.h>
10304#include <sys/stat.h>
10305/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10306struct buf { int x; };
10307FILE * (*rcsopen) (struct buf *, struct stat *, int);
10308static char *e (p, i)
10309 char **p;
10310 int i;
10311{
10312 return p[i];
10313}
10314static char *f (char * (*g) (char **, int), char **p, ...)
10315{
10316 char *s;
10317 va_list v;
10318 va_start (v,p);
10319 s = g (p, va_arg (v,int));
10320 va_end (v);
10321 return s;
10322}
10323int test (int i, double x);
10324struct s1 {int (*f) (int a);};
10325struct s2 {int (*f) (double a);};
10326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10327int argc;
10328char **argv;
10329int
10330main ()
10331{
10332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10333 ;
10334 return 0;
10335}
10336_ACEOF
10337# Don't try gcc -ansi; that turns off useful extensions and
10338# breaks some systems' header files.
10339# AIX -qlanglvl=ansi
10340# Ultrix and OSF/1 -std1
10341# HP-UX 10.20 and later -Ae
10342# HP-UX older versions -Aa -D_HPUX_SOURCE
10343# SVR4 -Xc -D__EXTENSIONS__
10344for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10345do
10346 CC="$ac_save_CC $ac_arg"
10347 rm -f conftest.$ac_objext
10348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10349 (eval $ac_compile) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest.$ac_objext'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_cv_prog_cc_stdc=$ac_arg
10360break
10361else
10362 echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365fi
10366rm -f conftest.$ac_objext
10367done
10368rm -f conftest.$ac_ext conftest.$ac_objext
10369CC=$ac_save_CC
10370
10371fi
10372
10373case "x$ac_cv_prog_cc_stdc" in
10374 x|xno)
10375 echo "$as_me:$LINENO: result: none needed" >&5
10376echo "${ECHO_T}none needed" >&6 ;;
10377 *)
10378 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10379echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10380 CC="$CC $ac_cv_prog_cc_stdc" ;;
10381esac
10382
10383# Some people use a C++ compiler to compile C. Since we use `exit',
10384# in C++ we need to declare it. In case someone uses the same compiler
10385# for both compiling C and C++ we need to have the C++ compiler decide
10386# the declaration of exit, since it's the most demanding environment.
10387cat >conftest.$ac_ext <<_ACEOF
10388#ifndef __cplusplus
10389 choke me
10390#endif
10391_ACEOF
10392rm -f conftest.$ac_objext
10393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394 (eval $ac_compile) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -s conftest.$ac_objext'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404 for ac_declaration in \
10405 ''\
10406 '#include <stdlib.h>' \
10407 'extern "C" void std::exit (int) throw (); using std::exit;' \
10408 'extern "C" void std::exit (int); using std::exit;' \
10409 'extern "C" void exit (int) throw ();' \
10410 'extern "C" void exit (int);' \
10411 'void exit (int);'
10412do
10413 cat >conftest.$ac_ext <<_ACEOF
10414#line $LINENO "configure"
10415/* confdefs.h. */
10416_ACEOF
10417cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF
10419/* end confdefs.h. */
10420#include <stdlib.h>
10421$ac_declaration
10422int
10423main ()
10424{
10425exit (42);
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430rm -f conftest.$ac_objext
10431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest.$ac_objext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 :
10443else
10444 echo "$as_me: failed program was:" >&5
10445sed 's/^/| /' conftest.$ac_ext >&5
10446
10447continue
10448fi
10449rm -f conftest.$ac_objext conftest.$ac_ext
10450 cat >conftest.$ac_ext <<_ACEOF
10451#line $LINENO "configure"
10452/* confdefs.h. */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h. */
10457$ac_declaration
10458int
10459main ()
10460{
10461exit (42);
10462 ;
10463 return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext
10467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 break
10479else
10480 echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
10483fi
10484rm -f conftest.$ac_objext conftest.$ac_ext
10485done
10486rm -f conftest*
10487if test -n "$ac_declaration"; then
10488 echo '#ifdef __cplusplus' >>confdefs.h
10489 echo $ac_declaration >>confdefs.h
10490 echo '#endif' >>confdefs.h
10491fi
10492
10493else
10494 echo "$as_me: failed program was:" >&5
10495sed 's/^/| /' conftest.$ac_ext >&5
10496
10497fi
10498rm -f conftest.$ac_objext conftest.$ac_ext
10499ac_ext=c
10500ac_cpp='$CPP $CPPFLAGS'
10501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10504
10505
e6cc62c6
VS
10506
10507ac_ext=c
10508ac_cpp='$CPP $CPPFLAGS'
10509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10513echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10514# On Suns, sometimes $CPP names a directory.
10515if test -n "$CPP" && test -d "$CPP"; then
10516 CPP=
10517fi
10518if test -z "$CPP"; then
e6cc62c6
VS
10519 if test "${ac_cv_prog_CPP+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522 # Double quotes because CPP needs to be expanded
10523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10524 do
10525 ac_preproc_ok=false
10526for ac_c_preproc_warn_flag in '' yes
10527do
10528 # Use a header file that comes with gcc, so configuring glibc
10529 # with a fresh cross-compiler works.
10530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 # <limits.h> exists even on freestanding compilers.
10f2d63a 10532 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10533 # not just through cpp. "Syntax error" is here to catch this case.
10534 cat >conftest.$ac_ext <<_ACEOF
10535#line $LINENO "configure"
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541#ifdef __STDC__
10542# include <limits.h>
10543#else
10544# include <assert.h>
10545#endif
10546 Syntax error
10547_ACEOF
10548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } >/dev/null; then
10556 if test -s conftest.err; then
10557 ac_cpp_err=$ac_c_preproc_warn_flag
10558 else
10559 ac_cpp_err=
10560 fi
10f2d63a 10561else
e6cc62c6
VS
10562 ac_cpp_err=yes
10563fi
10564if test -z "$ac_cpp_err"; then
a0b9e27f 10565 :
247f5006 10566else
e6cc62c6
VS
10567 echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 # Broken: fails on valid input.
10571continue
10572fi
10573rm -f conftest.err conftest.$ac_ext
10574
10575 # OK, works on sane cases. Now check whether non-existent headers
10576 # can be detected and how.
10577 cat >conftest.$ac_ext <<_ACEOF
10578#line $LINENO "configure"
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584#include <ac_nonexistent.h>
10585_ACEOF
10586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } >/dev/null; then
10594 if test -s conftest.err; then
10595 ac_cpp_err=$ac_c_preproc_warn_flag
10596 else
10597 ac_cpp_err=
10598 fi
10f2d63a 10599else
e6cc62c6 10600 ac_cpp_err=yes
579d8138 10601fi
e6cc62c6
VS
10602if test -z "$ac_cpp_err"; then
10603 # Broken: success on invalid input.
10604continue
10605else
10606 echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 # Passes both tests.
10610ac_preproc_ok=:
10611break
52127426 10612fi
e6cc62c6
VS
10613rm -f conftest.err conftest.$ac_ext
10614
10615done
10616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10617rm -f conftest.err conftest.$ac_ext
10618if $ac_preproc_ok; then
10619 break
8284b0c5 10620fi
e6cc62c6
VS
10621
10622 done
10623 ac_cv_prog_CPP=$CPP
10624
10625fi
10626 CPP=$ac_cv_prog_CPP
10627else
10628 ac_cv_prog_CPP=$CPP
10629fi
10630echo "$as_me:$LINENO: result: $CPP" >&5
10631echo "${ECHO_T}$CPP" >&6
10632ac_preproc_ok=false
10633for ac_c_preproc_warn_flag in '' yes
10634do
10635 # Use a header file that comes with gcc, so configuring glibc
10636 # with a fresh cross-compiler works.
10637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10638 # <limits.h> exists even on freestanding compilers.
10639 # On the NeXT, cc -E runs the code through the compiler's parser,
10640 # not just through cpp. "Syntax error" is here to catch this case.
10641 cat >conftest.$ac_ext <<_ACEOF
10642#line $LINENO "configure"
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648#ifdef __STDC__
10649# include <limits.h>
10650#else
10651# include <assert.h>
10652#endif
10653 Syntax error
10654_ACEOF
10655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } >/dev/null; then
10663 if test -s conftest.err; then
10664 ac_cpp_err=$ac_c_preproc_warn_flag
10665 else
10666 ac_cpp_err=
10667 fi
10668else
10669 ac_cpp_err=yes
10670fi
10671if test -z "$ac_cpp_err"; then
10672 :
10673else
10674 echo "$as_me: failed program was:" >&5
10675sed 's/^/| /' conftest.$ac_ext >&5
10676
10677 # Broken: fails on valid input.
10678continue
10679fi
10680rm -f conftest.err conftest.$ac_ext
10681
10682 # OK, works on sane cases. Now check whether non-existent headers
10683 # can be detected and how.
10684 cat >conftest.$ac_ext <<_ACEOF
10685#line $LINENO "configure"
10686/* confdefs.h. */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */
10691#include <ac_nonexistent.h>
10692_ACEOF
10693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } >/dev/null; then
10701 if test -s conftest.err; then
10702 ac_cpp_err=$ac_c_preproc_warn_flag
10703 else
10704 ac_cpp_err=
10705 fi
10706else
10707 ac_cpp_err=yes
10708fi
10709if test -z "$ac_cpp_err"; then
10710 # Broken: success on invalid input.
10711continue
10712else
10713 echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 # Passes both tests.
10717ac_preproc_ok=:
10718break
a0b9e27f 10719fi
e6cc62c6
VS
10720rm -f conftest.err conftest.$ac_ext
10721
10722done
10723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10724rm -f conftest.err conftest.$ac_ext
10725if $ac_preproc_ok; then
10726 :
10727else
10728 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10729See \`config.log' for more details." >&5
10730echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10731See \`config.log' for more details." >&2;}
10732 { (exit 1); exit 1; }; }
10733fi
10734
10735ac_ext=c
10736ac_cpp='$CPP $CPPFLAGS'
10737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10739ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740
10741
10742echo "$as_me:$LINENO: checking for egrep" >&5
10743echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10744if test "${ac_cv_prog_egrep+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10746else
e6cc62c6
VS
10747 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10748 then ac_cv_prog_egrep='grep -E'
10749 else ac_cv_prog_egrep='egrep'
10750 fi
10f2d63a 10751fi
e6cc62c6
VS
10752echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10753echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10754 EGREP=$ac_cv_prog_egrep
10755
10f2d63a 10756
e6cc62c6
VS
10757if test $ac_cv_c_compiler_gnu = yes; then
10758 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10759echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10760if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10762else
10763 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10764 cat >conftest.$ac_ext <<_ACEOF
10765#line $LINENO "configure"
10766/* confdefs.h. */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h. */
10f2d63a
VZ
10771#include <sgtty.h>
10772Autoconf TIOCGETP
e6cc62c6 10773_ACEOF
10f2d63a 10774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10775 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10776 ac_cv_prog_gcc_traditional=yes
10777else
10f2d63a
VZ
10778 ac_cv_prog_gcc_traditional=no
10779fi
10780rm -f conftest*
10781
8284b0c5 10782
10f2d63a 10783 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10784 cat >conftest.$ac_ext <<_ACEOF
10785#line $LINENO "configure"
10786/* confdefs.h. */
10787_ACEOF
10788cat confdefs.h >>conftest.$ac_ext
10789cat >>conftest.$ac_ext <<_ACEOF
10790/* end confdefs.h. */
10f2d63a
VZ
10791#include <termio.h>
10792Autoconf TCGETA
e6cc62c6 10793_ACEOF
10f2d63a 10794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10795 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10796 ac_cv_prog_gcc_traditional=yes
10797fi
10798rm -f conftest*
10799
10800 fi
10801fi
e6cc62c6
VS
10802echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10803echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10804 if test $ac_cv_prog_gcc_traditional = yes; then
10805 CC="$CC -traditional"
10806 fi
10807fi
10808
8284b0c5
MB
10809
10810
e6cc62c6
VS
10811
10812ac_ext=cc
1e487827 10813ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10817
698dcdb6 10818
ec603395 10819CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10820ac_ext=cc
10821ac_cpp='$CXXCPP $CPPFLAGS'
10822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10825if test -n "$ac_tool_prefix"; then
10826 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10827 do
10828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10829set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10830echo "$as_me:$LINENO: checking for $ac_word" >&5
10831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10832if test "${ac_cv_prog_CXX+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10834else
10835 if test -n "$CXX"; then
10836 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10837else
e6cc62c6
VS
10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10845 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849done
10850done
10851
10f2d63a
VZ
10852fi
10853fi
e6cc62c6 10854CXX=$ac_cv_prog_CXX
10f2d63a 10855if test -n "$CXX"; then
e6cc62c6
VS
10856 echo "$as_me:$LINENO: result: $CXX" >&5
10857echo "${ECHO_T}$CXX" >&6
10f2d63a 10858else
e6cc62c6
VS
10859 echo "$as_me:$LINENO: result: no" >&5
10860echo "${ECHO_T}no" >&6
10f2d63a
VZ
10861fi
10862
e6cc62c6
VS
10863 test -n "$CXX" && break
10864 done
10865fi
10866if test -z "$CXX"; then
10867 ac_ct_CXX=$CXX
10868 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10869do
10870 # Extract the first word of "$ac_prog", so it can be a program name with args.
10871set dummy $ac_prog; ac_word=$2
10872echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877 if test -n "$ac_ct_CXX"; then
10878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_ac_ct_CXX="$ac_prog"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10f2d63a 10892done
a0b9e27f 10893
8284b0c5 10894fi
a0b9e27f 10895fi
e6cc62c6
VS
10896ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10897if test -n "$ac_ct_CXX"; then
10898 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10899echo "${ECHO_T}$ac_ct_CXX" >&6
10900else
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
a0b9e27f 10903fi
10f2d63a 10904
e6cc62c6
VS
10905 test -n "$ac_ct_CXX" && break
10906done
10907test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10908
10909 CXX=$ac_ct_CXX
10910fi
10911
10912
10913# Provide some information about the compiler.
10914echo "$as_me:$LINENO:" \
10915 "checking for C++ compiler version" >&5
10916ac_compiler=`set X $ac_compile; echo $2`
10917{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10918 (eval $ac_compiler --version </dev/null >&5) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }
10922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10923 (eval $ac_compiler -v </dev/null >&5) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }
10927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10928 (eval $ac_compiler -V </dev/null >&5) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }
10932
10933echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10934echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10935if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 cat >conftest.$ac_ext <<_ACEOF
10939#line $LINENO "configure"
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
10945
10946int
10947main ()
10948{
10949#ifndef __GNUC__
10950 choke me
10951#endif
10f2d63a 10952
e6cc62c6
VS
10953 ;
10954 return 0;
10955}
10956_ACEOF
10957rm -f conftest.$ac_objext
10958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_compiler_gnu=yes
10970else
10971 echo "$as_me: failed program was:" >&5
10972sed 's/^/| /' conftest.$ac_ext >&5
10973
10974ac_compiler_gnu=no
10975fi
10976rm -f conftest.$ac_objext conftest.$ac_ext
10977ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10978
10979fi
10980echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10981echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
10982GXX=`test $ac_compiler_gnu = yes && echo yes`
10983ac_test_CXXFLAGS=${CXXFLAGS+set}
10984ac_save_CXXFLAGS=$CXXFLAGS
10985CXXFLAGS="-g"
10986echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10987echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
10988if test "${ac_cv_prog_cxx_g+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 cat >conftest.$ac_ext <<_ACEOF
10992#line $LINENO "configure"
10993/* confdefs.h. */
10994_ACEOF
10995cat confdefs.h >>conftest.$ac_ext
10996cat >>conftest.$ac_ext <<_ACEOF
10997/* end confdefs.h. */
10998
10999int
11000main ()
11001{
f09359cf 11002
e6cc62c6
VS
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext
11008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
10f2d63a
VZ
11019 ac_cv_prog_cxx_g=yes
11020else
e6cc62c6
VS
11021 echo "$as_me: failed program was:" >&5
11022sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11023
e6cc62c6 11024ac_cv_prog_cxx_g=no
10f2d63a 11025fi
e6cc62c6
VS
11026rm -f conftest.$ac_objext conftest.$ac_ext
11027fi
11028echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11029echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11030if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11031 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11032elif test $ac_cv_prog_cxx_g = yes; then
11033 if test "$GXX" = yes; then
10f2d63a
VZ
11034 CXXFLAGS="-g -O2"
11035 else
f09359cf 11036 CXXFLAGS="-g"
10f2d63a 11037 fi
5c0a20c3 11038else
f09359cf
VS
11039 if test "$GXX" = yes; then
11040 CXXFLAGS="-O2"
11041 else
11042 CXXFLAGS=
11043 fi
10f2d63a 11044fi
e6cc62c6
VS
11045for ac_declaration in \
11046 ''\
11047 '#include <stdlib.h>' \
11048 'extern "C" void std::exit (int) throw (); using std::exit;' \
11049 'extern "C" void std::exit (int); using std::exit;' \
11050 'extern "C" void exit (int) throw ();' \
11051 'extern "C" void exit (int);' \
11052 'void exit (int);'
11053do
11054 cat >conftest.$ac_ext <<_ACEOF
11055#line $LINENO "configure"
11056/* confdefs.h. */
11057_ACEOF
11058cat confdefs.h >>conftest.$ac_ext
11059cat >>conftest.$ac_ext <<_ACEOF
11060/* end confdefs.h. */
11061#include <stdlib.h>
11062$ac_declaration
11063int
11064main ()
11065{
11066exit (42);
11067 ;
11068 return 0;
11069}
11070_ACEOF
11071rm -f conftest.$ac_objext
11072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -s conftest.$ac_objext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 :
11084else
11085 echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
11088continue
11089fi
11090rm -f conftest.$ac_objext conftest.$ac_ext
11091 cat >conftest.$ac_ext <<_ACEOF
11092#line $LINENO "configure"
11093/* confdefs.h. */
11094_ACEOF
11095cat confdefs.h >>conftest.$ac_ext
11096cat >>conftest.$ac_ext <<_ACEOF
11097/* end confdefs.h. */
11098$ac_declaration
11099int
11100main ()
11101{
11102exit (42);
11103 ;
11104 return 0;
11105}
11106_ACEOF
11107rm -f conftest.$ac_objext
11108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11109 (eval $ac_compile) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 break
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124fi
11125rm -f conftest.$ac_objext conftest.$ac_ext
11126done
11127rm -f conftest*
11128if test -n "$ac_declaration"; then
11129 echo '#ifdef __cplusplus' >>confdefs.h
11130 echo $ac_declaration >>confdefs.h
11131 echo '#endif' >>confdefs.h
11132fi
11133
11134ac_ext=cc
11135ac_cpp='$CXXCPP $CPPFLAGS'
11136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11139
11140
10f2d63a 11141ac_ext=c
10f2d63a 11142ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11146
11147
e6cc62c6
VS
11148if test -n "$ac_tool_prefix"; then
11149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11151echo "$as_me:$LINENO: checking for $ac_word" >&5
11152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11153if test "${ac_cv_prog_RANLIB+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11155else
11156 if test -n "$RANLIB"; then
11157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11158else
e6cc62c6
VS
11159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160for as_dir in $PATH
11161do
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 break 2
11169 fi
11170done
11171done
11172
10f2d63a
VZ
11173fi
11174fi
e6cc62c6 11175RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11176if test -n "$RANLIB"; then
e6cc62c6
VS
11177 echo "$as_me:$LINENO: result: $RANLIB" >&5
11178echo "${ECHO_T}$RANLIB" >&6
11179else
11180 echo "$as_me:$LINENO: result: no" >&5
11181echo "${ECHO_T}no" >&6
11182fi
11183
11184fi
11185if test -z "$ac_cv_prog_RANLIB"; then
11186 ac_ct_RANLIB=$RANLIB
11187 # Extract the first word of "ranlib", so it can be a program name with args.
11188set dummy ranlib; ac_word=$2
11189echo "$as_me:$LINENO: checking for $ac_word" >&5
11190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11193else
e6cc62c6
VS
11194 if test -n "$ac_ct_RANLIB"; then
11195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11196else
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204 ac_cv_prog_ac_ct_RANLIB="ranlib"
11205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209done
11210
11211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11212fi
11213fi
11214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11215if test -n "$ac_ct_RANLIB"; then
11216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11217echo "${ECHO_T}$ac_ct_RANLIB" >&6
11218else
11219 echo "$as_me:$LINENO: result: no" >&5
11220echo "${ECHO_T}no" >&6
11221fi
11222
11223 RANLIB=$ac_ct_RANLIB
11224else
11225 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11226fi
11227
10f2d63a
VZ
11228
11229# Extract the first word of "ar", so it can be a program name with args.
11230set dummy ar; ac_word=$2
e6cc62c6
VS
11231echo "$as_me:$LINENO: checking for $ac_word" >&5
11232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11233if test "${ac_cv_prog_AR+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11235else
11236 if test -n "$AR"; then
11237 ac_cv_prog_AR="$AR" # Let the user override the test.
11238else
e6cc62c6
VS
11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240for as_dir in $PATH
11241do
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11246 ac_cv_prog_AR="ar"
11247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 break 2
11249 fi
11250done
11251done
11252
10f2d63a
VZ
11253 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
11254fi
11255fi
e6cc62c6 11256AR=$ac_cv_prog_AR
10f2d63a 11257if test -n "$AR"; then
e6cc62c6
VS
11258 echo "$as_me:$LINENO: result: $AR" >&5
11259echo "${ECHO_T}$AR" >&6
10f2d63a 11260else
e6cc62c6
VS
11261 echo "$as_me:$LINENO: result: no" >&5
11262echo "${ECHO_T}no" >&6
10f2d63a
VZ
11263fi
11264
8284b0c5 11265
6054113a 11266# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11267# so one script is as good as another. But avoid the broken or
11268# incompatible versions:
11269# SysV /etc/install, /usr/sbin/install
11270# SunOS /usr/etc/install
11271# IRIX /sbin/install
11272# AIX /bin/install
e6cc62c6 11273# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11275# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11277# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11278echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11279echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11280if test -z "$INSTALL"; then
e6cc62c6
VS
11281if test "${ac_cv_path_install+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285for as_dir in $PATH
11286do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 # Account for people who put trailing slashes in PATH elements.
11290case $as_dir/ in
11291 ./ | .// | /cC/* | \
11292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11293 /usr/ucb/* ) ;;
11294 *)
11295 # OSF1 and SCO ODT 3.0 have their own names for install.
11296 # Don't use installbsd from OSF since it installs stuff as root
11297 # by default.
11298 for ac_prog in ginstall scoinst install; do
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11301 if test $ac_prog = install &&
11302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11303 # AIX install. It has an incompatible calling convention.
11304 :
11305 elif test $ac_prog = install &&
11306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11307 # program-specific install script used by HP pwplus--don't use.
11308 :
11309 else
11310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11311 break 3
11312 fi
11313 fi
10f2d63a 11314 done
e6cc62c6
VS
11315 done
11316 ;;
11317esac
11318done
11319
10f2d63a
VZ
11320
11321fi
11322 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11323 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11324 else
11325 # As a last resort, use the slow shell script. We don't cache a
11326 # path for INSTALL within a source directory, because that will
11327 # break other packages using the cache if that directory is
11328 # removed, or if the path is relative.
e6cc62c6 11329 INSTALL=$ac_install_sh
10f2d63a
VZ
11330 fi
11331fi
e6cc62c6
VS
11332echo "$as_me:$LINENO: result: $INSTALL" >&5
11333echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11334
11335# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11336# It thinks the first close brace ends the variable substitution.
11337test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11338
e6cc62c6 11339test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11340
10f2d63a
VZ
11341test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11342
8284b0c5 11343
1d1b75ac
VZ
11344case ${INSTALL} in
11345 /* ) # Absolute
11346 ;;
4f5a7f74
VZ
11347 ?:* ) # Drive letter, considered as absolute.
11348 ;;
3bd8fb5f 11349 *)
1d1b75ac
VZ
11350 INSTALL=`pwd`/${INSTALL} ;;
11351esac
11352
4f5a7f74
VZ
11353case ${host} in
11354 *-hp-hpux* )
11355 INSTALL_DIR="mkdir"
11356 ;;
11357
11358 *) INSTALL_DIR="$INSTALL -d"
11359 ;;
11360esac
11361
8284b0c5 11362
6054113a
GD
11363case "${host}" in
11364
b5853384 11365 powerpc-*-darwin* )
eb99ae0b
GD
11366 INSTALL_PROGRAM="cp -fp"
11367 INSTALL_DATA="cp -fp"
6054113a
GD
11368 ;;
11369 *)
11370 ;;
d6853540 11371esac
698dcdb6 11372
10f2d63a
VZ
11373# Extract the first word of "strip", so it can be a program name with args.
11374set dummy strip; ac_word=$2
e6cc62c6
VS
11375echo "$as_me:$LINENO: checking for $ac_word" >&5
11376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11377if test "${ac_cv_prog_STRIP+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11379else
11380 if test -n "$STRIP"; then
11381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11382else
e6cc62c6
VS
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_STRIP="strip"
11391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395done
11396
10f2d63a
VZ
11397 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11398fi
11399fi
e6cc62c6 11400STRIP=$ac_cv_prog_STRIP
10f2d63a 11401if test -n "$STRIP"; then
e6cc62c6
VS
11402 echo "$as_me:$LINENO: result: $STRIP" >&5
11403echo "${ECHO_T}$STRIP" >&6
10f2d63a 11404else
e6cc62c6
VS
11405 echo "$as_me:$LINENO: result: no" >&5
11406echo "${ECHO_T}no" >&6
10f2d63a
VZ
11407fi
11408
5c6fa7d2 11409
e6cc62c6
VS
11410echo "$as_me:$LINENO: checking if make is GNU make" >&5
11411echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11412if test "${wx_cv_prog_makeisgnu+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11414else
e6cc62c6 11415
414eab6d 11416 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11417 egrep -s GNU > /dev/null); then
414eab6d
VZ
11418 wx_cv_prog_makeisgnu="yes"
11419 else
11420 wx_cv_prog_makeisgnu="no"
11421 fi
11422
11423fi
e6cc62c6
VS
11424echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11425echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11426
11427if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11428 IF_GNU_MAKE=""
11429else
11430 IF_GNU_MAKE="#"
11431fi
11432
8284b0c5
MB
11433
11434
414eab6d 11435if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11436echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11437echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11438if test "${wx_cv_prog_makevpath+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11440else
e6cc62c6 11441
10f2d63a
VZ
11442cat - << EOF > confMake
11443check : file
11444 cp \$? \$@
11445 cp \$? final_file
11446EOF
11447
11448if test ! -d sub ; then
11449 mkdir sub
11450fi
11451echo dummy > sub/file
f6bcfd97 11452${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11453RESULT=$?
11454rm -f sub/file check final_file confMake
11455rmdir sub
11456if test "$RESULT" = 0; then
04e7a216 11457 wx_cv_prog_makevpath="yes"
10f2d63a 11458else
04e7a216
VZ
11459 wx_cv_prog_makevpath="no"
11460fi
11461
11462fi
e6cc62c6
VS
11463echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11464echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11465
11466if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11467{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11468You need a make-utility that is able to use the variable
11469VPATH correctly.
11470If your version of make does not support VPATH correctly,
11471please install GNU-make (possibly as gmake), and start
11472configure with the following command:
11473export MAKE=gmake; ./configure for sh-type shells
11474setenv MAKE gmake; ./configure for csh-type shells
11475Also please do remember to use gmake in this case every time
11476you are trying to compile.
e6cc62c6
VS
11477" >&5
11478echo "$as_me: error:
11479You need a make-utility that is able to use the variable
11480VPATH correctly.
11481If your version of make does not support VPATH correctly,
11482please install GNU-make (possibly as gmake), and start
11483configure with the following command:
11484export MAKE=gmake; ./configure for sh-type shells
11485setenv MAKE gmake; ./configure for csh-type shells
11486Also please do remember to use gmake in this case every time
11487you are trying to compile.
11488" >&2;}
11489 { (exit 1); exit 1; }; }
11490fi fi
10f2d63a
VZ
11491for ac_prog in 'bison -y' byacc
11492do
e6cc62c6 11493 # Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 11494set dummy $ac_prog; ac_word=$2
e6cc62c6
VS
11495echo "$as_me:$LINENO: checking for $ac_word" >&5
11496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11497if test "${ac_cv_prog_YACC+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11499else
11500 if test -n "$YACC"; then
11501 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11502else
e6cc62c6
VS
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_YACC="$ac_prog"
11511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514done
11515done
11516
10f2d63a
VZ
11517fi
11518fi
e6cc62c6 11519YACC=$ac_cv_prog_YACC
10f2d63a 11520if test -n "$YACC"; then
e6cc62c6
VS
11521 echo "$as_me:$LINENO: result: $YACC" >&5
11522echo "${ECHO_T}$YACC" >&6
10f2d63a 11523else
e6cc62c6
VS
11524 echo "$as_me:$LINENO: result: no" >&5
11525echo "${ECHO_T}no" >&6
10f2d63a
VZ
11526fi
11527
e6cc62c6 11528 test -n "$YACC" && break
10f2d63a
VZ
11529done
11530test -n "$YACC" || YACC="yacc"
11531
8284b0c5 11532
e6cc62c6
VS
11533for ac_prog in flex lex
11534do
11535 # Extract the first word of "$ac_prog", so it can be a program name with args.
11536set dummy $ac_prog; ac_word=$2
11537echo "$as_me:$LINENO: checking for $ac_word" >&5
11538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11539if test "${ac_cv_prog_LEX+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11541else
11542 if test -n "$LEX"; then
11543 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11544else
e6cc62c6
VS
11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552 ac_cv_prog_LEX="$ac_prog"
11553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11554 break 2
11555 fi
11556done
11557done
11558
10f2d63a
VZ
11559fi
11560fi
e6cc62c6 11561LEX=$ac_cv_prog_LEX
10f2d63a 11562if test -n "$LEX"; then
e6cc62c6
VS
11563 echo "$as_me:$LINENO: result: $LEX" >&5
11564echo "${ECHO_T}$LEX" >&6
10f2d63a 11565else
e6cc62c6
VS
11566 echo "$as_me:$LINENO: result: no" >&5
11567echo "${ECHO_T}no" >&6
10f2d63a
VZ
11568fi
11569
e6cc62c6
VS
11570 test -n "$LEX" && break
11571done
11572test -n "$LEX" || LEX=":"
11573
10f2d63a
VZ
11574if test -z "$LEXLIB"
11575then
e6cc62c6
VS
11576 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11577echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11578if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 ac_check_lib_save_LIBS=$LIBS
11582LIBS="-lfl $LIBS"
11583cat >conftest.$ac_ext <<_ACEOF
11584#line $LINENO "configure"
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590
11591/* Override any gcc2 internal prototype to avoid an error. */
11592#ifdef __cplusplus
11593extern "C"
11594#endif
11595/* We use char because int might match the return type of a gcc2
11596 builtin and then its argument prototype would still apply. */
11597char yywrap ();
11598int
11599main ()
11600{
11601yywrap ();
11602 ;
11603 return 0;
11604}
11605_ACEOF
11606rm -f conftest.$ac_objext conftest$ac_exeext
11607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ac_cv_lib_fl_yywrap=yes
11619else
11620 echo "$as_me: failed program was:" >&5
11621sed 's/^/| /' conftest.$ac_ext >&5
11622
11623ac_cv_lib_fl_yywrap=no
11624fi
11625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626LIBS=$ac_check_lib_save_LIBS
11627fi
11628echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11629echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11630if test $ac_cv_lib_fl_yywrap = yes; then
11631 LEXLIB="-lfl"
11632else
11633 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11634echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11635if test "${ac_cv_lib_l_yywrap+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637else
11638 ac_check_lib_save_LIBS=$LIBS
11639LIBS="-ll $LIBS"
11640cat >conftest.$ac_ext <<_ACEOF
11641#line $LINENO "configure"
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647
247f5006 11648/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11649#ifdef __cplusplus
11650extern "C"
11651#endif
247f5006 11652/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11653 builtin and then its argument prototype would still apply. */
11654char yywrap ();
11655int
11656main ()
11657{
11658yywrap ();
11659 ;
11660 return 0;
11661}
11662_ACEOF
11663rm -f conftest.$ac_objext conftest$ac_exeext
11664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665 (eval $ac_link) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -s conftest$ac_exeext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_lib_l_yywrap=yes
11676else
11677 echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680ac_cv_lib_l_yywrap=no
11681fi
11682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11686echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11687if test $ac_cv_lib_l_yywrap = yes; then
11688 LEXLIB="-ll"
11689fi
10f2d63a 11690
10f2d63a 11691fi
8284b0c5 11692
10f2d63a 11693fi
e6cc62c6
VS
11694
11695if test "x$LEX" != "x:"; then
11696 echo "$as_me:$LINENO: checking lex output file root" >&5
11697echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11698if test "${ac_cv_prog_lex_root+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700else
11701 # The minimal lex program is just a single line: %%. But some broken lexes
11702# (Solaris, I think it was) want two %% lines, so accommodate them.
11703cat >conftest.l <<_ACEOF
11704%%
11705%%
11706_ACEOF
11707{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11708 (eval $LEX conftest.l) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }
11712if test -f lex.yy.c; then
11713 ac_cv_prog_lex_root=lex.yy
11714elif test -f lexyy.c; then
11715 ac_cv_prog_lex_root=lexyy
8284b0c5 11716else
e6cc62c6
VS
11717 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11718echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11719 { (exit 1); exit 1; }; }
10f2d63a 11720fi
a0b9e27f 11721fi
e6cc62c6
VS
11722echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11723echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11724rm -f conftest.l
11725LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10f2d63a 11726
e6cc62c6
VS
11727echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11728echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11729if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11731else
e6cc62c6
VS
11732 # POSIX says lex can declare yytext either as a pointer or an array; the
11733# default is implementation-dependent. Figure out which it is, since
11734# not all implementations provide the %pointer and %array declarations.
11735ac_cv_prog_lex_yytext_pointer=no
11736echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11737ac_save_LIBS=$LIBS
11738LIBS="$LIBS $LEXLIB"
11739cat >conftest.$ac_ext <<_ACEOF
11740`cat $LEX_OUTPUT_ROOT.c`
11741_ACEOF
11742rm -f conftest.$ac_objext conftest$ac_exeext
11743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744 (eval $ac_link) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -s conftest$ac_exeext'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_cv_prog_lex_yytext_pointer=yes
10f2d63a 11755else
e6cc62c6
VS
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
10f2d63a 11759fi
e6cc62c6
VS
11760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11761LIBS=$ac_save_LIBS
11762rm -f "${LEX_OUTPUT_ROOT}.c"
11763
11764fi
11765echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11766echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11767if test $ac_cv_prog_lex_yytext_pointer = yes; then
11768
11769cat >>confdefs.h <<\_ACEOF
11770#define YYTEXT_POINTER 1
11771_ACEOF
11772
a0b9e27f 11773fi
e6cc62c6
VS
11774
11775fi
11776
11777echo "$as_me:$LINENO: checking whether ln -s works" >&5
11778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11779LN_S=$as_ln_s
11780if test "$LN_S" = "ln -s"; then
11781 echo "$as_me:$LINENO: result: yes" >&5
11782echo "${ECHO_T}yes" >&6
10f2d63a 11783else
e6cc62c6
VS
11784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11785echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11786fi
5c6fa7d2 11787
247f5006 11788
2b5f62a0
VZ
11789case "${host}" in
11790 *-pc-os2_emx | *-pc-os2-emx )
11791 LIBS="$LIBS -lstdcpp"
11792 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11793 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11794echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11795if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11797else
e6cc62c6 11798 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11799LIBS="-lcExt $LIBS"
e6cc62c6
VS
11800cat >conftest.$ac_ext <<_ACEOF
11801#line $LINENO "configure"
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807
2b5f62a0 11808/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11809#ifdef __cplusplus
11810extern "C"
11811#endif
2b5f62a0 11812/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11813 builtin and then its argument prototype would still apply. */
11814char drand48 ();
11815int
11816main ()
11817{
11818drand48 ();
11819 ;
11820 return 0;
11821}
11822_ACEOF
11823rm -f conftest.$ac_objext conftest$ac_exeext
11824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11825 (eval $ac_link) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try='test -s conftest$ac_exeext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_lib_cExt_drand48=yes
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840ac_cv_lib_cExt_drand48=no
11841fi
11842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11843LIBS=$ac_check_lib_save_LIBS
11844fi
11845echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11846echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11847if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11848 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11849fi
11850
11851 else
11852 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11853 fi
11854 ;;
11855esac
11856
a0b9e27f 11857
01aa5863
VS
11858if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11859 echo "$as_me:$LINENO: checking for strings.h" >&5
11860echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11861if test "${ac_cv_header_strings_h+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864 ac_cv_header_strings_h=no
11865fi
11866echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11867echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11868 if test "$ac_cv_header_strings_h" = "no"; then
11869 echo "$as_me:$LINENO: result: forced no into cache" >&5
11870echo "${ECHO_T}forced no into cache" >&6
11871 else
11872 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11873echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11874 fi
11875fi
11876echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11877echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11878if test "${ac_cv_header_stdc+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882#line $LINENO "configure"
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888#include <stdlib.h>
11889#include <stdarg.h>
11890#include <string.h>
11891#include <float.h>
247f5006 11892
e6cc62c6
VS
11893int
11894main ()
11895{
90dd450c 11896
e6cc62c6
VS
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_cv_header_stdc=yes
8284b0c5 11914else
e6cc62c6
VS
11915 echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918ac_cv_header_stdc=no
21d1c967 11919fi
e6cc62c6 11920rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11921
e6cc62c6
VS
11922if test $ac_cv_header_stdc = yes; then
11923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11924 cat >conftest.$ac_ext <<_ACEOF
11925#line $LINENO "configure"
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931#include <string.h>
11932
11933_ACEOF
11934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11935 $EGREP "memchr" >/dev/null 2>&1; then
11936 :
11937else
11938 ac_cv_header_stdc=no
3a922bb4 11939fi
a0b9e27f 11940rm -f conftest*
e6cc62c6 11941
90dd450c 11942fi
e6cc62c6
VS
11943
11944if test $ac_cv_header_stdc = yes; then
11945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11946 cat >conftest.$ac_ext <<_ACEOF
11947#line $LINENO "configure"
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953#include <stdlib.h>
11954
11955_ACEOF
11956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957 $EGREP "free" >/dev/null 2>&1; then
11958 :
a0b9e27f 11959else
e6cc62c6 11960 ac_cv_header_stdc=no
21d1c967 11961fi
e6cc62c6 11962rm -f conftest*
247f5006
VZ
11963
11964fi
e6cc62c6
VS
11965
11966if test $ac_cv_header_stdc = yes; then
11967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11968 if test "$cross_compiling" = yes; then
11969 :
11970else
11971 cat >conftest.$ac_ext <<_ACEOF
11972#line $LINENO "configure"
11973/* confdefs.h. */
11974_ACEOF
11975cat confdefs.h >>conftest.$ac_ext
11976cat >>conftest.$ac_ext <<_ACEOF
11977/* end confdefs.h. */
11978#include <ctype.h>
11979#if ((' ' & 0x0FF) == 0x020)
11980# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11981# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11982#else
11983# define ISLOWER(c) \
11984 (('a' <= (c) && (c) <= 'i') \
11985 || ('j' <= (c) && (c) <= 'r') \
11986 || ('s' <= (c) && (c) <= 'z'))
11987# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11988#endif
11989
11990#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11991int
11992main ()
11993{
11994 int i;
11995 for (i = 0; i < 256; i++)
11996 if (XOR (islower (i), ISLOWER (i))
11997 || toupper (i) != TOUPPER (i))
11998 exit(2);
11999 exit (0);
12000}
12001_ACEOF
12002rm -f conftest$ac_exeext
12003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 :
a0b9e27f 12014else
e6cc62c6
VS
12015 echo "$as_me: program exited with status $ac_status" >&5
12016echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019( exit $ac_status )
12020ac_cv_header_stdc=no
12021fi
12022rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12023fi
12024fi
12025fi
12026echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12027echo "${ECHO_T}$ac_cv_header_stdc" >&6
12028if test $ac_cv_header_stdc = yes; then
12029
12030cat >>confdefs.h <<\_ACEOF
12031#define STDC_HEADERS 1
12032_ACEOF
12033
a0b9e27f 12034fi
e6cc62c6
VS
12035
12036# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12047 inttypes.h stdint.h unistd.h
12048do
12049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12050echo "$as_me:$LINENO: checking for $ac_header" >&5
12051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12052if eval "test \"\${$as_ac_Header+set}\" = set"; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055 cat >conftest.$ac_ext <<_ACEOF
12056#line $LINENO "configure"
12057/* confdefs.h. */
12058_ACEOF
12059cat confdefs.h >>conftest.$ac_ext
12060cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h. */
12062$ac_includes_default
12063
12064#include <$ac_header>
12065_ACEOF
12066rm -f conftest.$ac_objext
12067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -s conftest.$ac_objext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 eval "$as_ac_Header=yes"
12079else
12080 echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083eval "$as_ac_Header=no"
12084fi
12085rm -f conftest.$ac_objext conftest.$ac_ext
12086fi
12087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12089if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092_ACEOF
12093
12094fi
12095
a0b9e27f 12096done
90dd450c 12097
e6cc62c6
VS
12098
12099
12100for ac_header in strings.h
21d1c967 12101do
e6cc62c6
VS
12102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12103if eval "test \"\${$as_ac_Header+set}\" = set"; then
12104 echo "$as_me:$LINENO: checking for $ac_header" >&5
12105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12106if eval "test \"\${$as_ac_Header+set}\" = set"; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108fi
12109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12111else
12112 # Is the header compilable?
12113echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12115cat >conftest.$ac_ext <<_ACEOF
12116#line $LINENO "configure"
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122$ac_includes_default
12123#include <$ac_header>
12124_ACEOF
12125rm -f conftest.$ac_objext
12126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_header_compiler=yes
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
12142ac_header_compiler=no
12143fi
12144rm -f conftest.$ac_objext conftest.$ac_ext
12145echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12146echo "${ECHO_T}$ac_header_compiler" >&6
12147
12148# Is the header present?
12149echo "$as_me:$LINENO: checking $ac_header presence" >&5
12150echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12151cat >conftest.$ac_ext <<_ACEOF
12152#line $LINENO "configure"
12153/* confdefs.h. */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h. */
12158#include <$ac_header>
12159_ACEOF
12160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } >/dev/null; then
12168 if test -s conftest.err; then
12169 ac_cpp_err=$ac_c_preproc_warn_flag
12170 else
12171 ac_cpp_err=
12172 fi
12173else
12174 ac_cpp_err=yes
12175fi
12176if test -z "$ac_cpp_err"; then
12177 ac_header_preproc=yes
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_header_preproc=no
12183fi
12184rm -f conftest.err conftest.$ac_ext
12185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12186echo "${ECHO_T}$ac_header_preproc" >&6
12187
12188# So? What about this header?
12189case $ac_header_compiler:$ac_header_preproc in
12190 yes:no )
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12195 (
12196 cat <<\_ASBOX
12197## ------------------------------------ ##
12198## Report this to bug-autoconf@gnu.org. ##
12199## ------------------------------------ ##
12200_ASBOX
12201 ) |
12202 sed "s/^/$as_me: WARNING: /" >&2
12203 ;;
12204 no:yes )
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12210echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12211 (
12212 cat <<\_ASBOX
12213## ------------------------------------ ##
12214## Report this to bug-autoconf@gnu.org. ##
12215## ------------------------------------ ##
12216_ASBOX
12217 ) |
12218 sed "s/^/$as_me: WARNING: /" >&2
12219 ;;
12220esac
12221echo "$as_me:$LINENO: checking for $ac_header" >&5
12222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12223if eval "test \"\${$as_ac_Header+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12227fi
e6cc62c6
VS
12228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12230
a0b9e27f 12231fi
e6cc62c6
VS
12232if test `eval echo '${'$as_ac_Header'}'` = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12235_ACEOF
12236
12237fi
12238
12239done
12240
e6cc62c6
VS
12241
12242
12243for ac_header in stdlib.h
12244do
12245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12246if eval "test \"\${$as_ac_Header+set}\" = set"; then
12247 echo "$as_me:$LINENO: checking for $ac_header" >&5
12248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12249if eval "test \"\${$as_ac_Header+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251fi
12252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12254else
12255 # Is the header compilable?
12256echo "$as_me:$LINENO: checking $ac_header usability" >&5
12257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12258cat >conftest.$ac_ext <<_ACEOF
12259#line $LINENO "configure"
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
12264/* end confdefs.h. */
12265$ac_includes_default
12266#include <$ac_header>
12267_ACEOF
12268rm -f conftest.$ac_objext
12269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_header_compiler=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285ac_header_compiler=no
12286fi
12287rm -f conftest.$ac_objext conftest.$ac_ext
12288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12289echo "${ECHO_T}$ac_header_compiler" >&6
12290
12291# Is the header present?
12292echo "$as_me:$LINENO: checking $ac_header presence" >&5
12293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12294cat >conftest.$ac_ext <<_ACEOF
12295#line $LINENO "configure"
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
12301#include <$ac_header>
12302_ACEOF
12303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } >/dev/null; then
12311 if test -s conftest.err; then
12312 ac_cpp_err=$ac_c_preproc_warn_flag
12313 else
12314 ac_cpp_err=
12315 fi
12316else
12317 ac_cpp_err=yes
12318fi
12319if test -z "$ac_cpp_err"; then
12320 ac_header_preproc=yes
12321else
12322 echo "$as_me: failed program was:" >&5
12323sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_header_preproc=no
12326fi
12327rm -f conftest.err conftest.$ac_ext
12328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12329echo "${ECHO_T}$ac_header_preproc" >&6
12330
12331# So? What about this header?
12332case $ac_header_compiler:$ac_header_preproc in
12333 yes:no )
12334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12338 (
12339 cat <<\_ASBOX
12340## ------------------------------------ ##
12341## Report this to bug-autoconf@gnu.org. ##
12342## ------------------------------------ ##
12343_ASBOX
12344 ) |
12345 sed "s/^/$as_me: WARNING: /" >&2
12346 ;;
12347 no:yes )
12348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354 (
12355 cat <<\_ASBOX
12356## ------------------------------------ ##
12357## Report this to bug-autoconf@gnu.org. ##
12358## ------------------------------------ ##
12359_ASBOX
12360 ) |
12361 sed "s/^/$as_me: WARNING: /" >&2
12362 ;;
12363esac
12364echo "$as_me:$LINENO: checking for $ac_header" >&5
12365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12366if eval "test \"\${$as_ac_Header+set}\" = set"; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12368else
e6cc62c6
VS
12369 eval "$as_ac_Header=$ac_header_preproc"
12370fi
12371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12373
21d1c967 12374fi
e6cc62c6
VS
12375if test `eval echo '${'$as_ac_Header'}'` = yes; then
12376 cat >>confdefs.h <<_ACEOF
12377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12378_ACEOF
12379
12380fi
12381
21d1c967 12382done
4f14bcd8 12383
5c6fa7d2 12384
e6cc62c6 12385for ac_header in malloc.h
21d1c967 12386do
e6cc62c6
VS
12387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12388if eval "test \"\${$as_ac_Header+set}\" = set"; then
12389 echo "$as_me:$LINENO: checking for $ac_header" >&5
12390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12391if eval "test \"\${$as_ac_Header+set}\" = set"; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393fi
12394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12396else
12397 # Is the header compilable?
12398echo "$as_me:$LINENO: checking $ac_header usability" >&5
12399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12400cat >conftest.$ac_ext <<_ACEOF
12401#line $LINENO "configure"
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
12407$ac_includes_default
12408#include <$ac_header>
12409_ACEOF
12410rm -f conftest.$ac_objext
12411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412 (eval $ac_compile) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } &&
12416 { ac_try='test -s conftest.$ac_objext'
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 ac_header_compiler=yes
12423else
12424 echo "$as_me: failed program was:" >&5
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
12427ac_header_compiler=no
12428fi
12429rm -f conftest.$ac_objext conftest.$ac_ext
12430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12431echo "${ECHO_T}$ac_header_compiler" >&6
12432
12433# Is the header present?
12434echo "$as_me:$LINENO: checking $ac_header presence" >&5
12435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12436cat >conftest.$ac_ext <<_ACEOF
12437#line $LINENO "configure"
12438/* confdefs.h. */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h. */
12443#include <$ac_header>
12444_ACEOF
12445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12447 ac_status=$?
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } >/dev/null; then
12453 if test -s conftest.err; then
12454 ac_cpp_err=$ac_c_preproc_warn_flag
12455 else
12456 ac_cpp_err=
12457 fi
12458else
12459 ac_cpp_err=yes
12460fi
12461if test -z "$ac_cpp_err"; then
12462 ac_header_preproc=yes
12463else
12464 echo "$as_me: failed program was:" >&5
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
12467 ac_header_preproc=no
12468fi
12469rm -f conftest.err conftest.$ac_ext
12470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471echo "${ECHO_T}$ac_header_preproc" >&6
12472
12473# So? What about this header?
12474case $ac_header_compiler:$ac_header_preproc in
12475 yes:no )
12476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12480 (
12481 cat <<\_ASBOX
12482## ------------------------------------ ##
12483## Report this to bug-autoconf@gnu.org. ##
12484## ------------------------------------ ##
12485_ASBOX
12486 ) |
12487 sed "s/^/$as_me: WARNING: /" >&2
12488 ;;
12489 no:yes )
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12496 (
12497 cat <<\_ASBOX
12498## ------------------------------------ ##
12499## Report this to bug-autoconf@gnu.org. ##
12500## ------------------------------------ ##
12501_ASBOX
12502 ) |
12503 sed "s/^/$as_me: WARNING: /" >&2
12504 ;;
12505esac
12506echo "$as_me:$LINENO: checking for $ac_header" >&5
12507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12508if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
12511 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12512fi
e6cc62c6
VS
12513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12515
21d1c967 12516fi
e6cc62c6
VS
12517if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF
12521
12522fi
12523
12524done
12525
12526
12527for ac_header in unistd.h
12528do
12529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12530if eval "test \"\${$as_ac_Header+set}\" = set"; then
12531 echo "$as_me:$LINENO: checking for $ac_header" >&5
12532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12533if eval "test \"\${$as_ac_Header+set}\" = set"; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535fi
12536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12538else
12539 # Is the header compilable?
12540echo "$as_me:$LINENO: checking $ac_header usability" >&5
12541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12542cat >conftest.$ac_ext <<_ACEOF
12543#line $LINENO "configure"
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549$ac_includes_default
12550#include <$ac_header>
12551_ACEOF
12552rm -f conftest.$ac_objext
12553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } &&
12558 { ac_try='test -s conftest.$ac_objext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_header_compiler=yes
12565else
12566 echo "$as_me: failed program was:" >&5
12567sed 's/^/| /' conftest.$ac_ext >&5
12568
12569ac_header_compiler=no
12570fi
12571rm -f conftest.$ac_objext conftest.$ac_ext
12572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12573echo "${ECHO_T}$ac_header_compiler" >&6
12574
12575# Is the header present?
12576echo "$as_me:$LINENO: checking $ac_header presence" >&5
12577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12578cat >conftest.$ac_ext <<_ACEOF
12579#line $LINENO "configure"
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
12584/* end confdefs.h. */
12585#include <$ac_header>
12586_ACEOF
12587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } >/dev/null; then
12595 if test -s conftest.err; then
12596 ac_cpp_err=$ac_c_preproc_warn_flag
12597 else
12598 ac_cpp_err=
12599 fi
a0b9e27f 12600else
e6cc62c6
VS
12601 ac_cpp_err=yes
12602fi
12603if test -z "$ac_cpp_err"; then
12604 ac_header_preproc=yes
12605else
12606 echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609 ac_header_preproc=no
12610fi
12611rm -f conftest.err conftest.$ac_ext
12612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12613echo "${ECHO_T}$ac_header_preproc" >&6
12614
12615# So? What about this header?
12616case $ac_header_compiler:$ac_header_preproc in
12617 yes:no )
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12622 (
12623 cat <<\_ASBOX
12624## ------------------------------------ ##
12625## Report this to bug-autoconf@gnu.org. ##
12626## ------------------------------------ ##
12627_ASBOX
12628 ) |
12629 sed "s/^/$as_me: WARNING: /" >&2
12630 ;;
12631 no:yes )
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12638 (
12639 cat <<\_ASBOX
12640## ------------------------------------ ##
12641## Report this to bug-autoconf@gnu.org. ##
12642## ------------------------------------ ##
12643_ASBOX
12644 ) |
12645 sed "s/^/$as_me: WARNING: /" >&2
12646 ;;
12647esac
12648echo "$as_me:$LINENO: checking for $ac_header" >&5
12649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12650if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652else
12653 eval "$as_ac_Header=$ac_header_preproc"
12654fi
12655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12657
12658fi
12659if test `eval echo '${'$as_ac_Header'}'` = yes; then
12660 cat >>confdefs.h <<_ACEOF
12661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12662_ACEOF
12663
d4158b5d 12664fi
e6cc62c6 12665
21d1c967 12666done
f6bcfd97 12667
e6cc62c6
VS
12668
12669for ac_header in wchar.h
12670do
12671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12672if eval "test \"\${$as_ac_Header+set}\" = set"; then
12673 echo "$as_me:$LINENO: checking for $ac_header" >&5
12674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12675if eval "test \"\${$as_ac_Header+set}\" = set"; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677fi
12678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12680else
12681 # Is the header compilable?
12682echo "$as_me:$LINENO: checking $ac_header usability" >&5
12683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12684cat >conftest.$ac_ext <<_ACEOF
12685#line $LINENO "configure"
12686/* confdefs.h. */
12687_ACEOF
12688cat confdefs.h >>conftest.$ac_ext
12689cat >>conftest.$ac_ext <<_ACEOF
12690/* end confdefs.h. */
12691$ac_includes_default
12692#include <$ac_header>
12693_ACEOF
12694rm -f conftest.$ac_objext
12695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12696 (eval $ac_compile) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -s conftest.$ac_objext'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
12706 ac_header_compiler=yes
12707else
12708 echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
12711ac_header_compiler=no
12712fi
12713rm -f conftest.$ac_objext conftest.$ac_ext
12714echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12715echo "${ECHO_T}$ac_header_compiler" >&6
12716
12717# Is the header present?
12718echo "$as_me:$LINENO: checking $ac_header presence" >&5
12719echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12720cat >conftest.$ac_ext <<_ACEOF
12721#line $LINENO "configure"
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727#include <$ac_header>
12728_ACEOF
12729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } >/dev/null; then
12737 if test -s conftest.err; then
12738 ac_cpp_err=$ac_c_preproc_warn_flag
12739 else
12740 ac_cpp_err=
12741 fi
12742else
12743 ac_cpp_err=yes
12744fi
12745if test -z "$ac_cpp_err"; then
12746 ac_header_preproc=yes
12747else
12748 echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_header_preproc=no
12752fi
12753rm -f conftest.err conftest.$ac_ext
12754echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12755echo "${ECHO_T}$ac_header_preproc" >&6
12756
12757# So? What about this header?
12758case $ac_header_compiler:$ac_header_preproc in
12759 yes:no )
12760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764 (
12765 cat <<\_ASBOX
12766## ------------------------------------ ##
12767## Report this to bug-autoconf@gnu.org. ##
12768## ------------------------------------ ##
12769_ASBOX
12770 ) |
12771 sed "s/^/$as_me: WARNING: /" >&2
12772 ;;
12773 no:yes )
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12777echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12780 (
12781 cat <<\_ASBOX
12782## ------------------------------------ ##
12783## Report this to bug-autoconf@gnu.org. ##
12784## ------------------------------------ ##
12785_ASBOX
12786 ) |
12787 sed "s/^/$as_me: WARNING: /" >&2
12788 ;;
12789esac
12790echo "$as_me:$LINENO: checking for $ac_header" >&5
12791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12792if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12794else
12795 eval "$as_ac_Header=$ac_header_preproc"
12796fi
12797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12799
90dd450c 12800fi
e6cc62c6
VS
12801if test `eval echo '${'$as_ac_Header'}'` = yes; then
12802 cat >>confdefs.h <<_ACEOF
12803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12804_ACEOF
12805
12806fi
12807
12808done
90dd450c 12809
e6cc62c6
VS
12810
12811if test "$ac_cv_header_wchar_h" != "yes"; then
12812
12813for ac_header in wcstr.h
21d1c967 12814do
e6cc62c6
VS
12815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12816if eval "test \"\${$as_ac_Header+set}\" = set"; then
12817 echo "$as_me:$LINENO: checking for $ac_header" >&5
12818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12819if eval "test \"\${$as_ac_Header+set}\" = set"; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821fi
12822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12824else
12825 # Is the header compilable?
12826echo "$as_me:$LINENO: checking $ac_header usability" >&5
12827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12828cat >conftest.$ac_ext <<_ACEOF
12829#line $LINENO "configure"
12830/* confdefs.h. */
12831_ACEOF
12832cat confdefs.h >>conftest.$ac_ext
12833cat >>conftest.$ac_ext <<_ACEOF
12834/* end confdefs.h. */
12835$ac_includes_default
12836#include <$ac_header>
12837_ACEOF
12838rm -f conftest.$ac_objext
12839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840 (eval $ac_compile) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_header_compiler=yes
12851else
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855ac_header_compiler=no
12856fi
12857rm -f conftest.$ac_objext conftest.$ac_ext
12858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12859echo "${ECHO_T}$ac_header_compiler" >&6
12860
12861# Is the header present?
12862echo "$as_me:$LINENO: checking $ac_header presence" >&5
12863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12864cat >conftest.$ac_ext <<_ACEOF
12865#line $LINENO "configure"
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871#include <$ac_header>
12872_ACEOF
12873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } >/dev/null; then
12881 if test -s conftest.err; then
12882 ac_cpp_err=$ac_c_preproc_warn_flag
12883 else
12884 ac_cpp_err=
12885 fi
12886else
12887 ac_cpp_err=yes
12888fi
12889if test -z "$ac_cpp_err"; then
12890 ac_header_preproc=yes
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ac_header_preproc=no
12896fi
12897rm -f conftest.err conftest.$ac_ext
12898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12899echo "${ECHO_T}$ac_header_preproc" >&6
12900
12901# So? What about this header?
12902case $ac_header_compiler:$ac_header_preproc in
12903 yes:no )
12904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12908 (
12909 cat <<\_ASBOX
12910## ------------------------------------ ##
12911## Report this to bug-autoconf@gnu.org. ##
12912## ------------------------------------ ##
12913_ASBOX
12914 ) |
12915 sed "s/^/$as_me: WARNING: /" >&2
12916 ;;
12917 no:yes )
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12924 (
12925 cat <<\_ASBOX
12926## ------------------------------------ ##
12927## Report this to bug-autoconf@gnu.org. ##
12928## ------------------------------------ ##
12929_ASBOX
12930 ) |
12931 sed "s/^/$as_me: WARNING: /" >&2
12932 ;;
12933esac
12934echo "$as_me:$LINENO: checking for $ac_header" >&5
12935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12936if eval "test \"\${$as_ac_Header+set}\" = set"; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12940fi
e6cc62c6
VS
12941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12943
4f14bcd8 12944fi
e6cc62c6
VS
12945if test `eval echo '${'$as_ac_Header'}'` = yes; then
12946 cat >>confdefs.h <<_ACEOF
12947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12948_ACEOF
12949
12950fi
12951
12952done
12953
12954fi
12955
12956
12957for ac_header in fnmatch.h
12958do
12959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12960if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo "$as_me:$LINENO: checking for $ac_header" >&5
12962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12963if eval "test \"\${$as_ac_Header+set}\" = set"; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965fi
12966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12968else
12969 # Is the header compilable?
12970echo "$as_me:$LINENO: checking $ac_header usability" >&5
12971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12972cat >conftest.$ac_ext <<_ACEOF
12973#line $LINENO "configure"
12974/* confdefs.h. */
12975_ACEOF
12976cat confdefs.h >>conftest.$ac_ext
12977cat >>conftest.$ac_ext <<_ACEOF
12978/* end confdefs.h. */
12979$ac_includes_default
12980#include <$ac_header>
12981_ACEOF
12982rm -f conftest.$ac_objext
12983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_header_compiler=yes
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999ac_header_compiler=no
13000fi
13001rm -f conftest.$ac_objext conftest.$ac_ext
13002echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13003echo "${ECHO_T}$ac_header_compiler" >&6
13004
13005# Is the header present?
13006echo "$as_me:$LINENO: checking $ac_header presence" >&5
13007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13008cat >conftest.$ac_ext <<_ACEOF
13009#line $LINENO "configure"
13010/* confdefs.h. */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h. */
13015#include <$ac_header>
13016_ACEOF
13017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } >/dev/null; then
13025 if test -s conftest.err; then
13026 ac_cpp_err=$ac_c_preproc_warn_flag
13027 else
13028 ac_cpp_err=
13029 fi
13030else
13031 ac_cpp_err=yes
13032fi
13033if test -z "$ac_cpp_err"; then
13034 ac_header_preproc=yes
13035else
13036 echo "$as_me: failed program was:" >&5
13037sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 ac_header_preproc=no
13040fi
13041rm -f conftest.err conftest.$ac_ext
13042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13043echo "${ECHO_T}$ac_header_preproc" >&6
13044
13045# So? What about this header?
13046case $ac_header_compiler:$ac_header_preproc in
13047 yes:no )
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052 (
13053 cat <<\_ASBOX
13054## ------------------------------------ ##
13055## Report this to bug-autoconf@gnu.org. ##
13056## ------------------------------------ ##
13057_ASBOX
13058 ) |
13059 sed "s/^/$as_me: WARNING: /" >&2
13060 ;;
13061 no:yes )
13062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13068 (
13069 cat <<\_ASBOX
13070## ------------------------------------ ##
13071## Report this to bug-autoconf@gnu.org. ##
13072## ------------------------------------ ##
13073_ASBOX
13074 ) |
13075 sed "s/^/$as_me: WARNING: /" >&2
13076 ;;
13077esac
13078echo "$as_me:$LINENO: checking for $ac_header" >&5
13079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13080if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13082else
e6cc62c6
VS
13083 eval "$as_ac_Header=$ac_header_preproc"
13084fi
13085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13087
21d1c967 13088fi
e6cc62c6
VS
13089if test `eval echo '${'$as_ac_Header'}'` = yes; then
13090 cat >>confdefs.h <<_ACEOF
13091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13092_ACEOF
13093
13094fi
13095
21d1c967 13096done
90dd450c 13097
5c6fa7d2 13098
a0b9e27f 13099if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13100
13101for ac_func in fnmatch
21d1c967 13102do
e6cc62c6
VS
13103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13104echo "$as_me:$LINENO: checking for $ac_func" >&5
13105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13106if eval "test \"\${$as_ac_var+set}\" = set"; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13108else
13109 cat >conftest.$ac_ext <<_ACEOF
13110#line $LINENO "configure"
13111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h. */
a0b9e27f 13116/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13117 which can conflict with char $ac_func (); below.
13118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119 <limits.h> exists even on freestanding compilers. */
13120#ifdef __STDC__
13121# include <limits.h>
13122#else
13123# include <assert.h>
13124#endif
a0b9e27f 13125/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13126#ifdef __cplusplus
13127extern "C"
13128{
13129#endif
a0b9e27f 13130/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13131 builtin and then its argument prototype would still apply. */
13132char $ac_func ();
a0b9e27f
MB
13133/* The GNU C library defines this for functions which it implements
13134 to always fail with ENOSYS. Some functions are actually named
13135 something starting with __ and the normal name is an alias. */
13136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13137choke me
13138#else
e6cc62c6
VS
13139char (*f) () = $ac_func;
13140#endif
13141#ifdef __cplusplus
13142}
a0b9e27f
MB
13143#endif
13144
e6cc62c6
VS
13145int
13146main ()
13147{
13148return f != $ac_func;
13149 ;
13150 return 0;
13151}
13152_ACEOF
13153rm -f conftest.$ac_objext conftest$ac_exeext
13154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13155 (eval $ac_link) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -s conftest$ac_exeext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 eval "$as_ac_var=yes"
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170eval "$as_ac_var=no"
13171fi
13172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13173fi
13174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13176if test `eval echo '${'$as_ac_var'}'` = yes; then
13177 cat >>confdefs.h <<_ACEOF
13178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179_ACEOF
32832908 13180
21d1c967
GD
13181fi
13182done
90dd450c 13183
a0b9e27f 13184fi
90dd450c 13185
e6cc62c6
VS
13186
13187for ac_header in langinfo.h
21d1c967 13188do
e6cc62c6
VS
13189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13190if eval "test \"\${$as_ac_Header+set}\" = set"; then
13191 echo "$as_me:$LINENO: checking for $ac_header" >&5
13192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13193if eval "test \"\${$as_ac_Header+set}\" = set"; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195fi
13196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13198else
13199 # Is the header compilable?
13200echo "$as_me:$LINENO: checking $ac_header usability" >&5
13201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13202cat >conftest.$ac_ext <<_ACEOF
13203#line $LINENO "configure"
13204/* confdefs.h. */
13205_ACEOF
13206cat confdefs.h >>conftest.$ac_ext
13207cat >>conftest.$ac_ext <<_ACEOF
13208/* end confdefs.h. */
13209$ac_includes_default
13210#include <$ac_header>
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_header_compiler=yes
13225else
13226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
13229ac_header_compiler=no
13230fi
13231rm -f conftest.$ac_objext conftest.$ac_ext
13232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13233echo "${ECHO_T}$ac_header_compiler" >&6
13234
13235# Is the header present?
13236echo "$as_me:$LINENO: checking $ac_header presence" >&5
13237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13238cat >conftest.$ac_ext <<_ACEOF
13239#line $LINENO "configure"
13240/* confdefs.h. */
13241_ACEOF
13242cat confdefs.h >>conftest.$ac_ext
13243cat >>conftest.$ac_ext <<_ACEOF
13244/* end confdefs.h. */
13245#include <$ac_header>
13246_ACEOF
13247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } >/dev/null; then
13255 if test -s conftest.err; then
13256 ac_cpp_err=$ac_c_preproc_warn_flag
13257 else
13258 ac_cpp_err=
13259 fi
13260else
13261 ac_cpp_err=yes
13262fi
13263if test -z "$ac_cpp_err"; then
13264 ac_header_preproc=yes
13265else
13266 echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_header_preproc=no
13270fi
13271rm -f conftest.err conftest.$ac_ext
13272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13273echo "${ECHO_T}$ac_header_preproc" >&6
13274
13275# So? What about this header?
13276case $ac_header_compiler:$ac_header_preproc in
13277 yes:no )
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13282 (
13283 cat <<\_ASBOX
13284## ------------------------------------ ##
13285## Report this to bug-autoconf@gnu.org. ##
13286## ------------------------------------ ##
13287_ASBOX
13288 ) |
13289 sed "s/^/$as_me: WARNING: /" >&2
13290 ;;
13291 no:yes )
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13298 (
13299 cat <<\_ASBOX
13300## ------------------------------------ ##
13301## Report this to bug-autoconf@gnu.org. ##
13302## ------------------------------------ ##
13303_ASBOX
13304 ) |
13305 sed "s/^/$as_me: WARNING: /" >&2
13306 ;;
13307esac
13308echo "$as_me:$LINENO: checking for $ac_header" >&5
13309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13310if eval "test \"\${$as_ac_Header+set}\" = set"; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312else
13313 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13314fi
e6cc62c6
VS
13315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13317
4f14bcd8 13318fi
e6cc62c6
VS
13319if test `eval echo '${'$as_ac_Header'}'` = yes; then
13320 cat >>confdefs.h <<_ACEOF
13321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13322_ACEOF
13323
21d1c967 13324fi
e6cc62c6 13325
21d1c967 13326done
3a922bb4 13327
8284b0c5 13328
4f5a7f74
VZ
13329case "${host}" in
13330 *-pc-os2_emx | *-pc-os2-emx )
13331 if test $ac_cv_header_langinfo_h = "yes"; then
13332 LIBS="$LIBS -lintl"
13333 fi
13334 ;;
13335esac
1542ea39 13336
a0b9e27f
MB
13337if test "$wxUSE_GUI" = "yes"; then
13338 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
13339
13340for ac_header in X11/XKBlib.h
21d1c967 13341do
e6cc62c6
VS
13342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343if eval "test \"\${$as_ac_Header+set}\" = set"; then
13344 echo "$as_me:$LINENO: checking for $ac_header" >&5
13345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13346if eval "test \"\${$as_ac_Header+set}\" = set"; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348fi
13349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13351else
13352 # Is the header compilable?
13353echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13355cat >conftest.$ac_ext <<_ACEOF
13356#line $LINENO "configure"
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362$ac_includes_default
13363#include <$ac_header>
13364_ACEOF
13365rm -f conftest.$ac_objext
13366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -s conftest.$ac_objext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ac_header_compiler=yes
13378else
13379 echo "$as_me: failed program was:" >&5
13380sed 's/^/| /' conftest.$ac_ext >&5
13381
13382ac_header_compiler=no
13383fi
13384rm -f conftest.$ac_objext conftest.$ac_ext
13385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386echo "${ECHO_T}$ac_header_compiler" >&6
13387
13388# Is the header present?
13389echo "$as_me:$LINENO: checking $ac_header presence" >&5
13390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13391cat >conftest.$ac_ext <<_ACEOF
13392#line $LINENO "configure"
13393/* confdefs.h. */
13394_ACEOF
13395cat confdefs.h >>conftest.$ac_ext
13396cat >>conftest.$ac_ext <<_ACEOF
13397/* end confdefs.h. */
13398#include <$ac_header>
13399_ACEOF
13400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } >/dev/null; then
13408 if test -s conftest.err; then
13409 ac_cpp_err=$ac_c_preproc_warn_flag
13410 else
13411 ac_cpp_err=
13412 fi
13413else
13414 ac_cpp_err=yes
13415fi
13416if test -z "$ac_cpp_err"; then
13417 ac_header_preproc=yes
13418else
13419 echo "$as_me: failed program was:" >&5
13420sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 ac_header_preproc=no
13423fi
13424rm -f conftest.err conftest.$ac_ext
13425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426echo "${ECHO_T}$ac_header_preproc" >&6
13427
13428# So? What about this header?
13429case $ac_header_compiler:$ac_header_preproc in
13430 yes:no )
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13435 (
13436 cat <<\_ASBOX
13437## ------------------------------------ ##
13438## Report this to bug-autoconf@gnu.org. ##
13439## ------------------------------------ ##
13440_ASBOX
13441 ) |
13442 sed "s/^/$as_me: WARNING: /" >&2
13443 ;;
13444 no:yes )
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13451 (
13452 cat <<\_ASBOX
13453## ------------------------------------ ##
13454## Report this to bug-autoconf@gnu.org. ##
13455## ------------------------------------ ##
13456_ASBOX
13457 ) |
13458 sed "s/^/$as_me: WARNING: /" >&2
13459 ;;
13460esac
13461echo "$as_me:$LINENO: checking for $ac_header" >&5
13462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465else
13466 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13467fi
e6cc62c6
VS
13468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13470
90dd450c 13471fi
e6cc62c6
VS
13472if test `eval echo '${'$as_ac_Header'}'` = yes; then
13473 cat >>confdefs.h <<_ACEOF
13474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13475_ACEOF
13476
247f5006 13477fi
e6cc62c6 13478
247f5006
VZ
13479done
13480
a0b9e27f
MB
13481 fi
13482fi
247f5006 13483
247f5006 13484
e6cc62c6
VS
13485echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13486echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13487if test "${ac_cv_c_const+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489else
13490 cat >conftest.$ac_ext <<_ACEOF
13491#line $LINENO "configure"
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497
13498int
13499main ()
13500{
13501/* FIXME: Include the comments suggested by Paul. */
13502#ifndef __cplusplus
13503 /* Ultrix mips cc rejects this. */
13504 typedef int charset[2];
13505 const charset x;
13506 /* SunOS 4.1.1 cc rejects this. */
13507 char const *const *ccp;
13508 char **p;
13509 /* NEC SVR4.0.2 mips cc rejects this. */
13510 struct point {int x, y;};
13511 static struct point const zero = {0,0};
13512 /* AIX XL C 1.02.0.0 rejects this.
13513 It does not let you subtract one const X* pointer from another in
13514 an arm of an if-expression whose if-part is not a constant
13515 expression */
13516 const char *g = "string";
13517 ccp = &g + (g ? g-g : 0);
13518 /* HPUX 7.0 cc rejects these. */
13519 ++ccp;
13520 p = (char**) ccp;
13521 ccp = (char const *const *) p;
13522 { /* SCO 3.2v4 cc rejects this. */
13523 char *t;
13524 char const *s = 0 ? (char *) 0 : (char const *) 0;
13525
13526 *t++ = 0;
13527 }
13528 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13529 int x[] = {25, 17};
13530 const int *foo = &x[0];
13531 ++foo;
13532 }
13533 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13534 typedef const int *iptr;
13535 iptr p = 0;
13536 ++p;
13537 }
13538 { /* AIX XL C 1.02.0.0 rejects this saying
13539 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13540 struct s { int j; const int *ap[3]; };
13541 struct s *b; b->j = 5;
13542 }
13543 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13544 const int foo = 10;
13545 }
13546#endif
13547
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } &&
13558 { ac_try='test -s conftest.$ac_objext'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
a0b9e27f 13564 ac_cv_c_const=yes
247f5006 13565else
e6cc62c6
VS
13566 echo "$as_me: failed program was:" >&5
13567sed 's/^/| /' conftest.$ac_ext >&5
13568
13569ac_cv_c_const=no
247f5006 13570fi
e6cc62c6 13571rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13572fi
e6cc62c6
VS
13573echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13574echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13575if test $ac_cv_c_const = no; then
e6cc62c6
VS
13576
13577cat >>confdefs.h <<\_ACEOF
13578#define const
13579_ACEOF
10f2d63a 13580
90dd450c 13581fi
81809c07 13582
e6cc62c6
VS
13583echo "$as_me:$LINENO: checking for inline" >&5
13584echo $ECHO_N "checking for inline... $ECHO_C" >&6
13585if test "${ac_cv_c_inline+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13587else
a0b9e27f
MB
13588 ac_cv_c_inline=no
13589for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13590 cat >conftest.$ac_ext <<_ACEOF
13591#line $LINENO "configure"
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
13597#ifndef __cplusplus
13598typedef int foo_t;
13599static $ac_kw foo_t static_foo () {return 0; }
13600$ac_kw foo_t foo () {return 0; }
13601#endif
a0b9e27f 13602
e6cc62c6
VS
13603_ACEOF
13604rm -f conftest.$ac_objext
13605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13607 ac_status=$?
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
a0b9e27f 13616 ac_cv_c_inline=$ac_kw; break
247f5006 13617else
e6cc62c6
VS
13618 echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
13620
247f5006 13621fi
e6cc62c6 13622rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13623done
247f5006
VZ
13624
13625fi
e6cc62c6
VS
13626echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13627echo "${ECHO_T}$ac_cv_c_inline" >&6
13628case $ac_cv_c_inline in
a0b9e27f 13629 inline | yes) ;;
e6cc62c6
VS
13630 no)
13631cat >>confdefs.h <<\_ACEOF
13632#define inline
13633_ACEOF
a0b9e27f 13634 ;;
e6cc62c6 13635 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13636#define inline $ac_cv_c_inline
e6cc62c6 13637_ACEOF
a0b9e27f
MB
13638 ;;
13639esac
247f5006 13640
247f5006 13641
e6cc62c6
VS
13642echo "$as_me:$LINENO: checking for char" >&5
13643echo $ECHO_N "checking for char... $ECHO_C" >&6
13644if test "${ac_cv_type_char+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646else
13647 cat >conftest.$ac_ext <<_ACEOF
13648#line $LINENO "configure"
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654$ac_includes_default
13655int
13656main ()
13657{
13658if ((char *) 0)
13659 return 0;
13660if (sizeof (char))
13661 return 0;
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_cv_type_char=yes
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683ac_cv_type_char=no
13684fi
13685rm -f conftest.$ac_objext conftest.$ac_ext
13686fi
13687echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13688echo "${ECHO_T}$ac_cv_type_char" >&6
13689
13690echo "$as_me:$LINENO: checking size of char" >&5
13691echo $ECHO_N "checking size of char... $ECHO_C" >&6
13692if test "${ac_cv_sizeof_char+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 if test "$ac_cv_type_char" = yes; then
13696 # The cast to unsigned long works around a bug in the HP C Compiler
13697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13699 # This bug is HP SR number 8606223364.
a0b9e27f 13700 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13701 # Depending upon the size, compute the lo and hi bounds.
13702cat >conftest.$ac_ext <<_ACEOF
13703#line $LINENO "configure"
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709$ac_includes_default
13710int
13711main ()
13712{
13713static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13714test_array [0] = 0
13715
13716 ;
13717 return 0;
13718}
13719_ACEOF
13720rm -f conftest.$ac_objext
13721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_lo=0 ac_mid=0
13733 while :; do
13734 cat >conftest.$ac_ext <<_ACEOF
13735#line $LINENO "configure"
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
13741$ac_includes_default
13742int
13743main ()
13744{
13745static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13746test_array [0] = 0
13747
13748 ;
13749 return 0;
13750}
13751_ACEOF
13752rm -f conftest.$ac_objext
13753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754 (eval $ac_compile) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_hi=$ac_mid; break
13765else
13766 echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769ac_lo=`expr $ac_mid + 1`
13770 if test $ac_lo -le $ac_mid; then
13771 ac_lo= ac_hi=
13772 break
13773 fi
13774 ac_mid=`expr 2 '*' $ac_mid + 1`
13775fi
13776rm -f conftest.$ac_objext conftest.$ac_ext
13777 done
a0b9e27f 13778else
e6cc62c6
VS
13779 echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782cat >conftest.$ac_ext <<_ACEOF
13783#line $LINENO "configure"
13784/* confdefs.h. */
13785_ACEOF
13786cat confdefs.h >>conftest.$ac_ext
13787cat >>conftest.$ac_ext <<_ACEOF
13788/* end confdefs.h. */
13789$ac_includes_default
13790int
13791main ()
13792{
13793static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13794test_array [0] = 0
13795
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -s conftest.$ac_objext'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13812 ac_hi=-1 ac_mid=-1
13813 while :; do
13814 cat >conftest.$ac_ext <<_ACEOF
13815#line $LINENO "configure"
13816/* confdefs.h. */
13817_ACEOF
13818cat confdefs.h >>conftest.$ac_ext
13819cat >>conftest.$ac_ext <<_ACEOF
13820/* end confdefs.h. */
13821$ac_includes_default
13822int
13823main ()
13824{
13825static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13826test_array [0] = 0
13827
13828 ;
13829 return 0;
13830}
13831_ACEOF
13832rm -f conftest.$ac_objext
13833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834 (eval $ac_compile) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_lo=$ac_mid; break
13845else
13846 echo "$as_me: failed program was:" >&5
13847sed 's/^/| /' conftest.$ac_ext >&5
13848
13849ac_hi=`expr '(' $ac_mid ')' - 1`
13850 if test $ac_mid -le $ac_hi; then
13851 ac_lo= ac_hi=
13852 break
13853 fi
13854 ac_mid=`expr 2 '*' $ac_mid`
13855fi
13856rm -f conftest.$ac_objext conftest.$ac_ext
13857 done
13858else
13859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862ac_lo= ac_hi=
13863fi
13864rm -f conftest.$ac_objext conftest.$ac_ext
13865fi
13866rm -f conftest.$ac_objext conftest.$ac_ext
13867# Binary search between lo and hi bounds.
13868while test "x$ac_lo" != "x$ac_hi"; do
13869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13870 cat >conftest.$ac_ext <<_ACEOF
13871#line $LINENO "configure"
13872/* confdefs.h. */
13873_ACEOF
13874cat confdefs.h >>conftest.$ac_ext
13875cat >>conftest.$ac_ext <<_ACEOF
13876/* end confdefs.h. */
13877$ac_includes_default
13878int
13879main ()
13880{
13881static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13882test_array [0] = 0
13883
13884 ;
13885 return 0;
13886}
13887_ACEOF
13888rm -f conftest.$ac_objext
13889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_hi=$ac_mid
13901else
13902 echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
13905ac_lo=`expr '(' $ac_mid ')' + 1`
13906fi
13907rm -f conftest.$ac_objext conftest.$ac_ext
13908done
13909case $ac_lo in
13910?*) ac_cv_sizeof_char=$ac_lo;;
13911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13912See \`config.log' for more details." >&5
13913echo "$as_me: error: cannot compute sizeof (char), 77
13914See \`config.log' for more details." >&2;}
13915 { (exit 1); exit 1; }; } ;;
13916esac
13917else
13918 if test "$cross_compiling" = yes; then
13919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13920See \`config.log' for more details." >&5
13921echo "$as_me: error: cannot run test program while cross compiling
13922See \`config.log' for more details." >&2;}
13923 { (exit 1); exit 1; }; }
13924else
13925 cat >conftest.$ac_ext <<_ACEOF
13926#line $LINENO "configure"
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932$ac_includes_default
13933long longval () { return (long) (sizeof (char)); }
13934unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13935#include <stdio.h>
e6cc62c6
VS
13936#include <stdlib.h>
13937int
13938main ()
247f5006 13939{
e6cc62c6
VS
13940
13941 FILE *f = fopen ("conftest.val", "w");
13942 if (! f)
13943 exit (1);
13944 if (((long) (sizeof (char))) < 0)
13945 {
13946 long i = longval ();
13947 if (i != ((long) (sizeof (char))))
13948 exit (1);
13949 fprintf (f, "%ld\n", i);
13950 }
13951 else
13952 {
13953 unsigned long i = ulongval ();
13954 if (i != ((long) (sizeof (char))))
13955 exit (1);
13956 fprintf (f, "%lu\n", i);
13957 }
13958 exit (ferror (f) || fclose (f) != 0);
13959
13960 ;
13961 return 0;
52127426 13962}
e6cc62c6
VS
13963_ACEOF
13964rm -f conftest$ac_exeext
13965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13966 (eval $ac_link) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_cv_sizeof_char=`cat conftest.val`
13976else
13977 echo "$as_me: program exited with status $ac_status" >&5
13978echo "$as_me: failed program was:" >&5
13979sed 's/^/| /' conftest.$ac_ext >&5
13980
13981( exit $ac_status )
13982{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13983See \`config.log' for more details." >&5
13984echo "$as_me: error: cannot compute sizeof (char), 77
13985See \`config.log' for more details." >&2;}
13986 { (exit 1); exit 1; }; }
13987fi
13988rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13989fi
13990fi
13991rm -f conftest.val
247f5006 13992else
a0b9e27f 13993 ac_cv_sizeof_char=0
247f5006 13994fi
247f5006 13995fi
e6cc62c6
VS
13996echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13997echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13998cat >>confdefs.h <<_ACEOF
13999#define SIZEOF_CHAR $ac_cv_sizeof_char
14000_ACEOF
14001
14002
14003echo "$as_me:$LINENO: checking for short" >&5
14004echo $ECHO_N "checking for short... $ECHO_C" >&6
14005if test "${ac_cv_type_short+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 cat >conftest.$ac_ext <<_ACEOF
14009#line $LINENO "configure"
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015$ac_includes_default
14016int
14017main ()
14018{
14019if ((short *) 0)
14020 return 0;
14021if (sizeof (short))
14022 return 0;
14023 ;
14024 return 0;
14025}
14026_ACEOF
14027rm -f conftest.$ac_objext
14028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029 (eval $ac_compile) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_type_short=yes
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044ac_cv_type_short=no
14045fi
14046rm -f conftest.$ac_objext conftest.$ac_ext
14047fi
14048echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14049echo "${ECHO_T}$ac_cv_type_short" >&6
14050
14051echo "$as_me:$LINENO: checking size of short" >&5
14052echo $ECHO_N "checking size of short... $ECHO_C" >&6
14053if test "${ac_cv_sizeof_short+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055else
14056 if test "$ac_cv_type_short" = yes; then
14057 # The cast to unsigned long works around a bug in the HP C Compiler
14058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14060 # This bug is HP SR number 8606223364.
14061 if test "$cross_compiling" = yes; then
14062 # Depending upon the size, compute the lo and hi bounds.
14063cat >conftest.$ac_ext <<_ACEOF
14064#line $LINENO "configure"
14065/* confdefs.h. */
14066_ACEOF
14067cat confdefs.h >>conftest.$ac_ext
14068cat >>conftest.$ac_ext <<_ACEOF
14069/* end confdefs.h. */
14070$ac_includes_default
14071int
14072main ()
14073{
14074static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14075test_array [0] = 0
247f5006 14076
e6cc62c6
VS
14077 ;
14078 return 0;
14079}
14080_ACEOF
14081rm -f conftest.$ac_objext
14082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14083 (eval $ac_compile) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -s conftest.$ac_objext'
14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 ac_lo=0 ac_mid=0
14094 while :; do
14095 cat >conftest.$ac_ext <<_ACEOF
14096#line $LINENO "configure"
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102$ac_includes_default
14103int
14104main ()
14105{
14106static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14107test_array [0] = 0
14108
14109 ;
14110 return 0;
14111}
14112_ACEOF
14113rm -f conftest.$ac_objext
14114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14115 (eval $ac_compile) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } &&
14119 { ac_try='test -s conftest.$ac_objext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 ac_hi=$ac_mid; break
14126else
14127 echo "$as_me: failed program was:" >&5
14128sed 's/^/| /' conftest.$ac_ext >&5
14129
14130ac_lo=`expr $ac_mid + 1`
14131 if test $ac_lo -le $ac_mid; then
14132 ac_lo= ac_hi=
14133 break
14134 fi
14135 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14136fi
e6cc62c6
VS
14137rm -f conftest.$ac_objext conftest.$ac_ext
14138 done
14139else
14140 echo "$as_me: failed program was:" >&5
14141sed 's/^/| /' conftest.$ac_ext >&5
14142
14143cat >conftest.$ac_ext <<_ACEOF
14144#line $LINENO "configure"
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150$ac_includes_default
14151int
14152main ()
14153{
14154static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14155test_array [0] = 0
247f5006 14156
e6cc62c6
VS
14157 ;
14158 return 0;
14159}
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_hi=-1 ac_mid=-1
14174 while :; do
14175 cat >conftest.$ac_ext <<_ACEOF
14176#line $LINENO "configure"
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
14181/* end confdefs.h. */
14182$ac_includes_default
14183int
14184main ()
14185{
14186static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14187test_array [0] = 0
247f5006 14188
e6cc62c6
VS
14189 ;
14190 return 0;
14191}
14192_ACEOF
14193rm -f conftest.$ac_objext
14194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14202 ac_status=$?
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_lo=$ac_mid; break
14206else
14207 echo "$as_me: failed program was:" >&5
14208sed 's/^/| /' conftest.$ac_ext >&5
14209
14210ac_hi=`expr '(' $ac_mid ')' - 1`
14211 if test $ac_mid -le $ac_hi; then
14212 ac_lo= ac_hi=
14213 break
14214 fi
14215 ac_mid=`expr 2 '*' $ac_mid`
14216fi
14217rm -f conftest.$ac_objext conftest.$ac_ext
14218 done
247f5006 14219else
e6cc62c6
VS
14220 echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223ac_lo= ac_hi=
14224fi
14225rm -f conftest.$ac_objext conftest.$ac_ext
14226fi
14227rm -f conftest.$ac_objext conftest.$ac_ext
14228# Binary search between lo and hi bounds.
14229while test "x$ac_lo" != "x$ac_hi"; do
14230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14231 cat >conftest.$ac_ext <<_ACEOF
14232#line $LINENO "configure"
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
14237/* end confdefs.h. */
14238$ac_includes_default
14239int
14240main ()
14241{
14242static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14243test_array [0] = 0
14244
14245 ;
14246 return 0;
14247}
14248_ACEOF
14249rm -f conftest.$ac_objext
14250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251 (eval $ac_compile) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_hi=$ac_mid
14262else
14263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266ac_lo=`expr '(' $ac_mid ')' + 1`
14267fi
14268rm -f conftest.$ac_objext conftest.$ac_ext
14269done
14270case $ac_lo in
14271?*) ac_cv_sizeof_short=$ac_lo;;
14272'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14273See \`config.log' for more details." >&5
14274echo "$as_me: error: cannot compute sizeof (short), 77
14275See \`config.log' for more details." >&2;}
14276 { (exit 1); exit 1; }; } ;;
14277esac
247f5006 14278else
e6cc62c6
VS
14279 if test "$cross_compiling" = yes; then
14280 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14281See \`config.log' for more details." >&5
14282echo "$as_me: error: cannot run test program while cross compiling
14283See \`config.log' for more details." >&2;}
14284 { (exit 1); exit 1; }; }
14285else
14286 cat >conftest.$ac_ext <<_ACEOF
14287#line $LINENO "configure"
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_includes_default
14294long longval () { return (long) (sizeof (short)); }
14295unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14296#include <stdio.h>
e6cc62c6
VS
14297#include <stdlib.h>
14298int
14299main ()
a0b9e27f 14300{
e6cc62c6
VS
14301
14302 FILE *f = fopen ("conftest.val", "w");
14303 if (! f)
14304 exit (1);
14305 if (((long) (sizeof (short))) < 0)
14306 {
14307 long i = longval ();
14308 if (i != ((long) (sizeof (short))))
14309 exit (1);
14310 fprintf (f, "%ld\n", i);
14311 }
14312 else
14313 {
14314 unsigned long i = ulongval ();
14315 if (i != ((long) (sizeof (short))))
14316 exit (1);
14317 fprintf (f, "%lu\n", i);
14318 }
14319 exit (ferror (f) || fclose (f) != 0);
14320
14321 ;
14322 return 0;
a0b9e27f 14323}
e6cc62c6
VS
14324_ACEOF
14325rm -f conftest$ac_exeext
14326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14327 (eval $ac_link) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_sizeof_short=`cat conftest.val`
14337else
14338 echo "$as_me: program exited with status $ac_status" >&5
14339echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
14342( exit $ac_status )
14343{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14344See \`config.log' for more details." >&5
14345echo "$as_me: error: cannot compute sizeof (short), 77
14346See \`config.log' for more details." >&2;}
14347 { (exit 1); exit 1; }; }
14348fi
14349rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14350fi
14351fi
14352rm -f conftest.val
247f5006 14353else
a0b9e27f 14354 ac_cv_sizeof_short=0
247f5006 14355fi
247f5006 14356fi
e6cc62c6
VS
14357echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14358echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14359cat >>confdefs.h <<_ACEOF
14360#define SIZEOF_SHORT $ac_cv_sizeof_short
14361_ACEOF
14362
14363
14364echo "$as_me:$LINENO: checking for void *" >&5
14365echo $ECHO_N "checking for void *... $ECHO_C" >&6
14366if test "${ac_cv_type_void_p+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368else
14369 cat >conftest.$ac_ext <<_ACEOF
14370#line $LINENO "configure"
14371/* confdefs.h. */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
14375/* end confdefs.h. */
14376$ac_includes_default
14377int
14378main ()
14379{
14380if ((void * *) 0)
14381 return 0;
14382if (sizeof (void *))
14383 return 0;
14384 ;
14385 return 0;
14386}
14387_ACEOF
14388rm -f conftest.$ac_objext
14389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14390 (eval $ac_compile) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_cv_type_void_p=yes
14401else
14402 echo "$as_me: failed program was:" >&5
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
14405ac_cv_type_void_p=no
14406fi
14407rm -f conftest.$ac_objext conftest.$ac_ext
14408fi
14409echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14410echo "${ECHO_T}$ac_cv_type_void_p" >&6
14411
14412echo "$as_me:$LINENO: checking size of void *" >&5
14413echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14414if test "${ac_cv_sizeof_void_p+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
14417 if test "$ac_cv_type_void_p" = yes; then
14418 # The cast to unsigned long works around a bug in the HP C Compiler
14419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14421 # This bug is HP SR number 8606223364.
14422 if test "$cross_compiling" = yes; then
14423 # Depending upon the size, compute the lo and hi bounds.
14424cat >conftest.$ac_ext <<_ACEOF
14425#line $LINENO "configure"
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
14431$ac_includes_default
14432int
14433main ()
14434{
14435static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14436test_array [0] = 0
14437
14438 ;
14439 return 0;
14440}
14441_ACEOF
14442rm -f conftest.$ac_objext
14443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_lo=0 ac_mid=0
14455 while :; do
14456 cat >conftest.$ac_ext <<_ACEOF
14457#line $LINENO "configure"
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
14463$ac_includes_default
14464int
14465main ()
14466{
14467static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14468test_array [0] = 0
247f5006 14469
e6cc62c6
VS
14470 ;
14471 return 0;
14472}
14473_ACEOF
14474rm -f conftest.$ac_objext
14475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_hi=$ac_mid; break
14487else
14488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491ac_lo=`expr $ac_mid + 1`
14492 if test $ac_lo -le $ac_mid; then
14493 ac_lo= ac_hi=
14494 break
14495 fi
14496 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14497fi
e6cc62c6
VS
14498rm -f conftest.$ac_objext conftest.$ac_ext
14499 done
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504cat >conftest.$ac_ext <<_ACEOF
14505#line $LINENO "configure"
14506/* confdefs.h. */
14507_ACEOF
14508cat confdefs.h >>conftest.$ac_ext
14509cat >>conftest.$ac_ext <<_ACEOF
14510/* end confdefs.h. */
14511$ac_includes_default
14512int
14513main ()
14514{
14515static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14516test_array [0] = 0
247f5006 14517
e6cc62c6
VS
14518 ;
14519 return 0;
14520}
14521_ACEOF
14522rm -f conftest.$ac_objext
14523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524 (eval $ac_compile) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -s conftest.$ac_objext'
14529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530 (eval $ac_try) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_hi=-1 ac_mid=-1
14535 while :; do
14536 cat >conftest.$ac_ext <<_ACEOF
14537#line $LINENO "configure"
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543$ac_includes_default
14544int
14545main ()
14546{
14547static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14548test_array [0] = 0
247f5006 14549
e6cc62c6
VS
14550 ;
14551 return 0;
14552}
14553_ACEOF
14554rm -f conftest.$ac_objext
14555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14556 (eval $ac_compile) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -s conftest.$ac_objext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_lo=$ac_mid; break
14567else
14568 echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571ac_hi=`expr '(' $ac_mid ')' - 1`
14572 if test $ac_mid -le $ac_hi; then
14573 ac_lo= ac_hi=
14574 break
14575 fi
14576 ac_mid=`expr 2 '*' $ac_mid`
14577fi
14578rm -f conftest.$ac_objext conftest.$ac_ext
14579 done
a0b9e27f 14580else
e6cc62c6
VS
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584ac_lo= ac_hi=
14585fi
14586rm -f conftest.$ac_objext conftest.$ac_ext
14587fi
14588rm -f conftest.$ac_objext conftest.$ac_ext
14589# Binary search between lo and hi bounds.
14590while test "x$ac_lo" != "x$ac_hi"; do
14591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14592 cat >conftest.$ac_ext <<_ACEOF
14593#line $LINENO "configure"
14594/* confdefs.h. */
14595_ACEOF
14596cat confdefs.h >>conftest.$ac_ext
14597cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */
14599$ac_includes_default
14600int
14601main ()
14602{
14603static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14604test_array [0] = 0
14605
14606 ;
14607 return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext
14611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_hi=$ac_mid
14623else
14624 echo "$as_me: failed program was:" >&5
14625sed 's/^/| /' conftest.$ac_ext >&5
14626
14627ac_lo=`expr '(' $ac_mid ')' + 1`
14628fi
14629rm -f conftest.$ac_objext conftest.$ac_ext
14630done
14631case $ac_lo in
14632?*) ac_cv_sizeof_void_p=$ac_lo;;
14633'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14634See \`config.log' for more details." >&5
14635echo "$as_me: error: cannot compute sizeof (void *), 77
14636See \`config.log' for more details." >&2;}
14637 { (exit 1); exit 1; }; } ;;
14638esac
247f5006 14639else
e6cc62c6
VS
14640 if test "$cross_compiling" = yes; then
14641 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14642See \`config.log' for more details." >&5
14643echo "$as_me: error: cannot run test program while cross compiling
14644See \`config.log' for more details." >&2;}
14645 { (exit 1); exit 1; }; }
14646else
14647 cat >conftest.$ac_ext <<_ACEOF
14648#line $LINENO "configure"
14649/* confdefs.h. */
14650_ACEOF
14651cat confdefs.h >>conftest.$ac_ext
14652cat >>conftest.$ac_ext <<_ACEOF
14653/* end confdefs.h. */
14654$ac_includes_default
14655long longval () { return (long) (sizeof (void *)); }
14656unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14657#include <stdio.h>
e6cc62c6
VS
14658#include <stdlib.h>
14659int
14660main ()
247f5006 14661{
e6cc62c6
VS
14662
14663 FILE *f = fopen ("conftest.val", "w");
14664 if (! f)
14665 exit (1);
14666 if (((long) (sizeof (void *))) < 0)
14667 {
14668 long i = longval ();
14669 if (i != ((long) (sizeof (void *))))
14670 exit (1);
14671 fprintf (f, "%ld\n", i);
14672 }
14673 else
14674 {
14675 unsigned long i = ulongval ();
14676 if (i != ((long) (sizeof (void *))))
14677 exit (1);
14678 fprintf (f, "%lu\n", i);
14679 }
14680 exit (ferror (f) || fclose (f) != 0);
14681
14682 ;
14683 return 0;
5c6fa7d2 14684}
e6cc62c6
VS
14685_ACEOF
14686rm -f conftest$ac_exeext
14687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688 (eval $ac_link) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_sizeof_void_p=`cat conftest.val`
14698else
14699 echo "$as_me: program exited with status $ac_status" >&5
14700echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703( exit $ac_status )
14704{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14705See \`config.log' for more details." >&5
14706echo "$as_me: error: cannot compute sizeof (void *), 77
14707See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; }
14709fi
14710rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14711fi
14712fi
14713rm -f conftest.val
a0b9e27f 14714else
a0b9e27f
MB
14715 ac_cv_sizeof_void_p=0
14716fi
a0b9e27f 14717fi
e6cc62c6
VS
14718echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14719echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14720cat >>confdefs.h <<_ACEOF
14721#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14722_ACEOF
14723
14724
14725echo "$as_me:$LINENO: checking for int" >&5
14726echo $ECHO_N "checking for int... $ECHO_C" >&6
14727if test "${ac_cv_type_int+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729else
14730 cat >conftest.$ac_ext <<_ACEOF
14731#line $LINENO "configure"
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
14736/* end confdefs.h. */
14737$ac_includes_default
14738int
14739main ()
14740{
14741if ((int *) 0)
14742 return 0;
14743if (sizeof (int))
14744 return 0;
14745 ;
14746 return 0;
14747}
14748_ACEOF
14749rm -f conftest.$ac_objext
14750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751 (eval $ac_compile) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_cv_type_int=yes
14762else
14763 echo "$as_me: failed program was:" >&5
14764sed 's/^/| /' conftest.$ac_ext >&5
14765
14766ac_cv_type_int=no
14767fi
14768rm -f conftest.$ac_objext conftest.$ac_ext
14769fi
14770echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14771echo "${ECHO_T}$ac_cv_type_int" >&6
14772
14773echo "$as_me:$LINENO: checking size of int" >&5
14774echo $ECHO_N "checking size of int... $ECHO_C" >&6
14775if test "${ac_cv_sizeof_int+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777else
14778 if test "$ac_cv_type_int" = yes; then
14779 # The cast to unsigned long works around a bug in the HP C Compiler
14780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14782 # This bug is HP SR number 8606223364.
14783 if test "$cross_compiling" = yes; then
14784 # Depending upon the size, compute the lo and hi bounds.
14785cat >conftest.$ac_ext <<_ACEOF
14786#line $LINENO "configure"
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
14792$ac_includes_default
14793int
14794main ()
14795{
14796static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14797test_array [0] = 0
8284b0c5 14798
e6cc62c6
VS
14799 ;
14800 return 0;
14801}
14802_ACEOF
14803rm -f conftest.$ac_objext
14804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_lo=0 ac_mid=0
14816 while :; do
14817 cat >conftest.$ac_ext <<_ACEOF
14818#line $LINENO "configure"
14819/* confdefs.h. */
14820_ACEOF
14821cat confdefs.h >>conftest.$ac_ext
14822cat >>conftest.$ac_ext <<_ACEOF
14823/* end confdefs.h. */
14824$ac_includes_default
14825int
14826main ()
14827{
14828static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14829test_array [0] = 0
14830
14831 ;
14832 return 0;
14833}
14834_ACEOF
14835rm -f conftest.$ac_objext
14836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14837 (eval $ac_compile) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -s conftest.$ac_objext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_hi=$ac_mid; break
14848else
14849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
14852ac_lo=`expr $ac_mid + 1`
14853 if test $ac_lo -le $ac_mid; then
14854 ac_lo= ac_hi=
14855 break
14856 fi
14857 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14858fi
e6cc62c6
VS
14859rm -f conftest.$ac_objext conftest.$ac_ext
14860 done
14861else
14862 echo "$as_me: failed program was:" >&5
14863sed 's/^/| /' conftest.$ac_ext >&5
14864
14865cat >conftest.$ac_ext <<_ACEOF
14866#line $LINENO "configure"
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872$ac_includes_default
14873int
14874main ()
14875{
14876static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14877test_array [0] = 0
247f5006 14878
e6cc62c6
VS
14879 ;
14880 return 0;
14881}
14882_ACEOF
14883rm -f conftest.$ac_objext
14884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14885 (eval $ac_compile) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_hi=-1 ac_mid=-1
14896 while :; do
14897 cat >conftest.$ac_ext <<_ACEOF
14898#line $LINENO "configure"
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
14904$ac_includes_default
14905int
14906main ()
14907{
14908static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14909test_array [0] = 0
247f5006 14910
e6cc62c6
VS
14911 ;
14912 return 0;
14913}
14914_ACEOF
14915rm -f conftest.$ac_objext
14916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_lo=$ac_mid; break
14928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932ac_hi=`expr '(' $ac_mid ')' - 1`
14933 if test $ac_mid -le $ac_hi; then
14934 ac_lo= ac_hi=
14935 break
14936 fi
14937 ac_mid=`expr 2 '*' $ac_mid`
14938fi
14939rm -f conftest.$ac_objext conftest.$ac_ext
14940 done
247f5006 14941else
e6cc62c6
VS
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945ac_lo= ac_hi=
14946fi
14947rm -f conftest.$ac_objext conftest.$ac_ext
14948fi
14949rm -f conftest.$ac_objext conftest.$ac_ext
14950# Binary search between lo and hi bounds.
14951while test "x$ac_lo" != "x$ac_hi"; do
14952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14953 cat >conftest.$ac_ext <<_ACEOF
14954#line $LINENO "configure"
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
14960$ac_includes_default
14961int
14962main ()
14963{
14964static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14965test_array [0] = 0
14966
14967 ;
14968 return 0;
14969}
14970_ACEOF
14971rm -f conftest.$ac_objext
14972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_hi=$ac_mid
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988ac_lo=`expr '(' $ac_mid ')' + 1`
14989fi
14990rm -f conftest.$ac_objext conftest.$ac_ext
14991done
14992case $ac_lo in
14993?*) ac_cv_sizeof_int=$ac_lo;;
14994'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14995See \`config.log' for more details." >&5
14996echo "$as_me: error: cannot compute sizeof (int), 77
14997See \`config.log' for more details." >&2;}
14998 { (exit 1); exit 1; }; } ;;
14999esac
a0b9e27f 15000else
e6cc62c6
VS
15001 if test "$cross_compiling" = yes; then
15002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15003See \`config.log' for more details." >&5
15004echo "$as_me: error: cannot run test program while cross compiling
15005See \`config.log' for more details." >&2;}
15006 { (exit 1); exit 1; }; }
15007else
15008 cat >conftest.$ac_ext <<_ACEOF
15009#line $LINENO "configure"
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016long longval () { return (long) (sizeof (int)); }
15017unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15018#include <stdio.h>
e6cc62c6
VS
15019#include <stdlib.h>
15020int
15021main ()
247f5006 15022{
e6cc62c6
VS
15023
15024 FILE *f = fopen ("conftest.val", "w");
15025 if (! f)
15026 exit (1);
15027 if (((long) (sizeof (int))) < 0)
15028 {
15029 long i = longval ();
15030 if (i != ((long) (sizeof (int))))
15031 exit (1);
15032 fprintf (f, "%ld\n", i);
15033 }
15034 else
15035 {
15036 unsigned long i = ulongval ();
15037 if (i != ((long) (sizeof (int))))
15038 exit (1);
15039 fprintf (f, "%lu\n", i);
15040 }
15041 exit (ferror (f) || fclose (f) != 0);
15042
15043 ;
15044 return 0;
247f5006 15045}
e6cc62c6
VS
15046_ACEOF
15047rm -f conftest$ac_exeext
15048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15049 (eval $ac_link) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_cv_sizeof_int=`cat conftest.val`
15059else
15060 echo "$as_me: program exited with status $ac_status" >&5
15061echo "$as_me: failed program was:" >&5
15062sed 's/^/| /' conftest.$ac_ext >&5
15063
15064( exit $ac_status )
15065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15066See \`config.log' for more details." >&5
15067echo "$as_me: error: cannot compute sizeof (int), 77
15068See \`config.log' for more details." >&2;}
15069 { (exit 1); exit 1; }; }
15070fi
15071rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15072fi
15073fi
15074rm -f conftest.val
6f72b082 15075else
a0b9e27f 15076 ac_cv_sizeof_int=0
21d1c967 15077fi
698dcdb6 15078fi
e6cc62c6
VS
15079echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15080echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15081cat >>confdefs.h <<_ACEOF
15082#define SIZEOF_INT $ac_cv_sizeof_int
15083_ACEOF
15084
15085
15086echo "$as_me:$LINENO: checking for long" >&5
15087echo $ECHO_N "checking for long... $ECHO_C" >&6
15088if test "${ac_cv_type_long+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090else
15091 cat >conftest.$ac_ext <<_ACEOF
15092#line $LINENO "configure"
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098$ac_includes_default
15099int
15100main ()
15101{
15102if ((long *) 0)
15103 return 0;
15104if (sizeof (long))
15105 return 0;
15106 ;
15107 return 0;
15108}
15109_ACEOF
15110rm -f conftest.$ac_objext
15111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112 (eval $ac_compile) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -s conftest.$ac_objext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_cv_type_long=yes
15123else
15124 echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127ac_cv_type_long=no
15128fi
15129rm -f conftest.$ac_objext conftest.$ac_ext
15130fi
15131echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15132echo "${ECHO_T}$ac_cv_type_long" >&6
15133
15134echo "$as_me:$LINENO: checking size of long" >&5
15135echo $ECHO_N "checking size of long... $ECHO_C" >&6
15136if test "${ac_cv_sizeof_long+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138else
15139 if test "$ac_cv_type_long" = yes; then
15140 # The cast to unsigned long works around a bug in the HP C Compiler
15141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15143 # This bug is HP SR number 8606223364.
15144 if test "$cross_compiling" = yes; then
15145 # Depending upon the size, compute the lo and hi bounds.
15146cat >conftest.$ac_ext <<_ACEOF
15147#line $LINENO "configure"
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
15152/* end confdefs.h. */
15153$ac_includes_default
15154int
15155main ()
15156{
15157static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15158test_array [0] = 0
15159
15160 ;
15161 return 0;
15162}
15163_ACEOF
15164rm -f conftest.$ac_objext
15165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15166 (eval $ac_compile) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -s conftest.$ac_objext'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
15176 ac_lo=0 ac_mid=0
15177 while :; do
15178 cat >conftest.$ac_ext <<_ACEOF
15179#line $LINENO "configure"
15180/* confdefs.h. */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
15184/* end confdefs.h. */
15185$ac_includes_default
15186int
15187main ()
15188{
15189static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15190test_array [0] = 0
4f14bcd8 15191
e6cc62c6
VS
15192 ;
15193 return 0;
15194}
15195_ACEOF
15196rm -f conftest.$ac_objext
15197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15198 (eval $ac_compile) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -s conftest.$ac_objext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_hi=$ac_mid; break
15209else
15210 echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
15213ac_lo=`expr $ac_mid + 1`
15214 if test $ac_lo -le $ac_mid; then
15215 ac_lo= ac_hi=
15216 break
15217 fi
15218 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15219fi
e6cc62c6
VS
15220rm -f conftest.$ac_objext conftest.$ac_ext
15221 done
15222else
15223 echo "$as_me: failed program was:" >&5
15224sed 's/^/| /' conftest.$ac_ext >&5
15225
15226cat >conftest.$ac_ext <<_ACEOF
15227#line $LINENO "configure"
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h. */
15233$ac_includes_default
15234int
15235main ()
15236{
15237static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15238test_array [0] = 0
4f14bcd8 15239
e6cc62c6
VS
15240 ;
15241 return 0;
15242}
15243_ACEOF
15244rm -f conftest.$ac_objext
15245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -s conftest.$ac_objext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_hi=-1 ac_mid=-1
15257 while :; do
15258 cat >conftest.$ac_ext <<_ACEOF
15259#line $LINENO "configure"
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
15265$ac_includes_default
15266int
15267main ()
15268{
15269static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15270test_array [0] = 0
5c6fa7d2 15271
e6cc62c6
VS
15272 ;
15273 return 0;
15274}
15275_ACEOF
15276rm -f conftest.$ac_objext
15277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278 (eval $ac_compile) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -s conftest.$ac_objext'
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_lo=$ac_mid; break
15289else
15290 echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293ac_hi=`expr '(' $ac_mid ')' - 1`
15294 if test $ac_mid -le $ac_hi; then
15295 ac_lo= ac_hi=
15296 break
15297 fi
15298 ac_mid=`expr 2 '*' $ac_mid`
15299fi
15300rm -f conftest.$ac_objext conftest.$ac_ext
15301 done
247f5006 15302else
e6cc62c6
VS
15303 echo "$as_me: failed program was:" >&5
15304sed 's/^/| /' conftest.$ac_ext >&5
15305
15306ac_lo= ac_hi=
15307fi
15308rm -f conftest.$ac_objext conftest.$ac_ext
15309fi
15310rm -f conftest.$ac_objext conftest.$ac_ext
15311# Binary search between lo and hi bounds.
15312while test "x$ac_lo" != "x$ac_hi"; do
15313 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15314 cat >conftest.$ac_ext <<_ACEOF
15315#line $LINENO "configure"
15316/* confdefs.h. */
15317_ACEOF
15318cat confdefs.h >>conftest.$ac_ext
15319cat >>conftest.$ac_ext <<_ACEOF
15320/* end confdefs.h. */
15321$ac_includes_default
15322int
15323main ()
15324{
15325static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15326test_array [0] = 0
15327
15328 ;
15329 return 0;
15330}
15331_ACEOF
15332rm -f conftest.$ac_objext
15333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15334 (eval $ac_compile) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_hi=$ac_mid
15345else
15346 echo "$as_me: failed program was:" >&5
15347sed 's/^/| /' conftest.$ac_ext >&5
15348
15349ac_lo=`expr '(' $ac_mid ')' + 1`
15350fi
15351rm -f conftest.$ac_objext conftest.$ac_ext
15352done
15353case $ac_lo in
15354?*) ac_cv_sizeof_long=$ac_lo;;
15355'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15356See \`config.log' for more details." >&5
15357echo "$as_me: error: cannot compute sizeof (long), 77
15358See \`config.log' for more details." >&2;}
15359 { (exit 1); exit 1; }; } ;;
15360esac
247f5006 15361else
e6cc62c6
VS
15362 if test "$cross_compiling" = yes; then
15363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15364See \`config.log' for more details." >&5
15365echo "$as_me: error: cannot run test program while cross compiling
15366See \`config.log' for more details." >&2;}
15367 { (exit 1); exit 1; }; }
15368else
15369 cat >conftest.$ac_ext <<_ACEOF
15370#line $LINENO "configure"
15371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
15375/* end confdefs.h. */
15376$ac_includes_default
15377long longval () { return (long) (sizeof (long)); }
15378unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15379#include <stdio.h>
e6cc62c6
VS
15380#include <stdlib.h>
15381int
15382main ()
247f5006 15383{
e6cc62c6
VS
15384
15385 FILE *f = fopen ("conftest.val", "w");
15386 if (! f)
15387 exit (1);
15388 if (((long) (sizeof (long))) < 0)
15389 {
15390 long i = longval ();
15391 if (i != ((long) (sizeof (long))))
15392 exit (1);
15393 fprintf (f, "%ld\n", i);
15394 }
15395 else
15396 {
15397 unsigned long i = ulongval ();
15398 if (i != ((long) (sizeof (long))))
15399 exit (1);
15400 fprintf (f, "%lu\n", i);
15401 }
15402 exit (ferror (f) || fclose (f) != 0);
15403
15404 ;
15405 return 0;
247f5006 15406}
e6cc62c6
VS
15407_ACEOF
15408rm -f conftest$ac_exeext
15409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410 (eval $ac_link) 2>&5
15411 ac_status=$?
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_sizeof_long=`cat conftest.val`
15420else
15421 echo "$as_me: program exited with status $ac_status" >&5
15422echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
15425( exit $ac_status )
15426{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15427See \`config.log' for more details." >&5
15428echo "$as_me: error: cannot compute sizeof (long), 77
15429See \`config.log' for more details." >&2;}
15430 { (exit 1); exit 1; }; }
15431fi
15432rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15433fi
15434fi
15435rm -f conftest.val
247f5006 15436else
a0b9e27f 15437 ac_cv_sizeof_long=0
247f5006 15438fi
247f5006 15439fi
e6cc62c6
VS
15440echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15441echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15442cat >>confdefs.h <<_ACEOF
a0b9e27f 15443#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15444_ACEOF
247f5006 15445
a0b9e27f
MB
15446
15447
15448case "${host}" in
15449 arm-*-linux* )
e6cc62c6
VS
15450 echo "$as_me:$LINENO: checking for long long" >&5
15451echo $ECHO_N "checking for long long... $ECHO_C" >&6
15452if test "${ac_cv_type_long_long+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454else
15455 cat >conftest.$ac_ext <<_ACEOF
15456#line $LINENO "configure"
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463int
15464main ()
15465{
15466if ((long long *) 0)
15467 return 0;
15468if (sizeof (long long))
15469 return 0;
15470 ;
15471 return 0;
15472}
15473_ACEOF
15474rm -f conftest.$ac_objext
15475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15476 (eval $ac_compile) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_cv_type_long_long=yes
15487else
15488 echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491ac_cv_type_long_long=no
15492fi
15493rm -f conftest.$ac_objext conftest.$ac_ext
15494fi
15495echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15496echo "${ECHO_T}$ac_cv_type_long_long" >&6
15497
15498echo "$as_me:$LINENO: checking size of long long" >&5
15499echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15500if test "${ac_cv_sizeof_long_long+set}" = set; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502else
15503 if test "$ac_cv_type_long_long" = yes; then
15504 # The cast to unsigned long works around a bug in the HP C Compiler
15505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15507 # This bug is HP SR number 8606223364.
a0b9e27f 15508 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15509 # Depending upon the size, compute the lo and hi bounds.
15510cat >conftest.$ac_ext <<_ACEOF
15511#line $LINENO "configure"
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
15517$ac_includes_default
15518int
15519main ()
15520{
15521static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15522test_array [0] = 0
15523
15524 ;
15525 return 0;
15526}
15527_ACEOF
15528rm -f conftest.$ac_objext
15529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15530 (eval $ac_compile) 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15540 ac_lo=0 ac_mid=0
15541 while :; do
15542 cat >conftest.$ac_ext <<_ACEOF
15543#line $LINENO "configure"
15544/* confdefs.h. */
15545_ACEOF
15546cat confdefs.h >>conftest.$ac_ext
15547cat >>conftest.$ac_ext <<_ACEOF
15548/* end confdefs.h. */
15549$ac_includes_default
15550int
15551main ()
15552{
15553static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15554test_array [0] = 0
15555
15556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest.$ac_objext
15561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562 (eval $ac_compile) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_hi=$ac_mid; break
15573else
15574 echo "$as_me: failed program was:" >&5
15575sed 's/^/| /' conftest.$ac_ext >&5
15576
15577ac_lo=`expr $ac_mid + 1`
15578 if test $ac_lo -le $ac_mid; then
15579 ac_lo= ac_hi=
15580 break
15581 fi
15582 ac_mid=`expr 2 '*' $ac_mid + 1`
15583fi
15584rm -f conftest.$ac_objext conftest.$ac_ext
15585 done
15586else
15587 echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590cat >conftest.$ac_ext <<_ACEOF
15591#line $LINENO "configure"
15592/* confdefs.h. */
15593_ACEOF
15594cat confdefs.h >>conftest.$ac_ext
15595cat >>conftest.$ac_ext <<_ACEOF
15596/* end confdefs.h. */
15597$ac_includes_default
15598int
15599main ()
15600{
15601static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15602test_array [0] = 0
15603
15604 ;
15605 return 0;
15606}
15607_ACEOF
15608rm -f conftest.$ac_objext
15609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15610 (eval $ac_compile) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_hi=-1 ac_mid=-1
15621 while :; do
15622 cat >conftest.$ac_ext <<_ACEOF
15623#line $LINENO "configure"
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h. */
15629$ac_includes_default
15630int
15631main ()
15632{
15633static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15634test_array [0] = 0
15635
15636 ;
15637 return 0;
15638}
15639_ACEOF
15640rm -f conftest.$ac_objext
15641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_lo=$ac_mid; break
15653else
15654 echo "$as_me: failed program was:" >&5
15655sed 's/^/| /' conftest.$ac_ext >&5
15656
15657ac_hi=`expr '(' $ac_mid ')' - 1`
15658 if test $ac_mid -le $ac_hi; then
15659 ac_lo= ac_hi=
15660 break
15661 fi
15662 ac_mid=`expr 2 '*' $ac_mid`
15663fi
15664rm -f conftest.$ac_objext conftest.$ac_ext
15665 done
15666else
15667 echo "$as_me: failed program was:" >&5
15668sed 's/^/| /' conftest.$ac_ext >&5
15669
15670ac_lo= ac_hi=
15671fi
15672rm -f conftest.$ac_objext conftest.$ac_ext
15673fi
15674rm -f conftest.$ac_objext conftest.$ac_ext
15675# Binary search between lo and hi bounds.
15676while test "x$ac_lo" != "x$ac_hi"; do
15677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15678 cat >conftest.$ac_ext <<_ACEOF
15679#line $LINENO "configure"
15680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
15684/* end confdefs.h. */
15685$ac_includes_default
15686int
15687main ()
15688{
15689static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15690test_array [0] = 0
15691
15692 ;
15693 return 0;
15694}
15695_ACEOF
15696rm -f conftest.$ac_objext
15697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try='test -s conftest.$ac_objext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_hi=$ac_mid
15709else
15710 echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713ac_lo=`expr '(' $ac_mid ')' + 1`
15714fi
15715rm -f conftest.$ac_objext conftest.$ac_ext
15716done
15717case $ac_lo in
15718?*) ac_cv_sizeof_long_long=$ac_lo;;
15719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15720See \`config.log' for more details." >&5
15721echo "$as_me: error: cannot compute sizeof (long long), 77
15722See \`config.log' for more details." >&2;}
15723 { (exit 1); exit 1; }; } ;;
15724esac
a0b9e27f 15725else
e6cc62c6
VS
15726 if test "$cross_compiling" = yes; then
15727 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15728See \`config.log' for more details." >&5
15729echo "$as_me: error: cannot run test program while cross compiling
15730See \`config.log' for more details." >&2;}
15731 { (exit 1); exit 1; }; }
15732else
15733 cat >conftest.$ac_ext <<_ACEOF
15734#line $LINENO "configure"
15735/* confdefs.h. */
15736_ACEOF
15737cat confdefs.h >>conftest.$ac_ext
15738cat >>conftest.$ac_ext <<_ACEOF
15739/* end confdefs.h. */
15740$ac_includes_default
15741long longval () { return (long) (sizeof (long long)); }
15742unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15743#include <stdio.h>
e6cc62c6
VS
15744#include <stdlib.h>
15745int
15746main ()
247f5006 15747{
e6cc62c6
VS
15748
15749 FILE *f = fopen ("conftest.val", "w");
15750 if (! f)
15751 exit (1);
15752 if (((long) (sizeof (long long))) < 0)
15753 {
15754 long i = longval ();
15755 if (i != ((long) (sizeof (long long))))
15756 exit (1);
15757 fprintf (f, "%ld\n", i);
15758 }
15759 else
15760 {
15761 unsigned long i = ulongval ();
15762 if (i != ((long) (sizeof (long long))))
15763 exit (1);
15764 fprintf (f, "%lu\n", i);
15765 }
15766 exit (ferror (f) || fclose (f) != 0);
15767
15768 ;
15769 return 0;
247f5006 15770}
e6cc62c6
VS
15771_ACEOF
15772rm -f conftest$ac_exeext
15773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15774 (eval $ac_link) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; }; then
15783 ac_cv_sizeof_long_long=`cat conftest.val`
15784else
15785 echo "$as_me: program exited with status $ac_status" >&5
15786echo "$as_me: failed program was:" >&5
15787sed 's/^/| /' conftest.$ac_ext >&5
15788
15789( exit $ac_status )
15790{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15791See \`config.log' for more details." >&5
15792echo "$as_me: error: cannot compute sizeof (long long), 77
15793See \`config.log' for more details." >&2;}
15794 { (exit 1); exit 1; }; }
15795fi
15796rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15797fi
15798fi
15799rm -f conftest.val
7b4a847f 15800else
a0b9e27f 15801 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15802fi
15803fi
e6cc62c6
VS
15804echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15805echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15806cat >>confdefs.h <<_ACEOF
15807#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15808_ACEOF
15809
15810
15811 ;;
15812 *-hp-hpux* )
15813 echo "$as_me:$LINENO: checking for long long" >&5
15814echo $ECHO_N "checking for long long... $ECHO_C" >&6
15815if test "${ac_cv_type_long_long+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817else
15818 cat >conftest.$ac_ext <<_ACEOF
15819#line $LINENO "configure"
15820/* confdefs.h. */
15821_ACEOF
15822cat confdefs.h >>conftest.$ac_ext
15823cat >>conftest.$ac_ext <<_ACEOF
15824/* end confdefs.h. */
15825$ac_includes_default
15826int
15827main ()
15828{
15829if ((long long *) 0)
15830 return 0;
15831if (sizeof (long long))
15832 return 0;
15833 ;
15834 return 0;
15835}
15836_ACEOF
15837rm -f conftest.$ac_objext
15838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15839 (eval $ac_compile) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_type_long_long=yes
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854ac_cv_type_long_long=no
15855fi
15856rm -f conftest.$ac_objext conftest.$ac_ext
15857fi
15858echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15859echo "${ECHO_T}$ac_cv_type_long_long" >&6
15860
15861echo "$as_me:$LINENO: checking size of long long" >&5
15862echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15863if test "${ac_cv_sizeof_long_long+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15865else
15866 if test "$ac_cv_type_long_long" = yes; then
15867 # The cast to unsigned long works around a bug in the HP C Compiler
15868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15870 # This bug is HP SR number 8606223364.
15871 if test "$cross_compiling" = yes; then
15872 # Depending upon the size, compute the lo and hi bounds.
15873cat >conftest.$ac_ext <<_ACEOF
15874#line $LINENO "configure"
15875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
15880$ac_includes_default
15881int
15882main ()
15883{
15884static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15885test_array [0] = 0
15886
15887 ;
15888 return 0;
15889}
15890_ACEOF
15891rm -f conftest.$ac_objext
15892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15893 (eval $ac_compile) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_lo=0 ac_mid=0
15904 while :; do
15905 cat >conftest.$ac_ext <<_ACEOF
15906#line $LINENO "configure"
15907/* confdefs.h. */
15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
15912$ac_includes_default
15913int
15914main ()
15915{
15916static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15917test_array [0] = 0
8284b0c5 15918
e6cc62c6
VS
15919 ;
15920 return 0;
15921}
15922_ACEOF
15923rm -f conftest.$ac_objext
15924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925 (eval $ac_compile) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; }; then
15935 ac_hi=$ac_mid; break
15936else
15937 echo "$as_me: failed program was:" >&5
15938sed 's/^/| /' conftest.$ac_ext >&5
15939
15940ac_lo=`expr $ac_mid + 1`
15941 if test $ac_lo -le $ac_mid; then
15942 ac_lo= ac_hi=
15943 break
15944 fi
15945 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15946fi
e6cc62c6
VS
15947rm -f conftest.$ac_objext conftest.$ac_ext
15948 done
15949else
15950 echo "$as_me: failed program was:" >&5
15951sed 's/^/| /' conftest.$ac_ext >&5
15952
15953cat >conftest.$ac_ext <<_ACEOF
15954#line $LINENO "configure"
15955/* confdefs.h. */
15956_ACEOF
15957cat confdefs.h >>conftest.$ac_ext
15958cat >>conftest.$ac_ext <<_ACEOF
15959/* end confdefs.h. */
15960$ac_includes_default
15961int
15962main ()
15963{
15964static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15965test_array [0] = 0
a0b9e27f 15966
e6cc62c6
VS
15967 ;
15968 return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext
15972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_hi=-1 ac_mid=-1
15984 while :; do
15985 cat >conftest.$ac_ext <<_ACEOF
15986#line $LINENO "configure"
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992$ac_includes_default
15993int
15994main ()
15995{
15996static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15997test_array [0] = 0
a0b9e27f 15998
e6cc62c6
VS
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext
16004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005 (eval $ac_compile) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -s conftest.$ac_objext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_lo=$ac_mid; break
16016else
16017 echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020ac_hi=`expr '(' $ac_mid ')' - 1`
16021 if test $ac_mid -le $ac_hi; then
16022 ac_lo= ac_hi=
16023 break
16024 fi
16025 ac_mid=`expr 2 '*' $ac_mid`
16026fi
16027rm -f conftest.$ac_objext conftest.$ac_ext
16028 done
8284b0c5 16029else
e6cc62c6
VS
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
16033ac_lo= ac_hi=
16034fi
16035rm -f conftest.$ac_objext conftest.$ac_ext
16036fi
16037rm -f conftest.$ac_objext conftest.$ac_ext
16038# Binary search between lo and hi bounds.
16039while test "x$ac_lo" != "x$ac_hi"; do
16040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16041 cat >conftest.$ac_ext <<_ACEOF
16042#line $LINENO "configure"
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048$ac_includes_default
16049int
16050main ()
16051{
16052static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16053test_array [0] = 0
16054
16055 ;
16056 return 0;
16057}
16058_ACEOF
16059rm -f conftest.$ac_objext
16060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_hi=$ac_mid
16072else
16073 echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076ac_lo=`expr '(' $ac_mid ')' + 1`
16077fi
16078rm -f conftest.$ac_objext conftest.$ac_ext
16079done
16080case $ac_lo in
16081?*) ac_cv_sizeof_long_long=$ac_lo;;
16082'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16083See \`config.log' for more details." >&5
16084echo "$as_me: error: cannot compute sizeof (long long), 77
16085See \`config.log' for more details." >&2;}
16086 { (exit 1); exit 1; }; } ;;
16087esac
8284b0c5 16088else
e6cc62c6
VS
16089 if test "$cross_compiling" = yes; then
16090 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16091See \`config.log' for more details." >&5
16092echo "$as_me: error: cannot run test program while cross compiling
16093See \`config.log' for more details." >&2;}
16094 { (exit 1); exit 1; }; }
16095else
16096 cat >conftest.$ac_ext <<_ACEOF
16097#line $LINENO "configure"
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104long longval () { return (long) (sizeof (long long)); }
16105unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16106#include <stdio.h>
e6cc62c6
VS
16107#include <stdlib.h>
16108int
16109main ()
8284b0c5 16110{
e6cc62c6
VS
16111
16112 FILE *f = fopen ("conftest.val", "w");
16113 if (! f)
16114 exit (1);
16115 if (((long) (sizeof (long long))) < 0)
16116 {
16117 long i = longval ();
16118 if (i != ((long) (sizeof (long long))))
16119 exit (1);
16120 fprintf (f, "%ld\n", i);
16121 }
16122 else
16123 {
16124 unsigned long i = ulongval ();
16125 if (i != ((long) (sizeof (long long))))
16126 exit (1);
16127 fprintf (f, "%lu\n", i);
16128 }
16129 exit (ferror (f) || fclose (f) != 0);
16130
16131 ;
16132 return 0;
8284b0c5 16133}
e6cc62c6
VS
16134_ACEOF
16135rm -f conftest$ac_exeext
16136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_sizeof_long_long=`cat conftest.val`
16147else
16148 echo "$as_me: program exited with status $ac_status" >&5
16149echo "$as_me: failed program was:" >&5
16150sed 's/^/| /' conftest.$ac_ext >&5
16151
16152( exit $ac_status )
16153{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16154See \`config.log' for more details." >&5
16155echo "$as_me: error: cannot compute sizeof (long long), 77
16156See \`config.log' for more details." >&2;}
16157 { (exit 1); exit 1; }; }
16158fi
16159rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16160fi
16161fi
16162rm -f conftest.val
5c6fa7d2
RR
16163else
16164 ac_cv_sizeof_long_long=0
52127426 16165fi
4f57cf11 16166fi
e6cc62c6
VS
16167echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16168echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16169cat >>confdefs.h <<_ACEOF
4f57cf11 16170#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16171_ACEOF
4f57cf11
GD
16172
16173
16174 if test "$ac_cv_sizeof_long_long" != "0"; then
16175 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16176 fi
16177 ;;
16178 * )
e6cc62c6
VS
16179 echo "$as_me:$LINENO: checking for long long" >&5
16180echo $ECHO_N "checking for long long... $ECHO_C" >&6
16181if test "${ac_cv_type_long_long+set}" = set; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183else
16184 cat >conftest.$ac_ext <<_ACEOF
16185#line $LINENO "configure"
16186/* confdefs.h. */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h. */
16191$ac_includes_default
16192int
16193main ()
16194{
16195if ((long long *) 0)
16196 return 0;
16197if (sizeof (long long))
16198 return 0;
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_cv_type_long_long=yes
16216else
16217 echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220ac_cv_type_long_long=no
16221fi
16222rm -f conftest.$ac_objext conftest.$ac_ext
16223fi
16224echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16225echo "${ECHO_T}$ac_cv_type_long_long" >&6
16226
16227echo "$as_me:$LINENO: checking size of long long" >&5
16228echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16229if test "${ac_cv_sizeof_long_long+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231else
16232 if test "$ac_cv_type_long_long" = yes; then
16233 # The cast to unsigned long works around a bug in the HP C Compiler
16234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16236 # This bug is HP SR number 8606223364.
4f57cf11 16237 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16238 # Depending upon the size, compute the lo and hi bounds.
16239cat >conftest.$ac_ext <<_ACEOF
16240#line $LINENO "configure"
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
16246$ac_includes_default
16247int
16248main ()
16249{
16250static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16251test_array [0] = 0
16252
16253 ;
16254 return 0;
16255}
16256_ACEOF
16257rm -f conftest.$ac_objext
16258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16259 (eval $ac_compile) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -s conftest.$ac_objext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 ac_lo=0 ac_mid=0
16270 while :; do
16271 cat >conftest.$ac_ext <<_ACEOF
16272#line $LINENO "configure"
16273/* confdefs.h. */
16274_ACEOF
16275cat confdefs.h >>conftest.$ac_ext
16276cat >>conftest.$ac_ext <<_ACEOF
16277/* end confdefs.h. */
16278$ac_includes_default
16279int
16280main ()
16281{
16282static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16283test_array [0] = 0
16284
16285 ;
16286 return 0;
16287}
16288_ACEOF
16289rm -f conftest.$ac_objext
16290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16291 (eval $ac_compile) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } &&
16295 { ac_try='test -s conftest.$ac_objext'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 ac_hi=$ac_mid; break
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306ac_lo=`expr $ac_mid + 1`
16307 if test $ac_lo -le $ac_mid; then
16308 ac_lo= ac_hi=
16309 break
16310 fi
16311 ac_mid=`expr 2 '*' $ac_mid + 1`
16312fi
16313rm -f conftest.$ac_objext conftest.$ac_ext
16314 done
16315else
16316 echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319cat >conftest.$ac_ext <<_ACEOF
16320#line $LINENO "configure"
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327int
16328main ()
16329{
16330static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16331test_array [0] = 0
16332
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext
16338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16339 (eval $ac_compile) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -s conftest.$ac_objext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_hi=-1 ac_mid=-1
16350 while :; do
16351 cat >conftest.$ac_ext <<_ACEOF
16352#line $LINENO "configure"
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359int
16360main ()
16361{
16362static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16363test_array [0] = 0
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_lo=$ac_mid; break
16382else
16383 echo "$as_me: failed program was:" >&5
16384sed 's/^/| /' conftest.$ac_ext >&5
16385
16386ac_hi=`expr '(' $ac_mid ')' - 1`
16387 if test $ac_mid -le $ac_hi; then
16388 ac_lo= ac_hi=
16389 break
16390 fi
16391 ac_mid=`expr 2 '*' $ac_mid`
16392fi
16393rm -f conftest.$ac_objext conftest.$ac_ext
16394 done
4f57cf11 16395else
e6cc62c6
VS
16396 echo "$as_me: failed program was:" >&5
16397sed 's/^/| /' conftest.$ac_ext >&5
16398
16399ac_lo= ac_hi=
16400fi
16401rm -f conftest.$ac_objext conftest.$ac_ext
16402fi
16403rm -f conftest.$ac_objext conftest.$ac_ext
16404# Binary search between lo and hi bounds.
16405while test "x$ac_lo" != "x$ac_hi"; do
16406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16407 cat >conftest.$ac_ext <<_ACEOF
16408#line $LINENO "configure"
16409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
16414$ac_includes_default
16415int
16416main ()
16417{
16418static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16419test_array [0] = 0
16420
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16427 (eval $ac_compile) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } &&
16431 { ac_try='test -s conftest.$ac_objext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_hi=$ac_mid
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442ac_lo=`expr '(' $ac_mid ')' + 1`
16443fi
16444rm -f conftest.$ac_objext conftest.$ac_ext
16445done
16446case $ac_lo in
16447?*) ac_cv_sizeof_long_long=$ac_lo;;
16448'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16449See \`config.log' for more details." >&5
16450echo "$as_me: error: cannot compute sizeof (long long), 77
16451See \`config.log' for more details." >&2;}
16452 { (exit 1); exit 1; }; } ;;
16453esac
16454else
16455 if test "$cross_compiling" = yes; then
16456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16457See \`config.log' for more details." >&5
16458echo "$as_me: error: cannot run test program while cross compiling
16459See \`config.log' for more details." >&2;}
16460 { (exit 1); exit 1; }; }
16461else
16462 cat >conftest.$ac_ext <<_ACEOF
16463#line $LINENO "configure"
16464/* confdefs.h. */
16465_ACEOF
16466cat confdefs.h >>conftest.$ac_ext
16467cat >>conftest.$ac_ext <<_ACEOF
16468/* end confdefs.h. */
16469$ac_includes_default
16470long longval () { return (long) (sizeof (long long)); }
16471unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16472#include <stdio.h>
e6cc62c6
VS
16473#include <stdlib.h>
16474int
16475main ()
4f57cf11 16476{
e6cc62c6
VS
16477
16478 FILE *f = fopen ("conftest.val", "w");
16479 if (! f)
16480 exit (1);
16481 if (((long) (sizeof (long long))) < 0)
16482 {
16483 long i = longval ();
16484 if (i != ((long) (sizeof (long long))))
16485 exit (1);
16486 fprintf (f, "%ld\n", i);
16487 }
16488 else
16489 {
16490 unsigned long i = ulongval ();
16491 if (i != ((long) (sizeof (long long))))
16492 exit (1);
16493 fprintf (f, "%lu\n", i);
16494 }
16495 exit (ferror (f) || fclose (f) != 0);
16496
16497 ;
16498 return 0;
4f57cf11 16499}
e6cc62c6
VS
16500_ACEOF
16501rm -f conftest$ac_exeext
16502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16503 (eval $ac_link) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_cv_sizeof_long_long=`cat conftest.val`
16513else
16514 echo "$as_me: program exited with status $ac_status" >&5
16515echo "$as_me: failed program was:" >&5
16516sed 's/^/| /' conftest.$ac_ext >&5
16517
16518( exit $ac_status )
16519{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16520See \`config.log' for more details." >&5
16521echo "$as_me: error: cannot compute sizeof (long long), 77
16522See \`config.log' for more details." >&2;}
16523 { (exit 1); exit 1; }; }
16524fi
16525rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16526fi
16527fi
16528rm -f conftest.val
4f57cf11 16529else
4f57cf11
GD
16530 ac_cv_sizeof_long_long=0
16531fi
7b4a847f 16532fi
e6cc62c6
VS
16533echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16534echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16535cat >>confdefs.h <<_ACEOF
21d1c967 16536#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16537_ACEOF
9e691f46 16538
8284b0c5 16539
21d1c967
GD
16540esac
16541
e6cc62c6
VS
16542echo "$as_me:$LINENO: checking size of wchar_t" >&5
16543echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16544if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16546else
e6cc62c6 16547
21d1c967 16548 if test "$cross_compiling" = yes; then
e6cc62c6 16549
2b5f62a0
VZ
16550 case "${host}" in
16551 *-pc-msdosdjgpp )
16552 wx_cv_sizeof_wchar_t=0
16553 ;;
16554 * )
16555 wx_cv_sizeof_wchar_t=4
16556 ;;
16557 esac
e6cc62c6
VS
16558
16559
6f72b082 16560else
e6cc62c6
VS
16561 cat >conftest.$ac_ext <<_ACEOF
16562#line $LINENO "configure"
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
21d1c967 16568
2b5f62a0
VZ
16569 /* DJGPP only has fake wchar_t: */
16570 #ifdef __DJGPP__
16571 # error "fake wchar_t"
16572 #endif
21d1c967
GD
16573 #ifdef HAVE_WCHAR_H
16574 # ifdef __CYGWIN__
16575 # include <stddef.h>
16576 # endif
16577 # include <wchar.h>
16578 #endif
16579 #ifdef HAVE_STDLIB_H
16580 # include <stdlib.h>
16581 #endif
16582 #include <stdio.h>
16583 int main()
16584 {
16585 FILE *f=fopen("conftestval", "w");
16586 if (!f) exit(1);
16587 fprintf(f, "%i", sizeof(wchar_t));
16588 exit(0);
16589 }
e6cc62c6
VS
16590
16591_ACEOF
16592rm -f conftest$ac_exeext
16593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599 (eval $ac_try) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
21d1c967 16603 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16604else
e6cc62c6
VS
16605 echo "$as_me: program exited with status $ac_status" >&5
16606echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609( exit $ac_status )
16610wx_cv_sizeof_wchar_t=0
6f72b082 16611fi
e6cc62c6 16612rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16613fi
6f72b082 16614
3f345b47 16615fi
e6cc62c6
VS
16616echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16617echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16618
e6cc62c6 16619cat >>confdefs.h <<_ACEOF
21d1c967 16620#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16621_ACEOF
90dd450c 16622
8284b0c5 16623
21d1c967
GD
16624# Check whether --enable-largefile or --disable-largefile was given.
16625if test "${enable_largefile+set}" = set; then
16626 enableval="$enable_largefile"
3f345b47 16627
e6cc62c6 16628fi;
21d1c967
GD
16629if test "$enable_largefile" != no; then
16630 wx_largefile=no
e6cc62c6
VS
16631
16632 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16633echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16634if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637
16638 cat >conftest.$ac_ext <<_ACEOF
16639#line $LINENO "configure"
16640/* confdefs.h. */
16641_ACEOF
16642cat confdefs.h >>conftest.$ac_ext
16643cat >>conftest.$ac_ext <<_ACEOF
16644/* end confdefs.h. */
21d1c967
GD
16645#define _FILE_OFFSET_BITS 64
16646 #include <sys/types.h>
e6cc62c6
VS
16647int
16648main ()
16649{
21d1c967
GD
16650typedef struct {
16651 unsigned int field: sizeof(off_t) == 8;
16652} wxlf;
16653
e6cc62c6
VS
16654 ;
16655 return 0;
16656}
16657_ACEOF
16658rm -f conftest.$ac_objext
16659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660 (eval $ac_compile) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
21d1c967 16670 ac_cv_sys_file_offset_bits=64
f6bcfd97 16671else
e6cc62c6
VS
16672 echo "$as_me: failed program was:" >&5
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
16675ac_cv_sys_file_offset_bits=no
247f5006 16676fi
e6cc62c6
VS
16677rm -f conftest.$ac_objext conftest.$ac_ext
16678
a0b9e27f 16679
e6cc62c6
VS
16680fi
16681echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16682echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16683
16684 if test "$ac_cv_sys_file_offset_bits" != no; then
16685 wx_largefile=yes
e6cc62c6 16686 cat >>confdefs.h <<_ACEOF
21d1c967 16687#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16688_ACEOF
21d1c967
GD
16689
16690 fi
16691
16692 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16693
16694 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16695echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16696if test "${ac_cv_sys_large_files+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698else
16699
16700 cat >conftest.$ac_ext <<_ACEOF
16701#line $LINENO "configure"
16702/* confdefs.h. */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h. */
21d1c967
GD
16707#define _LARGE_FILES 1
16708 #include <sys/types.h>
e6cc62c6
VS
16709int
16710main ()
16711{
21d1c967
GD
16712typedef struct {
16713 unsigned int field: sizeof(off_t) == 8;
16714} wxlf;
16715
e6cc62c6
VS
16716 ;
16717 return 0;
16718}
16719_ACEOF
16720rm -f conftest.$ac_objext
16721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
21d1c967 16732 ac_cv_sys_large_files=1
f6bcfd97 16733else
e6cc62c6
VS
16734 echo "$as_me: failed program was:" >&5
16735sed 's/^/| /' conftest.$ac_ext >&5
16736
16737ac_cv_sys_large_files=no
247f5006 16738fi
e6cc62c6 16739rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16740
e6cc62c6
VS
16741
16742fi
16743echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16744echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16745
21d1c967
GD
16746 if test "$ac_cv_sys_large_files" != no; then
16747 wx_largefile=yes
e6cc62c6 16748 cat >>confdefs.h <<_ACEOF
21d1c967 16749#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16750_ACEOF
90dd450c 16751
90dd450c
VZ
16752 fi
16753
90dd450c 16754 fi
90dd450c 16755
e6cc62c6
VS
16756 echo "$as_me:$LINENO: checking if large file support is available" >&5
16757echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16758 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16759 cat >>confdefs.h <<\_ACEOF
21d1c967 16760#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16761_ACEOF
90dd450c 16762
90dd450c 16763 fi
e6cc62c6
VS
16764 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16765echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16766fi
90dd450c 16767
8284b0c5 16768
f02444d0 16769if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16770 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16771 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16772 else
e26c13cf 16773 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16774 fi
e26c13cf 16775 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16776fi
16777
e6cc62c6
VS
16778echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16779echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16780if test "${ac_cv_c_bigendian+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16782else
21d1c967
GD
16783 ac_cv_c_bigendian=unknown
16784# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16785cat >conftest.$ac_ext <<_ACEOF
16786#line $LINENO "configure"
16787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
21d1c967
GD
16792#include <sys/types.h>
16793#include <sys/param.h>
e6cc62c6
VS
16794int
16795main ()
16796{
21d1c967
GD
16797
16798#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16799 bogus endian macros
16800#endif
e6cc62c6
VS
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext
16806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16807 (eval $ac_compile) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -s conftest.$ac_objext'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
21d1c967 16817 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16818cat >conftest.$ac_ext <<_ACEOF
16819#line $LINENO "configure"
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
21d1c967
GD
16825#include <sys/types.h>
16826#include <sys/param.h>
e6cc62c6
VS
16827int
16828main ()
16829{
21d1c967
GD
16830
16831#if BYTE_ORDER != BIG_ENDIAN
16832 not big endian
16833#endif
e6cc62c6
VS
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
16839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16840 (eval $ac_compile) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -s conftest.$ac_objext'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
21d1c967 16850 ac_cv_c_bigendian=yes
3f345b47 16851else
e6cc62c6
VS
16852 echo "$as_me: failed program was:" >&5
16853sed 's/^/| /' conftest.$ac_ext >&5
16854
16855ac_cv_c_bigendian=no
3f345b47 16856fi
e6cc62c6 16857rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16858else
e6cc62c6
VS
16859 echo "$as_me: failed program was:" >&5
16860sed 's/^/| /' conftest.$ac_ext >&5
16861
3f345b47 16862fi
e6cc62c6 16863rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16864if test $ac_cv_c_bigendian = unknown; then
16865if test "$cross_compiling" = yes; then
16866 ac_cv_c_bigendian=unknown
10f2d63a 16867else
e6cc62c6
VS
16868 cat >conftest.$ac_ext <<_ACEOF
16869#line $LINENO "configure"
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
21d1c967
GD
16875main () {
16876 /* Are we little or big endian? From Harbison&Steele. */
16877 union
16878 {
16879 long l;
16880 char c[sizeof (long)];
16881 } u;
16882 u.l = 1;
16883 exit (u.c[sizeof (long) - 1] == 1);
16884}
e6cc62c6
VS
16885_ACEOF
16886rm -f conftest$ac_exeext
16887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
21d1c967 16897 ac_cv_c_bigendian=no
3f345b47 16898else
e6cc62c6
VS
16899 echo "$as_me: program exited with status $ac_status" >&5
16900echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903( exit $ac_status )
16904ac_cv_c_bigendian=yes
247f5006 16905fi
e6cc62c6 16906rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16907fi
3f345b47 16908fi
8168de4c 16909fi
e6cc62c6
VS
16910echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16911echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16912if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16913 { echo "$as_me:$LINENO: 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
16914echo "$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;}
247f5006
VZ
16915fi
16916if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16917 cat >>confdefs.h <<\_ACEOF
247f5006 16918#define WORDS_BIGENDIAN 1
e6cc62c6 16919_ACEOF
247f5006
VZ
16920
16921fi
16922
16923
e6cc62c6
VS
16924
16925ac_ext=cc
16926ac_cpp='$CXXCPP $CPPFLAGS'
16927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16930echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16931echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16932if test -z "$CXXCPP"; then
e6cc62c6
VS
16933 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 # Double quotes because CXXCPP needs to be expanded
16937 for CXXCPP in "$CXX -E" "/lib/cpp"
16938 do
16939 ac_preproc_ok=false
16940for ac_cxx_preproc_warn_flag in '' yes
16941do
16942 # Use a header file that comes with gcc, so configuring glibc
16943 # with a fresh cross-compiler works.
16944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16945 # <limits.h> exists even on freestanding compilers.
16946 # On the NeXT, cc -E runs the code through the compiler's parser,
16947 # not just through cpp. "Syntax error" is here to catch this case.
16948 cat >conftest.$ac_ext <<_ACEOF
16949#line $LINENO "configure"
16950/* confdefs.h. */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h. */
16955#ifdef __STDC__
16956# include <limits.h>
16957#else
16958# include <assert.h>
16959#endif
16960 Syntax error
16961_ACEOF
16962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16964 ac_status=$?
16965 grep -v '^ *+' conftest.er1 >conftest.err
16966 rm -f conftest.er1
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } >/dev/null; then
16970 if test -s conftest.err; then
16971 ac_cpp_err=$ac_cxx_preproc_warn_flag
16972 else
16973 ac_cpp_err=
16974 fi
247f5006 16975else
e6cc62c6
VS
16976 ac_cpp_err=yes
16977fi
16978if test -z "$ac_cpp_err"; then
16979 :
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 # Broken: fails on valid input.
16985continue
16986fi
16987rm -f conftest.err conftest.$ac_ext
16988
16989 # OK, works on sane cases. Now check whether non-existent headers
16990 # can be detected and how.
16991 cat >conftest.$ac_ext <<_ACEOF
16992#line $LINENO "configure"
16993/* confdefs.h. */
16994_ACEOF
16995cat confdefs.h >>conftest.$ac_ext
16996cat >>conftest.$ac_ext <<_ACEOF
16997/* end confdefs.h. */
16998#include <ac_nonexistent.h>
16999_ACEOF
17000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } >/dev/null; then
17008 if test -s conftest.err; then
17009 ac_cpp_err=$ac_cxx_preproc_warn_flag
17010 else
17011 ac_cpp_err=
17012 fi
17013else
17014 ac_cpp_err=yes
17015fi
17016if test -z "$ac_cpp_err"; then
17017 # Broken: success on invalid input.
17018continue
17019else
17020 echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 # Passes both tests.
17024ac_preproc_ok=:
17025break
17026fi
17027rm -f conftest.err conftest.$ac_ext
17028
17029done
17030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17031rm -f conftest.err conftest.$ac_ext
17032if $ac_preproc_ok; then
17033 break
17034fi
17035
17036 done
17037 ac_cv_prog_CXXCPP=$CXXCPP
17038
17039fi
17040 CXXCPP=$ac_cv_prog_CXXCPP
17041else
17042 ac_cv_prog_CXXCPP=$CXXCPP
17043fi
17044echo "$as_me:$LINENO: result: $CXXCPP" >&5
17045echo "${ECHO_T}$CXXCPP" >&6
17046ac_preproc_ok=false
17047for ac_cxx_preproc_warn_flag in '' yes
17048do
17049 # Use a header file that comes with gcc, so configuring glibc
17050 # with a fresh cross-compiler works.
17051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17052 # <limits.h> exists even on freestanding compilers.
17053 # On the NeXT, cc -E runs the code through the compiler's parser,
17054 # not just through cpp. "Syntax error" is here to catch this case.
17055 cat >conftest.$ac_ext <<_ACEOF
17056#line $LINENO "configure"
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
17062#ifdef __STDC__
17063# include <limits.h>
17064#else
17065# include <assert.h>
17066#endif
17067 Syntax error
17068_ACEOF
17069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } >/dev/null; then
17077 if test -s conftest.err; then
17078 ac_cpp_err=$ac_cxx_preproc_warn_flag
17079 else
17080 ac_cpp_err=
17081 fi
17082else
17083 ac_cpp_err=yes
17084fi
17085if test -z "$ac_cpp_err"; then
21d1c967 17086 :
698dcdb6 17087else
e6cc62c6
VS
17088 echo "$as_me: failed program was:" >&5
17089sed 's/^/| /' conftest.$ac_ext >&5
17090
17091 # Broken: fails on valid input.
17092continue
17093fi
17094rm -f conftest.err conftest.$ac_ext
17095
17096 # OK, works on sane cases. Now check whether non-existent headers
17097 # can be detected and how.
17098 cat >conftest.$ac_ext <<_ACEOF
17099#line $LINENO "configure"
17100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
17105#include <ac_nonexistent.h>
17106_ACEOF
17107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } >/dev/null; then
17115 if test -s conftest.err; then
17116 ac_cpp_err=$ac_cxx_preproc_warn_flag
17117 else
17118 ac_cpp_err=
17119 fi
17120else
17121 ac_cpp_err=yes
247f5006 17122fi
e6cc62c6
VS
17123if test -z "$ac_cpp_err"; then
17124 # Broken: success on invalid input.
17125continue
17126else
17127 echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 # Passes both tests.
17131ac_preproc_ok=:
17132break
328a083c 17133fi
e6cc62c6
VS
17134rm -f conftest.err conftest.$ac_ext
17135
17136done
17137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17138rm -f conftest.err conftest.$ac_ext
17139if $ac_preproc_ok; then
17140 :
17141else
17142 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17143See \`config.log' for more details." >&5
17144echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17145See \`config.log' for more details." >&2;}
17146 { (exit 1); exit 1; }; }
90dd450c 17147fi
e6cc62c6
VS
17148
17149ac_ext=cc
17150ac_cpp='$CXXCPP $CPPFLAGS'
17151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17154
1e6feb95 17155
1725144d 17156
21d1c967 17157 if test "$cross_compiling" = "yes"; then
e6cc62c6 17158 cat >>confdefs.h <<\_ACEOF
21d1c967 17159#define wxUSE_IOSTREAMH 1
e6cc62c6 17160_ACEOF
ab9b9eab 17161
21d1c967 17162 else
e6cc62c6
VS
17163
17164
17165 ac_ext=cc
5c6fa7d2 17166ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17170
52127426 17171
247f5006 17172
e6cc62c6 17173for ac_header in iostream
21d1c967 17174do
e6cc62c6
VS
17175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17176if eval "test \"\${$as_ac_Header+set}\" = set"; then
17177 echo "$as_me:$LINENO: checking for $ac_header" >&5
17178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17179if eval "test \"\${$as_ac_Header+set}\" = set"; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181fi
17182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17184else
17185 # Is the header compilable?
17186echo "$as_me:$LINENO: checking $ac_header usability" >&5
17187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17188cat >conftest.$ac_ext <<_ACEOF
17189#line $LINENO "configure"
17190/* confdefs.h. */
17191_ACEOF
17192cat confdefs.h >>conftest.$ac_ext
17193cat >>conftest.$ac_ext <<_ACEOF
17194/* end confdefs.h. */
17195$ac_includes_default
17196#include <$ac_header>
17197_ACEOF
17198rm -f conftest.$ac_objext
17199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17200 (eval $ac_compile) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_header_compiler=yes
17211else
17212 echo "$as_me: failed program was:" >&5
17213sed 's/^/| /' conftest.$ac_ext >&5
17214
17215ac_header_compiler=no
17216fi
17217rm -f conftest.$ac_objext conftest.$ac_ext
17218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17219echo "${ECHO_T}$ac_header_compiler" >&6
17220
17221# Is the header present?
17222echo "$as_me:$LINENO: checking $ac_header presence" >&5
17223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17224cat >conftest.$ac_ext <<_ACEOF
17225#line $LINENO "configure"
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231#include <$ac_header>
17232_ACEOF
17233if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } >/dev/null; then
17241 if test -s conftest.err; then
17242 ac_cpp_err=$ac_cxx_preproc_warn_flag
17243 else
17244 ac_cpp_err=
17245 fi
17246else
17247 ac_cpp_err=yes
17248fi
17249if test -z "$ac_cpp_err"; then
17250 ac_header_preproc=yes
17251else
17252 echo "$as_me: failed program was:" >&5
17253sed 's/^/| /' conftest.$ac_ext >&5
17254
17255 ac_header_preproc=no
17256fi
17257rm -f conftest.err conftest.$ac_ext
17258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17259echo "${ECHO_T}$ac_header_preproc" >&6
17260
17261# So? What about this header?
17262case $ac_header_compiler:$ac_header_preproc in
17263 yes:no )
17264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17268 (
17269 cat <<\_ASBOX
17270## ------------------------------------ ##
17271## Report this to bug-autoconf@gnu.org. ##
17272## ------------------------------------ ##
17273_ASBOX
17274 ) |
17275 sed "s/^/$as_me: WARNING: /" >&2
17276 ;;
17277 no:yes )
17278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17284 (
17285 cat <<\_ASBOX
17286## ------------------------------------ ##
17287## Report this to bug-autoconf@gnu.org. ##
17288## ------------------------------------ ##
17289_ASBOX
17290 ) |
17291 sed "s/^/$as_me: WARNING: /" >&2
17292 ;;
17293esac
17294echo "$as_me:$LINENO: checking for $ac_header" >&5
17295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17296if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17298else
17299 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17300fi
e6cc62c6
VS
17301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17302echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17303
90dd450c 17304fi
e6cc62c6
VS
17305if test `eval echo '${'$as_ac_Header'}'` = yes; then
17306 cat >>confdefs.h <<_ACEOF
17307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17308_ACEOF
17309
90dd450c 17310fi
e6cc62c6 17311
21d1c967 17312done
10f2d63a 17313
8284b0c5 17314
21d1c967
GD
17315 if test "$ac_cv_header_iostream" = "yes" ; then
17316 :
17317 else
e6cc62c6 17318 cat >>confdefs.h <<\_ACEOF
21d1c967 17319#define wxUSE_IOSTREAMH 1
e6cc62c6 17320_ACEOF
788deba1 17321
90dd450c 17322 fi
ab9b9eab 17323
21d1c967 17324 ac_ext=c
21d1c967 17325ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17328ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17329
21d1c967 17330 fi
ab9b9eab 17331
52127426 17332
8284b0c5 17333
e6cc62c6
VS
17334 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17335echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17336if test "${wx_cv_cpp_bool+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17338else
e6cc62c6
VS
17339
17340
17341
17342 ac_ext=cc
5c6fa7d2 17343ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17347
8284b0c5 17348
e6cc62c6
VS
17349 cat >conftest.$ac_ext <<_ACEOF
17350#line $LINENO "configure"
17351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
21d1c967 17356
e6cc62c6
VS
17357
17358int
17359main ()
17360{
21d1c967
GD
17361
17362 bool b = true;
17363
17364 return 0;
e6cc62c6
VS
17365
17366 ;
17367 return 0;
17368}
17369_ACEOF
17370rm -f conftest.$ac_objext
17371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17372 (eval $ac_compile) 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -s conftest.$ac_objext'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; }; then
17382
21d1c967 17383 wx_cv_cpp_bool=yes
e6cc62c6 17384
698dcdb6 17385else
e6cc62c6
VS
17386 echo "$as_me: failed program was:" >&5
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
17389
21d1c967 17390 wx_cv_cpp_bool=no
e6cc62c6
VS
17391
17392
698dcdb6 17393fi
e6cc62c6 17394rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17395
17396 ac_ext=c
21d1c967 17397ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17400ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17401
a0b9e27f 17402
e6cc62c6
VS
17403fi
17404echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17405echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17406
17407 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17408 cat >>confdefs.h <<\_ACEOF
21d1c967 17409#define HAVE_BOOL 1
e6cc62c6 17410_ACEOF
ab9b9eab 17411
21d1c967
GD
17412 fi
17413
52127426 17414
8284b0c5 17415
e6cc62c6
VS
17416 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17417echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17418if test "${wx_cv_explicit+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17420else
e6cc62c6
VS
17421
17422
17423
17424 ac_ext=cc
5c6fa7d2 17425ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17429
8284b0c5 17430
e6cc62c6
VS
17431 cat >conftest.$ac_ext <<_ACEOF
17432#line $LINENO "configure"
17433/* confdefs.h. */
17434_ACEOF
17435cat confdefs.h >>conftest.$ac_ext
17436cat >>conftest.$ac_ext <<_ACEOF
17437/* end confdefs.h. */
986ecc86
VZ
17438
17439 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17440
17441int
17442main ()
17443{
986ecc86
VZ
17444
17445 return 0;
e6cc62c6
VS
17446
17447 ;
17448 return 0;
17449}
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -s conftest.$ac_objext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463
17464 cat >conftest.$ac_ext <<_ACEOF
17465#line $LINENO "configure"
17466/* confdefs.h. */
17467_ACEOF
17468cat confdefs.h >>conftest.$ac_ext
17469cat >>conftest.$ac_ext <<_ACEOF
17470/* end confdefs.h. */
986ecc86
VZ
17471
17472 class Foo { public: explicit Foo(int) {} };
17473 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17474
17475int
17476main ()
17477{
986ecc86
VZ
17478
17479 TakeFoo(17);
17480 return 0;
e6cc62c6
VS
17481
17482 ;
17483 return 0;
17484}
17485_ACEOF
17486rm -f conftest.$ac_objext
17487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488 (eval $ac_compile) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
986ecc86
VZ
17498 wx_cv_explicit=no
17499else
e6cc62c6
VS
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503wx_cv_explicit=yes
17504
986ecc86 17505fi
e6cc62c6
VS
17506rm -f conftest.$ac_objext conftest.$ac_ext
17507
986ecc86 17508else
e6cc62c6
VS
17509 echo "$as_me: failed program was:" >&5
17510sed 's/^/| /' conftest.$ac_ext >&5
17511
17512wx_cv_explicit=no
17513
986ecc86 17514fi
e6cc62c6 17515rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17516
17517 ac_ext=c
986ecc86 17518ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17521ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17522
a0b9e27f 17523
e6cc62c6
VS
17524fi
17525echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17526echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17527
17528 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17529 cat >>confdefs.h <<\_ACEOF
986ecc86 17530#define HAVE_EXPLICIT 1
e6cc62c6 17531_ACEOF
986ecc86
VZ
17532
17533 fi
17534
8284b0c5 17535
e6cc62c6
VS
17536echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17537echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17538if test "${ac_cv_cxx_const_cast+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17540else
521196a2 17541
521196a2 17542
e6cc62c6
VS
17543 ac_ext=cc
17544ac_cpp='$CXXCPP $CPPFLAGS'
17545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17548
17549 cat >conftest.$ac_ext <<_ACEOF
17550#line $LINENO "configure"
17551/* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
17556
17557int
17558main ()
17559{
521196a2 17560int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -s conftest.$ac_objext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
521196a2
MB
17577 ac_cv_cxx_const_cast=yes
17578else
e6cc62c6
VS
17579 echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582ac_cv_cxx_const_cast=no
521196a2 17583fi
e6cc62c6 17584rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17585 ac_ext=c
521196a2 17586ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17589ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17590
17591
17592fi
e6cc62c6
VS
17593echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17594echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17595if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17596
17597cat >>confdefs.h <<\_ACEOF
17598#define HAVE_CONST_CAST
17599_ACEOF
521196a2
MB
17600
17601fi
17602
17603
8284b0c5 17604
21d1c967
GD
17605SEARCH_INCLUDE="\
17606 /usr/local/include \
17607 \
17608 /usr/Motif-1.2/include \
17609 /usr/Motif-2.1/include \
17610 \
17611 /usr/include/Motif1.2 \
17612 /opt/xpm/include/X11 \
17613 /opt/GBxpm/include/ \
17614 /opt/GBxpm/X11/include/ \
17615 \
17616 /usr/Motif1.2/include \
17617 /usr/dt/include \
17618 /usr/openwin/include \
17619 \
17620 /usr/include/Xm \
17621 \
17622 /usr/X11R6/include \
17623 /usr/X11R6.4/include \
17624 /usr/X11R5/include \
17625 /usr/X11R4/include \
17626 \
17627 /usr/include/X11R6 \
17628 /usr/include/X11R5 \
17629 /usr/include/X11R4 \
17630 \
17631 /usr/local/X11R6/include \
17632 /usr/local/X11R5/include \
17633 /usr/local/X11R4/include \
17634 \
17635 /usr/local/include/X11R6 \
17636 /usr/local/include/X11R5 \
17637 /usr/local/include/X11R4 \
17638 \
17639 /usr/X11/include \
17640 /usr/include/X11 \
17641 /usr/local/X11/include \
17642 /usr/local/include/X11 \
17643 \
17644 /usr/X386/include \
17645 /usr/x386/include \
17646 /usr/XFree86/include/X11 \
17647 \
17648 X:/XFree86/include \
17649 X:/XFree86/include/X11 \
17650 \
17651 /usr/include/gtk \
17652 /usr/local/include/gtk \
17653 /usr/include/glib \
17654 /usr/local/include/glib \
17655 \
17656 /usr/include/qt \
17657 /usr/local/include/qt \
17658 \
17659 /usr/include/windows \
17660 /usr/include/wine \
17661 /usr/local/include/wine \
17662 \
17663 /usr/unsupported/include \
17664 /usr/athena/include \
17665 /usr/local/x11r5/include \
17666 /usr/lpp/Xamples/include \
17667 \
2b5f62a0 17668 /usr/openwin/share/include"
21d1c967
GD
17669
17670SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17671
8284b0c5 17672
e6cc62c6 17673cat >confcache <<\_ACEOF
21d1c967
GD
17674# This file is a shell script that caches the results of configure
17675# tests run on this system so they can be shared between configure
e6cc62c6
VS
17676# scripts and configure runs, see configure's option --config-cache.
17677# It is not useful on other systems. If it contains results you don't
17678# want to keep, you may remove or edit it.
21d1c967 17679#
e6cc62c6
VS
17680# config.status only pays attention to the cache file if you give it
17681# the --recheck option to rerun configure.
21d1c967 17682#
e6cc62c6
VS
17683# `ac_cv_env_foo' variables (set or unset) will be overridden when
17684# loading this file, other *unset* `ac_cv_foo' will be assigned the
17685# following values.
17686
17687_ACEOF
17688
21d1c967
GD
17689# The following way of writing the cache mishandles newlines in values,
17690# but we know of no workaround that is simple, portable, and efficient.
17691# So, don't put newlines in cache variables' values.
17692# Ultrix sh set writes to stderr and can't be redirected directly,
17693# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17694{
17695 (set) 2>&1 |
17696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17697 *ac_space=\ *)
17698 # `set' does not quote correctly, so add quotes (double-quote
17699 # substitution turns \\\\ into \\, and sed turns \\ into \).
17700 sed -n \
17701 "s/'/'\\\\''/g;
17702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17703 ;;
17704 *)
17705 # `set' quotes correctly as required by POSIX, so do not add quotes.
17706 sed -n \
17707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17708 ;;
17709 esac;
17710} |
17711 sed '
17712 t clear
17713 : clear
17714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17715 t end
17716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17717 : end' >>confcache
17718if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17719 if test -w $cache_file; then
e6cc62c6
VS
17720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17721 cat confcache >$cache_file
21d1c967
GD
17722 else
17723 echo "not updating unwritable cache $cache_file"
17724 fi
ab9b9eab 17725fi
21d1c967 17726rm -f confcache
ab9b9eab 17727
fe0895cf 17728if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17729 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17730echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17731if test "${wx_cv_lib_glibc21+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733else
17734
17735 cat >conftest.$ac_ext <<_ACEOF
17736#line $LINENO "configure"
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
21d1c967 17742#include <features.h>
e6cc62c6
VS
17743int
17744main ()
17745{
ab9b9eab 17746
21d1c967
GD
17747 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17748 #error not glibc2.1
17749 #endif
e6cc62c6
VS
17750
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext
17756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17757 (eval $ac_compile) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -s conftest.$ac_objext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767
21d1c967 17768 wx_cv_lib_glibc21=yes
e6cc62c6 17769
698dcdb6 17770else
e6cc62c6
VS
17771 echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
17774
21d1c967 17775 wx_cv_lib_glibc21=no
e6cc62c6
VS
17776
17777
247f5006 17778fi
e6cc62c6 17779rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17780
e6cc62c6
VS
17781fi
17782echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17783echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17784 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17785 cat >>confdefs.h <<\_ACEOF
21d1c967 17786#define wxHAVE_GLIBC2 1
e6cc62c6 17787_ACEOF
1e487827 17788
90dd450c 17789 fi
ab9b9eab
VZ
17790fi
17791
5c0a20c3
VZ
17792if test "x$wx_cv_lib_glibc21" = "xyes"; then
17793 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17794 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17795#define _GNU_SOURCE 1
e6cc62c6 17796_ACEOF
5c0a20c3
VZ
17797
17798 fi
17799fi
17800
8284b0c5
MB
17801
17802
21d1c967
GD
17803REGEX_INCLUDE=
17804if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17805 cat >>confdefs.h <<\_ACEOF
21d1c967 17806#define wxUSE_REGEX 1
e6cc62c6 17807_ACEOF
698dcdb6 17808
8284b0c5 17809
21d1c967 17810 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17811 if test "${ac_cv_header_regex_h+set}" = set; then
17812 echo "$as_me:$LINENO: checking for regex.h" >&5
17813echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17814if test "${ac_cv_header_regex_h+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816fi
17817echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17818echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17819else
17820 # Is the header compilable?
17821echo "$as_me:$LINENO: checking regex.h usability" >&5
17822echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17823cat >conftest.$ac_ext <<_ACEOF
17824#line $LINENO "configure"
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830$ac_includes_default
247f5006 17831#include <regex.h>
e6cc62c6
VS
17832_ACEOF
17833rm -f conftest.$ac_objext
17834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835 (eval $ac_compile) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } &&
17839 { ac_try='test -s conftest.$ac_objext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_header_compiler=yes
17846else
17847 echo "$as_me: failed program was:" >&5
17848sed 's/^/| /' conftest.$ac_ext >&5
17849
17850ac_header_compiler=no
17851fi
17852rm -f conftest.$ac_objext conftest.$ac_ext
17853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17854echo "${ECHO_T}$ac_header_compiler" >&6
17855
17856# Is the header present?
17857echo "$as_me:$LINENO: checking regex.h presence" >&5
17858echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17859cat >conftest.$ac_ext <<_ACEOF
17860#line $LINENO "configure"
17861/* confdefs.h. */
17862_ACEOF
17863cat confdefs.h >>conftest.$ac_ext
17864cat >>conftest.$ac_ext <<_ACEOF
17865/* end confdefs.h. */
17866#include <regex.h>
17867_ACEOF
17868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17870 ac_status=$?
17871 grep -v '^ *+' conftest.er1 >conftest.err
17872 rm -f conftest.er1
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } >/dev/null; then
17876 if test -s conftest.err; then
17877 ac_cpp_err=$ac_c_preproc_warn_flag
17878 else
17879 ac_cpp_err=
17880 fi
17881else
17882 ac_cpp_err=yes
17883fi
17884if test -z "$ac_cpp_err"; then
17885 ac_header_preproc=yes
17886else
17887 echo "$as_me: failed program was:" >&5
17888sed 's/^/| /' conftest.$ac_ext >&5
17889
17890 ac_header_preproc=no
17891fi
17892rm -f conftest.err conftest.$ac_ext
17893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17894echo "${ECHO_T}$ac_header_preproc" >&6
17895
17896# So? What about this header?
17897case $ac_header_compiler:$ac_header_preproc in
17898 yes:no )
17899 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17900echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17902echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17903 (
17904 cat <<\_ASBOX
17905## ------------------------------------ ##
17906## Report this to bug-autoconf@gnu.org. ##
17907## ------------------------------------ ##
17908_ASBOX
17909 ) |
17910 sed "s/^/$as_me: WARNING: /" >&2
17911 ;;
17912 no:yes )
17913 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17914echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17916echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17917 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17918echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17919 (
17920 cat <<\_ASBOX
17921## ------------------------------------ ##
17922## Report this to bug-autoconf@gnu.org. ##
17923## ------------------------------------ ##
17924_ASBOX
17925 ) |
17926 sed "s/^/$as_me: WARNING: /" >&2
17927 ;;
17928esac
17929echo "$as_me:$LINENO: checking for regex.h" >&5
17930echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17931if test "${ac_cv_header_regex_h+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17933else
17934 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17935fi
e6cc62c6
VS
17936echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17937echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17938
698dcdb6 17939fi
e6cc62c6
VS
17940if test $ac_cv_header_regex_h = yes; then
17941
17942for ac_func in regcomp
21d1c967 17943do
e6cc62c6
VS
17944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17945echo "$as_me:$LINENO: checking for $ac_func" >&5
17946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17947if eval "test \"\${$as_ac_var+set}\" = set"; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949else
17950 cat >conftest.$ac_ext <<_ACEOF
17951#line $LINENO "configure"
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
a0b9e27f 17957/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
17958 which can conflict with char $ac_func (); below.
17959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17960 <limits.h> exists even on freestanding compilers. */
17961#ifdef __STDC__
17962# include <limits.h>
17963#else
17964# include <assert.h>
17965#endif
21d1c967 17966/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
17967#ifdef __cplusplus
17968extern "C"
17969{
17970#endif
21d1c967 17971/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
17972 builtin and then its argument prototype would still apply. */
17973char $ac_func ();
21d1c967
GD
17974/* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
17977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978choke me
17979#else
e6cc62c6
VS
17980char (*f) () = $ac_func;
17981#endif
17982#ifdef __cplusplus
17983}
21d1c967 17984#endif
90dd450c 17985
e6cc62c6
VS
17986int
17987main ()
17988{
17989return f != $ac_func;
17990 ;
17991 return 0;
17992}
17993_ACEOF
17994rm -f conftest.$ac_objext conftest$ac_exeext
17995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -s conftest$ac_exeext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 eval "$as_ac_var=yes"
18007else
18008 echo "$as_me: failed program was:" >&5
18009sed 's/^/| /' conftest.$ac_ext >&5
18010
18011eval "$as_ac_var=no"
18012fi
18013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18014fi
18015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18017if test `eval echo '${'$as_ac_var'}'` = yes; then
18018 cat >>confdefs.h <<_ACEOF
18019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18020_ACEOF
5c6fa7d2 18021
698dcdb6 18022fi
21d1c967
GD
18023done
18024
ab9b9eab
VZ
18025fi
18026
8284b0c5 18027
e6cc62c6 18028
21d1c967
GD
18029 if test "x$ac_cv_func_regcomp" != "xyes"; then
18030 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18031 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18032echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18033 { (exit 1); exit 1; }; }
21d1c967 18034 else
e6cc62c6
VS
18035 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18036echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18037 wxUSE_REGEX=builtin
18038 fi
18039 else
18040 wxUSE_REGEX=sys
18041 fi
ab9b9eab 18042 fi
90dd450c 18043
21d1c967
GD
18044 if test "$wxUSE_REGEX" = "builtin" ; then
18045 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18046 fi
21d1c967 18047fi
90dd450c 18048
8284b0c5 18049
21d1c967
GD
18050ZLIB_INCLUDE=
18051ZLIB_LINK=
18052if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18053 cat >>confdefs.h <<\_ACEOF
21d1c967 18054#define wxUSE_ZLIB 1
e6cc62c6 18055_ACEOF
21d1c967 18056
8284b0c5 18057
21d1c967 18058 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18059 if test "$USE_DARWIN" = 1; then
18060 system_zlib_h_ok="yes"
18061 else
e6cc62c6
VS
18062 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18063echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18064if test "${ac_cv_header_zlib_h+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18066else
18067 if test "$cross_compiling" = yes; then
89e6bf6d 18068 unset ac_cv_header_zlib_h
e6cc62c6 18069
d643b80e 18070else
e6cc62c6
VS
18071 cat >conftest.$ac_ext <<_ACEOF
18072#line $LINENO "configure"
18073/* confdefs.h. */
18074_ACEOF
18075cat confdefs.h >>conftest.$ac_ext
18076cat >>conftest.$ac_ext <<_ACEOF
18077/* end confdefs.h. */
18078
ef33c576 18079 #include <zlib.h>
d775acfa 18080 #include <stdio.h>
d643b80e 18081
d775acfa
VZ
18082 int main()
18083 {
18084 FILE *f=fopen("conftestval", "w");
18085 if (!f) exit(1);
18086 fprintf(f, "%s",
18087 ZLIB_VERSION[0] == '1' &&
18088 (ZLIB_VERSION[2] > '1' ||
18089 (ZLIB_VERSION[2] == '1' &&
18090 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18091 exit(0);
18092 }
e6cc62c6
VS
18093
18094_ACEOF
18095rm -f conftest$ac_exeext
18096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
d643b80e
VZ
18106 ac_cv_header_zlib_h=`cat conftestval`
18107else
e6cc62c6
VS
18108 echo "$as_me: program exited with status $ac_status" >&5
18109echo "$as_me: failed program was:" >&5
18110sed 's/^/| /' conftest.$ac_ext >&5
18111
18112( exit $ac_status )
18113ac_cv_header_zlib_h=no
d643b80e 18114fi
e6cc62c6 18115rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18116fi
18117
d643b80e 18118fi
e6cc62c6
VS
18119echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18120echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18121 if test "${ac_cv_header_zlib_h+set}" = set; then
18122 echo "$as_me:$LINENO: checking for zlib.h" >&5
18123echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18124if test "${ac_cv_header_zlib_h+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126fi
18127echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18128echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18129else
e6cc62c6
VS
18130 # Is the header compilable?
18131echo "$as_me:$LINENO: checking zlib.h usability" >&5
18132echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18133cat >conftest.$ac_ext <<_ACEOF
18134#line $LINENO "configure"
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140$ac_includes_default
89e6bf6d 18141#include <zlib.h>
e6cc62c6
VS
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_header_compiler=yes
18156else
18157 echo "$as_me: failed program was:" >&5
18158sed 's/^/| /' conftest.$ac_ext >&5
18159
18160ac_header_compiler=no
18161fi
18162rm -f conftest.$ac_objext conftest.$ac_ext
18163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18164echo "${ECHO_T}$ac_header_compiler" >&6
18165
18166# Is the header present?
18167echo "$as_me:$LINENO: checking zlib.h presence" >&5
18168echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18169cat >conftest.$ac_ext <<_ACEOF
18170#line $LINENO "configure"
18171/* confdefs.h. */
18172_ACEOF
18173cat confdefs.h >>conftest.$ac_ext
18174cat >>conftest.$ac_ext <<_ACEOF
18175/* end confdefs.h. */
18176#include <zlib.h>
18177_ACEOF
18178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } >/dev/null; then
18186 if test -s conftest.err; then
18187 ac_cpp_err=$ac_c_preproc_warn_flag
18188 else
18189 ac_cpp_err=
18190 fi
18191else
18192 ac_cpp_err=yes
18193fi
18194if test -z "$ac_cpp_err"; then
18195 ac_header_preproc=yes
18196else
18197 echo "$as_me: failed program was:" >&5
18198sed 's/^/| /' conftest.$ac_ext >&5
18199
18200 ac_header_preproc=no
18201fi
18202rm -f conftest.err conftest.$ac_ext
18203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18204echo "${ECHO_T}$ac_header_preproc" >&6
18205
18206# So? What about this header?
18207case $ac_header_compiler:$ac_header_preproc in
18208 yes:no )
18209 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18210echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18211 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18212echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18213 (
18214 cat <<\_ASBOX
18215## ------------------------------------ ##
18216## Report this to bug-autoconf@gnu.org. ##
18217## ------------------------------------ ##
18218_ASBOX
18219 ) |
18220 sed "s/^/$as_me: WARNING: /" >&2
18221 ;;
18222 no:yes )
18223 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18224echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18226echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18228echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18229 (
18230 cat <<\_ASBOX
18231## ------------------------------------ ##
18232## Report this to bug-autoconf@gnu.org. ##
18233## ------------------------------------ ##
18234_ASBOX
18235 ) |
18236 sed "s/^/$as_me: WARNING: /" >&2
18237 ;;
18238esac
18239echo "$as_me:$LINENO: checking for zlib.h" >&5
18240echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18241if test "${ac_cv_header_zlib_h+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18243else
e6cc62c6
VS
18244 ac_cv_header_zlib_h=$ac_header_preproc
18245fi
18246echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18247echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18248
89e6bf6d
VZ
18249fi
18250
d643b80e 18251
e6cc62c6 18252
d775acfa
VZ
18253 system_zlib_h_ok=$ac_cv_header_zlib_h
18254 fi
18255
18256 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18257 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18258echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18259if test "${ac_cv_lib_z_deflate+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18261else
e6cc62c6 18262 ac_check_lib_save_LIBS=$LIBS
21d1c967 18263LIBS="-lz $LIBS"
e6cc62c6
VS
18264cat >conftest.$ac_ext <<_ACEOF
18265#line $LINENO "configure"
18266/* confdefs.h. */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h. */
18271
21d1c967 18272/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18273#ifdef __cplusplus
18274extern "C"
18275#endif
21d1c967 18276/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18277 builtin and then its argument prototype would still apply. */
18278char deflate ();
18279int
18280main ()
18281{
18282deflate ();
18283 ;
18284 return 0;
18285}
18286_ACEOF
18287rm -f conftest.$ac_objext conftest$ac_exeext
18288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18289 (eval $ac_link) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -s conftest$ac_exeext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_lib_z_deflate=yes
18300else
18301 echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304ac_cv_lib_z_deflate=no
18305fi
18306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18307LIBS=$ac_check_lib_save_LIBS
18308fi
18309echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18310echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18311if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18312 ZLIB_LINK=" -lz"
a0b9e27f 18313fi
698dcdb6 18314
d643b80e 18315 fi
247f5006 18316
21d1c967
GD
18317 if test "x$ZLIB_LINK" = "x" ; then
18318 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18319 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18320echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18321 { (exit 1); exit 1; }; }
21d1c967 18322 else
e6cc62c6
VS
18323 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18324echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18325 wxUSE_ZLIB=builtin
18326 fi
18327 else
18328 wxUSE_ZLIB=sys
18329 fi
18330 fi
18331
18332 if test "$wxUSE_ZLIB" = "builtin" ; then
18333 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18334 fi
ab9b9eab
VZ
18335fi
18336
8284b0c5 18337
21d1c967
GD
18338PNG_INCLUDE=
18339PNG_LINK=
18340if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18341 cat >>confdefs.h <<\_ACEOF
21d1c967 18342#define wxUSE_LIBPNG 1
e6cc62c6 18343_ACEOF
90dd450c 18344
8284b0c5 18345
21d1c967 18346 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18347 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18348echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18349 wxUSE_LIBPNG=sys
18350 fi
90dd450c 18351
21d1c967 18352 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18353 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18354echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18355 wxUSE_LIBPNG=builtin
18356 fi
18357
18358 if test "$wxUSE_MGL" != 1 ; then
18359 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18360 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18361echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18362if test "${ac_cv_header_png_h+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18364else
18365 if test "$cross_compiling" = yes; then
89e6bf6d 18366 unset ac_cv_header_png_h
e6cc62c6 18367
5d3f766d 18368else
e6cc62c6
VS
18369 cat >conftest.$ac_ext <<_ACEOF
18370#line $LINENO "configure"
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
18375/* end confdefs.h. */
18376
ef33c576 18377 #include <png.h>
5d3f766d
VZ
18378 #include <stdio.h>
18379
18380 int main()
18381 {
18382 FILE *f=fopen("conftestval", "w");
18383 if (!f) exit(1);
18384 fprintf(f, "%s",
18385 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18386 exit(0);
18387 }
e6cc62c6
VS
18388
18389_ACEOF
18390rm -f conftest$ac_exeext
18391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392 (eval $ac_link) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
5d3f766d
VZ
18401 ac_cv_header_png_h=`cat conftestval`
18402else
e6cc62c6
VS
18403 echo "$as_me: program exited with status $ac_status" >&5
18404echo "$as_me: failed program was:" >&5
18405sed 's/^/| /' conftest.$ac_ext >&5
18406
18407( exit $ac_status )
18408ac_cv_header_png_h=no
5d3f766d 18409fi
e6cc62c6 18410rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18411fi
18412
5d3f766d 18413fi
e6cc62c6
VS
18414echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18415echo "${ECHO_T}$ac_cv_header_png_h" >&6
18416 if test "${ac_cv_header_png_h+set}" = set; then
18417 echo "$as_me:$LINENO: checking for png.h" >&5
18418echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18419if test "${ac_cv_header_png_h+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18421fi
18422echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18423echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18424else
e6cc62c6
VS
18425 # Is the header compilable?
18426echo "$as_me:$LINENO: checking png.h usability" >&5
18427echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18428cat >conftest.$ac_ext <<_ACEOF
18429#line $LINENO "configure"
18430/* confdefs.h. */
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
18435$ac_includes_default
89e6bf6d 18436#include <png.h>
e6cc62c6
VS
18437_ACEOF
18438rm -f conftest.$ac_objext
18439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18440 (eval $ac_compile) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
18444 { ac_try='test -s conftest.$ac_objext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_header_compiler=yes
18451else
18452 echo "$as_me: failed program was:" >&5
18453sed 's/^/| /' conftest.$ac_ext >&5
18454
18455ac_header_compiler=no
18456fi
18457rm -f conftest.$ac_objext conftest.$ac_ext
18458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18459echo "${ECHO_T}$ac_header_compiler" >&6
18460
18461# Is the header present?
18462echo "$as_me:$LINENO: checking png.h presence" >&5
18463echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18464cat >conftest.$ac_ext <<_ACEOF
18465#line $LINENO "configure"
18466/* confdefs.h. */
18467_ACEOF
18468cat confdefs.h >>conftest.$ac_ext
18469cat >>conftest.$ac_ext <<_ACEOF
18470/* end confdefs.h. */
18471#include <png.h>
18472_ACEOF
18473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } >/dev/null; then
18481 if test -s conftest.err; then
18482 ac_cpp_err=$ac_c_preproc_warn_flag
18483 else
18484 ac_cpp_err=
18485 fi
18486else
18487 ac_cpp_err=yes
18488fi
18489if test -z "$ac_cpp_err"; then
18490 ac_header_preproc=yes
18491else
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 ac_header_preproc=no
18496fi
18497rm -f conftest.err conftest.$ac_ext
18498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18499echo "${ECHO_T}$ac_header_preproc" >&6
18500
18501# So? What about this header?
18502case $ac_header_compiler:$ac_header_preproc in
18503 yes:no )
18504 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18505echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18507echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18508 (
18509 cat <<\_ASBOX
18510## ------------------------------------ ##
18511## Report this to bug-autoconf@gnu.org. ##
18512## ------------------------------------ ##
18513_ASBOX
18514 ) |
18515 sed "s/^/$as_me: WARNING: /" >&2
18516 ;;
18517 no:yes )
18518 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18519echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18520 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18521echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18523echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18524 (
18525 cat <<\_ASBOX
18526## ------------------------------------ ##
18527## Report this to bug-autoconf@gnu.org. ##
18528## ------------------------------------ ##
18529_ASBOX
18530 ) |
18531 sed "s/^/$as_me: WARNING: /" >&2
18532 ;;
18533esac
18534echo "$as_me:$LINENO: checking for png.h" >&5
18535echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18536if test "${ac_cv_header_png_h+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18538else
e6cc62c6
VS
18539 ac_cv_header_png_h=$ac_header_preproc
18540fi
18541echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18542echo "${ECHO_T}$ac_cv_header_png_h" >&6
18543
89e6bf6d
VZ
18544fi
18545
5d3f766d 18546
e6cc62c6 18547
5d3f766d 18548 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18549 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18550echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18551if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18553else
e6cc62c6 18554 ac_check_lib_save_LIBS=$LIBS
21d1c967 18555LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18556cat >conftest.$ac_ext <<_ACEOF
18557#line $LINENO "configure"
18558/* confdefs.h. */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h. */
18563
21d1c967 18564/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18565#ifdef __cplusplus
18566extern "C"
18567#endif
21d1c967 18568/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18569 builtin and then its argument prototype would still apply. */
18570char png_check_sig ();
18571int
18572main ()
18573{
18574png_check_sig ();
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext conftest$ac_exeext
18580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581 (eval $ac_link) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -s conftest$ac_exeext'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; }; then
18591 ac_cv_lib_png_png_check_sig=yes
18592else
18593 echo "$as_me: failed program was:" >&5
18594sed 's/^/| /' conftest.$ac_ext >&5
18595
18596ac_cv_lib_png_png_check_sig=no
18597fi
18598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18599LIBS=$ac_check_lib_save_LIBS
18600fi
18601echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18602echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18603if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18604 PNG_LINK=" -lpng"
a0b9e27f 18605fi
90dd450c 18606
5d3f766d 18607 fi
247f5006 18608
21d1c967
GD
18609 if test "x$PNG_LINK" = "x" ; then
18610 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18611 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18612echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18613 { (exit 1); exit 1; }; }
21d1c967 18614 else
e6cc62c6
VS
18615 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18616echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18617 wxUSE_LIBPNG=builtin
18618 fi
18619 else
2b5f62a0 18620 wxUSE_LIBPNG=sys
21d1c967
GD
18621 fi
18622 fi
18623 fi
90dd450c 18624
21d1c967
GD
18625 if test "$wxUSE_LIBPNG" = "builtin" ; then
18626 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18627 fi
90dd450c 18628
21d1c967 18629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18630fi
18631
8284b0c5 18632
21d1c967
GD
18633JPEG_INCLUDE=
18634JPEG_LINK=
18635if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18636 cat >>confdefs.h <<\_ACEOF
21d1c967 18637#define wxUSE_LIBJPEG 1
e6cc62c6 18638_ACEOF
90dd450c 18639
8284b0c5 18640
21d1c967 18641 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18642 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18643echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18644 wxUSE_LIBJPEG=sys
18645 fi
90dd450c 18646
21d1c967
GD
18647 if test "$wxUSE_MGL" != 1 ; then
18648 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18649 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18650echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18651 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18653else
18654 cat >conftest.$ac_ext <<_ACEOF
18655#line $LINENO "configure"
18656/* confdefs.h. */
18657_ACEOF
18658cat confdefs.h >>conftest.$ac_ext
18659cat >>conftest.$ac_ext <<_ACEOF
18660/* end confdefs.h. */
90dd450c 18661
21d1c967
GD
18662 #undef HAVE_STDLIB_H
18663 #include <stdio.h>
18664 #include <jpeglib.h>
90dd450c 18665
e6cc62c6
VS
18666int
18667main ()
18668{
18669
18670
18671 ;
18672 return 0;
18673}
18674_ACEOF
18675rm -f conftest.$ac_objext
18676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677 (eval $ac_compile) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -s conftest.$ac_objext'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
21d1c967 18687 ac_cv_header_jpeglib_h=yes
90dd450c 18688else
e6cc62c6
VS
18689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692ac_cv_header_jpeglib_h=no
18693
90dd450c 18694fi
e6cc62c6
VS
18695rm -f conftest.$ac_objext conftest.$ac_ext
18696
90dd450c
VZ
18697fi
18698
e6cc62c6
VS
18699 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18700echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18701
21d1c967 18702 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18703 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18704echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18705if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18707else
e6cc62c6 18708 ac_check_lib_save_LIBS=$LIBS
21d1c967 18709LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18710cat >conftest.$ac_ext <<_ACEOF
18711#line $LINENO "configure"
18712/* confdefs.h. */
18713_ACEOF
18714cat confdefs.h >>conftest.$ac_ext
18715cat >>conftest.$ac_ext <<_ACEOF
18716/* end confdefs.h. */
18717
21d1c967 18718/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18719#ifdef __cplusplus
18720extern "C"
18721#endif
21d1c967 18722/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18723 builtin and then its argument prototype would still apply. */
18724char jpeg_read_header ();
18725int
18726main ()
18727{
18728jpeg_read_header ();
18729 ;
18730 return 0;
18731}
18732_ACEOF
18733rm -f conftest.$ac_objext conftest$ac_exeext
18734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18735 (eval $ac_link) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -s conftest$ac_exeext'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18745 ac_cv_lib_jpeg_jpeg_read_header=yes
18746else
18747 echo "$as_me: failed program was:" >&5
18748sed 's/^/| /' conftest.$ac_ext >&5
18749
18750ac_cv_lib_jpeg_jpeg_read_header=no
18751fi
18752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18753LIBS=$ac_check_lib_save_LIBS
18754fi
18755echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18756echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18757if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18758 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18759fi
18760
21d1c967 18761 fi
90dd450c 18762
21d1c967
GD
18763 if test "x$JPEG_LINK" = "x" ; then
18764 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18765 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18766echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18767 { (exit 1); exit 1; }; }
21d1c967 18768 else
e6cc62c6
VS
18769 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18770echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18771 wxUSE_LIBJPEG=builtin
18772 fi
18773 else
18774 wxUSE_LIBJPEG=sys
18775 fi
18776 fi
18777 fi
90dd450c 18778
21d1c967
GD
18779 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18780 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18781 fi
18782fi
90dd450c 18783
8284b0c5 18784
21d1c967
GD
18785TIFF_INCLUDE=
18786TIFF_LINK=
2b5f62a0 18787TIFF_PREREQ_LINKS=-lm
21d1c967 18788if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18789 cat >>confdefs.h <<\_ACEOF
21d1c967 18790#define wxUSE_LIBTIFF 1
e6cc62c6 18791_ACEOF
21d1c967 18792
8284b0c5 18793
21d1c967 18794 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18795 if test "$wxUSE_LIBJPEG" = "sys"; then
18796 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18797 fi
18798 if test "$wxUSE_ZLIB" = "sys"; then
18799 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18800 fi
e6cc62c6
VS
18801 if test "${ac_cv_header_tiffio_h+set}" = set; then
18802 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18803echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18804if test "${ac_cv_header_tiffio_h+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806fi
18807echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18808echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18809else
18810 # Is the header compilable?
18811echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18812echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18813cat >conftest.$ac_ext <<_ACEOF
18814#line $LINENO "configure"
18815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
18820$ac_includes_default
247f5006 18821#include <tiffio.h>
e6cc62c6
VS
18822_ACEOF
18823rm -f conftest.$ac_objext
18824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18825 (eval $ac_compile) 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -s conftest.$ac_objext'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835 ac_header_compiler=yes
18836else
18837 echo "$as_me: failed program was:" >&5
18838sed 's/^/| /' conftest.$ac_ext >&5
18839
18840ac_header_compiler=no
18841fi
18842rm -f conftest.$ac_objext conftest.$ac_ext
18843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18844echo "${ECHO_T}$ac_header_compiler" >&6
18845
18846# Is the header present?
18847echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18848echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18849cat >conftest.$ac_ext <<_ACEOF
18850#line $LINENO "configure"
18851/* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
18856#include <tiffio.h>
18857_ACEOF
18858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18860 ac_status=$?
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } >/dev/null; then
18866 if test -s conftest.err; then
18867 ac_cpp_err=$ac_c_preproc_warn_flag
18868 else
18869 ac_cpp_err=
18870 fi
18871else
18872 ac_cpp_err=yes
18873fi
18874if test -z "$ac_cpp_err"; then
18875 ac_header_preproc=yes
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 ac_header_preproc=no
18881fi
18882rm -f conftest.err conftest.$ac_ext
18883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18884echo "${ECHO_T}$ac_header_preproc" >&6
18885
18886# So? What about this header?
18887case $ac_header_compiler:$ac_header_preproc in
18888 yes:no )
18889 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18890echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18891 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18892echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18893 (
18894 cat <<\_ASBOX
18895## ------------------------------------ ##
18896## Report this to bug-autoconf@gnu.org. ##
18897## ------------------------------------ ##
18898_ASBOX
18899 ) |
18900 sed "s/^/$as_me: WARNING: /" >&2
18901 ;;
18902 no:yes )
18903 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18904echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18906echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18908echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18909 (
18910 cat <<\_ASBOX
18911## ------------------------------------ ##
18912## Report this to bug-autoconf@gnu.org. ##
18913## ------------------------------------ ##
18914_ASBOX
18915 ) |
18916 sed "s/^/$as_me: WARNING: /" >&2
18917 ;;
18918esac
18919echo "$as_me:$LINENO: checking for tiffio.h" >&5
18920echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18921if test "${ac_cv_header_tiffio_h+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923else
18924 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18925fi
e6cc62c6
VS
18926echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18927echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18928
21d1c967 18929fi
e6cc62c6
VS
18930if test $ac_cv_header_tiffio_h = yes; then
18931 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18932echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18933if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18935else
e6cc62c6 18936 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18937LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18938cat >conftest.$ac_ext <<_ACEOF
18939#line $LINENO "configure"
18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
18945
ab9b9eab 18946/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18947#ifdef __cplusplus
18948extern "C"
18949#endif
ab9b9eab 18950/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18951 builtin and then its argument prototype would still apply. */
18952char TIFFError ();
18953int
18954main ()
18955{
18956TIFFError ();
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961rm -f conftest.$ac_objext conftest$ac_exeext
18962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18963 (eval $ac_link) 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
18967 { ac_try='test -s conftest$ac_exeext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_cv_lib_tiff_TIFFError=yes
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978ac_cv_lib_tiff_TIFFError=no
18979fi
18980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18981LIBS=$ac_check_lib_save_LIBS
18982fi
18983echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
18984echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
18985if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 18986 TIFF_LINK=" -ltiff"
a0b9e27f 18987fi
cd6d6d5b 18988
e6cc62c6 18989
a0b9e27f 18990fi
8284b0c5 18991
247f5006 18992
e6cc62c6 18993
21d1c967
GD
18994 if test "x$TIFF_LINK" = "x" ; then
18995 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
18996 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
18997echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
18998 { (exit 1); exit 1; }; }
90dd450c 18999 else
e6cc62c6
VS
19000 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19001echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19002 wxUSE_LIBTIFF=builtin
d8356fa3 19003 fi
d8356fa3 19004 else
21d1c967 19005 wxUSE_LIBTIFF=sys
d8356fa3 19006 fi
21d1c967 19007 fi
d8356fa3 19008
21d1c967
GD
19009 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19010 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19011 fi
21d1c967 19012fi
10f2d63a 19013
8284b0c5 19014
21d1c967 19015AFMINSTALL=
2b5f62a0 19016WIN32INSTALL=
90dd450c 19017
21d1c967
GD
19018TOOLKIT=
19019TOOLKIT_INCLUDE=
19020WIDGET_SET=
19021
19022if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19023
19024for ac_header in w32api.h
21d1c967 19025do
e6cc62c6
VS
19026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027if eval "test \"\${$as_ac_Header+set}\" = set"; then
19028 echo "$as_me:$LINENO: checking for $ac_header" >&5
19029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19030if eval "test \"\${$as_ac_Header+set}\" = set"; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032fi
19033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19035else
19036 # Is the header compilable?
19037echo "$as_me:$LINENO: checking $ac_header usability" >&5
19038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19039cat >conftest.$ac_ext <<_ACEOF
19040#line $LINENO "configure"
19041/* confdefs.h. */
19042_ACEOF
19043cat confdefs.h >>conftest.$ac_ext
19044cat >>conftest.$ac_ext <<_ACEOF
19045/* end confdefs.h. */
19046$ac_includes_default
19047#include <$ac_header>
19048_ACEOF
19049rm -f conftest.$ac_objext
19050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19051 (eval $ac_compile) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -s conftest.$ac_objext'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_header_compiler=yes
19062else
19063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066ac_header_compiler=no
19067fi
19068rm -f conftest.$ac_objext conftest.$ac_ext
19069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19070echo "${ECHO_T}$ac_header_compiler" >&6
19071
19072# Is the header present?
19073echo "$as_me:$LINENO: checking $ac_header presence" >&5
19074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19075cat >conftest.$ac_ext <<_ACEOF
19076#line $LINENO "configure"
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082#include <$ac_header>
19083_ACEOF
19084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19086 ac_status=$?
19087 grep -v '^ *+' conftest.er1 >conftest.err
19088 rm -f conftest.er1
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); } >/dev/null; then
19092 if test -s conftest.err; then
19093 ac_cpp_err=$ac_c_preproc_warn_flag
19094 else
19095 ac_cpp_err=
19096 fi
19097else
19098 ac_cpp_err=yes
19099fi
19100if test -z "$ac_cpp_err"; then
19101 ac_header_preproc=yes
19102else
19103 echo "$as_me: failed program was:" >&5
19104sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 ac_header_preproc=no
19107fi
19108rm -f conftest.err conftest.$ac_ext
19109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19110echo "${ECHO_T}$ac_header_preproc" >&6
19111
19112# So? What about this header?
19113case $ac_header_compiler:$ac_header_preproc in
19114 yes:no )
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19119 (
19120 cat <<\_ASBOX
19121## ------------------------------------ ##
19122## Report this to bug-autoconf@gnu.org. ##
19123## ------------------------------------ ##
19124_ASBOX
19125 ) |
19126 sed "s/^/$as_me: WARNING: /" >&2
19127 ;;
19128 no:yes )
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135 (
19136 cat <<\_ASBOX
19137## ------------------------------------ ##
19138## Report this to bug-autoconf@gnu.org. ##
19139## ------------------------------------ ##
19140_ASBOX
19141 ) |
19142 sed "s/^/$as_me: WARNING: /" >&2
19143 ;;
19144esac
19145echo "$as_me:$LINENO: checking for $ac_header" >&5
19146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19147if eval "test \"\${$as_ac_Header+set}\" = set"; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19151fi
e6cc62c6
VS
19152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19154
21d1c967 19155fi
e6cc62c6
VS
19156if test `eval echo '${'$as_ac_Header'}'` = yes; then
19157 cat >>confdefs.h <<_ACEOF
19158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19159_ACEOF
19160
21d1c967 19161fi
e6cc62c6 19162
21d1c967 19163done
f79bd02d 19164
e6cc62c6
VS
19165 if test "${ac_cv_header_windows_h+set}" = set; then
19166 echo "$as_me:$LINENO: checking for windows.h" >&5
19167echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19168if test "${ac_cv_header_windows_h+set}" = set; then
19169 echo $ECHO_N "(cached) $ECHO_C" >&6
19170fi
19171echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19172echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19173else
19174 # Is the header compilable?
19175echo "$as_me:$LINENO: checking windows.h usability" >&5
19176echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19177cat >conftest.$ac_ext <<_ACEOF
19178#line $LINENO "configure"
19179/* confdefs.h. */
19180_ACEOF
19181cat confdefs.h >>conftest.$ac_ext
19182cat >>conftest.$ac_ext <<_ACEOF
19183/* end confdefs.h. */
19184$ac_includes_default
247f5006 19185#include <windows.h>
e6cc62c6
VS
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189 (eval $ac_compile) 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -s conftest.$ac_objext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_header_compiler=yes
19200else
19201 echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204ac_header_compiler=no
19205fi
19206rm -f conftest.$ac_objext conftest.$ac_ext
19207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208echo "${ECHO_T}$ac_header_compiler" >&6
19209
19210# Is the header present?
19211echo "$as_me:$LINENO: checking windows.h presence" >&5
19212echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19213cat >conftest.$ac_ext <<_ACEOF
19214#line $LINENO "configure"
19215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
19220#include <windows.h>
19221_ACEOF
19222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } >/dev/null; then
19230 if test -s conftest.err; then
19231 ac_cpp_err=$ac_c_preproc_warn_flag
19232 else
19233 ac_cpp_err=
19234 fi
19235else
19236 ac_cpp_err=yes
19237fi
19238if test -z "$ac_cpp_err"; then
19239 ac_header_preproc=yes
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_header_preproc=no
19245fi
19246rm -f conftest.err conftest.$ac_ext
19247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19248echo "${ECHO_T}$ac_header_preproc" >&6
19249
19250# So? What about this header?
19251case $ac_header_compiler:$ac_header_preproc in
19252 yes:no )
19253 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19254echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19255 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19256echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19257 (
19258 cat <<\_ASBOX
19259## ------------------------------------ ##
19260## Report this to bug-autoconf@gnu.org. ##
19261## ------------------------------------ ##
19262_ASBOX
19263 ) |
19264 sed "s/^/$as_me: WARNING: /" >&2
19265 ;;
19266 no:yes )
19267 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19268echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19270echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19271 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19272echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19273 (
19274 cat <<\_ASBOX
19275## ------------------------------------ ##
19276## Report this to bug-autoconf@gnu.org. ##
19277## ------------------------------------ ##
19278_ASBOX
19279 ) |
19280 sed "s/^/$as_me: WARNING: /" >&2
19281 ;;
19282esac
19283echo "$as_me:$LINENO: checking for windows.h" >&5
19284echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19285if test "${ac_cv_header_windows_h+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287else
19288 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19289fi
e6cc62c6
VS
19290echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19291echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19292
90dd450c 19293fi
e6cc62c6 19294if test $ac_cv_header_windows_h = yes; then
21d1c967 19295 :
90dd450c 19296else
21d1c967 19297
e6cc62c6
VS
19298 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19299echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19300 { (exit 1); exit 1; }; }
19301
5c6fa7d2 19302fi
7b4a847f 19303
5c6fa7d2 19304
e6cc62c6
VS
19305
19306 echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5
19307echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6
19308if test "${wx_cv_w32api_win32_ie+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 19310else
e6cc62c6
VS
19311
19312 cat >conftest.$ac_ext <<_ACEOF
19313#line $LINENO "configure"
19314/* confdefs.h. */
19315_ACEOF
19316cat confdefs.h >>conftest.$ac_ext
19317cat >>conftest.$ac_ext <<_ACEOF
19318/* end confdefs.h. */
21d1c967 19319#include <w32api.h>
e6cc62c6
VS
19320int
19321main ()
19322{
f79bd02d 19323
21d1c967
GD
19324 #define wxCHECK_W32API_VERSION( major, minor ) \
19325 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
19326 && ( ( __W32API_MAJOR_VERSION > (major) ) \
19327 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
19328
19329 #if !wxCHECK_W32API_VERSION(1,1)
19330 #error You need w32api 1.1 or newer
19331 #endif
e6cc62c6
VS
19332
19333 ;
19334 return 0;
19335}
19336_ACEOF
19337rm -f conftest.$ac_objext
19338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19339 (eval $ac_compile) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345 (eval $ac_try) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349
21d1c967 19350 wx_cv_w32api_win32_ie=yes
e6cc62c6 19351
f79bd02d 19352else
e6cc62c6
VS
19353 echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356
21d1c967 19357 wx_cv_w32api_win32_ie=no
e6cc62c6 19358
247f5006 19359fi
e6cc62c6 19360rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19361
e6cc62c6
VS
19362fi
19363echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5
19364echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6
21d1c967
GD
19365 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
19366 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
19367 fi
f79bd02d 19368
21d1c967
GD
19369 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
19370
7bb2947d
MB
19371 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19372 LIBS="$LIBS -loleacc"
19373 fi
19374
21d1c967
GD
19375 case "${host}" in
19376 *-*-cygwin* )
19377 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
19378 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19379 esac
f79bd02d 19380
8647bec6
RG
19381 if test "$wxUSE_ODBC" = "sys" ; then
19382 wxUSE_ODBC = "yes"
21d1c967 19383 fi
8647bec6
RG
19384 if test "$wxUSE_ODBC" = "yes" ; then
19385 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19386 cat >>confdefs.h <<\_ACEOF
8647bec6 19387#define wxUSE_ODBC 1
e6cc62c6 19388_ACEOF
f79bd02d 19389
8647bec6 19390 fi
e6cc62c6 19391
21d1c967
GD
19392 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19393 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19394
19395 WIN32INSTALL=win32install
f79bd02d 19396fi
f79bd02d 19397
b2fee376 19398if test "$USE_DARWIN" = 1; then
50bcbd3d 19399 if test "$wxUSE_PRECOMP" = "yes"; then
b2fee376
GD
19400 CPPFLAGS="$CPPFLAGS -cpp-precomp"
19401 else
19402 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
19403 fi
19404fi
19405
21d1c967
GD
19406if test "$wxUSE_GUI" = "yes"; then
19407 USE_GUI=1
f79bd02d 19408
21d1c967 19409 GUI_TK_LIBRARY=
f79bd02d 19410
21d1c967
GD
19411 WXGTK12=
19412 WXGTK127=
19413 WXGTK20=
f79bd02d 19414
21d1c967
GD
19415 if test "$wxUSE_MSW" = 1 ; then
19416 TOOLKIT=MSW
19417 GUIDIST=MSW_DIST
f79bd02d 19418
89e6bf6d 19419 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
f79bd02d
JS
19420 fi
19421
21d1c967 19422 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19423 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19424echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19425
19426 gtk_version_cached=1
e6cc62c6
VS
19427 if test "${wx_cv_lib_gtk+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19429else
e6cc62c6 19430
21d1c967 19431 gtk_version_cached=0
e6cc62c6
VS
19432 echo "$as_me:$LINENO: result: " >&5
19433echo "${ECHO_T}" >&6
f79bd02d 19434
21d1c967
GD
19435 GTK_MODULES=
19436 if test "$wxUSE_THREADS" = "yes"; then
19437 GTK_MODULES=gthread
19438 fi
f79bd02d 19439
2b5f62a0 19440 wx_cv_lib_gtk=
21d1c967
GD
19441 if test "x$wxUSE_GTK2" = "xyes"; then
19442 # Check whether --enable-gtktest or --disable-gtktest was given.
19443if test "${enable_gtktest+set}" = set; then
19444 enableval="$enable_gtktest"
e6cc62c6 19445
f79bd02d 19446else
21d1c967 19447 enable_gtktest=yes
e6cc62c6 19448fi;
f79bd02d 19449
21d1c967
GD
19450 pkg_config_args=gtk+-2.0
19451 for module in . $GTK_MODULES
19452 do
19453 case "$module" in
e6cc62c6 19454 gthread)
21d1c967
GD
19455 pkg_config_args="$pkg_config_args gthread-2.0"
19456 ;;
19457 esac
19458 done
19459
19460 no_gtk=""
f79bd02d 19461
21d1c967
GD
19462 # Extract the first word of "pkg-config", so it can be a program name with args.
19463set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19464echo "$as_me:$LINENO: checking for $ac_word" >&5
19465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19466if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19468else
e6cc62c6
VS
19469 case $PKG_CONFIG in
19470 [\\/]* | ?:[\\/]*)
21d1c967
GD
19471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19472 ;;
21d1c967 19473 *)
e6cc62c6
VS
19474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19475for as_dir in $PATH
19476do
19477 IFS=$as_save_IFS
19478 test -z "$as_dir" && as_dir=.
19479 for ac_exec_ext in '' $ac_executable_extensions; do
19480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19483 break 2
19484 fi
19485done
19486done
19487
21d1c967
GD
19488 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19489 ;;
19490esac
f79bd02d 19491fi
e6cc62c6
VS
19492PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19493
21d1c967 19494if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19495 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19496echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19497else
e6cc62c6
VS
19498 echo "$as_me:$LINENO: result: no" >&5
19499echo "${ECHO_T}no" >&6
f79bd02d
JS
19500fi
19501
8284b0c5 19502
21d1c967
GD
19503 if test x$PKG_CONFIG != xno ; then
19504 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19505 :
19506 else
19507 echo *** pkg-config too old; version 0.7 or better required.
19508 no_gtk=yes
19509 PKG_CONFIG=no
19510 fi
19511 else
19512 no_gtk=yes
19513 fi
f79bd02d 19514
21d1c967 19515 min_gtk_version=2.0.0
e6cc62c6
VS
19516 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19517echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19518
21d1c967
GD
19519 if test x$PKG_CONFIG != xno ; then
19520 ## don't try to run the test against uninstalled libtool libs
19521 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19522 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19523 enable_gtktest=no
19524 fi
f79bd02d 19525
21d1c967
GD
19526 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19527 :
19528 else
19529 no_gtk=yes
19530 fi
19531 fi
f79bd02d 19532
21d1c967
GD
19533 if test x"$no_gtk" = x ; then
19534 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19535 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19536 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19537 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19538 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19539 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19540 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19542 if test "x$enable_gtktest" = "xyes" ; then
19543 ac_save_CFLAGS="$CFLAGS"
19544 ac_save_LIBS="$LIBS"
19545 CFLAGS="$CFLAGS $GTK_CFLAGS"
19546 LIBS="$GTK_LIBS $LIBS"
19547 rm -f conf.gtktest
19548 if test "$cross_compiling" = yes; then
19549 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19550else
e6cc62c6
VS
19551 cat >conftest.$ac_ext <<_ACEOF
19552#line $LINENO "configure"
19553/* confdefs.h. */
19554_ACEOF
19555cat confdefs.h >>conftest.$ac_ext
19556cat >>conftest.$ac_ext <<_ACEOF
19557/* end confdefs.h. */
f79bd02d 19558
21d1c967
GD
19559#include <gtk/gtk.h>
19560#include <stdio.h>
19561#include <stdlib.h>
f79bd02d 19562
e6cc62c6 19563int
21d1c967
GD
19564main ()
19565{
19566 int major, minor, micro;
19567 char *tmp_version;
f79bd02d 19568
21d1c967 19569 system ("touch conf.gtktest");
f79bd02d 19570
21d1c967
GD
19571 /* HP/UX 9 (%@#!) writes to sscanf strings */
19572 tmp_version = g_strdup("$min_gtk_version");
19573 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19574 printf("%s, bad version string\n", "$min_gtk_version");
19575 exit(1);
19576 }
f79bd02d 19577
21d1c967
GD
19578 if ((gtk_major_version != $gtk_config_major_version) ||
19579 (gtk_minor_version != $gtk_config_minor_version) ||
19580 (gtk_micro_version != $gtk_config_micro_version))
19581 {
e6cc62c6 19582 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19583 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19584 gtk_major_version, gtk_minor_version, gtk_micro_version);
19585 printf ("*** was found! If pkg-config was correct, then it is best\n");
19586 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19587 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19588 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19589 printf("*** required on your system.\n");
19590 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19591 printf("*** to point to the correct configuration files\n");
e6cc62c6 19592 }
21d1c967
GD
19593 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19594 (gtk_minor_version != GTK_MINOR_VERSION) ||
19595 (gtk_micro_version != GTK_MICRO_VERSION))
19596 {
19597 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19598 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19599 printf("*** library (version %d.%d.%d)\n",
19600 gtk_major_version, gtk_minor_version, gtk_micro_version);
19601 }
19602 else
19603 {
19604 if ((gtk_major_version > major) ||
19605 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19606 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19607 {
19608 return 0;
19609 }
19610 else
19611 {
19612 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19613 gtk_major_version, gtk_minor_version, gtk_micro_version);
19614 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19615 major, minor, micro);
19616 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19617 printf("***\n");
19618 printf("*** If you have already installed a sufficiently new version, this error\n");
19619 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19620 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19621 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19622 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19623 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19624 printf("*** so that the correct libraries are found at run-time))\n");
19625 }
19626 }
19627 return 1;
19628}
f79bd02d 19629
e6cc62c6
VS
19630_ACEOF
19631rm -f conftest$ac_exeext
19632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19633 (eval $ac_link) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
21d1c967 19642 :
f79bd02d 19643else
e6cc62c6
VS
19644 echo "$as_me: program exited with status $ac_status" >&5
19645echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648( exit $ac_status )
19649no_gtk=yes
f79bd02d 19650fi
e6cc62c6 19651rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19652fi
21d1c967
GD
19653 CFLAGS="$ac_save_CFLAGS"
19654 LIBS="$ac_save_LIBS"
19655 fi
19656 fi
19657 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19658 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19659echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19660 wx_cv_lib_gtk=2.0
21d1c967 19661 else
e6cc62c6
VS
19662 echo "$as_me:$LINENO: result: no" >&5
19663echo "${ECHO_T}no" >&6
21d1c967
GD
19664 if test "$PKG_CONFIG" = "no" ; then
19665 echo "*** A new enough version of pkg-config was not found."
19666 echo "*** See http://pkgconfig.sourceforge.net"
19667 else
19668 if test -f conf.gtktest ; then
19669 :
19670 else
19671 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19672 ac_save_CFLAGS="$CFLAGS"
19673 ac_save_LIBS="$LIBS"
21d1c967
GD
19674 CFLAGS="$CFLAGS $GTK_CFLAGS"
19675 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19676 cat >conftest.$ac_ext <<_ACEOF
19677#line $LINENO "configure"
19678/* confdefs.h. */
19679_ACEOF
19680cat confdefs.h >>conftest.$ac_ext
19681cat >>conftest.$ac_ext <<_ACEOF
19682/* end confdefs.h. */
21d1c967
GD
19683
19684#include <gtk/gtk.h>
19685#include <stdio.h>
f79bd02d 19686
e6cc62c6
VS
19687int
19688main ()
19689{
19690 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19691 ;
19692 return 0;
19693}
19694_ACEOF
19695rm -f conftest.$ac_objext conftest$ac_exeext
19696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697 (eval $ac_link) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -s conftest$ac_exeext'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
21d1c967
GD
19707 echo "*** The test program compiled, but did not run. This usually means"
19708 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19709 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19710 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19711 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19712 echo "*** is required on your system"
19713 echo "***"
19714 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19715 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19716else
e6cc62c6
VS
19717 echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19721 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19722fi
e6cc62c6 19723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19724 CFLAGS="$ac_save_CFLAGS"
19725 LIBS="$ac_save_LIBS"
19726 fi
19727 fi
19728 GTK_CFLAGS=""
19729 GTK_LIBS=""
19730 :
19731 fi
e6cc62c6
VS
19732
19733
21d1c967 19734 rm -f conf.gtktest
f79bd02d 19735
2b5f62a0 19736 else
e6cc62c6
VS
19737
19738# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19739if test "${with_gtk_prefix+set}" = set; then
19740 withval="$with_gtk_prefix"
19741 gtk_config_prefix="$withval"
19742else
19743 gtk_config_prefix=""
e6cc62c6 19744fi;
f79bd02d 19745
21d1c967
GD
19746# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19747if test "${with_gtk_exec_prefix+set}" = set; then
19748 withval="$with_gtk_exec_prefix"
19749 gtk_config_exec_prefix="$withval"
19750else
19751 gtk_config_exec_prefix=""
e6cc62c6 19752fi;
21d1c967
GD
19753# Check whether --enable-gtktest or --disable-gtktest was given.
19754if test "${enable_gtktest+set}" = set; then
19755 enableval="$enable_gtktest"
e6cc62c6 19756
21d1c967
GD
19757else
19758 enable_gtktest=yes
e6cc62c6 19759fi;
21d1c967
GD
19760
19761 for module in . $GTK_MODULES
19762 do
19763 case "$module" in
e6cc62c6 19764 gthread)
21d1c967
GD
19765 gtk_config_args="$gtk_config_args gthread"
19766 ;;
19767 esac
19768 done
19769
19770 if test x$gtk_config_exec_prefix != x ; then
19771 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
19772 if test x${GTK_CONFIG+set} != xset ; then
19773 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
19774 fi
19775 fi
19776 if test x$gtk_config_prefix != x ; then
19777 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
19778 if test x${GTK_CONFIG+set} != xset ; then
19779 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
19780 fi
19781 fi
19782
19783 # Extract the first word of "gtk-config", so it can be a program name with args.
19784set dummy gtk-config; ac_word=$2
e6cc62c6
VS
19785echo "$as_me:$LINENO: checking for $ac_word" >&5
19786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19787if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19789else
e6cc62c6
VS
19790 case $GTK_CONFIG in
19791 [\\/]* | ?:[\\/]*)
21d1c967
GD
19792 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
19793 ;;
21d1c967 19794 *)
e6cc62c6
VS
19795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19796for as_dir in $PATH
19797do
19798 IFS=$as_save_IFS
19799 test -z "$as_dir" && as_dir=.
19800 for ac_exec_ext in '' $ac_executable_extensions; do
19801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19802 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19804 break 2
19805 fi
19806done
19807done
19808
21d1c967
GD
19809 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
19810 ;;
19811esac
19812fi
e6cc62c6
VS
19813GTK_CONFIG=$ac_cv_path_GTK_CONFIG
19814
21d1c967 19815if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
19816 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
19817echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 19818else
e6cc62c6
VS
19819 echo "$as_me:$LINENO: result: no" >&5
19820echo "${ECHO_T}no" >&6
21d1c967
GD
19821fi
19822
19823 min_gtk_version=1.2.7
e6cc62c6
VS
19824 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
19825echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
19826 no_gtk=""
19827 if test "$GTK_CONFIG" = "no" ; then
19828 no_gtk=yes
19829 else
19830 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
19831 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
19832 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
19833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19834 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
19835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19836 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
19837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19838 if test "x$enable_gtktest" = "xyes" ; then
19839 ac_save_CFLAGS="$CFLAGS"
19840 ac_save_LIBS="$LIBS"
19841 CFLAGS="$CFLAGS $GTK_CFLAGS"
19842 LIBS="$GTK_LIBS $LIBS"
19843 rm -f conf.gtktest
19844 if test "$cross_compiling" = yes; then
19845 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19846else
e6cc62c6
VS
19847 cat >conftest.$ac_ext <<_ACEOF
19848#line $LINENO "configure"
19849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
f79bd02d 19854
21d1c967
GD
19855#include <gtk/gtk.h>
19856#include <stdio.h>
19857#include <stdlib.h>
f79bd02d 19858
e6cc62c6 19859int
21d1c967
GD
19860main ()
19861{
19862 int major, minor, micro;
19863 char *tmp_version;
19864
19865 system ("touch conf.gtktest");
19866
19867 /* HP/UX 9 (%@#!) writes to sscanf strings */
19868 tmp_version = g_strdup("$min_gtk_version");
19869 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19870 printf("%s, bad version string\n", "$min_gtk_version");
19871 exit(1);
19872 }
90dd450c 19873
21d1c967
GD
19874 if ((gtk_major_version != $gtk_config_major_version) ||
19875 (gtk_minor_version != $gtk_config_minor_version) ||
19876 (gtk_micro_version != $gtk_config_micro_version))
19877 {
e6cc62c6 19878 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19879 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19880 gtk_major_version, gtk_minor_version, gtk_micro_version);
19881 printf ("*** was found! If gtk-config was correct, then it is best\n");
19882 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19883 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19884 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19885 printf("*** required on your system.\n");
19886 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
19887 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
19888 printf("*** before re-running configure\n");
e6cc62c6 19889 }
21d1c967
GD
19890#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
19891 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19892 (gtk_minor_version != GTK_MINOR_VERSION) ||
19893 (gtk_micro_version != GTK_MICRO_VERSION))
19894 {
19895 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19896 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19897 printf("*** library (version %d.%d.%d)\n",
19898 gtk_major_version, gtk_minor_version, gtk_micro_version);
19899 }
19900#endif /* defined (GTK_MAJOR_VERSION) ... */
19901 else
19902 {
19903 if ((gtk_major_version > major) ||
19904 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19905 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19906 {
19907 return 0;
19908 }
19909 else
19910 {
19911 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19912 gtk_major_version, gtk_minor_version, gtk_micro_version);
19913 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19914 major, minor, micro);
19915 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19916 printf("***\n");
19917 printf("*** If you have already installed a sufficiently new version, this error\n");
19918 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
19919 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19920 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
19921 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
19922 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19923 printf("*** so that the correct libraries are found at run-time))\n");
19924 }
19925 }
19926 return 1;
19927}
19928
e6cc62c6
VS
19929_ACEOF
19930rm -f conftest$ac_exeext
19931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19932 (eval $ac_link) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
21d1c967
GD
19941 :
19942else
e6cc62c6
VS
19943 echo "$as_me: program exited with status $ac_status" >&5
19944echo "$as_me: failed program was:" >&5
19945sed 's/^/| /' conftest.$ac_ext >&5
19946
19947( exit $ac_status )
19948no_gtk=yes
21d1c967 19949fi
e6cc62c6 19950rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 19951fi
21d1c967
GD
19952 CFLAGS="$ac_save_CFLAGS"
19953 LIBS="$ac_save_LIBS"
19954 fi
19955 fi
19956 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19957 echo "$as_me:$LINENO: result: yes" >&5
19958echo "${ECHO_T}yes" >&6
19959 wx_cv_lib_gtk=1.2.7
21d1c967 19960 else
e6cc62c6
VS
19961 echo "$as_me:$LINENO: result: no" >&5
19962echo "${ECHO_T}no" >&6
21d1c967
GD
19963 if test "$GTK_CONFIG" = "no" ; then
19964 echo "*** The gtk-config script installed by GTK could not be found"
19965 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
19966 echo "*** your path, or set the GTK_CONFIG environment variable to the"
19967 echo "*** full path to gtk-config."
19968 else
19969 if test -f conf.gtktest ; then
19970 :
19971 else
19972 echo "*** Could not run GTK test program, checking why..."
19973 CFLAGS="$CFLAGS $GTK_CFLAGS"
19974 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19975 cat >conftest.$ac_ext <<_ACEOF
19976#line $LINENO "configure"
19977/* confdefs.h. */
19978_ACEOF
19979cat confdefs.h >>conftest.$ac_ext
19980cat >>conftest.$ac_ext <<_ACEOF
19981/* end confdefs.h. */
21d1c967
GD
19982
19983#include <gtk/gtk.h>
19984#include <stdio.h>
19985
e6cc62c6
VS
19986int
19987main ()
19988{
19989 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19990 ;
19991 return 0;
19992}
19993_ACEOF
19994rm -f conftest.$ac_objext conftest$ac_exeext
19995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19996 (eval $ac_link) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
21d1c967
GD
20006 echo "*** The test program compiled, but did not run. This usually means"
20007 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20008 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20009 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20010 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20011 echo "*** is required on your system"
20012 echo "***"
20013 echo "*** If you have an old version installed, it is best to remove it, although"
20014 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20015 echo "***"
20016 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20017 echo "*** came with the system with the command"
20018 echo "***"
e6cc62c6 20019 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20020else
e6cc62c6
VS
20021 echo "$as_me: failed program was:" >&5
20022sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20025 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20026 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20027 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20028fi
e6cc62c6 20029rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20030 CFLAGS="$ac_save_CFLAGS"
20031 LIBS="$ac_save_LIBS"
20032 fi
20033 fi
20034 GTK_CFLAGS=""
20035 GTK_LIBS=""
20036 :
20037 fi
e6cc62c6
VS
20038
20039
21d1c967
GD
20040 rm -f conf.gtktest
20041
21d1c967 20042
2b5f62a0 20043 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20044
20045# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20046if test "${with_gtk_prefix+set}" = set; then
20047 withval="$with_gtk_prefix"
20048 gtk_config_prefix="$withval"
20049else
20050 gtk_config_prefix=""
e6cc62c6 20051fi;
f79bd02d 20052
21d1c967
GD
20053# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20054if test "${with_gtk_exec_prefix+set}" = set; then
20055 withval="$with_gtk_exec_prefix"
20056 gtk_config_exec_prefix="$withval"
20057else
20058 gtk_config_exec_prefix=""
e6cc62c6 20059fi;
21d1c967
GD
20060# Check whether --enable-gtktest or --disable-gtktest was given.
20061if test "${enable_gtktest+set}" = set; then
20062 enableval="$enable_gtktest"
e6cc62c6 20063
90dd450c 20064else
21d1c967 20065 enable_gtktest=yes
e6cc62c6 20066fi;
21d1c967
GD
20067
20068 for module in . $GTK_MODULES
20069 do
20070 case "$module" in
e6cc62c6 20071 gthread)
21d1c967
GD
20072 gtk_config_args="$gtk_config_args gthread"
20073 ;;
20074 esac
20075 done
20076
20077 if test x$gtk_config_exec_prefix != x ; then
20078 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20079 if test x${GTK_CONFIG+set} != xset ; then
20080 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20081 fi
20082 fi
20083 if test x$gtk_config_prefix != x ; then
20084 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20085 if test x${GTK_CONFIG+set} != xset ; then
20086 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20087 fi
20088 fi
20089
20090 # Extract the first word of "gtk-config", so it can be a program name with args.
20091set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20092echo "$as_me:$LINENO: checking for $ac_word" >&5
20093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20094if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20096else
e6cc62c6
VS
20097 case $GTK_CONFIG in
20098 [\\/]* | ?:[\\/]*)
21d1c967
GD
20099 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20100 ;;
21d1c967 20101 *)
e6cc62c6
VS
20102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20103for as_dir in $PATH
20104do
20105 IFS=$as_save_IFS
20106 test -z "$as_dir" && as_dir=.
20107 for ac_exec_ext in '' $ac_executable_extensions; do
20108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20109 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20111 break 2
20112 fi
20113done
20114done
20115
21d1c967
GD
20116 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20117 ;;
20118esac
20119fi
e6cc62c6
VS
20120GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20121
21d1c967 20122if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20123 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20124echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20125else
e6cc62c6
VS
20126 echo "$as_me:$LINENO: result: no" >&5
20127echo "${ECHO_T}no" >&6
21d1c967
GD
20128fi
20129
20130 min_gtk_version=1.2.3
e6cc62c6
VS
20131 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20132echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20133 no_gtk=""
20134 if test "$GTK_CONFIG" = "no" ; then
20135 no_gtk=yes
20136 else
20137 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20138 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20139 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20140 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20141 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20142 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20143 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20144 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20145 if test "x$enable_gtktest" = "xyes" ; then
20146 ac_save_CFLAGS="$CFLAGS"
20147 ac_save_LIBS="$LIBS"
20148 CFLAGS="$CFLAGS $GTK_CFLAGS"
20149 LIBS="$GTK_LIBS $LIBS"
20150 rm -f conf.gtktest
20151 if test "$cross_compiling" = yes; then
20152 echo $ac_n "cross compiling; assumed OK... $ac_c"
20153else
e6cc62c6
VS
20154 cat >conftest.$ac_ext <<_ACEOF
20155#line $LINENO "configure"
20156/* confdefs.h. */
20157_ACEOF
20158cat confdefs.h >>conftest.$ac_ext
20159cat >>conftest.$ac_ext <<_ACEOF
20160/* end confdefs.h. */
21d1c967
GD
20161
20162#include <gtk/gtk.h>
20163#include <stdio.h>
20164#include <stdlib.h>
20165
e6cc62c6 20166int
21d1c967
GD
20167main ()
20168{
20169 int major, minor, micro;
20170 char *tmp_version;
20171
20172 system ("touch conf.gtktest");
20173
20174 /* HP/UX 9 (%@#!) writes to sscanf strings */
20175 tmp_version = g_strdup("$min_gtk_version");
20176 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20177 printf("%s, bad version string\n", "$min_gtk_version");
20178 exit(1);
20179 }
20180
20181 if ((gtk_major_version != $gtk_config_major_version) ||
20182 (gtk_minor_version != $gtk_config_minor_version) ||
20183 (gtk_micro_version != $gtk_config_micro_version))
20184 {
e6cc62c6 20185 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20186 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20187 gtk_major_version, gtk_minor_version, gtk_micro_version);
20188 printf ("*** was found! If gtk-config was correct, then it is best\n");
20189 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20190 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20191 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20192 printf("*** required on your system.\n");
20193 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20194 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20195 printf("*** before re-running configure\n");
e6cc62c6 20196 }
21d1c967
GD
20197#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20198 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20199 (gtk_minor_version != GTK_MINOR_VERSION) ||
20200 (gtk_micro_version != GTK_MICRO_VERSION))
20201 {
20202 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20203 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20204 printf("*** library (version %d.%d.%d)\n",
20205 gtk_major_version, gtk_minor_version, gtk_micro_version);
20206 }
20207#endif /* defined (GTK_MAJOR_VERSION) ... */
20208 else
20209 {
20210 if ((gtk_major_version > major) ||
20211 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20212 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20213 {
20214 return 0;
20215 }
20216 else
20217 {
20218 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20219 gtk_major_version, gtk_minor_version, gtk_micro_version);
20220 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20221 major, minor, micro);
20222 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20223 printf("***\n");
20224 printf("*** If you have already installed a sufficiently new version, this error\n");
20225 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20226 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20227 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20228 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20229 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20230 printf("*** so that the correct libraries are found at run-time))\n");
20231 }
20232 }
20233 return 1;
20234}
20235
e6cc62c6
VS
20236_ACEOF
20237rm -f conftest$ac_exeext
20238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20239 (eval $ac_link) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
21d1c967
GD
20248 :
20249else
e6cc62c6
VS
20250 echo "$as_me: program exited with status $ac_status" >&5
20251echo "$as_me: failed program was:" >&5
20252sed 's/^/| /' conftest.$ac_ext >&5
20253
20254( exit $ac_status )
20255no_gtk=yes
21d1c967 20256fi
e6cc62c6 20257rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20258fi
21d1c967
GD
20259 CFLAGS="$ac_save_CFLAGS"
20260 LIBS="$ac_save_LIBS"
20261 fi
20262 fi
20263 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20264 echo "$as_me:$LINENO: result: yes" >&5
20265echo "${ECHO_T}yes" >&6
20266 wx_cv_lib_gtk=1.2.3
21d1c967 20267 else
e6cc62c6
VS
20268 echo "$as_me:$LINENO: result: no" >&5
20269echo "${ECHO_T}no" >&6
21d1c967
GD
20270 if test "$GTK_CONFIG" = "no" ; then
20271 echo "*** The gtk-config script installed by GTK could not be found"
20272 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20273 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20274 echo "*** full path to gtk-config."
20275 else
20276 if test -f conf.gtktest ; then
20277 :
20278 else
20279 echo "*** Could not run GTK test program, checking why..."
20280 CFLAGS="$CFLAGS $GTK_CFLAGS"
20281 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20282 cat >conftest.$ac_ext <<_ACEOF
20283#line $LINENO "configure"
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
20288/* end confdefs.h. */
21d1c967
GD
20289
20290#include <gtk/gtk.h>
20291#include <stdio.h>
f79bd02d 20292
e6cc62c6
VS
20293int
20294main ()
20295{
20296 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20297 ;
20298 return 0;
20299}
20300_ACEOF
20301rm -f conftest.$ac_objext conftest$ac_exeext
20302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303 (eval $ac_link) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -s conftest$ac_exeext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
21d1c967
GD
20313 echo "*** The test program compiled, but did not run. This usually means"
20314 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20315 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20316 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20317 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20318 echo "*** is required on your system"
20319 echo "***"
20320 echo "*** If you have an old version installed, it is best to remove it, although"
20321 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20322 echo "***"
20323 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20324 echo "*** came with the system with the command"
20325 echo "***"
e6cc62c6 20326 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20327else
e6cc62c6
VS
20328 echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20332 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20333 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20334 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20335fi
e6cc62c6 20336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20337 CFLAGS="$ac_save_CFLAGS"
20338 LIBS="$ac_save_LIBS"
20339 fi
20340 fi
20341 GTK_CFLAGS=""
20342 GTK_LIBS=""
20343 :
20344 fi
e6cc62c6
VS
20345
20346
21d1c967 20347 rm -f conf.gtktest
f79bd02d 20348
2b5f62a0 20349 fi
21d1c967
GD
20350 fi
20351
20352 if test -z "$wx_cv_lib_gtk"; then
20353 wx_cv_lib_gtk=none
20354 else
20355 wx_cv_cflags_gtk=$GTK_CFLAGS
20356 wx_cv_libs_gtk=$GTK_LIBS
20357 fi
e6cc62c6
VS
20358
20359
5c6fa7d2 20360fi
52127426 20361
8284b0c5 20362
21d1c967 20363 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20364 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20365echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20366 fi
20367
20368 case "$wx_cv_lib_gtk" in
20369 2.0) WXGTK20=1
2b5f62a0 20370 TOOLKIT_VERSION=2
21d1c967
GD
20371 ;;
20372 1.2.7) WXGTK127=1
20373 WXGTK12=1
20374 ;;
20375 1.2.3) WXGTK12=1
20376 ;;
e6cc62c6
VS
20377 *) { { echo "$as_me:$LINENO: error:
20378Please check that gtk-config is in path, the directory
20379where GTK+ libraries are installed (returned by
20380'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20381equivalent variable and GTK+ is version 1.2.3 or above.
20382 " >&5
20383echo "$as_me: error:
247f5006
VZ
20384Please check that gtk-config is in path, the directory
20385where GTK+ libraries are installed (returned by
20386'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20387equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20388 " >&2;}
20389 { (exit 1); exit 1; }; }
21d1c967
GD
20390 ;;
20391 esac
20392
b13cd66e
VZ
20393 if test "$WXGTK20" = 1; then
20394 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20395
f09359cf
VS
20396 succeeded=no
20397
20398 if test -z "$PKG_CONFIG"; then
20399 # Extract the first word of "pkg-config", so it can be a program name with args.
20400set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20401echo "$as_me:$LINENO: checking for $ac_word" >&5
20402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20403if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20405else
e6cc62c6
VS
20406 case $PKG_CONFIG in
20407 [\\/]* | ?:[\\/]*)
f09359cf
VS
20408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20409 ;;
f09359cf 20410 *)
e6cc62c6
VS
20411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20412for as_dir in $PATH
20413do
20414 IFS=$as_save_IFS
20415 test -z "$as_dir" && as_dir=.
20416 for ac_exec_ext in '' $ac_executable_extensions; do
20417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20418 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20420 break 2
20421 fi
20422done
20423done
20424
f09359cf
VS
20425 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20426 ;;
20427esac
20428fi
e6cc62c6
VS
20429PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20430
f09359cf 20431if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20432 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20433echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20434else
e6cc62c6
VS
20435 echo "$as_me:$LINENO: result: no" >&5
20436echo "${ECHO_T}no" >&6
f09359cf
VS
20437fi
20438
20439 fi
20440
20441 if test "$PKG_CONFIG" = "no" ; then
20442 echo "*** The pkg-config script could not be found. Make sure it is"
20443 echo "*** in your path, or set the PKG_CONFIG environment variable"
20444 echo "*** to the full path to pkg-config."
20445 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20446 else
20447 PKG_CONFIG_MIN_VERSION=0.9.0
20448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20449 echo "$as_me:$LINENO: checking for pangoft2" >&5
20450echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20451
20452 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20453 echo "$as_me:$LINENO: result: yes" >&5
20454echo "${ECHO_T}yes" >&6
f09359cf
VS
20455 succeeded=yes
20456
e6cc62c6
VS
20457 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20458echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20459 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20460 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20461echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20462
e6cc62c6
VS
20463 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20464echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20465 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20466 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20467echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20468 else
20469 PANGOFT2_CFLAGS=""
20470 PANGOFT2_LIBS=""
e6cc62c6 20471 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20472 ## do set a variable so people can do so.
20473 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20474
f09359cf
VS
20475 fi
20476
e6cc62c6
VS
20477
20478
f09359cf
VS
20479 else
20480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20482 fi
20483 fi
20484
20485 if test $succeeded = yes; then
e6cc62c6 20486
b13cd66e
VZ
20487 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20488 LIBS="$LIBS $PANGOFT2_LIBS"
e6cc62c6 20489
f09359cf 20490 else
e6cc62c6
VS
20491
20492 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20493echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20494 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20495
20496
f09359cf
VS
20497 fi
20498
b13cd66e 20499 fi
2b5f62a0
VZ
20500 else
20501 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20502 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20503echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20504 wxUSE_UNICODE=no
20505 fi
20506 fi
20507
20508 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20509
20510for ac_func in poll
2b5f62a0 20511do
e6cc62c6
VS
20512as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20513echo "$as_me:$LINENO: checking for $ac_func" >&5
20514echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20515if eval "test \"\${$as_ac_var+set}\" = set"; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 cat >conftest.$ac_ext <<_ACEOF
20519#line $LINENO "configure"
20520/* confdefs.h. */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h. */
2b5f62a0 20525/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20526 which can conflict with char $ac_func (); below.
20527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20528 <limits.h> exists even on freestanding compilers. */
20529#ifdef __STDC__
20530# include <limits.h>
20531#else
20532# include <assert.h>
20533#endif
2b5f62a0 20534/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20535#ifdef __cplusplus
20536extern "C"
20537{
20538#endif
2b5f62a0 20539/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20540 builtin and then its argument prototype would still apply. */
20541char $ac_func ();
2b5f62a0
VZ
20542/* The GNU C library defines this for functions which it implements
20543 to always fail with ENOSYS. Some functions are actually named
20544 something starting with __ and the normal name is an alias. */
20545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20546choke me
20547#else
e6cc62c6
VS
20548char (*f) () = $ac_func;
20549#endif
20550#ifdef __cplusplus
20551}
2b5f62a0
VZ
20552#endif
20553
e6cc62c6
VS
20554int
20555main ()
20556{
20557return f != $ac_func;
20558 ;
20559 return 0;
20560}
20561_ACEOF
20562rm -f conftest.$ac_objext conftest$ac_exeext
20563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20564 (eval $ac_link) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -s conftest$ac_exeext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 eval "$as_ac_var=yes"
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579eval "$as_ac_var=no"
20580fi
20581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20582fi
20583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20585if test `eval echo '${'$as_ac_var'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20588_ACEOF
2b5f62a0 20589
2b5f62a0
VZ
20590fi
20591done
20592
f09359cf
VS
20593 fi
20594
21d1c967
GD
20595 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20596 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
20597
20598 AFMINSTALL=afminstall
20599 TOOLKIT=GTK
20600 GUIDIST=GTK_DIST
20601
e6cc62c6
VS
20602 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20603echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20604if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20606else
e6cc62c6 20607 ac_check_lib_save_LIBS=$LIBS
21d1c967 20608LIBS="-lgdk $LIBS"
e6cc62c6
VS
20609cat >conftest.$ac_ext <<_ACEOF
20610#line $LINENO "configure"
20611/* confdefs.h. */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h. */
20616
5c6fa7d2 20617/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20618#ifdef __cplusplus
20619extern "C"
20620#endif
5c6fa7d2 20621/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20622 builtin and then its argument prototype would still apply. */
20623char gdk_im_open ();
20624int
20625main ()
20626{
20627gdk_im_open ();
20628 ;
20629 return 0;
20630}
20631_ACEOF
20632rm -f conftest.$ac_objext conftest$ac_exeext
20633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20634 (eval $ac_link) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
20638 { ac_try='test -s conftest$ac_exeext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_cv_lib_gdk_gdk_im_open=yes
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
20648
20649ac_cv_lib_gdk_gdk_im_open=no
20650fi
20651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20652LIBS=$ac_check_lib_save_LIBS
20653fi
20654echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20655echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20656if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20657 cat >>confdefs.h <<\_ACEOF
21d1c967 20658#define HAVE_XIM 1
e6cc62c6 20659_ACEOF
21d1c967 20660
90dd450c 20661fi
1e6feb95 20662
21d1c967 20663 fi
1e6feb95 20664
21d1c967 20665 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20666 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20667echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20668 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20669 echo "$as_me:$LINENO: result: not found" >&5
20670echo "${ECHO_T}not found" >&6
20671 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20672echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20673 { (exit 1); exit 1; }; }
21d1c967 20674 else
e6cc62c6
VS
20675 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20676echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20677 fi
20678
e6cc62c6
VS
20679 echo "$as_me:$LINENO: checking for libmgl location" >&5
20680echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20681 case "${host}" in
20682 *-*-linux* )
63a76696
VS
20683 if test "x$wxUSE_SHARED" = xyes ; then
20684 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20685 else
20686 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20687 fi
21d1c967
GD
20688 ;;
20689 *-pc-msdosdjgpp )
63a76696 20690 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20691 ;;
20692 *)
e6cc62c6
VS
20693 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20694echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20695 { (exit 1); exit 1; }; }
21d1c967 20696 esac
1e6feb95 20697
21d1c967 20698 mgl_lib_type=""
63a76696
VS
20699 mgl_os=""
20700
20701 for mgl_os_i in $mgl_os_candidates ; do
20702 if test "x$mgl_os" = x ; then
20703 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20704 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20705 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20706 mgl_lib_type=debug
20707 mgl_os=$mgl_os_i
20708 fi
20709 fi
20710 if test "x$mgl_lib_type" = x ; then
20711 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20712 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20713 mgl_lib_type=release
20714 mgl_os=$mgl_os_i
20715 fi
20716 fi
21d1c967 20717 fi
63a76696 20718 done
2224580a 20719
63a76696 20720 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20721 echo "$as_me:$LINENO: result: not found" >&5
20722echo "${ECHO_T}not found" >&6
20723 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20724echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20725 { (exit 1); exit 1; }; }
63a76696 20726 fi
e6cc62c6
VS
20727 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20728echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20729
1d1b75ac
VZ
20730 wxUSE_UNIVERSAL="yes"
20731
21d1c967
GD
20732 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20733 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20734
90dd450c 20735 AFMINSTALL=afminstall
21d1c967
GD
20736 TOOLKIT=MGL
20737 GUIDIST=MGL_DIST
20738 fi
dad6c0ea 20739
21d1c967 20740 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20741 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20742echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20743 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20744 echo "$as_me:$LINENO: result: not found" >&5
20745echo "${ECHO_T}not found" >&6
20746 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20747echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20748 { (exit 1); exit 1; }; }
21d1c967 20749 else
e6cc62c6
VS
20750 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20751echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 20752 fi
f6bcfd97 20753
21d1c967 20754 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
20755 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20756echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 20757 else
e6cc62c6
VS
20758 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20759echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20760 { (exit 1); exit 1; }; }
90dd450c 20761 fi
0b2effe9 20762
21d1c967
GD
20763 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20764 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20765
1d1b75ac
VZ
20766 wxUSE_UNIVERSAL="yes"
20767
21d1c967
GD
20768 AFMINSTALL=afminstall
20769 TOOLKIT=MICROWIN
20770 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
20771
20772 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 20773 fi
f6bcfd97 20774
21d1c967 20775 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
20776 echo "$as_me:$LINENO: checking for X" >&5
20777echo $ECHO_N "checking for X... $ECHO_C" >&6
20778
d8356fa3 20779
21d1c967
GD
20780# Check whether --with-x or --without-x was given.
20781if test "${with_x+set}" = set; then
20782 withval="$with_x"
2224580a 20783
e6cc62c6 20784fi;
21d1c967
GD
20785# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20786if test "x$with_x" = xno; then
20787 # The user explicitly disabled X.
20788 have_x=disabled
20789else
20790 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20791 # Both variables are already set.
20792 have_x=yes
20793 else
e6cc62c6
VS
20794 if test "${ac_cv_have_x+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
20796else
20797 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
20798ac_x_includes=no ac_x_libraries=no
20799rm -fr conftest.dir
20800if mkdir conftest.dir; then
20801 cd conftest.dir
21d1c967 20802 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 20803 cat >Imakefile <<'_ACEOF'
21d1c967
GD
20804acfindx:
20805 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 20806_ACEOF
21d1c967
GD
20807 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20809 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20810 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20811 for ac_extension in a so sl; do
20812 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 20813 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
20814 ac_im_usrlibdir=$ac_im_libdir; break
20815 fi
20816 done
20817 # Screen out bogus values from the imake configuration. They are
20818 # bogus both because they are the default anyway, and because
20819 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 20820 case $ac_im_incroot in
21d1c967 20821 /usr/include) ;;
e6cc62c6 20822 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 20823 esac
e6cc62c6 20824 case $ac_im_usrlibdir in
21d1c967 20825 /usr/lib | /lib) ;;
e6cc62c6 20826 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
20827 esac
20828 fi
20829 cd ..
e6cc62c6 20830 rm -fr conftest.dir
21d1c967 20831fi
10f2d63a 20832
e6cc62c6
VS
20833# Standard set of common directories for X headers.
20834# Check X11 before X11Rn because it is often a symlink to the current release.
20835ac_x_header_dirs='
20836/usr/X11/include
20837/usr/X11R6/include
20838/usr/X11R5/include
20839/usr/X11R4/include
20840
20841/usr/include/X11
20842/usr/include/X11R6
20843/usr/include/X11R5
20844/usr/include/X11R4
20845
20846/usr/local/X11/include
20847/usr/local/X11R6/include
20848/usr/local/X11R5/include
20849/usr/local/X11R4/include
20850
20851/usr/local/include/X11
20852/usr/local/include/X11R6
20853/usr/local/include/X11R5
20854/usr/local/include/X11R4
20855
20856/usr/X386/include
20857/usr/x386/include
20858/usr/XFree86/include/X11
20859
20860/usr/include
20861/usr/local/include
20862/usr/unsupported/include
20863/usr/athena/include
20864/usr/local/x11r5/include
20865/usr/lpp/Xamples/include
20866
20867/usr/openwin/include
20868/usr/openwin/share/include'
20869
20870if test "$ac_x_includes" = no; then
20871 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 20872 # First, try using that file with no special directory specified.
e6cc62c6
VS
20873 cat >conftest.$ac_ext <<_ACEOF
20874#line $LINENO "configure"
20875/* confdefs.h. */
20876_ACEOF
20877cat confdefs.h >>conftest.$ac_ext
20878cat >>conftest.$ac_ext <<_ACEOF
20879/* end confdefs.h. */
20880#include <X11/Intrinsic.h>
20881_ACEOF
20882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } >/dev/null; then
20890 if test -s conftest.err; then
20891 ac_cpp_err=$ac_c_preproc_warn_flag
20892 else
20893 ac_cpp_err=
20894 fi
20895else
20896 ac_cpp_err=yes
20897fi
20898if test -z "$ac_cpp_err"; then
21d1c967
GD
20899 # We can compile using X headers with no special include directory.
20900ac_x_includes=
90dd450c 20901else
e6cc62c6
VS
20902 echo "$as_me: failed program was:" >&5
20903sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 for ac_dir in $ac_x_header_dirs; do
20906 if test -r "$ac_dir/X11/Intrinsic.h"; then
20907 ac_x_includes=$ac_dir
20908 break
20909 fi
20910done
3a922bb4 20911fi
e6cc62c6
VS
20912rm -f conftest.err conftest.$ac_ext
20913fi # $ac_x_includes = no
10f2d63a 20914
e6cc62c6 20915if test "$ac_x_libraries" = no; then
21d1c967 20916 # Check for the libraries.
21d1c967
GD
20917 # See if we find them without any special options.
20918 # Don't add to $LIBS permanently.
e6cc62c6
VS
20919 ac_save_LIBS=$LIBS
20920 LIBS="-lXt $LIBS"
20921 cat >conftest.$ac_ext <<_ACEOF
20922#line $LINENO "configure"
20923/* confdefs.h. */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h. */
20928#include <X11/Intrinsic.h>
20929int
20930main ()
20931{
20932XtMalloc (0)
20933 ;
20934 return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext conftest$ac_exeext
20938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20939 (eval $ac_link) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } &&
20943 { ac_try='test -s conftest$ac_exeext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20949 LIBS=$ac_save_LIBS
21d1c967
GD
20950# We can link X programs with no special library path.
20951ac_x_libraries=
3a922bb4 20952else
e6cc62c6
VS
20953 echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
20956LIBS=$ac_save_LIBS
20957for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 20958do
e6cc62c6 20959 # Don't even attempt the hair of trying to link an X program!
21d1c967 20960 for ac_extension in a so sl; do
e6cc62c6 20961 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
20962 ac_x_libraries=$ac_dir
20963 break 2
20964 fi
20965 done
20966done
3a922bb4 20967fi
e6cc62c6
VS
20968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20969fi # $ac_x_libraries = no
90dd450c 20970
e6cc62c6 20971if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
20972 # Didn't find X anywhere. Cache the known absence of X.
20973 ac_cv_have_x="have_x=no"
20974else
20975 # Record where we found X for the cache.
20976 ac_cv_have_x="have_x=yes \
20977 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 20978fi
21d1c967 20979fi
e6cc62c6 20980
21d1c967
GD
20981 fi
20982 eval "$ac_cv_have_x"
20983fi # $with_x != no
90dd450c 20984
21d1c967 20985if test "$have_x" != yes; then
e6cc62c6
VS
20986 echo "$as_me:$LINENO: result: $have_x" >&5
20987echo "${ECHO_T}$have_x" >&6
21d1c967
GD
20988 no_x=yes
20989else
20990 # If each of the values was on the command line, it overrides each guess.
20991 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20992 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20993 # Update the cache value to reflect the command line values.
20994 ac_cv_have_x="have_x=yes \
20995 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
20996 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20997echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 20998fi
90dd450c 20999
21d1c967 21000if test "$no_x" = yes; then
90dd450c 21001 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21002
21003cat >>confdefs.h <<\_ACEOF
90dd450c 21004#define X_DISPLAY_MISSING 1
e6cc62c6 21005_ACEOF
90dd450c
VZ
21006
21007 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21008else
21009 if test -n "$x_includes"; then
21010 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21011 fi
3a922bb4 21012
90dd450c
VZ
21013 # It would also be nice to do this for all -L options, not just this one.
21014 if test -n "$x_libraries"; then
21015 X_LIBS="$X_LIBS -L$x_libraries"
21016 # For Solaris; some versions of Sun CC require a space after -R and
21017 # others require no space. Words are not sufficient . . . .
e6cc62c6 21018 case `(uname -sr) 2>/dev/null` in
90dd450c 21019 "SunOS 5"*)
e6cc62c6
VS
21020 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21021echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21022 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21023 cat >conftest.$ac_ext <<_ACEOF
21024#line $LINENO "configure"
21025/* confdefs.h. */
21026_ACEOF
21027cat confdefs.h >>conftest.$ac_ext
21028cat >>conftest.$ac_ext <<_ACEOF
21029/* end confdefs.h. */
21030
21031int
21032main ()
21033{
90dd450c 21034
e6cc62c6
VS
21035 ;
21036 return 0;
21037}
21038_ACEOF
21039rm -f conftest.$ac_objext conftest$ac_exeext
21040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21041 (eval $ac_link) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
21045 { ac_try='test -s conftest$ac_exeext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
90dd450c 21051 ac_R_nospace=yes
3a922bb4 21052else
e6cc62c6
VS
21053 echo "$as_me: failed program was:" >&5
21054sed 's/^/| /' conftest.$ac_ext >&5
21055
21056ac_R_nospace=no
3a922bb4 21057fi
e6cc62c6 21058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21059 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21060 echo "$as_me:$LINENO: result: no" >&5
21061echo "${ECHO_T}no" >&6
90dd450c
VZ
21062 X_LIBS="$X_LIBS -R$x_libraries"
21063 else
21064 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21065 cat >conftest.$ac_ext <<_ACEOF
21066#line $LINENO "configure"
21067/* confdefs.h. */
21068_ACEOF
21069cat confdefs.h >>conftest.$ac_ext
21070cat >>conftest.$ac_ext <<_ACEOF
21071/* end confdefs.h. */
21072
21073int
21074main ()
21075{
6f754473 21076
e6cc62c6
VS
21077 ;
21078 return 0;
21079}
21080_ACEOF
21081rm -f conftest.$ac_objext conftest$ac_exeext
21082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21083 (eval $ac_link) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try='test -s conftest$ac_exeext'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
90dd450c
VZ
21093 ac_R_space=yes
21094else
e6cc62c6
VS
21095 echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
21098ac_R_space=no
90dd450c 21099fi
e6cc62c6 21100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21101 if test $ac_R_space = yes; then
e6cc62c6
VS
21102 echo "$as_me:$LINENO: result: yes" >&5
21103echo "${ECHO_T}yes" >&6
90dd450c
VZ
21104 X_LIBS="$X_LIBS -R $x_libraries"
21105 else
e6cc62c6
VS
21106 echo "$as_me:$LINENO: result: neither works" >&5
21107echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21108 fi
21109 fi
e6cc62c6 21110 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21111 esac
21112 fi
21113
21114 # Check for system-dependent libraries X programs must link with.
21115 # Do this before checking for the system-independent R6 libraries
21116 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21117
90dd450c
VZ
21118 if test "$ISC" = yes; then
21119 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21120 else
e6cc62c6
VS
21121 # Martyn Johnson says this is needed for Ultrix, if the X
21122 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21123 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21124 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21125 cat >conftest.$ac_ext <<_ACEOF
21126#line $LINENO "configure"
21127/* confdefs.h. */
21128_ACEOF
21129cat confdefs.h >>conftest.$ac_ext
21130cat >>conftest.$ac_ext <<_ACEOF
21131/* end confdefs.h. */
21132
247f5006 21133/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21134#ifdef __cplusplus
21135extern "C"
21136#endif
247f5006 21137/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21138 builtin and then its argument prototype would still apply. */
21139char XOpenDisplay ();
21140int
21141main ()
21142{
21143XOpenDisplay ();
21144 ;
21145 return 0;
21146}
21147_ACEOF
21148rm -f conftest.$ac_objext conftest$ac_exeext
21149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21150 (eval $ac_link) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -s conftest$ac_exeext'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 :
21161else
21162 echo "$as_me: failed program was:" >&5
21163sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21164
e6cc62c6
VS
21165echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21166echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21167if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21169else
e6cc62c6
VS
21170 ac_check_lib_save_LIBS=$LIBS
21171LIBS="-ldnet $LIBS"
21172cat >conftest.$ac_ext <<_ACEOF
21173#line $LINENO "configure"
21174/* confdefs.h. */
21175_ACEOF
21176cat confdefs.h >>conftest.$ac_ext
21177cat >>conftest.$ac_ext <<_ACEOF
21178/* end confdefs.h. */
a0b9e27f 21179
e6cc62c6
VS
21180/* Override any gcc2 internal prototype to avoid an error. */
21181#ifdef __cplusplus
21182extern "C"
21183#endif
21184/* We use char because int might match the return type of a gcc2
21185 builtin and then its argument prototype would still apply. */
21186char dnet_ntoa ();
21187int
21188main ()
21189{
21190dnet_ntoa ();
21191 ;
21192 return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext conftest$ac_exeext
21196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197 (eval $ac_link) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -s conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_lib_dnet_dnet_ntoa=yes
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212ac_cv_lib_dnet_dnet_ntoa=no
21213fi
21214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21215LIBS=$ac_check_lib_save_LIBS
21216fi
21217echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21218echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21219if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21220 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21221fi
21222
90dd450c 21223 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21224 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21225echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21226if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21228else
e6cc62c6 21229 ac_check_lib_save_LIBS=$LIBS
90dd450c 21230LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21231cat >conftest.$ac_ext <<_ACEOF
21232#line $LINENO "configure"
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238
90dd450c 21239/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21240#ifdef __cplusplus
21241extern "C"
21242#endif
90dd450c 21243/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21244 builtin and then its argument prototype would still apply. */
21245char dnet_ntoa ();
21246int
21247main ()
21248{
21249dnet_ntoa ();
21250 ;
21251 return 0;
21252}
21253_ACEOF
21254rm -f conftest.$ac_objext conftest$ac_exeext
21255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21256 (eval $ac_link) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } &&
21260 { ac_try='test -s conftest$ac_exeext'
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; }; then
21266 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21267else
21268 echo "$as_me: failed program was:" >&5
21269sed 's/^/| /' conftest.$ac_ext >&5
21270
21271ac_cv_lib_dnet_stub_dnet_ntoa=no
21272fi
21273rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21274LIBS=$ac_check_lib_save_LIBS
21275fi
21276echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21277echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21278if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21279 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21280fi
21281
90dd450c 21282 fi
e6cc62c6
VS
21283fi
21284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21285 LIBS="$ac_xsave_LIBS"
978f1259 21286
90dd450c
VZ
21287 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21288 # to get the SysV transport functions.
e6cc62c6 21289 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21290 # needs -lnsl.
21291 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21292 # on Irix 5.2, according to T.E. Dickey.
21293 # The functions gethostbyname, getservbyname, and inet_addr are
21294 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21295 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21296echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21297if test "${ac_cv_func_gethostbyname+set}" = set; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21299else
21300 cat >conftest.$ac_ext <<_ACEOF
21301#line $LINENO "configure"
21302/* confdefs.h. */
21303_ACEOF
21304cat confdefs.h >>conftest.$ac_ext
21305cat >>conftest.$ac_ext <<_ACEOF
21306/* end confdefs.h. */
90dd450c 21307/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21308 which can conflict with char gethostbyname (); below.
21309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21310 <limits.h> exists even on freestanding compilers. */
21311#ifdef __STDC__
21312# include <limits.h>
21313#else
21314# include <assert.h>
21315#endif
90dd450c 21316/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21317#ifdef __cplusplus
21318extern "C"
21319{
21320#endif
90dd450c 21321/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21322 builtin and then its argument prototype would still apply. */
21323char gethostbyname ();
90dd450c
VZ
21324/* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21328choke me
21329#else
e6cc62c6
VS
21330char (*f) () = gethostbyname;
21331#endif
21332#ifdef __cplusplus
21333}
90dd450c 21334#endif
978f1259 21335
e6cc62c6
VS
21336int
21337main ()
21338{
21339return f != gethostbyname;
21340 ;
21341 return 0;
21342}
21343_ACEOF
21344rm -f conftest.$ac_objext conftest$ac_exeext
21345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); } &&
21350 { ac_try='test -s conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_func_gethostbyname=yes
21357else
21358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361ac_cv_func_gethostbyname=no
21362fi
21363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21364fi
21365echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21366echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21367
90dd450c 21368 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21369 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21370echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21371if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21373else
e6cc62c6 21374 ac_check_lib_save_LIBS=$LIBS
90dd450c 21375LIBS="-lnsl $LIBS"
e6cc62c6
VS
21376cat >conftest.$ac_ext <<_ACEOF
21377#line $LINENO "configure"
21378/* confdefs.h. */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h. */
21383
90dd450c 21384/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21385#ifdef __cplusplus
21386extern "C"
21387#endif
90dd450c 21388/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21389 builtin and then its argument prototype would still apply. */
21390char gethostbyname ();
21391int
21392main ()
21393{
21394gethostbyname ();
21395 ;
21396 return 0;
21397}
21398_ACEOF
21399rm -f conftest.$ac_objext conftest$ac_exeext
21400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401 (eval $ac_link) 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -s conftest$ac_exeext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_lib_nsl_gethostbyname=yes
21412else
21413 echo "$as_me: failed program was:" >&5
21414sed 's/^/| /' conftest.$ac_ext >&5
21415
21416ac_cv_lib_nsl_gethostbyname=no
21417fi
21418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21419LIBS=$ac_check_lib_save_LIBS
21420fi
21421echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21422echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21423if test $ac_cv_lib_nsl_gethostbyname = yes; then
21424 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21425fi
247f5006 21426
e6cc62c6
VS
21427 if test $ac_cv_lib_nsl_gethostbyname = no; then
21428 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21429echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21430if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21432else
e6cc62c6
VS
21433 ac_check_lib_save_LIBS=$LIBS
21434LIBS="-lbsd $LIBS"
21435cat >conftest.$ac_ext <<_ACEOF
21436#line $LINENO "configure"
21437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
21442
21443/* Override any gcc2 internal prototype to avoid an error. */
21444#ifdef __cplusplus
21445extern "C"
21446#endif
21447/* We use char because int might match the return type of a gcc2
21448 builtin and then its argument prototype would still apply. */
21449char gethostbyname ();
21450int
21451main ()
21452{
21453gethostbyname ();
21454 ;
21455 return 0;
21456}
21457_ACEOF
21458rm -f conftest.$ac_objext conftest$ac_exeext
21459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460 (eval $ac_link) 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
21464 { ac_try='test -s conftest$ac_exeext'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; }; then
21470 ac_cv_lib_bsd_gethostbyname=yes
21471else
21472 echo "$as_me: failed program was:" >&5
21473sed 's/^/| /' conftest.$ac_ext >&5
21474
21475ac_cv_lib_bsd_gethostbyname=no
21476fi
21477rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21478LIBS=$ac_check_lib_save_LIBS
21479fi
21480echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21481echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21482if test $ac_cv_lib_bsd_gethostbyname = yes; then
21483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21484fi
b12915c1 21485
e6cc62c6 21486 fi
90dd450c
VZ
21487 fi
21488
21489 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21490 # socket/setsockopt and other routines are undefined under SCO ODT
21491 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21492 # on later versions), says Simon Leinen: it contains gethostby*
21493 # variants that don't use the name server (or something). -lsocket
21494 # must be given before -lnsl if both are needed. We assume that
21495 # if connect needs -lnsl, so does gethostbyname.
21496 echo "$as_me:$LINENO: checking for connect" >&5
21497echo $ECHO_N "checking for connect... $ECHO_C" >&6
21498if test "${ac_cv_func_connect+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21500else
21501 cat >conftest.$ac_ext <<_ACEOF
21502#line $LINENO "configure"
21503/* confdefs.h. */
21504_ACEOF
21505cat confdefs.h >>conftest.$ac_ext
21506cat >>conftest.$ac_ext <<_ACEOF
21507/* end confdefs.h. */
90dd450c 21508/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21509 which can conflict with char connect (); below.
21510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21511 <limits.h> exists even on freestanding compilers. */
21512#ifdef __STDC__
21513# include <limits.h>
21514#else
21515# include <assert.h>
21516#endif
90dd450c 21517/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21518#ifdef __cplusplus
21519extern "C"
21520{
21521#endif
90dd450c 21522/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21523 builtin and then its argument prototype would still apply. */
21524char connect ();
90dd450c
VZ
21525/* The GNU C library defines this for functions which it implements
21526 to always fail with ENOSYS. Some functions are actually named
21527 something starting with __ and the normal name is an alias. */
21528#if defined (__stub_connect) || defined (__stub___connect)
21529choke me
21530#else
e6cc62c6
VS
21531char (*f) () = connect;
21532#endif
21533#ifdef __cplusplus
21534}
90dd450c
VZ
21535#endif
21536
e6cc62c6
VS
21537int
21538main ()
21539{
21540return f != connect;
21541 ;
21542 return 0;
21543}
21544_ACEOF
21545rm -f conftest.$ac_objext conftest$ac_exeext
21546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21547 (eval $ac_link) 2>&5
21548 ac_status=$?
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -s conftest$ac_exeext'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; }; then
21557 ac_cv_func_connect=yes
21558else
21559 echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562ac_cv_func_connect=no
21563fi
21564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21565fi
21566echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21567echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21568
90dd450c 21569 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21570 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21571echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21572if test "${ac_cv_lib_socket_connect+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21574else
e6cc62c6 21575 ac_check_lib_save_LIBS=$LIBS
90dd450c 21576LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21577cat >conftest.$ac_ext <<_ACEOF
21578#line $LINENO "configure"
21579/* confdefs.h. */
21580_ACEOF
21581cat confdefs.h >>conftest.$ac_ext
21582cat >>conftest.$ac_ext <<_ACEOF
21583/* end confdefs.h. */
21584
90dd450c 21585/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21586#ifdef __cplusplus
21587extern "C"
21588#endif
90dd450c 21589/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21590 builtin and then its argument prototype would still apply. */
21591char connect ();
21592int
21593main ()
21594{
21595connect ();
21596 ;
21597 return 0;
21598}
21599_ACEOF
21600rm -f conftest.$ac_objext conftest$ac_exeext
21601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21602 (eval $ac_link) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
21606 { ac_try='test -s conftest$ac_exeext'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_cv_lib_socket_connect=yes
21613else
21614 echo "$as_me: failed program was:" >&5
21615sed 's/^/| /' conftest.$ac_ext >&5
21616
21617ac_cv_lib_socket_connect=no
21618fi
21619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21620LIBS=$ac_check_lib_save_LIBS
21621fi
21622echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21623echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21624if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21625 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21626fi
77e13408 21627
90dd450c 21628 fi
25d0687a 21629
e6cc62c6
VS
21630 # Guillermo Gomez says -lposix is necessary on A/UX.
21631 echo "$as_me:$LINENO: checking for remove" >&5
21632echo $ECHO_N "checking for remove... $ECHO_C" >&6
21633if test "${ac_cv_func_remove+set}" = set; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21635else
21636 cat >conftest.$ac_ext <<_ACEOF
21637#line $LINENO "configure"
21638/* confdefs.h. */
21639_ACEOF
21640cat confdefs.h >>conftest.$ac_ext
21641cat >>conftest.$ac_ext <<_ACEOF
21642/* end confdefs.h. */
90dd450c 21643/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21644 which can conflict with char remove (); below.
21645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21646 <limits.h> exists even on freestanding compilers. */
21647#ifdef __STDC__
21648# include <limits.h>
21649#else
21650# include <assert.h>
21651#endif
90dd450c 21652/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21653#ifdef __cplusplus
21654extern "C"
21655{
21656#endif
90dd450c 21657/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21658 builtin and then its argument prototype would still apply. */
21659char remove ();
90dd450c
VZ
21660/* The GNU C library defines this for functions which it implements
21661 to always fail with ENOSYS. Some functions are actually named
21662 something starting with __ and the normal name is an alias. */
21663#if defined (__stub_remove) || defined (__stub___remove)
21664choke me
21665#else
e6cc62c6
VS
21666char (*f) () = remove;
21667#endif
21668#ifdef __cplusplus
21669}
90dd450c 21670#endif
55e80573 21671
e6cc62c6
VS
21672int
21673main ()
21674{
21675return f != remove;
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext conftest$ac_exeext
21681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
21686 { ac_try='test -s conftest$ac_exeext'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_func_remove=yes
21693else
21694 echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
21696
21697ac_cv_func_remove=no
21698fi
21699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21700fi
21701echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21702echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21703
90dd450c 21704 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21705 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21706echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21707if test "${ac_cv_lib_posix_remove+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21709else
e6cc62c6 21710 ac_check_lib_save_LIBS=$LIBS
90dd450c 21711LIBS="-lposix $LIBS"
e6cc62c6
VS
21712cat >conftest.$ac_ext <<_ACEOF
21713#line $LINENO "configure"
21714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
21719
90dd450c 21720/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21721#ifdef __cplusplus
21722extern "C"
21723#endif
90dd450c 21724/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21725 builtin and then its argument prototype would still apply. */
21726char remove ();
21727int
21728main ()
21729{
21730remove ();
21731 ;
21732 return 0;
21733}
21734_ACEOF
21735rm -f conftest.$ac_objext conftest$ac_exeext
21736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737 (eval $ac_link) 2>&5
21738 ac_status=$?
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } &&
21741 { ac_try='test -s conftest$ac_exeext'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; }; then
21747 ac_cv_lib_posix_remove=yes
21748else
21749 echo "$as_me: failed program was:" >&5
21750sed 's/^/| /' conftest.$ac_ext >&5
21751
21752ac_cv_lib_posix_remove=no
21753fi
21754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21755LIBS=$ac_check_lib_save_LIBS
21756fi
21757echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21758echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21759if test $ac_cv_lib_posix_remove = yes; then
90dd450c 21760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 21761fi
f6bcfd97 21762
6fa882bd
RR
21763 fi
21764
90dd450c 21765 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
21766 echo "$as_me:$LINENO: checking for shmat" >&5
21767echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21768if test "${ac_cv_func_shmat+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21770else
21771 cat >conftest.$ac_ext <<_ACEOF
21772#line $LINENO "configure"
21773/* confdefs.h. */
21774_ACEOF
21775cat confdefs.h >>conftest.$ac_ext
21776cat >>conftest.$ac_ext <<_ACEOF
21777/* end confdefs.h. */
90dd450c 21778/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21779 which can conflict with char shmat (); below.
21780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21781 <limits.h> exists even on freestanding compilers. */
21782#ifdef __STDC__
21783# include <limits.h>
21784#else
21785# include <assert.h>
21786#endif
90dd450c 21787/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21788#ifdef __cplusplus
21789extern "C"
21790{
21791#endif
90dd450c 21792/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21793 builtin and then its argument prototype would still apply. */
21794char shmat ();
90dd450c
VZ
21795/* The GNU C library defines this for functions which it implements
21796 to always fail with ENOSYS. Some functions are actually named
21797 something starting with __ and the normal name is an alias. */
21798#if defined (__stub_shmat) || defined (__stub___shmat)
21799choke me
21800#else
e6cc62c6
VS
21801char (*f) () = shmat;
21802#endif
21803#ifdef __cplusplus
21804}
90dd450c 21805#endif
10f2d63a 21806
e6cc62c6
VS
21807int
21808main ()
21809{
21810return f != shmat;
21811 ;
21812 return 0;
21813}
21814_ACEOF
21815rm -f conftest.$ac_objext conftest$ac_exeext
21816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21817 (eval $ac_link) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try='test -s conftest$ac_exeext'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_func_shmat=yes
21828else
21829 echo "$as_me: failed program was:" >&5
21830sed 's/^/| /' conftest.$ac_ext >&5
21831
21832ac_cv_func_shmat=no
21833fi
21834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21835fi
21836echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21837echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 21838
90dd450c 21839 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
21840 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21841echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21842if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 21844else
e6cc62c6 21845 ac_check_lib_save_LIBS=$LIBS
90dd450c 21846LIBS="-lipc $LIBS"
e6cc62c6
VS
21847cat >conftest.$ac_ext <<_ACEOF
21848#line $LINENO "configure"
21849/* confdefs.h. */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h. */
21854
8284b0c5 21855/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21856#ifdef __cplusplus
21857extern "C"
21858#endif
90dd450c 21859/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21860 builtin and then its argument prototype would still apply. */
21861char shmat ();
21862int
21863main ()
21864{
21865shmat ();
21866 ;
21867 return 0;
21868}
21869_ACEOF
21870rm -f conftest.$ac_objext conftest$ac_exeext
21871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872 (eval $ac_link) 2>&5
21873 ac_status=$?
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } &&
21876 { ac_try='test -s conftest$ac_exeext'
21877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); }; }; then
21882 ac_cv_lib_ipc_shmat=yes
21883else
21884 echo "$as_me: failed program was:" >&5
21885sed 's/^/| /' conftest.$ac_ext >&5
21886
21887ac_cv_lib_ipc_shmat=no
21888fi
21889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21890LIBS=$ac_check_lib_save_LIBS
21891fi
21892echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21893echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21894if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 21895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
21896fi
21897
d558c907 21898 fi
90dd450c 21899 fi
3a922bb4 21900
90dd450c 21901 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 21902 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
21903 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21904 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21905 # check for ICE first), but we must link in the order -lSM -lICE or
21906 # we get undefined symbols. So assume we have SM if we have ICE.
21907 # These have to be linked with before -lX11, unlike the other
21908 # libraries we check for below, so use a different variable.
e6cc62c6
VS
21909 # John Interrante, Karl Berry
21910 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21911echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21912if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21914else
21915 ac_check_lib_save_LIBS=$LIBS
f09359cf 21916LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21917cat >conftest.$ac_ext <<_ACEOF
21918#line $LINENO "configure"
21919/* confdefs.h. */
21920_ACEOF
21921cat confdefs.h >>conftest.$ac_ext
21922cat >>conftest.$ac_ext <<_ACEOF
21923/* end confdefs.h. */
21924
90dd450c 21925/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21926#ifdef __cplusplus
21927extern "C"
21928#endif
90dd450c 21929/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21930 builtin and then its argument prototype would still apply. */
21931char IceConnectionNumber ();
21932int
21933main ()
21934{
21935IceConnectionNumber ();
21936 ;
21937 return 0;
21938}
21939_ACEOF
21940rm -f conftest.$ac_objext conftest$ac_exeext
21941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21942 (eval $ac_link) 2>&5
21943 ac_status=$?
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } &&
21946 { ac_try='test -s conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_lib_ICE_IceConnectionNumber=yes
21953else
21954 echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5
21956
21957ac_cv_lib_ICE_IceConnectionNumber=no
21958fi
21959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21960LIBS=$ac_check_lib_save_LIBS
21961fi
21962echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21963echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21964if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 21965 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 21966fi
10f2d63a 21967
e6cc62c6 21968 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
21969
21970fi
21971
8284b0c5 21972
90dd450c 21973 if test "$no_x" = "yes"; then
e6cc62c6
VS
21974 { { echo "$as_me:$LINENO: error: X11 not found" >&5
21975echo "$as_me: error: X11 not found" >&2;}
21976 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
21977 fi
21978
21979 GUI_TK_LIBRARY="$X_LIBS"
21980 TOOLKIT_INCLUDE="$X_CFLAGS"
21981 AFMINSTALL=afminstall
21982 COMPILED_X_PROGRAM=0
21983
21d1c967 21984 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
21985 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
21986echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 21987 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
21988 echo "$as_me:$LINENO: result: not found" >&5
21989echo "${ECHO_T}not found" >&6
21990 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
21991echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
21992 { (exit 1); exit 1; }; }
90dd450c 21993 else
e6cc62c6
VS
21994 echo "$as_me:$LINENO: result: $MICROWIN" >&5
21995echo "${ECHO_T}$MICROWIN" >&6
21996 cat >>confdefs.h <<\_ACEOF
21d1c967 21997#define wxUSE_NANOX 1
e6cc62c6 21998_ACEOF
21d1c967 21999
90dd450c
VZ
22000 fi
22001 fi
22002
22003 xpm_link=
e6cc62c6
VS
22004 echo "$as_me:$LINENO: checking for Xpm library" >&5
22005echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22006
90dd450c 22007ac_find_libraries=
2b5f62a0 22008for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22009 do
22010 for ac_extension in a so sl dylib; do
22011 if test -f "$ac_dir/libXpm.$ac_extension"; then
22012 ac_find_libraries=$ac_dir
22013 break 2
22014 fi
22015 done
22016 done
22017
22018 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22019
90dd450c
VZ
22020 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22021 result=$?
22022 if test $result = 0; then
22023 ac_path_to_link=""
22024 else
22025 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22026 fi
90dd450c 22027
21d1c967
GD
22028 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22029 xpm_link=" -lXpm"
e6cc62c6 22030 cat >>confdefs.h <<\_ACEOF
21d1c967 22031#define wxHAVE_LIB_XPM 1
e6cc62c6 22032_ACEOF
90dd450c 22033
e6cc62c6
VS
22034 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22035echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22036 else
e6cc62c6
VS
22037 cat >conftest.$ac_ext <<_ACEOF
22038#line $LINENO "configure"
22039/* confdefs.h. */
22040_ACEOF
22041cat confdefs.h >>conftest.$ac_ext
22042cat >>conftest.$ac_ext <<_ACEOF
22043/* end confdefs.h. */
90dd450c 22044
21d1c967 22045 #include <X11/xpm.h>
e6cc62c6
VS
22046
22047int
22048main ()
22049{
6f72b082 22050
21d1c967
GD
22051 int version;
22052 version = XpmLibraryVersion();
e6cc62c6
VS
22053
22054 ;
22055 return 0;
22056}
22057_ACEOF
22058rm -f conftest.$ac_objext
22059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060 (eval $ac_compile) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } &&
22064 { ac_try='test -s conftest.$ac_objext'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22067 ac_status=$?
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; }; then
22070
21d1c967 22071 xpm_link=" -lXpm"
e6cc62c6 22072 cat >>confdefs.h <<\_ACEOF
21d1c967 22073#define wxHAVE_LIB_XPM 1
e6cc62c6 22074_ACEOF
90dd450c 22075
e6cc62c6
VS
22076 echo "$as_me:$LINENO: result: found in default search path" >&5
22077echo "${ECHO_T}found in default search path" >&6
21d1c967 22078 COMPILED_X_PROGRAM=0
e6cc62c6 22079
21d1c967 22080else
e6cc62c6
VS
22081 echo "$as_me: failed program was:" >&5
22082sed 's/^/| /' conftest.$ac_ext >&5
22083
22084
22085 echo "$as_me:$LINENO: result: no" >&5
22086echo "${ECHO_T}no" >&6
22087 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22088echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22089
22090
6f72b082 22091fi
e6cc62c6 22092rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22093 fi
90dd450c 22094
e6cc62c6
VS
22095 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22096echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22097if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22099else
e6cc62c6 22100 ac_check_lib_save_LIBS=$LIBS
f7f78039 22101LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22102cat >conftest.$ac_ext <<_ACEOF
22103#line $LINENO "configure"
22104/* confdefs.h. */
22105_ACEOF
22106cat confdefs.h >>conftest.$ac_ext
22107cat >>conftest.$ac_ext <<_ACEOF
22108/* end confdefs.h. */
22109
f7f78039 22110/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22111#ifdef __cplusplus
22112extern "C"
22113#endif
f7f78039 22114/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22115 builtin and then its argument prototype would still apply. */
22116char XShapeQueryExtension ();
22117int
22118main ()
22119{
22120XShapeQueryExtension ();
22121 ;
22122 return 0;
22123}
22124_ACEOF
22125rm -f conftest.$ac_objext conftest$ac_exeext
22126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22127 (eval $ac_link) 2>&5
22128 ac_status=$?
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -s conftest$ac_exeext'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_lib_Xext_XShapeQueryExtension=yes
22138else
22139 echo "$as_me: failed program was:" >&5
22140sed 's/^/| /' conftest.$ac_ext >&5
22141
22142ac_cv_lib_Xext_XShapeQueryExtension=no
22143fi
22144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22145LIBS=$ac_check_lib_save_LIBS
22146fi
22147echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22148echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22149if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22150
f7f78039
MB
22151 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22152 wxHAVE_XEXT_LIB=1
e6cc62c6 22153
f7f78039
MB
22154fi
22155
22156
2b5f62a0 22157 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22158
2b5f62a0 22159 succeeded=no
90dd450c 22160
2b5f62a0
VZ
22161 if test -z "$PKG_CONFIG"; then
22162 # Extract the first word of "pkg-config", so it can be a program name with args.
22163set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22164echo "$as_me:$LINENO: checking for $ac_word" >&5
22165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22166if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22168else
e6cc62c6
VS
22169 case $PKG_CONFIG in
22170 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22172 ;;
2b5f62a0 22173 *)
e6cc62c6
VS
22174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22175for as_dir in $PATH
22176do
22177 IFS=$as_save_IFS
22178 test -z "$as_dir" && as_dir=.
22179 for ac_exec_ext in '' $ac_executable_extensions; do
22180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22183 break 2
22184 fi
22185done
22186done
22187
2b5f62a0
VZ
22188 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22189 ;;
22190esac
22191fi
e6cc62c6
VS
22192PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22193
2b5f62a0 22194if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22195 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22196echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22197else
e6cc62c6
VS
22198 echo "$as_me:$LINENO: result: no" >&5
22199echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22200fi
22201
22202 fi
22203
22204 if test "$PKG_CONFIG" = "no" ; then
22205 echo "*** The pkg-config script could not be found. Make sure it is"
22206 echo "*** in your path, or set the PKG_CONFIG environment variable"
22207 echo "*** to the full path to pkg-config."
22208 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22209 else
22210 PKG_CONFIG_MIN_VERSION=0.9.0
22211 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22212 echo "$as_me:$LINENO: checking for pangox" >&5
22213echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22214
22215 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22216 echo "$as_me:$LINENO: result: yes" >&5
22217echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22218 succeeded=yes
22219
e6cc62c6
VS
22220 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22221echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22222 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22223 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22224echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22225
e6cc62c6
VS
22226 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22227echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22228 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22229 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22230echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22231 else
22232 PANGOX_CFLAGS=""
22233 PANGOX_LIBS=""
e6cc62c6 22234 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22235 ## do set a variable so people can do so.
22236 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22237
2b5f62a0
VZ
22238 fi
22239
e6cc62c6
VS
22240
22241
2b5f62a0
VZ
22242 else
22243 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22244 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22245 fi
22246 fi
22247
22248 if test $succeeded = yes; then
e6cc62c6 22249
2b5f62a0
VZ
22250 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22251 LIBS="$LIBS $PANGOX_LIBS"
e6cc62c6 22252
2b5f62a0 22253 else
e6cc62c6
VS
22254
22255 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22256echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22257 { (exit 1); exit 1; }; }
22258
22259
2b5f62a0
VZ
22260 fi
22261
e6cc62c6 22262
2b5f62a0
VZ
22263 succeeded=no
22264
22265 if test -z "$PKG_CONFIG"; then
22266 # Extract the first word of "pkg-config", so it can be a program name with args.
22267set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22268echo "$as_me:$LINENO: checking for $ac_word" >&5
22269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22270if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22271 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22272else
e6cc62c6
VS
22273 case $PKG_CONFIG in
22274 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22276 ;;
2b5f62a0 22277 *)
e6cc62c6
VS
22278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22279for as_dir in $PATH
22280do
22281 IFS=$as_save_IFS
22282 test -z "$as_dir" && as_dir=.
22283 for ac_exec_ext in '' $ac_executable_extensions; do
22284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22287 break 2
22288 fi
22289done
22290done
22291
2b5f62a0
VZ
22292 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22293 ;;
22294esac
22295fi
e6cc62c6
VS
22296PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22297
2b5f62a0 22298if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22299 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22300echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22301else
e6cc62c6
VS
22302 echo "$as_me:$LINENO: result: no" >&5
22303echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22304fi
22305
22306 fi
22307
22308 if test "$PKG_CONFIG" = "no" ; then
22309 echo "*** The pkg-config script could not be found. Make sure it is"
22310 echo "*** in your path, or set the PKG_CONFIG environment variable"
22311 echo "*** to the full path to pkg-config."
22312 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22313 else
22314 PKG_CONFIG_MIN_VERSION=0.9.0
22315 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22316 echo "$as_me:$LINENO: checking for pangoft2" >&5
22317echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22318
22319 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22320 echo "$as_me:$LINENO: result: yes" >&5
22321echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22322 succeeded=yes
22323
e6cc62c6
VS
22324 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22325echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22326 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22327 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22328echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22329
e6cc62c6
VS
22330 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22331echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22332 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22333 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22334echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22335 else
22336 PANGOFT2_CFLAGS=""
22337 PANGOFT2_LIBS=""
e6cc62c6 22338 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22339 ## do set a variable so people can do so.
22340 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22341
2b5f62a0
VZ
22342 fi
22343
e6cc62c6
VS
22344
22345
2b5f62a0
VZ
22346 else
22347 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22348 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22349 fi
22350 fi
22351
22352 if test $succeeded = yes; then
e6cc62c6 22353
2b5f62a0
VZ
22354 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22355 LIBS="$LIBS $PANGOFT2_LIBS"
e6cc62c6 22356
2b5f62a0 22357 else
e6cc62c6
VS
22358
22359 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22360echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22361 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22362
22363
2b5f62a0
VZ
22364 fi
22365
e6cc62c6 22366
2b5f62a0
VZ
22367 succeeded=no
22368
22369 if test -z "$PKG_CONFIG"; then
22370 # Extract the first word of "pkg-config", so it can be a program name with args.
22371set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22372echo "$as_me:$LINENO: checking for $ac_word" >&5
22373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22376else
e6cc62c6
VS
22377 case $PKG_CONFIG in
22378 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22380 ;;
2b5f62a0 22381 *)
e6cc62c6
VS
22382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22383for as_dir in $PATH
22384do
22385 IFS=$as_save_IFS
22386 test -z "$as_dir" && as_dir=.
22387 for ac_exec_ext in '' $ac_executable_extensions; do
22388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22391 break 2
22392 fi
22393done
22394done
22395
2b5f62a0
VZ
22396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22397 ;;
22398esac
22399fi
e6cc62c6
VS
22400PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22401
2b5f62a0 22402if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22403 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22404echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22405else
e6cc62c6
VS
22406 echo "$as_me:$LINENO: result: no" >&5
22407echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22408fi
22409
22410 fi
22411
22412 if test "$PKG_CONFIG" = "no" ; then
22413 echo "*** The pkg-config script could not be found. Make sure it is"
22414 echo "*** in your path, or set the PKG_CONFIG environment variable"
22415 echo "*** to the full path to pkg-config."
22416 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22417 else
22418 PKG_CONFIG_MIN_VERSION=0.9.0
22419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22420 echo "$as_me:$LINENO: checking for pangoxft" >&5
22421echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22422
22423 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22424 echo "$as_me:$LINENO: result: yes" >&5
22425echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22426 succeeded=yes
22427
e6cc62c6
VS
22428 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22429echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22430 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22431 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22432echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22433
e6cc62c6
VS
22434 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22435echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22436 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22437 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22438echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22439 else
22440 PANGOXFT_CFLAGS=""
22441 PANGOXFT_LIBS=""
e6cc62c6 22442 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22443 ## do set a variable so people can do so.
22444 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22445
2b5f62a0
VZ
22446 fi
22447
e6cc62c6
VS
22448
22449
2b5f62a0
VZ
22450 else
22451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22453 fi
22454 fi
22455
22456 if test $succeeded = yes; then
e6cc62c6 22457
2b5f62a0
VZ
22458 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22459 LIBS="$LIBS $PANGOXFT_LIBS"
e6cc62c6 22460
2b5f62a0 22461 else
e6cc62c6
VS
22462
22463 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22464echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22465
22466
2b5f62a0
VZ
22467 fi
22468
22469 fi
22470
22471 wxUSE_UNIVERSAL="yes"
22472
22473 if test "$wxUSE_NANOX" = "yes"; then
22474 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22475 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 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
2b5f62a0
VZ
22476 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22477 else
22478 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22479 fi
22480
22481 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22482 TOOLKIT=X11
22483 GUIDIST=X11_DIST
22484 fi
22485
21d1c967
GD
22486 if test "$wxUSE_MOTIF" = 1; then
22487 if test "$no_x" = yes; then
22488 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22489
22490cat >>confdefs.h <<\_ACEOF
21d1c967 22491#define X_DISPLAY_MISSING 1
e6cc62c6 22492_ACEOF
21d1c967
GD
22493
22494 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22495else
22496 if test -n "$x_includes"; then
22497 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22498 fi
22499
21d1c967
GD
22500 # It would also be nice to do this for all -L options, not just this one.
22501 if test -n "$x_libraries"; then
22502 X_LIBS="$X_LIBS -L$x_libraries"
22503 # For Solaris; some versions of Sun CC require a space after -R and
22504 # others require no space. Words are not sufficient . . . .
e6cc62c6 22505 case `(uname -sr) 2>/dev/null` in
21d1c967 22506 "SunOS 5"*)
e6cc62c6
VS
22507 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22508echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22509 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22510 cat >conftest.$ac_ext <<_ACEOF
22511#line $LINENO "configure"
22512/* confdefs.h. */
22513_ACEOF
22514cat confdefs.h >>conftest.$ac_ext
22515cat >>conftest.$ac_ext <<_ACEOF
22516/* end confdefs.h. */
22517
22518int
22519main ()
22520{
21d1c967 22521
e6cc62c6
VS
22522 ;
22523 return 0;
22524}
22525_ACEOF
22526rm -f conftest.$ac_objext conftest$ac_exeext
22527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22528 (eval $ac_link) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -s conftest$ac_exeext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
21d1c967 22538 ac_R_nospace=yes
698dcdb6 22539else
e6cc62c6
VS
22540 echo "$as_me: failed program was:" >&5
22541sed 's/^/| /' conftest.$ac_ext >&5
22542
22543ac_R_nospace=no
10f2d63a 22544fi
e6cc62c6 22545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22546 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22547 echo "$as_me:$LINENO: result: no" >&5
22548echo "${ECHO_T}no" >&6
21d1c967
GD
22549 X_LIBS="$X_LIBS -R$x_libraries"
22550 else
22551 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22552 cat >conftest.$ac_ext <<_ACEOF
22553#line $LINENO "configure"
22554/* confdefs.h. */
22555_ACEOF
22556cat confdefs.h >>conftest.$ac_ext
22557cat >>conftest.$ac_ext <<_ACEOF
22558/* end confdefs.h. */
22559
22560int
22561main ()
22562{
f0c87536 22563
e6cc62c6
VS
22564 ;
22565 return 0;
22566}
22567_ACEOF
22568rm -f conftest.$ac_objext conftest$ac_exeext
22569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22570 (eval $ac_link) 2>&5
22571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } &&
22574 { ac_try='test -s conftest$ac_exeext'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; }; then
21d1c967
GD
22580 ac_R_space=yes
22581else
e6cc62c6
VS
22582 echo "$as_me: failed program was:" >&5
22583sed 's/^/| /' conftest.$ac_ext >&5
22584
22585ac_R_space=no
21d1c967 22586fi
e6cc62c6 22587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22588 if test $ac_R_space = yes; then
e6cc62c6
VS
22589 echo "$as_me:$LINENO: result: yes" >&5
22590echo "${ECHO_T}yes" >&6
21d1c967
GD
22591 X_LIBS="$X_LIBS -R $x_libraries"
22592 else
e6cc62c6
VS
22593 echo "$as_me:$LINENO: result: neither works" >&5
22594echo "${ECHO_T}neither works" >&6
21d1c967
GD
22595 fi
22596 fi
e6cc62c6 22597 LIBS=$ac_xsave_LIBS
21d1c967
GD
22598 esac
22599 fi
90dd450c 22600
21d1c967
GD
22601 # Check for system-dependent libraries X programs must link with.
22602 # Do this before checking for the system-independent R6 libraries
22603 # (-lICE), since we may need -lsocket or whatever for X linking.
22604
22605 if test "$ISC" = yes; then
22606 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22607 else
e6cc62c6
VS
22608 # Martyn Johnson says this is needed for Ultrix, if the X
22609 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22610 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22611 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22612 cat >conftest.$ac_ext <<_ACEOF
22613#line $LINENO "configure"
22614/* confdefs.h. */
22615_ACEOF
22616cat confdefs.h >>conftest.$ac_ext
22617cat >>conftest.$ac_ext <<_ACEOF
22618/* end confdefs.h. */
22619
247f5006 22620/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22621#ifdef __cplusplus
22622extern "C"
22623#endif
247f5006 22624/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22625 builtin and then its argument prototype would still apply. */
22626char XOpenDisplay ();
22627int
22628main ()
22629{
22630XOpenDisplay ();
22631 ;
22632 return 0;
22633}
22634_ACEOF
22635rm -f conftest.$ac_objext conftest$ac_exeext
22636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22637 (eval $ac_link) 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } &&
22641 { ac_try='test -s conftest$ac_exeext'
22642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643 (eval $ac_try) 2>&5
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; }; then
22647 :
22648else
22649 echo "$as_me: failed program was:" >&5
22650sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22651
e6cc62c6
VS
22652echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22653echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22654if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22656else
e6cc62c6
VS
22657 ac_check_lib_save_LIBS=$LIBS
22658LIBS="-ldnet $LIBS"
22659cat >conftest.$ac_ext <<_ACEOF
22660#line $LINENO "configure"
22661/* confdefs.h. */
22662_ACEOF
22663cat confdefs.h >>conftest.$ac_ext
22664cat >>conftest.$ac_ext <<_ACEOF
22665/* end confdefs.h. */
a0b9e27f 22666
e6cc62c6
VS
22667/* Override any gcc2 internal prototype to avoid an error. */
22668#ifdef __cplusplus
22669extern "C"
22670#endif
22671/* We use char because int might match the return type of a gcc2
22672 builtin and then its argument prototype would still apply. */
22673char dnet_ntoa ();
22674int
22675main ()
22676{
22677dnet_ntoa ();
22678 ;
22679 return 0;
22680}
22681_ACEOF
22682rm -f conftest.$ac_objext conftest$ac_exeext
22683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22684 (eval $ac_link) 2>&5
22685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } &&
22688 { ac_try='test -s conftest$ac_exeext'
22689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); }; }; then
22694 ac_cv_lib_dnet_dnet_ntoa=yes
22695else
22696 echo "$as_me: failed program was:" >&5
22697sed 's/^/| /' conftest.$ac_ext >&5
22698
22699ac_cv_lib_dnet_dnet_ntoa=no
22700fi
22701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22702LIBS=$ac_check_lib_save_LIBS
22703fi
22704echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22705echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22706if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22707 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22708fi
0fb0dd83 22709
21d1c967 22710 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22711 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22712echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22713if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22715else
e6cc62c6 22716 ac_check_lib_save_LIBS=$LIBS
21d1c967 22717LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22718cat >conftest.$ac_ext <<_ACEOF
22719#line $LINENO "configure"
22720/* confdefs.h. */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h. */
22725
21d1c967 22726/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22727#ifdef __cplusplus
22728extern "C"
22729#endif
21d1c967 22730/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22731 builtin and then its argument prototype would still apply. */
22732char dnet_ntoa ();
22733int
22734main ()
22735{
22736dnet_ntoa ();
22737 ;
22738 return 0;
22739}
22740_ACEOF
22741rm -f conftest.$ac_objext conftest$ac_exeext
22742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22743 (eval $ac_link) 2>&5
22744 ac_status=$?
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -s conftest$ac_exeext'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; }; then
22753 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22754else
22755 echo "$as_me: failed program was:" >&5
22756sed 's/^/| /' conftest.$ac_ext >&5
22757
22758ac_cv_lib_dnet_stub_dnet_ntoa=no
22759fi
22760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22761LIBS=$ac_check_lib_save_LIBS
22762fi
22763echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22764echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22765if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 22766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
22767fi
22768
21d1c967 22769 fi
e6cc62c6
VS
22770fi
22771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22772 LIBS="$ac_xsave_LIBS"
90dd450c 22773
21d1c967
GD
22774 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22775 # to get the SysV transport functions.
e6cc62c6 22776 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
22777 # needs -lnsl.
22778 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22779 # on Irix 5.2, according to T.E. Dickey.
22780 # The functions gethostbyname, getservbyname, and inet_addr are
22781 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22782 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22783echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22784if test "${ac_cv_func_gethostbyname+set}" = set; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22786else
22787 cat >conftest.$ac_ext <<_ACEOF
22788#line $LINENO "configure"
22789/* confdefs.h. */
22790_ACEOF
22791cat confdefs.h >>conftest.$ac_ext
22792cat >>conftest.$ac_ext <<_ACEOF
22793/* end confdefs.h. */
21d1c967 22794/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22795 which can conflict with char gethostbyname (); below.
22796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22797 <limits.h> exists even on freestanding compilers. */
22798#ifdef __STDC__
22799# include <limits.h>
22800#else
22801# include <assert.h>
22802#endif
21d1c967 22803/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22804#ifdef __cplusplus
22805extern "C"
22806{
22807#endif
21d1c967 22808/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22809 builtin and then its argument prototype would still apply. */
22810char gethostbyname ();
21d1c967
GD
22811/* The GNU C library defines this for functions which it implements
22812 to always fail with ENOSYS. Some functions are actually named
22813 something starting with __ and the normal name is an alias. */
22814#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22815choke me
22816#else
e6cc62c6
VS
22817char (*f) () = gethostbyname;
22818#endif
22819#ifdef __cplusplus
22820}
21d1c967 22821#endif
90dd450c 22822
e6cc62c6
VS
22823int
22824main ()
22825{
22826return f != gethostbyname;
22827 ;
22828 return 0;
22829}
22830_ACEOF
22831rm -f conftest.$ac_objext conftest$ac_exeext
22832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833 (eval $ac_link) 2>&5
22834 ac_status=$?
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } &&
22837 { ac_try='test -s conftest$ac_exeext'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
22843 ac_cv_func_gethostbyname=yes
22844else
22845 echo "$as_me: failed program was:" >&5
22846sed 's/^/| /' conftest.$ac_ext >&5
22847
22848ac_cv_func_gethostbyname=no
22849fi
22850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22851fi
22852echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22853echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 22854
21d1c967 22855 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22856 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22857echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22858if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22860else
e6cc62c6 22861 ac_check_lib_save_LIBS=$LIBS
21d1c967 22862LIBS="-lnsl $LIBS"
e6cc62c6
VS
22863cat >conftest.$ac_ext <<_ACEOF
22864#line $LINENO "configure"
22865/* confdefs.h. */
22866_ACEOF
22867cat confdefs.h >>conftest.$ac_ext
22868cat >>conftest.$ac_ext <<_ACEOF
22869/* end confdefs.h. */
22870
21d1c967 22871/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22872#ifdef __cplusplus
22873extern "C"
22874#endif
21d1c967 22875/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22876 builtin and then its argument prototype would still apply. */
22877char gethostbyname ();
22878int
22879main ()
22880{
22881gethostbyname ();
22882 ;
22883 return 0;
22884}
22885_ACEOF
22886rm -f conftest.$ac_objext conftest$ac_exeext
22887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22888 (eval $ac_link) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } &&
22892 { ac_try='test -s conftest$ac_exeext'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 ac_cv_lib_nsl_gethostbyname=yes
22899else
22900 echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903ac_cv_lib_nsl_gethostbyname=no
22904fi
22905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22906LIBS=$ac_check_lib_save_LIBS
22907fi
22908echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22909echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22910if test $ac_cv_lib_nsl_gethostbyname = yes; then
22911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22912fi
247f5006 22913
e6cc62c6
VS
22914 if test $ac_cv_lib_nsl_gethostbyname = no; then
22915 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22916echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22917if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22919else
e6cc62c6
VS
22920 ac_check_lib_save_LIBS=$LIBS
22921LIBS="-lbsd $LIBS"
22922cat >conftest.$ac_ext <<_ACEOF
22923#line $LINENO "configure"
22924/* confdefs.h. */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h. */
22929
22930/* Override any gcc2 internal prototype to avoid an error. */
22931#ifdef __cplusplus
22932extern "C"
22933#endif
22934/* We use char because int might match the return type of a gcc2
22935 builtin and then its argument prototype would still apply. */
22936char gethostbyname ();
22937int
22938main ()
22939{
22940gethostbyname ();
22941 ;
22942 return 0;
22943}
22944_ACEOF
22945rm -f conftest.$ac_objext conftest$ac_exeext
22946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22947 (eval $ac_link) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); } &&
22951 { ac_try='test -s conftest$ac_exeext'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 ac_cv_lib_bsd_gethostbyname=yes
22958else
22959 echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
22962ac_cv_lib_bsd_gethostbyname=no
22963fi
22964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22965LIBS=$ac_check_lib_save_LIBS
22966fi
22967echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22968echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22969if test $ac_cv_lib_bsd_gethostbyname = yes; then
22970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 22971fi
90dd450c 22972
e6cc62c6 22973 fi
90dd450c
VZ
22974 fi
22975
21d1c967
GD
22976 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22977 # socket/setsockopt and other routines are undefined under SCO ODT
22978 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22979 # on later versions), says Simon Leinen: it contains gethostby*
22980 # variants that don't use the name server (or something). -lsocket
22981 # must be given before -lnsl if both are needed. We assume that
22982 # if connect needs -lnsl, so does gethostbyname.
22983 echo "$as_me:$LINENO: checking for connect" >&5
22984echo $ECHO_N "checking for connect... $ECHO_C" >&6
22985if test "${ac_cv_func_connect+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22987else
22988 cat >conftest.$ac_ext <<_ACEOF
22989#line $LINENO "configure"
22990/* confdefs.h. */
22991_ACEOF
22992cat confdefs.h >>conftest.$ac_ext
22993cat >>conftest.$ac_ext <<_ACEOF
22994/* end confdefs.h. */
21d1c967 22995/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22996 which can conflict with char connect (); below.
22997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22998 <limits.h> exists even on freestanding compilers. */
22999#ifdef __STDC__
23000# include <limits.h>
23001#else
23002# include <assert.h>
23003#endif
21d1c967 23004/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23005#ifdef __cplusplus
23006extern "C"
23007{
23008#endif
21d1c967 23009/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23010 builtin and then its argument prototype would still apply. */
23011char connect ();
21d1c967
GD
23012/* The GNU C library defines this for functions which it implements
23013 to always fail with ENOSYS. Some functions are actually named
23014 something starting with __ and the normal name is an alias. */
23015#if defined (__stub_connect) || defined (__stub___connect)
23016choke me
23017#else
e6cc62c6
VS
23018char (*f) () = connect;
23019#endif
23020#ifdef __cplusplus
23021}
21d1c967 23022#endif
90dd450c 23023
e6cc62c6
VS
23024int
23025main ()
23026{
23027return f != connect;
23028 ;
23029 return 0;
23030}
23031_ACEOF
23032rm -f conftest.$ac_objext conftest$ac_exeext
23033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23034 (eval $ac_link) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
23038 { ac_try='test -s conftest$ac_exeext'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23041 ac_status=$?
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }; then
23044 ac_cv_func_connect=yes
23045else
23046 echo "$as_me: failed program was:" >&5
23047sed 's/^/| /' conftest.$ac_ext >&5
23048
23049ac_cv_func_connect=no
23050fi
23051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23052fi
23053echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23054echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23055
21d1c967 23056 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23057 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23058echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23059if test "${ac_cv_lib_socket_connect+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23061else
e6cc62c6 23062 ac_check_lib_save_LIBS=$LIBS
21d1c967 23063LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23064cat >conftest.$ac_ext <<_ACEOF
23065#line $LINENO "configure"
23066/* confdefs.h. */
23067_ACEOF
23068cat confdefs.h >>conftest.$ac_ext
23069cat >>conftest.$ac_ext <<_ACEOF
23070/* end confdefs.h. */
23071
21d1c967 23072/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23073#ifdef __cplusplus
23074extern "C"
23075#endif
21d1c967 23076/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23077 builtin and then its argument prototype would still apply. */
23078char connect ();
23079int
23080main ()
23081{
23082connect ();
23083 ;
23084 return 0;
23085}
23086_ACEOF
23087rm -f conftest.$ac_objext conftest$ac_exeext
23088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089 (eval $ac_link) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } &&
23093 { ac_try='test -s conftest$ac_exeext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_cv_lib_socket_connect=yes
23100else
23101 echo "$as_me: failed program was:" >&5
23102sed 's/^/| /' conftest.$ac_ext >&5
23103
23104ac_cv_lib_socket_connect=no
23105fi
23106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23107LIBS=$ac_check_lib_save_LIBS
23108fi
23109echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23110echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23111if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23112 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23113fi
90dd450c 23114
21d1c967 23115 fi
90dd450c 23116
e6cc62c6
VS
23117 # Guillermo Gomez says -lposix is necessary on A/UX.
23118 echo "$as_me:$LINENO: checking for remove" >&5
23119echo $ECHO_N "checking for remove... $ECHO_C" >&6
23120if test "${ac_cv_func_remove+set}" = set; then
23121 echo $ECHO_N "(cached) $ECHO_C" >&6
23122else
23123 cat >conftest.$ac_ext <<_ACEOF
23124#line $LINENO "configure"
23125/* confdefs.h. */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h. */
21d1c967 23130/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23131 which can conflict with char remove (); below.
23132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23133 <limits.h> exists even on freestanding compilers. */
23134#ifdef __STDC__
23135# include <limits.h>
23136#else
23137# include <assert.h>
23138#endif
21d1c967 23139/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23140#ifdef __cplusplus
23141extern "C"
23142{
23143#endif
21d1c967 23144/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23145 builtin and then its argument prototype would still apply. */
23146char remove ();
21d1c967
GD
23147/* The GNU C library defines this for functions which it implements
23148 to always fail with ENOSYS. Some functions are actually named
23149 something starting with __ and the normal name is an alias. */
23150#if defined (__stub_remove) || defined (__stub___remove)
23151choke me
23152#else
e6cc62c6
VS
23153char (*f) () = remove;
23154#endif
23155#ifdef __cplusplus
23156}
21d1c967 23157#endif
90dd450c 23158
e6cc62c6
VS
23159int
23160main ()
23161{
23162return f != remove;
23163 ;
23164 return 0;
23165}
23166_ACEOF
23167rm -f conftest.$ac_objext conftest$ac_exeext
23168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23169 (eval $ac_link) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } &&
23173 { ac_try='test -s conftest$ac_exeext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23176 ac_status=$?
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 ac_cv_func_remove=yes
23180else
23181 echo "$as_me: failed program was:" >&5
23182sed 's/^/| /' conftest.$ac_ext >&5
23183
23184ac_cv_func_remove=no
23185fi
23186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23187fi
23188echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23189echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23190
21d1c967 23191 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23192 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23193echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23194if test "${ac_cv_lib_posix_remove+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23196else
e6cc62c6 23197 ac_check_lib_save_LIBS=$LIBS
21d1c967 23198LIBS="-lposix $LIBS"
e6cc62c6
VS
23199cat >conftest.$ac_ext <<_ACEOF
23200#line $LINENO "configure"
23201/* confdefs.h. */
23202_ACEOF
23203cat confdefs.h >>conftest.$ac_ext
23204cat >>conftest.$ac_ext <<_ACEOF
23205/* end confdefs.h. */
23206
21d1c967 23207/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23208#ifdef __cplusplus
23209extern "C"
23210#endif
21d1c967 23211/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23212 builtin and then its argument prototype would still apply. */
23213char remove ();
23214int
23215main ()
23216{
23217remove ();
23218 ;
23219 return 0;
23220}
23221_ACEOF
23222rm -f conftest.$ac_objext conftest$ac_exeext
23223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23224 (eval $ac_link) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -s conftest$ac_exeext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_posix_remove=yes
23235else
23236 echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239ac_cv_lib_posix_remove=no
23240fi
23241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23242LIBS=$ac_check_lib_save_LIBS
23243fi
23244echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23245echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23246if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23248fi
19bc6aad 23249
90dd450c 23250 fi
19bc6aad 23251
21d1c967 23252 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23253 echo "$as_me:$LINENO: checking for shmat" >&5
23254echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23255if test "${ac_cv_func_shmat+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257else
23258 cat >conftest.$ac_ext <<_ACEOF
23259#line $LINENO "configure"
23260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
21d1c967 23265/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23266 which can conflict with char shmat (); below.
23267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23268 <limits.h> exists even on freestanding compilers. */
23269#ifdef __STDC__
23270# include <limits.h>
23271#else
23272# include <assert.h>
23273#endif
21d1c967 23274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23275#ifdef __cplusplus
23276extern "C"
23277{
23278#endif
21d1c967 23279/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23280 builtin and then its argument prototype would still apply. */
23281char shmat ();
21d1c967
GD
23282/* The GNU C library defines this for functions which it implements
23283 to always fail with ENOSYS. Some functions are actually named
23284 something starting with __ and the normal name is an alias. */
23285#if defined (__stub_shmat) || defined (__stub___shmat)
23286choke me
23287#else
e6cc62c6
VS
23288char (*f) () = shmat;
23289#endif
23290#ifdef __cplusplus
23291}
21d1c967 23292#endif
90dd450c 23293
e6cc62c6
VS
23294int
23295main ()
23296{
23297return f != shmat;
23298 ;
23299 return 0;
23300}
23301_ACEOF
23302rm -f conftest.$ac_objext conftest$ac_exeext
23303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23304 (eval $ac_link) 2>&5
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } &&
23308 { ac_try='test -s conftest$ac_exeext'
23309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314 ac_cv_func_shmat=yes
23315else
23316 echo "$as_me: failed program was:" >&5
23317sed 's/^/| /' conftest.$ac_ext >&5
23318
23319ac_cv_func_shmat=no
23320fi
23321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23322fi
23323echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23324echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23325
21d1c967 23326 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23327 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23328echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23329if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23330 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23331else
e6cc62c6 23332 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23333LIBS="-lipc $LIBS"
e6cc62c6
VS
23334cat >conftest.$ac_ext <<_ACEOF
23335#line $LINENO "configure"
23336/* confdefs.h. */
23337_ACEOF
23338cat confdefs.h >>conftest.$ac_ext
23339cat >>conftest.$ac_ext <<_ACEOF
23340/* end confdefs.h. */
23341
5c6fa7d2 23342/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23343#ifdef __cplusplus
23344extern "C"
23345#endif
5c6fa7d2 23346/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23347 builtin and then its argument prototype would still apply. */
23348char shmat ();
23349int
23350main ()
23351{
23352shmat ();
23353 ;
23354 return 0;
23355}
23356_ACEOF
23357rm -f conftest.$ac_objext conftest$ac_exeext
23358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23359 (eval $ac_link) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); } &&
23363 { ac_try='test -s conftest$ac_exeext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 ac_cv_lib_ipc_shmat=yes
23370else
23371 echo "$as_me: failed program was:" >&5
23372sed 's/^/| /' conftest.$ac_ext >&5
23373
23374ac_cv_lib_ipc_shmat=no
23375fi
23376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23377LIBS=$ac_check_lib_save_LIBS
23378fi
23379echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23380echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23381if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23383fi
90dd450c 23384
90dd450c 23385 fi
21d1c967 23386 fi
10f2d63a 23387
21d1c967 23388 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23389 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23390 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23391 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23392 # check for ICE first), but we must link in the order -lSM -lICE or
23393 # we get undefined symbols. So assume we have SM if we have ICE.
23394 # These have to be linked with before -lX11, unlike the other
23395 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23396 # John Interrante, Karl Berry
23397 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23398echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23399if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23401else
23402 ac_check_lib_save_LIBS=$LIBS
f09359cf 23403LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23404cat >conftest.$ac_ext <<_ACEOF
23405#line $LINENO "configure"
23406/* confdefs.h. */
23407_ACEOF
23408cat confdefs.h >>conftest.$ac_ext
23409cat >>conftest.$ac_ext <<_ACEOF
23410/* end confdefs.h. */
23411
21d1c967 23412/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23413#ifdef __cplusplus
23414extern "C"
23415#endif
21d1c967 23416/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23417 builtin and then its argument prototype would still apply. */
23418char IceConnectionNumber ();
23419int
23420main ()
23421{
23422IceConnectionNumber ();
23423 ;
23424 return 0;
23425}
23426_ACEOF
23427rm -f conftest.$ac_objext conftest$ac_exeext
23428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23429 (eval $ac_link) 2>&5
23430 ac_status=$?
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } &&
23433 { ac_try='test -s conftest$ac_exeext'
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; }; then
23439 ac_cv_lib_ICE_IceConnectionNumber=yes
23440else
23441 echo "$as_me: failed program was:" >&5
23442sed 's/^/| /' conftest.$ac_ext >&5
23443
23444ac_cv_lib_ICE_IceConnectionNumber=no
23445fi
23446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23447LIBS=$ac_check_lib_save_LIBS
23448fi
23449echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23450echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23451if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23452 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23453fi
21d1c967 23454
e6cc62c6 23455 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23456
10f2d63a
VZ
23457fi
23458
8284b0c5 23459
21d1c967 23460 if test "$no_x" = "yes"; then
e6cc62c6
VS
23461 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23462echo "$as_me: error: X11 not found" >&2;}
23463 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23464 fi
23465
2b5f62a0
VZ
23466 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23467 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23468 AFMINSTALL=afminstall
23469 COMPILED_X_PROGRAM=0
23470
e6cc62c6
VS
23471 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23472echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23473
21d1c967 23474ac_find_includes=
2b5f62a0 23475for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23476 do
23477 if test -f "$ac_dir/Xm/Xm.h"; then
23478 ac_find_includes=$ac_dir
23479 break
23480 fi
23481 done
23482
23483 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23484 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23485echo "${ECHO_T}found in $ac_find_includes" >&6
23486
2b5f62a0 23487 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23488 ac_path_to_include=""
23489 else
2b5f62a0
VZ
23490 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23491 result=$?
23492 if test $result = 0; then
23493 ac_path_to_include=""
23494 else
23495 ac_path_to_include=" -I$ac_find_includes"
23496 fi
dd0e4a90
VZ
23497 fi
23498
23499 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23500 else
e6cc62c6
VS
23501 cat >conftest.$ac_ext <<_ACEOF
23502#line $LINENO "configure"
23503/* confdefs.h. */
23504_ACEOF
23505cat confdefs.h >>conftest.$ac_ext
23506cat >>conftest.$ac_ext <<_ACEOF
23507/* end confdefs.h. */
21d1c967
GD
23508
23509 #include <Xm/Xm.h>
e6cc62c6
VS
23510
23511int
23512main ()
23513{
21d1c967
GD
23514
23515 int version;
23516 version = xmUseVersion;
e6cc62c6
VS
23517
23518 ;
23519 return 0;
23520}
23521_ACEOF
23522rm -f conftest.$ac_objext
23523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23524 (eval $ac_compile) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } &&
23528 { ac_try='test -s conftest.$ac_objext'
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; }; then
23534
23535 echo "$as_me:$LINENO: result: found in default search path" >&5
23536echo "${ECHO_T}found in default search path" >&6
21d1c967 23537 COMPILED_X_PROGRAM=1
e6cc62c6 23538
10f2d63a 23539else
e6cc62c6
VS
23540 echo "$as_me: failed program was:" >&5
23541sed 's/^/| /' conftest.$ac_ext >&5
23542
23543
23544 echo "$as_me:$LINENO: result: no" >&5
23545echo "${ECHO_T}no" >&6
23546 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23547echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23548 { (exit 1); exit 1; }; }
23549
23550
10f2d63a 23551fi
e6cc62c6 23552rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23553 fi
10f2d63a 23554
21d1c967 23555 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23556 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23557echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23558
21d1c967 23559ac_find_libraries=
2b5f62a0 23560for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23561 do
23562 for ac_extension in a so sl dylib; do
23563 if test -f "$ac_dir/libXm.$ac_extension"; then
23564 ac_find_libraries=$ac_dir
23565 break 2
23566 fi
23567 done
23568 done
23569
23570 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23571 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23572echo "${ECHO_T}found at $ac_find_libraries" >&6
23573
21d1c967 23574
21d1c967
GD
23575 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23576 result=$?
23577 if test $result = 0; then
23578 ac_path_to_link=""
23579 else
23580 ac_path_to_link=" -L$ac_find_libraries"
23581 fi
23582
21d1c967 23583 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23584 else
dd0e4a90
VZ
23585 save_CFLAGS=$CFLAGS
23586 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23587
e6cc62c6
VS
23588 cat >conftest.$ac_ext <<_ACEOF
23589#line $LINENO "configure"
23590/* confdefs.h. */
23591_ACEOF
23592cat confdefs.h >>conftest.$ac_ext
23593cat >>conftest.$ac_ext <<_ACEOF
23594/* end confdefs.h. */
21d1c967
GD
23595
23596 #include <Xm/Xm.h>
e6cc62c6
VS
23597
23598int
23599main ()
23600{
21d1c967
GD
23601
23602 int version;
23603 version = xmUseVersion;
e6cc62c6
VS
23604
23605 ;
23606 return 0;
23607}
23608_ACEOF
23609rm -f conftest.$ac_objext
23610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23611 (eval $ac_compile) 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } &&
23615 { ac_try='test -s conftest.$ac_objext'
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; }; then
23621
23622 echo "$as_me:$LINENO: result: found in default search path" >&5
23623echo "${ECHO_T}found in default search path" >&6
21d1c967 23624 COMPILED_X_PROGRAM=1
e6cc62c6 23625
d836ee96 23626else
e6cc62c6
VS
23627 echo "$as_me: failed program was:" >&5
23628sed 's/^/| /' conftest.$ac_ext >&5
23629
23630
23631 echo "$as_me:$LINENO: result: no" >&5
23632echo "${ECHO_T}no" >&6
23633 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23634echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23635 { (exit 1); exit 1; }; }
23636
23637
d836ee96 23638fi
e6cc62c6 23639rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23640
23641 CFLAGS=$save_CFLAGS
21d1c967
GD
23642 fi
23643 fi
23644
23645 xpm_link=
e6cc62c6
VS
23646 echo "$as_me:$LINENO: checking for Xpm library" >&5
23647echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23648
21d1c967 23649ac_find_libraries=
2b5f62a0 23650for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23651 do
23652 for ac_extension in a so sl dylib; do
23653 if test -f "$ac_dir/libXpm.$ac_extension"; then
23654 ac_find_libraries=$ac_dir
23655 break 2
23656 fi
23657 done
23658 done
23659
23660 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23661
21d1c967
GD
23662 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23663 result=$?
23664 if test $result = 0; then
23665 ac_path_to_link=""
23666 else
23667 ac_path_to_link=" -L$ac_find_libraries"
23668 fi
23669
23670 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23671
21d1c967 23672 xpm_link=" -lXpm"
e6cc62c6 23673 cat >>confdefs.h <<\_ACEOF
21d1c967 23674#define wxHAVE_LIB_XPM 1
e6cc62c6 23675_ACEOF
90dd450c 23676
e6cc62c6
VS
23677 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23678echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23679 else
dd0e4a90
VZ
23680 save_CFLAGS=$CFLAGS
23681 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23682
e6cc62c6
VS
23683 cat >conftest.$ac_ext <<_ACEOF
23684#line $LINENO "configure"
23685/* confdefs.h. */
23686_ACEOF
23687cat confdefs.h >>conftest.$ac_ext
23688cat >>conftest.$ac_ext <<_ACEOF
23689/* end confdefs.h. */
21d1c967
GD
23690
23691 #include <X11/xpm.h>
e6cc62c6
VS
23692
23693int
23694main ()
23695{
21d1c967
GD
23696
23697 int version;
23698 version = XpmLibraryVersion();
e6cc62c6
VS
23699
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704rm -f conftest.$ac_objext
23705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706 (eval $ac_compile) 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } &&
23710 { ac_try='test -s conftest.$ac_objext'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23716
21d1c967 23717 xpm_link=" -lXpm"
e6cc62c6 23718 cat >>confdefs.h <<\_ACEOF
21d1c967 23719#define wxHAVE_LIB_XPM 1
e6cc62c6 23720_ACEOF
21d1c967 23721
e6cc62c6
VS
23722 echo "$as_me:$LINENO: result: found in default search path" >&5
23723echo "${ECHO_T}found in default search path" >&6
21d1c967 23724 COMPILED_X_PROGRAM=0
e6cc62c6 23725
d836ee96 23726else
e6cc62c6
VS
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730
23731 echo "$as_me:$LINENO: result: no" >&5
23732echo "${ECHO_T}no" >&6
23733 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23734echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23735
23736
d836ee96 23737fi
e6cc62c6 23738rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23739
23740 CFLAGS=$save_CFLAGS
21d1c967
GD
23741 fi
23742
e6cc62c6
VS
23743 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23744echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23745 libp_link=""
23746 libsm_ice_link=""
23747 libs_found=0
23748 for libp in "" " -lXp"; do
23749 if test "$libs_found" = "0"; then
23750 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23751 if test "$libs_found" = "0"; then
6a30f1c8
MB
23752 save_LIBS="$LIBS"
23753 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
23754 save_CFLAGS=$CFLAGS
23755 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23756
e6cc62c6
VS
23757 cat >conftest.$ac_ext <<_ACEOF
23758#line $LINENO "configure"
23759/* confdefs.h. */
23760_ACEOF
23761cat confdefs.h >>conftest.$ac_ext
23762cat >>conftest.$ac_ext <<_ACEOF
23763/* end confdefs.h. */
17234b26 23764
6a30f1c8
MB
23765 #include <Xm/Xm.h>
23766 #include <Xm/List.h>
e6cc62c6
VS
23767
23768int
23769main ()
23770{
6a30f1c8
MB
23771
23772 XmString string = NULL;
23773 Widget w = NULL;
23774 int position = 0;
23775 XmListAddItem(w, string, position);
e6cc62c6
VS
23776
23777 ;
23778 return 0;
23779}
23780_ACEOF
23781rm -f conftest.$ac_objext conftest$ac_exeext
23782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23783 (eval $ac_link) 2>&5
23784 ac_status=$?
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -s conftest$ac_exeext'
23788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789 (eval $ac_try) 2>&5
23790 ac_status=$?
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793
6a30f1c8
MB
23794 libp_link="$libp"
23795 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
23796 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
23797echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 23798 libs_found=1
e6cc62c6 23799
6a30f1c8 23800else
e6cc62c6
VS
23801 echo "$as_me: failed program was:" >&5
23802sed 's/^/| /' conftest.$ac_ext >&5
23803
23804
23805
6a30f1c8 23806fi
e6cc62c6 23807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 23808
6a30f1c8 23809 LIBS="$save_LIBS"
dd0e4a90 23810 CFLAGS=$save_CFLAGS
6a30f1c8
MB
23811 fi
23812 done
23813 fi
23814 done
23815
23816 if test "$libs_found" = "0"; then
e6cc62c6
VS
23817 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
23818echo "${ECHO_T}can't find the right libraries" >&6
23819 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
23820echo "$as_me: error: can't link a simple motif program" >&2;}
23821 { (exit 1); exit 1; }; }
6a30f1c8
MB
23822 fi
23823
da494b40
MB
23824 save_CFLAGS=$CFLAGS
23825 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
23826 echo "$as_me:$LINENO: checking for Motif 2" >&5
23827echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
23828 cat >conftest.$ac_ext <<_ACEOF
23829#line $LINENO "configure"
23830/* confdefs.h. */
23831_ACEOF
23832cat confdefs.h >>conftest.$ac_ext
23833cat >>conftest.$ac_ext <<_ACEOF
23834/* end confdefs.h. */
da494b40
MB
23835
23836 #include <Xm/Xm.h>
e6cc62c6
VS
23837
23838int
23839main ()
23840{
da494b40
MB
23841
23842 #if XmVersion < 2000
23843 #error "Not Motif 2"
23844 #endif
e6cc62c6
VS
23845
23846 ;
23847 return 0;
23848}
23849_ACEOF
23850rm -f conftest.$ac_objext
23851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23852 (eval $ac_compile) 2>&5
23853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } &&
23856 { ac_try='test -s conftest.$ac_objext'
23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858 (eval $ac_try) 2>&5
23859 ac_status=$?
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); }; }; then
23862
23863 cat >>confdefs.h <<\_ACEOF
da494b40 23864#define __WXMOTIF20__ 1
e6cc62c6
VS
23865_ACEOF
23866
23867 echo "$as_me:$LINENO: result: found" >&5
23868echo "${ECHO_T}found" >&6
da494b40 23869
da494b40 23870else
e6cc62c6
VS
23871 echo "$as_me: failed program was:" >&5
23872sed 's/^/| /' conftest.$ac_ext >&5
23873
23874
23875 cat >>confdefs.h <<\_ACEOF
da494b40 23876#define __WXMOTIF20__ 0
e6cc62c6
VS
23877_ACEOF
23878
23879 echo "$as_me:$LINENO: result: not found" >&5
23880echo "${ECHO_T}not found" >&6
da494b40 23881
da494b40 23882fi
e6cc62c6 23883rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
23884 CFLAGS=$save_CFLAGS
23885
6a30f1c8 23886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 23887 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
23888 TOOLKIT=MOTIF
23889 GUIDIST=MOTIF_DIST
f7f78039
MB
23890 wxHAVE_XEXT_LIB=1
23891 fi
23892
23893 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
23894 test "$wxHAVE_XEXT_LIB" = 1; then
23895 save_CFLAGS="$CFLAGS"
23896 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23897
e6cc62c6
VS
23898 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
23899echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
23900 cat >conftest.$ac_ext <<_ACEOF
23901#line $LINENO "configure"
23902/* confdefs.h. */
23903_ACEOF
23904cat confdefs.h >>conftest.$ac_ext
23905cat >>conftest.$ac_ext <<_ACEOF
23906/* end confdefs.h. */
23907
23908 #include <X11/Xlib.h>
f7f78039 23909 #include <X11/extensions/shape.h>
e6cc62c6
VS
23910
23911int
23912main ()
23913{
f7f78039
MB
23914
23915 int dummy1, dummy2;
23916 XShapeQueryExtension((Display*)NULL,
23917 (int*)NULL, (int*)NULL);
e6cc62c6
VS
23918
23919 ;
23920 return 0;
23921}
23922_ACEOF
23923rm -f conftest.$ac_objext
23924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23925 (eval $ac_compile) 2>&5
23926 ac_status=$?
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } &&
23929 { ac_try='test -s conftest.$ac_objext'
23930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931 (eval $ac_try) 2>&5
23932 ac_status=$?
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); }; }; then
23935
23936 cat >>confdefs.h <<\_ACEOF
f7f78039 23937#define HAVE_XSHAPE 1
e6cc62c6
VS
23938_ACEOF
23939
23940 echo "$as_me:$LINENO: result: found" >&5
23941echo "${ECHO_T}found" >&6
f7f78039 23942
f7f78039 23943else
e6cc62c6
VS
23944 echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948 echo "$as_me:$LINENO: result: not found" >&5
23949echo "${ECHO_T}not found" >&6
23950
f7f78039 23951fi
e6cc62c6 23952rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 23953 CFLAGS="$save_CFLAGS"
21d1c967
GD
23954 fi
23955
23956 if test "$wxUSE_MAC" = 1; then
0c98a14e 23957 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 23958
0c98a14e 23959 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
23960 TOOLKIT=MAC
23961 GUIDIST=MACX_DIST
23962 fi
23963
ac0c4cc3
DE
23964 if test "$wxUSE_COCOA" = 1; then
23965 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
23966 TOOLKIT=COCOA
23967 GUIDIST=COCOA_DIST
23968 fi
23969
21d1c967
GD
23970 if test "$wxUSE_PM" = 1; then
23971 TOOLKIT=PM
23972 GUIDIST=GTK_DIST
e6cc62c6
VS
23973 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
23974echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 23975 wxUSE_THREADS="no"
21d1c967
GD
23976 fi
23977
23978 if test "$TOOLKIT" = "PM" ; then
23979 TOOLKIT_DIR="os2"
23980 else
23981 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
23982 fi
23983
23984 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
23985
23986 if test "$wxUSE_UNIVERSAL" = "yes"; then
23987 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
23988
23989 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
23990 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
23991
23992 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
23993 if test "$wxUSE_X11" = 1; then
23994 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
23995 else
23996 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
23997 fi
23998 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
23999 WIDGET_SET=univ
24000 else
24001 ALL_OBJECTS="\$(GUIOBJS)"
24002 ALL_SOURCES="\$(ALL_SOURCES)"
24003 ALL_HEADERS="\$(ALL_HEADERS)"
24004 fi
24005
24006 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24007
24008 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24009 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24010 fi
24011
24012 if test "$wxUSE_HTML" = "yes"; then
24013 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24014 fi
24015
24016 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24017 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24018 fi
24019 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24020 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24021 fi
24022 if test "$wxUSE_LIBPNG" = "builtin" ; then
24023 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24024 fi
24025
24026 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24027 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24028else
21d1c967
GD
24029 USE_GUI=0
24030
24031 TOOLKIT_DIR="base"
24032
24033 if test "$USE_WIN32" = 1 ; then
24034 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24035 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24036
24037 TOOLKIT="MSW"
24038 else
24039 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24040 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24041 fi
24042
24043 ALL_SOURCES="\$(ALL_SOURCES)"
24044 ALL_HEADERS="\$(ALL_HEADERS)"
24045
24046 PORT_FILES="\${top_srcdir}/src/files.lst"
24047
24048 GUIDIST="BASE_DIST"
24049 DISTDIR="wxBase"
d836ee96
VZ
24050fi
24051
8284b0c5 24052
8647bec6
RG
24053
24054
24055IODBC_C_SRC=""
24056
24057
24058if test "$TOOLKIT" != "MSW" ; then
24059
24060 if test "$wxUSE_ODBC" != "no" ; then
e6cc62c6 24061 cat >>confdefs.h <<\_ACEOF
8647bec6 24062#define wxUSE_ODBC 1
e6cc62c6 24063_ACEOF
8647bec6
RG
24064
24065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
e6cc62c6 24066
8647bec6
RG
24067 WXODBCFLAG="-D_IODBC_"
24068
24069
24070 if test "$wxUSE_ODBC" = "sys" ; then
e6cc62c6
VS
24071
24072 if test "${ac_cv_header_sql_h+set}" = set; then
24073 echo "$as_me:$LINENO: checking for sql.h" >&5
24074echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24075if test "${ac_cv_header_sql_h+set}" = set; then
24076 echo $ECHO_N "(cached) $ECHO_C" >&6
24077fi
24078echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24079echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24080else
24081 # Is the header compilable?
24082echo "$as_me:$LINENO: checking sql.h usability" >&5
24083echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24084cat >conftest.$ac_ext <<_ACEOF
24085#line $LINENO "configure"
24086/* confdefs.h. */
24087_ACEOF
24088cat confdefs.h >>conftest.$ac_ext
24089cat >>conftest.$ac_ext <<_ACEOF
24090/* end confdefs.h. */
24091$ac_includes_default
8647bec6 24092#include <sql.h>
e6cc62c6
VS
24093_ACEOF
24094rm -f conftest.$ac_objext
24095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096 (eval $ac_compile) 2>&5
24097 ac_status=$?
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } &&
24100 { ac_try='test -s conftest.$ac_objext'
24101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102 (eval $ac_try) 2>&5
24103 ac_status=$?
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); }; }; then
24106 ac_header_compiler=yes
24107else
24108 echo "$as_me: failed program was:" >&5
24109sed 's/^/| /' conftest.$ac_ext >&5
24110
24111ac_header_compiler=no
24112fi
24113rm -f conftest.$ac_objext conftest.$ac_ext
24114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24115echo "${ECHO_T}$ac_header_compiler" >&6
24116
24117# Is the header present?
24118echo "$as_me:$LINENO: checking sql.h presence" >&5
24119echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24120cat >conftest.$ac_ext <<_ACEOF
24121#line $LINENO "configure"
24122/* confdefs.h. */
24123_ACEOF
24124cat confdefs.h >>conftest.$ac_ext
24125cat >>conftest.$ac_ext <<_ACEOF
24126/* end confdefs.h. */
24127#include <sql.h>
24128_ACEOF
24129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24131 ac_status=$?
24132 grep -v '^ *+' conftest.er1 >conftest.err
24133 rm -f conftest.er1
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } >/dev/null; then
24137 if test -s conftest.err; then
24138 ac_cpp_err=$ac_c_preproc_warn_flag
24139 else
24140 ac_cpp_err=
24141 fi
24142else
24143 ac_cpp_err=yes
24144fi
24145if test -z "$ac_cpp_err"; then
24146 ac_header_preproc=yes
24147else
24148 echo "$as_me: failed program was:" >&5
24149sed 's/^/| /' conftest.$ac_ext >&5
24150
24151 ac_header_preproc=no
24152fi
24153rm -f conftest.err conftest.$ac_ext
24154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24155echo "${ECHO_T}$ac_header_preproc" >&6
24156
24157# So? What about this header?
24158case $ac_header_compiler:$ac_header_preproc in
24159 yes:no )
24160 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24161echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24162 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24163echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24164 (
24165 cat <<\_ASBOX
24166## ------------------------------------ ##
24167## Report this to bug-autoconf@gnu.org. ##
24168## ------------------------------------ ##
24169_ASBOX
24170 ) |
24171 sed "s/^/$as_me: WARNING: /" >&2
24172 ;;
24173 no:yes )
24174 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24175echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24176 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24177echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24178 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24179echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24180 (
24181 cat <<\_ASBOX
24182## ------------------------------------ ##
24183## Report this to bug-autoconf@gnu.org. ##
24184## ------------------------------------ ##
24185_ASBOX
24186 ) |
24187 sed "s/^/$as_me: WARNING: /" >&2
24188 ;;
24189esac
24190echo "$as_me:$LINENO: checking for sql.h" >&5
24191echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24192if test "${ac_cv_header_sql_h+set}" = set; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24194else
e6cc62c6
VS
24195 ac_cv_header_sql_h=$ac_header_preproc
24196fi
24197echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24198echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24199
8647bec6
RG
24200fi
24201
e6cc62c6
VS
24202
24203 echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5
24204echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6
24205if test "${ac_cv_search_SQLAllocEnv+set}" = set; then
24206 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24207else
e6cc62c6
VS
24208 ac_func_search_save_LIBS=$LIBS
24209ac_cv_search_SQLAllocEnv=no
24210cat >conftest.$ac_ext <<_ACEOF
24211#line $LINENO "configure"
24212/* confdefs.h. */
24213_ACEOF
24214cat confdefs.h >>conftest.$ac_ext
24215cat >>conftest.$ac_ext <<_ACEOF
24216/* end confdefs.h. */
24217
8647bec6 24218/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24219#ifdef __cplusplus
24220extern "C"
24221#endif
8647bec6 24222/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24223 builtin and then its argument prototype would still apply. */
24224char SQLAllocEnv ();
24225int
24226main ()
24227{
24228SQLAllocEnv ();
24229 ;
24230 return 0;
24231}
24232_ACEOF
24233rm -f conftest.$ac_objext conftest$ac_exeext
24234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24235 (eval $ac_link) 2>&5
24236 ac_status=$?
24237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238 (exit $ac_status); } &&
24239 { ac_try='test -s conftest$ac_exeext'
24240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); }; }; then
8647bec6
RG
24245 ac_cv_search_SQLAllocEnv="none required"
24246else
e6cc62c6
VS
24247 echo "$as_me: failed program was:" >&5
24248sed 's/^/| /' conftest.$ac_ext >&5
24249
8647bec6 24250fi
e6cc62c6
VS
24251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24252if test "$ac_cv_search_SQLAllocEnv" = no; then
24253 for ac_lib in iodbc unixodbc odbc ; do
24254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24255 cat >conftest.$ac_ext <<_ACEOF
24256#line $LINENO "configure"
24257/* confdefs.h. */
24258_ACEOF
24259cat confdefs.h >>conftest.$ac_ext
24260cat >>conftest.$ac_ext <<_ACEOF
24261/* end confdefs.h. */
24262
8647bec6 24263/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24264#ifdef __cplusplus
24265extern "C"
24266#endif
8647bec6 24267/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24268 builtin and then its argument prototype would still apply. */
24269char SQLAllocEnv ();
24270int
24271main ()
24272{
24273SQLAllocEnv ();
24274 ;
24275 return 0;
24276}
24277_ACEOF
24278rm -f conftest.$ac_objext conftest$ac_exeext
24279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24280 (eval $ac_link) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } &&
24284 { ac_try='test -s conftest$ac_exeext'
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 ac_cv_search_SQLAllocEnv="-l$ac_lib"
8647bec6
RG
24291break
24292else
e6cc62c6
VS
24293 echo "$as_me: failed program was:" >&5
24294sed 's/^/| /' conftest.$ac_ext >&5
24295
8647bec6 24296fi
e6cc62c6
VS
24297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24298 done
8647bec6 24299fi
e6cc62c6
VS
24300LIBS=$ac_func_search_save_LIBS
24301fi
24302echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5
24303echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6
24304if test "$ac_cv_search_SQLAllocEnv" != no; then
8647bec6 24305 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
e6cc62c6
VS
24306
24307else
24308
24309 wxUSE_ODBC=builtin;
24310 { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5
24311echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;}
24312
8647bec6 24313fi
e6cc62c6 24314
fd3d7534
RG
24315 fi
24316 if test "$wxUSE_ODBC" != "sys" ; then
24317 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
8647bec6
RG
24318 fi
24319
24320 fi
e6cc62c6 24321
6232543b 24322fi
21d1c967
GD
24323
24324if test "$wxUSE_REGEX" = "builtin" ; then
24325 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24326fi
21d1c967
GD
24327if test "$wxUSE_ZLIB" = "builtin" ; then
24328 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24329fi
24330
8284b0c5 24331
21d1c967 24332if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24333 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24334 OPENGL_LIBS="-framework OpenGL -framework AGL"
24335 elif test "$wxUSE_MSW" = 1; then
24336 OPENGL_LIBS="-lopengl32 -lglu32"
24337 else
01aa5863
VS
24338
24339
24340ac_find_includes=
24341for ac_dir in $SEARCH_INCLUDE /usr/include;
24342 do
24343 if test -f "$ac_dir/GL/gl.h"; then
24344 ac_find_includes=$ac_dir
24345 break
24346 fi
24347 done
24348
24349 if test "$ac_find_includes" != "" ; then
24350 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24351echo "${ECHO_T}found in $ac_find_includes" >&6
24352 set -x
24353
24354 if test "x$ac_find_includes" = "x/usr/include"; then
24355 ac_path_to_include=""
24356 else
24357 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24358 result=$?
24359 if test $result = 0; then
24360 ac_path_to_include=""
24361 else
24362 ac_path_to_include=" -I$ac_find_includes"
24363 fi
24364 fi
24365
24366 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24367 set +x
24368 fi
24369
e6cc62c6
VS
24370 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24371 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24372echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24373if test "${ac_cv_header_GL_gl_h+set}" = set; then
24374 echo $ECHO_N "(cached) $ECHO_C" >&6
24375fi
24376echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24377echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24378else
24379 # Is the header compilable?
24380echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24381echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24382cat >conftest.$ac_ext <<_ACEOF
24383#line $LINENO "configure"
24384/* confdefs.h. */
24385_ACEOF
24386cat confdefs.h >>conftest.$ac_ext
24387cat >>conftest.$ac_ext <<_ACEOF
24388/* end confdefs.h. */
24389$ac_includes_default
21d1c967 24390#include <GL/gl.h>
e6cc62c6
VS
24391_ACEOF
24392rm -f conftest.$ac_objext
24393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394 (eval $ac_compile) 2>&5
24395 ac_status=$?
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); } &&
24398 { ac_try='test -s conftest.$ac_objext'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
24404 ac_header_compiler=yes
24405else
24406 echo "$as_me: failed program was:" >&5
24407sed 's/^/| /' conftest.$ac_ext >&5
24408
24409ac_header_compiler=no
24410fi
24411rm -f conftest.$ac_objext conftest.$ac_ext
24412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24413echo "${ECHO_T}$ac_header_compiler" >&6
24414
24415# Is the header present?
24416echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24417echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24418cat >conftest.$ac_ext <<_ACEOF
24419#line $LINENO "configure"
24420/* confdefs.h. */
24421_ACEOF
24422cat confdefs.h >>conftest.$ac_ext
24423cat >>conftest.$ac_ext <<_ACEOF
24424/* end confdefs.h. */
24425#include <GL/gl.h>
24426_ACEOF
24427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24429 ac_status=$?
24430 grep -v '^ *+' conftest.er1 >conftest.err
24431 rm -f conftest.er1
24432 cat conftest.err >&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } >/dev/null; then
24435 if test -s conftest.err; then
24436 ac_cpp_err=$ac_c_preproc_warn_flag
24437 else
24438 ac_cpp_err=
24439 fi
24440else
24441 ac_cpp_err=yes
24442fi
24443if test -z "$ac_cpp_err"; then
24444 ac_header_preproc=yes
24445else
24446 echo "$as_me: failed program was:" >&5
24447sed 's/^/| /' conftest.$ac_ext >&5
24448
24449 ac_header_preproc=no
24450fi
24451rm -f conftest.err conftest.$ac_ext
24452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24453echo "${ECHO_T}$ac_header_preproc" >&6
24454
24455# So? What about this header?
24456case $ac_header_compiler:$ac_header_preproc in
24457 yes:no )
24458 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24459echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24460 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24461echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24462 (
24463 cat <<\_ASBOX
24464## ------------------------------------ ##
24465## Report this to bug-autoconf@gnu.org. ##
24466## ------------------------------------ ##
24467_ASBOX
24468 ) |
24469 sed "s/^/$as_me: WARNING: /" >&2
24470 ;;
24471 no:yes )
24472 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24473echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24474 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24475echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24476 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24477echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24478 (
24479 cat <<\_ASBOX
24480## ------------------------------------ ##
24481## Report this to bug-autoconf@gnu.org. ##
24482## ------------------------------------ ##
24483_ASBOX
24484 ) |
24485 sed "s/^/$as_me: WARNING: /" >&2
24486 ;;
24487esac
24488echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24489echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24490if test "${ac_cv_header_GL_gl_h+set}" = set; then
24491 echo $ECHO_N "(cached) $ECHO_C" >&6
24492else
24493 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24494fi
e6cc62c6
VS
24495echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24496echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24497
698dcdb6 24498fi
e6cc62c6
VS
24499if test $ac_cv_header_GL_gl_h = yes; then
24500
89e3b3e4
VZ
24501 found_gl=0
24502
e6cc62c6
VS
24503 echo "$as_me:$LINENO: checking for -lGL" >&5
24504echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24505
21d1c967 24506ac_find_libraries=
2b5f62a0 24507for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24508 do
24509 for ac_extension in a so sl dylib; do
24510 if test -f "$ac_dir/libGL.$ac_extension"; then
24511 ac_find_libraries=$ac_dir
24512 break 2
24513 fi
24514 done
24515 done
24516
24517 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24518
21d1c967
GD
24519 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24520 result=$?
24521 if test $result = 0; then
24522 ac_path_to_link=""
24523 else
24524 ac_path_to_link=" -L$ac_find_libraries"
24525 fi
24526
89e3b3e4
VZ
24527 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24528 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24529 fi
89e3b3e4 24530
e6cc62c6 24531
89e3b3e4
VZ
24532ac_find_libraries=
24533for ac_dir in $SEARCH_LIB /usr/lib;
24534 do
24535 for ac_extension in a so sl dylib; do
24536 if test -f "$ac_dir/libGLU.$ac_extension"; then
24537 ac_find_libraries=$ac_dir
24538 break 2
24539 fi
24540 done
24541 done
24542
24543 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24544
89e3b3e4
VZ
24545 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24546 result=$?
24547 if test $result = 0; then
24548 ac_path_to_link=""
24549 else
24550 ac_path_to_link=" -L$ac_find_libraries"
24551 fi
24552
24553 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24554 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24555 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24556 fi
24557
24558 found_gl=1
24559 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24560 echo "$as_me:$LINENO: result: yes" >&5
24561echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24562 fi
24563 fi
24564
24565 if "$found_gl" != 1; then
e6cc62c6
VS
24566 echo "$as_me:$LINENO: result: no" >&5
24567echo "${ECHO_T}no" >&6
24568 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24569echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24570
21d1c967 24571ac_find_libraries=
2b5f62a0 24572for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24573 do
24574 for ac_extension in a so sl dylib; do
24575 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24576 ac_find_libraries=$ac_dir
24577 break 2
24578 fi
24579 done
24580 done
24581
24582 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24583
21d1c967
GD
24584 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24585 result=$?
24586 if test $result = 0; then
24587 ac_path_to_link=""
24588 else
24589 ac_path_to_link=" -L$ac_find_libraries"
24590 fi
24591
24592 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24593 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24594 echo "$as_me:$LINENO: result: yes" >&5
24595echo "${ECHO_T}yes" >&6
21d1c967 24596 else
e6cc62c6
VS
24597 echo "$as_me:$LINENO: result: no" >&5
24598echo "${ECHO_T}no" >&6
21d1c967
GD
24599 fi
24600 fi
e6cc62c6 24601
5c6fa7d2 24602fi
52127426 24603
8284b0c5 24604
e6cc62c6 24605
21d1c967 24606 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24607 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24608echo "$as_me: error: OpenGL libraries not available" >&2;}
24609 { (exit 1); exit 1; }; }
21d1c967
GD
24610 fi
24611 fi
90dd450c 24612
21d1c967 24613 if test "$wxUSE_OPENGL" = "yes"; then
e6cc62c6 24614 cat >>confdefs.h <<\_ACEOF
21d1c967 24615#define wxUSE_OPENGL 1
e6cc62c6 24616_ACEOF
21d1c967 24617
e6cc62c6 24618 cat >>confdefs.h <<\_ACEOF
21d1c967 24619#define wxUSE_GLCANVAS 1
e6cc62c6 24620_ACEOF
21d1c967
GD
24621
24622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
24623 fi
10f2d63a 24624fi
21d1c967
GD
24625
24626if test -z "$TOOLKIT_VPATH" ; then
24627 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24628fi
21d1c967
GD
24629
24630if test -n "$TOOLKIT" ; then
24631 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24632fi
24633
fe0895cf 24634UNICODE=0
21d1c967
GD
24635lib_unicode_suffix=
24636if test "$wxUSE_UNICODE" = "yes"; then
24637 lib_unicode_suffix=u
fe0895cf 24638 UNICODE=1
90dd450c 24639fi
698dcdb6 24640
21d1c967 24641lib_debug_suffix=
fe0895cf 24642BUILD=release
21d1c967
GD
24643if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24644 lib_debug_suffix=d
fe0895cf 24645 BUILD=debug
21d1c967 24646fi
698dcdb6 24647
2b5f62a0
VZ
24648WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
24649
24650TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24651TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24652
24653if test "$cross_compiling" = "yes"; then
24654 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24655 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
24656fi
24657
24658WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24659WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
2b5f62a0 24660WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24661
24662WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24663WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24664
24665WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24666WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24667WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24668WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24669
24670case "${host}" in
24671 *-*-cygwin* | *-*-mingw32* )
24672
e6cc62c6
VS
24673
24674
17234b26 24675 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
21d1c967
GD
24676 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24677 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
24678 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
24679 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
24680 else
24681 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24682 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24683 fi
24684 ;;
24685
24686 *-*-darwin* )
e6cc62c6 24687
05159a27
GD
24688 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24689 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24690
24691 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
24692 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24693 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
24694 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24695
21d1c967 24696 if test "$wxUSE_MAC" = 1; then
f346733b
GD
24697 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
24698 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
24699 fi
24700 ;;
24701esac
24702
24703WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
24704WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
24705
24706WXCONFIG_LIBS="-l${WX_LIBRARY}"
24707WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
24708
24709if test "$wxUSE_OPENGL" = "yes"; then
24710 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
24711 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
24712fi
24713
8284b0c5
MB
24714
24715
21d1c967
GD
24716if test "$wxUSE_SHARED" = "yes"; then
24717 case "${host}" in
24718 *-pc-os2_emx | *-pc-os2-emx | \
24719 *-pc-msdosdjgpp )
24720 wxUSE_SHARED=no
e6cc62c6
VS
24721 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
24722echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
24723 ;;
24724 esac
24725fi
24726
fe0895cf 24727SHARED=0
2b5f62a0 24728if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 24729 SHARED=1
2b5f62a0
VZ
24730
24731 if test "$wxUSE_OPENGL" = "yes"; then
24732 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
24733 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
24734 else
24735 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
24736 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
24737 fi
24738
24739 if test "$GCC" = "yes"; then
24740 PIC_FLAG="-fPIC"
24741 fi
24742
24743
e6cc62c6 24744
2b5f62a0
VZ
24745 found_versioning=no
24746
e6cc62c6 24747
2b5f62a0 24748 if test $found_versioning = no ; then
e6cc62c6
VS
24749 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
24750echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
24751if test "${wx_cv_version_script+set}" = set; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24753else
e6cc62c6 24754
2b5f62a0
VZ
24755 echo "VER_1 { *; };" >conftest.sym
24756 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 24757
2b5f62a0
VZ
24758 if { ac_try='
24759 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
24760 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
24761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; } ; then
2b5f62a0
VZ
24766 if test -s conftest.stderr ; then
24767 wx_cv_version_script=no
24768 else
24769 wx_cv_version_script=yes
24770 fi
24771 else
24772 wx_cv_version_script=no
24773 fi
24774 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 24775
e6cc62c6
VS
24776fi
24777echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
24778echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 24779 if test $wx_cv_version_script = yes ; then
e6cc62c6 24780 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
24781 fi
24782 fi
21d1c967 24783
21d1c967
GD
24784
24785 SHARED_LD="${CXX} -shared -o"
24786
24787 case "${host}" in
24788 *-hp-hpux* )
ad2622f1 24789 if test "$GCC" = "yes"; then
85d5e282 24790 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
21d1c967
GD
24791 else
24792 LDFLAGS="$LDFLAGS -L/usr/lib"
24793
24794 SHARED_LD="${CXX} -b -o"
24795 PIC_FLAG="+Z"
24796 fi
24797
24798 if test "$wxUSE_OPENGL" = "yes"; then
24799 WX_ALL_INSTALLED="preinstall_gl"
24800 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
24801 else
24802 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
24803 fi
24804 ;;
24805
fe0895cf 24806 *-*-linux* | *-*-gnu* )
21d1c967 24807 if test "$GCC" != "yes"; then
e6cc62c6
VS
24808 echo "$as_me:$LINENO: checking for Intel compiler" >&5
24809echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
24810if test "${wx_cv_prog_icc+set}" = set; then
24811 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24812else
90dd450c 24813
e6cc62c6
VS
24814 cat >conftest.$ac_ext <<_ACEOF
24815#line $LINENO "configure"
24816/* confdefs.h. */
24817_ACEOF
24818cat confdefs.h >>conftest.$ac_ext
24819cat >>conftest.$ac_ext <<_ACEOF
24820/* end confdefs.h. */
24821
24822int
24823main ()
24824{
90dd450c 24825
21d1c967
GD
24826 #ifndef __INTEL_COMPILER
24827 #error Not icc
24828 #endif
e6cc62c6
VS
24829
24830 ;
24831 return 0;
24832}
24833_ACEOF
24834rm -f conftest.$ac_objext
24835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24836 (eval $ac_compile) 2>&5
24837 ac_status=$?
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } &&
24840 { ac_try='test -s conftest.$ac_objext'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
21d1c967 24846 wx_cv_prog_icc=yes
6232543b 24847else
e6cc62c6
VS
24848 echo "$as_me: failed program was:" >&5
24849sed 's/^/| /' conftest.$ac_ext >&5
24850
24851wx_cv_prog_icc=no
24852
247f5006 24853fi
e6cc62c6 24854rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 24855
e6cc62c6
VS
24856fi
24857echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5
24858echo "${ECHO_T}$wx_cv_prog_icc" >&6
21d1c967
GD
24859 if test "$wx_cv_prog_icc" = "yes"; then
24860 PIC_FLAG="-KPIC"
24861 fi
24862 fi
24863
24864 if test "$wxUSE_SONAME" = "yes" ; then
24865 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
24866 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
24867 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
24868 fi
e6cc62c6 24869 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
21d1c967
GD
24870 ;;
24871
24872 *-*-solaris2* )
24873 if test "$GCC" = yes ; then
24874 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
24875
24876 saveLdflags="$LDFLAGS"
24877 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
24878 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
24879echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
24880 cat >conftest.$ac_ext <<_ACEOF
24881#line $LINENO "configure"
24882/* confdefs.h. */
24883_ACEOF
24884cat confdefs.h >>conftest.$ac_ext
24885cat >>conftest.$ac_ext <<_ACEOF
24886/* end confdefs.h. */
24887
24888int
24889main ()
24890{
fe0895cf 24891
e6cc62c6
VS
24892 ;
24893 return 0;
24894}
24895_ACEOF
24896rm -f conftest.$ac_objext conftest$ac_exeext
24897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24898 (eval $ac_link) 2>&5
24899 ac_status=$?
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
24902 { ac_try='test -s conftest$ac_exeext'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; }; then
24908
24909 echo "$as_me:$LINENO: result: yes" >&5
24910echo "${ECHO_T}yes" >&6
24911 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
24912
24913else
24914 echo "$as_me: failed program was:" >&5
24915sed 's/^/| /' conftest.$ac_ext >&5
24916
24917
24918 echo "$as_me:$LINENO: result: no" >&5
24919echo "${ECHO_T}no" >&6
24920 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
24921echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 24922 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
24923 cat >conftest.$ac_ext <<_ACEOF
24924#line $LINENO "configure"
24925/* confdefs.h. */
24926_ACEOF
24927cat confdefs.h >>conftest.$ac_ext
24928cat >>conftest.$ac_ext <<_ACEOF
24929/* end confdefs.h. */
24930
24931int
24932main ()
24933{
24934
24935 ;
24936 return 0;
24937}
24938_ACEOF
24939rm -f conftest.$ac_objext conftest$ac_exeext
24940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941 (eval $ac_link) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } &&
24945 { ac_try='test -s conftest$ac_exeext'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24951
24952 echo "$as_me:$LINENO: result: yes" >&5
24953echo "${ECHO_T}yes" >&6
24954 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
24955else
24956 echo "$as_me: failed program was:" >&5
24957sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 24958
fe0895cf 24959
e6cc62c6
VS
24960 echo "$as_me:$LINENO: result: no" >&5
24961echo "${ECHO_T}no" >&6
24962
fe0895cf 24963fi
e6cc62c6
VS
24964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24965
24966fi
24967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 24968 LDFLAGS="$saveLdflags"
21d1c967
GD
24969 else
24970 SHARED_LD="${CXX} -G -o"
24971 PIC_FLAG="-KPIC"
24972 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
24973 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
e6cc62c6 24974 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
24975 fi
24976 ;;
24977
24978 *-*-darwin* )
b2fee376
GD
24979 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
24980 CFLAGS="$CFLAGS -fno-common"
24981 CXXFLAGS="$CXXFLAGS -fno-common"
21d1c967
GD
24982 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
24983 PIC_FLAG="-dynamic -fPIC"
f346733b 24984 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
05159a27 24985 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
21d1c967
GD
24986 ;;
24987
24988 *-*-aix* )
2b5f62a0
VZ
24989 if test "$GCC" != "yes"; then
24990 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
321d2b14 24991set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
24992echo "$as_me:$LINENO: checking for $ac_word" >&5
24993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24994if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
321d2b14
VZ
24996else
24997 if test -n "$AIX_CXX_LD"; then
24998 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
24999else
e6cc62c6
VS
25000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25001for as_dir in $PATH
25002do
25003 IFS=$as_save_IFS
25004 test -z "$as_dir" && as_dir=.
25005 for ac_exec_ext in '' $ac_executable_extensions; do
25006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25007 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
25008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25009 break 2
25010 fi
25011done
25012done
25013
321d2b14
VZ
25014 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
25015fi
25016fi
e6cc62c6 25017AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
321d2b14 25018if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
25019 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
25020echo "${ECHO_T}$AIX_CXX_LD" >&6
321d2b14 25021else
e6cc62c6
VS
25022 echo "$as_me:$LINENO: result: no" >&5
25023echo "${ECHO_T}no" >&6
321d2b14
VZ
25024fi
25025
8284b0c5 25026
2b5f62a0
VZ
25027 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
25028 fi
21d1c967
GD
25029 ;;
25030
25031 *-*-cygwin* | *-*-mingw32* )
21d1c967
GD
25032 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
25033
25034 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
25035 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25036
25037 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
25038
f657dbe7
MB
25039 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
25040 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
25041
25042 if test "$wxUSE_OPENGL" = "yes"; then
25043 LIBS="${LIBS} ${OPENGL_LIBS}"
21d1c967
GD
25044 fi
25045 ;;
25046
25047 *-*-beos* )
25048 SHARED_LD="${LD} -shared -o"
25049 ;;
25050
2b5f62a0
VZ
25051 *-*-irix* )
25052 if test "$GCC" != "yes"; then
25053 PIC_FLAG="-KPIC"
25054 fi
25055 ;;
25056
21d1c967
GD
25057 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
25058 *-*-sunos4* | \
21d1c967
GD
25059 *-*-osf* | \
25060 *-*-dgux5* | \
25061 *-*-sysv5* )
25062 ;;
25063
25064 *)
e6cc62c6
VS
25065 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
25066echo "$as_me: error: unknown system type $host." >&2;}
25067 { (exit 1); exit 1; }; }
21d1c967
GD
25068 esac
25069
25070 if test "x$WX_TARGET_LIBRARY" = "x"; then
25071 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25072 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25073 fi
25074
25075 WX_TARGET_LIBRARY_TYPE="so"
25076 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25077fi
10f2d63a 25078
21d1c967
GD
25079if test "$wxUSE_SHARED" = "no"; then
25080
25081 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25082 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25083 fi
25084
ac0c4cc3 25085 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25086 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25087 fi
25088
25089 if test "$wxUSE_OPENGL" = "yes"; then
25090 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25091 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25092 else
25093 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25094 fi
25095
25096 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25097 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25098
25099 WX_TARGET_LIBRARY_TYPE="a"
25100 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25101
25102 STATIC_FLAG="yes"
25103else
25104 STATIC_FLAG="no"
90dd450c 25105fi
1e487827 25106
93fac604
VZ
25107MACRESCOMP="@#"
25108MACSETFILE="@#"
36825681 25109MACRESWXCONFIG="#"
21d1c967 25110if test "$wxUSE_MAC" = 1; then
e6cc62c6 25111 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25112 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25113 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25114 # Extract the first word of "Rez", so it can be a program name with args.
25115set dummy Rez; ac_word=$2
e6cc62c6
VS
25116echo "$as_me:$LINENO: checking for $ac_word" >&5
25117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25118if test "${ac_cv_prog_RESCOMP+set}" = set; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25120else
21d1c967
GD
25121 if test -n "$RESCOMP"; then
25122 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25123else
e6cc62c6
VS
25124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25125for as_dir in $PATH
25126do
25127 IFS=$as_save_IFS
25128 test -z "$as_dir" && as_dir=.
25129 for ac_exec_ext in '' $ac_executable_extensions; do
25130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25131 ac_cv_prog_RESCOMP="Rez"
25132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25133 break 2
25134 fi
25135done
25136done
25137
21d1c967 25138 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25139fi
b93d0d08 25140fi
e6cc62c6 25141RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25142if test -n "$RESCOMP"; then
e6cc62c6
VS
25143 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25144echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25145else
e6cc62c6
VS
25146 echo "$as_me:$LINENO: result: no" >&5
25147echo "${ECHO_T}no" >&6
90dd450c 25148fi
b93d0d08 25149
21d1c967
GD
25150 # Extract the first word of "DeRez", so it can be a program name with args.
25151set dummy DeRez; ac_word=$2
e6cc62c6
VS
25152echo "$as_me:$LINENO: checking for $ac_word" >&5
25153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25154if test "${ac_cv_prog_DEREZ+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25156else
21d1c967
GD
25157 if test -n "$DEREZ"; then
25158 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25159else
e6cc62c6
VS
25160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25161for as_dir in $PATH
25162do
25163 IFS=$as_save_IFS
25164 test -z "$as_dir" && as_dir=.
25165 for ac_exec_ext in '' $ac_executable_extensions; do
25166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25167 ac_cv_prog_DEREZ="DeRez"
25168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25169 break 2
25170 fi
25171done
25172done
25173
21d1c967 25174 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25175fi
90dd450c 25176fi
e6cc62c6 25177DEREZ=$ac_cv_prog_DEREZ
21d1c967 25178if test -n "$DEREZ"; then
e6cc62c6
VS
25179 echo "$as_me:$LINENO: result: $DEREZ" >&5
25180echo "${ECHO_T}$DEREZ" >&6
90dd450c 25181else
e6cc62c6
VS
25182 echo "$as_me:$LINENO: result: no" >&5
25183echo "${ECHO_T}no" >&6
3a922bb4 25184fi
698dcdb6 25185
36825681
GD
25186 # Extract the first word of "SetFile", so it can be a program name with args.
25187set dummy SetFile; ac_word=$2
e6cc62c6
VS
25188echo "$as_me:$LINENO: checking for $ac_word" >&5
25189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25190if test "${ac_cv_prog_SETFILE+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25192else
25193 if test -n "$SETFILE"; then
25194 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25195else
e6cc62c6
VS
25196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25197for as_dir in $PATH
25198do
25199 IFS=$as_save_IFS
25200 test -z "$as_dir" && as_dir=.
25201 for ac_exec_ext in '' $ac_executable_extensions; do
25202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25203 ac_cv_prog_SETFILE="SetFile"
25204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25205 break 2
25206 fi
25207done
25208done
25209
36825681
GD
25210 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25211fi
25212fi
e6cc62c6 25213SETFILE=$ac_cv_prog_SETFILE
36825681 25214if test -n "$SETFILE"; then
e6cc62c6
VS
25215 echo "$as_me:$LINENO: result: $SETFILE" >&5
25216echo "${ECHO_T}$SETFILE" >&6
36825681 25217else
e6cc62c6
VS
25218 echo "$as_me:$LINENO: result: no" >&5
25219echo "${ECHO_T}no" >&6
36825681
GD
25220fi
25221
21d1c967 25222 MACOSX_BUNDLE="bundle"
36825681
GD
25223 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25224 MACSETFILE="\$(SETFILE)"
9711d31e 25225 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25226elif test "$wxUSE_COCOA" = 1; then
25227 # Extract the first word of "Rez", so it can be a program name with args.
25228set dummy Rez; ac_word=$2
e6cc62c6
VS
25229echo "$as_me:$LINENO: checking for $ac_word" >&5
25230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25231if test "${ac_cv_prog_RESCOMP+set}" = set; then
25232 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25233else
25234 if test -n "$RESCOMP"; then
25235 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25236else
e6cc62c6
VS
25237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25238for as_dir in $PATH
25239do
25240 IFS=$as_save_IFS
25241 test -z "$as_dir" && as_dir=.
25242 for ac_exec_ext in '' $ac_executable_extensions; do
25243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25244 ac_cv_prog_RESCOMP="Rez"
25245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25246 break 2
25247 fi
25248done
25249done
25250
64440d77
DE
25251 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25252fi
25253fi
e6cc62c6 25254RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25255if test -n "$RESCOMP"; then
e6cc62c6
VS
25256 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25257echo "${ECHO_T}$RESCOMP" >&6
64440d77 25258else
e6cc62c6
VS
25259 echo "$as_me:$LINENO: result: no" >&5
25260echo "${ECHO_T}no" >&6
64440d77
DE
25261fi
25262
25263 # Extract the first word of "DeRez", so it can be a program name with args.
25264set dummy DeRez; ac_word=$2
e6cc62c6
VS
25265echo "$as_me:$LINENO: checking for $ac_word" >&5
25266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25267if test "${ac_cv_prog_DEREZ+set}" = set; then
25268 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25269else
25270 if test -n "$DEREZ"; then
25271 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25272else
e6cc62c6
VS
25273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25274for as_dir in $PATH
25275do
25276 IFS=$as_save_IFS
25277 test -z "$as_dir" && as_dir=.
25278 for ac_exec_ext in '' $ac_executable_extensions; do
25279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25280 ac_cv_prog_DEREZ="DeRez"
25281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25282 break 2
25283 fi
25284done
25285done
25286
64440d77
DE
25287 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25288fi
25289fi
e6cc62c6 25290DEREZ=$ac_cv_prog_DEREZ
64440d77 25291if test -n "$DEREZ"; then
e6cc62c6
VS
25292 echo "$as_me:$LINENO: result: $DEREZ" >&5
25293echo "${ECHO_T}$DEREZ" >&6
64440d77 25294else
e6cc62c6
VS
25295 echo "$as_me:$LINENO: result: no" >&5
25296echo "${ECHO_T}no" >&6
64440d77
DE
25297fi
25298
25299 # Extract the first word of "SetFile", so it can be a program name with args.
25300set dummy SetFile; ac_word=$2
e6cc62c6
VS
25301echo "$as_me:$LINENO: checking for $ac_word" >&5
25302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25303if test "${ac_cv_prog_SETFILE+set}" = set; then
25304 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25305else
25306 if test -n "$SETFILE"; then
25307 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25308else
e6cc62c6
VS
25309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25310for as_dir in $PATH
25311do
25312 IFS=$as_save_IFS
25313 test -z "$as_dir" && as_dir=.
25314 for ac_exec_ext in '' $ac_executable_extensions; do
25315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25316 ac_cv_prog_SETFILE="SetFile"
25317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25318 break 2
25319 fi
25320done
25321done
25322
64440d77
DE
25323 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25324fi
25325fi
e6cc62c6 25326SETFILE=$ac_cv_prog_SETFILE
64440d77 25327if test -n "$SETFILE"; then
e6cc62c6
VS
25328 echo "$as_me:$LINENO: result: $SETFILE" >&5
25329echo "${ECHO_T}$SETFILE" >&6
64440d77 25330else
e6cc62c6
VS
25331 echo "$as_me:$LINENO: result: no" >&5
25332echo "${ECHO_T}no" >&6
64440d77
DE
25333fi
25334
25335 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25336 MACSETFILE="\$(SETFILE)"
9711d31e 25337 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25338else
25339 if test "$wxUSE_PM" = 1; then
36825681 25340 MACRESCOMP="emxbind -ep"
90dd450c 25341 fi
4f14bcd8 25342fi
10f2d63a 25343
8284b0c5 25344
e6cc62c6
VS
25345echo "$as_me:$LINENO: checking for mode_t" >&5
25346echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25347if test "${ac_cv_type_mode_t+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25349else
e6cc62c6
VS
25350 cat >conftest.$ac_ext <<_ACEOF
25351#line $LINENO "configure"
25352/* confdefs.h. */
25353_ACEOF
25354cat confdefs.h >>conftest.$ac_ext
25355cat >>conftest.$ac_ext <<_ACEOF
25356/* end confdefs.h. */
25357$ac_includes_default
25358int
25359main ()
25360{
25361if ((mode_t *) 0)
25362 return 0;
25363if (sizeof (mode_t))
25364 return 0;
25365 ;
25366 return 0;
25367}
25368_ACEOF
25369rm -f conftest.$ac_objext
25370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25371 (eval $ac_compile) 2>&5
25372 ac_status=$?
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } &&
25375 { ac_try='test -s conftest.$ac_objext'
25376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); }; }; then
25381 ac_cv_type_mode_t=yes
a0b9e27f 25382else
e6cc62c6
VS
25383 echo "$as_me: failed program was:" >&5
25384sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25385
e6cc62c6 25386ac_cv_type_mode_t=no
a0b9e27f 25387fi
e6cc62c6 25388rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25389fi
e6cc62c6
VS
25390echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25391echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25392if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25393 :
25394else
a0b9e27f 25395
e6cc62c6
VS
25396cat >>confdefs.h <<_ACEOF
25397#define mode_t int
25398_ACEOF
8284b0c5
MB
25399
25400fi
25401
e6cc62c6
VS
25402echo "$as_me:$LINENO: checking for off_t" >&5
25403echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25404if test "${ac_cv_type_off_t+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25406else
e6cc62c6
VS
25407 cat >conftest.$ac_ext <<_ACEOF
25408#line $LINENO "configure"
25409/* confdefs.h. */
25410_ACEOF
25411cat confdefs.h >>conftest.$ac_ext
25412cat >>conftest.$ac_ext <<_ACEOF
25413/* end confdefs.h. */
25414$ac_includes_default
25415int
25416main ()
25417{
25418if ((off_t *) 0)
25419 return 0;
25420if (sizeof (off_t))
25421 return 0;
25422 ;
25423 return 0;
25424}
25425_ACEOF
25426rm -f conftest.$ac_objext
25427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25428 (eval $ac_compile) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } &&
25432 { ac_try='test -s conftest.$ac_objext'
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 ac_cv_type_off_t=yes
5c6fa7d2 25439else
e6cc62c6
VS
25440 echo "$as_me: failed program was:" >&5
25441sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25442
e6cc62c6 25443ac_cv_type_off_t=no
8284b0c5 25444fi
e6cc62c6 25445rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25446fi
e6cc62c6
VS
25447echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25448echo "${ECHO_T}$ac_cv_type_off_t" >&6
25449if test $ac_cv_type_off_t = yes; then
25450 :
247f5006
VZ
25451else
25452
e6cc62c6 25453cat >>confdefs.h <<_ACEOF
90dd450c 25454#define off_t long
e6cc62c6 25455_ACEOF
10f2d63a 25456
90dd450c 25457fi
10f2d63a 25458
e6cc62c6
VS
25459echo "$as_me:$LINENO: checking for pid_t" >&5
25460echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25461if test "${ac_cv_type_pid_t+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25463else
e6cc62c6
VS
25464 cat >conftest.$ac_ext <<_ACEOF
25465#line $LINENO "configure"
25466/* confdefs.h. */
25467_ACEOF
25468cat confdefs.h >>conftest.$ac_ext
25469cat >>conftest.$ac_ext <<_ACEOF
25470/* end confdefs.h. */
25471$ac_includes_default
25472int
25473main ()
25474{
25475if ((pid_t *) 0)
25476 return 0;
25477if (sizeof (pid_t))
25478 return 0;
25479 ;
25480 return 0;
25481}
25482_ACEOF
25483rm -f conftest.$ac_objext
25484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25485 (eval $ac_compile) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } &&
25489 { ac_try='test -s conftest.$ac_objext'
25490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); }; }; then
90dd450c 25495 ac_cv_type_pid_t=yes
698dcdb6 25496else
e6cc62c6
VS
25497 echo "$as_me: failed program was:" >&5
25498sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25499
e6cc62c6
VS
25500ac_cv_type_pid_t=no
25501fi
25502rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25503fi
e6cc62c6
VS
25504echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25505echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25506if test $ac_cv_type_pid_t = yes; then
25507 :
25508else
25509
25510cat >>confdefs.h <<_ACEOF
90dd450c 25511#define pid_t int
e6cc62c6 25512_ACEOF
10f2d63a 25513
7b4a847f
RR
25514fi
25515
e6cc62c6
VS
25516echo "$as_me:$LINENO: checking for size_t" >&5
25517echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25518if test "${ac_cv_type_size_t+set}" = set; then
25519 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25520else
e6cc62c6
VS
25521 cat >conftest.$ac_ext <<_ACEOF
25522#line $LINENO "configure"
25523/* confdefs.h. */
25524_ACEOF
25525cat confdefs.h >>conftest.$ac_ext
25526cat >>conftest.$ac_ext <<_ACEOF
25527/* end confdefs.h. */
25528$ac_includes_default
25529int
25530main ()
25531{
25532if ((size_t *) 0)
25533 return 0;
25534if (sizeof (size_t))
25535 return 0;
25536 ;
25537 return 0;
25538}
25539_ACEOF
25540rm -f conftest.$ac_objext
25541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25542 (eval $ac_compile) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } &&
25546 { ac_try='test -s conftest.$ac_objext'
25547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548 (eval $ac_try) 2>&5
25549 ac_status=$?
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; }; then
90dd450c 25552 ac_cv_type_size_t=yes
18dbb1f6 25553else
e6cc62c6
VS
25554 echo "$as_me: failed program was:" >&5
25555sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25556
e6cc62c6 25557ac_cv_type_size_t=no
a0b9e27f 25558fi
e6cc62c6
VS
25559rm -f conftest.$ac_objext conftest.$ac_ext
25560fi
25561echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25562echo "${ECHO_T}$ac_cv_type_size_t" >&6
25563if test $ac_cv_type_size_t = yes; then
25564 :
25565else
25566
25567cat >>confdefs.h <<_ACEOF
90dd450c 25568#define size_t unsigned
e6cc62c6 25569_ACEOF
90dd450c
VZ
25570
25571fi
25572
e6cc62c6
VS
25573echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25574echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25575if test "${ac_cv_type_uid_t+set}" = set; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25577else
e6cc62c6
VS
25578 cat >conftest.$ac_ext <<_ACEOF
25579#line $LINENO "configure"
25580/* confdefs.h. */
25581_ACEOF
25582cat confdefs.h >>conftest.$ac_ext
25583cat >>conftest.$ac_ext <<_ACEOF
25584/* end confdefs.h. */
90dd450c 25585#include <sys/types.h>
e6cc62c6
VS
25586
25587_ACEOF
90dd450c 25588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25589 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25590 ac_cv_type_uid_t=yes
b3e8d00a 25591else
90dd450c 25592 ac_cv_type_uid_t=no
b3e8d00a 25593fi
90dd450c 25594rm -f conftest*
b3e8d00a 25595
4f14bcd8 25596fi
e6cc62c6
VS
25597echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25598echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25599if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25600
25601cat >>confdefs.h <<\_ACEOF
90dd450c 25602#define uid_t int
e6cc62c6 25603_ACEOF
247f5006 25604
e6cc62c6
VS
25605
25606cat >>confdefs.h <<\_ACEOF
90dd450c 25607#define gid_t int
e6cc62c6 25608_ACEOF
4f14bcd8 25609
b3e8d00a 25610fi
b3e8d00a 25611
8284b0c5
MB
25612
25613
e6cc62c6
VS
25614
25615ac_ext=cc
4f14bcd8 25616ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25620
25621echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25622echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25623if test "${wx_cv_size_t_is_uint+set}" = set; then
25624 echo $ECHO_N "(cached) $ECHO_C" >&6
25625else
25626
25627 cat >conftest.$ac_ext <<_ACEOF
25628#line $LINENO "configure"
25629/* confdefs.h. */
25630_ACEOF
25631cat confdefs.h >>conftest.$ac_ext
25632cat >>conftest.$ac_ext <<_ACEOF
25633/* end confdefs.h. */
90dd450c 25634#include <stddef.h>
e6cc62c6
VS
25635int
25636main ()
25637{
90dd450c
VZ
25638
25639 return 0; }
25640
25641 struct Foo { void foo(size_t); void foo(unsigned int); };
25642
25643 int bar() {
e6cc62c6
VS
25644
25645 ;
25646 return 0;
25647}
25648_ACEOF
25649rm -f conftest.$ac_objext
25650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651 (eval $ac_compile) 2>&5
25652 ac_status=$?
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } &&
25655 { ac_try='test -s conftest.$ac_objext'
25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660 (exit $ac_status); }; }; then
90dd450c 25661 wx_cv_size_t_is_uint=no
698dcdb6 25662else
e6cc62c6
VS
25663 echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
25665
25666wx_cv_size_t_is_uint=yes
8284b0c5 25667
247f5006 25668fi
e6cc62c6
VS
25669rm -f conftest.$ac_objext conftest.$ac_ext
25670
a0b9e27f 25671
e6cc62c6
VS
25672fi
25673echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25674echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25675
90dd450c 25676if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25677 cat >>confdefs.h <<\_ACEOF
90dd450c 25678#define wxSIZE_T_IS_UINT 1
e6cc62c6 25679_ACEOF
698dcdb6 25680
90dd450c 25681else
e6cc62c6
VS
25682 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25683echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25684if test "${wx_cv_size_t_is_ulong+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25686else
e6cc62c6
VS
25687 cat >conftest.$ac_ext <<_ACEOF
25688#line $LINENO "configure"
25689/* confdefs.h. */
25690_ACEOF
25691cat confdefs.h >>conftest.$ac_ext
25692cat >>conftest.$ac_ext <<_ACEOF
25693/* end confdefs.h. */
90dd450c 25694#include <stddef.h>
e6cc62c6
VS
25695int
25696main ()
25697{
90dd450c
VZ
25698
25699 return 0; }
25700
25701 struct Foo { void foo(size_t); void foo(unsigned long); };
25702
25703 int bar() {
e6cc62c6
VS
25704
25705 ;
25706 return 0;
25707}
25708_ACEOF
25709rm -f conftest.$ac_objext
25710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711 (eval $ac_compile) 2>&5
25712 ac_status=$?
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -s conftest.$ac_objext'
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; }; then
90dd450c 25721 wx_cv_size_t_is_ulong=no
698dcdb6 25722else
e6cc62c6
VS
25723 echo "$as_me: failed program was:" >&5
25724sed 's/^/| /' conftest.$ac_ext >&5
25725
25726wx_cv_size_t_is_ulong=yes
25727
247f5006 25728fi
e6cc62c6 25729rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25730
e6cc62c6
VS
25731fi
25732echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25733echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25734
90dd450c 25735 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25736 cat >>confdefs.h <<\_ACEOF
90dd450c 25737#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25738_ACEOF
4f14bcd8
GD
25739
25740 fi
90dd450c 25741fi
1e487827 25742
90dd450c 25743ac_ext=c
4f14bcd8 25744ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25747ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25748
5c6fa7d2 25749
8284b0c5 25750
e6cc62c6
VS
25751echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25752echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25753if test "${wx_cv_struct_pw_gecos+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25755else
e6cc62c6
VS
25756
25757 cat >conftest.$ac_ext <<_ACEOF
25758#line $LINENO "configure"
25759/* confdefs.h. */
25760_ACEOF
25761cat confdefs.h >>conftest.$ac_ext
25762cat >>conftest.$ac_ext <<_ACEOF
25763/* end confdefs.h. */
90dd450c 25764#include <pwd.h>
e6cc62c6
VS
25765int
25766main ()
25767{
f6bcfd97 25768
90dd450c
VZ
25769 char *p;
25770 struct passwd *pw;
25771 p = pw->pw_gecos;
e6cc62c6
VS
25772
25773 ;
25774 return 0;
25775}
25776_ACEOF
25777rm -f conftest.$ac_objext
25778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25779 (eval $ac_compile) 2>&5
25780 ac_status=$?
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } &&
25783 { ac_try='test -s conftest.$ac_objext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789
90dd450c 25790 wx_cv_struct_pw_gecos=yes
e6cc62c6 25791
10f2d63a 25792else
e6cc62c6
VS
25793 echo "$as_me: failed program was:" >&5
25794sed 's/^/| /' conftest.$ac_ext >&5
25795
25796
90dd450c 25797 wx_cv_struct_pw_gecos=no
e6cc62c6 25798
247f5006
VZ
25799
25800fi
e6cc62c6 25801rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25802
e6cc62c6
VS
25803
25804fi
25805echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25806echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25807
90dd450c 25808if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25809 cat >>confdefs.h <<\_ACEOF
90dd450c 25810#define HAVE_PW_GECOS 1
e6cc62c6 25811_ACEOF
c521c494 25812
90dd450c 25813fi
4f14bcd8 25814
8284b0c5 25815
d29b553b 25816if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25817 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25818#define wxUSE_WCHAR_T 1
e6cc62c6 25819_ACEOF
d74f4b5a 25820
8284b0c5 25821
d74f4b5a
VZ
25822 WCSLEN_FOUND=0
25823 WCHAR_LINK=
e6cc62c6
VS
25824
25825for ac_func in wcslen
7a30264c 25826do
e6cc62c6
VS
25827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25828echo "$as_me:$LINENO: checking for $ac_func" >&5
25829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25830if eval "test \"\${$as_ac_var+set}\" = set"; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
25832else
25833 cat >conftest.$ac_ext <<_ACEOF
25834#line $LINENO "configure"
25835/* confdefs.h. */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h. */
7a30264c 25840/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25841 which can conflict with char $ac_func (); below.
25842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25843 <limits.h> exists even on freestanding compilers. */
25844#ifdef __STDC__
25845# include <limits.h>
25846#else
25847# include <assert.h>
25848#endif
4f14bcd8 25849/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25850#ifdef __cplusplus
25851extern "C"
25852{
25853#endif
4f14bcd8 25854/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25855 builtin and then its argument prototype would still apply. */
25856char $ac_func ();
7a30264c
VZ
25857/* The GNU C library defines this for functions which it implements
25858 to always fail with ENOSYS. Some functions are actually named
25859 something starting with __ and the normal name is an alias. */
25860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25861choke me
25862#else
e6cc62c6
VS
25863char (*f) () = $ac_func;
25864#endif
25865#ifdef __cplusplus
25866}
7a30264c
VZ
25867#endif
25868
e6cc62c6
VS
25869int
25870main ()
25871{
25872return f != $ac_func;
25873 ;
25874 return 0;
25875}
25876_ACEOF
25877rm -f conftest.$ac_objext conftest$ac_exeext
25878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25879 (eval $ac_link) 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } &&
25883 { ac_try='test -s conftest$ac_exeext'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; }; then
25889 eval "$as_ac_var=yes"
25890else
25891 echo "$as_me: failed program was:" >&5
25892sed 's/^/| /' conftest.$ac_ext >&5
25893
25894eval "$as_ac_var=no"
25895fi
25896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25897fi
25898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25900if test `eval echo '${'$as_ac_var'}'` = yes; then
25901 cat >>confdefs.h <<_ACEOF
25902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25903_ACEOF
d74f4b5a 25904 WCSLEN_FOUND=1
7a30264c
VZ
25905fi
25906done
9d8deca0 25907
8284b0c5 25908
d74f4b5a 25909 if test "$WCSLEN_FOUND" = 0; then
7a30264c 25910 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
25911 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
25912echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
25913if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
25914 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 25915else
e6cc62c6 25916 ac_check_lib_save_LIBS=$LIBS
7a30264c 25917LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
25918cat >conftest.$ac_ext <<_ACEOF
25919#line $LINENO "configure"
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925
4f14bcd8 25926/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25927#ifdef __cplusplus
25928extern "C"
25929#endif
4f14bcd8 25930/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25931 builtin and then its argument prototype would still apply. */
25932char wcslen ();
25933int
25934main ()
25935{
25936wcslen ();
25937 ;
25938 return 0;
25939}
25940_ACEOF
25941rm -f conftest.$ac_objext conftest$ac_exeext
25942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25943 (eval $ac_link) 2>&5
25944 ac_status=$?
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } &&
25947 { ac_try='test -s conftest$ac_exeext'
25948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952 (exit $ac_status); }; }; then
25953 ac_cv_lib_msvcrt_wcslen=yes
25954else
25955 echo "$as_me: failed program was:" >&5
25956sed 's/^/| /' conftest.$ac_ext >&5
25957
25958ac_cv_lib_msvcrt_wcslen=no
25959fi
25960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25961LIBS=$ac_check_lib_save_LIBS
25962fi
25963echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
25964echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
25965if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 25966 WCHAR_OK=1
d29b553b 25967fi
698dcdb6 25968
7a30264c 25969 else
e6cc62c6
VS
25970 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
25971echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
25972if test "${ac_cv_lib_w_wcslen+set}" = set; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25974else
e6cc62c6 25975 ac_check_lib_save_LIBS=$LIBS
7a30264c 25976LIBS="-lw $LIBS"
e6cc62c6
VS
25977cat >conftest.$ac_ext <<_ACEOF
25978#line $LINENO "configure"
25979/* confdefs.h. */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h. */
25984
4f14bcd8 25985/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25986#ifdef __cplusplus
25987extern "C"
25988#endif
4f14bcd8 25989/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25990 builtin and then its argument prototype would still apply. */
25991char wcslen ();
25992int
25993main ()
25994{
25995wcslen ();
25996 ;
25997 return 0;
25998}
25999_ACEOF
26000rm -f conftest.$ac_objext conftest$ac_exeext
26001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26002 (eval $ac_link) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } &&
26006 { ac_try='test -s conftest$ac_exeext'
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; }; then
26012 ac_cv_lib_w_wcslen=yes
26013else
26014 echo "$as_me: failed program was:" >&5
26015sed 's/^/| /' conftest.$ac_ext >&5
26016
26017ac_cv_lib_w_wcslen=no
26018fi
26019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26020LIBS=$ac_check_lib_save_LIBS
26021fi
26022echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26023echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26024if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26025
7a30264c 26026 WCHAR_LINK=" -lw"
d74f4b5a 26027 WCSLEN_FOUND=1
e6cc62c6 26028
4f14bcd8 26029fi
10f2d63a 26030
7a30264c 26031 fi
d29b553b 26032 fi
95c8801c 26033
d74f4b5a 26034 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26035 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26036#define HAVE_WCSLEN 1
e6cc62c6 26037_ACEOF
10f2d63a 26038
d74f4b5a 26039 fi
52127426 26040
e6cc62c6
VS
26041
26042for ac_func in wcsrtombs
eb4efbdc 26043do
e6cc62c6
VS
26044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26045echo "$as_me:$LINENO: checking for $ac_func" >&5
26046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26047if eval "test \"\${$as_ac_var+set}\" = set"; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26049else
26050 cat >conftest.$ac_ext <<_ACEOF
26051#line $LINENO "configure"
26052/* confdefs.h. */
26053_ACEOF
26054cat confdefs.h >>conftest.$ac_ext
26055cat >>conftest.$ac_ext <<_ACEOF
26056/* end confdefs.h. */
eb4efbdc 26057/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26058 which can conflict with char $ac_func (); below.
26059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26060 <limits.h> exists even on freestanding compilers. */
26061#ifdef __STDC__
26062# include <limits.h>
26063#else
26064# include <assert.h>
26065#endif
eb4efbdc 26066/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26067#ifdef __cplusplus
26068extern "C"
26069{
26070#endif
4f14bcd8 26071/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26072 builtin and then its argument prototype would still apply. */
26073char $ac_func ();
10f2d63a
VZ
26074/* The GNU C library defines this for functions which it implements
26075 to always fail with ENOSYS. Some functions are actually named
26076 something starting with __ and the normal name is an alias. */
247f5006 26077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26078choke me
26079#else
e6cc62c6
VS
26080char (*f) () = $ac_func;
26081#endif
26082#ifdef __cplusplus
26083}
10f2d63a
VZ
26084#endif
26085
e6cc62c6
VS
26086int
26087main ()
26088{
26089return f != $ac_func;
26090 ;
26091 return 0;
26092}
26093_ACEOF
26094rm -f conftest.$ac_objext conftest$ac_exeext
26095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26096 (eval $ac_link) 2>&5
26097 ac_status=$?
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -s conftest$ac_exeext'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26106 eval "$as_ac_var=yes"
26107else
26108 echo "$as_me: failed program was:" >&5
26109sed 's/^/| /' conftest.$ac_ext >&5
26110
26111eval "$as_ac_var=no"
26112fi
26113rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26114fi
26115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26116echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26117if test `eval echo '${'$as_ac_var'}'` = yes; then
26118 cat >>confdefs.h <<_ACEOF
26119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26120_ACEOF
270a909e 26121
4f14bcd8 26122fi
247f5006 26123done
1e487827 26124
af15babd 26125else
e6cc62c6
VS
26126 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26127echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26128fi
52127426 26129
8284b0c5 26130
e6cc62c6
VS
26131
26132ac_ext=cc
247f5006 26133ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26137
af15babd 26138
247f5006
VZ
26139
26140for ac_func in vsnprintf
26141do
e6cc62c6
VS
26142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26143echo "$as_me:$LINENO: checking for $ac_func" >&5
26144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26145if eval "test \"\${$as_ac_var+set}\" = set"; then
26146 echo $ECHO_N "(cached) $ECHO_C" >&6
26147else
26148 cat >conftest.$ac_ext <<_ACEOF
26149#line $LINENO "configure"
26150/* confdefs.h. */
26151_ACEOF
26152cat confdefs.h >>conftest.$ac_ext
26153cat >>conftest.$ac_ext <<_ACEOF
26154/* end confdefs.h. */
247f5006 26155/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26156 which can conflict with char $ac_func (); below.
26157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26158 <limits.h> exists even on freestanding compilers. */
26159#ifdef __STDC__
26160# include <limits.h>
26161#else
26162# include <assert.h>
26163#endif
247f5006
VZ
26164/* Override any gcc2 internal prototype to avoid an error. */
26165#ifdef __cplusplus
26166extern "C"
e6cc62c6 26167{
247f5006
VZ
26168#endif
26169/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26170 builtin and then its argument prototype would still apply. */
26171char $ac_func ();
247f5006
VZ
26172/* The GNU C library defines this for functions which it implements
26173 to always fail with ENOSYS. Some functions are actually named
26174 something starting with __ and the normal name is an alias. */
26175#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26176choke me
26177#else
e6cc62c6
VS
26178char (*f) () = $ac_func;
26179#endif
26180#ifdef __cplusplus
26181}
247f5006 26182#endif
af15babd 26183
e6cc62c6
VS
26184int
26185main ()
26186{
26187return f != $ac_func;
26188 ;
26189 return 0;
26190}
26191_ACEOF
26192rm -f conftest.$ac_objext conftest$ac_exeext
26193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26194 (eval $ac_link) 2>&5
26195 ac_status=$?
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); } &&
26198 { ac_try='test -s conftest$ac_exeext'
26199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200 (eval $ac_try) 2>&5
26201 ac_status=$?
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); }; }; then
26204 eval "$as_ac_var=yes"
26205else
26206 echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209eval "$as_ac_var=no"
26210fi
26211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26212fi
26213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26215if test `eval echo '${'$as_ac_var'}'` = yes; then
26216 cat >>confdefs.h <<_ACEOF
26217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26218_ACEOF
52127426 26219
5c6fa7d2 26220fi
247f5006 26221done
8284b0c5 26222
4f14bcd8 26223
8d90d2f2 26224if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26225 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26226echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26227if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26228 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26229else
e6cc62c6
VS
26230
26231 cat >conftest.$ac_ext <<_ACEOF
26232#line $LINENO "configure"
26233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
8d90d2f2
VZ
26238
26239 #include <stdio.h>
26240 #include <stdarg.h>
e6cc62c6
VS
26241
26242int
26243main ()
26244{
8d90d2f2
VZ
26245
26246 char *buf;
26247 va_list ap;
26248 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26249
26250 ;
26251 return 0;
26252}
26253_ACEOF
26254rm -f conftest.$ac_objext
26255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26256 (eval $ac_compile) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } &&
26260 { ac_try='test -s conftest.$ac_objext'
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
8d90d2f2
VZ
26266 wx_cv_func_vsnprintf_decl=yes
26267else
e6cc62c6
VS
26268 echo "$as_me: failed program was:" >&5
26269sed 's/^/| /' conftest.$ac_ext >&5
26270
26271wx_cv_func_vsnprintf_decl=no
26272
8d90d2f2 26273fi
e6cc62c6
VS
26274rm -f conftest.$ac_objext conftest.$ac_ext
26275
8d90d2f2 26276
e6cc62c6
VS
26277fi
26278echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26279echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26280
26281 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26282 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26283#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26284_ACEOF
8d90d2f2
VZ
26285
26286 fi
26287fi
26288
247f5006 26289if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26290
26291
26292
26293for ac_func in fputwc wprintf vswprintf
d74f4b5a 26294do
e6cc62c6
VS
26295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26296echo "$as_me:$LINENO: checking for $ac_func" >&5
26297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26298if eval "test \"\${$as_ac_var+set}\" = set"; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26300else
26301 cat >conftest.$ac_ext <<_ACEOF
26302#line $LINENO "configure"
26303/* confdefs.h. */
26304_ACEOF
26305cat confdefs.h >>conftest.$ac_ext
26306cat >>conftest.$ac_ext <<_ACEOF
26307/* end confdefs.h. */
d74f4b5a 26308/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26309 which can conflict with char $ac_func (); below.
26310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26311 <limits.h> exists even on freestanding compilers. */
26312#ifdef __STDC__
26313# include <limits.h>
26314#else
26315# include <assert.h>
26316#endif
d74f4b5a 26317/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26318#ifdef __cplusplus
26319extern "C"
e6cc62c6 26320{
247f5006 26321#endif
d74f4b5a 26322/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26323 builtin and then its argument prototype would still apply. */
26324char $ac_func ();
d74f4b5a
VZ
26325/* The GNU C library defines this for functions which it implements
26326 to always fail with ENOSYS. Some functions are actually named
26327 something starting with __ and the normal name is an alias. */
26328#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26329choke me
26330#else
e6cc62c6
VS
26331char (*f) () = $ac_func;
26332#endif
26333#ifdef __cplusplus
26334}
d74f4b5a
VZ
26335#endif
26336
e6cc62c6
VS
26337int
26338main ()
26339{
26340return f != $ac_func;
26341 ;
26342 return 0;
26343}
26344_ACEOF
26345rm -f conftest.$ac_objext conftest$ac_exeext
26346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26347 (eval $ac_link) 2>&5
26348 ac_status=$?
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } &&
26351 { ac_try='test -s conftest$ac_exeext'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26357 eval "$as_ac_var=yes"
26358else
26359 echo "$as_me: failed program was:" >&5
26360sed 's/^/| /' conftest.$ac_ext >&5
26361
26362eval "$as_ac_var=no"
26363fi
26364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26365fi
26366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26368if test `eval echo '${'$as_ac_var'}'` = yes; then
26369 cat >>confdefs.h <<_ACEOF
26370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26371_ACEOF
d74f4b5a 26372
d74f4b5a
VZ
26373fi
26374done
26375
8d90d2f2 26376
e6cc62c6
VS
26377 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26378echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26379 cat >conftest.$ac_ext <<_ACEOF
26380#line $LINENO "configure"
26381/* confdefs.h. */
26382_ACEOF
26383cat confdefs.h >>conftest.$ac_ext
26384cat >>conftest.$ac_ext <<_ACEOF
26385/* end confdefs.h. */
79668cae 26386#include <wchar.h>
e6cc62c6
VS
26387int
26388main ()
26389{
79668cae 26390&_vsnwprintf;
e6cc62c6
VS
26391 ;
26392 return 0;
26393}
26394_ACEOF
26395rm -f conftest.$ac_objext
26396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26397 (eval $ac_compile) 2>&5
26398 ac_status=$?
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } &&
26401 { ac_try='test -s conftest.$ac_objext'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; }; then
26407 echo "$as_me:$LINENO: result: yes" >&5
26408echo "${ECHO_T}yes" >&6
26409 cat >>confdefs.h <<\_ACEOF
79668cae 26410#define HAVE__VSNWPRINTF 1
e6cc62c6 26411_ACEOF
79668cae
MB
26412
26413else
e6cc62c6
VS
26414 echo "$as_me: failed program was:" >&5
26415sed 's/^/| /' conftest.$ac_ext >&5
26416
26417echo "$as_me:$LINENO: result: no" >&5
26418echo "${ECHO_T}no" >&6
79668cae 26419fi
e6cc62c6 26420rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26421fi
26422
247f5006
VZ
26423ac_ext=c
26424ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26427ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26428
26429
26430
26431
4f14bcd8 26432if test "$TOOLKIT" != "MSW"; then
af15babd 26433
8284b0c5
MB
26434
26435
e6cc62c6
VS
26436
26437ac_ext=cc
4f14bcd8 26438ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26442
52127426 26443
e6cc62c6
VS
26444
26445
26446# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26447if test "${with_libiconv_prefix+set}" = set; then
26448 withval="$with_libiconv_prefix"
e6cc62c6 26449
b040e242
VS
26450 for dir in `echo "$withval" | tr : ' '`; do
26451 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26452 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26453 done
b040e242 26454
e6cc62c6 26455fi;
b040e242 26456
e6cc62c6
VS
26457 echo "$as_me:$LINENO: checking for iconv" >&5
26458echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26459if test "${am_cv_func_iconv+set}" = set; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26461else
e6cc62c6 26462
b040e242
VS
26463 am_cv_func_iconv="no, consider installing GNU libiconv"
26464 am_cv_lib_iconv=no
e6cc62c6
VS
26465 cat >conftest.$ac_ext <<_ACEOF
26466#line $LINENO "configure"
26467/* confdefs.h. */
26468_ACEOF
26469cat confdefs.h >>conftest.$ac_ext
26470cat >>conftest.$ac_ext <<_ACEOF
26471/* end confdefs.h. */
b040e242 26472#include <stdlib.h>
4f14bcd8 26473#include <iconv.h>
e6cc62c6
VS
26474int
26475main ()
26476{
b040e242
VS
26477iconv_t cd = iconv_open("","");
26478 iconv(cd,NULL,NULL,NULL,NULL);
26479 iconv_close(cd);
e6cc62c6
VS
26480 ;
26481 return 0;
26482}
26483_ACEOF
26484rm -f conftest.$ac_objext conftest$ac_exeext
26485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26486 (eval $ac_link) 2>&5
26487 ac_status=$?
26488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489 (exit $ac_status); } &&
26490 { ac_try='test -s conftest$ac_exeext'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; }; then
b040e242 26496 am_cv_func_iconv=yes
af15babd 26497else
e6cc62c6
VS
26498 echo "$as_me: failed program was:" >&5
26499sed 's/^/| /' conftest.$ac_ext >&5
26500
b040e242 26501fi
e6cc62c6 26502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26503 if test "$am_cv_func_iconv" != yes; then
26504 am_save_LIBS="$LIBS"
26505 LIBS="$LIBS -liconv"
e6cc62c6
VS
26506 cat >conftest.$ac_ext <<_ACEOF
26507#line $LINENO "configure"
26508/* confdefs.h. */
26509_ACEOF
26510cat confdefs.h >>conftest.$ac_ext
26511cat >>conftest.$ac_ext <<_ACEOF
26512/* end confdefs.h. */
b040e242
VS
26513#include <stdlib.h>
26514#include <iconv.h>
e6cc62c6
VS
26515int
26516main ()
26517{
b040e242
VS
26518iconv_t cd = iconv_open("","");
26519 iconv(cd,NULL,NULL,NULL,NULL);
26520 iconv_close(cd);
e6cc62c6
VS
26521 ;
26522 return 0;
26523}
26524_ACEOF
26525rm -f conftest.$ac_objext conftest$ac_exeext
26526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26527 (eval $ac_link) 2>&5
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); } &&
26531 { ac_try='test -s conftest$ac_exeext'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; }; then
b040e242
VS
26537 am_cv_lib_iconv=yes
26538 am_cv_func_iconv=yes
26539else
e6cc62c6
VS
26540 echo "$as_me: failed program was:" >&5
26541sed 's/^/| /' conftest.$ac_ext >&5
26542
af15babd 26543fi
e6cc62c6 26544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26545 LIBS="$am_save_LIBS"
26546 fi
247f5006 26547
e6cc62c6
VS
26548fi
26549echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26550echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26551 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26552
26553cat >>confdefs.h <<\_ACEOF
b040e242 26554#define HAVE_ICONV 1
e6cc62c6 26555_ACEOF
b040e242 26556
e6cc62c6
VS
26557 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26558echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26559if test "${wx_cv_func_iconv_const+set}" = set; then
26560 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26561else
e6cc62c6
VS
26562 cat >conftest.$ac_ext <<_ACEOF
26563#line $LINENO "configure"
26564/* confdefs.h. */
26565_ACEOF
26566cat confdefs.h >>conftest.$ac_ext
26567cat >>conftest.$ac_ext <<_ACEOF
26568/* end confdefs.h. */
b040e242
VS
26569
26570#include <stdlib.h>
26571#include <iconv.h>
26572extern
26573#ifdef __cplusplus
26574"C"
26575#endif
26576#if defined(__STDC__) || defined(__cplusplus)
26577size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26578#else
26579size_t iconv();
26580#endif
af15babd 26581
e6cc62c6
VS
26582int
26583main ()
26584{
26585
26586 ;
26587 return 0;
26588}
26589_ACEOF
26590rm -f conftest.$ac_objext
26591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26592 (eval $ac_compile) 2>&5
26593 ac_status=$?
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } &&
26596 { ac_try='test -s conftest.$ac_objext'
26597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598 (eval $ac_try) 2>&5
26599 ac_status=$?
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; }; then
b7043674 26602 wx_cv_func_iconv_const="no"
b040e242 26603else
e6cc62c6
VS
26604 echo "$as_me: failed program was:" >&5
26605sed 's/^/| /' conftest.$ac_ext >&5
26606
26607wx_cv_func_iconv_const="yes"
26608
247f5006 26609fi
e6cc62c6 26610rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26611
e6cc62c6
VS
26612fi
26613echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26614echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26615
26616 iconv_const=
1c405bb5 26617 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26618 iconv_const="const"
26619 fi
26620
e6cc62c6
VS
26621
26622cat >>confdefs.h <<_ACEOF
f09359cf 26623#define ICONV_CONST $iconv_const
e6cc62c6 26624_ACEOF
b040e242
VS
26625
26626 fi
26627 LIBICONV=
26628 if test "$am_cv_lib_iconv" = yes; then
26629 LIBICONV="-liconv"
26630 fi
e6cc62c6 26631
b040e242
VS
26632
26633LIBS="$LIBICONV $LIBS"
4f14bcd8 26634ac_ext=c
4f14bcd8 26635ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26638ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26639
5c6fa7d2 26640
8284b0c5 26641if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26642
26643for ac_func in sigaction
af15babd 26644do
e6cc62c6
VS
26645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26646echo "$as_me:$LINENO: checking for $ac_func" >&5
26647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26648if eval "test \"\${$as_ac_var+set}\" = set"; then
26649 echo $ECHO_N "(cached) $ECHO_C" >&6
26650else
26651 cat >conftest.$ac_ext <<_ACEOF
26652#line $LINENO "configure"
26653/* confdefs.h. */
26654_ACEOF
26655cat confdefs.h >>conftest.$ac_ext
26656cat >>conftest.$ac_ext <<_ACEOF
26657/* end confdefs.h. */
af15babd 26658/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26659 which can conflict with char $ac_func (); below.
26660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26661 <limits.h> exists even on freestanding compilers. */
26662#ifdef __STDC__
26663# include <limits.h>
26664#else
26665# include <assert.h>
26666#endif
af15babd 26667/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26668#ifdef __cplusplus
26669extern "C"
26670{
26671#endif
af15babd 26672/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26673 builtin and then its argument prototype would still apply. */
26674char $ac_func ();
af15babd
VZ
26675/* The GNU C library defines this for functions which it implements
26676 to always fail with ENOSYS. Some functions are actually named
26677 something starting with __ and the normal name is an alias. */
26678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26679choke me
26680#else
e6cc62c6
VS
26681char (*f) () = $ac_func;
26682#endif
26683#ifdef __cplusplus
26684}
af15babd
VZ
26685#endif
26686
e6cc62c6
VS
26687int
26688main ()
26689{
26690return f != $ac_func;
26691 ;
26692 return 0;
26693}
26694_ACEOF
26695rm -f conftest.$ac_objext conftest$ac_exeext
26696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26697 (eval $ac_link) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try='test -s conftest$ac_exeext'
26702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; }; then
26707 eval "$as_ac_var=yes"
26708else
26709 echo "$as_me: failed program was:" >&5
26710sed 's/^/| /' conftest.$ac_ext >&5
26711
26712eval "$as_ac_var=no"
26713fi
26714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26715fi
26716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26718if test `eval echo '${'$as_ac_var'}'` = yes; then
26719 cat >>confdefs.h <<_ACEOF
26720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26721_ACEOF
7b4a847f 26722
4f14bcd8
GD
26723fi
26724done
26725
8284b0c5 26726
4f14bcd8 26727 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26728 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26729echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26730 wxUSE_ON_FATAL_EXCEPTION=no
26731 fi
26732
26733 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26734
26735
26736 ac_ext=cc
5c6fa7d2 26737ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26741
5c6fa7d2 26742
e6cc62c6
VS
26743 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26744echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26745if test "${wx_cv_type_sa_handler+set}" = set; then
26746 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26747else
e6cc62c6
VS
26748
26749 cat >conftest.$ac_ext <<_ACEOF
26750#line $LINENO "configure"
26751/* confdefs.h. */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h. */
4f14bcd8 26756#include <signal.h>
e6cc62c6
VS
26757int
26758main ()
26759{
4f14bcd8
GD
26760
26761 extern void testSigHandler(int);
26762
26763 struct sigaction sa;
26764 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26765
26766 ;
26767 return 0;
26768}
26769_ACEOF
26770rm -f conftest.$ac_objext
26771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26772 (eval $ac_compile) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
26776 { ac_try='test -s conftest.$ac_objext'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
26782
4f14bcd8 26783 wx_cv_type_sa_handler=int
e6cc62c6 26784
af15babd 26785else
e6cc62c6
VS
26786 echo "$as_me: failed program was:" >&5
26787sed 's/^/| /' conftest.$ac_ext >&5
26788
26789
4f14bcd8 26790 wx_cv_type_sa_handler=void
e6cc62c6 26791
247f5006 26792fi
e6cc62c6 26793rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26794
e6cc62c6
VS
26795fi
26796echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26797echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26798
26799 ac_ext=c
4f14bcd8 26800ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26803ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26804
8284b0c5 26805
e6cc62c6 26806 cat >>confdefs.h <<_ACEOF
4f14bcd8 26807#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26808_ACEOF
af15babd 26809
4f14bcd8
GD
26810 fi
26811fi
af15babd 26812
e6cc62c6
VS
26813
26814
a1d22ad7 26815for ac_func in mkstemp mktemp
af15babd 26816do
e6cc62c6
VS
26817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26818echo "$as_me:$LINENO: checking for $ac_func" >&5
26819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26820if eval "test \"\${$as_ac_var+set}\" = set"; then
26821 echo $ECHO_N "(cached) $ECHO_C" >&6
26822else
26823 cat >conftest.$ac_ext <<_ACEOF
26824#line $LINENO "configure"
26825/* confdefs.h. */
26826_ACEOF
26827cat confdefs.h >>conftest.$ac_ext
26828cat >>conftest.$ac_ext <<_ACEOF
26829/* end confdefs.h. */
af15babd 26830/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26831 which can conflict with char $ac_func (); below.
26832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26833 <limits.h> exists even on freestanding compilers. */
26834#ifdef __STDC__
26835# include <limits.h>
26836#else
26837# include <assert.h>
26838#endif
af15babd 26839/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26840#ifdef __cplusplus
26841extern "C"
26842{
26843#endif
af15babd 26844/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26845 builtin and then its argument prototype would still apply. */
26846char $ac_func ();
af15babd
VZ
26847/* The GNU C library defines this for functions which it implements
26848 to always fail with ENOSYS. Some functions are actually named
26849 something starting with __ and the normal name is an alias. */
26850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26851choke me
26852#else
e6cc62c6
VS
26853char (*f) () = $ac_func;
26854#endif
26855#ifdef __cplusplus
26856}
af15babd
VZ
26857#endif
26858
e6cc62c6
VS
26859int
26860main ()
26861{
26862return f != $ac_func;
26863 ;
26864 return 0;
26865}
26866_ACEOF
26867rm -f conftest.$ac_objext conftest$ac_exeext
26868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26869 (eval $ac_link) 2>&5
26870 ac_status=$?
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } &&
26873 { ac_try='test -s conftest$ac_exeext'
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26876 ac_status=$?
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; }; then
26879 eval "$as_ac_var=yes"
26880else
26881 echo "$as_me: failed program was:" >&5
26882sed 's/^/| /' conftest.$ac_ext >&5
26883
26884eval "$as_ac_var=no"
26885fi
26886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26887fi
26888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26890if test `eval echo '${'$as_ac_var'}'` = yes; then
26891 cat >>confdefs.h <<_ACEOF
26892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26893_ACEOF
ade35f11 26894 break
ade35f11
VZ
26895fi
26896done
26897
8284b0c5 26898
e6cc62c6
VS
26899echo "$as_me:$LINENO: checking for statfs" >&5
26900echo $ECHO_N "checking for statfs... $ECHO_C" >&6
26901if test "${wx_cv_func_statfs+set}" = set; then
26902 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26903else
e6cc62c6
VS
26904 cat >conftest.$ac_ext <<_ACEOF
26905#line $LINENO "configure"
26906/* confdefs.h. */
26907_ACEOF
26908cat confdefs.h >>conftest.$ac_ext
26909cat >>conftest.$ac_ext <<_ACEOF
26910/* end confdefs.h. */
4f14bcd8
GD
26911
26912 #if defined(__BSD__)
26913 #include <sys/param.h>
26914 #include <sys/mount.h>
26915 #else
26916 #include <sys/vfs.h>
26917 #endif
e6cc62c6
VS
26918
26919int
26920main ()
26921{
4f14bcd8
GD
26922
26923 long l;
26924 struct statfs fs;
26925 statfs("/", &fs);
26926 l = fs.f_bsize;
26927 l += fs.f_blocks;
26928 l += fs.f_bavail;
e6cc62c6
VS
26929
26930 ;
26931 return 0;
26932}
26933_ACEOF
26934rm -f conftest.$ac_objext
26935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26936 (eval $ac_compile) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -s conftest.$ac_objext'
26941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942 (eval $ac_try) 2>&5
26943 ac_status=$?
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); }; }; then
26946
4f14bcd8 26947 wx_cv_func_statfs=yes
e6cc62c6 26948
4f14bcd8 26949else
e6cc62c6
VS
26950 echo "$as_me: failed program was:" >&5
26951sed 's/^/| /' conftest.$ac_ext >&5
26952
26953
4f14bcd8 26954 wx_cv_func_statfs=no
e6cc62c6 26955
8284b0c5 26956
247f5006 26957fi
e6cc62c6 26958rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26959
e6cc62c6
VS
26960fi
26961echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
26962echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
26963
26964if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 26965 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 26966 cat >>confdefs.h <<\_ACEOF
4f14bcd8 26967#define HAVE_STATFS 1
e6cc62c6 26968_ACEOF
4f14bcd8
GD
26969
26970else
e6cc62c6
VS
26971 echo "$as_me:$LINENO: checking for statvfs" >&5
26972echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
26973if test "${wx_cv_func_statvfs+set}" = set; then
26974 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26975else
e6cc62c6
VS
26976 cat >conftest.$ac_ext <<_ACEOF
26977#line $LINENO "configure"
26978/* confdefs.h. */
26979_ACEOF
26980cat confdefs.h >>conftest.$ac_ext
26981cat >>conftest.$ac_ext <<_ACEOF
26982/* end confdefs.h. */
af15babd 26983
54ab82b3
VZ
26984 #include <stddef.h>
26985 #include <sys/statvfs.h>
e6cc62c6
VS
26986
26987int
26988main ()
26989{
af15babd 26990
54ab82b3 26991 statvfs("/", NULL);
e6cc62c6
VS
26992
26993 ;
26994 return 0;
26995}
26996_ACEOF
26997rm -f conftest.$ac_objext
26998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26999 (eval $ac_compile) 2>&5
27000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } &&
27003 { ac_try='test -s conftest.$ac_objext'
27004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27005 (eval $ac_try) 2>&5
27006 ac_status=$?
27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008 (exit $ac_status); }; }; then
54ab82b3 27009 wx_cv_func_statvfs=yes
af15babd 27010else
e6cc62c6
VS
27011 echo "$as_me: failed program was:" >&5
27012sed 's/^/| /' conftest.$ac_ext >&5
27013
27014wx_cv_func_statvfs=no
27015
247f5006 27016fi
e6cc62c6 27017rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27018
e6cc62c6
VS
27019fi
27020echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27021echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27022
4f14bcd8 27023 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27024
27025
27026 ac_ext=cc
54ab82b3 27027ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27031
27032
e6cc62c6
VS
27033 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27034echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27035if test "${wx_cv_type_statvfs_t+set}" = set; then
27036 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27037else
e6cc62c6
VS
27038 cat >conftest.$ac_ext <<_ACEOF
27039#line $LINENO "configure"
27040/* confdefs.h. */
27041_ACEOF
27042cat confdefs.h >>conftest.$ac_ext
27043cat >>conftest.$ac_ext <<_ACEOF
27044/* end confdefs.h. */
54ab82b3
VZ
27045
27046 #include <sys/statvfs.h>
e6cc62c6
VS
27047
27048int
27049main ()
27050{
54ab82b3
VZ
27051
27052 long l;
27053 statvfs_t fs;
27054 statvfs("/", &fs);
27055 l = fs.f_bsize;
27056 l += fs.f_blocks;
27057 l += fs.f_bavail;
e6cc62c6
VS
27058
27059 ;
27060 return 0;
27061}
27062_ACEOF
27063rm -f conftest.$ac_objext
27064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27065 (eval $ac_compile) 2>&5
27066 ac_status=$?
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } &&
27069 { ac_try='test -s conftest.$ac_objext'
27070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071 (eval $ac_try) 2>&5
27072 ac_status=$?
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); }; }; then
54ab82b3
VZ
27075 wx_cv_type_statvfs_t=statvfs_t
27076else
e6cc62c6
VS
27077 echo "$as_me: failed program was:" >&5
27078sed 's/^/| /' conftest.$ac_ext >&5
27079
27080
27081 cat >conftest.$ac_ext <<_ACEOF
27082#line $LINENO "configure"
27083/* confdefs.h. */
27084_ACEOF
27085cat confdefs.h >>conftest.$ac_ext
27086cat >>conftest.$ac_ext <<_ACEOF
27087/* end confdefs.h. */
54ab82b3
VZ
27088
27089 #include <sys/statvfs.h>
e6cc62c6
VS
27090
27091int
27092main ()
27093{
54ab82b3
VZ
27094
27095 long l;
65d8ef1e 27096 struct statvfs fs;
54ab82b3
VZ
27097 statvfs("/", &fs);
27098 l = fs.f_bsize;
27099 l += fs.f_blocks;
27100 l += fs.f_bavail;
e6cc62c6
VS
27101
27102 ;
27103 return 0;
27104}
27105_ACEOF
27106rm -f conftest.$ac_objext
27107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27108 (eval $ac_compile) 2>&5
27109 ac_status=$?
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); } &&
27112 { ac_try='test -s conftest.$ac_objext'
27113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114 (eval $ac_try) 2>&5
27115 ac_status=$?
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; }; then
54ab82b3
VZ
27118 wx_cv_type_statvfs_t="struct statvfs"
27119else
e6cc62c6
VS
27120 echo "$as_me: failed program was:" >&5
27121sed 's/^/| /' conftest.$ac_ext >&5
27122
27123wx_cv_type_statvfs_t="unknown"
27124
54ab82b3 27125fi
e6cc62c6
VS
27126rm -f conftest.$ac_objext conftest.$ac_ext
27127
27128
54ab82b3 27129fi
e6cc62c6 27130rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27131
e6cc62c6
VS
27132fi
27133echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27134echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27135
27136 ac_ext=c
54ab82b3 27137ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27140ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27141
27142
27143 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27144 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27145#define HAVE_STATVFS 1
e6cc62c6 27146_ACEOF
af15babd 27147
54ab82b3 27148 fi
4f14bcd8 27149 else
54ab82b3 27150 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27151 fi
27152fi
af15babd 27153
54ab82b3 27154if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27155 cat >>confdefs.h <<_ACEOF
54ab82b3 27156#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27157_ACEOF
54ab82b3
VZ
27158
27159else
e6cc62c6
VS
27160 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27161echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27162fi
27163
4f14bcd8 27164if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27165
27166
27167for ac_func in fcntl flock
af15babd 27168do
e6cc62c6
VS
27169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27170echo "$as_me:$LINENO: checking for $ac_func" >&5
27171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27172if eval "test \"\${$as_ac_var+set}\" = set"; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174else
27175 cat >conftest.$ac_ext <<_ACEOF
27176#line $LINENO "configure"
27177/* confdefs.h. */
27178_ACEOF
27179cat confdefs.h >>conftest.$ac_ext
27180cat >>conftest.$ac_ext <<_ACEOF
27181/* end confdefs.h. */
af15babd 27182/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27183 which can conflict with char $ac_func (); below.
27184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27185 <limits.h> exists even on freestanding compilers. */
27186#ifdef __STDC__
27187# include <limits.h>
27188#else
27189# include <assert.h>
27190#endif
af15babd 27191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27192#ifdef __cplusplus
27193extern "C"
27194{
27195#endif
af15babd 27196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27197 builtin and then its argument prototype would still apply. */
27198char $ac_func ();
af15babd
VZ
27199/* The GNU C library defines this for functions which it implements
27200 to always fail with ENOSYS. Some functions are actually named
27201 something starting with __ and the normal name is an alias. */
27202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27203choke me
27204#else
e6cc62c6
VS
27205char (*f) () = $ac_func;
27206#endif
27207#ifdef __cplusplus
27208}
af15babd
VZ
27209#endif
27210
e6cc62c6
VS
27211int
27212main ()
27213{
27214return f != $ac_func;
27215 ;
27216 return 0;
27217}
27218_ACEOF
27219rm -f conftest.$ac_objext conftest$ac_exeext
27220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27221 (eval $ac_link) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } &&
27225 { ac_try='test -s conftest$ac_exeext'
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 eval "$as_ac_var=yes"
27232else
27233 echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236eval "$as_ac_var=no"
27237fi
27238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27239fi
27240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27242if test `eval echo '${'$as_ac_var'}'` = yes; then
27243 cat >>confdefs.h <<_ACEOF
27244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27245_ACEOF
4f14bcd8 27246 break
af15babd
VZ
27247fi
27248done
27249
8284b0c5 27250
4f14bcd8 27251 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27252 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27253echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27254 wxUSE_SNGLINST_CHECKER=no
27255 fi
27256fi
af15babd 27257
e6cc62c6 27258
4f14bcd8 27259for ac_func in timegm
af15babd 27260do
e6cc62c6
VS
27261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27262echo "$as_me:$LINENO: checking for $ac_func" >&5
27263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27264if eval "test \"\${$as_ac_var+set}\" = set"; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267 cat >conftest.$ac_ext <<_ACEOF
27268#line $LINENO "configure"
27269/* confdefs.h. */
27270_ACEOF
27271cat confdefs.h >>conftest.$ac_ext
27272cat >>conftest.$ac_ext <<_ACEOF
27273/* end confdefs.h. */
af15babd 27274/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27275 which can conflict with char $ac_func (); below.
27276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27277 <limits.h> exists even on freestanding compilers. */
27278#ifdef __STDC__
27279# include <limits.h>
27280#else
27281# include <assert.h>
27282#endif
af15babd 27283/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27284#ifdef __cplusplus
27285extern "C"
27286{
27287#endif
af15babd 27288/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27289 builtin and then its argument prototype would still apply. */
27290char $ac_func ();
af15babd
VZ
27291/* The GNU C library defines this for functions which it implements
27292 to always fail with ENOSYS. Some functions are actually named
27293 something starting with __ and the normal name is an alias. */
247f5006
VZ
27294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27295choke me
27296#else
e6cc62c6
VS
27297char (*f) () = $ac_func;
27298#endif
27299#ifdef __cplusplus
27300}
247f5006
VZ
27301#endif
27302
e6cc62c6
VS
27303int
27304main ()
27305{
27306return f != $ac_func;
27307 ;
27308 return 0;
27309}
27310_ACEOF
27311rm -f conftest.$ac_objext conftest$ac_exeext
27312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27313 (eval $ac_link) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } &&
27317 { ac_try='test -s conftest$ac_exeext'
27318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27319 (eval $ac_try) 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
27323 eval "$as_ac_var=yes"
27324else
27325 echo "$as_me: failed program was:" >&5
27326sed 's/^/| /' conftest.$ac_ext >&5
27327
27328eval "$as_ac_var=no"
27329fi
27330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27331fi
27332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27334if test `eval echo '${'$as_ac_var'}'` = yes; then
27335 cat >>confdefs.h <<_ACEOF
27336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27337_ACEOF
703e0a69 27338
af15babd
VZ
27339fi
27340done
27341
8284b0c5 27342
e6cc62c6
VS
27343
27344
4f14bcd8 27345for ac_func in putenv setenv
10f2d63a 27346do
e6cc62c6
VS
27347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27348echo "$as_me:$LINENO: checking for $ac_func" >&5
27349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27350if eval "test \"\${$as_ac_var+set}\" = set"; then
27351 echo $ECHO_N "(cached) $ECHO_C" >&6
27352else
27353 cat >conftest.$ac_ext <<_ACEOF
27354#line $LINENO "configure"
27355/* confdefs.h. */
27356_ACEOF
27357cat confdefs.h >>conftest.$ac_ext
27358cat >>conftest.$ac_ext <<_ACEOF
27359/* end confdefs.h. */
af15babd 27360/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27361 which can conflict with char $ac_func (); below.
27362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27363 <limits.h> exists even on freestanding compilers. */
27364#ifdef __STDC__
27365# include <limits.h>
27366#else
27367# include <assert.h>
27368#endif
af15babd 27369/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27370#ifdef __cplusplus
27371extern "C"
27372{
27373#endif
af15babd 27374/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27375 builtin and then its argument prototype would still apply. */
27376char $ac_func ();
af15babd
VZ
27377/* The GNU C library defines this for functions which it implements
27378 to always fail with ENOSYS. Some functions are actually named
27379 something starting with __ and the normal name is an alias. */
27380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27381choke me
27382#else
e6cc62c6
VS
27383char (*f) () = $ac_func;
27384#endif
27385#ifdef __cplusplus
27386}
af15babd
VZ
27387#endif
27388
e6cc62c6
VS
27389int
27390main ()
27391{
27392return f != $ac_func;
27393 ;
27394 return 0;
27395}
27396_ACEOF
27397rm -f conftest.$ac_objext conftest$ac_exeext
27398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27399 (eval $ac_link) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
27403 { ac_try='test -s conftest$ac_exeext'
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 eval "$as_ac_var=yes"
27410else
27411 echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
27414eval "$as_ac_var=no"
27415fi
27416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27417fi
27418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27420if test `eval echo '${'$as_ac_var'}'` = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27423_ACEOF
4f14bcd8 27424 break
af15babd 27425fi
af15babd
VZ
27426done
27427
8284b0c5 27428
4f14bcd8
GD
27429HAVE_SOME_SLEEP_FUNC=0
27430if test "$USE_BEOS" = 1; then
e6cc62c6 27431 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27432#define HAVE_SLEEP 1
e6cc62c6 27433_ACEOF
af15babd 27434
4f14bcd8 27435 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27436fi
27437
4f14bcd8 27438if test "$USE_DARWIN" = 1; then
e6cc62c6 27439 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27440#define HAVE_USLEEP 1
e6cc62c6 27441_ACEOF
10f2d63a 27442
4f14bcd8 27443 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27444fi
27445
4f14bcd8
GD
27446if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27447 POSIX4_LINK=
e6cc62c6
VS
27448
27449for ac_func in nanosleep
4f14bcd8 27450do
e6cc62c6
VS
27451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27452echo "$as_me:$LINENO: checking for $ac_func" >&5
27453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27454if eval "test \"\${$as_ac_var+set}\" = set"; then
27455 echo $ECHO_N "(cached) $ECHO_C" >&6
27456else
27457 cat >conftest.$ac_ext <<_ACEOF
27458#line $LINENO "configure"
27459/* confdefs.h. */
27460_ACEOF
27461cat confdefs.h >>conftest.$ac_ext
27462cat >>conftest.$ac_ext <<_ACEOF
27463/* end confdefs.h. */
4f14bcd8 27464/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27465 which can conflict with char $ac_func (); below.
27466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27467 <limits.h> exists even on freestanding compilers. */
27468#ifdef __STDC__
27469# include <limits.h>
27470#else
27471# include <assert.h>
27472#endif
10f2d63a 27473/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27474#ifdef __cplusplus
27475extern "C"
27476{
27477#endif
10f2d63a 27478/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27479 builtin and then its argument prototype would still apply. */
27480char $ac_func ();
4f14bcd8
GD
27481/* The GNU C library defines this for functions which it implements
27482 to always fail with ENOSYS. Some functions are actually named
27483 something starting with __ and the normal name is an alias. */
27484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27485choke me
27486#else
e6cc62c6
VS
27487char (*f) () = $ac_func;
27488#endif
27489#ifdef __cplusplus
27490}
4f14bcd8
GD
27491#endif
27492
e6cc62c6
VS
27493int
27494main ()
27495{
27496return f != $ac_func;
27497 ;
27498 return 0;
27499}
27500_ACEOF
27501rm -f conftest.$ac_objext conftest$ac_exeext
27502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27503 (eval $ac_link) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } &&
27507 { ac_try='test -s conftest$ac_exeext'
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
27513 eval "$as_ac_var=yes"
27514else
27515 echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
27518eval "$as_ac_var=no"
27519fi
27520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27521fi
27522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27524if test `eval echo '${'$as_ac_var'}'` = yes; then
27525 cat >>confdefs.h <<_ACEOF
27526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27527_ACEOF
27528 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27529#define HAVE_NANOSLEEP 1
e6cc62c6 27530_ACEOF
4f14bcd8 27531
10f2d63a 27532else
e6cc62c6
VS
27533
27534 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27535echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27536if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27538else
e6cc62c6 27539 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27540LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27541cat >conftest.$ac_ext <<_ACEOF
27542#line $LINENO "configure"
27543/* confdefs.h. */
27544_ACEOF
27545cat confdefs.h >>conftest.$ac_ext
27546cat >>conftest.$ac_ext <<_ACEOF
27547/* end confdefs.h. */
27548
10f2d63a 27549/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27550#ifdef __cplusplus
27551extern "C"
27552#endif
10f2d63a 27553/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27554 builtin and then its argument prototype would still apply. */
27555char nanosleep ();
27556int
27557main ()
27558{
27559nanosleep ();
27560 ;
27561 return 0;
27562}
27563_ACEOF
27564rm -f conftest.$ac_objext conftest$ac_exeext
27565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27566 (eval $ac_link) 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; }; then
27576 ac_cv_lib_posix4_nanosleep=yes
27577else
27578 echo "$as_me: failed program was:" >&5
27579sed 's/^/| /' conftest.$ac_ext >&5
27580
27581ac_cv_lib_posix4_nanosleep=no
27582fi
27583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27584LIBS=$ac_check_lib_save_LIBS
27585fi
27586echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27587echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27588if test $ac_cv_lib_posix4_nanosleep = yes; then
27589
27590 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27591#define HAVE_NANOSLEEP 1
e6cc62c6 27592_ACEOF
4f14bcd8 27593
3d63bc3a 27594 POSIX4_LINK=" -lposix4"
e6cc62c6 27595
10f2d63a 27596else
10f2d63a 27597
e6cc62c6
VS
27598
27599for ac_func in usleep
4f14bcd8 27600do
e6cc62c6
VS
27601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27602echo "$as_me:$LINENO: checking for $ac_func" >&5
27603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27604if eval "test \"\${$as_ac_var+set}\" = set"; then
27605 echo $ECHO_N "(cached) $ECHO_C" >&6
27606else
27607 cat >conftest.$ac_ext <<_ACEOF
27608#line $LINENO "configure"
27609/* confdefs.h. */
27610_ACEOF
27611cat confdefs.h >>conftest.$ac_ext
27612cat >>conftest.$ac_ext <<_ACEOF
27613/* end confdefs.h. */
4f14bcd8 27614/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27615 which can conflict with char $ac_func (); below.
27616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27617 <limits.h> exists even on freestanding compilers. */
27618#ifdef __STDC__
27619# include <limits.h>
27620#else
27621# include <assert.h>
27622#endif
4f14bcd8 27623/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27624#ifdef __cplusplus
27625extern "C"
27626{
27627#endif
4f14bcd8 27628/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27629 builtin and then its argument prototype would still apply. */
27630char $ac_func ();
4f14bcd8
GD
27631/* The GNU C library defines this for functions which it implements
27632 to always fail with ENOSYS. Some functions are actually named
27633 something starting with __ and the normal name is an alias. */
27634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27635choke me
27636#else
e6cc62c6
VS
27637char (*f) () = $ac_func;
27638#endif
27639#ifdef __cplusplus
27640}
4f14bcd8
GD
27641#endif
27642
e6cc62c6
VS
27643int
27644main ()
27645{
27646return f != $ac_func;
27647 ;
27648 return 0;
27649}
27650_ACEOF
27651rm -f conftest.$ac_objext conftest$ac_exeext
27652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27653 (eval $ac_link) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -s conftest$ac_exeext'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; }; then
27663 eval "$as_ac_var=yes"
27664else
27665 echo "$as_me: failed program was:" >&5
27666sed 's/^/| /' conftest.$ac_ext >&5
27667
27668eval "$as_ac_var=no"
27669fi
27670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27671fi
27672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27673echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27674if test `eval echo '${'$as_ac_var'}'` = yes; then
27675 cat >>confdefs.h <<_ACEOF
27676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27677_ACEOF
27678 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27679#define HAVE_USLEEP 1
e6cc62c6 27680_ACEOF
4f14bcd8 27681
698dcdb6 27682else
e6cc62c6
VS
27683 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27684echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27685
10f2d63a 27686fi
4f14bcd8 27687done
10f2d63a 27688
e6cc62c6
VS
27689
27690
6232543b 27691fi
10f2d63a 27692
e6cc62c6
VS
27693
27694
1e487827 27695fi
4f14bcd8 27696done
703e0a69 27697
10f2d63a
VZ
27698fi
27699
e6cc62c6
VS
27700
27701
4f14bcd8 27702for ac_func in uname gethostname
70846f0a 27703do
e6cc62c6
VS
27704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27705echo "$as_me:$LINENO: checking for $ac_func" >&5
27706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27707if eval "test \"\${$as_ac_var+set}\" = set"; then
27708 echo $ECHO_N "(cached) $ECHO_C" >&6
27709else
27710 cat >conftest.$ac_ext <<_ACEOF
27711#line $LINENO "configure"
27712/* confdefs.h. */
27713_ACEOF
27714cat confdefs.h >>conftest.$ac_ext
27715cat >>conftest.$ac_ext <<_ACEOF
27716/* end confdefs.h. */
70846f0a 27717/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27718 which can conflict with char $ac_func (); below.
27719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27720 <limits.h> exists even on freestanding compilers. */
27721#ifdef __STDC__
27722# include <limits.h>
27723#else
27724# include <assert.h>
27725#endif
70846f0a 27726/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27727#ifdef __cplusplus
27728extern "C"
27729{
27730#endif
70846f0a 27731/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27732 builtin and then its argument prototype would still apply. */
27733char $ac_func ();
70846f0a
VZ
27734/* The GNU C library defines this for functions which it implements
27735 to always fail with ENOSYS. Some functions are actually named
27736 something starting with __ and the normal name is an alias. */
27737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27738choke me
27739#else
e6cc62c6
VS
27740char (*f) () = $ac_func;
27741#endif
27742#ifdef __cplusplus
27743}
70846f0a
VZ
27744#endif
27745
e6cc62c6
VS
27746int
27747main ()
27748{
27749return f != $ac_func;
27750 ;
27751 return 0;
27752}
27753_ACEOF
27754rm -f conftest.$ac_objext conftest$ac_exeext
27755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756 (eval $ac_link) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; }; then
27766 eval "$as_ac_var=yes"
27767else
27768 echo "$as_me: failed program was:" >&5
27769sed 's/^/| /' conftest.$ac_ext >&5
27770
27771eval "$as_ac_var=no"
27772fi
27773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27774fi
27775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27777if test `eval echo '${'$as_ac_var'}'` = yes; then
27778 cat >>confdefs.h <<_ACEOF
27779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27780_ACEOF
4f14bcd8 27781 break
70846f0a
VZ
27782fi
27783done
27784
8284b0c5
MB
27785
27786
e6cc62c6
VS
27787
27788ac_ext=cc
4f14bcd8 27789ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27793
8284b0c5 27794
4f14bcd8
GD
27795
27796for ac_func in strtok_r
10f2d63a 27797do
e6cc62c6
VS
27798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27799echo "$as_me:$LINENO: checking for $ac_func" >&5
27800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27801if eval "test \"\${$as_ac_var+set}\" = set"; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27803else
27804 cat >conftest.$ac_ext <<_ACEOF
27805#line $LINENO "configure"
27806/* confdefs.h. */
27807_ACEOF
27808cat confdefs.h >>conftest.$ac_ext
27809cat >>conftest.$ac_ext <<_ACEOF
27810/* end confdefs.h. */
4f14bcd8 27811/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27812 which can conflict with char $ac_func (); below.
27813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27814 <limits.h> exists even on freestanding compilers. */
27815#ifdef __STDC__
27816# include <limits.h>
27817#else
27818# include <assert.h>
27819#endif
4f14bcd8
GD
27820/* Override any gcc2 internal prototype to avoid an error. */
27821#ifdef __cplusplus
27822extern "C"
e6cc62c6 27823{
4f14bcd8
GD
27824#endif
27825/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27826 builtin and then its argument prototype would still apply. */
27827char $ac_func ();
4f14bcd8
GD
27828/* The GNU C library defines this for functions which it implements
27829 to always fail with ENOSYS. Some functions are actually named
27830 something starting with __ and the normal name is an alias. */
27831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27832choke me
27833#else
e6cc62c6
VS
27834char (*f) () = $ac_func;
27835#endif
27836#ifdef __cplusplus
27837}
4f14bcd8
GD
27838#endif
27839
e6cc62c6
VS
27840int
27841main ()
27842{
27843return f != $ac_func;
27844 ;
27845 return 0;
27846}
27847_ACEOF
27848rm -f conftest.$ac_objext conftest$ac_exeext
27849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27850 (eval $ac_link) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
27854 { ac_try='test -s conftest$ac_exeext'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860 eval "$as_ac_var=yes"
27861else
27862 echo "$as_me: failed program was:" >&5
27863sed 's/^/| /' conftest.$ac_ext >&5
27864
27865eval "$as_ac_var=no"
27866fi
27867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27868fi
27869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27871if test `eval echo '${'$as_ac_var'}'` = yes; then
27872 cat >>confdefs.h <<_ACEOF
27873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27874_ACEOF
4f14bcd8 27875
10f2d63a
VZ
27876fi
27877done
27878
8284b0c5 27879
4f14bcd8 27880ac_ext=c
4f14bcd8 27881ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27884ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27885
5c6fa7d2 27886
8284b0c5 27887INET_LINK=
e6cc62c6 27888
4f14bcd8
GD
27889for ac_func in inet_addr
27890do
e6cc62c6
VS
27891as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27892echo "$as_me:$LINENO: checking for $ac_func" >&5
27893echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27894if eval "test \"\${$as_ac_var+set}\" = set"; then
27895 echo $ECHO_N "(cached) $ECHO_C" >&6
27896else
27897 cat >conftest.$ac_ext <<_ACEOF
27898#line $LINENO "configure"
27899/* confdefs.h. */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h. */
4f14bcd8 27904/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27905 which can conflict with char $ac_func (); below.
27906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27907 <limits.h> exists even on freestanding compilers. */
27908#ifdef __STDC__
27909# include <limits.h>
27910#else
27911# include <assert.h>
27912#endif
10f2d63a 27913/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27914#ifdef __cplusplus
27915extern "C"
27916{
27917#endif
10f2d63a 27918/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27919 builtin and then its argument prototype would still apply. */
27920char $ac_func ();
4f14bcd8
GD
27921/* The GNU C library defines this for functions which it implements
27922 to always fail with ENOSYS. Some functions are actually named
27923 something starting with __ and the normal name is an alias. */
27924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27925choke me
27926#else
e6cc62c6
VS
27927char (*f) () = $ac_func;
27928#endif
27929#ifdef __cplusplus
27930}
4f14bcd8
GD
27931#endif
27932
e6cc62c6
VS
27933int
27934main ()
27935{
27936return f != $ac_func;
27937 ;
27938 return 0;
27939}
27940_ACEOF
27941rm -f conftest.$ac_objext conftest$ac_exeext
27942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27943 (eval $ac_link) 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); } &&
27947 { ac_try='test -s conftest$ac_exeext'
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; }; then
27953 eval "$as_ac_var=yes"
27954else
27955 echo "$as_me: failed program was:" >&5
27956sed 's/^/| /' conftest.$ac_ext >&5
27957
27958eval "$as_ac_var=no"
27959fi
27960rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27961fi
27962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27964if test `eval echo '${'$as_ac_var'}'` = yes; then
27965 cat >>confdefs.h <<_ACEOF
27966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27967_ACEOF
27968 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27969#define HAVE_INET_ADDR 1
e6cc62c6 27970_ACEOF
10f2d63a
VZ
27971
27972else
e6cc62c6
VS
27973
27974 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
27975echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27976if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27978else
e6cc62c6 27979 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27980LIBS="-lnsl $LIBS"
e6cc62c6
VS
27981cat >conftest.$ac_ext <<_ACEOF
27982#line $LINENO "configure"
27983/* confdefs.h. */
27984_ACEOF
27985cat confdefs.h >>conftest.$ac_ext
27986cat >>conftest.$ac_ext <<_ACEOF
27987/* end confdefs.h. */
27988
10f2d63a 27989/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27990#ifdef __cplusplus
27991extern "C"
27992#endif
10f2d63a 27993/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27994 builtin and then its argument prototype would still apply. */
27995char inet_addr ();
27996int
27997main ()
27998{
27999inet_addr ();
28000 ;
28001 return 0;
28002}
28003_ACEOF
28004rm -f conftest.$ac_objext conftest$ac_exeext
28005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28006 (eval $ac_link) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); } &&
28010 { ac_try='test -s conftest$ac_exeext'
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 ac_cv_lib_nsl_inet_addr=yes
28017else
28018 echo "$as_me: failed program was:" >&5
28019sed 's/^/| /' conftest.$ac_ext >&5
28020
28021ac_cv_lib_nsl_inet_addr=no
28022fi
28023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28024LIBS=$ac_check_lib_save_LIBS
28025fi
28026echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28027echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28028if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28029 INET_LINK="nsl"
10f2d63a 28030else
e6cc62c6
VS
28031 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28032echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28033if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28035else
e6cc62c6 28036 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28037LIBS="-lresolv $LIBS"
e6cc62c6
VS
28038cat >conftest.$ac_ext <<_ACEOF
28039#line $LINENO "configure"
28040/* confdefs.h. */
28041_ACEOF
28042cat confdefs.h >>conftest.$ac_ext
28043cat >>conftest.$ac_ext <<_ACEOF
28044/* end confdefs.h. */
28045
5c6fa7d2 28046/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28047#ifdef __cplusplus
28048extern "C"
28049#endif
5c6fa7d2 28050/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28051 builtin and then its argument prototype would still apply. */
28052char inet_addr ();
28053int
28054main ()
28055{
28056inet_addr ();
28057 ;
28058 return 0;
28059}
28060_ACEOF
28061rm -f conftest.$ac_objext conftest$ac_exeext
28062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063 (eval $ac_link) 2>&5
28064 ac_status=$?
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } &&
28067 { ac_try='test -s conftest$ac_exeext'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
28073 ac_cv_lib_resolv_inet_addr=yes
28074else
28075 echo "$as_me: failed program was:" >&5
28076sed 's/^/| /' conftest.$ac_ext >&5
28077
28078ac_cv_lib_resolv_inet_addr=no
28079fi
28080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28081LIBS=$ac_check_lib_save_LIBS
28082fi
28083echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28084echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28085if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28086 INET_LINK="resolv"
698dcdb6 28087else
e6cc62c6
VS
28088 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28089echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28090if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28092else
e6cc62c6 28093 ac_check_lib_save_LIBS=$LIBS
3c011993 28094LIBS="-lsocket $LIBS"
e6cc62c6
VS
28095cat >conftest.$ac_ext <<_ACEOF
28096#line $LINENO "configure"
28097/* confdefs.h. */
28098_ACEOF
28099cat confdefs.h >>conftest.$ac_ext
28100cat >>conftest.$ac_ext <<_ACEOF
28101/* end confdefs.h. */
28102
3c011993 28103/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28104#ifdef __cplusplus
28105extern "C"
28106#endif
3c011993 28107/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28108 builtin and then its argument prototype would still apply. */
28109char inet_addr ();
28110int
28111main ()
28112{
28113inet_addr ();
28114 ;
28115 return 0;
28116}
28117_ACEOF
28118rm -f conftest.$ac_objext conftest$ac_exeext
28119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120 (eval $ac_link) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
28124 { ac_try='test -s conftest$ac_exeext'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 ac_cv_lib_socket_inet_addr=yes
28131else
28132 echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135ac_cv_lib_socket_inet_addr=no
28136fi
28137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28138LIBS=$ac_check_lib_save_LIBS
28139fi
28140echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28141echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28142if test $ac_cv_lib_socket_inet_addr = yes; then
28143 INET_LINK="socket"
4f14bcd8 28144
8284b0c5 28145fi
e6cc62c6 28146
698dcdb6 28147
7b4a847f 28148fi
e6cc62c6
VS
28149
28150
a0b9e27f 28151fi
579d8138 28152
e6cc62c6
VS
28153
28154
5c6fa7d2 28155fi
e6cc62c6
VS
28156done
28157
28158
28159
28160for ac_func in inet_aton
28161do
28162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28163echo "$as_me:$LINENO: checking for $ac_func" >&5
28164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28165if eval "test \"\${$as_ac_var+set}\" = set"; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167else
28168 cat >conftest.$ac_ext <<_ACEOF
28169#line $LINENO "configure"
28170/* confdefs.h. */
28171_ACEOF
28172cat confdefs.h >>conftest.$ac_ext
28173cat >>conftest.$ac_ext <<_ACEOF
28174/* end confdefs.h. */
28175/* System header to define __stub macros and hopefully few prototypes,
28176 which can conflict with char $ac_func (); below.
28177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28178 <limits.h> exists even on freestanding compilers. */
28179#ifdef __STDC__
28180# include <limits.h>
28181#else
28182# include <assert.h>
28183#endif
28184/* Override any gcc2 internal prototype to avoid an error. */
28185#ifdef __cplusplus
28186extern "C"
28187{
28188#endif
28189/* We use char because int might match the return type of a gcc2
28190 builtin and then its argument prototype would still apply. */
28191char $ac_func ();
28192/* The GNU C library defines this for functions which it implements
28193 to always fail with ENOSYS. Some functions are actually named
28194 something starting with __ and the normal name is an alias. */
28195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28196choke me
28197#else
28198char (*f) () = $ac_func;
28199#endif
28200#ifdef __cplusplus
28201}
28202#endif
28203
28204int
28205main ()
28206{
28207return f != $ac_func;
28208 ;
28209 return 0;
28210}
28211_ACEOF
28212rm -f conftest.$ac_objext conftest$ac_exeext
28213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28214 (eval $ac_link) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } &&
28218 { ac_try='test -s conftest$ac_exeext'
28219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 (eval $ac_try) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
28224 eval "$as_ac_var=yes"
28225else
28226 echo "$as_me: failed program was:" >&5
28227sed 's/^/| /' conftest.$ac_ext >&5
28228
28229eval "$as_ac_var=no"
28230fi
28231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28232fi
28233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28234echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28235if test `eval echo '${'$as_ac_var'}'` = yes; then
28236 cat >>confdefs.h <<_ACEOF
28237#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28238_ACEOF
28239 cat >>confdefs.h <<\_ACEOF
28240#define HAVE_INET_ATON 1
28241_ACEOF
28242
28243else
28244
28245 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28246echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28247echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28248if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28250else
28251 ac_check_lib_save_LIBS=$LIBS
28252LIBS="-l$INET_LINK $LIBS"
28253cat >conftest.$ac_ext <<_ACEOF
28254#line $LINENO "configure"
28255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
28260
28261/* Override any gcc2 internal prototype to avoid an error. */
28262#ifdef __cplusplus
28263extern "C"
28264#endif
28265/* We use char because int might match the return type of a gcc2
28266 builtin and then its argument prototype would still apply. */
28267char inet_aton ();
28268int
28269main ()
28270{
28271inet_aton ();
28272 ;
28273 return 0;
28274}
28275_ACEOF
28276rm -f conftest.$ac_objext conftest$ac_exeext
28277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28278 (eval $ac_link) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } &&
28282 { ac_try='test -s conftest$ac_exeext'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
28288 eval "$as_ac_Lib=yes"
28289else
28290 echo "$as_me: failed program was:" >&5
28291sed 's/^/| /' conftest.$ac_ext >&5
28292
28293eval "$as_ac_Lib=no"
28294fi
28295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28296LIBS=$ac_check_lib_save_LIBS
28297fi
28298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28299echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28300if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28301 cat >>confdefs.h <<\_ACEOF
28302#define HAVE_INET_ATON 1
28303_ACEOF
52127426 28304
a0b9e27f 28305fi
247f5006 28306
8284b0c5 28307
698dcdb6 28308fi
4f14bcd8
GD
28309done
28310
8284b0c5 28311
e6cc62c6
VS
28312if test "x$INET_LINK" != "x"; then
28313 cat >>confdefs.h <<\_ACEOF
28314#define HAVE_INET_ADDR 1
28315_ACEOF
28316
28317 INET_LINK=" -l$INET_LINK"
28318fi
28319
28320fi
a0b9e27f 28321
a0b9e27f 28322
4f14bcd8 28323
e6cc62c6
VS
28324ESD_LINK=
28325if test "${ac_cv_header_esd_h+set}" = set; then
28326 echo "$as_me:$LINENO: checking for esd.h" >&5
28327echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28328if test "${ac_cv_header_esd_h+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28330fi
28331echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28332echo "${ECHO_T}$ac_cv_header_esd_h" >&6
28333else
28334 # Is the header compilable?
28335echo "$as_me:$LINENO: checking esd.h usability" >&5
28336echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
28337cat >conftest.$ac_ext <<_ACEOF
28338#line $LINENO "configure"
28339/* confdefs.h. */
28340_ACEOF
28341cat confdefs.h >>conftest.$ac_ext
28342cat >>conftest.$ac_ext <<_ACEOF
28343/* end confdefs.h. */
28344$ac_includes_default
28345#include <esd.h>
28346_ACEOF
28347rm -f conftest.$ac_objext
28348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28349 (eval $ac_compile) 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); } &&
28353 { ac_try='test -s conftest.$ac_objext'
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28356 ac_status=$?
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; }; then
28359 ac_header_compiler=yes
28360else
28361 echo "$as_me: failed program was:" >&5
28362sed 's/^/| /' conftest.$ac_ext >&5
28363
28364ac_header_compiler=no
28365fi
28366rm -f conftest.$ac_objext conftest.$ac_ext
28367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28368echo "${ECHO_T}$ac_header_compiler" >&6
28369
28370# Is the header present?
28371echo "$as_me:$LINENO: checking esd.h presence" >&5
28372echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
28373cat >conftest.$ac_ext <<_ACEOF
28374#line $LINENO "configure"
28375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
28380#include <esd.h>
28381_ACEOF
28382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28384 ac_status=$?
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } >/dev/null; then
28390 if test -s conftest.err; then
28391 ac_cpp_err=$ac_c_preproc_warn_flag
28392 else
28393 ac_cpp_err=
28394 fi
a0b9e27f 28395else
e6cc62c6
VS
28396 ac_cpp_err=yes
28397fi
28398if test -z "$ac_cpp_err"; then
28399 ac_header_preproc=yes
28400else
28401 echo "$as_me: failed program was:" >&5
28402sed 's/^/| /' conftest.$ac_ext >&5
28403
28404 ac_header_preproc=no
28405fi
28406rm -f conftest.err conftest.$ac_ext
28407echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28408echo "${ECHO_T}$ac_header_preproc" >&6
28409
28410# So? What about this header?
28411case $ac_header_compiler:$ac_header_preproc in
28412 yes:no )
28413 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28414echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28415 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28416echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28417 (
28418 cat <<\_ASBOX
28419## ------------------------------------ ##
28420## Report this to bug-autoconf@gnu.org. ##
28421## ------------------------------------ ##
28422_ASBOX
28423 ) |
28424 sed "s/^/$as_me: WARNING: /" >&2
28425 ;;
28426 no:yes )
28427 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
28428echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
28429 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
28430echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
28431 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
28432echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
28433 (
28434 cat <<\_ASBOX
28435## ------------------------------------ ##
28436## Report this to bug-autoconf@gnu.org. ##
28437## ------------------------------------ ##
28438_ASBOX
28439 ) |
28440 sed "s/^/$as_me: WARNING: /" >&2
28441 ;;
28442esac
28443echo "$as_me:$LINENO: checking for esd.h" >&5
28444echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
28445if test "${ac_cv_header_esd_h+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28447else
28448 ac_cv_header_esd_h=$ac_header_preproc
a0b9e27f 28449fi
e6cc62c6
VS
28450echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
28451echo "${ECHO_T}$ac_cv_header_esd_h" >&6
a0b9e27f 28452
e6cc62c6
VS
28453fi
28454if test $ac_cv_header_esd_h = yes; then
4f14bcd8 28455
e6cc62c6
VS
28456 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28457echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28458if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28459 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28460else
e6cc62c6
VS
28461 ac_check_lib_save_LIBS=$LIBS
28462LIBS="-lesd $LIBS"
28463cat >conftest.$ac_ext <<_ACEOF
28464#line $LINENO "configure"
28465/* confdefs.h. */
28466_ACEOF
28467cat confdefs.h >>conftest.$ac_ext
28468cat >>conftest.$ac_ext <<_ACEOF
28469/* end confdefs.h. */
28470
6232543b 28471/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28472#ifdef __cplusplus
28473extern "C"
28474#endif
6232543b 28475/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28476 builtin and then its argument prototype would still apply. */
28477char esd_close ();
28478int
28479main ()
28480{
28481esd_close ();
28482 ;
28483 return 0;
28484}
28485_ACEOF
28486rm -f conftest.$ac_objext conftest$ac_exeext
28487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28488 (eval $ac_link) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); } &&
28492 { ac_try='test -s conftest$ac_exeext'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498 ac_cv_lib_esd_esd_close=yes
a0b9e27f 28499else
e6cc62c6
VS
28500 echo "$as_me: failed program was:" >&5
28501sed 's/^/| /' conftest.$ac_ext >&5
4f14bcd8 28502
e6cc62c6 28503ac_cv_lib_esd_esd_close=no
10f2d63a 28504fi
e6cc62c6
VS
28505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28506LIBS=$ac_check_lib_save_LIBS
a0b9e27f 28507fi
e6cc62c6
VS
28508echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28509echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28510if test $ac_cv_lib_esd_esd_close = yes; then
247f5006 28511
e6cc62c6 28512 ESD_LINK="-lesd"
10f2d63a 28513
e6cc62c6 28514fi
8284b0c5 28515
4f14bcd8 28516
6232543b 28517fi
10f2d63a 28518
703e0a69 28519
8284b0c5 28520
e6cc62c6
VS
28521
28522
28523cat >confcache <<\_ACEOF
4f14bcd8
GD
28524# This file is a shell script that caches the results of configure
28525# tests run on this system so they can be shared between configure
e6cc62c6
VS
28526# scripts and configure runs, see configure's option --config-cache.
28527# It is not useful on other systems. If it contains results you don't
28528# want to keep, you may remove or edit it.
4f14bcd8 28529#
e6cc62c6
VS
28530# config.status only pays attention to the cache file if you give it
28531# the --recheck option to rerun configure.
4f14bcd8 28532#
e6cc62c6
VS
28533# `ac_cv_env_foo' variables (set or unset) will be overridden when
28534# loading this file, other *unset* `ac_cv_foo' will be assigned the
28535# following values.
28536
28537_ACEOF
28538
4f14bcd8
GD
28539# The following way of writing the cache mishandles newlines in values,
28540# but we know of no workaround that is simple, portable, and efficient.
28541# So, don't put newlines in cache variables' values.
28542# Ultrix sh set writes to stderr and can't be redirected directly,
28543# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28544{
28545 (set) 2>&1 |
28546 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28547 *ac_space=\ *)
28548 # `set' does not quote correctly, so add quotes (double-quote
28549 # substitution turns \\\\ into \\, and sed turns \\ into \).
28550 sed -n \
28551 "s/'/'\\\\''/g;
28552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28553 ;;
28554 *)
28555 # `set' quotes correctly as required by POSIX, so do not add quotes.
28556 sed -n \
28557 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28558 ;;
28559 esac;
28560} |
28561 sed '
28562 t clear
28563 : clear
28564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28565 t end
28566 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28567 : end' >>confcache
28568if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28569 if test -w $cache_file; then
e6cc62c6
VS
28570 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28571 cat confcache >$cache_file
f6bcfd97 28572 else
4f14bcd8 28573 echo "not updating unwritable cache $cache_file"
f6bcfd97 28574 fi
4f14bcd8
GD
28575fi
28576rm -f confcache
f6bcfd97 28577
8284b0c5 28578
009fead0 28579CPP_MT_FLAG=
4f14bcd8
GD
28580if test "$TOOLKIT" != "MSW"; then
28581
e6cc62c6 28582
7274f1c7 28583 THREADS_LINK=
009fead0 28584 THREADS_CFLAGS=
7274f1c7
RL
28585
28586 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28587 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28588 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28589echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28590 wxUSE_THREADS="no"
28591 fi
4f14bcd8 28592 fi
4f14bcd8 28593
7274f1c7 28594 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28595
28596
009fead0
VZ
28597 THREAD_OPTS="-pthread"
28598 case "${host}" in
28599 *-*-solaris2* | *-*-sunos4* )
28600 if test "x$GCC" = "xyes"; then
126be6b4 28601 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28602 else
28603 THREAD_OPTS="-mt $THREAD_OPTS"
28604 fi
28605 ;;
28606 *-*-freebsd*)
28607 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28608 ;;
17234b26
MB
28609 *-*-darwin* | *-*-cygwin* )
28610 THREAD_OPTS=""
4101db81 28611 ;;
8f4a9a10 28612 *-*-aix*)
009fead0
VZ
28613 THREAD_OPTS="pthreads"
28614 ;;
4f5a7f74
VZ
28615 *-hp-hpux* )
28616 if test "x$GCC" != "xyes"; then
28617 THREAD_OPTS=""
28618 fi
89e3b3e4
VZ
28619 ;;
28620
28621 *-*-irix* )
28622 if test "x$GCC" = "xyes"; then
28623 THREAD_OPTS=""
28624 fi
28625 ;;
28626
28627 *-*-*UnixWare*)
28628 if test "x$GCC" != "xyes"; then
28629 THREAD_OPTS="-Ethread"
28630 fi
28631 ;;
009fead0 28632 esac
4f14bcd8 28633
02a1dfba 28634 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28635
009fead0
VZ
28636 THREADS_OK=no
28637 for flag in $THREAD_OPTS; do
28638 case $flag in
28639 none)
e6cc62c6
VS
28640 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28641echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28642 ;;
698dcdb6 28643
009fead0 28644 -*)
e6cc62c6
VS
28645 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28646echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28647 THREADS_CFLAGS="$flag"
28648 ;;
698dcdb6 28649
009fead0 28650 *)
e6cc62c6
VS
28651 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28652echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28653 THREADS_LINK="-l$flag"
28654 ;;
28655 esac
10f2d63a 28656
009fead0
VZ
28657 save_LIBS="$LIBS"
28658 save_CFLAGS="$CFLAGS"
28659 LIBS="$THREADS_LINK $LIBS"
04727afd 28660 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28661
e6cc62c6
VS
28662 cat >conftest.$ac_ext <<_ACEOF
28663#line $LINENO "configure"
28664/* confdefs.h. */
28665_ACEOF
28666cat confdefs.h >>conftest.$ac_ext
28667cat >>conftest.$ac_ext <<_ACEOF
28668/* end confdefs.h. */
009fead0 28669#include <pthread.h>
e6cc62c6
VS
28670int
28671main ()
28672{
009fead0 28673pthread_create(0,0,0,0);
e6cc62c6
VS
28674 ;
28675 return 0;
28676}
28677_ACEOF
28678rm -f conftest.$ac_objext conftest$ac_exeext
28679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28680 (eval $ac_link) 2>&5
28681 ac_status=$?
28682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28683 (exit $ac_status); } &&
28684 { ac_try='test -s conftest$ac_exeext'
28685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28686 (eval $ac_try) 2>&5
28687 ac_status=$?
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; }; then
009fead0 28690 THREADS_OK=yes
10f2d63a 28691else
e6cc62c6
VS
28692 echo "$as_me: failed program was:" >&5
28693sed 's/^/| /' conftest.$ac_ext >&5
28694
6232543b 28695fi
e6cc62c6 28696rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28697
009fead0
VZ
28698 LIBS="$save_LIBS"
28699 CFLAGS="$save_CFLAGS"
d9b9876f 28700
e6cc62c6
VS
28701 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28702echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28703 if test "x$THREADS_OK" = "xyes"; then
28704 break;
28705 fi
d9b9876f 28706
009fead0
VZ
28707 THREADS_LINK=""
28708 THREADS_CFLAGS=""
28709 done
4f14bcd8 28710
009fead0
VZ
28711 if test "x$THREADS_OK" != "xyes"; then
28712 wxUSE_THREADS=no
e6cc62c6
VS
28713 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28714echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28715 else
db82f09e
VZ
28716 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28717 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28718
e6cc62c6
VS
28719 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28720echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28721 flag=no
28722 case "${host}" in
2b5f62a0
VZ
28723 *-aix*)
28724 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28725 flag="-D_THREAD_SAFE"
28726 ;;
28727 *-freebsd*)
009fead0
VZ
28728 flag="-D_THREAD_SAFE"
28729 ;;
06313569
GD
28730 *-hp-hpux* )
28731 flag="-D_REENTRANT"
4f5a7f74
VZ
28732 if test "x$GCC" != "xyes"; then
28733 flag="$flag -D_RWSTD_MULTI_THREAD"
28734 fi
06313569 28735 ;;
009fead0
VZ
28736 *solaris* | alpha*-osf*)
28737 flag="-D_REENTRANT"
28738 ;;
28739 esac
e6cc62c6
VS
28740 echo "$as_me:$LINENO: result: ${flag}" >&5
28741echo "${ECHO_T}${flag}" >&6
009fead0 28742 if test "x$flag" != xno; then
04727afd 28743 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28744 fi
28745
009fead0 28746 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28747 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28748 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28749 fi
28750 fi
4f14bcd8 28751 fi
4f14bcd8 28752
7274f1c7 28753 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28754
28755for ac_func in thr_setconcurrency
4f14bcd8 28756do
e6cc62c6
VS
28757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28758echo "$as_me:$LINENO: checking for $ac_func" >&5
28759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28760if eval "test \"\${$as_ac_var+set}\" = set"; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28762else
28763 cat >conftest.$ac_ext <<_ACEOF
28764#line $LINENO "configure"
28765/* confdefs.h. */
28766_ACEOF
28767cat confdefs.h >>conftest.$ac_ext
28768cat >>conftest.$ac_ext <<_ACEOF
28769/* end confdefs.h. */
4f14bcd8 28770/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28771 which can conflict with char $ac_func (); below.
28772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28773 <limits.h> exists even on freestanding compilers. */
28774#ifdef __STDC__
28775# include <limits.h>
28776#else
28777# include <assert.h>
28778#endif
4f14bcd8 28779/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28780#ifdef __cplusplus
28781extern "C"
28782{
28783#endif
4f14bcd8 28784/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28785 builtin and then its argument prototype would still apply. */
28786char $ac_func ();
4f14bcd8
GD
28787/* The GNU C library defines this for functions which it implements
28788 to always fail with ENOSYS. Some functions are actually named
28789 something starting with __ and the normal name is an alias. */
28790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28791choke me
28792#else
e6cc62c6
VS
28793char (*f) () = $ac_func;
28794#endif
28795#ifdef __cplusplus
28796}
4f14bcd8
GD
28797#endif
28798
e6cc62c6
VS
28799int
28800main ()
28801{
28802return f != $ac_func;
28803 ;
28804 return 0;
28805}
28806_ACEOF
28807rm -f conftest.$ac_objext conftest$ac_exeext
28808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28809 (eval $ac_link) 2>&5
28810 ac_status=$?
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); } &&
28813 { ac_try='test -s conftest$ac_exeext'
28814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815 (eval $ac_try) 2>&5
28816 ac_status=$?
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 (exit $ac_status); }; }; then
28819 eval "$as_ac_var=yes"
28820else
28821 echo "$as_me: failed program was:" >&5
28822sed 's/^/| /' conftest.$ac_ext >&5
28823
28824eval "$as_ac_var=no"
28825fi
28826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28827fi
28828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28830if test `eval echo '${'$as_ac_var'}'` = yes; then
28831 cat >>confdefs.h <<_ACEOF
28832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28833_ACEOF
698dcdb6 28834
10f2d63a 28835fi
4f14bcd8 28836done
10f2d63a 28837
8284b0c5 28838
e6cc62c6
VS
28839
28840for ac_header in sched.h
4f14bcd8 28841do
e6cc62c6
VS
28842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28843if eval "test \"\${$as_ac_Header+set}\" = set"; then
28844 echo "$as_me:$LINENO: checking for $ac_header" >&5
28845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28846if eval "test \"\${$as_ac_Header+set}\" = set"; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28848fi
28849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28851else
28852 # Is the header compilable?
28853echo "$as_me:$LINENO: checking $ac_header usability" >&5
28854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28855cat >conftest.$ac_ext <<_ACEOF
28856#line $LINENO "configure"
28857/* confdefs.h. */
28858_ACEOF
28859cat confdefs.h >>conftest.$ac_ext
28860cat >>conftest.$ac_ext <<_ACEOF
28861/* end confdefs.h. */
28862$ac_includes_default
28863#include <$ac_header>
28864_ACEOF
28865rm -f conftest.$ac_objext
28866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28867 (eval $ac_compile) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); } &&
28871 { ac_try='test -s conftest.$ac_objext'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; }; then
28877 ac_header_compiler=yes
28878else
28879 echo "$as_me: failed program was:" >&5
28880sed 's/^/| /' conftest.$ac_ext >&5
28881
28882ac_header_compiler=no
28883fi
28884rm -f conftest.$ac_objext conftest.$ac_ext
28885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28886echo "${ECHO_T}$ac_header_compiler" >&6
28887
28888# Is the header present?
28889echo "$as_me:$LINENO: checking $ac_header presence" >&5
28890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28891cat >conftest.$ac_ext <<_ACEOF
28892#line $LINENO "configure"
28893/* confdefs.h. */
28894_ACEOF
28895cat confdefs.h >>conftest.$ac_ext
28896cat >>conftest.$ac_ext <<_ACEOF
28897/* end confdefs.h. */
28898#include <$ac_header>
28899_ACEOF
28900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28902 ac_status=$?
28903 grep -v '^ *+' conftest.er1 >conftest.err
28904 rm -f conftest.er1
28905 cat conftest.err >&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); } >/dev/null; then
28908 if test -s conftest.err; then
28909 ac_cpp_err=$ac_c_preproc_warn_flag
28910 else
28911 ac_cpp_err=
28912 fi
28913else
28914 ac_cpp_err=yes
28915fi
28916if test -z "$ac_cpp_err"; then
28917 ac_header_preproc=yes
28918else
28919 echo "$as_me: failed program was:" >&5
28920sed 's/^/| /' conftest.$ac_ext >&5
28921
28922 ac_header_preproc=no
28923fi
28924rm -f conftest.err conftest.$ac_ext
28925echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28926echo "${ECHO_T}$ac_header_preproc" >&6
28927
28928# So? What about this header?
28929case $ac_header_compiler:$ac_header_preproc in
28930 yes:no )
28931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28935 (
28936 cat <<\_ASBOX
28937## ------------------------------------ ##
28938## Report this to bug-autoconf@gnu.org. ##
28939## ------------------------------------ ##
28940_ASBOX
28941 ) |
28942 sed "s/^/$as_me: WARNING: /" >&2
28943 ;;
28944 no:yes )
28945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28951 (
28952 cat <<\_ASBOX
28953## ------------------------------------ ##
28954## Report this to bug-autoconf@gnu.org. ##
28955## ------------------------------------ ##
28956_ASBOX
28957 ) |
28958 sed "s/^/$as_me: WARNING: /" >&2
28959 ;;
28960esac
28961echo "$as_me:$LINENO: checking for $ac_header" >&5
28962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28963if eval "test \"\${$as_ac_Header+set}\" = set"; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28965else
28966 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 28967fi
e6cc62c6
VS
28968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28970
10f2d63a 28971fi
e6cc62c6
VS
28972if test `eval echo '${'$as_ac_Header'}'` = yes; then
28973 cat >>confdefs.h <<_ACEOF
28974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28975_ACEOF
28976
f6bcfd97 28977fi
e6cc62c6 28978
4f14bcd8 28979done
f6bcfd97 28980
009fead0 28981 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
28982 echo "$as_me:$LINENO: checking for sched_yield" >&5
28983echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
28984if test "${ac_cv_func_sched_yield+set}" = set; then
28985 echo $ECHO_N "(cached) $ECHO_C" >&6
28986else
28987 cat >conftest.$ac_ext <<_ACEOF
28988#line $LINENO "configure"
28989/* confdefs.h. */
28990_ACEOF
28991cat confdefs.h >>conftest.$ac_ext
28992cat >>conftest.$ac_ext <<_ACEOF
28993/* end confdefs.h. */
009fead0 28994/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28995 which can conflict with char sched_yield (); below.
28996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28997 <limits.h> exists even on freestanding compilers. */
28998#ifdef __STDC__
28999# include <limits.h>
29000#else
29001# include <assert.h>
29002#endif
4f14bcd8 29003/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29004#ifdef __cplusplus
29005extern "C"
29006{
29007#endif
4f14bcd8 29008/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29009 builtin and then its argument prototype would still apply. */
29010char sched_yield ();
009fead0
VZ
29011/* The GNU C library defines this for functions which it implements
29012 to always fail with ENOSYS. Some functions are actually named
29013 something starting with __ and the normal name is an alias. */
29014#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29015choke me
29016#else
e6cc62c6
VS
29017char (*f) () = sched_yield;
29018#endif
29019#ifdef __cplusplus
29020}
009fead0
VZ
29021#endif
29022
e6cc62c6
VS
29023int
29024main ()
29025{
29026return f != sched_yield;
29027 ;
29028 return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext conftest$ac_exeext
29032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29033 (eval $ac_link) 2>&5
29034 ac_status=$?
29035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036 (exit $ac_status); } &&
29037 { ac_try='test -s conftest$ac_exeext'
29038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039 (eval $ac_try) 2>&5
29040 ac_status=$?
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); }; }; then
29043 ac_cv_func_sched_yield=yes
29044else
29045 echo "$as_me: failed program was:" >&5
29046sed 's/^/| /' conftest.$ac_ext >&5
29047
29048ac_cv_func_sched_yield=no
29049fi
29050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29051fi
29052echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29053echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29054if test $ac_cv_func_sched_yield = yes; then
29055 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29056#define HAVE_SCHED_YIELD 1
e6cc62c6 29057_ACEOF
10f2d63a 29058
4f14bcd8 29059else
009fead0 29060
e6cc62c6
VS
29061 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29062echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29063if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29065else
e6cc62c6 29066 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29067LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29068cat >conftest.$ac_ext <<_ACEOF
29069#line $LINENO "configure"
29070/* confdefs.h. */
29071_ACEOF
29072cat confdefs.h >>conftest.$ac_ext
29073cat >>conftest.$ac_ext <<_ACEOF
29074/* end confdefs.h. */
29075
4f14bcd8 29076/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29077#ifdef __cplusplus
29078extern "C"
29079#endif
4f14bcd8 29080/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29081 builtin and then its argument prototype would still apply. */
29082char sched_yield ();
29083int
29084main ()
29085{
29086sched_yield ();
29087 ;
29088 return 0;
29089}
29090_ACEOF
29091rm -f conftest.$ac_objext conftest$ac_exeext
29092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093 (eval $ac_link) 2>&5
29094 ac_status=$?
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); } &&
29097 { ac_try='test -s conftest$ac_exeext'
29098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099 (eval $ac_try) 2>&5
29100 ac_status=$?
29101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102 (exit $ac_status); }; }; then
29103 ac_cv_lib_posix4_sched_yield=yes
29104else
29105 echo "$as_me: failed program was:" >&5
29106sed 's/^/| /' conftest.$ac_ext >&5
29107
29108ac_cv_lib_posix4_sched_yield=no
29109fi
29110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29111LIBS=$ac_check_lib_save_LIBS
29112fi
29113echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29114echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29115if test $ac_cv_lib_posix4_sched_yield = yes; then
29116 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29117#define HAVE_SCHED_YIELD 1
e6cc62c6 29118_ACEOF
3d63bc3a 29119 POSIX4_LINK=" -lposix4"
4f14bcd8 29120else
e6cc62c6
VS
29121 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29122echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29123
54276ccf
VZ
29124fi
29125
e6cc62c6
VS
29126
29127
4f14bcd8 29128fi
698dcdb6 29129
009fead0 29130 fi
10f2d63a 29131
7274f1c7 29132 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29133 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29134echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29135if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29136 echo $ECHO_N "(cached) $ECHO_C" >&6
29137else
29138 cat >conftest.$ac_ext <<_ACEOF
29139#line $LINENO "configure"
29140/* confdefs.h. */
29141_ACEOF
29142cat confdefs.h >>conftest.$ac_ext
29143cat >>conftest.$ac_ext <<_ACEOF
29144/* end confdefs.h. */
009fead0 29145/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29146 which can conflict with char pthread_attr_getschedpolicy (); below.
29147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29148 <limits.h> exists even on freestanding compilers. */
29149#ifdef __STDC__
29150# include <limits.h>
29151#else
29152# include <assert.h>
29153#endif
4f14bcd8 29154/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29155#ifdef __cplusplus
29156extern "C"
29157{
29158#endif
4f14bcd8 29159/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29160 builtin and then its argument prototype would still apply. */
29161char pthread_attr_getschedpolicy ();
009fead0
VZ
29162/* The GNU C library defines this for functions which it implements
29163 to always fail with ENOSYS. Some functions are actually named
29164 something starting with __ and the normal name is an alias. */
29165#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29166choke me
29167#else
e6cc62c6
VS
29168char (*f) () = pthread_attr_getschedpolicy;
29169#endif
29170#ifdef __cplusplus
29171}
009fead0
VZ
29172#endif
29173
e6cc62c6
VS
29174int
29175main ()
29176{
29177return f != pthread_attr_getschedpolicy;
29178 ;
29179 return 0;
29180}
29181_ACEOF
29182rm -f conftest.$ac_objext conftest$ac_exeext
29183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29184 (eval $ac_link) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
29188 { ac_try='test -s conftest$ac_exeext'
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 ac_cv_func_pthread_attr_getschedpolicy=yes
29195else
29196 echo "$as_me: failed program was:" >&5
29197sed 's/^/| /' conftest.$ac_ext >&5
29198
29199ac_cv_func_pthread_attr_getschedpolicy=no
29200fi
29201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29202fi
29203echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29204echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29205if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29206 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29207echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29208if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29210else
29211 cat >conftest.$ac_ext <<_ACEOF
29212#line $LINENO "configure"
29213/* confdefs.h. */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h. */
a0b9e27f 29218/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29219 which can conflict with char pthread_attr_setschedparam (); below.
29220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29221 <limits.h> exists even on freestanding compilers. */
29222#ifdef __STDC__
29223# include <limits.h>
29224#else
29225# include <assert.h>
29226#endif
422107f9 29227/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29228#ifdef __cplusplus
29229extern "C"
29230{
29231#endif
422107f9 29232/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29233 builtin and then its argument prototype would still apply. */
29234char pthread_attr_setschedparam ();
009fead0
VZ
29235/* The GNU C library defines this for functions which it implements
29236 to always fail with ENOSYS. Some functions are actually named
29237 something starting with __ and the normal name is an alias. */
29238#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29239choke me
29240#else
e6cc62c6
VS
29241char (*f) () = pthread_attr_setschedparam;
29242#endif
29243#ifdef __cplusplus
29244}
009fead0
VZ
29245#endif
29246
e6cc62c6
VS
29247int
29248main ()
29249{
29250return f != pthread_attr_setschedparam;
29251 ;
29252 return 0;
29253}
29254_ACEOF
29255rm -f conftest.$ac_objext conftest$ac_exeext
29256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29257 (eval $ac_link) 2>&5
29258 ac_status=$?
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); } &&
29261 { ac_try='test -s conftest$ac_exeext'
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 ac_cv_func_pthread_attr_setschedparam=yes
29268else
29269 echo "$as_me: failed program was:" >&5
29270sed 's/^/| /' conftest.$ac_ext >&5
29271
29272ac_cv_func_pthread_attr_setschedparam=no
29273fi
29274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29275fi
29276echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29277echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29278if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29279 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29280echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29281if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283else
29284 cat >conftest.$ac_ext <<_ACEOF
29285#line $LINENO "configure"
29286/* confdefs.h. */
29287_ACEOF
29288cat confdefs.h >>conftest.$ac_ext
29289cat >>conftest.$ac_ext <<_ACEOF
29290/* end confdefs.h. */
ef33c576 29291/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29292 which can conflict with char sched_get_priority_max (); below.
29293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29294 <limits.h> exists even on freestanding compilers. */
29295#ifdef __STDC__
29296# include <limits.h>
29297#else
29298# include <assert.h>
29299#endif
4f14bcd8 29300/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29301#ifdef __cplusplus
29302extern "C"
29303{
29304#endif
4f14bcd8 29305/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29306 builtin and then its argument prototype would still apply. */
29307char sched_get_priority_max ();
009fead0
VZ
29308/* The GNU C library defines this for functions which it implements
29309 to always fail with ENOSYS. Some functions are actually named
29310 something starting with __ and the normal name is an alias. */
29311#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29312choke me
29313#else
e6cc62c6
VS
29314char (*f) () = sched_get_priority_max;
29315#endif
29316#ifdef __cplusplus
29317}
009fead0
VZ
29318#endif
29319
e6cc62c6
VS
29320int
29321main ()
29322{
29323return f != sched_get_priority_max;
29324 ;
29325 return 0;
29326}
29327_ACEOF
29328rm -f conftest.$ac_objext conftest$ac_exeext
29329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29330 (eval $ac_link) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } &&
29334 { ac_try='test -s conftest$ac_exeext'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
29340 ac_cv_func_sched_get_priority_max=yes
29341else
29342 echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345ac_cv_func_sched_get_priority_max=no
29346fi
29347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29348fi
29349echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29350echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29351if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29352 HAVE_PRIOR_FUNCS=1
29353else
e6cc62c6
VS
29354 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29355echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29356if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29357 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29358else
e6cc62c6 29359 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29360LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29361cat >conftest.$ac_ext <<_ACEOF
29362#line $LINENO "configure"
29363/* confdefs.h. */
29364_ACEOF
29365cat confdefs.h >>conftest.$ac_ext
29366cat >>conftest.$ac_ext <<_ACEOF
29367/* end confdefs.h. */
29368
422107f9 29369/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29370#ifdef __cplusplus
29371extern "C"
29372#endif
422107f9 29373/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29374 builtin and then its argument prototype would still apply. */
29375char sched_get_priority_max ();
29376int
29377main ()
29378{
29379sched_get_priority_max ();
29380 ;
29381 return 0;
29382}
29383_ACEOF
29384rm -f conftest.$ac_objext conftest$ac_exeext
29385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29386 (eval $ac_link) 2>&5
29387 ac_status=$?
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } &&
29390 { ac_try='test -s conftest$ac_exeext'
29391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392 (eval $ac_try) 2>&5
29393 ac_status=$?
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
29396 ac_cv_lib_posix4_sched_get_priority_max=yes
29397else
29398 echo "$as_me: failed program was:" >&5
29399sed 's/^/| /' conftest.$ac_ext >&5
29400
29401ac_cv_lib_posix4_sched_get_priority_max=no
29402fi
29403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29404LIBS=$ac_check_lib_save_LIBS
29405fi
29406echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29407echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29408if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29409
7274f1c7
RL
29410 HAVE_PRIOR_FUNCS=1
29411 POSIX4_LINK=" -lposix4"
e6cc62c6 29412
4f14bcd8 29413fi
463abc64 29414
e6cc62c6 29415
328a083c 29416fi
463abc64 29417
e6cc62c6 29418
7b4a847f 29419fi
579d8138 29420
e6cc62c6 29421
5c6fa7d2 29422fi
52127426 29423
8284b0c5 29424
7274f1c7 29425 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29426 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29427#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29428_ACEOF
463abc64 29429
7274f1c7 29430 else
e6cc62c6
VS
29431 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29432echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29433 fi
463abc64 29434
e6cc62c6
VS
29435 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29436echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29437if test "${ac_cv_func_pthread_cancel+set}" = set; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439else
29440 cat >conftest.$ac_ext <<_ACEOF
29441#line $LINENO "configure"
29442/* confdefs.h. */
29443_ACEOF
29444cat confdefs.h >>conftest.$ac_ext
29445cat >>conftest.$ac_ext <<_ACEOF
29446/* end confdefs.h. */
009fead0 29447/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29448 which can conflict with char pthread_cancel (); below.
29449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29450 <limits.h> exists even on freestanding compilers. */
29451#ifdef __STDC__
29452# include <limits.h>
29453#else
29454# include <assert.h>
29455#endif
422107f9 29456/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29457#ifdef __cplusplus
29458extern "C"
29459{
29460#endif
422107f9 29461/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29462 builtin and then its argument prototype would still apply. */
29463char pthread_cancel ();
009fead0
VZ
29464/* The GNU C library defines this for functions which it implements
29465 to always fail with ENOSYS. Some functions are actually named
29466 something starting with __ and the normal name is an alias. */
29467#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29468choke me
29469#else
e6cc62c6
VS
29470char (*f) () = pthread_cancel;
29471#endif
29472#ifdef __cplusplus
29473}
009fead0
VZ
29474#endif
29475
e6cc62c6
VS
29476int
29477main ()
29478{
29479return f != pthread_cancel;
29480 ;
29481 return 0;
29482}
29483_ACEOF
29484rm -f conftest.$ac_objext conftest$ac_exeext
29485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29486 (eval $ac_link) 2>&5
29487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
29490 { ac_try='test -s conftest$ac_exeext'
29491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; }; then
29496 ac_cv_func_pthread_cancel=yes
29497else
29498 echo "$as_me: failed program was:" >&5
29499sed 's/^/| /' conftest.$ac_ext >&5
29500
29501ac_cv_func_pthread_cancel=no
29502fi
29503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29504fi
29505echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29506echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29507if test $ac_cv_func_pthread_cancel = yes; then
29508 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29509#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29510_ACEOF
4f14bcd8 29511
698dcdb6 29512else
e6cc62c6
VS
29513 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29514echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29515fi
29516
5c6fa7d2 29517
e6cc62c6
VS
29518 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29519echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29520if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29522else
e6cc62c6
VS
29523
29524 cat >conftest.$ac_ext <<_ACEOF
29525#line $LINENO "configure"
29526/* confdefs.h. */
29527_ACEOF
29528cat confdefs.h >>conftest.$ac_ext
29529cat >>conftest.$ac_ext <<_ACEOF
29530/* end confdefs.h. */
4f14bcd8 29531#include <pthread.h>
e6cc62c6
VS
29532int
29533main ()
29534{
4f14bcd8 29535
7274f1c7
RL
29536 pthread_cleanup_push(NULL, NULL);
29537 pthread_cleanup_pop(0);
e6cc62c6
VS
29538
29539 ;
29540 return 0;
29541}
29542_ACEOF
29543rm -f conftest.$ac_objext
29544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29545 (eval $ac_compile) 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } &&
29549 { ac_try='test -s conftest.$ac_objext'
29550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551 (eval $ac_try) 2>&5
29552 ac_status=$?
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); }; }; then
29555
7274f1c7 29556 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29557
4f14bcd8 29558else
e6cc62c6
VS
29559 echo "$as_me: failed program was:" >&5
29560sed 's/^/| /' conftest.$ac_ext >&5
29561
29562
7274f1c7 29563 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29564
247f5006 29565fi
e6cc62c6 29566rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29567
e6cc62c6
VS
29568fi
29569echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29570echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29571
7274f1c7 29572 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29573 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29574#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29575_ACEOF
c7a2bf27 29576
7274f1c7 29577 fi
4f14bcd8 29578
e6cc62c6
VS
29579
29580 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29581echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29582if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29584else
e6cc62c6
VS
29585
29586 cat >conftest.$ac_ext <<_ACEOF
29587#line $LINENO "configure"
29588/* confdefs.h. */
29589_ACEOF
29590cat confdefs.h >>conftest.$ac_ext
29591cat >>conftest.$ac_ext <<_ACEOF
29592/* end confdefs.h. */
4f14bcd8 29593#include <pthread.h>
e6cc62c6
VS
29594int
29595main ()
29596{
4f14bcd8 29597
7274f1c7
RL
29598 pthread_mutexattr_t attr;
29599 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29600
29601 ;
29602 return 0;
29603}
29604_ACEOF
29605rm -f conftest.$ac_objext
29606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29607 (eval $ac_compile) 2>&5
29608 ac_status=$?
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } &&
29611 { ac_try='test -s conftest.$ac_objext'
29612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29613 (eval $ac_try) 2>&5
29614 ac_status=$?
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); }; }; then
29617
7274f1c7 29618 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29619
3fed1840 29620else
e6cc62c6
VS
29621 echo "$as_me: failed program was:" >&5
29622sed 's/^/| /' conftest.$ac_ext >&5
29623
29624
7274f1c7 29625 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29626
29627
247f5006 29628fi
e6cc62c6 29629rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29630
e6cc62c6
VS
29631fi
29632echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29633echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29634
7274f1c7 29635 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29636 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29637#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29638_ACEOF
4f14bcd8 29639
7274f1c7 29640 else
e6cc62c6
VS
29641 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29642echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29643if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29644 echo $ECHO_N "(cached) $ECHO_C" >&6
29645else
29646
29647 cat >conftest.$ac_ext <<_ACEOF
29648#line $LINENO "configure"
29649/* confdefs.h. */
29650_ACEOF
29651cat confdefs.h >>conftest.$ac_ext
29652cat >>conftest.$ac_ext <<_ACEOF
29653/* end confdefs.h. */
4f14bcd8 29654#include <pthread.h>
e6cc62c6
VS
29655int
29656main ()
29657{
4f14bcd8 29658
7274f1c7 29659 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29660
29661 ;
29662 return 0;
29663}
29664_ACEOF
29665rm -f conftest.$ac_objext
29666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29667 (eval $ac_compile) 2>&5
29668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } &&
29671 { ac_try='test -s conftest.$ac_objext'
29672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29673 (eval $ac_try) 2>&5
29674 ac_status=$?
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); }; }; then
29677
7274f1c7 29678 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29679
698dcdb6 29680else
e6cc62c6
VS
29681 echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684
7274f1c7 29685 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29686
29687
247f5006 29688fi
e6cc62c6 29689rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29690
e6cc62c6
VS
29691fi
29692echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29693echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29694 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29695 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29696#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29697_ACEOF
3fed1840 29698
7274f1c7 29699 else
e6cc62c6
VS
29700 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29701echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29702 fi
29703 fi
7274f1c7 29704 fi
3fed1840 29705
a0b9e27f
MB
29706else
29707 if test "$wxUSE_THREADS" = "yes" ; then
29708 case "${host}" in
29709 *-*-mingw32* )
e6cc62c6
VS
29710 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29711echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29712if test "${wx_cv_cflags_mthread+set}" = set; then
29713 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29714else
e6cc62c6 29715
ca8e52b3
VZ
29716 CFLAGS_OLD="$CFLAGS"
29717 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29718 cat >conftest.$ac_ext <<_ACEOF
29719#line $LINENO "configure"
29720/* confdefs.h. */
29721_ACEOF
29722cat confdefs.h >>conftest.$ac_ext
29723cat >>conftest.$ac_ext <<_ACEOF
29724/* end confdefs.h. */
29725
29726int
29727main ()
29728{
ca8e52b3 29729
e6cc62c6
VS
29730 ;
29731 return 0;
29732}
29733_ACEOF
29734rm -f conftest.$ac_objext
29735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29736 (eval $ac_compile) 2>&5
29737 ac_status=$?
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29739 (exit $ac_status); } &&
29740 { ac_try='test -s conftest.$ac_objext'
29741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29742 (eval $ac_try) 2>&5
29743 ac_status=$?
29744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745 (exit $ac_status); }; }; then
ca8e52b3
VZ
29746 wx_cv_cflags_mthread=yes
29747else
e6cc62c6
VS
29748 echo "$as_me: failed program was:" >&5
29749sed 's/^/| /' conftest.$ac_ext >&5
29750
29751wx_cv_cflags_mthread=no
29752
ca8e52b3 29753fi
e6cc62c6
VS
29754rm -f conftest.$ac_objext conftest.$ac_ext
29755
ca8e52b3 29756
e6cc62c6
VS
29757fi
29758echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29759echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29760
29761 if test "$wx_cv_cflags_mthread" = "yes"; then
29762 CXXFLAGS="$CXXFLAGS -mthreads"
29763 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29764 LDFLAGS="$LDFLAGS -mthreads"
29765 else
29766 CFLAGS="$CFLAGS_OLD"
29767 fi
a0b9e27f
MB
29768 ;;
29769 esac
29770 fi
4f14bcd8
GD
29771fi
29772
29773if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29774 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29775#define wxUSE_THREADS 1
e6cc62c6 29776_ACEOF
7b6058cd 29777
8284b0c5 29778
4f14bcd8 29779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29780else
4f14bcd8 29781 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29782 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29783echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29784 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29785 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29786 echo "$as_me:$LINENO: result: yes" >&5
29787echo "${ECHO_T}yes" >&6
4f14bcd8 29788 else
e6cc62c6
VS
29789 echo "$as_me:$LINENO: result: no" >&5
29790echo "${ECHO_T}no" >&6
4f14bcd8
GD
29791 fi
29792 fi
29793fi
29794
29795if test "$WXGTK20" = 1 ; then
e6cc62c6 29796 cat >>confdefs.h <<_ACEOF
4f14bcd8 29797#define __WXGTK20__ $WXGTK20
e6cc62c6 29798_ACEOF
4f14bcd8
GD
29799
29800 WXGTK12=1
10f2d63a 29801fi
4f14bcd8
GD
29802
29803if test "$WXGTK12" = 1 ; then
e6cc62c6 29804 cat >>confdefs.h <<_ACEOF
4f14bcd8 29805#define __WXGTK12__ $WXGTK12
e6cc62c6 29806_ACEOF
4f14bcd8 29807
10f2d63a 29808fi
698dcdb6 29809
4f14bcd8 29810if test "$WXGTK127" = 1 ; then
e6cc62c6 29811 cat >>confdefs.h <<_ACEOF
4f14bcd8 29812#define __WXGTK127__ $WXGTK127
e6cc62c6 29813_ACEOF
4f14bcd8 29814
698dcdb6 29815fi
10f2d63a 29816
4f14bcd8
GD
29817WXDEBUG=
29818
29819if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29820 WXDEBUG="-g"
29821 wxUSE_OPTIMISE=no
698dcdb6 29822fi
4f14bcd8
GD
29823
29824if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29825 wxUSE_DEBUG_INFO=yes
29826 WXDEBUG="-ggdb"
10f2d63a
VZ
29827fi
29828
4f14bcd8 29829if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29830 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29831#define WXDEBUG 1
e6cc62c6 29832_ACEOF
4f14bcd8
GD
29833
29834 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29835else
4f14bcd8
GD
29836 if test "$wxUSE_GTK" = 1 ; then
29837 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29838 fi
29839fi
29840
29841if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29842 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29843#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29844_ACEOF
4f14bcd8 29845
e6cc62c6 29846 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29847#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29848_ACEOF
4f14bcd8 29849
e6cc62c6 29850 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29851#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29852_ACEOF
4f14bcd8
GD
29853
29854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
29855fi
29856
29857if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 29858 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
29859fi
29860
29861PROFILE=
29862if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 29863 PROFILE=" -pg"
10f2d63a
VZ
29864fi
29865
009fead0
VZ
29866CODE_GEN_FLAGS=
29867CODE_GEN_FLAGS_CXX=
88e30f2b 29868if test "$GCC" = "yes" ; then
4f14bcd8
GD
29869 if test "$wxUSE_NO_RTTI" = "yes" ; then
29870 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 29871 fi
4f14bcd8
GD
29872 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
29873 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
29874 fi
29875 if test "$wxUSE_PERMISSIVE" = "yes" ; then
29876 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
29877 fi
4f14bcd8
GD
29878 if test "$USE_WIN32" = 1 ; then
29879 # I'm not even really sure what this was ever added to solve,
29880 # but someone added it for mingw native builds, so I guess
29881 # they had a reason, right??
29882 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
29883 fi
1d1b75ac 29884
2b5f62a0 29885 case "${host}" in
1d1b75ac
VZ
29886 powerpc*-*-aix* )
29887 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
29888 ;;
2b5f62a0
VZ
29889 *-hppa* )
29890 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
29891 ;;
1d1b75ac 29892 esac
4f14bcd8
GD
29893fi
29894
af7b5345 29895OPTIMISE=
4f14bcd8 29896if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
29897 if test "$GCC" = yes ; then
29898 OPTIMISE="-O0"
29899 fi
4f14bcd8
GD
29900else
29901 if test "$GCC" = yes ; then
29902 OPTIMISE="-O2"
af7b5345
VZ
29903
29904 case "${host}" in
4f14bcd8
GD
29905 i586-*-*|i686-*-* )
29906 OPTIMISE="${OPTIMISE} "
29907 ;;
29908 esac
29909 else
29910 OPTIMISE="-O"
29911 fi
29912fi
29913
8d90d2f2 29914
4f14bcd8 29915if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
e6cc62c6 29916 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29917#define WXWIN_COMPATIBILITY_2 1
e6cc62c6 29918_ACEOF
4f14bcd8 29919
8284b0c5 29920
4f14bcd8
GD
29921 WXWIN_COMPATIBILITY_2_2="yes"
29922fi
29923
65d8ef1e 29924if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 29925 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29926#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 29927_ACEOF
4f14bcd8 29928
8d90d2f2
VZ
29929
29930 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
29931fi
29932
65d8ef1e 29933if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 29934 cat >>confdefs.h <<\_ACEOF
65d8ef1e 29935#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 29936_ACEOF
65d8ef1e
VS
29937
29938fi
29939
8284b0c5 29940
10f2d63a 29941if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 29942 cat >>confdefs.h <<\_ACEOF
10f2d63a 29943#define wxUSE_GUI 1
e6cc62c6 29944_ACEOF
10f2d63a 29945
8284b0c5 29946
10f2d63a 29947 else
e6cc62c6 29948 cat >>confdefs.h <<\_ACEOF
10f2d63a 29949#define wxUSE_NOGUI 1
e6cc62c6 29950_ACEOF
10f2d63a
VZ
29951
29952fi
29953
8284b0c5 29954
10f2d63a 29955if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 29956 cat >>confdefs.h <<\_ACEOF
10f2d63a 29957#define wxUSE_UNIX 1
e6cc62c6 29958_ACEOF
10f2d63a
VZ
29959
29960fi
29961
8284b0c5 29962
10f2d63a 29963if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 29964 cat >>confdefs.h <<\_ACEOF
10f2d63a 29965#define wxUSE_APPLE_IEEE 1
e6cc62c6 29966_ACEOF
10f2d63a
VZ
29967
29968fi
29969
1e6feb95 29970if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 29971 cat >>confdefs.h <<\_ACEOF
1e6feb95 29972#define wxUSE_TIMER 1
e6cc62c6 29973_ACEOF
1e6feb95
VZ
29974
29975fi
29976
10f2d63a 29977if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 29978 cat >>confdefs.h <<\_ACEOF
10f2d63a 29979#define wxUSE_WAVE 1
e6cc62c6 29980_ACEOF
10f2d63a
VZ
29981
29982fi
29983
1e6feb95 29984if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 29985 cat >>confdefs.h <<\_ACEOF
1e6feb95 29986#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 29987_ACEOF
1e6feb95
VZ
29988
29989fi
29990
29991if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 29992 cat >>confdefs.h <<\_ACEOF
1e6feb95 29993#define wxUSE_STOPWATCH 1
e6cc62c6 29994_ACEOF
1e6feb95
VZ
29995
29996fi
29997
29998if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 29999 cat >>confdefs.h <<\_ACEOF
1e6feb95 30000#define wxUSE_DATETIME 1
e6cc62c6 30001_ACEOF
1e6feb95
VZ
30002
30003fi
30004
10f2d63a 30005if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30006 cat >>confdefs.h <<\_ACEOF
10f2d63a 30007#define wxUSE_FILE 1
e6cc62c6 30008_ACEOF
10f2d63a
VZ
30009
30010fi
30011
1e6feb95 30012if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30013 cat >>confdefs.h <<\_ACEOF
1e6feb95 30014#define wxUSE_FFILE 1
e6cc62c6 30015_ACEOF
1e6feb95
VZ
30016
30017fi
30018
24528b0c 30019if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30020 cat >>confdefs.h <<\_ACEOF
24528b0c 30021#define wxUSE_FILESYSTEM 1
e6cc62c6 30022_ACEOF
24528b0c
VS
30023
30024fi
30025
10f2d63a 30026if test "$wxUSE_FS_INET" = "yes"; then
e6cc62c6 30027 cat >>confdefs.h <<\_ACEOF
10f2d63a 30028#define wxUSE_FS_INET 1
e6cc62c6 30029_ACEOF
10f2d63a
VZ
30030
30031fi
30032
30033if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30034 cat >>confdefs.h <<\_ACEOF
10f2d63a 30035#define wxUSE_FS_ZIP 1
e6cc62c6 30036_ACEOF
10f2d63a
VZ
30037
30038fi
30039
30040if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30041 cat >>confdefs.h <<\_ACEOF
10f2d63a 30042#define wxUSE_ZIPSTREAM 1
e6cc62c6 30043_ACEOF
10f2d63a
VZ
30044
30045fi
30046
eb4efbdc 30047if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30048 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30049#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30050_ACEOF
eb4efbdc
VZ
30051
30052fi
30053
4f3c5f06 30054if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30055 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30056#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30057_ACEOF
4f3c5f06
VZ
30058
30059fi
30060
10f2d63a 30061if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30062 cat >>confdefs.h <<\_ACEOF
10f2d63a 30063#define wxUSE_BUSYINFO 1
e6cc62c6 30064_ACEOF
10f2d63a
VZ
30065
30066fi
30067
30068if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30069 cat >>confdefs.h <<\_ACEOF
10f2d63a 30070#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30071_ACEOF
10f2d63a
VZ
30072
30073fi
30074
a3a584a7 30075if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30076 cat >>confdefs.h <<\_ACEOF
a3a584a7 30077#define wxUSE_TEXTBUFFER 1
e6cc62c6 30078_ACEOF
a3a584a7
VZ
30079
30080fi
30081
10f2d63a 30082if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30083 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30084 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30085echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30086 else
e6cc62c6 30087 cat >>confdefs.h <<\_ACEOF
10f2d63a 30088#define wxUSE_TEXTFILE 1
e6cc62c6 30089_ACEOF
10f2d63a
VZ
30090
30091 fi
30092fi
30093
30094if test "$wxUSE_CONFIG" = "yes" ; then
30095 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30096 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30097echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30098 else
e6cc62c6 30099 cat >>confdefs.h <<\_ACEOF
10f2d63a 30100#define wxUSE_CONFIG 1
e6cc62c6 30101_ACEOF
10f2d63a
VZ
30102
30103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30104 fi
30105fi
30106
30107if test "$wxUSE_INTL" = "yes" ; then
30108 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30109 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30110echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30111 else
e6cc62c6 30112 cat >>confdefs.h <<\_ACEOF
10f2d63a 30113#define wxUSE_INTL 1
e6cc62c6 30114_ACEOF
10f2d63a
VZ
30115
30116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30117 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30118 fi
30119fi
30120
30121if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30122 cat >>confdefs.h <<\_ACEOF
10f2d63a 30123#define wxUSE_LOG 1
e6cc62c6 30124_ACEOF
10f2d63a 30125
8284b0c5 30126
d73be714 30127 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30128 cat >>confdefs.h <<\_ACEOF
d73be714 30129#define wxUSE_LOGGUI 1
e6cc62c6 30130_ACEOF
d73be714
VZ
30131
30132 fi
30133
30134 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30135 cat >>confdefs.h <<\_ACEOF
d73be714 30136#define wxUSE_LOGWINDOW 1
e6cc62c6 30137_ACEOF
69d27ff7
MB
30138
30139 fi
30140
30141 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30142 cat >>confdefs.h <<\_ACEOF
69d27ff7 30143#define wxUSE_LOG_DIALOG 1
e6cc62c6 30144_ACEOF
d73be714
VZ
30145
30146 fi
10f2d63a
VZ
30147fi
30148
30149if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30150 cat >>confdefs.h <<\_ACEOF
10f2d63a 30151#define wxUSE_LONGLONG 1
e6cc62c6 30152_ACEOF
10f2d63a
VZ
30153
30154fi
30155
e8f65ba6 30156if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30157 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30158#define wxUSE_GEOMETRY 1
e6cc62c6 30159_ACEOF
e8f65ba6
RR
30160
30161fi
30162
10f2d63a 30163if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30164 cat >>confdefs.h <<\_ACEOF
10f2d63a 30165#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30166_ACEOF
10f2d63a 30167
70f7a477 30168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30169fi
30170
30171if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30172 cat >>confdefs.h <<\_ACEOF
10f2d63a 30173#define wxUSE_STREAMS 1
e6cc62c6 30174_ACEOF
10f2d63a
VZ
30175
30176fi
30177
5c6fa7d2 30178
8284b0c5 30179if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30180
30181for ac_func in strptime
83307f33 30182do
e6cc62c6
VS
30183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30184echo "$as_me:$LINENO: checking for $ac_func" >&5
30185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30186if eval "test \"\${$as_ac_var+set}\" = set"; then
30187 echo $ECHO_N "(cached) $ECHO_C" >&6
30188else
30189 cat >conftest.$ac_ext <<_ACEOF
30190#line $LINENO "configure"
30191/* confdefs.h. */
30192_ACEOF
30193cat confdefs.h >>conftest.$ac_ext
30194cat >>conftest.$ac_ext <<_ACEOF
30195/* end confdefs.h. */
83307f33 30196/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30197 which can conflict with char $ac_func (); below.
30198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199 <limits.h> exists even on freestanding compilers. */
30200#ifdef __STDC__
30201# include <limits.h>
30202#else
30203# include <assert.h>
30204#endif
83307f33 30205/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30206#ifdef __cplusplus
30207extern "C"
30208{
30209#endif
83307f33 30210/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30211 builtin and then its argument prototype would still apply. */
30212char $ac_func ();
83307f33
VZ
30213/* The GNU C library defines this for functions which it implements
30214 to always fail with ENOSYS. Some functions are actually named
30215 something starting with __ and the normal name is an alias. */
30216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30217choke me
30218#else
e6cc62c6
VS
30219char (*f) () = $ac_func;
30220#endif
30221#ifdef __cplusplus
30222}
83307f33
VZ
30223#endif
30224
e6cc62c6
VS
30225int
30226main ()
30227{
30228return f != $ac_func;
30229 ;
30230 return 0;
30231}
30232_ACEOF
30233rm -f conftest.$ac_objext conftest$ac_exeext
30234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30235 (eval $ac_link) 2>&5
30236 ac_status=$?
30237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238 (exit $ac_status); } &&
30239 { ac_try='test -s conftest$ac_exeext'
30240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241 (eval $ac_try) 2>&5
30242 ac_status=$?
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; }; then
30245 eval "$as_ac_var=yes"
30246else
30247 echo "$as_me: failed program was:" >&5
30248sed 's/^/| /' conftest.$ac_ext >&5
30249
30250eval "$as_ac_var=no"
30251fi
30252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30253fi
30254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30256if test `eval echo '${'$as_ac_var'}'` = yes; then
30257 cat >>confdefs.h <<_ACEOF
30258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30259_ACEOF
83307f33 30260
83307f33
VZ
30261fi
30262done
30263
5c6fa7d2 30264
e6cc62c6
VS
30265 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30266echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30267if test "${wx_cv_var_timezone+set}" = set; then
30268 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30269else
e6cc62c6
VS
30270
30271 cat >conftest.$ac_ext <<_ACEOF
30272#line $LINENO "configure"
30273/* confdefs.h. */
30274_ACEOF
30275cat confdefs.h >>conftest.$ac_ext
30276cat >>conftest.$ac_ext <<_ACEOF
30277/* end confdefs.h. */
360d6699 30278
b4085ce6 30279 #include <time.h>
e6cc62c6
VS
30280
30281int
30282main ()
30283{
360d6699
VZ
30284
30285 int tz;
4f11a343 30286 tz = timezone;
e6cc62c6
VS
30287
30288 ;
30289 return 0;
30290}
30291_ACEOF
30292rm -f conftest.$ac_objext
30293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30294 (eval $ac_compile) 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); } &&
30298 { ac_try='test -s conftest.$ac_objext'
30299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300 (eval $ac_try) 2>&5
30301 ac_status=$?
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); }; }; then
30304
4f11a343 30305 wx_cv_var_timezone=timezone
e6cc62c6 30306
360d6699 30307else
e6cc62c6
VS
30308 echo "$as_me: failed program was:" >&5
30309sed 's/^/| /' conftest.$ac_ext >&5
30310
30311
30312 cat >conftest.$ac_ext <<_ACEOF
30313#line $LINENO "configure"
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
360d6699 30319
b4085ce6 30320 #include <time.h>
e6cc62c6
VS
30321
30322int
30323main ()
30324{
360d6699
VZ
30325
30326 int tz;
30327 tz = _timezone;
e6cc62c6
VS
30328
30329 ;
30330 return 0;
30331}
30332_ACEOF
30333rm -f conftest.$ac_objext
30334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30335 (eval $ac_compile) 2>&5
30336 ac_status=$?
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } &&
30339 { ac_try='test -s conftest.$ac_objext'
30340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341 (eval $ac_try) 2>&5
30342 ac_status=$?
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); }; }; then
30345
360d6699 30346 wx_cv_var_timezone=_timezone
e6cc62c6 30347
5357c8e8 30348else
e6cc62c6
VS
30349 echo "$as_me: failed program was:" >&5
30350sed 's/^/| /' conftest.$ac_ext >&5
30351
30352
30353 cat >conftest.$ac_ext <<_ACEOF
30354#line $LINENO "configure"
30355/* confdefs.h. */
30356_ACEOF
30357cat confdefs.h >>conftest.$ac_ext
30358cat >>conftest.$ac_ext <<_ACEOF
30359/* end confdefs.h. */
5357c8e8 30360
b4085ce6 30361 #include <time.h>
e6cc62c6
VS
30362
30363int
30364main ()
30365{
5357c8e8
VZ
30366
30367 int tz;
4f11a343 30368 tz = __timezone;
e6cc62c6
VS
30369
30370 ;
30371 return 0;
30372}
30373_ACEOF
30374rm -f conftest.$ac_objext
30375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30376 (eval $ac_compile) 2>&5
30377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); } &&
30380 { ac_try='test -s conftest.$ac_objext'
30381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30382 (eval $ac_try) 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; }; then
30386
4f11a343 30387 wx_cv_var_timezone=__timezone
e6cc62c6 30388
360d6699 30389else
e6cc62c6
VS
30390 echo "$as_me: failed program was:" >&5
30391sed 's/^/| /' conftest.$ac_ext >&5
30392
30393
f9bc1684 30394 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30395 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30396echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30397 fi
e6cc62c6
VS
30398
30399
7b4a847f 30400fi
e6cc62c6
VS
30401rm -f conftest.$ac_objext conftest.$ac_ext
30402
30403
5c6fa7d2 30404fi
e6cc62c6
VS
30405rm -f conftest.$ac_objext conftest.$ac_ext
30406
30407
247f5006 30408fi
e6cc62c6 30409rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30410
e6cc62c6
VS
30411
30412fi
30413echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30414echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30415
f9bc1684 30416 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30417 cat >>confdefs.h <<_ACEOF
360d6699 30418#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30419_ACEOF
360d6699 30420
f9bc1684 30421 fi
698dcdb6 30422
e6cc62c6
VS
30423
30424for ac_func in localtime
afc31813 30425do
e6cc62c6
VS
30426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30427echo "$as_me:$LINENO: checking for $ac_func" >&5
30428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30429if eval "test \"\${$as_ac_var+set}\" = set"; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30431else
30432 cat >conftest.$ac_ext <<_ACEOF
30433#line $LINENO "configure"
30434/* confdefs.h. */
30435_ACEOF
30436cat confdefs.h >>conftest.$ac_ext
30437cat >>conftest.$ac_ext <<_ACEOF
30438/* end confdefs.h. */
afc31813 30439/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30440 which can conflict with char $ac_func (); below.
30441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30442 <limits.h> exists even on freestanding compilers. */
30443#ifdef __STDC__
30444# include <limits.h>
30445#else
30446# include <assert.h>
30447#endif
afc31813 30448/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30449#ifdef __cplusplus
30450extern "C"
30451{
30452#endif
afc31813 30453/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30454 builtin and then its argument prototype would still apply. */
30455char $ac_func ();
afc31813
VZ
30456/* The GNU C library defines this for functions which it implements
30457 to always fail with ENOSYS. Some functions are actually named
30458 something starting with __ and the normal name is an alias. */
30459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30460choke me
30461#else
e6cc62c6
VS
30462char (*f) () = $ac_func;
30463#endif
30464#ifdef __cplusplus
30465}
afc31813
VZ
30466#endif
30467
e6cc62c6
VS
30468int
30469main ()
30470{
30471return f != $ac_func;
30472 ;
30473 return 0;
30474}
30475_ACEOF
30476rm -f conftest.$ac_objext conftest$ac_exeext
30477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30478 (eval $ac_link) 2>&5
30479 ac_status=$?
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); } &&
30482 { ac_try='test -s conftest$ac_exeext'
30483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30484 (eval $ac_try) 2>&5
30485 ac_status=$?
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); }; }; then
30488 eval "$as_ac_var=yes"
30489else
30490 echo "$as_me: failed program was:" >&5
30491sed 's/^/| /' conftest.$ac_ext >&5
30492
30493eval "$as_ac_var=no"
30494fi
30495rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30496fi
30497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30499if test `eval echo '${'$as_ac_var'}'` = yes; then
30500 cat >>confdefs.h <<_ACEOF
30501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30502_ACEOF
afc31813 30503
afc31813
VZ
30504fi
30505done
30506
5c6fa7d2 30507
8284b0c5 30508 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30509 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30510echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30511if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30512 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30513else
e6cc62c6
VS
30514
30515 cat >conftest.$ac_ext <<_ACEOF
30516#line $LINENO "configure"
30517/* confdefs.h. */
30518_ACEOF
30519cat confdefs.h >>conftest.$ac_ext
30520cat >>conftest.$ac_ext <<_ACEOF
30521/* end confdefs.h. */
0470b1e6 30522
b4085ce6 30523 #include <time.h>
e6cc62c6
VS
30524
30525int
30526main ()
30527{
0470b1e6
VZ
30528
30529 struct tm tm;
30530 tm.tm_gmtoff++;
e6cc62c6
VS
30531
30532 ;
30533 return 0;
30534}
30535_ACEOF
30536rm -f conftest.$ac_objext
30537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30538 (eval $ac_compile) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); } &&
30542 { ac_try='test -s conftest.$ac_objext'
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548
f03a98d8 30549 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30550
0470b1e6 30551else
e6cc62c6
VS
30552 echo "$as_me: failed program was:" >&5
30553sed 's/^/| /' conftest.$ac_ext >&5
30554
30555wx_cv_struct_tm_has_gmtoff=no
30556
247f5006 30557fi
e6cc62c6 30558rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30559
e6cc62c6
VS
30560fi
30561echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30562echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30563 fi
30564
30565 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30566 cat >>confdefs.h <<\_ACEOF
6232543b 30567#define WX_GMTOFF_IN_TM 1
e6cc62c6 30568_ACEOF
0470b1e6 30569
3fcdd07b
VZ
30570 fi
30571
e6cc62c6
VS
30572
30573
30574for ac_func in gettimeofday ftime
3fcdd07b 30575do
e6cc62c6
VS
30576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30577echo "$as_me:$LINENO: checking for $ac_func" >&5
30578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30579if eval "test \"\${$as_ac_var+set}\" = set"; then
30580 echo $ECHO_N "(cached) $ECHO_C" >&6
30581else
30582 cat >conftest.$ac_ext <<_ACEOF
30583#line $LINENO "configure"
30584/* confdefs.h. */
30585_ACEOF
30586cat confdefs.h >>conftest.$ac_ext
30587cat >>conftest.$ac_ext <<_ACEOF
30588/* end confdefs.h. */
3fcdd07b 30589/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30590 which can conflict with char $ac_func (); below.
30591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30592 <limits.h> exists even on freestanding compilers. */
30593#ifdef __STDC__
30594# include <limits.h>
30595#else
30596# include <assert.h>
30597#endif
3fcdd07b 30598/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30599#ifdef __cplusplus
30600extern "C"
30601{
30602#endif
3fcdd07b 30603/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30604 builtin and then its argument prototype would still apply. */
30605char $ac_func ();
3fcdd07b
VZ
30606/* The GNU C library defines this for functions which it implements
30607 to always fail with ENOSYS. Some functions are actually named
30608 something starting with __ and the normal name is an alias. */
30609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30610choke me
30611#else
e6cc62c6
VS
30612char (*f) () = $ac_func;
30613#endif
30614#ifdef __cplusplus
30615}
3fcdd07b
VZ
30616#endif
30617
e6cc62c6
VS
30618int
30619main ()
30620{
30621return f != $ac_func;
30622 ;
30623 return 0;
30624}
30625_ACEOF
30626rm -f conftest.$ac_objext conftest$ac_exeext
30627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30628 (eval $ac_link) 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); } &&
30632 { ac_try='test -s conftest$ac_exeext'
30633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30635 ac_status=$?
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; }; then
30638 eval "$as_ac_var=yes"
30639else
30640 echo "$as_me: failed program was:" >&5
30641sed 's/^/| /' conftest.$ac_ext >&5
30642
30643eval "$as_ac_var=no"
30644fi
30645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30646fi
30647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30649if test `eval echo '${'$as_ac_var'}'` = yes; then
30650 cat >>confdefs.h <<_ACEOF
30651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30652_ACEOF
3fcdd07b 30653 break
3fcdd07b
VZ
30654fi
30655done
30656
698dcdb6 30657
8284b0c5 30658 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30659 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30660echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30661if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30662 echo $ECHO_N "(cached) $ECHO_C" >&6
30663else
30664
30665
30666
30667 ac_ext=cc
5c6fa7d2 30668ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30672
8284b0c5 30673
e6cc62c6
VS
30674 cat >conftest.$ac_ext <<_ACEOF
30675#line $LINENO "configure"
30676/* confdefs.h. */
30677_ACEOF
30678cat confdefs.h >>conftest.$ac_ext
30679cat >>conftest.$ac_ext <<_ACEOF
30680/* end confdefs.h. */
afc31813
VZ
30681
30682 #include <sys/time.h>
30683 #include <unistd.h>
e6cc62c6
VS
30684
30685int
30686main ()
30687{
afc31813
VZ
30688
30689 struct timeval tv;
776862b4 30690 gettimeofday(&tv, NULL);
e6cc62c6
VS
30691
30692 ;
30693 return 0;
30694}
30695_ACEOF
30696rm -f conftest.$ac_objext
30697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30698 (eval $ac_compile) 2>&5
30699 ac_status=$?
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); } &&
30702 { ac_try='test -s conftest.$ac_objext'
30703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30704 (eval $ac_try) 2>&5
30705 ac_status=$?
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; }; then
afc31813 30708 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30709else
e6cc62c6
VS
30710 echo "$as_me: failed program was:" >&5
30711sed 's/^/| /' conftest.$ac_ext >&5
30712
30713cat >conftest.$ac_ext <<_ACEOF
30714#line $LINENO "configure"
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
afc31813
VZ
30720
30721 #include <sys/time.h>
30722 #include <unistd.h>
e6cc62c6
VS
30723
30724int
30725main ()
30726{
afc31813
VZ
30727
30728 struct timeval tv;
30729 gettimeofday(&tv);
e6cc62c6
VS
30730
30731 ;
30732 return 0;
30733}
30734_ACEOF
30735rm -f conftest.$ac_objext
30736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30737 (eval $ac_compile) 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); } &&
30741 { ac_try='test -s conftest.$ac_objext'
30742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743 (eval $ac_try) 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; }; then
afc31813 30747 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30748else
e6cc62c6
VS
30749 echo "$as_me: failed program was:" >&5
30750sed 's/^/| /' conftest.$ac_ext >&5
30751
30752
30753 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30754echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30755 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30756
30757
10f2d63a 30758fi
e6cc62c6
VS
30759rm -f conftest.$ac_objext conftest.$ac_ext
30760
10f2d63a 30761fi
e6cc62c6 30762rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30763 ac_ext=c
10f2d63a 30764ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30768
a0b9e27f 30769
e6cc62c6
VS
30770fi
30771echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30772echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30773
afc31813 30774 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30775 cat >>confdefs.h <<\_ACEOF
afc31813 30776#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30777_ACEOF
afc31813
VZ
30778
30779 fi
30780 fi
30781
afc31813
VZ
30782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30783fi
30784
8284b0c5 30785
52127426 30786if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30787 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30788 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30789echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30790 wxUSE_SOCKETS="no"
30791 fi
0feee163 30792fi
b089607b 30793
0feee163
VZ
30794if test "$wxUSE_SOCKETS" = "yes"; then
30795 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30796 echo "$as_me:$LINENO: checking for socket" >&5
30797echo $ECHO_N "checking for socket... $ECHO_C" >&6
30798if test "${ac_cv_func_socket+set}" = set; then
30799 echo $ECHO_N "(cached) $ECHO_C" >&6
30800else
30801 cat >conftest.$ac_ext <<_ACEOF
30802#line $LINENO "configure"
30803/* confdefs.h. */
30804_ACEOF
30805cat confdefs.h >>conftest.$ac_ext
30806cat >>conftest.$ac_ext <<_ACEOF
30807/* end confdefs.h. */
c63c7106 30808/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30809 which can conflict with char socket (); below.
30810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30811 <limits.h> exists even on freestanding compilers. */
30812#ifdef __STDC__
30813# include <limits.h>
30814#else
30815# include <assert.h>
30816#endif
c63c7106 30817/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30818#ifdef __cplusplus
30819extern "C"
30820{
30821#endif
c63c7106 30822/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30823 builtin and then its argument prototype would still apply. */
30824char socket ();
c63c7106
VZ
30825/* The GNU C library defines this for functions which it implements
30826 to always fail with ENOSYS. Some functions are actually named
30827 something starting with __ and the normal name is an alias. */
30828#if defined (__stub_socket) || defined (__stub___socket)
30829choke me
30830#else
e6cc62c6
VS
30831char (*f) () = socket;
30832#endif
30833#ifdef __cplusplus
30834}
c63c7106
VZ
30835#endif
30836
e6cc62c6
VS
30837int
30838main ()
30839{
30840return f != socket;
30841 ;
30842 return 0;
30843}
30844_ACEOF
30845rm -f conftest.$ac_objext conftest$ac_exeext
30846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30847 (eval $ac_link) 2>&5
30848 ac_status=$?
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } &&
30851 { ac_try='test -s conftest$ac_exeext'
30852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30853 (eval $ac_try) 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
30857 ac_cv_func_socket=yes
30858else
30859 echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
30862ac_cv_func_socket=no
30863fi
30864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30865fi
30866echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
30867echo "${ECHO_T}$ac_cv_func_socket" >&6
30868if test $ac_cv_func_socket = yes; then
c63c7106
VZ
30869 :
30870else
e6cc62c6
VS
30871 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
30872echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
30873if test "${ac_cv_lib_socket_socket+set}" = set; then
30874 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 30875else
e6cc62c6 30876 ac_check_lib_save_LIBS=$LIBS
c63c7106 30877LIBS="-lsocket $LIBS"
e6cc62c6
VS
30878cat >conftest.$ac_ext <<_ACEOF
30879#line $LINENO "configure"
30880/* confdefs.h. */
30881_ACEOF
30882cat confdefs.h >>conftest.$ac_ext
30883cat >>conftest.$ac_ext <<_ACEOF
30884/* end confdefs.h. */
30885
c63c7106 30886/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30887#ifdef __cplusplus
30888extern "C"
30889#endif
c63c7106 30890/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30891 builtin and then its argument prototype would still apply. */
30892char socket ();
30893int
30894main ()
30895{
30896socket ();
30897 ;
30898 return 0;
30899}
30900_ACEOF
30901rm -f conftest.$ac_objext conftest$ac_exeext
30902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30903 (eval $ac_link) 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); } &&
30907 { ac_try='test -s conftest$ac_exeext'
30908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909 (eval $ac_try) 2>&5
30910 ac_status=$?
30911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912 (exit $ac_status); }; }; then
30913 ac_cv_lib_socket_socket=yes
30914else
30915 echo "$as_me: failed program was:" >&5
30916sed 's/^/| /' conftest.$ac_ext >&5
30917
30918ac_cv_lib_socket_socket=no
30919fi
30920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30921LIBS=$ac_check_lib_save_LIBS
30922fi
30923echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
30924echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
30925if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
30926 if test "$INET_LINK" != " -lsocket"; then
30927 INET_LINK="$INET_LINK -lsocket"
30928 fi
c63c7106 30929else
afc31813 30930
e6cc62c6
VS
30931 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
30932echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 30933 wxUSE_SOCKETS=no
e6cc62c6
VS
30934
30935
6232543b 30936fi
b089607b 30937
e6cc62c6 30938
1e487827 30939fi
afc31813 30940
3a922bb4 30941 fi
0feee163 30942fi
51a9faba 30943
0feee163
VZ
30944if test "$wxUSE_SOCKETS" = "yes" ; then
30945 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30946 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
30947echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
30948if test "${wx_cv_type_getsockname3+set}" = set; then
30949 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30950else
e6cc62c6
VS
30951
30952 cat >conftest.$ac_ext <<_ACEOF
30953#line $LINENO "configure"
30954/* confdefs.h. */
30955_ACEOF
30956cat confdefs.h >>conftest.$ac_ext
30957cat >>conftest.$ac_ext <<_ACEOF
30958/* end confdefs.h. */
51a9faba 30959
3a922bb4
RL
30960 #include <sys/types.h>
30961 #include <sys/socket.h>
e6cc62c6
VS
30962
30963int
30964main ()
30965{
51a9faba 30966
3a922bb4
RL
30967 socklen_t len;
30968 getsockname(0, 0, &len);
e6cc62c6
VS
30969
30970 ;
30971 return 0;
30972}
30973_ACEOF
30974rm -f conftest.$ac_objext
30975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30976 (eval $ac_compile) 2>&5
30977 ac_status=$?
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); } &&
30980 { ac_try='test -s conftest.$ac_objext'
30981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30982 (eval $ac_try) 2>&5
30983 ac_status=$?
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; }; then
51a9faba 30986 wx_cv_type_getsockname3=socklen_t
afc31813 30987else
e6cc62c6
VS
30988 echo "$as_me: failed program was:" >&5
30989sed 's/^/| /' conftest.$ac_ext >&5
30990
30991
9711d31e
GD
30992 CFLAGS_OLD="$CFLAGS"
30993 if test "$GCC" = yes ; then
30994 CFLAGS="$CFLAGS -Werror"
30995 fi
30996
e6cc62c6
VS
30997 cat >conftest.$ac_ext <<_ACEOF
30998#line $LINENO "configure"
30999/* confdefs.h. */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h. */
51a9faba 31004
9711d31e
GD
31005 #include <sys/types.h>
31006 #include <sys/socket.h>
e6cc62c6
VS
31007
31008int
31009main ()
31010{
51a9faba 31011
9711d31e
GD
31012 size_t len;
31013 getsockname(0, 0, &len);
e6cc62c6
VS
31014
31015 ;
31016 return 0;
31017}
31018_ACEOF
31019rm -f conftest.$ac_objext
31020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31021 (eval $ac_compile) 2>&5
31022 ac_status=$?
31023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31024 (exit $ac_status); } &&
31025 { ac_try='test -s conftest.$ac_objext'
31026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31027 (eval $ac_try) 2>&5
31028 ac_status=$?
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); }; }; then
51a9faba 31031 wx_cv_type_getsockname3=size_t
afc31813 31032else
e6cc62c6
VS
31033 echo "$as_me: failed program was:" >&5
31034sed 's/^/| /' conftest.$ac_ext >&5
31035
31036cat >conftest.$ac_ext <<_ACEOF
31037#line $LINENO "configure"
31038/* confdefs.h. */
31039_ACEOF
31040cat confdefs.h >>conftest.$ac_ext
31041cat >>conftest.$ac_ext <<_ACEOF
31042/* end confdefs.h. */
51a9faba 31043
9711d31e
GD
31044 #include <sys/types.h>
31045 #include <sys/socket.h>
e6cc62c6
VS
31046
31047int
31048main ()
31049{
51a9faba 31050
9711d31e
GD
31051 int len;
31052 getsockname(0, 0, &len);
e6cc62c6
VS
31053
31054 ;
31055 return 0;
31056}
31057_ACEOF
31058rm -f conftest.$ac_objext
31059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31060 (eval $ac_compile) 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); } &&
31064 { ac_try='test -s conftest.$ac_objext'
31065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066 (eval $ac_try) 2>&5
31067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
51a9faba 31070 wx_cv_type_getsockname3=int
afc31813 31071else
e6cc62c6
VS
31072 echo "$as_me: failed program was:" >&5
31073sed 's/^/| /' conftest.$ac_ext >&5
31074
31075wx_cv_type_getsockname3=unknown
31076
afc31813 31077fi
e6cc62c6
VS
31078rm -f conftest.$ac_objext conftest.$ac_ext
31079
afc31813 31080fi
e6cc62c6 31081rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31082
31083 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31084
31085
247f5006 31086fi
e6cc62c6 31087rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31088
e6cc62c6
VS
31089fi
31090echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31091echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31092
3a922bb4
RL
31093 if test "$wx_cv_type_getsockname3" = "unknown"; then
31094 wxUSE_SOCKETS=no
e6cc62c6
VS
31095 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31096echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31097 else
e6cc62c6 31098 cat >>confdefs.h <<_ACEOF
51a9faba 31099#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31100_ACEOF
51a9faba 31101
3a922bb4 31102 fi
51a9faba
VZ
31103 fi
31104fi
afc31813 31105
51a9faba 31106if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31107 cat >>confdefs.h <<\_ACEOF
afc31813 31108#define wxUSE_SOCKETS 1
e6cc62c6 31109_ACEOF
afc31813 31110
70f7a477 31111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31112fi
31113
8284b0c5 31114
dc3d889d
VZ
31115if test "$wxUSE_GUI" = "yes"; then
31116
ac0c4cc3 31117 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31118 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31119echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
31120 wxUSE_JOYSTICK=no
31121 fi
31122 if test "$TOOLKIT" = "MOTIF"; then
e6cc62c6
VS
31123 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5
31124echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;}
156b2523 31125 wxUSE_JOYSTICK=no
f79bd02d
JS
31126 fi
31127 if test "$TOOLKIT" = "X11"; then
e6cc62c6
VS
31128 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5
31129echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;}
f79bd02d 31130 wxUSE_JOYSTICK=no
156b2523
GD
31131 fi
31132
3a922bb4
RL
31133 if test "$TOOLKIT" != "MSW"; then
31134 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31135
31136for ac_header in linux/joystick.h
10f2d63a 31137do
e6cc62c6
VS
31138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31139if eval "test \"\${$as_ac_Header+set}\" = set"; then
31140 echo "$as_me:$LINENO: checking for $ac_header" >&5
31141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31142if eval "test \"\${$as_ac_Header+set}\" = set"; then
31143 echo $ECHO_N "(cached) $ECHO_C" >&6
31144fi
31145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31147else
31148 # Is the header compilable?
31149echo "$as_me:$LINENO: checking $ac_header usability" >&5
31150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31151cat >conftest.$ac_ext <<_ACEOF
31152#line $LINENO "configure"
31153/* confdefs.h. */
31154_ACEOF
31155cat confdefs.h >>conftest.$ac_ext
31156cat >>conftest.$ac_ext <<_ACEOF
31157/* end confdefs.h. */
31158$ac_includes_default
31159#include <$ac_header>
31160_ACEOF
31161rm -f conftest.$ac_objext
31162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31163 (eval $ac_compile) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } &&
31167 { ac_try='test -s conftest.$ac_objext'
31168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169 (eval $ac_try) 2>&5
31170 ac_status=$?
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; }; then
31173 ac_header_compiler=yes
31174else
31175 echo "$as_me: failed program was:" >&5
31176sed 's/^/| /' conftest.$ac_ext >&5
31177
31178ac_header_compiler=no
31179fi
31180rm -f conftest.$ac_objext conftest.$ac_ext
31181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31182echo "${ECHO_T}$ac_header_compiler" >&6
31183
31184# Is the header present?
31185echo "$as_me:$LINENO: checking $ac_header presence" >&5
31186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31187cat >conftest.$ac_ext <<_ACEOF
31188#line $LINENO "configure"
31189/* confdefs.h. */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h. */
31194#include <$ac_header>
31195_ACEOF
31196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31198 ac_status=$?
31199 grep -v '^ *+' conftest.er1 >conftest.err
31200 rm -f conftest.er1
31201 cat conftest.err >&5
31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203 (exit $ac_status); } >/dev/null; then
31204 if test -s conftest.err; then
31205 ac_cpp_err=$ac_c_preproc_warn_flag
31206 else
31207 ac_cpp_err=
31208 fi
31209else
31210 ac_cpp_err=yes
31211fi
31212if test -z "$ac_cpp_err"; then
31213 ac_header_preproc=yes
31214else
31215 echo "$as_me: failed program was:" >&5
31216sed 's/^/| /' conftest.$ac_ext >&5
31217
31218 ac_header_preproc=no
31219fi
31220rm -f conftest.err conftest.$ac_ext
31221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31222echo "${ECHO_T}$ac_header_preproc" >&6
31223
31224# So? What about this header?
31225case $ac_header_compiler:$ac_header_preproc in
31226 yes:no )
31227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31231 (
31232 cat <<\_ASBOX
31233## ------------------------------------ ##
31234## Report this to bug-autoconf@gnu.org. ##
31235## ------------------------------------ ##
31236_ASBOX
31237 ) |
31238 sed "s/^/$as_me: WARNING: /" >&2
31239 ;;
31240 no:yes )
31241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31247 (
31248 cat <<\_ASBOX
31249## ------------------------------------ ##
31250## Report this to bug-autoconf@gnu.org. ##
31251## ------------------------------------ ##
31252_ASBOX
31253 ) |
31254 sed "s/^/$as_me: WARNING: /" >&2
31255 ;;
31256esac
31257echo "$as_me:$LINENO: checking for $ac_header" >&5
31258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31259if eval "test \"\${$as_ac_Header+set}\" = set"; then
31260 echo $ECHO_N "(cached) $ECHO_C" >&6
31261else
31262 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31263fi
e6cc62c6
VS
31264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31266
10f2d63a 31267fi
e6cc62c6
VS
31268if test `eval echo '${'$as_ac_Header'}'` = yes; then
31269 cat >>confdefs.h <<_ACEOF
31270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31271_ACEOF
31272
247f5006 31273fi
e6cc62c6 31274
10f2d63a
VZ
31275done
31276
3a922bb4
RL
31277 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31278 wxUSE_JOYSTICK=no
e6cc62c6
VS
31279 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31280echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31281 fi
31282 fi
31283 fi
b089607b 31284
3a922bb4 31285 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31286 cat >>confdefs.h <<\_ACEOF
10f2d63a 31287#define wxUSE_JOYSTICK 1
e6cc62c6 31288_ACEOF
10f2d63a 31289
3a922bb4
RL
31290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31291 fi
dc3d889d
VZ
31292fi
31293
8284b0c5 31294
b089607b
VZ
31295if test "$TOOLKIT" != "MSW"; then
31296
3a922bb4
RL
31297 HAVE_DL_FUNCS=0
31298 HAVE_SHL_FUNCS=0
0b9ab0bd 31299 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31300 if test "$USE_DARWIN" = 1; then
31301 HAVE_DL_FUNCS=1
31302 else
e6cc62c6
VS
31303
31304for ac_func in dlopen
10f2d63a 31305do
e6cc62c6
VS
31306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31307echo "$as_me:$LINENO: checking for $ac_func" >&5
31308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31309if eval "test \"\${$as_ac_var+set}\" = set"; then
31310 echo $ECHO_N "(cached) $ECHO_C" >&6
31311else
31312 cat >conftest.$ac_ext <<_ACEOF
31313#line $LINENO "configure"
31314/* confdefs.h. */
31315_ACEOF
31316cat confdefs.h >>conftest.$ac_ext
31317cat >>conftest.$ac_ext <<_ACEOF
31318/* end confdefs.h. */
10f2d63a 31319/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31320 which can conflict with char $ac_func (); below.
31321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31322 <limits.h> exists even on freestanding compilers. */
31323#ifdef __STDC__
31324# include <limits.h>
31325#else
31326# include <assert.h>
31327#endif
10f2d63a 31328/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31329#ifdef __cplusplus
31330extern "C"
31331{
31332#endif
10f2d63a 31333/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31334 builtin and then its argument prototype would still apply. */
31335char $ac_func ();
10f2d63a
VZ
31336/* The GNU C library defines this for functions which it implements
31337 to always fail with ENOSYS. Some functions are actually named
31338 something starting with __ and the normal name is an alias. */
31339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31340choke me
31341#else
e6cc62c6
VS
31342char (*f) () = $ac_func;
31343#endif
31344#ifdef __cplusplus
31345}
10f2d63a
VZ
31346#endif
31347
e6cc62c6
VS
31348int
31349main ()
31350{
31351return f != $ac_func;
31352 ;
31353 return 0;
31354}
31355_ACEOF
31356rm -f conftest.$ac_objext conftest$ac_exeext
31357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31358 (eval $ac_link) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); } &&
31362 { ac_try='test -s conftest$ac_exeext'
31363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31364 (eval $ac_try) 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; }; then
31368 eval "$as_ac_var=yes"
31369else
31370 echo "$as_me: failed program was:" >&5
31371sed 's/^/| /' conftest.$ac_ext >&5
31372
31373eval "$as_ac_var=no"
31374fi
31375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31376fi
31377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31378echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31379if test `eval echo '${'$as_ac_var'}'` = yes; then
31380 cat >>confdefs.h <<_ACEOF
31381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31382_ACEOF
31383
31384 cat >>confdefs.h <<\_ACEOF
10f2d63a 31385#define HAVE_DLOPEN 1
e6cc62c6 31386_ACEOF
10f2d63a 31387
3a922bb4 31388 HAVE_DL_FUNCS=1
e6cc62c6 31389
10f2d63a 31390else
e6cc62c6
VS
31391
31392 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31393echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31394if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31395 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31396else
e6cc62c6 31397 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31398LIBS="-ldl $LIBS"
e6cc62c6
VS
31399cat >conftest.$ac_ext <<_ACEOF
31400#line $LINENO "configure"
31401/* confdefs.h. */
31402_ACEOF
31403cat confdefs.h >>conftest.$ac_ext
31404cat >>conftest.$ac_ext <<_ACEOF
31405/* end confdefs.h. */
31406
10f2d63a 31407/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31408#ifdef __cplusplus
31409extern "C"
31410#endif
10f2d63a 31411/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31412 builtin and then its argument prototype would still apply. */
31413char dlopen ();
31414int
31415main ()
31416{
31417dlopen ();
31418 ;
31419 return 0;
31420}
31421_ACEOF
31422rm -f conftest.$ac_objext conftest$ac_exeext
31423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31424 (eval $ac_link) 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -s conftest$ac_exeext'
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; }; then
31434 ac_cv_lib_dl_dlopen=yes
31435else
31436 echo "$as_me: failed program was:" >&5
31437sed 's/^/| /' conftest.$ac_ext >&5
31438
31439ac_cv_lib_dl_dlopen=no
31440fi
31441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31442LIBS=$ac_check_lib_save_LIBS
31443fi
31444echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31446if test $ac_cv_lib_dl_dlopen = yes; then
31447
31448 cat >>confdefs.h <<\_ACEOF
10f2d63a 31449#define HAVE_DLOPEN 1
e6cc62c6 31450_ACEOF
10f2d63a 31451
3a922bb4 31452 HAVE_DL_FUNCS=1
3d63bc3a 31453 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31454
10f2d63a 31455else
10f2d63a 31456
e6cc62c6
VS
31457
31458for ac_func in shl_load
10f2d63a 31459do
e6cc62c6
VS
31460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31461echo "$as_me:$LINENO: checking for $ac_func" >&5
31462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31463if eval "test \"\${$as_ac_var+set}\" = set"; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31465else
31466 cat >conftest.$ac_ext <<_ACEOF
31467#line $LINENO "configure"
31468/* confdefs.h. */
31469_ACEOF
31470cat confdefs.h >>conftest.$ac_ext
31471cat >>conftest.$ac_ext <<_ACEOF
31472/* end confdefs.h. */
10f2d63a 31473/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31474 which can conflict with char $ac_func (); below.
31475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476 <limits.h> exists even on freestanding compilers. */
31477#ifdef __STDC__
31478# include <limits.h>
31479#else
31480# include <assert.h>
31481#endif
10f2d63a 31482/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31483#ifdef __cplusplus
31484extern "C"
31485{
31486#endif
10f2d63a 31487/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31488 builtin and then its argument prototype would still apply. */
31489char $ac_func ();
10f2d63a
VZ
31490/* The GNU C library defines this for functions which it implements
31491 to always fail with ENOSYS. Some functions are actually named
31492 something starting with __ and the normal name is an alias. */
31493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31494choke me
31495#else
e6cc62c6
VS
31496char (*f) () = $ac_func;
31497#endif
31498#ifdef __cplusplus
31499}
10f2d63a
VZ
31500#endif
31501
e6cc62c6
VS
31502int
31503main ()
31504{
31505return f != $ac_func;
31506 ;
31507 return 0;
31508}
31509_ACEOF
31510rm -f conftest.$ac_objext conftest$ac_exeext
31511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31512 (eval $ac_link) 2>&5
31513 ac_status=$?
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); } &&
31516 { ac_try='test -s conftest$ac_exeext'
31517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31518 (eval $ac_try) 2>&5
31519 ac_status=$?
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); }; }; then
31522 eval "$as_ac_var=yes"
31523else
31524 echo "$as_me: failed program was:" >&5
31525sed 's/^/| /' conftest.$ac_ext >&5
31526
31527eval "$as_ac_var=no"
31528fi
31529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31530fi
31531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31533if test `eval echo '${'$as_ac_var'}'` = yes; then
31534 cat >>confdefs.h <<_ACEOF
31535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31536_ACEOF
31537
31538 cat >>confdefs.h <<\_ACEOF
10f2d63a 31539#define HAVE_SHL_LOAD 1
e6cc62c6 31540_ACEOF
10f2d63a 31541
3a922bb4 31542 HAVE_SHL_FUNCS=1
e6cc62c6 31543
10f2d63a 31544else
e6cc62c6
VS
31545
31546 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31547echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31548if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31549 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31550else
e6cc62c6 31551 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31552LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31553cat >conftest.$ac_ext <<_ACEOF
31554#line $LINENO "configure"
31555/* confdefs.h. */
31556_ACEOF
31557cat confdefs.h >>conftest.$ac_ext
31558cat >>conftest.$ac_ext <<_ACEOF
31559/* end confdefs.h. */
31560
8284b0c5 31561/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31562#ifdef __cplusplus
31563extern "C"
31564#endif
f6bcfd97 31565/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31566 builtin and then its argument prototype would still apply. */
31567char dld ();
31568int
31569main ()
31570{
31571dld ();
31572 ;
31573 return 0;
31574}
31575_ACEOF
31576rm -f conftest.$ac_objext conftest$ac_exeext
31577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31578 (eval $ac_link) 2>&5
31579 ac_status=$?
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); } &&
31582 { ac_try='test -s conftest$ac_exeext'
31583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31584 (eval $ac_try) 2>&5
31585 ac_status=$?
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; }; then
31588 ac_cv_lib_shl_load_dld=yes
31589else
31590 echo "$as_me: failed program was:" >&5
31591sed 's/^/| /' conftest.$ac_ext >&5
31592
31593ac_cv_lib_shl_load_dld=no
31594fi
31595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31596LIBS=$ac_check_lib_save_LIBS
31597fi
31598echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31599echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31600if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31601
3a922bb4 31602 HAVE_SHL_FUNCS=1
3d63bc3a 31603 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31604
f6bcfd97
BP
31605fi
31606
e6cc62c6 31607
10f2d63a
VZ
31608fi
31609done
31610
e6cc62c6 31611
10f2d63a
VZ
31612fi
31613
e6cc62c6 31614
10f2d63a
VZ
31615fi
31616done
31617
5c6fa7d2 31618
8284b0c5 31619 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31620
31621for ac_func in dlerror
f6bcfd97 31622do
e6cc62c6
VS
31623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31624echo "$as_me:$LINENO: checking for $ac_func" >&5
31625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31626if eval "test \"\${$as_ac_var+set}\" = set"; then
31627 echo $ECHO_N "(cached) $ECHO_C" >&6
31628else
31629 cat >conftest.$ac_ext <<_ACEOF
31630#line $LINENO "configure"
31631/* confdefs.h. */
31632_ACEOF
31633cat confdefs.h >>conftest.$ac_ext
31634cat >>conftest.$ac_ext <<_ACEOF
31635/* end confdefs.h. */
f6bcfd97 31636/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31637 which can conflict with char $ac_func (); below.
31638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31639 <limits.h> exists even on freestanding compilers. */
31640#ifdef __STDC__
31641# include <limits.h>
31642#else
31643# include <assert.h>
31644#endif
f6bcfd97 31645/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31646#ifdef __cplusplus
31647extern "C"
31648{
31649#endif
f6bcfd97 31650/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31651 builtin and then its argument prototype would still apply. */
31652char $ac_func ();
f6bcfd97
BP
31653/* The GNU C library defines this for functions which it implements
31654 to always fail with ENOSYS. Some functions are actually named
31655 something starting with __ and the normal name is an alias. */
31656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31657choke me
31658#else
e6cc62c6
VS
31659char (*f) () = $ac_func;
31660#endif
31661#ifdef __cplusplus
31662}
f6bcfd97
BP
31663#endif
31664
e6cc62c6
VS
31665int
31666main ()
31667{
31668return f != $ac_func;
31669 ;
31670 return 0;
31671}
31672_ACEOF
31673rm -f conftest.$ac_objext conftest$ac_exeext
31674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31675 (eval $ac_link) 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); } &&
31679 { ac_try='test -s conftest$ac_exeext'
31680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31681 (eval $ac_try) 2>&5
31682 ac_status=$?
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
31685 eval "$as_ac_var=yes"
31686else
31687 echo "$as_me: failed program was:" >&5
31688sed 's/^/| /' conftest.$ac_ext >&5
31689
31690eval "$as_ac_var=no"
31691fi
31692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31693fi
31694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31695echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31696if test `eval echo '${'$as_ac_var'}'` = yes; then
31697 cat >>confdefs.h <<_ACEOF
31698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31699_ACEOF
31700 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31701#define HAVE_DLERROR 1
e6cc62c6 31702_ACEOF
f6bcfd97
BP
31703
31704else
e6cc62c6
VS
31705 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31706echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31707if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31708 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31709else
e6cc62c6 31710 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31711LIBS="-ldl $LIBS"
e6cc62c6
VS
31712cat >conftest.$ac_ext <<_ACEOF
31713#line $LINENO "configure"
31714/* confdefs.h. */
31715_ACEOF
31716cat confdefs.h >>conftest.$ac_ext
31717cat >>conftest.$ac_ext <<_ACEOF
31718/* end confdefs.h. */
31719
f6bcfd97 31720/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31721#ifdef __cplusplus
31722extern "C"
31723#endif
f6bcfd97 31724/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31725 builtin and then its argument prototype would still apply. */
31726char dlerror ();
31727int
31728main ()
31729{
31730dlerror ();
31731 ;
31732 return 0;
31733}
31734_ACEOF
31735rm -f conftest.$ac_objext conftest$ac_exeext
31736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31737 (eval $ac_link) 2>&5
31738 ac_status=$?
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); } &&
31741 { ac_try='test -s conftest$ac_exeext'
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
31747 ac_cv_lib_dl_dlerror=yes
31748else
31749 echo "$as_me: failed program was:" >&5
31750sed 's/^/| /' conftest.$ac_ext >&5
31751
31752ac_cv_lib_dl_dlerror=no
31753fi
31754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31755LIBS=$ac_check_lib_save_LIBS
31756fi
31757echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31758echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31759if test $ac_cv_lib_dl_dlerror = yes; then
31760 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31761#define HAVE_DLERROR 1
e6cc62c6 31762_ACEOF
f6bcfd97 31763
f6bcfd97
BP
31764fi
31765
31766fi
31767done
31768
3a922bb4
RL
31769 fi
31770 fi
f6bcfd97 31771
3a922bb4
RL
31772 if test "$HAVE_DL_FUNCS" = 0; then
31773 if test "$HAVE_SHL_FUNCS" = 0; then
31774 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31775 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31776echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31777 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31778 wxUSE_DYNLIB_CLASS=no
31779 else
e6cc62c6
VS
31780 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31781echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31782 fi
31783 fi
10f2d63a
VZ
31784 fi
31785 fi
31786fi
31787
0b9ab0bd 31788if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31789 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31790#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31791_ACEOF
0b9ab0bd
RL
31792
31793elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31794 cat >>confdefs.h <<\_ACEOF
10f2d63a 31795#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31796_ACEOF
10f2d63a
VZ
31797
31798fi
31799
8284b0c5 31800
1e6feb95 31801if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31802 cat >>confdefs.h <<\_ACEOF
1e6feb95 31803#define wxUSE_FONTMAP 1
e6cc62c6 31804_ACEOF
1e6feb95
VZ
31805
31806fi
31807
10f2d63a 31808if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31809 cat >>confdefs.h <<\_ACEOF
10f2d63a 31810#define wxUSE_UNICODE 1
e6cc62c6 31811_ACEOF
10f2d63a 31812
8284b0c5 31813
bbc3925a
VS
31814 if test "$wxUSE_MSW" != 1; then
31815 wxUSE_UNICODE_MSLU=no
31816 fi
a72a4bfa
VS
31817
31818 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
31819 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
31820echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
31821if test "${ac_cv_lib_unicows_main+set}" = set; then
31822 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 31823else
e6cc62c6 31824 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 31825LIBS="-lunicows $LIBS"
e6cc62c6
VS
31826cat >conftest.$ac_ext <<_ACEOF
31827#line $LINENO "configure"
31828/* confdefs.h. */
31829_ACEOF
31830cat confdefs.h >>conftest.$ac_ext
31831cat >>conftest.$ac_ext <<_ACEOF
31832/* end confdefs.h. */
a72a4bfa 31833
8284b0c5 31834
e6cc62c6
VS
31835int
31836main ()
31837{
31838main ();
31839 ;
31840 return 0;
31841}
31842_ACEOF
31843rm -f conftest.$ac_objext conftest$ac_exeext
31844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31845 (eval $ac_link) 2>&5
31846 ac_status=$?
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } &&
31849 { ac_try='test -s conftest$ac_exeext'
31850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31851 (eval $ac_try) 2>&5
31852 ac_status=$?
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); }; }; then
31855 ac_cv_lib_unicows_main=yes
31856else
31857 echo "$as_me: failed program was:" >&5
31858sed 's/^/| /' conftest.$ac_ext >&5
31859
31860ac_cv_lib_unicows_main=no
31861fi
31862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31863LIBS=$ac_check_lib_save_LIBS
31864fi
31865echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
31866echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
31867if test $ac_cv_lib_unicows_main = yes; then
31868
31869 cat >>confdefs.h <<\_ACEOF
a72a4bfa 31870#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
31871_ACEOF
31872
a72a4bfa 31873
a72a4bfa 31874else
a72a4bfa 31875
e6cc62c6
VS
31876 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31877 Applications will only run on Windows NT/2000/XP!" >&5
31878echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
31879 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 31880 wxUSE_UNICODE_MSLU=no
e6cc62c6 31881
a72a4bfa
VS
31882fi
31883
31884 fi
10f2d63a
VZ
31885fi
31886
10f2d63a 31887if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 31888 cat >>confdefs.h <<\_ACEOF
10f2d63a 31889#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 31890_ACEOF
10f2d63a
VZ
31891
31892fi
31893
8284b0c5 31894
10f2d63a 31895if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 31896 cat >>confdefs.h <<\_ACEOF
10f2d63a 31897#define wxUSE_POSTSCRIPT 1
e6cc62c6 31898_ACEOF
10f2d63a
VZ
31899
31900fi
31901
e6cc62c6 31902cat >>confdefs.h <<\_ACEOF
10f2d63a 31903#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 31904_ACEOF
10f2d63a 31905
8284b0c5 31906
e6cc62c6 31907cat >>confdefs.h <<\_ACEOF
10f2d63a 31908#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 31909_ACEOF
10f2d63a 31910
8284b0c5
MB
31911
31912
10f2d63a 31913if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 31914 cat >>confdefs.h <<\_ACEOF
10f2d63a 31915#define wxUSE_CONSTRAINTS 1
e6cc62c6 31916_ACEOF
10f2d63a
VZ
31917
31918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
31919fi
31920
31921if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 31922
8284b0c5 31923
bb811f17 31924 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
e6cc62c6 31925 cat >>confdefs.h <<\_ACEOF
10f2d63a 31926#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 31927_ACEOF
10f2d63a 31928
bb811f17
JS
31929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
31930 fi
10f2d63a
VZ
31931fi
31932
31933if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 31934 cat >>confdefs.h <<\_ACEOF
10f2d63a 31935#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 31936_ACEOF
10f2d63a
VZ
31937
31938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
31939 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
31940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
31941 fi
31942fi
31943
31944if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 31945 cat >>confdefs.h <<\_ACEOF
10f2d63a 31946#define wxUSE_HELP 1
e6cc62c6 31947_ACEOF
10f2d63a
VZ
31948
31949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 31950
77e13408 31951 if test "$wxUSE_MSW" = 1; then
031d8228 31952 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 31953 cat >>confdefs.h <<\_ACEOF
29fd3c0c 31954#define wxUSE_MS_HTML_HELP 1
e6cc62c6 31955_ACEOF
29fd3c0c 31956
3e44f09d 31957 fi
3379ed37 31958 fi
031d8228
VS
31959
31960 if test "$wxUSE_WXHTML_HELP" = "yes"; then
31961 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 31962 cat >>confdefs.h <<\_ACEOF
031d8228 31963#define wxUSE_WXHTML_HELP 1
e6cc62c6 31964_ACEOF
031d8228
VS
31965
31966 else
e6cc62c6
VS
31967 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
31968echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
31969 wxUSE_WXHTML_HELP=no
31970 fi
31971 fi
10f2d63a
VZ
31972fi
31973
31974if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
31975 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
31976 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
31977echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 31978 else
e6cc62c6 31979 cat >>confdefs.h <<\_ACEOF
10f2d63a 31980#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 31981_ACEOF
10f2d63a
VZ
31982
31983 fi
31984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
31985fi
31986
e6cc62c6
VS
31987if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
31988 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
31989echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
31990 { (exit 1); exit 1; }; }
31991fi
31992
31993
31994if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
31995 -o "$wxUSE_CLIPBOARD" = "yes" \
31996 -o "$wxUSE_OLE" = "yes" \
31997 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
31998
31999for ac_header in ole2.h
32000do
32001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32002if eval "test \"\${$as_ac_Header+set}\" = set"; then
32003 echo "$as_me:$LINENO: checking for $ac_header" >&5
32004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32005if eval "test \"\${$as_ac_Header+set}\" = set"; then
32006 echo $ECHO_N "(cached) $ECHO_C" >&6
32007fi
32008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32010else
32011 # Is the header compilable?
32012echo "$as_me:$LINENO: checking $ac_header usability" >&5
32013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32014cat >conftest.$ac_ext <<_ACEOF
32015#line $LINENO "configure"
32016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
32021$ac_includes_default
32022#include <$ac_header>
32023_ACEOF
32024rm -f conftest.$ac_objext
32025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32026 (eval $ac_compile) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); } &&
32030 { ac_try='test -s conftest.$ac_objext'
32031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032 (eval $ac_try) 2>&5
32033 ac_status=$?
32034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035 (exit $ac_status); }; }; then
32036 ac_header_compiler=yes
32037else
32038 echo "$as_me: failed program was:" >&5
32039sed 's/^/| /' conftest.$ac_ext >&5
32040
32041ac_header_compiler=no
32042fi
32043rm -f conftest.$ac_objext conftest.$ac_ext
32044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32045echo "${ECHO_T}$ac_header_compiler" >&6
32046
32047# Is the header present?
32048echo "$as_me:$LINENO: checking $ac_header presence" >&5
32049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32050cat >conftest.$ac_ext <<_ACEOF
32051#line $LINENO "configure"
32052/* confdefs.h. */
32053_ACEOF
32054cat confdefs.h >>conftest.$ac_ext
32055cat >>conftest.$ac_ext <<_ACEOF
32056/* end confdefs.h. */
32057#include <$ac_header>
32058_ACEOF
32059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32061 ac_status=$?
32062 grep -v '^ *+' conftest.er1 >conftest.err
32063 rm -f conftest.er1
32064 cat conftest.err >&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); } >/dev/null; then
32067 if test -s conftest.err; then
32068 ac_cpp_err=$ac_c_preproc_warn_flag
32069 else
32070 ac_cpp_err=
32071 fi
32072else
32073 ac_cpp_err=yes
32074fi
32075if test -z "$ac_cpp_err"; then
32076 ac_header_preproc=yes
32077else
32078 echo "$as_me: failed program was:" >&5
32079sed 's/^/| /' conftest.$ac_ext >&5
32080
32081 ac_header_preproc=no
32082fi
32083rm -f conftest.err conftest.$ac_ext
32084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32085echo "${ECHO_T}$ac_header_preproc" >&6
32086
32087# So? What about this header?
32088case $ac_header_compiler:$ac_header_preproc in
32089 yes:no )
32090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32094 (
32095 cat <<\_ASBOX
32096## ------------------------------------ ##
32097## Report this to bug-autoconf@gnu.org. ##
32098## ------------------------------------ ##
32099_ASBOX
32100 ) |
32101 sed "s/^/$as_me: WARNING: /" >&2
32102 ;;
32103 no:yes )
32104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32107echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32110 (
32111 cat <<\_ASBOX
32112## ------------------------------------ ##
32113## Report this to bug-autoconf@gnu.org. ##
32114## ------------------------------------ ##
32115_ASBOX
32116 ) |
32117 sed "s/^/$as_me: WARNING: /" >&2
32118 ;;
32119esac
32120echo "$as_me:$LINENO: checking for $ac_header" >&5
32121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32122if eval "test \"\${$as_ac_Header+set}\" = set"; then
32123 echo $ECHO_N "(cached) $ECHO_C" >&6
32124else
32125 eval "$as_ac_Header=$ac_header_preproc"
32126fi
32127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32129
10f2d63a 32130fi
e6cc62c6
VS
32131if test `eval echo '${'$as_ac_Header'}'` = yes; then
32132 cat >>confdefs.h <<_ACEOF
32133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32134_ACEOF
10f2d63a 32135
10f2d63a 32136fi
e6cc62c6 32137
10f2d63a
VZ
32138done
32139
8284b0c5 32140
2b9bdf71
VZ
32141 if test "$ac_cv_header_ole2_h" = "yes" ; then
32142 if test "$GCC" = yes ; then
8284b0c5
MB
32143
32144
e6cc62c6
VS
32145 ac_ext=cc
32146ac_cpp='$CXXCPP $CPPFLAGS'
32147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32150
32151
32152 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32153echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32154 cat >conftest.$ac_ext <<_ACEOF
32155#line $LINENO "configure"
32156/* confdefs.h. */
32157_ACEOF
32158cat confdefs.h >>conftest.$ac_ext
32159cat >>conftest.$ac_ext <<_ACEOF
32160/* end confdefs.h. */
8284b0c5
MB
32161#include <windows.h>
32162 #include <ole2.h>
e6cc62c6
VS
32163int
32164main ()
32165{
8284b0c5 32166
e6cc62c6
VS
32167 ;
32168 return 0;
32169}
32170_ACEOF
32171rm -f conftest.$ac_objext
32172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32173 (eval $ac_compile) 2>&5
32174 ac_status=$?
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
32177 { ac_try='test -s conftest.$ac_objext'
32178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32179 (eval $ac_try) 2>&5
32180 ac_status=$?
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); }; }; then
32183 echo "$as_me:$LINENO: result: no" >&5
32184echo "${ECHO_T}no" >&6
32185else
32186 echo "$as_me: failed program was:" >&5
32187sed 's/^/| /' conftest.$ac_ext >&5
32188
32189echo "$as_me:$LINENO: result: yes" >&5
32190echo "${ECHO_T}yes" >&6
8284b0c5
MB
32191 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32192fi
e6cc62c6 32193rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32194 ac_ext=c
8284b0c5 32195ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32199
2b9bdf71 32200 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32201 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32202 cat >>confdefs.h <<\_ACEOF
4f11a343 32203#define wxUSE_OLE 1
e6cc62c6 32204_ACEOF
4f11a343 32205
8284b0c5 32206
2b9bdf71
VZ
32207 fi
32208
e6cc62c6 32209 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32210#define wxUSE_DATAOBJ 1
e6cc62c6 32211_ACEOF
2b9bdf71
VZ
32212
32213 else
e6cc62c6
VS
32214 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32215echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32216
32217 wxUSE_CLIPBOARD=no
32218 wxUSE_DRAG_AND_DROP=no
32219 wxUSE_DATAOBJ=no
3bce6687
JS
32220 wxUSE_OLE=no
32221 fi
32222
32223 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32224 cat >>confdefs.h <<\_ACEOF
3bce6687 32225#define wxUSE_METAFILE 1
e6cc62c6 32226_ACEOF
3bce6687
JS
32227
32228
e6cc62c6 32229 cat >>confdefs.h <<\_ACEOF
3bce6687 32230#define wxUSE_ENH_METAFILE 1
e6cc62c6 32231_ACEOF
3bce6687
JS
32232
32233 fi
32234fi
32235
2b9bdf71
VZ
32236if test "$wxUSE_IPC" = "yes"; then
32237 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32238 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32239echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32240 fi
32241
e6cc62c6 32242 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32243#define wxUSE_IPC 1
e6cc62c6 32244_ACEOF
2b9bdf71
VZ
32245
32246fi
32247
32248if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32249 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32250 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32251echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32252 wxUSE_CLIPBOARD=no
32253 fi
32254
32255 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32256 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32257#define wxUSE_CLIPBOARD 1
e6cc62c6 32258_ACEOF
2b9bdf71 32259
8284b0c5 32260
e6cc62c6 32261 cat >>confdefs.h <<\_ACEOF
673f4220 32262#define wxUSE_DATAOBJ 1
e6cc62c6 32263_ACEOF
673f4220 32264
6c657b52 32265 fi
2b9bdf71
VZ
32266fi
32267
32268if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32269 if test "$wxUSE_GTK" = 1; then
32270 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32271 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32272echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32273 wxUSE_DRAG_AND_DROP=no
32274 fi
32275 fi
32276
2b9bdf71 32277 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32278 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32279echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32280 wxUSE_DRAG_AND_DROP=no
32281 fi
32282
f79bd02d 32283 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32284 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32285echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32286 wxUSE_DRAG_AND_DROP=no
32287 fi
32288
6c657b52 32289 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32290 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32291echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32292 wxUSE_DRAG_AND_DROP=no
32293 fi
32294
10f2d63a 32295 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32296 cat >>confdefs.h <<\_ACEOF
10f2d63a 32297#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32298_ACEOF
10f2d63a
VZ
32299
32300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32301 fi
32302
32303fi
32304
32305if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32306 cat >>confdefs.h <<\_ACEOF
10f2d63a 32307#define wxUSE_SPLINES 1
e6cc62c6 32308_ACEOF
10f2d63a
VZ
32309
32310fi
32311
8284b0c5 32312
1e6feb95
VZ
32313USES_CONTROLS=0
32314if test "$wxUSE_CONTROLS" = "yes"; then
32315 USES_CONTROLS=1
32316fi
32317
10f2d63a 32318if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32319 cat >>confdefs.h <<\_ACEOF
10f2d63a 32320#define wxUSE_ACCEL 1
e6cc62c6 32321_ACEOF
10f2d63a 32322
1e6feb95
VZ
32323 USES_CONTROLS=1
32324fi
32325
32326if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32327 cat >>confdefs.h <<\_ACEOF
1e6feb95 32328#define wxUSE_BUTTON 1
e6cc62c6 32329_ACEOF
1e6feb95
VZ
32330
32331 USES_CONTROLS=1
32332fi
32333
32334if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32335 cat >>confdefs.h <<\_ACEOF
1e6feb95 32336#define wxUSE_BMPBUTTON 1
e6cc62c6 32337_ACEOF
1e6feb95
VZ
32338
32339 USES_CONTROLS=1
32340fi
32341
32342if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32343 cat >>confdefs.h <<\_ACEOF
1e6feb95 32344#define wxUSE_CALENDARCTRL 1
e6cc62c6 32345_ACEOF
1e6feb95
VZ
32346
32347 USES_CONTROLS=1
32348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32349fi
32350
32351if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32352 cat >>confdefs.h <<\_ACEOF
10f2d63a 32353#define wxUSE_CARET 1
e6cc62c6 32354_ACEOF
10f2d63a 32355
1e6feb95 32356 USES_CONTROLS=1
10f2d63a
VZ
32357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32358fi
32359
32360if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32361 cat >>confdefs.h <<\_ACEOF
10f2d63a 32362#define wxUSE_COMBOBOX 1
e6cc62c6 32363_ACEOF
10f2d63a 32364
1e6feb95 32365 USES_CONTROLS=1
10f2d63a
VZ
32366fi
32367
32368if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32369 cat >>confdefs.h <<\_ACEOF
10f2d63a 32370#define wxUSE_CHOICE 1
e6cc62c6 32371_ACEOF
10f2d63a 32372
1e6feb95 32373 USES_CONTROLS=1
10f2d63a
VZ
32374fi
32375
32376if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32377 cat >>confdefs.h <<\_ACEOF
10f2d63a 32378#define wxUSE_CHECKBOX 1
e6cc62c6 32379_ACEOF
10f2d63a 32380
1e6feb95 32381 USES_CONTROLS=1
10f2d63a
VZ
32382fi
32383
32384if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32385 cat >>confdefs.h <<\_ACEOF
10f2d63a 32386#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32387_ACEOF
10f2d63a 32388
1e6feb95 32389 USES_CONTROLS=1
10f2d63a
VZ
32390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32391fi
32392
da494b40 32393if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32394 cat >>confdefs.h <<\_ACEOF
da494b40 32395#define wxUSE_DISPLAY 1
e6cc62c6 32396_ACEOF
da494b40
MB
32397
32398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32399fi
32400
10f2d63a 32401if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32402 cat >>confdefs.h <<\_ACEOF
10f2d63a 32403#define wxUSE_GAUGE 1
e6cc62c6 32404_ACEOF
10f2d63a 32405
1e6feb95 32406 USES_CONTROLS=1
10f2d63a
VZ
32407fi
32408
d6a55c4b 32409if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32410 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32411#define wxUSE_GRID 1
e6cc62c6 32412_ACEOF
10f2d63a 32413
1e6feb95 32414 USES_CONTROLS=1
d6a55c4b 32415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32416fi
32417
32418if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32419 cat >>confdefs.h <<\_ACEOF
10f2d63a 32420#define wxUSE_IMAGLIST 1
e6cc62c6 32421_ACEOF
10f2d63a
VZ
32422
32423fi
32424
32425if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32426 cat >>confdefs.h <<\_ACEOF
10f2d63a 32427#define wxUSE_LISTBOX 1
e6cc62c6 32428_ACEOF
10f2d63a 32429
1e6feb95 32430 USES_CONTROLS=1
10f2d63a
VZ
32431fi
32432
32433if test "$wxUSE_LISTCTRL" = "yes"; then
32434 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32435 cat >>confdefs.h <<\_ACEOF
10f2d63a 32436#define wxUSE_LISTCTRL 1
e6cc62c6 32437_ACEOF
10f2d63a 32438
1e6feb95 32439 USES_CONTROLS=1
10f2d63a
VZ
32440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32441 else
e6cc62c6
VS
32442 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32443echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32444 fi
32445fi
32446
32447if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32448 cat >>confdefs.h <<\_ACEOF
10f2d63a 32449#define wxUSE_NOTEBOOK 1
e6cc62c6 32450_ACEOF
10f2d63a 32451
1e6feb95 32452 USES_CONTROLS=1
10f2d63a
VZ
32453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32454fi
32455
24176f2c 32456
10f2d63a 32457if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32458 cat >>confdefs.h <<\_ACEOF
10f2d63a 32459#define wxUSE_RADIOBOX 1
e6cc62c6 32460_ACEOF
10f2d63a 32461
1e6feb95 32462 USES_CONTROLS=1
10f2d63a
VZ
32463fi
32464
32465if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32466 cat >>confdefs.h <<\_ACEOF
10f2d63a 32467#define wxUSE_RADIOBTN 1
e6cc62c6 32468_ACEOF
10f2d63a 32469
1e6feb95 32470 USES_CONTROLS=1
10f2d63a
VZ
32471fi
32472
32473if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32474 cat >>confdefs.h <<\_ACEOF
10f2d63a 32475#define wxUSE_SASH 1
e6cc62c6 32476_ACEOF
10f2d63a
VZ
32477
32478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32479fi
32480
32481if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32482 cat >>confdefs.h <<\_ACEOF
10f2d63a 32483#define wxUSE_SCROLLBAR 1
e6cc62c6 32484_ACEOF
10f2d63a 32485
1e6feb95 32486 USES_CONTROLS=1
741a9306 32487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32488fi
32489
32490if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32491 cat >>confdefs.h <<\_ACEOF
10f2d63a 32492#define wxUSE_SLIDER 1
e6cc62c6 32493_ACEOF
10f2d63a 32494
1e6feb95 32495 USES_CONTROLS=1
10f2d63a
VZ
32496fi
32497
32498if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32499 cat >>confdefs.h <<\_ACEOF
10f2d63a 32500#define wxUSE_SPINBTN 1
e6cc62c6 32501_ACEOF
10f2d63a 32502
1e6feb95 32503 USES_CONTROLS=1
10f2d63a
VZ
32504fi
32505
56cfaa52 32506if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32507 cat >>confdefs.h <<\_ACEOF
56cfaa52 32508#define wxUSE_SPINCTRL 1
e6cc62c6 32509_ACEOF
56cfaa52 32510
1e6feb95 32511 USES_CONTROLS=1
56cfaa52
RR
32512fi
32513
10f2d63a 32514if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32515 cat >>confdefs.h <<\_ACEOF
10f2d63a 32516#define wxUSE_SPLITTER 1
e6cc62c6 32517_ACEOF
10f2d63a
VZ
32518
32519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32520fi
32521
32522if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32523 cat >>confdefs.h <<\_ACEOF
10f2d63a 32524#define wxUSE_STATBMP 1
e6cc62c6 32525_ACEOF
10f2d63a 32526
1e6feb95 32527 USES_CONTROLS=1
10f2d63a
VZ
32528fi
32529
32530if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32531 cat >>confdefs.h <<\_ACEOF
10f2d63a 32532#define wxUSE_STATBOX 1
e6cc62c6 32533_ACEOF
10f2d63a 32534
1e6feb95
VZ
32535 USES_CONTROLS=1
32536fi
32537
32538if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32539 cat >>confdefs.h <<\_ACEOF
1e6feb95 32540#define wxUSE_STATTEXT 1
e6cc62c6 32541_ACEOF
1e6feb95
VZ
32542
32543 USES_CONTROLS=1
10f2d63a
VZ
32544fi
32545
32546if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32547 cat >>confdefs.h <<\_ACEOF
10f2d63a 32548#define wxUSE_STATLINE 1
e6cc62c6 32549_ACEOF
10f2d63a 32550
89e6bf6d 32551 USES_CONTROLS=1
10f2d63a
VZ
32552fi
32553
32554if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32555 cat >>confdefs.h <<\_ACEOF
10f2d63a 32556#define wxUSE_STATUSBAR 1
e6cc62c6 32557_ACEOF
10f2d63a 32558
1e6feb95 32559 USES_CONTROLS=1
698dcdb6 32560
2286341c 32561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32562fi
32563
32564if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32565 cat >>confdefs.h <<\_ACEOF
10f2d63a 32566#define wxUSE_TAB_DIALOG 1
e6cc62c6 32567_ACEOF
10f2d63a
VZ
32568
32569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32570fi
32571
1e6feb95 32572if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32573 cat >>confdefs.h <<\_ACEOF
1e6feb95 32574#define wxUSE_TEXTCTRL 1
e6cc62c6 32575_ACEOF
1e6feb95
VZ
32576
32577 USES_CONTROLS=1
32578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32579fi
32580
1db8dc4a 32581if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32582 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32583 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32584echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32585 wxUSE_TOGGLEBTN=no
32586 fi
32587 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32588 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32589echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32590 wxUSE_TOGGLEBTN=no
32591 fi
32592
32593 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32594 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32595#define wxUSE_TOGGLEBTN 1
e6cc62c6 32596_ACEOF
1db8dc4a 32597
1e6feb95 32598 USES_CONTROLS=1
a45d7ab7 32599 fi
1db8dc4a
VZ
32600fi
32601
360d6699 32602if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32603 cat >>confdefs.h <<\_ACEOF
360d6699 32604#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32605_ACEOF
360d6699
VZ
32606
32607 wxUSE_TOOLBAR="yes"
1e6feb95 32608 USES_CONTROLS=1
360d6699
VZ
32609fi
32610
10f2d63a 32611if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32612 cat >>confdefs.h <<\_ACEOF
10f2d63a 32613#define wxUSE_TOOLBAR 1
e6cc62c6 32614_ACEOF
10f2d63a 32615
1e6feb95 32616 USES_CONTROLS=1
698dcdb6 32617
360d6699
VZ
32618 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32619 wxUSE_TOOLBAR_NATIVE="yes"
32620 fi
32621
1e6feb95 32622 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32623 cat >>confdefs.h <<\_ACEOF
360d6699 32624#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32625_ACEOF
360d6699 32626
1e6feb95
VZ
32627 USES_CONTROLS=1
32628 fi
32629
32630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32631fi
32632
10f2d63a
VZ
32633if test "$wxUSE_TOOLTIPS" = "yes"; then
32634 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32635 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32636echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32637 else
89e6bf6d 32638 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32639 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32640echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32641 else
e6cc62c6 32642 cat >>confdefs.h <<\_ACEOF
10f2d63a 32643#define wxUSE_TOOLTIPS 1
e6cc62c6 32644_ACEOF
10f2d63a
VZ
32645
32646 fi
32647 fi
32648fi
32649
32650if test "$wxUSE_TREECTRL" = "yes"; then
32651 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32652 cat >>confdefs.h <<\_ACEOF
10f2d63a 32653#define wxUSE_TREECTRL 1
e6cc62c6 32654_ACEOF
10f2d63a 32655
1e6feb95 32656 USES_CONTROLS=1
10f2d63a
VZ
32657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32658 else
e6cc62c6
VS
32659 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32660echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32661 fi
32662fi
32663
9f41d601 32664if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32665 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32666 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32667echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32668 else
485cf710 32669 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32670 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32671echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32672 else
3c011993 32673 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32674 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32675echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32676 else
e6cc62c6 32677 cat >>confdefs.h <<\_ACEOF
9f41d601 32678#define wxUSE_POPUPWIN 1
e6cc62c6 32679_ACEOF
9f41d601 32680
8284b0c5 32681
3c011993
VZ
32682 USES_CONTROLS=1
32683 fi
485cf710 32684 fi
6abe4b65 32685 fi
9f41d601
RR
32686fi
32687
dd964dcc 32688if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32689 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32690 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32691echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32692 else
e6cc62c6 32693 cat >>confdefs.h <<\_ACEOF
dd964dcc 32694#define wxUSE_TIPWINDOW 1
e6cc62c6 32695_ACEOF
dd964dcc 32696
3c011993 32697 fi
dd964dcc
VZ
32698fi
32699
1e6feb95 32700if test "$USES_CONTROLS" = 1; then
e6cc62c6 32701 cat >>confdefs.h <<\_ACEOF
1e6feb95 32702#define wxUSE_CONTROLS 1
e6cc62c6 32703_ACEOF
10f2d63a 32704
10f2d63a
VZ
32705fi
32706
8284b0c5 32707
1e6feb95 32708
24fd6d87 32709if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32710 cat >>confdefs.h <<\_ACEOF
24fd6d87 32711#define wxUSE_DRAGIMAGE 1
e6cc62c6 32712_ACEOF
24fd6d87
VZ
32713
32714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32715fi
32716
7bb2947d 32717if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32718 cat >>confdefs.h <<\_ACEOF
7bb2947d 32719#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32720_ACEOF
7bb2947d
MB
32721
32722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32723fi
32724
1e6feb95 32725if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32726 cat >>confdefs.h <<\_ACEOF
1e6feb95 32727#define wxUSE_MENUS 1
e6cc62c6 32728_ACEOF
10f2d63a 32729
1e6feb95 32730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32731fi
32732
1e6feb95 32733if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32734 cat >>confdefs.h <<\_ACEOF
1e6feb95 32735#define wxUSE_METAFILE 1
e6cc62c6 32736_ACEOF
10f2d63a 32737
10f2d63a
VZ
32738fi
32739
1e6feb95 32740if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32741 cat >>confdefs.h <<\_ACEOF
1e6feb95 32742#define wxUSE_MIMETYPE 1
e6cc62c6 32743_ACEOF
10f2d63a 32744
10f2d63a
VZ
32745fi
32746
3e44f09d 32747if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32748 cat >>confdefs.h <<\_ACEOF
3e44f09d 32749#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32750_ACEOF
3e44f09d 32751
321d2b14
VZ
32752if test "$TOOLKIT" = "MSW"; then
32753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32754fi
32755
3e44f09d
VZ
32756fi
32757
4cdb0ab0 32758if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca 32759 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32760 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
32761echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
3954f9ca
VS
32762 wxUSE_PROTOCOL=no
32763 fi
32764
32765 if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 32766 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32767#define wxUSE_PROTOCOL 1
e6cc62c6 32768_ACEOF
4cdb0ab0 32769
8284b0c5 32770
3954f9ca 32771 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
e6cc62c6 32772 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32773#define wxUSE_PROTOCOL_HTTP 1
e6cc62c6 32774_ACEOF
4cdb0ab0 32775
3954f9ca
VS
32776 fi
32777 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
e6cc62c6 32778 cat >>confdefs.h <<\_ACEOF
4cdb0ab0 32779#define wxUSE_PROTOCOL_FTP 1
e6cc62c6 32780_ACEOF
4cdb0ab0 32781
3954f9ca
VS
32782 fi
32783 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
e6cc62c6 32784 cat >>confdefs.h <<\_ACEOF
3954f9ca 32785#define wxUSE_PROTOCOL_FILE 1
e6cc62c6 32786_ACEOF
3954f9ca
VS
32787
32788 fi
4cdb0ab0 32789 fi
3954f9ca
VS
32790fi
32791
32792if test "$wxUSE_URL" = "yes"; then
32793 if test "$wxUSE_PROTOCOL" != "yes"; then
e6cc62c6
VS
32794 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
32795echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
3954f9ca
VS
32796 wxUSE_URL=no
32797 fi
32798 if test "$wxUSE_URL" = "yes"; then
e6cc62c6 32799 cat >>confdefs.h <<\_ACEOF
3954f9ca 32800#define wxUSE_URL 1
e6cc62c6 32801_ACEOF
4cdb0ab0
VS
32802
32803 fi
32804fi
32805
10f2d63a 32806if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32807 cat >>confdefs.h <<\_ACEOF
10f2d63a 32808#define wxUSE_MINIFRAME 1
e6cc62c6 32809_ACEOF
10f2d63a
VZ
32810
32811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32812fi
32813
32814if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32815 cat >>confdefs.h <<\_ACEOF
10f2d63a 32816#define wxUSE_HTML 1
e6cc62c6 32817_ACEOF
10f2d63a 32818
d2739ea6 32819 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox"
10f2d63a
VZ
32820fi
32821
32822if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32823 cat >>confdefs.h <<\_ACEOF
1e487827 32824#define wxUSE_VALIDATORS 1
e6cc62c6 32825_ACEOF
703e0a69 32826
698dcdb6
VZ
32827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32828fi
32829
edae8572 32830if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32831 cat >>confdefs.h <<\_ACEOF
edae8572 32832#define wxUSE_PALETTE 1
e6cc62c6 32833_ACEOF
edae8572
VZ
32834
32835fi
32836
698dcdb6 32837if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32838 cat >>confdefs.h <<\_ACEOF
698dcdb6 32839#define wxUSE_IMAGE 1
e6cc62c6 32840_ACEOF
698dcdb6
VZ
32841
32842fi
32843
32844if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32845 cat >>confdefs.h <<\_ACEOF
698dcdb6 32846#define wxUSE_GIF 1
e6cc62c6 32847_ACEOF
698dcdb6
VZ
32848
32849fi
32850
32851if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32852 cat >>confdefs.h <<\_ACEOF
698dcdb6 32853#define wxUSE_PCX 1
e6cc62c6 32854_ACEOF
698dcdb6
VZ
32855
32856fi
32857
4b6b4dfc 32858if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32859 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32860#define wxUSE_IFF 1
e6cc62c6 32861_ACEOF
4b6b4dfc
RR
32862
32863fi
32864
698dcdb6 32865if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 32866 cat >>confdefs.h <<\_ACEOF
698dcdb6 32867#define wxUSE_PNM 1
e6cc62c6 32868_ACEOF
698dcdb6
VZ
32869
32870fi
32871
32872if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 32873 cat >>confdefs.h <<\_ACEOF
698dcdb6 32874#define wxUSE_XPM 1
e6cc62c6 32875_ACEOF
698dcdb6
VZ
32876
32877fi
32878
658974ae 32879if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 32880 cat >>confdefs.h <<\_ACEOF
658974ae 32881#define wxUSE_ICO_CUR 1
e6cc62c6 32882_ACEOF
658974ae
VS
32883
32884fi
32885
a72a4bfa
VS
32886if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
32887 LIBS=" -lunicows $LIBS"
32888fi
32889
8284b0c5 32890
1e6feb95 32891if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 32892 cat >>confdefs.h <<\_ACEOF
1e6feb95 32893#define wxUSE_CHOICEDLG 1
e6cc62c6 32894_ACEOF
1e6feb95
VZ
32895
32896fi
32897
32898if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 32899 cat >>confdefs.h <<\_ACEOF
1e6feb95 32900#define wxUSE_COLOURDLG 1
e6cc62c6 32901_ACEOF
1e6feb95
VZ
32902
32903fi
32904
32905if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 32906 cat >>confdefs.h <<\_ACEOF
1e6feb95 32907#define wxUSE_FILEDLG 1
e6cc62c6 32908_ACEOF
1e6feb95
VZ
32909
32910fi
32911
8db37e06 32912if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 32913 cat >>confdefs.h <<\_ACEOF
8db37e06 32914#define wxUSE_FINDREPLDLG 1
e6cc62c6 32915_ACEOF
8db37e06
VZ
32916
32917fi
32918
1e6feb95 32919if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 32920 cat >>confdefs.h <<\_ACEOF
1e6feb95 32921#define wxUSE_FONTDLG 1
e6cc62c6 32922_ACEOF
1e6feb95
VZ
32923
32924fi
32925
32926if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 32927 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
32928 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
32929echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 32930 else
e6cc62c6 32931 cat >>confdefs.h <<\_ACEOF
1e6feb95 32932#define wxUSE_DIRDLG 1
e6cc62c6 32933_ACEOF
1e6feb95 32934
1e6feb95
VZ
32935 fi
32936fi
32937
32938if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 32939 cat >>confdefs.h <<\_ACEOF
1e6feb95 32940#define wxUSE_MSGDLG 1
e6cc62c6 32941_ACEOF
1e6feb95
VZ
32942
32943fi
32944
32945if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 32946 cat >>confdefs.h <<\_ACEOF
1e6feb95 32947#define wxUSE_NUMBERDLG 1
e6cc62c6 32948_ACEOF
1e6feb95
VZ
32949
32950fi
32951
32952if test "$wxUSE_PROGRESSDLG" = "yes"; then
32953 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32954 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
32955echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 32956 else
e6cc62c6 32957 cat >>confdefs.h <<\_ACEOF
1e6feb95 32958#define wxUSE_PROGRESSDLG 1
e6cc62c6 32959_ACEOF
1e6feb95
VZ
32960
32961 fi
32962fi
32963
cbca9943 32964if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 32965 cat >>confdefs.h <<\_ACEOF
cbca9943 32966#define wxUSE_SPLASH 1
e6cc62c6 32967_ACEOF
cbca9943
VZ
32968
32969fi
32970
1e6feb95
VZ
32971if test "$wxUSE_STARTUP_TIPS" = "yes"; then
32972 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32973 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
32974echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 32975 else
e6cc62c6 32976 cat >>confdefs.h <<\_ACEOF
1e6feb95 32977#define wxUSE_STARTUP_TIPS 1
e6cc62c6 32978_ACEOF
1e6feb95 32979
7b4a847f
RR
32980 fi
32981fi
579d8138 32982
8284b0c5 32983if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 32984 cat >>confdefs.h <<\_ACEOF
8284b0c5 32985#define wxUSE_TEXTDLG 1
e6cc62c6 32986_ACEOF
8284b0c5
MB
32987
32988fi
32989
32990if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 32991 cat >>confdefs.h <<\_ACEOF
8284b0c5 32992#define wxUSE_WIZARDDLG 1
e6cc62c6 32993_ACEOF
8284b0c5
MB
32994
32995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
32996fi
32997
32998
32999if test "$cross_compiling" = "yes"; then
33000 OSINFO="\"$host\""
33001else
33002 OSINFO=`uname -s -r -m`
33003 OSINFO="\"$OSINFO\""
33004fi
33005
e6cc62c6 33006cat >>confdefs.h <<_ACEOF
8284b0c5 33007#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33008_ACEOF
8284b0c5
MB
33009
33010
33011
33012if test "x$prefix" != "xNONE"; then
33013 wxPREFIX=$prefix
33014else
33015 wxPREFIX=$ac_default_prefix
33016fi
33017
e6cc62c6 33018cat >>confdefs.h <<_ACEOF
8284b0c5 33019#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33020_ACEOF
8284b0c5
MB
33021
33022
e6cc62c6 33023top_builddir_wxconfig=`pwd`
52c71b80 33024
8284b0c5
MB
33025
33026
33027
33028if test "$wxUSE_MAC" = 1 ; then
33029 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33030fi
ac0c4cc3
DE
33031if test "$wxUSE_COCOA" = 1 ; then
33032 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33033fi
8284b0c5
MB
33034
33035
2b5f62a0
VZ
33036LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33037
33038have_cos=0
33039have_floor=0
e6cc62c6 33040
2b5f62a0
VZ
33041for ac_func in cos
33042do
e6cc62c6
VS
33043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33044echo "$as_me:$LINENO: checking for $ac_func" >&5
33045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33046if eval "test \"\${$as_ac_var+set}\" = set"; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
33048else
33049 cat >conftest.$ac_ext <<_ACEOF
33050#line $LINENO "configure"
33051/* confdefs.h. */
33052_ACEOF
33053cat confdefs.h >>conftest.$ac_ext
33054cat >>conftest.$ac_ext <<_ACEOF
33055/* end confdefs.h. */
2b5f62a0 33056/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33057 which can conflict with char $ac_func (); below.
33058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33059 <limits.h> exists even on freestanding compilers. */
33060#ifdef __STDC__
33061# include <limits.h>
33062#else
33063# include <assert.h>
33064#endif
2b5f62a0 33065/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33066#ifdef __cplusplus
33067extern "C"
33068{
33069#endif
2b5f62a0 33070/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33071 builtin and then its argument prototype would still apply. */
33072char $ac_func ();
2b5f62a0
VZ
33073/* The GNU C library defines this for functions which it implements
33074 to always fail with ENOSYS. Some functions are actually named
33075 something starting with __ and the normal name is an alias. */
33076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33077choke me
33078#else
e6cc62c6
VS
33079char (*f) () = $ac_func;
33080#endif
33081#ifdef __cplusplus
33082}
2b5f62a0
VZ
33083#endif
33084
e6cc62c6
VS
33085int
33086main ()
33087{
33088return f != $ac_func;
33089 ;
33090 return 0;
33091}
33092_ACEOF
33093rm -f conftest.$ac_objext conftest$ac_exeext
33094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33095 (eval $ac_link) 2>&5
33096 ac_status=$?
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); } &&
33099 { ac_try='test -s conftest$ac_exeext'
33100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101 (eval $ac_try) 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
33105 eval "$as_ac_var=yes"
33106else
33107 echo "$as_me: failed program was:" >&5
33108sed 's/^/| /' conftest.$ac_ext >&5
33109
33110eval "$as_ac_var=no"
33111fi
33112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33113fi
33114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33115echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33116if test `eval echo '${'$as_ac_var'}'` = yes; then
33117 cat >>confdefs.h <<_ACEOF
33118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33119_ACEOF
2b5f62a0 33120 have_cos=1
2b5f62a0
VZ
33121fi
33122done
33123
e6cc62c6 33124
2b5f62a0
VZ
33125for ac_func in floor
33126do
e6cc62c6
VS
33127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33128echo "$as_me:$LINENO: checking for $ac_func" >&5
33129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33130if eval "test \"\${$as_ac_var+set}\" = set"; then
33131 echo $ECHO_N "(cached) $ECHO_C" >&6
33132else
33133 cat >conftest.$ac_ext <<_ACEOF
33134#line $LINENO "configure"
33135/* confdefs.h. */
33136_ACEOF
33137cat confdefs.h >>conftest.$ac_ext
33138cat >>conftest.$ac_ext <<_ACEOF
33139/* end confdefs.h. */
2b5f62a0 33140/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33141 which can conflict with char $ac_func (); below.
33142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33143 <limits.h> exists even on freestanding compilers. */
33144#ifdef __STDC__
33145# include <limits.h>
33146#else
33147# include <assert.h>
33148#endif
2b5f62a0 33149/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33150#ifdef __cplusplus
33151extern "C"
33152{
33153#endif
2b5f62a0 33154/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33155 builtin and then its argument prototype would still apply. */
33156char $ac_func ();
2b5f62a0
VZ
33157/* The GNU C library defines this for functions which it implements
33158 to always fail with ENOSYS. Some functions are actually named
33159 something starting with __ and the normal name is an alias. */
33160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33161choke me
33162#else
e6cc62c6
VS
33163char (*f) () = $ac_func;
33164#endif
33165#ifdef __cplusplus
33166}
2b5f62a0
VZ
33167#endif
33168
e6cc62c6
VS
33169int
33170main ()
33171{
33172return f != $ac_func;
33173 ;
33174 return 0;
33175}
33176_ACEOF
33177rm -f conftest.$ac_objext conftest$ac_exeext
33178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33179 (eval $ac_link) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); } &&
33183 { ac_try='test -s conftest$ac_exeext'
33184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185 (eval $ac_try) 2>&5
33186 ac_status=$?
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); }; }; then
33189 eval "$as_ac_var=yes"
33190else
33191 echo "$as_me: failed program was:" >&5
33192sed 's/^/| /' conftest.$ac_ext >&5
33193
33194eval "$as_ac_var=no"
33195fi
33196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33197fi
33198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33200if test `eval echo '${'$as_ac_var'}'` = yes; then
33201 cat >>confdefs.h <<_ACEOF
33202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33203_ACEOF
2b5f62a0 33204 have_floor=1
2b5f62a0
VZ
33205fi
33206done
33207
e6cc62c6
VS
33208echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33209echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33210if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33211 echo "$as_me:$LINENO: result: yes" >&5
33212echo "${ECHO_T}yes" >&6
2b5f62a0 33213else
e6cc62c6
VS
33214 echo "$as_me:$LINENO: result: no" >&5
33215echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33216 LIBS="$LIBS -lm"
33217 # use different functions to avoid configure caching
33218 have_sin=0
33219 have_ceil=0
e6cc62c6
VS
33220
33221for ac_func in sin
2b5f62a0 33222do
e6cc62c6
VS
33223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33224echo "$as_me:$LINENO: checking for $ac_func" >&5
33225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33226if eval "test \"\${$as_ac_var+set}\" = set"; then
33227 echo $ECHO_N "(cached) $ECHO_C" >&6
33228else
33229 cat >conftest.$ac_ext <<_ACEOF
33230#line $LINENO "configure"
33231/* confdefs.h. */
33232_ACEOF
33233cat confdefs.h >>conftest.$ac_ext
33234cat >>conftest.$ac_ext <<_ACEOF
33235/* end confdefs.h. */
2b5f62a0 33236/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33237 which can conflict with char $ac_func (); below.
33238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33239 <limits.h> exists even on freestanding compilers. */
33240#ifdef __STDC__
33241# include <limits.h>
33242#else
33243# include <assert.h>
33244#endif
2b5f62a0 33245/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33246#ifdef __cplusplus
33247extern "C"
33248{
33249#endif
2b5f62a0 33250/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33251 builtin and then its argument prototype would still apply. */
33252char $ac_func ();
2b5f62a0
VZ
33253/* The GNU C library defines this for functions which it implements
33254 to always fail with ENOSYS. Some functions are actually named
33255 something starting with __ and the normal name is an alias. */
33256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33257choke me
33258#else
e6cc62c6
VS
33259char (*f) () = $ac_func;
33260#endif
33261#ifdef __cplusplus
33262}
2b5f62a0
VZ
33263#endif
33264
e6cc62c6
VS
33265int
33266main ()
33267{
33268return f != $ac_func;
33269 ;
33270 return 0;
33271}
33272_ACEOF
33273rm -f conftest.$ac_objext conftest$ac_exeext
33274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33275 (eval $ac_link) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); } &&
33279 { ac_try='test -s conftest$ac_exeext'
33280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281 (eval $ac_try) 2>&5
33282 ac_status=$?
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); }; }; then
33285 eval "$as_ac_var=yes"
33286else
33287 echo "$as_me: failed program was:" >&5
33288sed 's/^/| /' conftest.$ac_ext >&5
33289
33290eval "$as_ac_var=no"
33291fi
33292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33293fi
33294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33295echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33296if test `eval echo '${'$as_ac_var'}'` = yes; then
33297 cat >>confdefs.h <<_ACEOF
33298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33299_ACEOF
2b5f62a0 33300 have_sin=1
2b5f62a0
VZ
33301fi
33302done
33303
e6cc62c6
VS
33304
33305for ac_func in ceil
2b5f62a0 33306do
e6cc62c6
VS
33307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33308echo "$as_me:$LINENO: checking for $ac_func" >&5
33309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33310if eval "test \"\${$as_ac_var+set}\" = set"; then
33311 echo $ECHO_N "(cached) $ECHO_C" >&6
33312else
33313 cat >conftest.$ac_ext <<_ACEOF
33314#line $LINENO "configure"
33315/* confdefs.h. */
33316_ACEOF
33317cat confdefs.h >>conftest.$ac_ext
33318cat >>conftest.$ac_ext <<_ACEOF
33319/* end confdefs.h. */
2b5f62a0 33320/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33321 which can conflict with char $ac_func (); below.
33322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33323 <limits.h> exists even on freestanding compilers. */
33324#ifdef __STDC__
33325# include <limits.h>
33326#else
33327# include <assert.h>
33328#endif
2b5f62a0 33329/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33330#ifdef __cplusplus
33331extern "C"
33332{
33333#endif
2b5f62a0 33334/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33335 builtin and then its argument prototype would still apply. */
33336char $ac_func ();
2b5f62a0
VZ
33337/* The GNU C library defines this for functions which it implements
33338 to always fail with ENOSYS. Some functions are actually named
33339 something starting with __ and the normal name is an alias. */
33340#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33341choke me
33342#else
e6cc62c6
VS
33343char (*f) () = $ac_func;
33344#endif
33345#ifdef __cplusplus
33346}
2b5f62a0
VZ
33347#endif
33348
e6cc62c6
VS
33349int
33350main ()
33351{
33352return f != $ac_func;
33353 ;
33354 return 0;
33355}
33356_ACEOF
33357rm -f conftest.$ac_objext conftest$ac_exeext
33358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33359 (eval $ac_link) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } &&
33363 { ac_try='test -s conftest$ac_exeext'
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; }; then
33369 eval "$as_ac_var=yes"
33370else
33371 echo "$as_me: failed program was:" >&5
33372sed 's/^/| /' conftest.$ac_ext >&5
33373
33374eval "$as_ac_var=no"
33375fi
33376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33377fi
33378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33379echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33380if test `eval echo '${'$as_ac_var'}'` = yes; then
33381 cat >>confdefs.h <<_ACEOF
33382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33383_ACEOF
2b5f62a0 33384 have_ceil=1
2b5f62a0
VZ
33385fi
33386done
33387
e6cc62c6
VS
33388 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33389echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33390 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33391 echo "$as_me:$LINENO: result: yes" >&5
33392echo "${ECHO_T}yes" >&6
2b5f62a0 33393 else
e6cc62c6
VS
33394 echo "$as_me:$LINENO: result: no" >&5
33395echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33396 # not sure we should warn the user, crash, etc.
33397 fi
33398fi
8284b0c5
MB
33399
33400if test "$wxUSE_GUI" = "yes"; then
33401
33402 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
33403
e6cc62c6 33404
8284b0c5
MB
33405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33406 drawing dynamic erase event exec font image \
1542ea39 33407 minimal propsize rotate shaped widgets"
8284b0c5
MB
33408else
33409 SAMPLES_SUBDIRS="console"
33410fi
33411
33412
e6cc62c6 33413INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33414-I\${top_srcdir}/include \
33415$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33416$TOOLKIT_INCLUDE"
33417
33418if test "$wxUSE_GTK" = 1; then
33419 WXCONFIG_INCLUDE=
33420else
33421 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33422fi
33423
fe0895cf
VS
33424if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33425 WXUNIV=1
33426else
33427 WXUNIV=0
8284b0c5
MB
33428fi
33429
8284b0c5
MB
33430
33431
33432
33433
33434
33435
33436
fe0895cf 33437EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
8284b0c5 33438
fe0895cf 33439MONOLITHIC=1
8284b0c5
MB
33440
33441
33442
33443
33444
33445
33446
fe0895cf 33447TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33448
33449
33450
33451
33452
fe0895cf 33453 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33454
33455 if test -n "$ac_tool_prefix"; then
33456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33458echo "$as_me:$LINENO: checking for $ac_word" >&5
33459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33460if test "${ac_cv_prog_RANLIB+set}" = set; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33462else
fe0895cf
VS
33463 if test -n "$RANLIB"; then
33464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33465else
e6cc62c6
VS
33466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33467for as_dir in $PATH
33468do
33469 IFS=$as_save_IFS
33470 test -z "$as_dir" && as_dir=.
33471 for ac_exec_ext in '' $ac_executable_extensions; do
33472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33475 break 2
33476 fi
33477done
33478done
33479
10f2d63a 33480fi
10f2d63a 33481fi
e6cc62c6 33482RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33483if test -n "$RANLIB"; then
e6cc62c6
VS
33484 echo "$as_me:$LINENO: result: $RANLIB" >&5
33485echo "${ECHO_T}$RANLIB" >&6
33486else
33487 echo "$as_me:$LINENO: result: no" >&5
33488echo "${ECHO_T}no" >&6
33489fi
33490
33491fi
33492if test -z "$ac_cv_prog_RANLIB"; then
33493 ac_ct_RANLIB=$RANLIB
33494 # Extract the first word of "ranlib", so it can be a program name with args.
33495set dummy ranlib; ac_word=$2
33496echo "$as_me:$LINENO: checking for $ac_word" >&5
33497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33498if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33499 echo $ECHO_N "(cached) $ECHO_C" >&6
33500else
33501 if test -n "$ac_ct_RANLIB"; then
33502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33503else
33504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33505for as_dir in $PATH
33506do
33507 IFS=$as_save_IFS
33508 test -z "$as_dir" && as_dir=.
33509 for ac_exec_ext in '' $ac_executable_extensions; do
33510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33511 ac_cv_prog_ac_ct_RANLIB="ranlib"
33512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33513 break 2
33514 fi
33515done
33516done
33517
33518 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33519fi
33520fi
33521ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33522if test -n "$ac_ct_RANLIB"; then
33523 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33524echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33525else
e6cc62c6
VS
33526 echo "$as_me:$LINENO: result: no" >&5
33527echo "${ECHO_T}no" >&6
33528fi
33529
33530 RANLIB=$ac_ct_RANLIB
33531else
33532 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33533fi
665bbe97 33534
fe0895cf
VS
33535 # Find a good install program. We prefer a C program (faster),
33536# so one script is as good as another. But avoid the broken or
33537# incompatible versions:
33538# SysV /etc/install, /usr/sbin/install
33539# SunOS /usr/etc/install
33540# IRIX /sbin/install
33541# AIX /bin/install
e6cc62c6 33542# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33543# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33544# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33545# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33546# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33547echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33548echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33549if test -z "$INSTALL"; then
e6cc62c6
VS
33550if test "${ac_cv_path_install+set}" = set; then
33551 echo $ECHO_N "(cached) $ECHO_C" >&6
33552else
33553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33554for as_dir in $PATH
33555do
33556 IFS=$as_save_IFS
33557 test -z "$as_dir" && as_dir=.
33558 # Account for people who put trailing slashes in PATH elements.
33559case $as_dir/ in
33560 ./ | .// | /cC/* | \
33561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33562 /usr/ucb/* ) ;;
33563 *)
33564 # OSF1 and SCO ODT 3.0 have their own names for install.
33565 # Don't use installbsd from OSF since it installs stuff as root
33566 # by default.
33567 for ac_prog in ginstall scoinst install; do
33568 for ac_exec_ext in '' $ac_executable_extensions; do
33569 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33570 if test $ac_prog = install &&
33571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33572 # AIX install. It has an incompatible calling convention.
33573 :
33574 elif test $ac_prog = install &&
33575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33576 # program-specific install script used by HP pwplus--don't use.
33577 :
33578 else
33579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33580 break 3
33581 fi
33582 fi
fe0895cf 33583 done
e6cc62c6
VS
33584 done
33585 ;;
33586esac
33587done
33588
fe0895cf
VS
33589
33590fi
33591 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33592 INSTALL=$ac_cv_path_install
fe0895cf
VS
33593 else
33594 # As a last resort, use the slow shell script. We don't cache a
33595 # path for INSTALL within a source directory, because that will
33596 # break other packages using the cache if that directory is
33597 # removed, or if the path is relative.
e6cc62c6 33598 INSTALL=$ac_install_sh
fe0895cf
VS
33599 fi
33600fi
e6cc62c6
VS
33601echo "$as_me:$LINENO: result: $INSTALL" >&5
33602echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33603
33604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33605# It thinks the first close brace ends the variable substitution.
33606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33607
e6cc62c6 33608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33609
33610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33611
e6cc62c6
VS
33612 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33613echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33614LN_S=$as_ln_s
33615if test "$LN_S" = "ln -s"; then
33616 echo "$as_me:$LINENO: result: yes" >&5
33617echo "${ECHO_T}yes" >&6
fe0895cf 33618else
e6cc62c6
VS
33619 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33620echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33621fi
33622
33623
e6cc62c6
VS
33624 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33625echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33626set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33627if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33629else
e6cc62c6 33630 cat >conftest.make <<\_ACEOF
fe0895cf 33631all:
e6cc62c6
VS
33632 @echo 'ac_maketemp="$(MAKE)"'
33633_ACEOF
fe0895cf 33634# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33635eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33636if test -n "$ac_maketemp"; then
33637 eval ac_cv_prog_make_${ac_make}_set=yes
33638else
33639 eval ac_cv_prog_make_${ac_make}_set=no
33640fi
e6cc62c6 33641rm -f conftest.make
fe0895cf
VS
33642fi
33643if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33644 echo "$as_me:$LINENO: result: yes" >&5
33645echo "${ECHO_T}yes" >&6
fe0895cf
VS
33646 SET_MAKE=
33647else
e6cc62c6
VS
33648 echo "$as_me:$LINENO: result: no" >&5
33649echo "${ECHO_T}no" >&6
fe0895cf
VS
33650 SET_MAKE="MAKE=${MAKE-make}"
33651fi
33652
e6cc62c6
VS
33653
33654
fe0895cf
VS
33655 if test "$build" != "$host" ; then
33656 AR=$host_alias-ar
33657 STRIP=$host_alias-strip
33658 else
33659 # Extract the first word of "ar", so it can be a program name with args.
33660set dummy ar; ac_word=$2
e6cc62c6
VS
33661echo "$as_me:$LINENO: checking for $ac_word" >&5
33662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33663if test "${ac_cv_prog_AR+set}" = set; then
33664 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33665else
33666 if test -n "$AR"; then
33667 ac_cv_prog_AR="$AR" # Let the user override the test.
33668else
e6cc62c6
VS
33669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33670for as_dir in $PATH
33671do
33672 IFS=$as_save_IFS
33673 test -z "$as_dir" && as_dir=.
33674 for ac_exec_ext in '' $ac_executable_extensions; do
33675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33676 ac_cv_prog_AR="ar"
33677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33678 break 2
33679 fi
33680done
33681done
33682
fe0895cf
VS
33683 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33684fi
33685fi
e6cc62c6 33686AR=$ac_cv_prog_AR
fe0895cf 33687if test -n "$AR"; then
e6cc62c6
VS
33688 echo "$as_me:$LINENO: result: $AR" >&5
33689echo "${ECHO_T}$AR" >&6
fe0895cf 33690else
e6cc62c6
VS
33691 echo "$as_me:$LINENO: result: no" >&5
33692echo "${ECHO_T}no" >&6
fe0895cf
VS
33693fi
33694
33695 # Extract the first word of "strip", so it can be a program name with args.
33696set dummy strip; ac_word=$2
e6cc62c6
VS
33697echo "$as_me:$LINENO: checking for $ac_word" >&5
33698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33699if test "${ac_cv_prog_STRIP+set}" = set; then
33700 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33701else
33702 if test -n "$STRIP"; then
33703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33704else
e6cc62c6
VS
33705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33706for as_dir in $PATH
33707do
33708 IFS=$as_save_IFS
33709 test -z "$as_dir" && as_dir=.
33710 for ac_exec_ext in '' $ac_executable_extensions; do
33711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33712 ac_cv_prog_STRIP="strip"
33713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33714 break 2
33715 fi
33716done
33717done
33718
fe0895cf
VS
33719 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33720fi
33721fi
e6cc62c6 33722STRIP=$ac_cv_prog_STRIP
fe0895cf 33723if test -n "$STRIP"; then
e6cc62c6
VS
33724 echo "$as_me:$LINENO: result: $STRIP" >&5
33725echo "${ECHO_T}$STRIP" >&6
fe0895cf 33726else
e6cc62c6
VS
33727 echo "$as_me:$LINENO: result: no" >&5
33728echo "${ECHO_T}no" >&6
fe0895cf
VS
33729fi
33730
33731 fi
33732
33733 case ${host} in
33734 *-hp-hpux* )
33735 INSTALL_DIR="mkdir"
33736 ;;
33737 *) INSTALL_DIR="$INSTALL -d"
33738 ;;
33739 esac
e6cc62c6 33740
fe0895cf
VS
33741
33742 fi
e6cc62c6
VS
33743
33744 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33745echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
33746if test "${wx_cv_prog_makeisgnu+set}" = set; then
33747 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33748else
e6cc62c6 33749
fe0895cf
VS
33750 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
33751 egrep -s GNU > /dev/null); then
33752 bakefile_cv_prog_makeisgnu="yes"
33753 else
33754 bakefile_cv_prog_makeisgnu="no"
33755 fi
fe0895cf 33756
e6cc62c6
VS
33757fi
33758echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
33759echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
fe0895cf
VS
33760
33761 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
33762 IF_GNU_MAKE=""
33763 else
33764 IF_GNU_MAKE="#"
33765 fi
fe0895cf 33766
e6cc62c6
VS
33767
33768
fe0895cf
VS
33769 PLATFORM_UNIX=0
33770 PLATFORM_WIN32=0
33771 PLATFORM_MSDOS=0
33772 PLATFORM_MAC=0
33773 PLATFORM_MACOSX=0
e6cc62c6 33774
fe0895cf
VS
33775 case "${host}" in
33776 *-*-cygwin* | *-*-mingw32* )
33777 PLATFORM_WIN32=1
33778 ;;
33779 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33780 PLATFORM_MSDOS=1
33781 ;;
33782 powerpc-*-darwin* )
33783 PLATFORM_MAC=1
33784 PLATFORM_MACOSX=1
33785 ;;
33786 * )
33787 PLATFORM_UNIX=1
33788 ;;
33789 esac
33790
fe0895cf 33791
e6cc62c6
VS
33792
33793
33794
33795
33796
33797
fe0895cf
VS
33798 SO_SUFFIX="so"
33799 EXEEXT=""
33800 DLLPREFIX=lib
e6cc62c6 33801
fe0895cf
VS
33802 case "${host}" in
33803 *-hp-hpux* )
33804 SO_SUFFIX="sl"
33805 ;;
33806 *-*-aix* )
33807 SO_SUFFIX="a"
33808 ;;
33809 *-*-cygwin* | *-*-mingw32* )
33810 SO_SUFFIX="dll"
33811 EXEEXT=".exe"
33812 DLLPREFIX=""
33813 ;;
33814 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
33815 EXEEXT=".exe"
33816 DLLPREFIX=""
33817 ;;
33818 powerpc-*-darwin* )
33819 SO_SUFFIX="dylib"
33820 ;;
33821 esac
33822
fe0895cf 33823
e6cc62c6
VS
33824
33825
33826
33827
fe0895cf
VS
33828 SHARED_LD_CC="\$(CC) -shared -o"
33829 SHARED_LD_CXX="\$(CXX) -shared -o"
33830
33831 if test "x$GCC" = "xyes"; then
33832 PIC_FLAG="-fPIC"
33833 fi
33834
33835 case "${host}" in
33836 *-hp-hpux* )
33837 if test "x$GCC" = "xyes"; then
33838 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
33839 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
33840 else
33841 LDFLAGS="$LDFLAGS -L/usr/lib"
33842
33843 SHARED_LD_CC="${CC} -b -o"
33844 SHARED_LD_CXX="${CXX} -b -o"
33845 PIC_FLAG="+Z"
33846 fi
33847 ;;
33848
33849 *-*-linux* )
33850 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
33851 echo "$as_me:$LINENO: checking for Intel compiler" >&5
33852echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
33853if test "${bakefile_cv_prog_icc+set}" = set; then
33854 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33855else
fe0895cf 33856
e6cc62c6
VS
33857 cat >conftest.$ac_ext <<_ACEOF
33858#line $LINENO "configure"
33859/* confdefs.h. */
33860_ACEOF
33861cat confdefs.h >>conftest.$ac_ext
33862cat >>conftest.$ac_ext <<_ACEOF
33863/* end confdefs.h. */
33864
33865int
33866main ()
33867{
fe0895cf
VS
33868
33869 #ifndef __INTEL_COMPILER
33870 #error Not icc
33871 #endif
e6cc62c6
VS
33872
33873 ;
33874 return 0;
33875}
33876_ACEOF
33877rm -f conftest.$ac_objext
33878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33879 (eval $ac_compile) 2>&5
33880 ac_status=$?
33881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882 (exit $ac_status); } &&
33883 { ac_try='test -s conftest.$ac_objext'
33884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885 (eval $ac_try) 2>&5
33886 ac_status=$?
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); }; }; then
fe0895cf
VS
33889 bakefile_cv_prog_icc=yes
33890else
e6cc62c6
VS
33891 echo "$as_me: failed program was:" >&5
33892sed 's/^/| /' conftest.$ac_ext >&5
33893
33894bakefile_cv_prog_icc=no
33895
fe0895cf 33896fi
e6cc62c6 33897rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 33898
e6cc62c6
VS
33899fi
33900echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
33901echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
33902 if test "$bakefile_cv_prog_icc" = "yes"; then
33903 PIC_FLAG="-KPIC"
33904 fi
33905 fi
33906 ;;
33907
33908 *-*-solaris2* )
33909 if test "x$GCC" != xyes ; then
33910 SHARED_LD_CC="${CC} -G -o"
33911 SHARED_LD_CXX="${CXX} -G -o"
33912 PIC_FLAG="-KPIC"
33913 fi
33914 ;;
33915
33916 *-*-darwin* )
33917 CFLAGS="$CFLAGS -fno-common"
33918 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
33919
33920
fe0895cf
VS
33921 cat <<EOF >shared-ld-sh
33922#!/bin/sh
33923#-----------------------------------------------------------------------------
33924#-- Name: distrib/mac/shared-ld-sh
33925#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
33926#-- Author: Gilles Depeyrot
33927#-- Copyright: (c) 2002 Gilles Depeyrot
33928#-- Licence: any use permitted
33929#-----------------------------------------------------------------------------
33930
33931verbose=0
33932args=""
33933objects=""
33934
33935while test \${#} -gt 0; do
33936 case \${1} in
33937
33938 -v)
33939 verbose=1
33940 ;;
33941
33942 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
33943 # collect these options and values
33944 args="\${args} \${1} \${2}"
33945 shift
33946 ;;
33947
33948 -l*|-L*|-flat_namespace)
33949 # collect these options
33950 args="\${args} \${1}"
33951 ;;
33952
33953 -dynamiclib)
33954 # skip these options
33955 ;;
33956
33957 -*)
33958 echo "shared-ld: unhandled option '\${1}'"
33959 exit 1
33960 ;;
33961
33962 *.o | *.a)
33963 # collect object files
33964 objects="\${objects} \${1}"
33965 ;;
33966
33967 *)
33968 echo "shared-ld: unhandled argument '\${1}'"
33969 exit 1
33970 ;;
33971
33972 esac
33973 shift
33974done
33975
33976#
33977# Link one module containing all the others
33978#
33979if test \${verbose} = 1; then
33980 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
33981fi
33982c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
33983status=\$?
33984if test \${status} != 0; then
33985 exit \${status}
33986fi
33987
33988#
33989# Link the shared library from the single module created
33990#
33991if test \${verbose} = 1; then
33992 echo "cc -dynamiclib master.\$\$.o \${args}"
33993fi
33994c++ -dynamiclib master.\$\$.o \${args}
33995status=\$?
33996if test \${status} != 0; then
33997 exit \${status}
33998fi
33999
34000#
34001# Remove intermediate module
34002#
34003rm -f master.\$\$.o
34004
34005exit 0
34006EOF
34007 chmod +x shared-ld-sh
34008
34009 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
34010 SHARED_LD_CXX="$SHARED_LD_CC"
34011 PIC_FLAG="-dynamic -fPIC"
34012 ;;
34013
34014 *-*-aix* )
34015 if test "x$GCC" != "xyes"; then
34016 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34017set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34018echo "$as_me:$LINENO: checking for $ac_word" >&5
34019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34020if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34021 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34022else
34023 if test -n "$AIX_CXX_LD"; then
34024 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34025else
e6cc62c6
VS
34026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34027for as_dir in $PATH
34028do
34029 IFS=$as_save_IFS
34030 test -z "$as_dir" && as_dir=.
34031 for ac_exec_ext in '' $ac_executable_extensions; do
34032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34033 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34035 break 2
34036 fi
34037done
34038done
34039
fe0895cf
VS
34040 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34041fi
34042fi
e6cc62c6 34043AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34044if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34045 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34046echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34047else
e6cc62c6
VS
34048 echo "$as_me:$LINENO: result: no" >&5
34049echo "${ECHO_T}no" >&6
fe0895cf
VS
34050fi
34051
34052 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34053 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34054 fi
34055 ;;
34056
34057 *-*-beos* )
34058 SHARED_LD_CC="${LD} -shared -o"
34059 SHARED_LD_CXX="${LD} -shared -o"
34060 ;;
34061
34062 *-*-irix* )
34063 if test "x$GCC" != "xyes"; then
34064 PIC_FLAG="-KPIC"
34065 fi
34066 ;;
e6cc62c6 34067
fe0895cf
VS
34068 *-*-cygwin* | *-*-mingw32* )
34069 PIC_FLAG=""
34070 ;;
e6cc62c6 34071
fe0895cf
VS
34072 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34073 *-*-sunos4* | \
34074 *-*-osf* | \
34075 *-*-dgux5* | \
34076 *-*-sysv5* )
34077 ;;
34078
34079 *)
e6cc62c6
VS
34080 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34081echo "$as_me: error: unknown system type $host." >&2;}
34082 { (exit 1); exit 1; }; }
fe0895cf
VS
34083 esac
34084
fe0895cf 34085
e6cc62c6
VS
34086
34087
34088
34089
fe0895cf
VS
34090 USE_SOVERSION=0
34091 USE_SOVERLINUX=0
34092 USE_SOVERSOLARIS=0
34093 USE_SOSYMLINKS=0
34094 USE_MACVERSION=0
34095 SONAME_FLAG=
34096
34097 case "${host}" in
34098 *-*-linux* )
34099 SONAME_FLAG="-Wl,-soname,"
34100 USE_SOVERSION=1
34101 USE_SOVERLINUX=1
34102 USE_SOSYMLINKS=1
34103 ;;
34104
34105 *-*-solaris2* )
34106 SONAME_FLAG="-h "
34107 USE_SOVERSION=1
34108 USE_SOVERSOLARIS=1
34109 USE_SOSYMLINKS=1
34110 ;;
34111
34112 *-*-darwin* )
34113 USE_MACVERSION=1
34114 USE_SOVERSION=1
34115 USE_SOSYMLINKS=1
e6cc62c6 34116 ;;
fe0895cf
VS
34117 esac
34118
fe0895cf 34119
e6cc62c6
VS
34120
34121
34122
34123
34124
34125
34126
fe0895cf
VS
34127 DEPS_TYPE=no
34128 if test "x$GCC" = "xyes"; then
34129 DEPS_TYPE=gcc
34130 fi
fe0895cf 34131
e6cc62c6
VS
34132
34133
34134
fe0895cf
VS
34135 RESCOMP=
34136 SETFILE=
34137
e6cc62c6 34138 case ${host} in
fe0895cf
VS
34139 *-*-cygwin* | *-*-mingw32* )
34140 if test "$build" != "$host" ; then
34141 RESCOMP=$host_alias-windres
34142 else
34143 # Extract the first word of "windres", so it can be a program name with args.
34144set dummy windres; ac_word=$2
e6cc62c6
VS
34145echo "$as_me:$LINENO: checking for $ac_word" >&5
34146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34147if test "${ac_cv_prog_RESCOMP+set}" = set; then
34148 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34149else
34150 if test -n "$RESCOMP"; then
34151 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34152else
e6cc62c6
VS
34153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34154for as_dir in $PATH
34155do
34156 IFS=$as_save_IFS
34157 test -z "$as_dir" && as_dir=.
34158 for ac_exec_ext in '' $ac_executable_extensions; do
34159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34160 ac_cv_prog_RESCOMP="windres"
34161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34162 break 2
34163 fi
34164done
34165done
34166
fe0895cf
VS
34167 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34168fi
34169fi
e6cc62c6 34170RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34171if test -n "$RESCOMP"; then
e6cc62c6
VS
34172 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34173echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34174else
e6cc62c6
VS
34175 echo "$as_me:$LINENO: result: no" >&5
34176echo "${ECHO_T}no" >&6
fe0895cf
VS
34177fi
34178
34179 fi
34180 ;;
e6cc62c6 34181
fe0895cf
VS
34182 *-*-darwin* )
34183 # Extract the first word of "Rez", so it can be a program name with args.
34184set dummy Rez; ac_word=$2
e6cc62c6
VS
34185echo "$as_me:$LINENO: checking for $ac_word" >&5
34186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34187if test "${ac_cv_prog_RESCOMP+set}" = set; then
34188 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34189else
34190 if test -n "$RESCOMP"; then
34191 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34192else
e6cc62c6
VS
34193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34194for as_dir in $PATH
34195do
34196 IFS=$as_save_IFS
34197 test -z "$as_dir" && as_dir=.
34198 for ac_exec_ext in '' $ac_executable_extensions; do
34199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34200 ac_cv_prog_RESCOMP="Rez"
34201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34202 break 2
34203 fi
34204done
34205done
34206
fe0895cf
VS
34207 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34208fi
34209fi
e6cc62c6 34210RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34211if test -n "$RESCOMP"; then
e6cc62c6
VS
34212 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34213echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34214else
e6cc62c6
VS
34215 echo "$as_me:$LINENO: result: no" >&5
34216echo "${ECHO_T}no" >&6
fe0895cf
VS
34217fi
34218
34219 # Extract the first word of "SetFile", so it can be a program name with args.
34220set dummy SetFile; ac_word=$2
e6cc62c6
VS
34221echo "$as_me:$LINENO: checking for $ac_word" >&5
34222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34223if test "${ac_cv_prog_SETFILE+set}" = set; then
34224 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34225else
34226 if test -n "$SETFILE"; then
34227 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34228else
e6cc62c6
VS
34229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34230for as_dir in $PATH
34231do
34232 IFS=$as_save_IFS
34233 test -z "$as_dir" && as_dir=.
34234 for ac_exec_ext in '' $ac_executable_extensions; do
34235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34236 ac_cv_prog_SETFILE="SetFile"
34237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34238 break 2
34239 fi
34240done
34241done
34242
fe0895cf
VS
34243 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34244fi
34245fi
e6cc62c6 34246SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34247if test -n "$SETFILE"; then
e6cc62c6
VS
34248 echo "$as_me:$LINENO: result: $SETFILE" >&5
34249echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34250else
e6cc62c6
VS
34251 echo "$as_me:$LINENO: result: no" >&5
34252echo "${ECHO_T}no" >&6
fe0895cf
VS
34253fi
34254
34255 ;;
34256 esac
34257
fe0895cf
VS
34258
34259
e6cc62c6
VS
34260
34261
34262
34263
34264 COND_WXUSE_ZLIB_BUILTIN="#"
fe0895cf 34265 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
e6cc62c6 34266 COND_WXUSE_ZLIB_BUILTIN=
fe0895cf 34267 fi
e6cc62c6
VS
34268
34269 COND_UNICODE_1="#"
fe0895cf 34270 if test "x$UNICODE" = "x1" ; then
e6cc62c6 34271 COND_UNICODE_1=
fe0895cf 34272 fi
e6cc62c6
VS
34273
34274 COND_BUILD_DEBUG="#"
fe0895cf 34275 if test "x$BUILD" = "xdebug" ; then
e6cc62c6 34276 COND_BUILD_DEBUG=
fe0895cf 34277 fi
e6cc62c6
VS
34278
34279 COND_WXUSE_REGEX_BUILTIN="#"
fe0895cf 34280 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
e6cc62c6 34281 COND_WXUSE_REGEX_BUILTIN=
fe0895cf 34282 fi
e6cc62c6
VS
34283
34284 COND_USE_SOSYMLINKS_1="#"
fe0895cf 34285 if test "x$USE_SOSYMLINKS" = "x1" ; then
e6cc62c6 34286 COND_USE_SOSYMLINKS_1=
fe0895cf 34287 fi
e6cc62c6
VS
34288
34289 COND_WXUSE_LIBJPEG_BUILTIN="#"
fe0895cf 34290 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
e6cc62c6 34291 COND_WXUSE_LIBJPEG_BUILTIN=
fe0895cf 34292 fi
e6cc62c6
VS
34293
34294 COND_WXUSE_LIBPNG_BUILTIN="#"
fe0895cf 34295 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
e6cc62c6 34296 COND_WXUSE_LIBPNG_BUILTIN=
fe0895cf 34297 fi
e6cc62c6
VS
34298
34299 COND_SHARED_1_MONOLITHIC_1="#"
34300 if test "x$SHARED" = "x1" -a \
34301 "x$MONOLITHIC" = "x1" ; then
34302 COND_SHARED_1_MONOLITHIC_1=
34303 fi
34304
34305 COND_WXUSE_ODBC_BUILTIN="#"
fe0895cf 34306 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
e6cc62c6 34307 COND_WXUSE_ODBC_BUILTIN=
fe0895cf 34308 fi
e6cc62c6
VS
34309
34310 COND_TOOLKIT_GTK="#"
fe0895cf 34311 if test "x$TOOLKIT" = "xGTK" ; then
e6cc62c6 34312 COND_TOOLKIT_GTK=
fe0895cf 34313 fi
e6cc62c6
VS
34314
34315 COND_TOOLKIT_MOTIF="#"
fe0895cf 34316 if test "x$TOOLKIT" = "xMOTIF" ; then
e6cc62c6 34317 COND_TOOLKIT_MOTIF=
fe0895cf 34318 fi
e6cc62c6
VS
34319
34320 COND_TOOLKIT_MSW="#"
fe0895cf 34321 if test "x$TOOLKIT" = "xMSW" ; then
e6cc62c6 34322 COND_TOOLKIT_MSW=
fe0895cf 34323 fi
e6cc62c6
VS
34324
34325 COND_TOOLKIT_MAC="#"
fe0895cf 34326 if test "x$TOOLKIT" = "xMAC" ; then
e6cc62c6 34327 COND_TOOLKIT_MAC=
fe0895cf 34328 fi
e6cc62c6
VS
34329
34330 COND_TOOLKIT_COCOA="#"
fe0895cf 34331 if test "x$TOOLKIT" = "xCOCOA" ; then
e6cc62c6 34332 COND_TOOLKIT_COCOA=
fe0895cf 34333 fi
e6cc62c6
VS
34334
34335 COND_TOOLKIT_OS2="#"
fe0895cf 34336 if test "x$TOOLKIT" = "xOS2" ; then
e6cc62c6 34337 COND_TOOLKIT_OS2=
fe0895cf 34338 fi
e6cc62c6
VS
34339
34340 COND_TOOLKIT_X11="#"
fe0895cf 34341 if test "x$TOOLKIT" = "xX11" ; then
e6cc62c6 34342 COND_TOOLKIT_X11=
fe0895cf 34343 fi
e6cc62c6
VS
34344
34345 COND_TOOLKIT_MGL="#"
fe0895cf 34346 if test "x$TOOLKIT" = "xMGL" ; then
e6cc62c6 34347 COND_TOOLKIT_MGL=
fe0895cf 34348 fi
e6cc62c6
VS
34349
34350 COND_WXUNIV_1="#"
fe0895cf 34351 if test "x$WXUNIV" = "x1" ; then
e6cc62c6 34352 COND_WXUNIV_1=
fe0895cf 34353 fi
e6cc62c6
VS
34354
34355 COND_WXUSE_LIBTIFF_BUILTIN="#"
34356 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34357 COND_WXUSE_LIBTIFF_BUILTIN=
fe0895cf 34358 fi
e6cc62c6
VS
34359
34360 COND_PLATFORM_UNIX_1="#"
fe0895cf 34361 if test "x$PLATFORM_UNIX" = "x1" ; then
e6cc62c6 34362 COND_PLATFORM_UNIX_1=
fe0895cf 34363 fi
e6cc62c6
VS
34364
34365 COND_PLATFORM_MACOSX_1="#"
fe0895cf 34366 if test "x$PLATFORM_MACOSX" = "x1" ; then
e6cc62c6 34367 COND_PLATFORM_MACOSX_1=
fe0895cf 34368 fi
e6cc62c6
VS
34369
34370 COND_PLATFORM_WIN32_1="#"
fe0895cf 34371 if test "x$PLATFORM_WIN32" = "x1" ; then
e6cc62c6 34372 COND_PLATFORM_WIN32_1=
fe0895cf 34373 fi
e6cc62c6
VS
34374
34375 COND_USE_SOVERSION_1_PLATFORM_MACOSX_0="#"
fe0895cf
VS
34376 if test "x$USE_SOVERSION" = "x1" -a \
34377 "x$PLATFORM_MACOSX" = "x0" ; then
e6cc62c6 34378 COND_USE_SOVERSION_1_PLATFORM_MACOSX_0=
fe0895cf 34379 fi
e6cc62c6
VS
34380
34381 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1="#"
fe0895cf
VS
34382 if test "x$USE_SOVERSION" = "x1" -a \
34383 "x$PLATFORM_MACOSX" = "x1" ; then
e6cc62c6 34384 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1=
fe0895cf 34385 fi
e6cc62c6
VS
34386
34387 COND_PLATFORM_WIN32_0="#"
fe0895cf 34388 if test "x$PLATFORM_WIN32" = "x0" ; then
e6cc62c6 34389 COND_PLATFORM_WIN32_0=
fe0895cf 34390 fi
e6cc62c6
VS
34391
34392 COND_MONOLITHIC_1="#"
fe0895cf 34393 if test "x$MONOLITHIC" = "x1" ; then
e6cc62c6 34394 COND_MONOLITHIC_1=
fe0895cf 34395 fi
e6cc62c6
VS
34396
34397 COND_MONOLITHIC_0="#"
fe0895cf 34398 if test "x$MONOLITHIC" = "x0" ; then
e6cc62c6 34399 COND_MONOLITHIC_0=
fe0895cf 34400 fi
e6cc62c6
VS
34401
34402 COND_USE_GUI_1="#"
fe0895cf 34403 if test "x$USE_GUI" = "x1" ; then
e6cc62c6 34404 COND_USE_GUI_1=
fe0895cf 34405 fi
e6cc62c6
VS
34406
34407 COND_DEPS_TYPE_GCC="#"
fe0895cf 34408 if test "x$DEPS_TYPE" = "xgcc" ; then
e6cc62c6 34409 COND_DEPS_TYPE_GCC=
fe0895cf 34410 fi
e6cc62c6
VS
34411
34412 COND_USE_GUI_0="#"
fe0895cf 34413 if test "x$USE_GUI" = "x0" ; then
e6cc62c6 34414 COND_USE_GUI_0=
fe0895cf 34415 fi
e6cc62c6
VS
34416
34417 COND_USE_GUI_1_WXUNIV_0="#"
fe0895cf
VS
34418 if test "x$USE_GUI" = "x1" -a \
34419 "x$WXUNIV" = "x0" ; then
e6cc62c6 34420 COND_USE_GUI_1_WXUNIV_0=
fe0895cf 34421 fi
e6cc62c6
VS
34422
34423 COND_USE_GUI_1_WXUNIV_1="#"
fe0895cf
VS
34424 if test "x$USE_GUI" = "x1" -a \
34425 "x$WXUNIV" = "x1" ; then
e6cc62c6
VS
34426 COND_USE_GUI_1_WXUNIV_1=
34427 fi
34428
34429 COND_SHARED_0_MONOLITHIC_1="#"
34430 if test "x$SHARED" = "x0" -a \
34431 "x$MONOLITHIC" = "x1" ; then
34432 COND_SHARED_0_MONOLITHIC_1=
fe0895cf 34433 fi
e6cc62c6
VS
34434
34435 COND_USE_SOVERLINUX_1="#"
fe0895cf 34436 if test "x$USE_SOVERLINUX" = "x1" ; then
e6cc62c6 34437 COND_USE_SOVERLINUX_1=
fe0895cf 34438 fi
e6cc62c6
VS
34439
34440 COND_USE_SOVERSOLARIS_1="#"
fe0895cf 34441 if test "x$USE_SOVERSOLARIS" = "x1" ; then
e6cc62c6
VS
34442 COND_USE_SOVERSOLARIS_1=
34443 fi
34444
34445 COND_PLATFORM_MAC_1="#"
34446 if test "x$PLATFORM_MAC" = "x1" ; then
34447 COND_PLATFORM_MAC_1=
fe0895cf 34448 fi
e6cc62c6 34449
6d7d8f3b
VS
34450 COND_SHARED_0="#"
34451 if test "x$SHARED" = "x0" ; then
34452 COND_SHARED_0=
34453 fi
34454
34455 COND_SHARED_1="#"
34456 if test "x$SHARED" = "x1" ; then
34457 COND_SHARED_1=
34458 fi
34459
fe0895cf
VS
34460
34461
34462
34463if test "$GXX" = yes ; then
34464 CXXWARNINGS="-Wall"
34465 fi
34466
34467EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34468
34469CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
34470CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34471CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
34472LIBS=`echo $LIBS | sed 's/ \+/ /g'`
34473
34474LDFLAGS="$LDFLAGS $PROFILE"
34475
34476SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
e6cc62c6
VS
34577
34578
34579
34580echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34581echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34582set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34583if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34584 echo $ECHO_N "(cached) $ECHO_C" >&6
34585else
34586 cat >conftest.make <<\_ACEOF
34587all:
34588 @echo 'ac_maketemp="$(MAKE)"'
34589_ACEOF
34590# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34591eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34592if test -n "$ac_maketemp"; then
34593 eval ac_cv_prog_make_${ac_make}_set=yes
34594else
34595 eval ac_cv_prog_make_${ac_make}_set=no
34596fi
34597rm -f conftest.make
34598fi
34599if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34600 echo "$as_me:$LINENO: result: yes" >&5
34601echo "${ECHO_T}yes" >&6
34602 SET_MAKE=
34603else
34604 echo "$as_me:$LINENO: result: no" >&5
34605echo "${ECHO_T}no" >&6
34606 SET_MAKE="MAKE=${MAKE-make}"
34607fi
34608
34609
34610if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
34611 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
34612fi
34613
34614 ac_config_headers="$ac_config_headers setup.h"
34615
34616
34617 ac_config_files="$ac_config_files wx-config version-script Makefile"
34618
34619
34620 ac_config_commands="$ac_config_commands default"
34621
34622
34623
34624if test -d ${srcdir}/samples ; then
34625 ac_config_files="$ac_config_files samples/Makefile samples/access/Makefile samples/artprov/Makefile samples/caret/Makefile samples/calendar/Makefile samples/checklst/Makefile samples/config/Makefile samples/controls/Makefile samples/console/Makefile samples/db/Makefile samples/dialogs/Makefile samples/dialup/Makefile samples/docview/Makefile samples/docvwmdi/Makefile samples/dnd/Makefile samples/dragimag/Makefile samples/drawing/Makefile samples/dynamic/Makefile samples/erase/Makefile samples/event/Makefile samples/exec/Makefile samples/font/Makefile samples/grid/Makefile samples/help/Makefile samples/image/Makefile samples/internat/Makefile samples/ipc/Makefile samples/joytest/Makefile samples/keyboard/Makefile samples/layout/Makefile samples/listctrl/Makefile samples/mdi/Makefile samples/menu/Makefile samples/memcheck/Makefile samples/minifram/Makefile samples/minimal/Makefile samples/mobile/Makefile samples/mobile/wxedit/Makefile samples/mobile/styles/Makefile samples/multimon/Makefile samples/notebook/Makefile samples/oleauto/Makefile samples/ownerdrw/Makefile samples/png/Makefile samples/printing/Makefile samples/propsize/Makefile samples/regtest/Makefile samples/rotate/Makefile samples/sashtest/Makefile samples/shaped/Makefile samples/scroll/Makefile samples/scrollsub/Makefile samples/sockets/Makefile samples/splitter/Makefile samples/statbar/Makefile samples/taskbar/Makefile samples/text/Makefile samples/thread/Makefile samples/toolbar/Makefile samples/treectrl/Makefile samples/typetest/Makefile samples/validate/Makefile samples/widgets/Makefile samples/wizard/Makefile samples/htlbox/Makefile samples/html/Makefile samples/html/about/Makefile samples/html/help/Makefile samples/html/printing/Makefile samples/html/helpview/Makefile samples/html/test/Makefile samples/html/zip/Makefile samples/html/virtual/Makefile samples/html/widget/Makefile samples/opengl/Makefile samples/opengl/cube/Makefile samples/opengl/penguin/Makefile samples/opengl/isosurf/Makefile"
34626
34627fi
34628
34629if test -d ${srcdir}/demos ; then
34630 ac_config_files="$ac_config_files demos/Makefile demos/bombs/Makefile demos/dbbrowse/Makefile demos/forty/Makefile demos/fractal/Makefile demos/life/Makefile demos/poem/Makefile"
34631
34632fi
34633
34634if test -d ${srcdir}/utils ; then
34635 ac_config_files="$ac_config_files utils/Makefile utils/makegen/Makefile utils/HelpGen/Makefile utils/HelpGen/src/Makefile utils/tex2rtf/Makefile utils/tex2rtf/src/Makefile utils/hhp2cached/Makefile utils/dialoged/Makefile utils/dialoged/src/Makefile utils/emulator/Makefile utils/emulator/src/Makefile utils/helpview/Makefile utils/helpview/src/Makefile utils/configtool/Makefile utils/configtool/src/Makefile"
34636
34637fi
34638
34639if test -d ${srcdir}/contrib ; then
34640 ac_config_files="$ac_config_files contrib/src/Makefile contrib/src/deprecated/Makefile contrib/src/ogl/Makefile contrib/src/mmedia/Makefile contrib/src/stc/Makefile contrib/src/svg/Makefile contrib/src/xrc/Makefile contrib/src/gizmos/Makefile contrib/src/plot/Makefile contrib/src/applet/Makefile contrib/src/fl/Makefile contrib/src/net/Makefile contrib/samples/Makefile contrib/samples/deprecated/Makefile contrib/samples/deprecated/proplist/Makefile contrib/samples/deprecated/resource/Makefile contrib/samples/deprecated/treelay/Makefile contrib/samples/mmedia/Makefile contrib/samples/ogl/Makefile contrib/samples/ogl/ogledit/Makefile contrib/samples/ogl/studio/Makefile contrib/samples/stc/Makefile contrib/samples/svg/Makefile contrib/samples/gizmos/Makefile contrib/samples/gizmos/editlbox/Makefile contrib/samples/gizmos/dynsash/Makefile contrib/samples/gizmos/dynsash_switch/Makefile contrib/samples/gizmos/multicell/Makefile contrib/samples/gizmos/splittree/Makefile contrib/samples/gizmos/led/Makefile contrib/samples/xrc/Makefile contrib/samples/plot/Makefile contrib/samples/applet/Makefile contrib/samples/fl/Makefile contrib/samples/fl/fl_demo1/Makefile contrib/samples/fl/fl_demo2/Makefile contrib/samples/fl/fl_sample1/Makefile contrib/samples/fl/fl_sample2/Makefile contrib/samples/fl/fl_sample3/Makefile contrib/utils/Makefile contrib/utils/wxrc/Makefile contrib/utils/wxrcedit/Makefile contrib/utils/convertrc/Makefile"
34641
34642fi
34643
34644
34645cat >confcache <<\_ACEOF
34646# This file is a shell script that caches the results of configure
34647# tests run on this system so they can be shared between configure
34648# scripts and configure runs, see configure's option --config-cache.
34649# It is not useful on other systems. If it contains results you don't
34650# want to keep, you may remove or edit it.
34651#
34652# config.status only pays attention to the cache file if you give it
34653# the --recheck option to rerun configure.
34654#
34655# `ac_cv_env_foo' variables (set or unset) will be overridden when
34656# loading this file, other *unset* `ac_cv_foo' will be assigned the
34657# following values.
34658
34659_ACEOF
34660
34661# The following way of writing the cache mishandles newlines in values,
34662# but we know of no workaround that is simple, portable, and efficient.
34663# So, don't put newlines in cache variables' values.
34664# Ultrix sh set writes to stderr and can't be redirected directly,
34665# and sets the high bit in the cache file unless we assign to the vars.
34666{
34667 (set) 2>&1 |
34668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34669 *ac_space=\ *)
34670 # `set' does not quote correctly, so add quotes (double-quote
34671 # substitution turns \\\\ into \\, and sed turns \\ into \).
34672 sed -n \
34673 "s/'/'\\\\''/g;
34674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34675 ;;
34676 *)
34677 # `set' quotes correctly as required by POSIX, so do not add quotes.
34678 sed -n \
34679 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34680 ;;
34681 esac;
34682} |
34683 sed '
34684 t clear
34685 : clear
34686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34687 t end
34688 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34689 : end' >>confcache
34690if diff $cache_file confcache >/dev/null 2>&1; then :; else
34691 if test -w $cache_file; then
34692 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34693 cat confcache >$cache_file
34694 else
34695 echo "not updating unwritable cache $cache_file"
34696 fi
34697fi
34698rm -f confcache
34699
34700test "x$prefix" = xNONE && prefix=$ac_default_prefix
34701# Let make expand exec_prefix.
34702test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34703
34704# VPATH may cause trouble with some makes, so we remove $(srcdir),
34705# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34706# trailing colons and then remove the whole line if VPATH becomes empty
34707# (actually we leave an empty line to preserve line numbers).
34708if test "x$srcdir" = x.; then
34709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34710s/:*\$(srcdir):*/:/;
34711s/:*\${srcdir}:*/:/;
34712s/:*@srcdir@:*/:/;
34713s/^\([^=]*=[ ]*\):*/\1/;
34714s/:*$//;
34715s/^[^=]*=[ ]*$//;
34716}'
34717fi
34718
34719DEFS=-DHAVE_CONFIG_H
34720
34721ac_libobjs=
34722ac_ltlibobjs=
34723for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34724 # 1. Remove the extension, and $U if already installed.
34725 ac_i=`echo "$ac_i" |
34726 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34727 # 2. Add them.
34728 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34729 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34730done
34731LIBOBJS=$ac_libobjs
34732
34733LTLIBOBJS=$ac_ltlibobjs
34734
34735
34736
34737: ${CONFIG_STATUS=./config.status}
34738ac_clean_files_save=$ac_clean_files
34739ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34740{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34741echo "$as_me: creating $CONFIG_STATUS" >&6;}
34742cat >$CONFIG_STATUS <<_ACEOF
34743#! $SHELL
34744# Generated by $as_me.
34745# Run this file to recreate the current configuration.
34746# Compiler output produced by configure, useful for debugging
34747# configure, is in config.log if it exists.
34748
34749debug=false
34750ac_cs_recheck=false
34751ac_cs_silent=false
34752SHELL=\${CONFIG_SHELL-$SHELL}
34753_ACEOF
34754
34755cat >>$CONFIG_STATUS <<\_ACEOF
34756## --------------------- ##
34757## M4sh Initialization. ##
34758## --------------------- ##
34759
34760# Be Bourne compatible
34761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34762 emulate sh
34763 NULLCMD=:
34764 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34765 # is contrary to our usage. Disable this feature.
34766 alias -g '${1+"$@"}'='"$@"'
34767elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34768 set -o posix
34769fi
34770
34771# Support unset when possible.
34772if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34773 as_unset=unset
34774else
34775 as_unset=false
34776fi
34777
34778
34779# Work around bugs in pre-3.0 UWIN ksh.
34780$as_unset ENV MAIL MAILPATH
34781PS1='$ '
34782PS2='> '
34783PS4='+ '
34784
34785# NLS nuisances.
34786for as_var in \
34787 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34788 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34789 LC_TELEPHONE LC_TIME
34790do
34791 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
34792 eval $as_var=C; export $as_var
34793 else
34794 $as_unset $as_var
34795 fi
34796done
34797
34798# Required to use basename.
34799if expr a : '\(a\)' >/dev/null 2>&1; then
34800 as_expr=expr
34801else
34802 as_expr=false
34803fi
34804
34805if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34806 as_basename=basename
34807else
34808 as_basename=false
34809fi
34810
34811
34812# Name of the executable.
34813as_me=`$as_basename "$0" ||
34814$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34815 X"$0" : 'X\(//\)$' \| \
34816 X"$0" : 'X\(/\)$' \| \
34817 . : '\(.\)' 2>/dev/null ||
34818echo X/"$0" |
34819 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34820 /^X\/\(\/\/\)$/{ s//\1/; q; }
34821 /^X\/\(\/\).*/{ s//\1/; q; }
34822 s/.*/./; q'`
34823
34824
34825# PATH needs CR, and LINENO needs CR and PATH.
34826# Avoid depending upon Character Ranges.
34827as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34828as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34829as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34830as_cr_digits='0123456789'
34831as_cr_alnum=$as_cr_Letters$as_cr_digits
34832
34833# The user is always right.
34834if test "${PATH_SEPARATOR+set}" != set; then
34835 echo "#! /bin/sh" >conf$$.sh
34836 echo "exit 0" >>conf$$.sh
34837 chmod +x conf$$.sh
34838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34839 PATH_SEPARATOR=';'
34840 else
34841 PATH_SEPARATOR=:
34842 fi
34843 rm -f conf$$.sh
34844fi
34845
34846
34847 as_lineno_1=$LINENO
34848 as_lineno_2=$LINENO
34849 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34850 test "x$as_lineno_1" != "x$as_lineno_2" &&
34851 test "x$as_lineno_3" = "x$as_lineno_2" || {
34852 # Find who we are. Look in the path if we contain no path at all
34853 # relative or not.
34854 case $0 in
34855 *[\\/]* ) as_myself=$0 ;;
34856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34857for as_dir in $PATH
34858do
34859 IFS=$as_save_IFS
34860 test -z "$as_dir" && as_dir=.
34861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34862done
34863
34864 ;;
34865 esac
34866 # We did not find ourselves, most probably we were run as `sh COMMAND'
34867 # in which case we are not to be found in the path.
34868 if test "x$as_myself" = x; then
34869 as_myself=$0
34870 fi
34871 if test ! -f "$as_myself"; then
34872 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34873echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34874 { (exit 1); exit 1; }; }
34875 fi
34876 case $CONFIG_SHELL in
34877 '')
34878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34879for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34880do
34881 IFS=$as_save_IFS
34882 test -z "$as_dir" && as_dir=.
34883 for as_base in sh bash ksh sh5; do
34884 case $as_dir in
34885 /*)
34886 if ("$as_dir/$as_base" -c '
34887 as_lineno_1=$LINENO
34888 as_lineno_2=$LINENO
34889 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34890 test "x$as_lineno_1" != "x$as_lineno_2" &&
34891 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
34892 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34893 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34894 CONFIG_SHELL=$as_dir/$as_base
34895 export CONFIG_SHELL
34896 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34897 fi;;
34898 esac
34899 done
34900done
34901;;
34902 esac
34903
34904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34905 # uniformly replaced by the line number. The first 'sed' inserts a
34906 # line-number line before each line; the second 'sed' does the real
34907 # work. The second script uses 'N' to pair each line-number line
34908 # with the numbered line, and appends trailing '-' during
34909 # substitution so that $LINENO is not a special case at line end.
34910 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34911 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
34912 sed '=' <$as_myself |
34913 sed '
34914 N
34915 s,$,-,
34916 : loop
34917 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34918 t loop
34919 s,-$,,
34920 s,^['$as_cr_digits']*\n,,
34921 ' >$as_me.lineno &&
34922 chmod +x $as_me.lineno ||
34923 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34924echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34925 { (exit 1); exit 1; }; }
34926
34927 # Don't try to exec as it changes $[0], causing all sort of problems
34928 # (the dirname of $[0] is not the place where we might find the
34929 # original and so on. Autoconf is especially sensible to this).
34930 . ./$as_me.lineno
34931 # Exit status is that of the last command.
34932 exit
34933}
34934
34935
34936case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34937 *c*,-n*) ECHO_N= ECHO_C='
34938' ECHO_T=' ' ;;
34939 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34940 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
34941esac
34942
34943if expr a : '\(a\)' >/dev/null 2>&1; then
34944 as_expr=expr
34945else
34946 as_expr=false
34947fi
34948
34949rm -f conf$$ conf$$.exe conf$$.file
34950echo >conf$$.file
34951if ln -s conf$$.file conf$$ 2>/dev/null; then
34952 # We could just check for DJGPP; but this test a) works b) is more generic
34953 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34954 if test -f conf$$.exe; then
34955 # Don't use ln at all; we don't have any links
34956 as_ln_s='cp -p'
34957 else
34958 as_ln_s='ln -s'
34959 fi
34960elif ln conf$$.file conf$$ 2>/dev/null; then
34961 as_ln_s=ln
34962else
34963 as_ln_s='cp -p'
34964fi
34965rm -f conf$$ conf$$.exe conf$$.file
34966
34967if mkdir -p . 2>/dev/null; then
34968 as_mkdir_p=:
34969else
34970 as_mkdir_p=false
34971fi
34972
34973as_executable_p="test -f"
34974
34975# Sed expression to map a string onto a valid CPP name.
34976as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
34977
34978# Sed expression to map a string onto a valid variable name.
34979as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
34980
34981
34982# IFS
34983# We need space, tab and new line, in precisely that order.
34984as_nl='
34985'
34986IFS=" $as_nl"
34987
34988# CDPATH.
34989$as_unset CDPATH
34990
34991exec 6>&1
34992
34993# Open the log real soon, to keep \$[0] and so on meaningful, and to
34994# report actual input values of CONFIG_FILES etc. instead of their
34995# values after options handling. Logging --version etc. is OK.
34996exec 5>>config.log
34997{
34998 echo
34999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35000## Running $as_me. ##
35001_ASBOX
35002} >&5
35003cat >&5 <<_CSEOF
35004
35005This file was extended by wxWindows $as_me 2.5.0, which was
35006generated by GNU Autoconf 2.57. Invocation command line was
35007
35008 CONFIG_FILES = $CONFIG_FILES
35009 CONFIG_HEADERS = $CONFIG_HEADERS
35010 CONFIG_LINKS = $CONFIG_LINKS
35011 CONFIG_COMMANDS = $CONFIG_COMMANDS
35012 $ $0 $@
35013
35014_CSEOF
35015echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35016echo >&5
35017_ACEOF
35018
35019# Files that config.status was made for.
35020if test -n "$ac_config_files"; then
35021 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35022fi
35023
35024if test -n "$ac_config_headers"; then
35025 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35026fi
35027
35028if test -n "$ac_config_links"; then
35029 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35030fi
35031
35032if test -n "$ac_config_commands"; then
35033 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35034fi
35035
35036cat >>$CONFIG_STATUS <<\_ACEOF
35037
35038ac_cs_usage="\
35039\`$as_me' instantiates files from templates according to the
35040current configuration.
35041
35042Usage: $0 [OPTIONS] [FILE]...
35043
35044 -h, --help print this help, then exit
35045 -V, --version print version number, then exit
35046 -q, --quiet do not print progress messages
35047 -d, --debug don't remove temporary files
35048 --recheck update $as_me by reconfiguring in the same conditions
35049 --file=FILE[:TEMPLATE]
35050 instantiate the configuration file FILE
35051 --header=FILE[:TEMPLATE]
35052 instantiate the configuration header FILE
35053
35054Configuration files:
35055$config_files
35056
35057Configuration headers:
35058$config_headers
35059
35060Configuration commands:
35061$config_commands
35062
35063Report bugs to <bug-autoconf@gnu.org>."
35064_ACEOF
35065
35066cat >>$CONFIG_STATUS <<_ACEOF
35067ac_cs_version="\\
35068wxWindows config.status 2.5.0
35069configured by $0, generated by GNU Autoconf 2.57,
35070 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35071
35072Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35073Free Software Foundation, Inc.
35074This config.status script is free software; the Free Software Foundation
35075gives unlimited permission to copy, distribute and modify it."
35076srcdir=$srcdir
35077INSTALL="$INSTALL"
35078_ACEOF
35079
35080cat >>$CONFIG_STATUS <<\_ACEOF
35081# If no file are specified by the user, then we need to provide default
35082# value. By we need to know if files were specified by the user.
35083ac_need_defaults=:
35084while test $# != 0
35085do
35086 case $1 in
35087 --*=*)
35088 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35089 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35090 ac_shift=:
35091 ;;
35092 -*)
35093 ac_option=$1
35094 ac_optarg=$2
35095 ac_shift=shift
35096 ;;
35097 *) # This is not an option, so the user has probably given explicit
35098 # arguments.
35099 ac_option=$1
35100 ac_need_defaults=false;;
35101 esac
35102
35103 case $ac_option in
35104 # Handling of the options.
35105_ACEOF
35106cat >>$CONFIG_STATUS <<\_ACEOF
35107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35108 ac_cs_recheck=: ;;
35109 --version | --vers* | -V )
35110 echo "$ac_cs_version"; exit 0 ;;
35111 --he | --h)
35112 # Conflict between --help and --header
35113 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35114Try \`$0 --help' for more information." >&5
35115echo "$as_me: error: ambiguous option: $1
35116Try \`$0 --help' for more information." >&2;}
35117 { (exit 1); exit 1; }; };;
35118 --help | --hel | -h )
35119 echo "$ac_cs_usage"; exit 0 ;;
35120 --debug | --d* | -d )
35121 debug=: ;;
35122 --file | --fil | --fi | --f )
35123 $ac_shift
35124 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35125 ac_need_defaults=false;;
35126 --header | --heade | --head | --hea )
35127 $ac_shift
35128 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35129 ac_need_defaults=false;;
35130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35132 ac_cs_silent=: ;;
35133
35134 # This is an error.
35135 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35136Try \`$0 --help' for more information." >&5
35137echo "$as_me: error: unrecognized option: $1
35138Try \`$0 --help' for more information." >&2;}
35139 { (exit 1); exit 1; }; } ;;
35140
35141 *) ac_config_targets="$ac_config_targets $1" ;;
35142
35143 esac
35144 shift
35145done
35146
35147ac_configure_extra_args=
35148
35149if $ac_cs_silent; then
35150 exec 6>/dev/null
35151 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35152fi
35153
e6cc62c6
VS
35154_ACEOF
35155cat >>$CONFIG_STATUS <<_ACEOF
35156if \$ac_cs_recheck; then
35157 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35158 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35159fi
35160
e6cc62c6 35161_ACEOF
fe0895cf 35162
e6cc62c6 35163cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35164#
e6cc62c6 35165# INIT-COMMANDS section.
10f2d63a 35166#
10f2d63a 35167
a0b9e27f 35168
e6cc62c6
VS
35169 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35170 LN_S="${LN_S}"
10f2d63a 35171
10f2d63a 35172
10f2d63a 35173
e6cc62c6 35174_ACEOF
8284b0c5 35175
52127426 35176
247f5006 35177
e6cc62c6
VS
35178cat >>$CONFIG_STATUS <<\_ACEOF
35179for ac_config_target in $ac_config_targets
247f5006 35180do
e6cc62c6
VS
35181 case "$ac_config_target" in
35182 # Handling of arguments.
35183 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35184 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35185 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35186 "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
35187 "samples/access/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/access/Makefile" ;;
35188 "samples/artprov/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/artprov/Makefile" ;;
35189 "samples/caret/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/caret/Makefile" ;;
35190 "samples/calendar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/calendar/Makefile" ;;
35191 "samples/checklst/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/checklst/Makefile" ;;
35192 "samples/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/config/Makefile" ;;
35193 "samples/controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/controls/Makefile" ;;
35194 "samples/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/console/Makefile" ;;
35195 "samples/db/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/db/Makefile" ;;
35196 "samples/dialogs/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dialogs/Makefile" ;;
35197 "samples/dialup/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dialup/Makefile" ;;
35198 "samples/docview/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/docview/Makefile" ;;
35199 "samples/docvwmdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/docvwmdi/Makefile" ;;
35200 "samples/dnd/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dnd/Makefile" ;;
35201 "samples/dragimag/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dragimag/Makefile" ;;
35202 "samples/drawing/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/drawing/Makefile" ;;
35203 "samples/dynamic/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/dynamic/Makefile" ;;
35204 "samples/erase/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/erase/Makefile" ;;
35205 "samples/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/event/Makefile" ;;
35206 "samples/exec/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/exec/Makefile" ;;
35207 "samples/font/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/font/Makefile" ;;
35208 "samples/grid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/grid/Makefile" ;;
35209 "samples/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/help/Makefile" ;;
35210 "samples/image/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/image/Makefile" ;;
35211 "samples/internat/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/internat/Makefile" ;;
35212 "samples/ipc/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/ipc/Makefile" ;;
35213 "samples/joytest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/joytest/Makefile" ;;
35214 "samples/keyboard/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/keyboard/Makefile" ;;
35215 "samples/layout/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
35216 "samples/listctrl/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/listctrl/Makefile" ;;
35217 "samples/mdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mdi/Makefile" ;;
35218 "samples/menu/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/menu/Makefile" ;;
35219 "samples/memcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/memcheck/Makefile" ;;
35220 "samples/minifram/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minifram/Makefile" ;;
35221 "samples/minimal/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/minimal/Makefile" ;;
35222 "samples/mobile/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mobile/Makefile" ;;
35223 "samples/mobile/wxedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mobile/wxedit/Makefile" ;;
35224 "samples/mobile/styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/mobile/styles/Makefile" ;;
35225 "samples/multimon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/multimon/Makefile" ;;
35226 "samples/notebook/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/notebook/Makefile" ;;
35227 "samples/oleauto/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/oleauto/Makefile" ;;
35228 "samples/ownerdrw/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/ownerdrw/Makefile" ;;
35229 "samples/png/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/png/Makefile" ;;
35230 "samples/printing/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/printing/Makefile" ;;
35231 "samples/propsize/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/propsize/Makefile" ;;
35232 "samples/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/regtest/Makefile" ;;
35233 "samples/rotate/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/rotate/Makefile" ;;
35234 "samples/sashtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/sashtest/Makefile" ;;
35235 "samples/shaped/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/shaped/Makefile" ;;
35236 "samples/scroll/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/scroll/Makefile" ;;
35237 "samples/scrollsub/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/scrollsub/Makefile" ;;
35238 "samples/sockets/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/sockets/Makefile" ;;
35239 "samples/splitter/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/splitter/Makefile" ;;
35240 "samples/statbar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/statbar/Makefile" ;;
35241 "samples/taskbar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/taskbar/Makefile" ;;
35242 "samples/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/text/Makefile" ;;
35243 "samples/thread/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/thread/Makefile" ;;
35244 "samples/toolbar/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/toolbar/Makefile" ;;
35245 "samples/treectrl/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/treectrl/Makefile" ;;
35246 "samples/typetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/typetest/Makefile" ;;
35247 "samples/validate/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/validate/Makefile" ;;
35248 "samples/widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/widgets/Makefile" ;;
35249 "samples/wizard/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/wizard/Makefile" ;;
35250 "samples/htlbox/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/htlbox/Makefile" ;;
35251 "samples/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/Makefile" ;;
35252 "samples/html/about/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/about/Makefile" ;;
35253 "samples/html/help/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/help/Makefile" ;;
35254 "samples/html/printing/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/printing/Makefile" ;;
35255 "samples/html/helpview/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/helpview/Makefile" ;;
35256 "samples/html/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/test/Makefile" ;;
35257 "samples/html/zip/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/zip/Makefile" ;;
35258 "samples/html/virtual/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/virtual/Makefile" ;;
35259 "samples/html/widget/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/html/widget/Makefile" ;;
35260 "samples/opengl/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/Makefile" ;;
35261 "samples/opengl/cube/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/cube/Makefile" ;;
35262 "samples/opengl/penguin/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/penguin/Makefile" ;;
35263 "samples/opengl/isosurf/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/opengl/isosurf/Makefile" ;;
35264 "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
35265 "demos/bombs/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/bombs/Makefile" ;;
35266 "demos/dbbrowse/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/dbbrowse/Makefile" ;;
35267 "demos/forty/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/forty/Makefile" ;;
35268 "demos/fractal/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/fractal/Makefile" ;;
35269 "demos/life/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/life/Makefile" ;;
35270 "demos/poem/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/poem/Makefile" ;;
35271 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
35272 "utils/makegen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/makegen/Makefile" ;;
35273 "utils/HelpGen/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/HelpGen/Makefile" ;;
35274 "utils/HelpGen/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/HelpGen/src/Makefile" ;;
35275 "utils/tex2rtf/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/tex2rtf/Makefile" ;;
35276 "utils/tex2rtf/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/tex2rtf/src/Makefile" ;;
35277 "utils/hhp2cached/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/hhp2cached/Makefile" ;;
35278 "utils/dialoged/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/dialoged/Makefile" ;;
35279 "utils/dialoged/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/dialoged/src/Makefile" ;;
35280 "utils/emulator/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/emulator/Makefile" ;;
35281 "utils/emulator/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/emulator/src/Makefile" ;;
35282 "utils/helpview/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/helpview/Makefile" ;;
35283 "utils/helpview/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/helpview/src/Makefile" ;;
35284 "utils/configtool/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/configtool/Makefile" ;;
35285 "utils/configtool/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/configtool/src/Makefile" ;;
35286 "contrib/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/Makefile" ;;
35287 "contrib/src/deprecated/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/deprecated/Makefile" ;;
35288 "contrib/src/ogl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/ogl/Makefile" ;;
35289 "contrib/src/mmedia/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/mmedia/Makefile" ;;
35290 "contrib/src/stc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/stc/Makefile" ;;
35291 "contrib/src/svg/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/svg/Makefile" ;;
35292 "contrib/src/xrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/xrc/Makefile" ;;
35293 "contrib/src/gizmos/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/gizmos/Makefile" ;;
35294 "contrib/src/plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/plot/Makefile" ;;
35295 "contrib/src/applet/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/applet/Makefile" ;;
35296 "contrib/src/fl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/fl/Makefile" ;;
35297 "contrib/src/net/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/src/net/Makefile" ;;
35298 "contrib/samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/Makefile" ;;
35299 "contrib/samples/deprecated/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/Makefile" ;;
35300 "contrib/samples/deprecated/proplist/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/proplist/Makefile" ;;
35301 "contrib/samples/deprecated/resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/resource/Makefile" ;;
35302 "contrib/samples/deprecated/treelay/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/deprecated/treelay/Makefile" ;;
35303 "contrib/samples/mmedia/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/mmedia/Makefile" ;;
35304 "contrib/samples/ogl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/ogl/Makefile" ;;
35305 "contrib/samples/ogl/ogledit/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/ogl/ogledit/Makefile" ;;
35306 "contrib/samples/ogl/studio/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/ogl/studio/Makefile" ;;
35307 "contrib/samples/stc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/stc/Makefile" ;;
35308 "contrib/samples/svg/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/svg/Makefile" ;;
35309 "contrib/samples/gizmos/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/Makefile" ;;
35310 "contrib/samples/gizmos/editlbox/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/editlbox/Makefile" ;;
35311 "contrib/samples/gizmos/dynsash/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/dynsash/Makefile" ;;
35312 "contrib/samples/gizmos/dynsash_switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/dynsash_switch/Makefile" ;;
35313 "contrib/samples/gizmos/multicell/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/multicell/Makefile" ;;
35314 "contrib/samples/gizmos/splittree/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/splittree/Makefile" ;;
35315 "contrib/samples/gizmos/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/gizmos/led/Makefile" ;;
35316 "contrib/samples/xrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/xrc/Makefile" ;;
35317 "contrib/samples/plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/plot/Makefile" ;;
35318 "contrib/samples/applet/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/applet/Makefile" ;;
35319 "contrib/samples/fl/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/Makefile" ;;
35320 "contrib/samples/fl/fl_demo1/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_demo1/Makefile" ;;
35321 "contrib/samples/fl/fl_demo2/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_demo2/Makefile" ;;
35322 "contrib/samples/fl/fl_sample1/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_sample1/Makefile" ;;
35323 "contrib/samples/fl/fl_sample2/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_sample2/Makefile" ;;
35324 "contrib/samples/fl/fl_sample3/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/samples/fl/fl_sample3/Makefile" ;;
35325 "contrib/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/Makefile" ;;
35326 "contrib/utils/wxrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/wxrc/Makefile" ;;
35327 "contrib/utils/wxrcedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/wxrcedit/Makefile" ;;
35328 "contrib/utils/convertrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/utils/convertrc/Makefile" ;;
35329 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35330 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35331 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35332echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35333 { (exit 1); exit 1; }; };;
247f5006
VZ
35334 esac
35335done
35336
e6cc62c6
VS
35337# If the user did not use the arguments to specify the items to instantiate,
35338# then the envvar interface is used. Set only those that are not.
35339# We use the long form for the default assignment because of an extremely
35340# bizarre bug on SunOS 4.1.3.
35341if $ac_need_defaults; then
35342 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35343 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35345fi
35346
35347# Have a temporary directory for convenience. Make it in the build tree
35348# simply because there is no reason to put it here, and in addition,
35349# creating and moving files from /tmp can sometimes cause problems.
35350# Create a temporary directory, and hook for its removal unless debugging.
35351$debug ||
35352{
35353 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35354 trap '{ (exit 1); exit 1; }' 1 2 13 15
35355}
247f5006 35356
e6cc62c6 35357# Create a (secure) tmp directory for tmp files.
247f5006 35358
e6cc62c6
VS
35359{
35360 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35361 test -n "$tmp" && test -d "$tmp"
35362} ||
35363{
35364 tmp=./confstat$$-$RANDOM
35365 (umask 077 && mkdir $tmp)
35366} ||
35367{
35368 echo "$me: cannot create a temporary directory in ." >&2
35369 { (exit 1); exit 1; }
35370}
35371
35372_ACEOF
35373
35374cat >>$CONFIG_STATUS <<_ACEOF
35375
35376#
35377# CONFIG_FILES section.
35378#
247f5006 35379
e6cc62c6
VS
35380# No need to generate the scripts if there are no CONFIG_FILES.
35381# This happens for instance when ./config.status config.h
35382if test -n "\$CONFIG_FILES"; then
35383 # Protect against being on the right side of a sed subst in config.status.
35384 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35385 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35386s,@SHELL@,$SHELL,;t t
35387s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35388s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35389s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35390s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35391s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35392s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35393s,@exec_prefix@,$exec_prefix,;t t
35394s,@prefix@,$prefix,;t t
35395s,@program_transform_name@,$program_transform_name,;t t
35396s,@bindir@,$bindir,;t t
35397s,@sbindir@,$sbindir,;t t
35398s,@libexecdir@,$libexecdir,;t t
35399s,@datadir@,$datadir,;t t
35400s,@sysconfdir@,$sysconfdir,;t t
35401s,@sharedstatedir@,$sharedstatedir,;t t
35402s,@localstatedir@,$localstatedir,;t t
35403s,@libdir@,$libdir,;t t
35404s,@includedir@,$includedir,;t t
35405s,@oldincludedir@,$oldincludedir,;t t
35406s,@infodir@,$infodir,;t t
35407s,@mandir@,$mandir,;t t
35408s,@build_alias@,$build_alias,;t t
35409s,@host_alias@,$host_alias,;t t
35410s,@target_alias@,$target_alias,;t t
35411s,@DEFS@,$DEFS,;t t
35412s,@ECHO_C@,$ECHO_C,;t t
35413s,@ECHO_N@,$ECHO_N,;t t
35414s,@ECHO_T@,$ECHO_T,;t t
35415s,@LIBS@,$LIBS,;t t
35416s,@build@,$build,;t t
35417s,@build_cpu@,$build_cpu,;t t
35418s,@build_vendor@,$build_vendor,;t t
35419s,@build_os@,$build_os,;t t
35420s,@host@,$host,;t t
35421s,@host_cpu@,$host_cpu,;t t
35422s,@host_vendor@,$host_vendor,;t t
35423s,@host_os@,$host_os,;t t
35424s,@target@,$target,;t t
35425s,@target_cpu@,$target_cpu,;t t
35426s,@target_vendor@,$target_vendor,;t t
35427s,@target_os@,$target_os,;t t
35428s,@CC@,$CC,;t t
35429s,@CFLAGS@,$CFLAGS,;t t
35430s,@LDFLAGS@,$LDFLAGS,;t t
35431s,@CPPFLAGS@,$CPPFLAGS,;t t
35432s,@ac_ct_CC@,$ac_ct_CC,;t t
35433s,@EXEEXT@,$EXEEXT,;t t
35434s,@OBJEXT@,$OBJEXT,;t t
35435s,@CPP@,$CPP,;t t
35436s,@EGREP@,$EGREP,;t t
35437s,@CXX@,$CXX,;t t
35438s,@CXXFLAGS@,$CXXFLAGS,;t t
35439s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35440s,@RANLIB@,$RANLIB,;t t
35441s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35442s,@AR@,$AR,;t t
35443s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35444s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35445s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35446s,@STRIP@,$STRIP,;t t
35447s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
35448s,@YACC@,$YACC,;t t
35449s,@LEX@,$LEX,;t t
35450s,@LEXLIB@,$LEXLIB,;t t
35451s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35452s,@LN_S@,$LN_S,;t t
35453s,@CXXCPP@,$CXXCPP,;t t
35454s,@PKG_CONFIG@,$PKG_CONFIG,;t t
35455s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
35456s,@GTK_LIBS@,$GTK_LIBS,;t t
35457s,@GTK_CONFIG@,$GTK_CONFIG,;t t
35458s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
35459s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
35460s,@X_CFLAGS@,$X_CFLAGS,;t t
35461s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35462s,@X_LIBS@,$X_LIBS,;t t
35463s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35464s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
35465s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
35466s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
35467s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
35468s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
35469s,@RESCOMP@,$RESCOMP,;t t
35470s,@DEREZ@,$DEREZ,;t t
35471s,@SETFILE@,$SETFILE,;t t
35472s,@LIBICONV@,$LIBICONV,;t t
35473s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
35474s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
35475s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
35476s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
35477s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
35478s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
35479s,@WXUNIV@,$WXUNIV,;t t
35480s,@MONOLITHIC@,$MONOLITHIC,;t t
35481s,@EXTRALIBS@,$EXTRALIBS,;t t
35482s,@UNICODE@,$UNICODE,;t t
35483s,@BUILD@,$BUILD,;t t
35484s,@SHARED@,$SHARED,;t t
35485s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
35486s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
35487s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
35488s,@SET_MAKE@,$SET_MAKE,;t t
35489s,@MAKE_SET@,$MAKE_SET,;t t
35490s,@INSTALL_DIR@,$INSTALL_DIR,;t t
35491s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
35492s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
35493s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
35494s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
35495s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
35496s,@SO_SUFFIX@,$SO_SUFFIX,;t t
35497s,@DLLPREFIX@,$DLLPREFIX,;t t
35498s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
35499s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
35500s,@PIC_FLAG@,$PIC_FLAG,;t t
35501s,@USE_SOVERSION@,$USE_SOVERSION,;t t
35502s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
35503s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
35504s,@USE_MACVERSION@,$USE_MACVERSION,;t t
35505s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
35506s,@SONAME_FLAG@,$SONAME_FLAG,;t t
35507s,@DEPS_TYPE@,$DEPS_TYPE,;t t
35508s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
35509s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
35510s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
35511s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
35512s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
35513s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
35514s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
35515s,@COND_SHARED_1_MONOLITHIC_1@,$COND_SHARED_1_MONOLITHIC_1,;t t
35516s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
35517s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
35518s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
35519s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
35520s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
35521s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
35522s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
35523s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
35524s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
35525s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
35526s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
35527s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
35528s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
35529s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
35530s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_0@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_0,;t t
35531s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_1@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_1,;t t
35532s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
35533s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
35534s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
35535s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
35536s,@COND_DEPS_TYPE_GCC@,$COND_DEPS_TYPE_GCC,;t t
35537s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
35538s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
35539s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
35540s,@COND_SHARED_0_MONOLITHIC_1@,$COND_SHARED_0_MONOLITHIC_1,;t t
35541s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
35542s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
35543s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
6d7d8f3b
VS
35544s,@COND_SHARED_0@,$COND_SHARED_0,;t t
35545s,@COND_SHARED_1@,$COND_SHARED_1,;t t
e6cc62c6
VS
35546s,@LEX_STEM@,$LEX_STEM,;t t
35547s,@PATH_IFS@,$PATH_IFS,;t t
35548s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
35549s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
35550s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
35551s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
35552s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
35553s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t
35554s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
35555s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
35556s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
35557s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
35558s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
35559s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
35560s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
35561s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
35562s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
35563s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
35564s,@WX_ALL@,$WX_ALL,;t t
35565s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
35566s,@SHARED_LD@,$SHARED_LD,;t t
35567s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
35568s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
35569s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t
35570s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t
35571s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t
35572s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
35573s,@STATIC_FLAG@,$STATIC_FLAG,;t t
35574s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
35575s,@USE_GUI@,$USE_GUI,;t t
35576s,@AFMINSTALL@,$AFMINSTALL,;t t
35577s,@WIN32INSTALL@,$WIN32INSTALL,;t t
35578s,@TOOLKIT@,$TOOLKIT,;t t
35579s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
35580s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
35581s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
35582s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
35583s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
35584s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
35585s,@cross_compiling@,$cross_compiling,;t t
35586s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
35587s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
35588s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
35589s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
35590s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
35591s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
35592s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
35593s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
35594s,@ALL_HEADERS@,$ALL_HEADERS,;t t
35595s,@ALL_SOURCES@,$ALL_SOURCES,;t t
35596s,@GUIDIST@,$GUIDIST,;t t
35597s,@PORT_FILES@,$PORT_FILES,;t t
35598s,@DISTDIR@,$DISTDIR,;t t
35599s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
35600s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
35601s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
35602s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
35603s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
35604s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
35605s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
35606s,@RESFLAGS@,$RESFLAGS,;t t
35607s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
35608s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
35609s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
35610s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
35611s,@LIBWXMACRES@,$LIBWXMACRES,;t t
35612s,@MACRESCOMP@,$MACRESCOMP,;t t
35613s,@MACSETFILE@,$MACSETFILE,;t t
35614s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
35615s,@GCC@,$GCC,;t t
35616s,@DLLTOOL@,$DLLTOOL,;t t
35617s,@AS@,$AS,;t t
35618s,@NM@,$NM,;t t
35619s,@LD@,$LD,;t t
35620s,@MAKEINFO@,$MAKEINFO,;t t
35621s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
35622s,@ESD_LINK@,$ESD_LINK,;t t
35623s,@LIBOBJS@,$LIBOBJS,;t t
35624s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
35625CEOF
35626
e6cc62c6
VS
35627_ACEOF
35628
35629 cat >>$CONFIG_STATUS <<\_ACEOF
35630 # Split the substitutions into bite-sized pieces for seds with
35631 # small command number limits, like on Digital OSF/1 and HP-UX.
35632 ac_max_sed_lines=48
35633 ac_sed_frag=1 # Number of current file.
35634 ac_beg=1 # First line for current file.
35635 ac_end=$ac_max_sed_lines # Line after last line for current file.
35636 ac_more_lines=:
35637 ac_sed_cmds=
35638 while $ac_more_lines; do
35639 if test $ac_beg -gt 1; then
35640 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 35641 else
e6cc62c6
VS
35642 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35643 fi
35644 if test ! -s $tmp/subs.frag; then
35645 ac_more_lines=false
35646 else
35647 # The purpose of the label and of the branching condition is to
35648 # speed up the sed processing (if there are no `@' at all, there
35649 # is no need to browse any of the substitutions).
35650 # These are the two extra sed commands mentioned above.
35651 (echo ':t
35652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35653 if test -z "$ac_sed_cmds"; then
35654 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35655 else
35656 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35657 fi
35658 ac_sed_frag=`expr $ac_sed_frag + 1`
35659 ac_beg=$ac_end
35660 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 35661 fi
e6cc62c6
VS
35662 done
35663 if test -z "$ac_sed_cmds"; then
35664 ac_sed_cmds=cat
10f2d63a 35665 fi
e6cc62c6 35666fi # test -n "$CONFIG_FILES"
10f2d63a 35667
e6cc62c6
VS
35668_ACEOF
35669cat >>$CONFIG_STATUS <<\_ACEOF
35670for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 35671 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35672 case $ac_file in
35673 - | *:- | *:-:* ) # input from stdin
35674 cat >$tmp/stdin
35675 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35676 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35677 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35678 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35679 * ) ac_file_in=$ac_file.in ;;
10f2d63a 35680 esac
247f5006 35681
e6cc62c6
VS
35682 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35683 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35684$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35685 X"$ac_file" : 'X\(//\)[^/]' \| \
35686 X"$ac_file" : 'X\(//\)$' \| \
35687 X"$ac_file" : 'X\(/\)' \| \
35688 . : '\(.\)' 2>/dev/null ||
35689echo X"$ac_file" |
35690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35692 /^X\(\/\/\)$/{ s//\1/; q; }
35693 /^X\(\/\).*/{ s//\1/; q; }
35694 s/.*/./; q'`
35695 { if $as_mkdir_p; then
35696 mkdir -p "$ac_dir"
a0b9e27f 35697 else
e6cc62c6
VS
35698 as_dir="$ac_dir"
35699 as_dirs=
35700 while test ! -d "$as_dir"; do
35701 as_dirs="$as_dir $as_dirs"
35702 as_dir=`(dirname "$as_dir") 2>/dev/null ||
35703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35704 X"$as_dir" : 'X\(//\)[^/]' \| \
35705 X"$as_dir" : 'X\(//\)$' \| \
35706 X"$as_dir" : 'X\(/\)' \| \
35707 . : '\(.\)' 2>/dev/null ||
35708echo X"$as_dir" |
35709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35711 /^X\(\/\/\)$/{ s//\1/; q; }
35712 /^X\(\/\).*/{ s//\1/; q; }
35713 s/.*/./; q'`
35714 done
35715 test ! -n "$as_dirs" || mkdir $as_dirs
35716 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35717echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35718 { (exit 1); exit 1; }; }; }
35719
35720 ac_builddir=.
35721
35722if test "$ac_dir" != .; then
35723 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35724 # A "../" for each directory in $ac_dir_suffix.
35725 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35726else
35727 ac_dir_suffix= ac_top_builddir=
35728fi
247f5006 35729
e6cc62c6
VS
35730case $srcdir in
35731 .) # No --srcdir option. We are building in place.
35732 ac_srcdir=.
35733 if test -z "$ac_top_builddir"; then
35734 ac_top_srcdir=.
35735 else
35736 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35737 fi ;;
35738 [\\/]* | ?:[\\/]* ) # Absolute path.
35739 ac_srcdir=$srcdir$ac_dir_suffix;
35740 ac_top_srcdir=$srcdir ;;
247f5006 35741 *) # Relative path.
e6cc62c6
VS
35742 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35743 ac_top_srcdir=$ac_top_builddir$srcdir ;;
35744esac
35745# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35746# absolute.
35747ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35748ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
35749ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35750ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 35751
247f5006 35752
e6cc62c6
VS
35753 case $INSTALL in
35754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35755 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 35756 esac
247f5006 35757
e6cc62c6
VS
35758 if test x"$ac_file" != x-; then
35759 { echo "$as_me:$LINENO: creating $ac_file" >&5
35760echo "$as_me: creating $ac_file" >&6;}
35761 rm -f "$ac_file"
35762 fi
35763 # Let's still pretend it is `configure' which instantiates (i.e., don't
35764 # use $as_me), people would be surprised to read:
35765 # /* config.h. Generated by config.status. */
35766 if test x"$ac_file" = x-; then
35767 configure_input=
35768 else
35769 configure_input="$ac_file. "
35770 fi
35771 configure_input=$configure_input"Generated from `echo $ac_file_in |
35772 sed 's,.*/,,'` by configure."
35773
35774 # First look for the input files in the build tree, otherwise in the
35775 # src tree.
35776 ac_file_inputs=`IFS=:
35777 for f in $ac_file_in; do
35778 case $f in
35779 -) echo $tmp/stdin ;;
35780 [\\/$]*)
35781 # Absolute (can't be DOS-style, as IFS=:)
35782 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35783echo "$as_me: error: cannot find input file: $f" >&2;}
35784 { (exit 1); exit 1; }; }
35785 echo $f;;
35786 *) # Relative
35787 if test -f "$f"; then
35788 # Build tree
35789 echo $f
35790 elif test -f "$srcdir/$f"; then
35791 # Source tree
35792 echo $srcdir/$f
35793 else
35794 # /dev/null tree
35795 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35796echo "$as_me: error: cannot find input file: $f" >&2;}
35797 { (exit 1); exit 1; }; }
35798 fi;;
35799 esac
35800 done` || { (exit 1); exit 1; }
35801_ACEOF
35802cat >>$CONFIG_STATUS <<_ACEOF
35803 sed "$ac_vpsub
35804$extrasub
35805_ACEOF
35806cat >>$CONFIG_STATUS <<\_ACEOF
35807:t
35808/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35809s,@configure_input@,$configure_input,;t t
35810s,@srcdir@,$ac_srcdir,;t t
35811s,@abs_srcdir@,$ac_abs_srcdir,;t t
35812s,@top_srcdir@,$ac_top_srcdir,;t t
35813s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35814s,@builddir@,$ac_builddir,;t t
35815s,@abs_builddir@,$ac_abs_builddir,;t t
35816s,@top_builddir@,$ac_top_builddir,;t t
35817s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35818s,@INSTALL@,$ac_INSTALL,;t t
35819" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35820 rm -f $tmp/stdin
35821 if test x"$ac_file" != x-; then
35822 mv $tmp/out $ac_file
35823 else
35824 cat $tmp/out
35825 rm -f $tmp/out
35826 fi
35827
35828done
35829_ACEOF
35830cat >>$CONFIG_STATUS <<\_ACEOF
35831
35832#
35833# CONFIG_HEADER section.
35834#
10f2d63a
VZ
35835
35836# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35837# NAME is the cpp macro being defined and VALUE is the value it is being given.
35838#
35839# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
35840ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35841ac_dB='[ ].*$,\1#\2'
35842ac_dC=' '
35843ac_dD=',;t'
35844# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35845ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35846ac_uB='$,\1#\2define\3'
10f2d63a 35847ac_uC=' '
e6cc62c6
VS
35848ac_uD=',;t'
35849
35850for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 35851 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
35852 case $ac_file in
35853 - | *:- | *:-:* ) # input from stdin
35854 cat >$tmp/stdin
35855 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35857 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35859 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
35860 esac
35861
e6cc62c6
VS
35862 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35863echo "$as_me: creating $ac_file" >&6;}
35864
35865 # First look for the input files in the build tree, otherwise in the
35866 # src tree.
35867 ac_file_inputs=`IFS=:
35868 for f in $ac_file_in; do
35869 case $f in
35870 -) echo $tmp/stdin ;;
35871 [\\/$]*)
35872 # Absolute (can't be DOS-style, as IFS=:)
35873 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35874echo "$as_me: error: cannot find input file: $f" >&2;}
35875 { (exit 1); exit 1; }; }
35876 echo $f;;
35877 *) # Relative
35878 if test -f "$f"; then
35879 # Build tree
35880 echo $f
35881 elif test -f "$srcdir/$f"; then
35882 # Source tree
35883 echo $srcdir/$f
35884 else
35885 # /dev/null tree
35886 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35887echo "$as_me: error: cannot find input file: $f" >&2;}
35888 { (exit 1); exit 1; }; }
35889 fi;;
35890 esac
35891 done` || { (exit 1); exit 1; }
35892 # Remove the trailing spaces.
35893 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35894
35895_ACEOF
35896
35897# Transform confdefs.h into two sed scripts, `conftest.defines' and
35898# `conftest.undefs', that substitutes the proper values into
35899# config.h.in to produce config.h. The first handles `#define'
35900# templates, and the second `#undef' templates.
35901# And first: Protect against being on the right side of a sed subst in
35902# config.status. Protect against being in an unquoted here document
35903# in config.status.
35904rm -f conftest.defines conftest.undefs
35905# Using a here document instead of a string reduces the quoting nightmare.
35906# Putting comments in sed scripts is not portable.
35907#
35908# `end' is used to avoid that the second main sed command (meant for
35909# 0-ary CPP macros) applies to n-ary macro definitions.
35910# See the Autoconf documentation for `clear'.
35911cat >confdef2sed.sed <<\_ACEOF
35912s/[\\&,]/\\&/g
35913s,[\\$`],\\&,g
35914t clear
35915: clear
35916s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35917t end
35918s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35919: end
35920_ACEOF
35921# If some macros were called several times there might be several times
35922# the same #defines, which is useless. Nevertheless, we may not want to
35923# sort them, since we want the *last* AC-DEFINE to be honored.
35924uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35925sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35926rm -f confdef2sed.sed
10f2d63a
VZ
35927
35928# This sed command replaces #undef with comments. This is necessary, for
35929# example, in the case of _POSIX_SOURCE, which is predefined and required
35930# on some systems where configure will not decide to define it.
e6cc62c6
VS
35931cat >>conftest.undefs <<\_ACEOF
35932s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35933_ACEOF
35934
35935# Break up conftest.defines because some shells have a limit on the size
35936# of here documents, and old seds have small limits too (100 cmds).
35937echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35938echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35939echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35940echo ' :' >>$CONFIG_STATUS
35941rm -f conftest.tail
35942while grep . conftest.defines >/dev/null
35943do
35944 # Write a limited-size here document to $tmp/defines.sed.
35945 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35946 # Speed up: don't consider the non `#define' lines.
35947 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35948 # Work around the forget-to-reset-the-flag bug.
35949 echo 't clr' >>$CONFIG_STATUS
35950 echo ': clr' >>$CONFIG_STATUS
35951 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35952 echo 'CEOF
35953 sed -f $tmp/defines.sed $tmp/in >$tmp/out
35954 rm -f $tmp/in
35955 mv $tmp/out $tmp/in
35956' >>$CONFIG_STATUS
35957 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35958 rm -f conftest.defines
35959 mv conftest.tail conftest.defines
35960done
35961rm -f conftest.defines
35962echo ' fi # grep' >>$CONFIG_STATUS
35963echo >>$CONFIG_STATUS
10f2d63a 35964
e6cc62c6
VS
35965# Break up conftest.undefs because some shells have a limit on the size
35966# of here documents, and old seds have small limits too (100 cmds).
35967echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 35968rm -f conftest.tail
e6cc62c6 35969while grep . conftest.undefs >/dev/null
10f2d63a 35970do
e6cc62c6
VS
35971 # Write a limited-size here document to $tmp/undefs.sed.
35972 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35973 # Speed up: don't consider the non `#undef'
35974 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35975 # Work around the forget-to-reset-the-flag bug.
35976 echo 't clr' >>$CONFIG_STATUS
35977 echo ': clr' >>$CONFIG_STATUS
35978 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 35979 echo 'CEOF
e6cc62c6
VS
35980 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35981 rm -f $tmp/in
35982 mv $tmp/out $tmp/in
35983' >>$CONFIG_STATUS
35984 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35985 rm -f conftest.undefs
35986 mv conftest.tail conftest.undefs
10f2d63a 35987done
e6cc62c6
VS
35988rm -f conftest.undefs
35989
35990cat >>$CONFIG_STATUS <<\_ACEOF
35991 # Let's still pretend it is `configure' which instantiates (i.e., don't
35992 # use $as_me), people would be surprised to read:
35993 # /* config.h. Generated by config.status. */
35994 if test x"$ac_file" = x-; then
35995 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 35996 else
e6cc62c6 35997 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 35998 fi
e6cc62c6
VS
35999 cat $tmp/in >>$tmp/config.h
36000 rm -f $tmp/in
36001 if test x"$ac_file" != x-; then
36002 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36003 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36004echo "$as_me: $ac_file is unchanged" >&6;}
36005 else
36006 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36008 X"$ac_file" : 'X\(//\)[^/]' \| \
36009 X"$ac_file" : 'X\(//\)$' \| \
36010 X"$ac_file" : 'X\(/\)' \| \
36011 . : '\(.\)' 2>/dev/null ||
36012echo X"$ac_file" |
36013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36015 /^X\(\/\/\)$/{ s//\1/; q; }
36016 /^X\(\/\).*/{ s//\1/; q; }
36017 s/.*/./; q'`
36018 { if $as_mkdir_p; then
36019 mkdir -p "$ac_dir"
36020 else
36021 as_dir="$ac_dir"
36022 as_dirs=
36023 while test ! -d "$as_dir"; do
36024 as_dirs="$as_dir $as_dirs"
36025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36027 X"$as_dir" : 'X\(//\)[^/]' \| \
36028 X"$as_dir" : 'X\(//\)$' \| \
36029 X"$as_dir" : 'X\(/\)' \| \
36030 . : '\(.\)' 2>/dev/null ||
36031echo X"$as_dir" |
36032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36034 /^X\(\/\/\)$/{ s//\1/; q; }
36035 /^X\(\/\).*/{ s//\1/; q; }
36036 s/.*/./; q'`
36037 done
36038 test ! -n "$as_dirs" || mkdir $as_dirs
36039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36040echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36041 { (exit 1); exit 1; }; }; }
a0b9e27f 36042
e6cc62c6
VS
36043 rm -f $ac_file
36044 mv $tmp/config.h $ac_file
36045 fi
36046 else
36047 cat $tmp/config.h
36048 rm -f $tmp/config.h
36049 fi
36050done
36051_ACEOF
36052cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36053
e6cc62c6
VS
36054#
36055# CONFIG_COMMANDS section.
36056#
36057for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36058 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36059 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36060 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36061$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36062 X"$ac_dest" : 'X\(//\)[^/]' \| \
36063 X"$ac_dest" : 'X\(//\)$' \| \
36064 X"$ac_dest" : 'X\(/\)' \| \
36065 . : '\(.\)' 2>/dev/null ||
36066echo X"$ac_dest" |
36067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36069 /^X\(\/\/\)$/{ s//\1/; q; }
36070 /^X\(\/\).*/{ s//\1/; q; }
36071 s/.*/./; q'`
36072 ac_builddir=.
36073
36074if test "$ac_dir" != .; then
36075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36076 # A "../" for each directory in $ac_dir_suffix.
36077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36078else
36079 ac_dir_suffix= ac_top_builddir=
36080fi
36081
36082case $srcdir in
36083 .) # No --srcdir option. We are building in place.
36084 ac_srcdir=.
36085 if test -z "$ac_top_builddir"; then
36086 ac_top_srcdir=.
36087 else
36088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36089 fi ;;
36090 [\\/]* | ?:[\\/]* ) # Absolute path.
36091 ac_srcdir=$srcdir$ac_dir_suffix;
36092 ac_top_srcdir=$srcdir ;;
36093 *) # Relative path.
36094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36095 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36096esac
36097# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36098# absolute.
36099ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36100ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36101ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36102ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36103
36104
36105 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36106echo "$as_me: executing $ac_dest commands" >&6;}
36107 case $ac_dest in
36108 default )
652d930d 36109 if test ! -h wx-config; then
991a5759 36110 chmod +x wx-config
3a922bb4
RL
36111 mv wx-config wx${TOOLCHAIN_NAME}-config
36112 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36113 fi
665bbe97 36114
00cf1208
RR
36115 if test ! -d lib; then
36116 mkdir lib
36117 fi
36118 if test ! -d lib/wx; then
36119 mkdir lib/wx
36120 fi
36121 if test ! -d lib/wx/include; then
36122 mkdir lib/wx/include
36123 fi
3a922bb4
RL
36124 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36125 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36126 fi
3a922bb4
RL
36127 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36128 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36129 fi
36130 if test -f setup.h; then
3a922bb4 36131 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36132 fi
e6cc62c6
VS
36133 ;;
36134 esac
36135done
36136_ACEOF
2224580a 36137
e6cc62c6 36138cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36139
e6cc62c6
VS
36140{ (exit 0); exit 0; }
36141_ACEOF
36142chmod +x $CONFIG_STATUS
36143ac_clean_files=$ac_clean_files_save
36144
36145
36146# configure is writing to config.log, and then calls config.status.
36147# config.status does its own redirection, appending to config.log.
36148# Unfortunately, on DOS this fails, as config.log is still kept open
36149# by configure, so config.status won't be able to write to it; its
36150# output is simply discarded. So we exec the FD to /dev/null,
36151# effectively closing config.log, so it can be properly (re)opened and
36152# appended to by config.status. When coming back to configure, we
36153# need to make the FD available again.
36154if test "$no_create" != yes; then
36155 ac_cs_success=:
36156 ac_config_status_args=
36157 test "$silent" = yes &&
36158 ac_config_status_args="$ac_config_status_args --quiet"
36159 exec 5>/dev/null
36160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36161 exec 5>>config.log
36162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36163 # would make configure fail if this is the last instruction.
36164 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36165fi
36166
8284b0c5 36167
2b5f62a0
VZ
36168echo
36169echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36170echo ""
36171echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
36172
36173echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36174echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36175echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36176
0c98a14e
GD
36177echo " What level of wxWindows compatibility should be enabled?"
36178echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
65d8ef1e
VS
36179echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36180echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36181
2b5f62a0
VZ
36182echo " Which libraries should wxWindows use?"
36183echo " jpeg ${wxUSE_LIBJPEG-none}"
36184echo " png ${wxUSE_LIBPNG-none}"
36185echo " regex ${wxUSE_REGEX}"
36186echo " tiff ${wxUSE_LIBTIFF-none}"
36187echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36188echo " odbc ${wxUSE_ODBC}"
2b5f62a0
VZ
36189
36190echo ""
36191