]> git.saurik.com Git - wxWidgets.git/blame - configure
define wxFONTENCODING_UNICODE as UTF16/32 depending on the platform
[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.
e46d2a18 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
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'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
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
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
7015ef3a 315ac_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 LN_S CXXCPP subdirs 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 RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI 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 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_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX 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 LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
e46d2a18 796\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
878 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
879 --enable-debug_info create code with debugging information
880 --enable-debug_gdb create code with extra GDB debugging information
881 --enable-debug_cntxt use wxDebugContext
882 --enable-mem_tracing create code with memory tracing
883 --enable-profile create code with profiling information
884 --enable-no_rtti create code without RTTI information
885 --enable-no_exceptions create code without C++ exceptions handling
886 --enable-permissive compile code disregarding strict ANSI
887 --enable-no_deps create code without dependency information
e6cc62c6
VS
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
e46d2a18 898 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
901 --enable-apple_ieee use the Apple IEEE codec
902 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
903 --enable-cmdline use wxCmdLineParser class
904 --enable-datetime use wxDateTime class
e6cc62c6 905 --enable-dialupman use dialup network classes
e6cc62c6
VS
906 --enable-dynlib use wxLibrary class for DLL loading
907 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
908 --enable-exceptions build exception-safe library
909 --enable-ffile use wxFFile class
910 --enable-file use wxFile class
911 --enable-filesystem use virtual file systems classes
912 --enable-fontmap use font encodings conversion classes
913 --enable-fs_inet use virtual HTTP/FTP filesystems
914 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
915 --enable-geometry use geometry class
916 --enable-log use logging system
e46d2a18
VS
917 --enable-longlong use wxLongLong class
918 --enable-mimetype use wxMimeTypesManager
919 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
920 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 921 --enable-streams use wxStream etc classes
e46d2a18
VS
922 --enable-std_iostreams use standard C++ stream classes
923 --enable-stopwatch use wxStopWatch class
924 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
925 --enable-textbuf use wxTextBuffer class
926 --enable-textfile use wxTextFile class
e46d2a18 927 --enable-timer use wxTimer class
e6cc62c6 928 --enable-unicode compile wxString with Unicode support
e46d2a18 929 --enable-wave use wxWave class
e6cc62c6 930 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 931 --enable-zipstream use wxZipInputStream
7015ef3a 932 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
933 --enable-url use wxURL class
934 --enable-protocol use wxProtocol class
935 --enable-protocol-http HTTP support in wxProtocol
936 --enable-protocol-ftp FTP support in wxProtocol
937 --enable-protocol-file FILE support in wxProtocol
938 --enable-threads use threads
939 --enable-docview use document view architecture
940 --enable-help use help subsystem
941 --enable-mshtmlhelp use MS HTML Help (win32)
942 --enable-html use wxHTML sub-library
943 --enable-htmlhelp use wxHTML-based help
944 --enable-constraints use layout-constraints system
945 --enable-printarch use printing architecture
946 --enable-mdi use multiple document interface architecture
947 --enable-loggui use standard GUI logger
948 --enable-logwin use wxLogWindow
949 --enable-logdialog use wxLogDialog
950 --enable-postscript use wxPostscriptDC device context (default for gtk+)
951 --enable-prologio not available; see contrib
952 --enable-resources not available; see contrib
953 --enable-clipboard use wxClipboard class
954 --enable-dnd use Drag'n'Drop classes
955 --enable-metafile use win32 metafiles
956 --enable-controls use all usual controls
957 --enable-accel use accelerators
958 --enable-button use wxButton class
959 --enable-bmpbutton use wxBitmapButton class
960 --enable-calendar use wxCalendarCtrl class
961 --enable-caret use wxCaret class
962 --enable-checkbox use wxCheckBox class
963 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
964 --enable-choice use wxChoice class
965 --enable-combobox use wxComboBox class
966 --enable-display use wxDisplay class
967 --enable-gauge use wxGauge class
968 --enable-grid use wxGrid class
969 --enable-imaglist use wxImageList class
0e012a93 970 --enable-listbook use wxListbook class
e6cc62c6
VS
971 --enable-listbox use wxListBox class
972 --enable-listctrl use wxListCtrl class
973 --enable-notebook use wxNotebook class
974 --enable-radiobox use wxRadioBox class
975 --enable-radiobtn use wxRadioButton class
976 --enable-sash use wxSashWindow class
977 --enable-scrollbar use wxScrollBar class and scrollable windows
978 --enable-slider use wxSlider class
979 --enable-spinbtn use wxSpinButton class
980 --enable-spinctrl use wxSpinCtrl class
981 --enable-splitter use wxSplitterWindow class
982 --enable-statbmp use wxStaticBitmap class
983 --enable-statbox use wxStaticBox class
984 --enable-statline use wxStaticLine class
985 --enable-stattext use wxStaticText class
986 --enable-statusbar use wxStatusBar class
987 --enable-tabdialog use wxTabControl class
988 --enable-textctrl use wxTextCtrl class
989 --enable-togglebtn use wxToggleButton class
990 --enable-toolbar use wxToolBar class
991 --enable-tbarnative use native wxToolBar class
992 --enable-tbarsmpl use wxToolBarSimple class
993 --enable-treectrl use wxTreeCtrl class
994 --enable-tipwindow use wxTipWindow class
995 --enable-popupwin use wxPopUpWindow class
996 --enable-commondlg use all common dialogs
997 --enable-choicedlg use wxChoiceDialog
998 --enable-coldlg use wxColourDialog
999 --enable-filedlg use wxFileDialog
1000 --enable-finddlg use wxFindReplaceDialog
1001 --enable-fontdlg use wxFontDialog
1002 --enable-dirdlg use wxDirDialog
1003 --enable-msgdlg use wxMessageDialog
1004 --enable-numberdlg use wxNumberEntryDialog
1005 --enable-splash use wxSplashScreen
1006 --enable-textdlg use wxTextDialog
1007 --enable-tipdlg use startup tips
1008 --enable-progressdlg use wxProgressDialog
1009 --enable-wizarddlg use wxWizard
1010 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1011 --enable-miniframe use wxMiniFrame class
1012 --enable-tooltips use wxToolTip class
1013 --enable-splines use spline drawing code
1014 --enable-validators use wxValidator and derived classes
1015 --enable-busyinfo use wxBusyInfo
1016 --enable-joystick use wxJoystick (Linux only)
1017 --enable-metafiles use wxMetaFile (Windows only)
1018 --enable-dragimage use wxDragImage
1019 --enable-accessibility enable accessibility support
1020 --enable-palette use wxPalette class
1021 --enable-image use wxImage class
1022 --enable-gif use gif images (GIF file format)
1023 --enable-pcx use pcx images (PCX file format)
1024 --enable-iff use iff images (IFF file format)
1025 --enable-pnm use pnm images (PNM file format)
1026 --enable-xpm use xpm images (XPM file format)
1027 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1028 --enable-official_build official build of wxWindows (win32 DLL only)
1029 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1030 --disable-largefile omit support for large files
1031 --disable-gtktest do not try to compile and run a test GTK+ program
1032 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1033 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1034
1035Optional Packages:
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-gtk use GTK+
1039 --with-motif use Motif/Lesstif
1040 --with-mac use Mac OS X
1041 --with-cocoa use Cocoa
1042 --with-wine use Wine
1043 --with-msw use MS-Windows
1044 --with-pm use OS/2 Presentation Manager
1045 --with-mgl use SciTech MGL
1046 --with-microwin use MicroWindows
1047 --with-x11 use X11
1048 --with-libpng use libpng (PNG image format)
1049 --with-libjpeg use libjpeg (JPEG file format)
1050 --with-libtiff use libtiff (TIFF file format)
1051 --with-opengl use OpenGL (or Mesa)
1052 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1053 --with-regex enable support for wxRegEx class
1054 --with-zlib use zlib for LZW compression
1055 --with-odbc use the IODBC and wxODBC classes
672abd7a 1056 --with-expat enable XML support using expat parser
e6cc62c6
VS
1057 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1058 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1059 --with-x use the X Window System
1060 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1061
1062Some influential environment variables:
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1066 nonstandard directory <lib dir>
1067 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068 headers in a nonstandard directory <include dir>
1069 CPP C preprocessor
1070 CXX C++ compiler command
1071 CXXFLAGS C++ compiler flags
1072 CXXCPP C++ preprocessor
1073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <wx-dev@lists.wxwindows.org>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
1111# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1112# absolute.
1113ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1114ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1115ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1116ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1117
1118 cd $ac_dir
1119 # Check for guested configure; otherwise get Cygnus style configure.
1120 if test -f $ac_srcdir/configure.gnu; then
1121 echo
1122 $SHELL $ac_srcdir/configure.gnu --help=recursive
1123 elif test -f $ac_srcdir/configure; then
1124 echo
1125 $SHELL $ac_srcdir/configure --help=recursive
1126 elif test -f $ac_srcdir/configure.ac ||
1127 test -f $ac_srcdir/configure.in; then
1128 echo
1129 $ac_configure --help
1130 else
1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 fi
1133 cd $ac_popdir
1134 done
1135fi
8284b0c5 1136
e6cc62c6
VS
1137test -n "$ac_init_help" && exit 0
1138if $ac_init_version; then
1139 cat <<\_ACEOF
e46d2a18 1140wxWindows configure 2.5.1
e6cc62c6 1141generated by GNU Autoconf 2.57
10f2d63a 1142
e6cc62c6
VS
1143Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1144Free Software Foundation, Inc.
1145This configure script is free software; the Free Software Foundation
1146gives unlimited permission to copy, distribute and modify it.
1147_ACEOF
1148 exit 0
7c66a493 1149fi
e6cc62c6
VS
1150exec 5>config.log
1151cat >&5 <<_ACEOF
1152This file contains any messages produced by compilers while
1153running configure, to aid debugging if configure makes a mistake.
1154
e46d2a18 1155It was created by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
1156generated by GNU Autoconf 2.57. Invocation command line was
1157
1158 $ $0 $@
1159
1160_ACEOF
1161{
1162cat <<_ASUNAME
1163## --------- ##
1164## Platform. ##
1165## --------- ##
1166
1167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175
1176/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183
1184_ASUNAME
1185
1186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187for as_dir in $PATH
1188do
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192done
1193
1194} >&5
1195
1196cat >&5 <<_ACEOF
1197
1198
1199## ----------- ##
1200## Core tests. ##
1201## ----------- ##
1202
1203_ACEOF
1204
1205
1206# Keep a trace of the command line.
1207# Strip out --no-create and --no-recursion so they do not pile up.
1208# Strip out --silent because we don't want to record it for future runs.
1209# Also quote any args containing shell meta-characters.
1210# Make two passes to allow for proper duplicate-argument suppression.
1211ac_configure_args=
1212ac_configure_args0=
1213ac_configure_args1=
1214ac_sep=
1215ac_must_keep_next=false
1216for ac_pass in 1 2
1217do
1218 for ac_arg
1219 do
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 2)
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1243 ;;
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1246 fi
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1250 ;;
1251 esac
1252 done
1253done
1254$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257# When interrupted or exit'd, cleanup temporary files, and complete
1258# config.log. We remove comments because anyway the quotes in there
1259# would cause problems or look ugly.
1260# WARNING: Be sure not to use single quotes in there, as some shells,
1261# such as our DU 5.0 friend, will then `close' the trap.
1262trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1264 {
1265 echo
1266
1267 cat <<\_ASBOX
1268## ---------------- ##
1269## Cache variables. ##
1270## ---------------- ##
1271_ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1274{
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281 ;;
1282 *)
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ;;
1286 esac;
1287}
1288 echo
1289
1290 cat <<\_ASBOX
1291## ----------------- ##
1292## Output variables. ##
1293## ----------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
1305## ------------- ##
1306## Output files. ##
1307## ------------- ##
1308_ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1311 do
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1316 fi
1317
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320## ----------- ##
1321## confdefs.h. ##
1322## ----------- ##
1323_ASBOX
1324 echo
1325 sed "/^$/d" confdefs.h | sort
1326 echo
1327 fi
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
1332 rm -f core core.* *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334 exit $exit_status
1335 ' 0
1336for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338done
1339ac_signal=0
1340
1341# confdefs.h avoids OS command line length limits that DEFS can exceed.
1342rm -rf conftest* confdefs.h
1343# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344echo >confdefs.h
1345
1346# Predefined preprocessor variables.
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_NAME "$PACKAGE_NAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_STRING "$PACKAGE_STRING"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370_ACEOF
1371
1372
1373# Let the site file select an alternate cache file if it wants to.
1374# Prefer explicitly selected file to automatically selected ones.
1375if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380 fi
1381fi
1382for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1388 fi
1389done
1390
1391if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1401 fi
1402else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1406fi
1407
1408# Check that the precious variables saved in the cache have kept the same
1409# value.
1410ac_cache_corrupted=false
1411for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1427 *)
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1430echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1431 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1432echo "$as_me: former value: $ac_old_val" >&2;}
1433 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1434echo "$as_me: current value: $ac_new_val" >&2;}
1435 ac_cache_corrupted=:
1436 fi;;
1437 esac
1438 # Pass precious variables to config.status.
1439 if test "$ac_new_set" = set; then
1440 case $ac_new_val in
1441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1442 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 *) ac_arg=$ac_var=$ac_new_val ;;
1444 esac
1445 case " $ac_configure_args " in
1446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1447 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1448 esac
1449 fi
1450done
1451if $ac_cache_corrupted; then
1452 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1453echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1454 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1455echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1456 { (exit 1); exit 1; }; }
1457fi
1458
1459ac_ext=c
1460ac_cpp='$CPP $CPPFLAGS'
1461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1463ac_compiler_gnu=$ac_cv_c_compiler_gnu
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
698dcdb6 1481
8284b0c5 1482
7c66a493 1483
a0b9e27f
MB
1484
1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
a0b9e27f 1490
a0b9e27f 1491
e6cc62c6
VS
1492
1493
1494ac_aux_dir=
1495for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496 if test -f $ac_dir/install-sh; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/install-sh -c"
1499 break
1500 elif test -f $ac_dir/install.sh; then
1501 ac_aux_dir=$ac_dir
1502 ac_install_sh="$ac_aux_dir/install.sh -c"
1503 break
1504 elif test -f $ac_dir/shtool; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/shtool install -c"
1507 break
1508 fi
1509done
1510if test -z "$ac_aux_dir"; then
1511 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
1519# Make sure we can run config.sub.
1520$ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525echo "$as_me:$LINENO: checking build system type" >&5
1526echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 ac_cv_build_alias=$build_alias
1531test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544echo "${ECHO_T}$ac_cv_build" >&6
1545build=$ac_cv_build
1546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking host system type" >&5
1552echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_host_alias=$host_alias
1557test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566echo "${ECHO_T}$ac_cv_host" >&6
1567host=$ac_cv_host
1568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking target system type" >&5
1574echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_target_alias=$target_alias
1579test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588echo "${ECHO_T}$ac_cv_target" >&6
1589target=$ac_cv_target
1590target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595# The aliases save the names the user supplied, while $host etc.
1596# will get canonicalized.
1597test -n "$target_alias" &&
7c66a493
VZ
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
8284b0c5
MB
1601
1602
a0b9e27f 1603
10f2d63a 1604WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1605WX_MINOR_VERSION_NUMBER=5
e46d2a18 1606WX_RELEASE_NUMBER=1
10f2d63a 1607
10f2d63a 1608WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1609WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1610
978f1259
RL
1611WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1612
7015ef3a 1613WX_CURRENT=1
6426998c
RL
1614WX_REVISION=0
1615WX_AGE=0
1616
8284b0c5
MB
1617
1618
10f2d63a 1619USE_UNIX=1
73d617c9 1620USE_OS2=0
10f2d63a 1621USE_WIN32=0
f9bc1684 1622USE_DOS=0
b12915c1 1623USE_BEOS=0
1216f52d 1624USE_MAC=0
b12915c1 1625
10f2d63a 1626USE_AIX=
fe0895cf
VS
1627USE_BSD= USE_DARWIN= USE_FREEBSD=
1628USE_GNU= USE_HPUX=
89e3b3e4 1629USE_LINUX=
f6bcfd97 1630USE_NETBSD=
89e3b3e4 1631USE_OPENBSD=
fe0895cf
VS
1632USE_OSF= USE_SGI=
1633USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1634USE_ULTRIX=
89e3b3e4
VZ
1635USE_UNIXWARE=
1636
1637USE_ALPHA=
10f2d63a 1638
ab9b9eab
VZ
1639NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1640
ac0c4cc3 1641ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1642
ac0c4cc3 1643DEFAULT_wxUSE_COCOA=0
10f2d63a 1644DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1645DEFAULT_wxUSE_MAC=0
1646DEFAULT_wxUSE_MGL=0
1725144d 1647DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1648DEFAULT_wxUSE_MOTIF=0
1649DEFAULT_wxUSE_MSW=0
e07802fc 1650DEFAULT_wxUSE_PM=0
f79bd02d 1651DEFAULT_wxUSE_X11=0
10f2d63a 1652
ac0c4cc3 1653DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1654DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1655DEFAULT_DEFAULT_wxUSE_MAC=0
1656DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1657DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1658DEFAULT_DEFAULT_wxUSE_MOTIF=0
1659DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1660DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1661DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1662
d6a55c4b 1663PROGRAM_EXT=
3a922bb4 1664SO_SUFFIX=so
fe0895cf 1665SAMPLES_RPATH_FLAG=
0f1bc9c2 1666SAMPLES_RPATH_POSTLINK=
d6a55c4b 1667
10f2d63a
VZ
1668case "${host}" in
1669 *-hp-hpux* )
1670 USE_HPUX=1
1671 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1672 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1673 SO_SUFFIX=sl
e6cc62c6 1674 cat >>confdefs.h <<\_ACEOF
10f2d63a 1675#define __HPUX__ 1
e6cc62c6 1676_ACEOF
10f2d63a
VZ
1677
1678 ;;
1679 *-*-linux* )
1680 USE_LINUX=1
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __LINUX__ 1
e6cc62c6 1683_ACEOF
10f2d63a
VZ
1684
1685 TMP=`uname -m`
1686 if test "x$TMP" = "xalpha"; then
1687 USE_ALPHA=1
e6cc62c6 1688 cat >>confdefs.h <<\_ACEOF
10f2d63a 1689#define __ALPHA__ 1
e6cc62c6 1690_ACEOF
fe0895cf
VS
1691
1692 fi
1693 DEFAULT_DEFAULT_wxUSE_GTK=1
1694 ;;
1695 *-*-gnu* )
1696 USE_GNU=1
e6cc62c6 1697 cat >>confdefs.h <<\_ACEOF
fe0895cf 1698#define __GNU__ 1
e6cc62c6 1699_ACEOF
fe0895cf
VS
1700
1701 TMP=`uname -m`
1702 if test "x$TMP" = "xalpha"; then
1703 USE_ALPHA=1
e6cc62c6 1704 cat >>confdefs.h <<\_ACEOF
fe0895cf 1705#define __ALPHA__ 1
e6cc62c6 1706_ACEOF
10f2d63a
VZ
1707
1708 fi
1709 DEFAULT_DEFAULT_wxUSE_GTK=1
1710 ;;
1711 *-*-irix5* | *-*-irix6* )
1712 USE_SGI=1
1713 USE_SVR4=1
e6cc62c6 1714 cat >>confdefs.h <<\_ACEOF
10f2d63a 1715#define __SGI__ 1
e6cc62c6 1716_ACEOF
10f2d63a 1717
e6cc62c6 1718 cat >>confdefs.h <<\_ACEOF
10f2d63a 1719#define __SVR4__ 1
e6cc62c6 1720_ACEOF
10f2d63a
VZ
1721
1722 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1723 ;;
1724 *-*-solaris2* )
1725 USE_SUN=1
1726 USE_SOLARIS=1
1727 USE_SVR4=1
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __SUN__ 1
e6cc62c6 1730_ACEOF
10f2d63a 1731
e6cc62c6 1732 cat >>confdefs.h <<\_ACEOF
10f2d63a 1733#define __SOLARIS__ 1
e6cc62c6 1734_ACEOF
10f2d63a 1735
e6cc62c6 1736 cat >>confdefs.h <<\_ACEOF
10f2d63a 1737#define __SVR4__ 1
e6cc62c6 1738_ACEOF
10f2d63a
VZ
1739
1740 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1741 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1742 ;;
1743 *-*-sunos4* )
1744 USE_SUN=1
1745 USE_SUNOS=1
1746 USE_BSD=1
e6cc62c6 1747 cat >>confdefs.h <<\_ACEOF
10f2d63a 1748#define __SUN__ 1
e6cc62c6 1749_ACEOF
10f2d63a 1750
e6cc62c6 1751 cat >>confdefs.h <<\_ACEOF
10f2d63a 1752#define __SUNOS__ 1
e6cc62c6 1753_ACEOF
10f2d63a 1754
e6cc62c6 1755 cat >>confdefs.h <<\_ACEOF
10f2d63a 1756#define __BSD__ 1
e6cc62c6 1757_ACEOF
10f2d63a
VZ
1758
1759 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1760 ;;
f6bcfd97 1761 *-*-freebsd*)
10f2d63a
VZ
1762 USE_BSD=1
1763 USE_FREEBSD=1
e6cc62c6 1764 cat >>confdefs.h <<\_ACEOF
10f2d63a 1765#define __FREEBSD__ 1
e6cc62c6 1766_ACEOF
10f2d63a 1767
e6cc62c6 1768 cat >>confdefs.h <<\_ACEOF
10f2d63a 1769#define __BSD__ 1
e6cc62c6 1770_ACEOF
95c8801c
VS
1771
1772 DEFAULT_DEFAULT_wxUSE_GTK=1
1773 ;;
1774 *-*-openbsd*)
1775 USE_BSD=1
1776 USE_OPENBSD=1
e6cc62c6 1777 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1778#define __OPENBSD__ 1
e6cc62c6 1779_ACEOF
95c8801c 1780
e6cc62c6 1781 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1782#define __BSD__ 1
e6cc62c6 1783_ACEOF
f6bcfd97
BP
1784
1785 DEFAULT_DEFAULT_wxUSE_GTK=1
1786 ;;
1787 *-*-netbsd*)
1788 USE_BSD=1
1789 USE_NETBSD=1
e6cc62c6 1790 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1791#define __NETBSD__ 1
e6cc62c6 1792_ACEOF
f6bcfd97 1793
e6cc62c6 1794 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1795#define __BSD__ 1
e6cc62c6 1796_ACEOF
10f2d63a
VZ
1797
1798 DEFAULT_DEFAULT_wxUSE_GTK=1
1799 ;;
1800 *-*-osf* )
1801 USE_ALPHA=1
1802 USE_OSF=1
e6cc62c6 1803 cat >>confdefs.h <<\_ACEOF
10f2d63a 1804#define __ALPHA__ 1
e6cc62c6 1805_ACEOF
10f2d63a 1806
e6cc62c6 1807 cat >>confdefs.h <<\_ACEOF
10f2d63a 1808#define __OSF__ 1
e6cc62c6 1809_ACEOF
10f2d63a
VZ
1810
1811 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1812 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1813 ;;
1814 *-*-dgux5* )
1815 USE_ALPHA=1
1816 USE_SVR4=1
e6cc62c6 1817 cat >>confdefs.h <<\_ACEOF
10f2d63a 1818#define __ALPHA__ 1
e6cc62c6 1819_ACEOF
10f2d63a 1820
e6cc62c6 1821 cat >>confdefs.h <<\_ACEOF
10f2d63a 1822#define __SVR4__ 1
e6cc62c6 1823_ACEOF
10f2d63a
VZ
1824
1825 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1826 ;;
1827 *-*-sysv5* )
1828 USE_SYSV=1
1829 USE_SVR4=1
e6cc62c6 1830 cat >>confdefs.h <<\_ACEOF
10f2d63a 1831#define __SYSV__ 1
e6cc62c6 1832_ACEOF
10f2d63a 1833
e6cc62c6 1834 cat >>confdefs.h <<\_ACEOF
10f2d63a 1835#define __SVR4__ 1
e6cc62c6 1836_ACEOF
10f2d63a
VZ
1837
1838 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1839 ;;
1840 *-*-aix* )
1841 USE_AIX=1
1842 USE_SYSV=1
1843 USE_SVR4=1
2b5f62a0 1844 SO_SUFFIX=a
e6cc62c6 1845 cat >>confdefs.h <<\_ACEOF
10f2d63a 1846#define __AIX__ 1
e6cc62c6 1847_ACEOF
10f2d63a 1848
e6cc62c6 1849 cat >>confdefs.h <<\_ACEOF
10f2d63a 1850#define __SYSV__ 1
e6cc62c6 1851_ACEOF
10f2d63a 1852
e6cc62c6 1853 cat >>confdefs.h <<\_ACEOF
10f2d63a 1854#define __SVR4__ 1
e6cc62c6 1855_ACEOF
10f2d63a
VZ
1856
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 ;;
1859
89e3b3e4
VZ
1860 *-*-*UnixWare*)
1861 USE_SYSV=1
1862 USE_SVR4=1
1863 USE_UNIXWARE=1
e6cc62c6 1864 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1865#define __UNIXWARE__ 1
e6cc62c6 1866_ACEOF
89e3b3e4
VZ
1867
1868 ;;
1869
1c8183e2 1870 *-*-cygwin* | *-*-mingw32* )
17234b26 1871 SO_SUFFIX=dll
cf27ef00 1872 PROGRAM_EXT=".exe"
7b7a7637 1873 RESCOMP=windres
10f2d63a
VZ
1874 DEFAULT_DEFAULT_wxUSE_MSW=1
1875 ;;
1876
f9bc1684
VS
1877 *-pc-msdosdjgpp )
1878 USE_UNIX=0
1879 USE_DOS=1
e6cc62c6 1880 cat >>confdefs.h <<\_ACEOF
f9bc1684 1881#define __DOS__ 1
e6cc62c6 1882_ACEOF
f9bc1684
VS
1883
1884 PROGRAM_EXT=".exe"
1885 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1886 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1887 ;;
1888
6fa882bd 1889 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1890 cat >>confdefs.h <<\_ACEOF
10f2d63a 1891#define __EMX__ 1
e6cc62c6 1892_ACEOF
10f2d63a 1893
73d617c9 1894 USE_OS2=1
7015ef3a
VZ
1895 cat >>confdefs.h <<\_ACEOF
1896#define __OS2__ 1
1897_ACEOF
1898
cf27ef00 1899 PROGRAM_EXT=".exe"
e07802fc 1900 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1901 CXX=gcc
73d617c9 1902 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1903 ac_executable_extensions=".exe"
1904 export ac_executable_extensions
1905 ac_save_IFS="$IFS"
e46d2a18 1906 IFS='\\'
d5fc095c
VS
1907 ac_TEMP_PATH=
1908 for ac_dir in $PATH; do
1909 IFS=$ac_save_IFS
1910 if test -z "$ac_TEMP_PATH"; then
1911 ac_TEMP_PATH="$ac_dir"
1912 else
1913 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1914 fi
1915 done
1916 export PATH="$ac_TEMP_PATH"
1917 unset ac_TEMP_PATH
10f2d63a
VZ
1918 ;;
1919
d08b457b
GD
1920 powerpc-*-darwin* )
1921 USE_BSD=1
f11bdd03 1922 USE_DARWIN=1
3a922bb4 1923 SO_SUFFIX=dylib
e6cc62c6 1924 cat >>confdefs.h <<\_ACEOF
f11bdd03 1925#define __BSD__ 1
e6cc62c6 1926_ACEOF
b4085ce6 1927
e6cc62c6 1928 cat >>confdefs.h <<\_ACEOF
f11bdd03 1929#define __DARWIN__ 1
e6cc62c6 1930_ACEOF
d08b457b 1931
e6cc62c6 1932 cat >>confdefs.h <<\_ACEOF
d08b457b 1933#define __POWERPC__ 1
e6cc62c6 1934_ACEOF
82d43113 1935
e6cc62c6 1936 cat >>confdefs.h <<\_ACEOF
82d43113 1937#define TARGET_CARBON 1
e6cc62c6 1938_ACEOF
b4085ce6
GD
1939
1940 DEFAULT_DEFAULT_wxUSE_MAC=1
1941 ;;
1942
b12915c1
VZ
1943 *-*-beos* )
1944 USE_BEOS=1
e6cc62c6 1945 cat >>confdefs.h <<\_ACEOF
b12915c1 1946#define __BEOS__ 1
e6cc62c6 1947_ACEOF
b12915c1
VZ
1948
1949 ;;
1950
10f2d63a 1951 *)
e6cc62c6
VS
1952 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1953echo "$as_me: error: unknown system type ${host}." >&2;}
1954 { (exit 1); exit 1; }; }
10f2d63a
VZ
1955esac
1956
8284b0c5
MB
1957
1958
1959
1960 wx_arg_cache_file="configarg.cache"
1961 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1962 rm -f ${wx_arg_cache_file}.tmp
1963 touch ${wx_arg_cache_file}.tmp
1964 touch ${wx_arg_cache_file}
e6cc62c6 1965
10f2d63a
VZ
1966
1967DEBUG_CONFIGURE=0
1968if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1969 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1970 DEFAULT_wxUSE_STL=no
1e6feb95 1971
d8356fa3
VZ
1972 DEFAULT_wxUSE_NANOX=no
1973
10f2d63a
VZ
1974 DEFAULT_wxUSE_THREADS=yes
1975
1976 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1977 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1978 DEFAULT_wxUSE_PROFILE=no
1979 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1980 DEFAULT_wxUSE_NO_RTTI=no
1981 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1982 DEFAULT_wxUSE_PERMISSIVE=no
1983 DEFAULT_wxUSE_DEBUG_FLAG=yes
1984 DEFAULT_wxUSE_DEBUG_INFO=yes
1985 DEFAULT_wxUSE_DEBUG_GDB=yes
1986 DEFAULT_wxUSE_MEM_TRACING=no
1987 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1988 DEFAULT_wxUSE_DMALLOC=no
1989 DEFAULT_wxUSE_APPLE_IEEE=no
1990
e46d2a18 1991 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1992 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1993 DEFAULT_wxUSE_LOGWINDOW=no
1994 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1995 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1996
1997 DEFAULT_wxUSE_GUI=yes
1e6feb95 1998 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1999
3e44f09d 2000 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2001 DEFAULT_wxUSE_XML=no
2002 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2003 DEFAULT_wxUSE_ZLIB=no
2004 DEFAULT_wxUSE_LIBPNG=no
2005 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2006 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 2007 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2008 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2009
eb4efbdc 2010 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2011 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2012 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2013 DEFAULT_wxUSE_CMDLINE_PARSER=no
2014 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2015 DEFAULT_wxUSE_TIMER=no
2016 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2017 DEFAULT_wxUSE_FILE=no
1e6feb95 2018 DEFAULT_wxUSE_FFILE=no
a3a584a7 2019 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2020 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2021 DEFAULT_wxUSE_WAVE=no
2022 DEFAULT_wxUSE_INTL=no
2023 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2024 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2025 DEFAULT_wxUSE_STREAMS=no
2026 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2027 DEFAULT_wxUSE_OLE=no
2028 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2029 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2030 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2031 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2032 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2033 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2034 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2035
2036 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2037 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2038 DEFAULT_wxUSE_POSTSCRIPT=no
2039
10f2d63a
VZ
2040 DEFAULT_wxUSE_CLIPBOARD=no
2041 DEFAULT_wxUSE_TOOLTIPS=no
2042 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2043 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2044 DEFAULT_wxUSE_SPLINES=no
2045
2046 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2047 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2048 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2049
10f2d63a
VZ
2050 DEFAULT_wxUSE_RESOURCES=no
2051 DEFAULT_wxUSE_CONSTRAINTS=no
2052 DEFAULT_wxUSE_IPC=no
2053 DEFAULT_wxUSE_HELP=no
29fd3c0c 2054 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2055 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2056 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2057 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2058 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2059 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2060 DEFAULT_wxUSE_PROTOCOL=no
2061 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2062 DEFAULT_wxUSE_PROTOCOL_FTP=no
2063 DEFAULT_wxUSE_PROTOCOL_FILE=no
2064 DEFAULT_wxUSE_URL=no
3bd8fb5f 2065
10f2d63a 2066 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2067 DEFAULT_wxUSE_CHOICEDLG=no
2068 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2069 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2070 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2071 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2072 DEFAULT_wxUSE_FONTDLG=no
2073 DEFAULT_wxUSE_MSGDLG=no
2074 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2075 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2076 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_STARTUP_TIPS=no
2078 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2079 DEFAULT_wxUSE_WIZARDDLG=no
2080
1e6feb95 2081 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2082 DEFAULT_wxUSE_MINIFRAME=no
2083 DEFAULT_wxUSE_HTML=no
24528b0c 2084 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2085 DEFAULT_wxUSE_FS_INET=no
2086 DEFAULT_wxUSE_FS_ZIP=no
2087 DEFAULT_wxUSE_BUSYINFO=no
2088 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2089 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2090 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2091
2092 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2093 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2094 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2095 DEFAULT_wxUSE_CALCTRL=no
2096 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2097 DEFAULT_wxUSE_CHECKBOX=no
2098 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2099 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2100 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2101 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2102 DEFAULT_wxUSE_GAUGE=no
2103 DEFAULT_wxUSE_GRID=no
10f2d63a 2104 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2105 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2106 DEFAULT_wxUSE_LISTBOX=no
2107 DEFAULT_wxUSE_LISTCTRL=no
2108 DEFAULT_wxUSE_NOTEBOOK=no
2109 DEFAULT_wxUSE_RADIOBOX=no
2110 DEFAULT_wxUSE_RADIOBTN=no
2111 DEFAULT_wxUSE_SASH=no
2112 DEFAULT_wxUSE_SCROLLBAR=no
2113 DEFAULT_wxUSE_SLIDER=no
2114 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2115 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2116 DEFAULT_wxUSE_SPLITTER=no
2117 DEFAULT_wxUSE_STATBMP=no
2118 DEFAULT_wxUSE_STATBOX=no
2119 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2120 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2121 DEFAULT_wxUSE_STATUSBAR=yes
2122 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2123 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2124 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2125 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2126 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2127 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2128 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2129 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2130 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2131
2132 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2133 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2134 DEFAULT_wxUSE_WCSRTOMBS=no
2135
edae8572 2136 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2137 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2138 DEFAULT_wxUSE_GIF=no
2139 DEFAULT_wxUSE_PCX=no
2140 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2141 DEFAULT_wxUSE_IFF=no
0046ff7c 2142 DEFAULT_wxUSE_XPM=no
658974ae 2143 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2144 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2145
e9e0dc15 2146 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2147 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2148else
1e6feb95 2149 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2150 DEFAULT_wxUSE_STL=no
1e6feb95 2151
d8356fa3
VZ
2152 DEFAULT_wxUSE_NANOX=no
2153
10f2d63a
VZ
2154 DEFAULT_wxUSE_THREADS=yes
2155
2156 DEFAULT_wxUSE_SHARED=yes
2157 DEFAULT_wxUSE_OPTIMISE=yes
2158 DEFAULT_wxUSE_PROFILE=no
2159 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2160 DEFAULT_wxUSE_NO_RTTI=no
2161 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2162 DEFAULT_wxUSE_PERMISSIVE=no
2163 DEFAULT_wxUSE_DEBUG_FLAG=no
2164 DEFAULT_wxUSE_DEBUG_INFO=no
2165 DEFAULT_wxUSE_DEBUG_GDB=no
2166 DEFAULT_wxUSE_MEM_TRACING=no
2167 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2168 DEFAULT_wxUSE_DMALLOC=no
2169 DEFAULT_wxUSE_APPLE_IEEE=yes
2170
e46d2a18 2171 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2172 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2173 DEFAULT_wxUSE_LOGWINDOW=yes
2174 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2175 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2176
2177 DEFAULT_wxUSE_GUI=yes
2178
831b3152 2179 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2180 DEFAULT_wxUSE_XML=yes
2181 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2182 DEFAULT_wxUSE_ZLIB=yes
2183 DEFAULT_wxUSE_LIBPNG=yes
2184 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2185 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2186 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2187 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2188
eb4efbdc 2189 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2190 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2191 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2192 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2193 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2194 DEFAULT_wxUSE_TIMER=yes
2195 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2196 DEFAULT_wxUSE_FILE=yes
1e6feb95 2197 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2198 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2199 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2200 DEFAULT_wxUSE_WAVE=no
2201 DEFAULT_wxUSE_INTL=yes
2202 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2203 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2204 DEFAULT_wxUSE_STREAMS=yes
2205 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2206 DEFAULT_wxUSE_OLE=yes
2207 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2208 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2209 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2210 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2211 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2212 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2213 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2214
2215 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2216 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2217 DEFAULT_wxUSE_POSTSCRIPT=yes
2218
10f2d63a
VZ
2219 DEFAULT_wxUSE_CLIPBOARD=yes
2220 DEFAULT_wxUSE_TOOLTIPS=yes
2221 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2222 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2223 DEFAULT_wxUSE_SPLINES=yes
2224
2225 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2226 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2227 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2228
2b5f62a0 2229 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2230 DEFAULT_wxUSE_CONSTRAINTS=yes
2231 DEFAULT_wxUSE_IPC=yes
2232 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2233 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2234 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2235 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2236 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2237 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2238 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2239 DEFAULT_wxUSE_PROTOCOL=yes
2240 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2241 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2242 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2243 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2244
2245 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2246 DEFAULT_wxUSE_CHOICEDLG=yes
2247 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2248 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2249 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2250 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2251 DEFAULT_wxUSE_FONTDLG=yes
2252 DEFAULT_wxUSE_MSGDLG=yes
2253 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2254 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2255 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2256 DEFAULT_wxUSE_STARTUP_TIPS=yes
2257 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2258 DEFAULT_wxUSE_WIZARDDLG=yes
2259
1e6feb95 2260 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2261 DEFAULT_wxUSE_MINIFRAME=yes
2262 DEFAULT_wxUSE_HTML=yes
24528b0c 2263 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2264 DEFAULT_wxUSE_FS_INET=yes
2265 DEFAULT_wxUSE_FS_ZIP=yes
2266 DEFAULT_wxUSE_BUSYINFO=yes
2267 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2268 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2269 DEFAULT_wxUSE_VALIDATORS=yes
2270
2271 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2272 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2273 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2274 DEFAULT_wxUSE_CALCTRL=yes
2275 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2276 DEFAULT_wxUSE_CHECKBOX=yes
2277 DEFAULT_wxUSE_CHECKLST=yes
2278 DEFAULT_wxUSE_CHOICE=yes
2279 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2280 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2281 DEFAULT_wxUSE_GAUGE=yes
2282 DEFAULT_wxUSE_GRID=yes
10f2d63a 2283 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2284 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2285 DEFAULT_wxUSE_LISTBOX=yes
2286 DEFAULT_wxUSE_LISTCTRL=yes
2287 DEFAULT_wxUSE_NOTEBOOK=yes
2288 DEFAULT_wxUSE_RADIOBOX=yes
2289 DEFAULT_wxUSE_RADIOBTN=yes
2290 DEFAULT_wxUSE_SASH=yes
2291 DEFAULT_wxUSE_SCROLLBAR=yes
2292 DEFAULT_wxUSE_SLIDER=yes
2293 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2294 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2295 DEFAULT_wxUSE_SPLITTER=yes
2296 DEFAULT_wxUSE_STATBMP=yes
2297 DEFAULT_wxUSE_STATBOX=yes
2298 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2299 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2300 DEFAULT_wxUSE_STATUSBAR=yes
2301 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2302 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2303 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2304 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2305 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2306 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2307 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2308 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2309 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2310
2311 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2312 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2313 DEFAULT_wxUSE_WCSRTOMBS=no
2314
edae8572 2315 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2316 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2317 DEFAULT_wxUSE_GIF=yes
2318 DEFAULT_wxUSE_PCX=yes
cc0e8480 2319 DEFAULT_wxUSE_IFF=no
10f2d63a 2320 DEFAULT_wxUSE_PNM=yes
0046ff7c 2321 DEFAULT_wxUSE_XPM=yes
658974ae 2322 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2323 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2324
e9e0dc15 2325 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2326 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2327fi
2328
8284b0c5
MB
2329
2330
10f2d63a 2331for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2332 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2333 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2334 has_toolkit_in_cache=1
2335 eval "DEFAULT_$LINE"
2336 eval "CACHE_$toolkit=1"
2337 fi
2338done
2339
8284b0c5
MB
2340
2341
5005acfe 2342 enablestring=
e6cc62c6
VS
2343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2344echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2345 no_cache=0
2346 # Check whether --enable-gui or --disable-gui was given.
2347if test "${enable_gui+set}" = set; then
2348 enableval="$enable_gui"
e6cc62c6 2349
10f2d63a
VZ
2350 if test "$enableval" = yes; then
2351 ac_cv_use_gui='wxUSE_GUI=yes'
2352 else
2353 ac_cv_use_gui='wxUSE_GUI=no'
2354 fi
e6cc62c6 2355
10f2d63a 2356else
e6cc62c6 2357
10f2d63a
VZ
2358 LINE=`grep "wxUSE_GUI" ${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_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2366
e6cc62c6 2367fi;
10f2d63a
VZ
2368
2369 eval "$ac_cv_use_gui"
2370 if test "$no_cache" != 1; then
2371 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2372 fi
2373
2374 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2375 echo "$as_me:$LINENO: result: yes" >&5
2376echo "${ECHO_T}yes" >&6
10f2d63a 2377 else
e6cc62c6
VS
2378 echo "$as_me:$LINENO: result: no" >&5
2379echo "${ECHO_T}no" >&6
10f2d63a 2380 fi
e6cc62c6 2381
10f2d63a 2382
9747f85d
VS
2383 enablestring=
2384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2385echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2386 no_cache=0
2387 # Check whether --enable-monolithic or --disable-monolithic was given.
2388if test "${enable_monolithic+set}" = set; then
2389 enableval="$enable_monolithic"
2390
2391 if test "$enableval" = yes; then
2392 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2393 else
2394 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2395 fi
2396
2397else
2398
2399 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2400 if test "x$LINE" != x ; then
2401 eval "DEFAULT_$LINE"
2402 else
2403 no_cache=1
2404 fi
2405
2406 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2407
2408fi;
2409
2410 eval "$ac_cv_use_monolithic"
2411 if test "$no_cache" != 1; then
2412 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2413 fi
2414
2415 if test "$wxUSE_MONOLITHIC" = yes; then
2416 echo "$as_me:$LINENO: result: yes" >&5
2417echo "${ECHO_T}yes" >&6
2418 else
2419 echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6
2421 fi
2422
2423
b12915c1 2424if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2425
8284b0c5 2426
5005acfe 2427 enablestring=
e6cc62c6
VS
2428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2429echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2430 no_cache=0
2431 # Check whether --enable-universal or --disable-universal was given.
2432if test "${enable_universal+set}" = set; then
2433 enableval="$enable_universal"
e6cc62c6 2434
1e6feb95
VZ
2435 if test "$enableval" = yes; then
2436 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2437 else
2438 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2439 fi
e6cc62c6 2440
1e6feb95 2441else
e6cc62c6 2442
1e6feb95
VZ
2443 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2451
e6cc62c6 2452fi;
1e6feb95
VZ
2453
2454 eval "$ac_cv_use_universal"
2455 if test "$no_cache" != 1; then
2456 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2457 fi
2458
2459 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2460 echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
1e6feb95 2462 else
e6cc62c6
VS
2463 echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6
1e6feb95 2465 fi
e6cc62c6
VS
2466
2467
10f2d63a
VZ
2468# Check whether --with-gtk or --without-gtk was given.
2469if test "${with_gtk+set}" = set; then
2470 withval="$with_gtk"
2471 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2472fi;
10f2d63a
VZ
2473
2474# Check whether --with-motif or --without-motif was given.
2475if test "${with_motif+set}" = set; then
2476 withval="$with_motif"
2477 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2478fi;
10f2d63a 2479
b4085ce6
GD
2480# Check whether --with-mac or --without-mac was given.
2481if test "${with_mac+set}" = set; then
2482 withval="$with_mac"
2483 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2484fi;
b4085ce6 2485
ac0c4cc3
DE
2486# Check whether --with-cocoa or --without-cocoa was given.
2487if test "${with_cocoa+set}" = set; then
2488 withval="$with_cocoa"
2489 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2490fi;
ac0c4cc3 2491
10f2d63a
VZ
2492# Check whether --with-wine or --without-wine was given.
2493if test "${with_wine+set}" = set; then
2494 withval="$with_wine"
89e6bf6d 2495 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2496fi;
10f2d63a 2497
77e13408
RL
2498# Check whether --with-msw or --without-msw was given.
2499if test "${with_msw+set}" = set; then
2500 withval="$with_msw"
b4efce5e 2501 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2502fi;
10f2d63a 2503
e07802fc
VZ
2504# Check whether --with-pm or --without-pm was given.
2505if test "${with_pm+set}" = set; then
2506 withval="$with_pm"
2507 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2508fi;
698dcdb6 2509
1e6feb95
VZ
2510# Check whether --with-mgl or --without-mgl was given.
2511if test "${with_mgl+set}" = set; then
2512 withval="$with_mgl"
6c657b52 2513 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2514fi;
1e6feb95 2515
1725144d
RR
2516# Check whether --with-microwin or --without-microwin was given.
2517if test "${with_microwin+set}" = set; then
2518 withval="$with_microwin"
2519 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2520fi;
1725144d 2521
f79bd02d
JS
2522# Check whether --with-x11 or --without-x11 was given.
2523if test "${with_x11+set}" = set; then
2524 withval="$with_x11"
3c011993 2525 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2526fi;
a0b9e27f 2527
5005acfe 2528 enablestring=
e6cc62c6
VS
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2531 no_cache=0
ba875e66
VZ
2532 # Check whether --enable-nanox or --disable-nanox was given.
2533if test "${enable_nanox+set}" = set; then
2534 enableval="$enable_nanox"
e6cc62c6 2535
d8356fa3 2536 if test "$enableval" = yes; then
ba875e66 2537 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2538 else
ba875e66 2539 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2540 fi
e6cc62c6 2541
d8356fa3 2542else
e6cc62c6 2543
d8356fa3
VZ
2544 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
ba875e66 2551 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2552
e6cc62c6 2553fi;
d8356fa3 2554
ba875e66 2555 eval "$ac_cv_use_nanox"
d8356fa3 2556 if test "$no_cache" != 1; then
ba875e66 2557 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2558 fi
2559
2560 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
d8356fa3 2563 else
e6cc62c6
VS
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
d8356fa3 2566 fi
e6cc62c6 2567
8284b0c5 2568
d74f4b5a 2569
5005acfe 2570 enablestring=
e6cc62c6
VS
2571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2572echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2573 no_cache=0
2574 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2575if test "${enable_gtk2+set}" = set; then
2576 enableval="$enable_gtk2"
e6cc62c6 2577
d74f4b5a
VZ
2578 if test "$enableval" = yes; then
2579 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2580 else
2581 ac_cv_use_gtk2='wxUSE_GTK2=no'
2582 fi
e6cc62c6 2583
10f2d63a 2584else
e6cc62c6 2585
d74f4b5a
VZ
2586 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2594
e6cc62c6 2595fi;
328a083c 2596
d74f4b5a
VZ
2597 eval "$ac_cv_use_gtk2"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2603 echo "$as_me:$LINENO: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
d74f4b5a 2605 else
e6cc62c6
VS
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
d74f4b5a 2608 fi
d74f4b5a 2609
5c6fa7d2 2610
e6cc62c6
VS
2611
2612 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2613echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2614 no_cache=0
e6cc62c6
VS
2615
2616# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2617if test "${with_libpng+set}" = set; then
2618 withval="$with_libpng"
e6cc62c6 2619
10f2d63a 2620 if test "$withval" = yes; then
b12915c1 2621 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2622 elif test "$withval" = no; then
b12915c1 2623 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2624 elif test "$withval" = sys; then
2625 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2626 elif test "$withval" = builtin; then
2627 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2628 else
e6cc62c6
VS
2629 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2630echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2631 { (exit 1); exit 1; }; }
10f2d63a 2632 fi
e6cc62c6 2633
10f2d63a 2634else
e6cc62c6 2635
b12915c1 2636 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2637 if test "x$LINE" != x ; then
2638 eval "DEFAULT_$LINE"
2639 else
2640 no_cache=1
2641 fi
2642
b12915c1 2643 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2644
e6cc62c6 2645fi;
10f2d63a 2646
b12915c1 2647 eval "$ac_cv_use_libpng"
10f2d63a 2648 if test "$no_cache" != 1; then
b12915c1 2649 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2650 fi
2651
b12915c1 2652 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2653 echo "$as_me:$LINENO: result: yes" >&5
2654echo "${ECHO_T}yes" >&6
422107f9 2655 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2656 echo "$as_me:$LINENO: result: no" >&5
2657echo "${ECHO_T}no" >&6
422107f9 2658 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2659 echo "$as_me:$LINENO: result: system version" >&5
2660echo "${ECHO_T}system version" >&6
4f14bcd8 2661 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2662 echo "$as_me:$LINENO: result: builtin version" >&5
2663echo "${ECHO_T}builtin version" >&6
422107f9 2664 else
e6cc62c6
VS
2665 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2666echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2667 { (exit 1); exit 1; }; }
10f2d63a 2668 fi
10f2d63a 2669
e6cc62c6
VS
2670
2671 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2672echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2673 no_cache=0
e6cc62c6
VS
2674
2675# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2676if test "${with_libjpeg+set}" = set; then
2677 withval="$with_libjpeg"
e6cc62c6 2678
10f2d63a 2679 if test "$withval" = yes; then
b12915c1 2680 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2681 elif test "$withval" = no; then
b12915c1 2682 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2683 elif test "$withval" = sys; then
2684 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2685 elif test "$withval" = builtin; then
2686 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2687 else
e6cc62c6
VS
2688 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2689echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2690 { (exit 1); exit 1; }; }
10f2d63a 2691 fi
e6cc62c6 2692
10f2d63a 2693else
e6cc62c6 2694
b12915c1 2695 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2696 if test "x$LINE" != x ; then
2697 eval "DEFAULT_$LINE"
2698 else
2699 no_cache=1
2700 fi
2701
b12915c1 2702 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2703
e6cc62c6 2704fi;
10f2d63a 2705
b12915c1 2706 eval "$ac_cv_use_libjpeg"
10f2d63a 2707 if test "$no_cache" != 1; then
b12915c1 2708 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2709 fi
2710
b12915c1 2711 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2712 echo "$as_me:$LINENO: result: yes" >&5
2713echo "${ECHO_T}yes" >&6
422107f9 2714 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2715 echo "$as_me:$LINENO: result: no" >&5
2716echo "${ECHO_T}no" >&6
422107f9 2717 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2718 echo "$as_me:$LINENO: result: system version" >&5
2719echo "${ECHO_T}system version" >&6
4f14bcd8 2720 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2721 echo "$as_me:$LINENO: result: builtin version" >&5
2722echo "${ECHO_T}builtin version" >&6
422107f9 2723 else
e6cc62c6
VS
2724 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2725echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2726 { (exit 1); exit 1; }; }
10f2d63a 2727 fi
10f2d63a 2728
e6cc62c6
VS
2729
2730 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2731echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2732 no_cache=0
e6cc62c6
VS
2733
2734# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2735if test "${with_libtiff+set}" = set; then
2736 withval="$with_libtiff"
e6cc62c6 2737
10f2d63a 2738 if test "$withval" = yes; then
b12915c1 2739 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2740 elif test "$withval" = no; then
b12915c1 2741 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2742 elif test "$withval" = sys; then
2743 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2744 elif test "$withval" = builtin; then
2745 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2746 else
e6cc62c6
VS
2747 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2748echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2749 { (exit 1); exit 1; }; }
10f2d63a 2750 fi
e6cc62c6 2751
10f2d63a 2752else
e6cc62c6 2753
b12915c1 2754 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2755 if test "x$LINE" != x ; then
2756 eval "DEFAULT_$LINE"
2757 else
2758 no_cache=1
2759 fi
2760
b12915c1 2761 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2762
e6cc62c6 2763fi;
10f2d63a 2764
b12915c1 2765 eval "$ac_cv_use_libtiff"
10f2d63a 2766 if test "$no_cache" != 1; then
b12915c1 2767 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2768 fi
2769
b12915c1 2770 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2771 echo "$as_me:$LINENO: result: yes" >&5
2772echo "${ECHO_T}yes" >&6
0dcf9893 2773 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2774 echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6
0dcf9893 2776 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2777 echo "$as_me:$LINENO: result: system version" >&5
2778echo "${ECHO_T}system version" >&6
4f14bcd8 2779 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2780 echo "$as_me:$LINENO: result: builtin version" >&5
2781echo "${ECHO_T}builtin version" >&6
0dcf9893 2782 else
e6cc62c6
VS
2783 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2784echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2785 { (exit 1); exit 1; }; }
10f2d63a 2786 fi
10f2d63a 2787
e6cc62c6
VS
2788
2789 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2790echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2791 no_cache=0
e6cc62c6
VS
2792
2793# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2794if test "${with_opengl+set}" = set; then
2795 withval="$with_opengl"
e6cc62c6 2796
10f2d63a 2797 if test "$withval" = yes; then
b12915c1 2798 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2799 else
b12915c1 2800 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2801 fi
e6cc62c6 2802
10f2d63a 2803else
e6cc62c6 2804
b12915c1 2805 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2806 if test "x$LINE" != x ; then
2807 eval "DEFAULT_$LINE"
2808 else
2809 no_cache=1
2810 fi
2811
b12915c1 2812 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2813
e6cc62c6 2814fi;
10f2d63a 2815
b12915c1 2816 eval "$ac_cv_use_opengl"
10f2d63a 2817 if test "$no_cache" != 1; then
b12915c1 2818 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2819 fi
2820
b12915c1 2821 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2822 echo "$as_me:$LINENO: result: yes" >&5
2823echo "${ECHO_T}yes" >&6
10f2d63a 2824 else
e6cc62c6
VS
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
10f2d63a 2827 fi
e6cc62c6 2828
10f2d63a 2829
b12915c1
VZ
2830fi
2831
5c6fa7d2 2832
e6cc62c6
VS
2833 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2834echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2835 no_cache=0
e6cc62c6
VS
2836
2837# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2838if test "${with_dmalloc+set}" = set; then
2839 withval="$with_dmalloc"
e6cc62c6 2840
c7a2bf27 2841 if test "$withval" = yes; then
b12915c1 2842 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2843 else
b12915c1 2844 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2845 fi
e6cc62c6 2846
c7a2bf27 2847else
e6cc62c6 2848
b12915c1 2849 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2850 if test "x$LINE" != x ; then
2851 eval "DEFAULT_$LINE"
2852 else
2853 no_cache=1
2854 fi
2855
b12915c1 2856 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2857
e6cc62c6 2858fi;
c7a2bf27 2859
b12915c1 2860 eval "$ac_cv_use_dmalloc"
c7a2bf27 2861 if test "$no_cache" != 1; then
b12915c1 2862 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2863 fi
2864
b12915c1 2865 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2866 echo "$as_me:$LINENO: result: yes" >&5
2867echo "${ECHO_T}yes" >&6
c7a2bf27 2868 else
e6cc62c6
VS
2869 echo "$as_me:$LINENO: result: no" >&5
2870echo "${ECHO_T}no" >&6
c7a2bf27 2871 fi
c7a2bf27 2872
e6cc62c6
VS
2873
2874 echo "$as_me:$LINENO: checking for --with-regex" >&5
2875echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2876 no_cache=0
e6cc62c6
VS
2877
2878# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2879if test "${with_regex+set}" = set; then
2880 withval="$with_regex"
e6cc62c6 2881
3e44f09d
VZ
2882 if test "$withval" = yes; then
2883 ac_cv_use_regex='wxUSE_REGEX=yes'
2884 elif test "$withval" = no; then
2885 ac_cv_use_regex='wxUSE_REGEX=no'
2886 elif test "$withval" = sys; then
2887 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2888 elif test "$withval" = builtin; then
2889 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2890 else
e6cc62c6
VS
2891 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2892echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2893 { (exit 1); exit 1; }; }
3e44f09d 2894 fi
e6cc62c6 2895
3e44f09d 2896else
e6cc62c6 2897
3e44f09d
VZ
2898 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2906
e6cc62c6 2907fi;
3e44f09d
VZ
2908
2909 eval "$ac_cv_use_regex"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2915 echo "$as_me:$LINENO: result: yes" >&5
2916echo "${ECHO_T}yes" >&6
3e44f09d 2917 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2918 echo "$as_me:$LINENO: result: no" >&5
2919echo "${ECHO_T}no" >&6
3e44f09d 2920 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2921 echo "$as_me:$LINENO: result: system version" >&5
2922echo "${ECHO_T}system version" >&6
4f14bcd8 2923 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2924 echo "$as_me:$LINENO: result: builtin version" >&5
2925echo "${ECHO_T}builtin version" >&6
3e44f09d 2926 else
e6cc62c6
VS
2927 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2928echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2929 { (exit 1); exit 1; }; }
3e44f09d 2930 fi
3e44f09d 2931
e6cc62c6
VS
2932
2933 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2934echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2935 no_cache=0
e6cc62c6
VS
2936
2937# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2938if test "${with_zlib+set}" = set; then
2939 withval="$with_zlib"
e6cc62c6 2940
10f2d63a 2941 if test "$withval" = yes; then
b12915c1 2942 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2943 elif test "$withval" = no; then
b12915c1 2944 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2945 elif test "$withval" = sys; then
2946 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2947 elif test "$withval" = builtin; then
2948 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2949 else
e6cc62c6
VS
2950 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2951echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2952 { (exit 1); exit 1; }; }
10f2d63a 2953 fi
e6cc62c6 2954
10f2d63a 2955else
e6cc62c6 2956
b12915c1 2957 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
b12915c1 2964 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2965
e6cc62c6 2966fi;
10f2d63a 2967
b12915c1 2968 eval "$ac_cv_use_zlib"
10f2d63a 2969 if test "$no_cache" != 1; then
b12915c1 2970 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2971 fi
2972
b12915c1 2973 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2974 echo "$as_me:$LINENO: result: yes" >&5
2975echo "${ECHO_T}yes" >&6
422107f9 2976 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2977 echo "$as_me:$LINENO: result: no" >&5
2978echo "${ECHO_T}no" >&6
422107f9 2979 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2980 echo "$as_me:$LINENO: result: system version" >&5
2981echo "${ECHO_T}system version" >&6
4f14bcd8 2982 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2983 echo "$as_me:$LINENO: result: builtin version" >&5
2984echo "${ECHO_T}builtin version" >&6
422107f9 2985 else
e6cc62c6
VS
2986 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2987echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2988 { (exit 1); exit 1; }; }
10f2d63a 2989 fi
10f2d63a 2990
e6cc62c6
VS
2991
2992 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2993echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2994 no_cache=0
e6cc62c6
VS
2995
2996# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2997if test "${with_odbc+set}" = set; then
2998 withval="$with_odbc"
e6cc62c6 2999
10f2d63a
VZ
3000 if test "$withval" = yes; then
3001 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3002 elif test "$withval" = no; then
10f2d63a 3003 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3004 elif test "$withval" = sys; then
3005 ac_cv_use_odbc='wxUSE_ODBC=sys'
3006 elif test "$withval" = builtin; then
3007 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3008 else
e6cc62c6
VS
3009 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3010echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3011 { (exit 1); exit 1; }; }
10f2d63a 3012 fi
e6cc62c6 3013
10f2d63a 3014else
e6cc62c6 3015
10f2d63a
VZ
3016 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3024
e6cc62c6 3025fi;
10f2d63a
VZ
3026
3027 eval "$ac_cv_use_odbc"
3028 if test "$no_cache" != 1; then
3029 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3030 fi
3031
3032 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3033 echo "$as_me:$LINENO: result: yes" >&5
3034echo "${ECHO_T}yes" >&6
8647bec6 3035 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
8647bec6 3038 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3039 echo "$as_me:$LINENO: result: system version" >&5
3040echo "${ECHO_T}system version" >&6
8647bec6 3041 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3042 echo "$as_me:$LINENO: result: builtin version" >&5
3043echo "${ECHO_T}builtin version" >&6
8647bec6 3044 else
e6cc62c6
VS
3045 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3046echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3047 { (exit 1); exit 1; }; }
10f2d63a 3048 fi
e6cc62c6 3049
52127426 3050
672abd7a
VS
3051 echo "$as_me:$LINENO: checking for --with-expat" >&5
3052echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3053 no_cache=0
3054
3055# Check whether --with-expat or --without-expat was given.
3056if test "${with_expat+set}" = set; then
3057 withval="$with_expat"
3058
3059 if test "$withval" = yes; then
3060 ac_cv_use_expat='wxUSE_EXPAT=yes'
3061 elif test "$withval" = no; then
3062 ac_cv_use_expat='wxUSE_EXPAT=no'
3063 elif test "$withval" = sys; then
3064 ac_cv_use_expat='wxUSE_EXPAT=sys'
3065 elif test "$withval" = builtin; then
3066 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3067 else
3068 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3069echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3070 { (exit 1); exit 1; }; }
3071 fi
3072
3073else
3074
3075 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3076 if test "x$LINE" != x ; then
3077 eval "DEFAULT_$LINE"
3078 else
3079 no_cache=1
3080 fi
3081
3082 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3083
3084fi;
3085
3086 eval "$ac_cv_use_expat"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_EXPAT" = yes; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093echo "${ECHO_T}yes" >&6
3094 elif test "$wxUSE_EXPAT" = no; then
3095 echo "$as_me:$LINENO: result: no" >&5
3096echo "${ECHO_T}no" >&6
3097 elif test "$wxUSE_EXPAT" = sys; then
3098 echo "$as_me:$LINENO: result: system version" >&5
3099echo "${ECHO_T}system version" >&6
3100 elif test "$wxUSE_EXPAT" = builtin; then
3101 echo "$as_me:$LINENO: result: builtin version" >&5
3102echo "${ECHO_T}builtin version" >&6
3103 else
3104 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3105echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3106 { (exit 1); exit 1; }; }
3107 fi
3108
3109
8284b0c5
MB
3110
3111
5005acfe 3112 enablestring=
e6cc62c6
VS
3113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3114echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3115 no_cache=0
3116 # Check whether --enable-shared or --disable-shared was given.
3117if test "${enable_shared+set}" = set; then
3118 enableval="$enable_shared"
e6cc62c6 3119
10f2d63a
VZ
3120 if test "$enableval" = yes; then
3121 ac_cv_use_shared='wxUSE_SHARED=yes'
3122 else
3123 ac_cv_use_shared='wxUSE_SHARED=no'
3124 fi
e6cc62c6 3125
10f2d63a 3126else
e6cc62c6 3127
10f2d63a
VZ
3128 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3136
e6cc62c6 3137fi;
10f2d63a
VZ
3138
3139 eval "$ac_cv_use_shared"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3145 echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
10f2d63a 3147 else
e6cc62c6
VS
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
10f2d63a 3150 fi
e6cc62c6 3151
10f2d63a 3152
5005acfe 3153 enablestring=
e6cc62c6
VS
3154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3155echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3156 no_cache=0
3157 # Check whether --enable-optimise or --disable-optimise was given.
3158if test "${enable_optimise+set}" = set; then
3159 enableval="$enable_optimise"
e6cc62c6 3160
10f2d63a
VZ
3161 if test "$enableval" = yes; then
3162 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3163 else
3164 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3165 fi
e6cc62c6 3166
10f2d63a 3167else
e6cc62c6 3168
10f2d63a
VZ
3169 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3177
e6cc62c6 3178fi;
10f2d63a
VZ
3179
3180 eval "$ac_cv_use_optimise"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3186 echo "$as_me:$LINENO: result: yes" >&5
3187echo "${ECHO_T}yes" >&6
10f2d63a 3188 else
e6cc62c6
VS
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
10f2d63a 3191 fi
e6cc62c6 3192
10f2d63a 3193
5005acfe 3194 enablestring=
e6cc62c6
VS
3195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3196echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3197 no_cache=0
3198 # Check whether --enable-debug or --disable-debug was given.
3199if test "${enable_debug+set}" = set; then
3200 enableval="$enable_debug"
e6cc62c6 3201
10f2d63a
VZ
3202 if test "$enableval" = yes; then
3203 ac_cv_use_debug='wxUSE_DEBUG=yes'
3204 else
3205 ac_cv_use_debug='wxUSE_DEBUG=no'
3206 fi
e6cc62c6 3207
10f2d63a 3208else
e6cc62c6 3209
10f2d63a
VZ
3210 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3218
e6cc62c6 3219fi;
10f2d63a
VZ
3220
3221 eval "$ac_cv_use_debug"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
10f2d63a 3229 else
e6cc62c6
VS
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
10f2d63a 3232 fi
e6cc62c6 3233
52127426 3234
df5168c4
MB
3235 enablestring=
3236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3237echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3238 no_cache=0
3239 # Check whether --enable-stl or --disable-stl was given.
3240if test "${enable_stl+set}" = set; then
3241 enableval="$enable_stl"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_stl='wxUSE_STL=yes'
3245 else
3246 ac_cv_use_stl='wxUSE_STL=no'
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3259
3260fi;
3261
3262 eval "$ac_cv_use_stl"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_STL" = yes; then
3268 echo "$as_me:$LINENO: result: yes" >&5
3269echo "${ECHO_T}yes" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273 fi
3274
3275
10f2d63a
VZ
3276if test "$wxUSE_DEBUG" = "yes"; then
3277 DEFAULT_wxUSE_DEBUG_FLAG=yes
3278 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3279 BUILD=debug
10f2d63a
VZ
3280elif test "$wxUSE_DEBUG" = "no"; then
3281 DEFAULT_wxUSE_DEBUG_FLAG=no
3282 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3283 BUILD=release
10f2d63a
VZ
3284fi
3285
8284b0c5 3286
5005acfe 3287 enablestring=
e6cc62c6
VS
3288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3289echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3290 no_cache=0
3291 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3292if test "${enable_debug_flag+set}" = set; then
3293 enableval="$enable_debug_flag"
e6cc62c6 3294
10f2d63a
VZ
3295 if test "$enableval" = yes; then
3296 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3297 else
3298 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3299 fi
e6cc62c6 3300
10f2d63a 3301else
e6cc62c6 3302
10f2d63a
VZ
3303 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
3310 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3311
e6cc62c6 3312fi;
10f2d63a
VZ
3313
3314 eval "$ac_cv_use_debug_flag"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3320 echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
10f2d63a 3322 else
e6cc62c6
VS
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
10f2d63a 3325 fi
e6cc62c6 3326
10f2d63a 3327
5005acfe 3328 enablestring=
e6cc62c6
VS
3329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3330echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3331 no_cache=0
3332 # Check whether --enable-debug_info or --disable-debug_info was given.
3333if test "${enable_debug_info+set}" = set; then
3334 enableval="$enable_debug_info"
e6cc62c6 3335
10f2d63a
VZ
3336 if test "$enableval" = yes; then
3337 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3338 else
3339 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3340 fi
e6cc62c6 3341
10f2d63a 3342else
e6cc62c6 3343
10f2d63a
VZ
3344 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3352
e6cc62c6 3353fi;
10f2d63a
VZ
3354
3355 eval "$ac_cv_use_debug_info"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
10f2d63a 3363 else
e6cc62c6
VS
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
10f2d63a 3366 fi
e6cc62c6 3367
10f2d63a 3368
5005acfe 3369 enablestring=
e6cc62c6
VS
3370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3371echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3372 no_cache=0
3373 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3374if test "${enable_debug_gdb+set}" = set; then
3375 enableval="$enable_debug_gdb"
e6cc62c6 3376
10f2d63a
VZ
3377 if test "$enableval" = yes; then
3378 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3379 else
3380 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3381 fi
e6cc62c6 3382
10f2d63a 3383else
e6cc62c6 3384
10f2d63a
VZ
3385 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3386 if test "x$LINE" != x ; then
3387 eval "DEFAULT_$LINE"
3388 else
3389 no_cache=1
3390 fi
3391
3392 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3393
e6cc62c6 3394fi;
10f2d63a
VZ
3395
3396 eval "$ac_cv_use_debug_gdb"
3397 if test "$no_cache" != 1; then
3398 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3399 fi
3400
3401 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3402 echo "$as_me:$LINENO: result: yes" >&5
3403echo "${ECHO_T}yes" >&6
10f2d63a 3404 else
e6cc62c6
VS
3405 echo "$as_me:$LINENO: result: no" >&5
3406echo "${ECHO_T}no" >&6
10f2d63a 3407 fi
e6cc62c6 3408
10f2d63a 3409
5005acfe 3410 enablestring=
e6cc62c6
VS
3411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3412echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3413 no_cache=0
3414 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3415if test "${enable_debug_cntxt+set}" = set; then
3416 enableval="$enable_debug_cntxt"
e6cc62c6 3417
10f2d63a
VZ
3418 if test "$enableval" = yes; then
3419 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3420 else
3421 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3422 fi
e6cc62c6 3423
10f2d63a 3424else
e6cc62c6 3425
10f2d63a
VZ
3426 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3427 if test "x$LINE" != x ; then
3428 eval "DEFAULT_$LINE"
3429 else
3430 no_cache=1
3431 fi
3432
3433 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3434
e6cc62c6 3435fi;
10f2d63a
VZ
3436
3437 eval "$ac_cv_use_debug_cntxt"
3438 if test "$no_cache" != 1; then
3439 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3440 fi
3441
3442 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3443 echo "$as_me:$LINENO: result: yes" >&5
3444echo "${ECHO_T}yes" >&6
10f2d63a 3445 else
e6cc62c6
VS
3446 echo "$as_me:$LINENO: result: no" >&5
3447echo "${ECHO_T}no" >&6
10f2d63a 3448 fi
e6cc62c6 3449
10f2d63a 3450
5005acfe 3451 enablestring=
e6cc62c6
VS
3452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3453echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3454 no_cache=0
3455 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3456if test "${enable_mem_tracing+set}" = set; then
3457 enableval="$enable_mem_tracing"
e6cc62c6 3458
10f2d63a
VZ
3459 if test "$enableval" = yes; then
3460 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3461 else
3462 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3463 fi
e6cc62c6 3464
10f2d63a 3465else
e6cc62c6 3466
10f2d63a
VZ
3467 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3468 if test "x$LINE" != x ; then
3469 eval "DEFAULT_$LINE"
3470 else
3471 no_cache=1
3472 fi
3473
3474 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3475
e6cc62c6 3476fi;
10f2d63a
VZ
3477
3478 eval "$ac_cv_use_mem_tracing"
3479 if test "$no_cache" != 1; then
3480 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3481 fi
3482
3483 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3484 echo "$as_me:$LINENO: result: yes" >&5
3485echo "${ECHO_T}yes" >&6
10f2d63a 3486 else
e6cc62c6
VS
3487 echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6
10f2d63a 3489 fi
e6cc62c6 3490
10f2d63a 3491
5005acfe 3492 enablestring=
e6cc62c6
VS
3493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3494echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3495 no_cache=0
3496 # Check whether --enable-profile or --disable-profile was given.
3497if test "${enable_profile+set}" = set; then
3498 enableval="$enable_profile"
e6cc62c6 3499
10f2d63a
VZ
3500 if test "$enableval" = yes; then
3501 ac_cv_use_profile='wxUSE_PROFILE=yes'
3502 else
3503 ac_cv_use_profile='wxUSE_PROFILE=no'
3504 fi
e6cc62c6 3505
10f2d63a 3506else
e6cc62c6 3507
10f2d63a
VZ
3508 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3509 if test "x$LINE" != x ; then
3510 eval "DEFAULT_$LINE"
3511 else
3512 no_cache=1
3513 fi
3514
3515 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3516
e6cc62c6 3517fi;
10f2d63a
VZ
3518
3519 eval "$ac_cv_use_profile"
3520 if test "$no_cache" != 1; then
3521 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3522 fi
3523
3524 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3525 echo "$as_me:$LINENO: result: yes" >&5
3526echo "${ECHO_T}yes" >&6
10f2d63a 3527 else
e6cc62c6
VS
3528 echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6
10f2d63a 3530 fi
e6cc62c6 3531
10f2d63a 3532
5005acfe 3533 enablestring=
e6cc62c6
VS
3534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3535echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3536 no_cache=0
3537 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3538if test "${enable_no_rtti+set}" = set; then
3539 enableval="$enable_no_rtti"
e6cc62c6 3540
10f2d63a
VZ
3541 if test "$enableval" = yes; then
3542 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3543 else
3544 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3545 fi
e6cc62c6 3546
10f2d63a 3547else
e6cc62c6 3548
10f2d63a
VZ
3549 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3550 if test "x$LINE" != x ; then
3551 eval "DEFAULT_$LINE"
3552 else
3553 no_cache=1
3554 fi
3555
3556 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3557
e6cc62c6 3558fi;
10f2d63a
VZ
3559
3560 eval "$ac_cv_use_no_rtti"
3561 if test "$no_cache" != 1; then
3562 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3563 fi
3564
3565 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3566 echo "$as_me:$LINENO: result: yes" >&5
3567echo "${ECHO_T}yes" >&6
10f2d63a 3568 else
e6cc62c6
VS
3569 echo "$as_me:$LINENO: result: no" >&5
3570echo "${ECHO_T}no" >&6
10f2d63a 3571 fi
e6cc62c6 3572
10f2d63a 3573
5005acfe 3574 enablestring=
e6cc62c6
VS
3575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3576echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3577 no_cache=0
3578 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3579if test "${enable_no_exceptions+set}" = set; then
3580 enableval="$enable_no_exceptions"
e6cc62c6 3581
10f2d63a
VZ
3582 if test "$enableval" = yes; then
3583 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3584 else
3585 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3586 fi
e6cc62c6 3587
10f2d63a 3588else
e6cc62c6 3589
10f2d63a
VZ
3590 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3591 if test "x$LINE" != x ; then
3592 eval "DEFAULT_$LINE"
3593 else
3594 no_cache=1
3595 fi
3596
3597 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3598
e6cc62c6 3599fi;
10f2d63a
VZ
3600
3601 eval "$ac_cv_use_no_exceptions"
3602 if test "$no_cache" != 1; then
3603 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3604 fi
3605
3606 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3607 echo "$as_me:$LINENO: result: yes" >&5
3608echo "${ECHO_T}yes" >&6
10f2d63a 3609 else
e6cc62c6
VS
3610 echo "$as_me:$LINENO: result: no" >&5
3611echo "${ECHO_T}no" >&6
10f2d63a 3612 fi
e6cc62c6 3613
10f2d63a 3614
5005acfe 3615 enablestring=
e6cc62c6
VS
3616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3617echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3618 no_cache=0
3619 # Check whether --enable-permissive or --disable-permissive was given.
3620if test "${enable_permissive+set}" = set; then
3621 enableval="$enable_permissive"
e6cc62c6 3622
10f2d63a
VZ
3623 if test "$enableval" = yes; then
3624 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3625 else
3626 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3627 fi
e6cc62c6 3628
10f2d63a 3629else
e6cc62c6 3630
10f2d63a
VZ
3631 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3639
e6cc62c6 3640fi;
10f2d63a
VZ
3641
3642 eval "$ac_cv_use_permissive"
3643 if test "$no_cache" != 1; then
3644 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3645 fi
3646
3647 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3648 echo "$as_me:$LINENO: result: yes" >&5
3649echo "${ECHO_T}yes" >&6
10f2d63a 3650 else
e6cc62c6
VS
3651 echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
10f2d63a 3653 fi
e6cc62c6 3654
10f2d63a 3655
5005acfe 3656 enablestring=
e6cc62c6
VS
3657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3658echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3659 no_cache=0
3660 # Check whether --enable-no_deps or --disable-no_deps was given.
3661if test "${enable_no_deps+set}" = set; then
3662 enableval="$enable_no_deps"
e6cc62c6 3663
10f2d63a
VZ
3664 if test "$enableval" = yes; then
3665 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3666 else
3667 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3668 fi
e6cc62c6 3669
10f2d63a 3670else
e6cc62c6 3671
10f2d63a
VZ
3672 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3673 if test "x$LINE" != x ; then
3674 eval "DEFAULT_$LINE"
3675 else
3676 no_cache=1
3677 fi
3678
3679 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3680
e6cc62c6 3681fi;
10f2d63a
VZ
3682
3683 eval "$ac_cv_use_no_deps"
3684 if test "$no_cache" != 1; then
3685 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3686 fi
3687
3688 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3689 echo "$as_me:$LINENO: result: yes" >&5
3690echo "${ECHO_T}yes" >&6
10f2d63a 3691 else
e6cc62c6
VS
3692 echo "$as_me:$LINENO: result: no" >&5
3693echo "${ECHO_T}no" >&6
10f2d63a 3694 fi
e6cc62c6 3695
52127426 3696
8284b0c5 3697
65d8ef1e 3698 enablestring=
e6cc62c6
VS
3699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3700echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3701 no_cache=0
3702 # Check whether --enable-compat22 or --disable-compat22 was given.
3703if test "${enable_compat22+set}" = set; then
3704 enableval="$enable_compat22"
e6cc62c6 3705
54276ccf
VZ
3706 if test "$enableval" = yes; then
3707 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3708 else
3709 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3710 fi
e6cc62c6 3711
54276ccf 3712else
e6cc62c6 3713
54276ccf
VZ
3714 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3715 if test "x$LINE" != x ; then
3716 eval "DEFAULT_$LINE"
3717 else
3718 no_cache=1
3719 fi
3720
3721 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3722
e6cc62c6 3723fi;
54276ccf
VZ
3724
3725 eval "$ac_cv_use_compat22"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3731 echo "$as_me:$LINENO: result: yes" >&5
3732echo "${ECHO_T}yes" >&6
54276ccf 3733 else
e6cc62c6
VS
3734 echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6
54276ccf 3736 fi
e6cc62c6 3737
54276ccf 3738
65d8ef1e 3739 enablestring=disable
e6cc62c6
VS
3740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3741echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3742 no_cache=0
3743 # Check whether --enable-compat24 or --disable-compat24 was given.
3744if test "${enable_compat24+set}" = set; then
3745 enableval="$enable_compat24"
e6cc62c6 3746
65d8ef1e
VS
3747 if test "$enableval" = yes; then
3748 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3749 else
3750 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3751 fi
e6cc62c6 3752
65d8ef1e 3753else
e6cc62c6 3754
65d8ef1e
VS
3755 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3763
e6cc62c6 3764fi;
65d8ef1e
VS
3765
3766 eval "$ac_cv_use_compat24"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3772 echo "$as_me:$LINENO: result: yes" >&5
3773echo "${ECHO_T}yes" >&6
65d8ef1e 3774 else
e6cc62c6
VS
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
65d8ef1e 3777 fi
e6cc62c6 3778
65d8ef1e 3779
3bd8fb5f
RD
3780# Check whether --enable-rpath or --disable-rpath was given.
3781if test "${enable_rpath+set}" = set; then
3782 enableval="$enable_rpath"
3783 wxRPATH_DIR="$enableval"
e6cc62c6 3784fi;
3bd8fb5f
RD
3785
3786if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3787 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3788fi
3789
8284b0c5
MB
3790
3791
3792
5005acfe 3793 enablestring=
e6cc62c6
VS
3794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3795echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3796 no_cache=0
3797 # Check whether --enable-intl or --disable-intl was given.
3798if test "${enable_intl+set}" = set; then
3799 enableval="$enable_intl"
e6cc62c6 3800
10f2d63a
VZ
3801 if test "$enableval" = yes; then
3802 ac_cv_use_intl='wxUSE_INTL=yes'
3803 else
3804 ac_cv_use_intl='wxUSE_INTL=no'
3805 fi
e6cc62c6 3806
10f2d63a 3807else
e6cc62c6 3808
10f2d63a
VZ
3809 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3810 if test "x$LINE" != x ; then
3811 eval "DEFAULT_$LINE"
3812 else
3813 no_cache=1
3814 fi
3815
3816 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3817
e6cc62c6 3818fi;
10f2d63a
VZ
3819
3820 eval "$ac_cv_use_intl"
3821 if test "$no_cache" != 1; then
3822 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3823 fi
3824
3825 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3826 echo "$as_me:$LINENO: result: yes" >&5
3827echo "${ECHO_T}yes" >&6
10f2d63a 3828 else
e6cc62c6
VS
3829 echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
10f2d63a 3831 fi
e6cc62c6 3832
10f2d63a 3833
5005acfe 3834 enablestring=
e6cc62c6
VS
3835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3836echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3837 no_cache=0
3838 # Check whether --enable-config or --disable-config was given.
3839if test "${enable_config+set}" = set; then
3840 enableval="$enable_config"
e6cc62c6 3841
10f2d63a
VZ
3842 if test "$enableval" = yes; then
3843 ac_cv_use_config='wxUSE_CONFIG=yes'
3844 else
3845 ac_cv_use_config='wxUSE_CONFIG=no'
3846 fi
e6cc62c6 3847
10f2d63a 3848else
e6cc62c6 3849
10f2d63a
VZ
3850 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3851 if test "x$LINE" != x ; then
3852 eval "DEFAULT_$LINE"
3853 else
3854 no_cache=1
3855 fi
3856
3857 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3858
e6cc62c6 3859fi;
10f2d63a
VZ
3860
3861 eval "$ac_cv_use_config"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3867 echo "$as_me:$LINENO: result: yes" >&5
3868echo "${ECHO_T}yes" >&6
10f2d63a 3869 else
e6cc62c6
VS
3870 echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6
10f2d63a 3872 fi
e6cc62c6 3873
52127426 3874
8284b0c5 3875
5005acfe 3876 enablestring=
e6cc62c6
VS
3877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3878echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3879 no_cache=0
3880 # Check whether --enable-protocols or --disable-protocols was given.
3881if test "${enable_protocols+set}" = set; then
3882 enableval="$enable_protocols"
e6cc62c6 3883
a1622950
VZ
3884 if test "$enableval" = yes; then
3885 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3886 else
3887 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3888 fi
e6cc62c6 3889
a1622950 3890else
e6cc62c6 3891
a1622950
VZ
3892 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3893 if test "x$LINE" != x ; then
3894 eval "DEFAULT_$LINE"
3895 else
3896 no_cache=1
3897 fi
3898
3899 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3900
e6cc62c6 3901fi;
a1622950
VZ
3902
3903 eval "$ac_cv_use_protocols"
3904 if test "$no_cache" != 1; then
3905 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3906 fi
3907
3908 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3909 echo "$as_me:$LINENO: result: yes" >&5
3910echo "${ECHO_T}yes" >&6
a1622950 3911 else
e6cc62c6
VS
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
a1622950 3914 fi
e6cc62c6 3915
a1622950 3916
5005acfe 3917 enablestring=
e6cc62c6
VS
3918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3919echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3920 no_cache=0
3921 # Check whether --enable-ftp or --disable-ftp was given.
3922if test "${enable_ftp+set}" = set; then
3923 enableval="$enable_ftp"
e6cc62c6 3924
a1622950
VZ
3925 if test "$enableval" = yes; then
3926 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3927 else
3928 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3929 fi
e6cc62c6 3930
a1622950 3931else
e6cc62c6 3932
a1622950
VZ
3933 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3941
e6cc62c6 3942fi;
a1622950
VZ
3943
3944 eval "$ac_cv_use_ftp"
3945 if test "$no_cache" != 1; then
3946 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3947 fi
3948
3949 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3950 echo "$as_me:$LINENO: result: yes" >&5
3951echo "${ECHO_T}yes" >&6
a1622950 3952 else
e6cc62c6
VS
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
a1622950 3955 fi
e6cc62c6 3956
a1622950 3957
5005acfe 3958 enablestring=
e6cc62c6
VS
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3961 no_cache=0
3962 # Check whether --enable-http or --disable-http was given.
3963if test "${enable_http+set}" = set; then
3964 enableval="$enable_http"
e6cc62c6 3965
a1622950
VZ
3966 if test "$enableval" = yes; then
3967 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3968 else
3969 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3970 fi
e6cc62c6 3971
a1622950 3972else
e6cc62c6 3973
a1622950
VZ
3974 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3982
e6cc62c6 3983fi;
a1622950
VZ
3984
3985 eval "$ac_cv_use_http"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
a1622950 3993 else
e6cc62c6
VS
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
a1622950 3996 fi
e6cc62c6 3997
a1622950 3998
5005acfe 3999 enablestring=
e6cc62c6
VS
4000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4001echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4002 no_cache=0
4003 # Check whether --enable-fileproto or --disable-fileproto was given.
4004if test "${enable_fileproto+set}" = set; then
4005 enableval="$enable_fileproto"
e6cc62c6 4006
a1622950
VZ
4007 if test "$enableval" = yes; then
4008 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4009 else
4010 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4011 fi
e6cc62c6 4012
a1622950 4013else
e6cc62c6 4014
a1622950
VZ
4015 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4023
e6cc62c6 4024fi;
a1622950
VZ
4025
4026 eval "$ac_cv_use_fileproto"
4027 if test "$no_cache" != 1; then
4028 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4029 fi
4030
4031 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4032 echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6
a1622950 4034 else
e6cc62c6
VS
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
a1622950 4037 fi
e6cc62c6 4038
a1622950 4039
5005acfe 4040 enablestring=
e6cc62c6
VS
4041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4042echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4043 no_cache=0
4044 # Check whether --enable-sockets or --disable-sockets was given.
4045if test "${enable_sockets+set}" = set; then
4046 enableval="$enable_sockets"
e6cc62c6 4047
10f2d63a
VZ
4048 if test "$enableval" = yes; then
4049 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4050 else
4051 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4052 fi
e6cc62c6 4053
10f2d63a 4054else
e6cc62c6 4055
10f2d63a
VZ
4056 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4057 if test "x$LINE" != x ; then
4058 eval "DEFAULT_$LINE"
4059 else
4060 no_cache=1
4061 fi
4062
4063 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4064
e6cc62c6 4065fi;
10f2d63a
VZ
4066
4067 eval "$ac_cv_use_sockets"
4068 if test "$no_cache" != 1; then
4069 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4070 fi
4071
4072 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4073 echo "$as_me:$LINENO: result: yes" >&5
4074echo "${ECHO_T}yes" >&6
10f2d63a 4075 else
e6cc62c6
VS
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
10f2d63a 4078 fi
e6cc62c6 4079
8284b0c5 4080
5005acfe 4081 enablestring=
e6cc62c6
VS
4082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4083echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4084 no_cache=0
4085 # Check whether --enable-ole or --disable-ole was given.
4086if test "${enable_ole+set}" = set; then
4087 enableval="$enable_ole"
e6cc62c6 4088
3bce6687
JS
4089 if test "$enableval" = yes; then
4090 ac_cv_use_ole='wxUSE_OLE=yes'
4091 else
4092 ac_cv_use_ole='wxUSE_OLE=no'
4093 fi
e6cc62c6 4094
3bce6687 4095else
e6cc62c6 4096
3bce6687
JS
4097 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4105
e6cc62c6 4106fi;
3bce6687
JS
4107
4108 eval "$ac_cv_use_ole"
4109 if test "$no_cache" != 1; then
4110 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4111 fi
4112
4113 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4114 echo "$as_me:$LINENO: result: yes" >&5
4115echo "${ECHO_T}yes" >&6
3bce6687 4116 else
e6cc62c6
VS
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
3bce6687 4119 fi
e6cc62c6 4120
3bce6687 4121
5005acfe 4122 enablestring=
e6cc62c6
VS
4123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4124echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4125 no_cache=0
4126 # Check whether --enable-dataobj or --disable-dataobj was given.
4127if test "${enable_dataobj+set}" = set; then
4128 enableval="$enable_dataobj"
e6cc62c6 4129
3bce6687
JS
4130 if test "$enableval" = yes; then
4131 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4132 else
4133 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4134 fi
e6cc62c6 4135
3bce6687 4136else
e6cc62c6 4137
3bce6687
JS
4138 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4139 if test "x$LINE" != x ; then
4140 eval "DEFAULT_$LINE"
4141 else
4142 no_cache=1
4143 fi
4144
4145 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4146
e6cc62c6 4147fi;
3bce6687
JS
4148
4149 eval "$ac_cv_use_dataobj"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4155 echo "$as_me:$LINENO: result: yes" >&5
4156echo "${ECHO_T}yes" >&6
3bce6687 4157 else
e6cc62c6
VS
4158 echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6
3bce6687 4160 fi
e6cc62c6 4161
3bce6687 4162
52127426 4163
5005acfe 4164 enablestring=
e6cc62c6
VS
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4167 no_cache=0
eb4efbdc
VZ
4168 # Check whether --enable-ipc or --disable-ipc was given.
4169if test "${enable_ipc+set}" = set; then
4170 enableval="$enable_ipc"
e6cc62c6 4171
10f2d63a 4172 if test "$enableval" = yes; then
eb4efbdc 4173 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4174 else
eb4efbdc 4175 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4176 fi
e6cc62c6 4177
10f2d63a 4178else
e6cc62c6 4179
eb4efbdc 4180 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
eb4efbdc 4187 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4188
e6cc62c6 4189fi;
10f2d63a 4190
eb4efbdc 4191 eval "$ac_cv_use_ipc"
10f2d63a 4192 if test "$no_cache" != 1; then
eb4efbdc 4193 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4194 fi
4195
eb4efbdc 4196 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
10f2d63a 4199 else
e6cc62c6
VS
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
10f2d63a 4202 fi
e6cc62c6 4203
52127426 4204
8284b0c5 4205
5005acfe 4206 enablestring=
e46d2a18
VS
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4209 no_cache=0
e46d2a18
VS
4210 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4211if test "${enable_apple_ieee+set}" = set; then
4212 enableval="$enable_apple_ieee"
e6cc62c6 4213
10f2d63a 4214 if test "$enableval" = yes; then
e46d2a18 4215 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4216 else
e46d2a18 4217 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4218 fi
e6cc62c6 4219
10f2d63a 4220else
e6cc62c6 4221
e46d2a18 4222 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
e46d2a18 4229 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4230
e6cc62c6 4231fi;
10f2d63a 4232
e46d2a18 4233 eval "$ac_cv_use_apple_ieee"
10f2d63a 4234 if test "$no_cache" != 1; then
e46d2a18 4235 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4236 fi
4237
e46d2a18 4238 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
10f2d63a 4241 else
e6cc62c6
VS
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
10f2d63a 4244 fi
e6cc62c6 4245
10f2d63a 4246
5005acfe 4247 enablestring=
e46d2a18
VS
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4250 no_cache=0
e46d2a18
VS
4251 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4252if test "${enable_catch_segvs+set}" = set; then
4253 enableval="$enable_catch_segvs"
e6cc62c6 4254
10f2d63a 4255 if test "$enableval" = yes; then
e46d2a18 4256 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4257 else
e46d2a18 4258 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4259 fi
e6cc62c6 4260
10f2d63a 4261else
e6cc62c6 4262
e46d2a18 4263 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
e46d2a18 4270 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4271
e6cc62c6 4272fi;
10f2d63a 4273
e46d2a18 4274 eval "$ac_cv_use_catch_segvs"
10f2d63a 4275 if test "$no_cache" != 1; then
e46d2a18 4276 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4277 fi
4278
e46d2a18 4279 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
10f2d63a 4282 else
e6cc62c6
VS
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
10f2d63a 4285 fi
e6cc62c6 4286
10f2d63a 4287
5005acfe 4288 enablestring=
e46d2a18
VS
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4291 no_cache=0
e46d2a18
VS
4292 # Check whether --enable-cmdline or --disable-cmdline was given.
4293if test "${enable_cmdline+set}" = set; then
4294 enableval="$enable_cmdline"
e6cc62c6 4295
10f2d63a 4296 if test "$enableval" = yes; then
e46d2a18 4297 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4298 else
e46d2a18 4299 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4300 fi
e6cc62c6 4301
10f2d63a 4302else
e6cc62c6 4303
e46d2a18 4304 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
e46d2a18 4311 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4312
e6cc62c6 4313fi;
10f2d63a 4314
e46d2a18 4315 eval "$ac_cv_use_cmdline"
10f2d63a 4316 if test "$no_cache" != 1; then
e46d2a18 4317 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4318 fi
4319
e46d2a18 4320 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
10f2d63a 4323 else
e6cc62c6
VS
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
10f2d63a 4326 fi
e6cc62c6 4327
10f2d63a 4328
5005acfe 4329 enablestring=
e46d2a18
VS
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4332 no_cache=0
e46d2a18
VS
4333 # Check whether --enable-datetime or --disable-datetime was given.
4334if test "${enable_datetime+set}" = set; then
4335 enableval="$enable_datetime"
e6cc62c6 4336
10f2d63a 4337 if test "$enableval" = yes; then
e46d2a18 4338 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4339 else
e46d2a18 4340 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4341 fi
e6cc62c6 4342
10f2d63a 4343else
e6cc62c6 4344
e46d2a18 4345 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
e46d2a18 4352 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4353
e6cc62c6 4354fi;
10f2d63a 4355
e46d2a18 4356 eval "$ac_cv_use_datetime"
10f2d63a 4357 if test "$no_cache" != 1; then
e46d2a18 4358 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4359 fi
4360
e46d2a18 4361 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
10f2d63a 4364 else
e6cc62c6
VS
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
10f2d63a 4367 fi
e6cc62c6 4368
10f2d63a 4369
5005acfe 4370 enablestring=
e46d2a18
VS
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4373 no_cache=0
e46d2a18
VS
4374 # Check whether --enable-dialupman or --disable-dialupman was given.
4375if test "${enable_dialupman+set}" = set; then
4376 enableval="$enable_dialupman"
e6cc62c6 4377
10f2d63a 4378 if test "$enableval" = yes; then
e46d2a18 4379 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4380 else
e46d2a18 4381 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4382 fi
e6cc62c6 4383
10f2d63a 4384else
e6cc62c6 4385
e46d2a18 4386 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
e46d2a18 4393 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4394
e6cc62c6 4395fi;
10f2d63a 4396
e46d2a18 4397 eval "$ac_cv_use_dialupman"
10f2d63a 4398 if test "$no_cache" != 1; then
e46d2a18 4399 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4400 fi
4401
e46d2a18 4402 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
10f2d63a 4405 else
e6cc62c6
VS
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
10f2d63a 4408 fi
e6cc62c6 4409
10f2d63a 4410
5005acfe 4411 enablestring=
e6cc62c6
VS
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4414 no_cache=0
4415 # Check whether --enable-dynlib or --disable-dynlib was given.
4416if test "${enable_dynlib+set}" = set; then
4417 enableval="$enable_dynlib"
e6cc62c6 4418
10f2d63a
VZ
4419 if test "$enableval" = yes; then
4420 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4421 else
4422 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4423 fi
e6cc62c6 4424
10f2d63a 4425else
e6cc62c6 4426
10f2d63a
VZ
4427 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4435
e6cc62c6 4436fi;
10f2d63a
VZ
4437
4438 eval "$ac_cv_use_dynlib"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
10f2d63a 4446 else
e6cc62c6
VS
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
10f2d63a 4449 fi
e6cc62c6 4450
10f2d63a 4451
5005acfe 4452 enablestring=
e6cc62c6
VS
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4455 no_cache=0
4456 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4457if test "${enable_dynamicloader+set}" = set; then
4458 enableval="$enable_dynamicloader"
e6cc62c6 4459
0b9ab0bd
RL
4460 if test "$enableval" = yes; then
4461 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4462 else
4463 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4464 fi
e6cc62c6 4465
0b9ab0bd 4466else
e6cc62c6 4467
0b9ab0bd
RL
4468 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4476
e6cc62c6 4477fi;
0b9ab0bd
RL
4478
4479 eval "$ac_cv_use_dynamicloader"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
0b9ab0bd 4487 else
e6cc62c6
VS
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
0b9ab0bd 4490 fi
e6cc62c6 4491
0b9ab0bd 4492
5005acfe 4493 enablestring=
e46d2a18
VS
4494 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4495echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4496 no_cache=0
e46d2a18
VS
4497 # Check whether --enable-exceptions or --disable-exceptions was given.
4498if test "${enable_exceptions+set}" = set; then
4499 enableval="$enable_exceptions"
e6cc62c6 4500
10f2d63a 4501 if test "$enableval" = yes; then
e46d2a18 4502 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4503 else
e46d2a18 4504 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4505 fi
e6cc62c6 4506
10f2d63a 4507else
e6cc62c6 4508
e46d2a18 4509 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4510 if test "x$LINE" != x ; then
4511 eval "DEFAULT_$LINE"
4512 else
4513 no_cache=1
4514 fi
4515
e46d2a18 4516 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4517
e6cc62c6 4518fi;
10f2d63a 4519
e46d2a18 4520 eval "$ac_cv_use_exceptions"
10f2d63a 4521 if test "$no_cache" != 1; then
e46d2a18 4522 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4523 fi
4524
e46d2a18 4525 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4526 echo "$as_me:$LINENO: result: yes" >&5
4527echo "${ECHO_T}yes" >&6
10f2d63a 4528 else
e6cc62c6
VS
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
10f2d63a 4531 fi
e6cc62c6 4532
10f2d63a 4533
5005acfe 4534 enablestring=
e46d2a18
VS
4535 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4536echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4537 no_cache=0
e46d2a18
VS
4538 # Check whether --enable-ffile or --disable-ffile was given.
4539if test "${enable_ffile+set}" = set; then
4540 enableval="$enable_ffile"
e6cc62c6 4541
e8f65ba6 4542 if test "$enableval" = yes; then
e46d2a18 4543 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4544 else
e46d2a18 4545 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4546 fi
e6cc62c6 4547
e8f65ba6 4548else
e6cc62c6 4549
e46d2a18 4550 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
e46d2a18 4557 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4558
e6cc62c6 4559fi;
e8f65ba6 4560
e46d2a18 4561 eval "$ac_cv_use_ffile"
e8f65ba6 4562 if test "$no_cache" != 1; then
e46d2a18 4563 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4564 fi
4565
e46d2a18 4566 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4567 echo "$as_me:$LINENO: result: yes" >&5
4568echo "${ECHO_T}yes" >&6
e8f65ba6 4569 else
e6cc62c6
VS
4570 echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
e8f65ba6 4572 fi
e6cc62c6 4573
e8f65ba6 4574
5005acfe 4575 enablestring=
e46d2a18
VS
4576 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4577echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4578 no_cache=0
e46d2a18
VS
4579 # Check whether --enable-file or --disable-file was given.
4580if test "${enable_file+set}" = set; then
4581 enableval="$enable_file"
e6cc62c6 4582
10f2d63a 4583 if test "$enableval" = yes; then
e46d2a18 4584 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4585 else
e46d2a18 4586 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4587 fi
e6cc62c6 4588
10f2d63a 4589else
e6cc62c6 4590
e46d2a18 4591 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
e46d2a18 4598 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4599
e6cc62c6 4600fi;
10f2d63a 4601
e46d2a18 4602 eval "$ac_cv_use_file"
10f2d63a 4603 if test "$no_cache" != 1; then
e46d2a18 4604 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4605 fi
4606
e46d2a18 4607 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4608 echo "$as_me:$LINENO: result: yes" >&5
4609echo "${ECHO_T}yes" >&6
10f2d63a 4610 else
e6cc62c6
VS
4611 echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
10f2d63a 4613 fi
e6cc62c6 4614
10f2d63a 4615
5005acfe 4616 enablestring=
e46d2a18
VS
4617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4618echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4619 no_cache=0
e46d2a18
VS
4620 # Check whether --enable-filesystem or --disable-filesystem was given.
4621if test "${enable_filesystem+set}" = set; then
4622 enableval="$enable_filesystem"
e6cc62c6 4623
10f2d63a 4624 if test "$enableval" = yes; then
e46d2a18 4625 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4626 else
e46d2a18 4627 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4628 fi
e6cc62c6 4629
10f2d63a 4630else
e6cc62c6 4631
e46d2a18 4632 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
e46d2a18 4639 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4640
e6cc62c6 4641fi;
10f2d63a 4642
e46d2a18 4643 eval "$ac_cv_use_filesystem"
10f2d63a 4644 if test "$no_cache" != 1; then
e46d2a18 4645 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4646 fi
4647
e46d2a18 4648 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
10f2d63a 4651 else
e6cc62c6
VS
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
10f2d63a 4654 fi
e6cc62c6 4655
10f2d63a 4656
5005acfe 4657 enablestring=
e46d2a18
VS
4658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4659echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4660 no_cache=0
e46d2a18
VS
4661 # Check whether --enable-fontmap or --disable-fontmap was given.
4662if test "${enable_fontmap+set}" = set; then
4663 enableval="$enable_fontmap"
e6cc62c6 4664
10f2d63a 4665 if test "$enableval" = yes; then
e46d2a18 4666 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4667 else
e46d2a18 4668 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4669 fi
e6cc62c6 4670
10f2d63a 4671else
e6cc62c6 4672
e46d2a18 4673 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
e46d2a18 4680 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4681
e6cc62c6 4682fi;
10f2d63a 4683
e46d2a18 4684 eval "$ac_cv_use_fontmap"
10f2d63a 4685 if test "$no_cache" != 1; then
e46d2a18 4686 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4687 fi
4688
e46d2a18 4689 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4690 echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6
10f2d63a 4692 else
e6cc62c6
VS
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
10f2d63a 4695 fi
e6cc62c6 4696
10f2d63a 4697
5005acfe 4698 enablestring=
e46d2a18
VS
4699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4700echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4701 no_cache=0
e46d2a18
VS
4702 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4703if test "${enable_fs_inet+set}" = set; then
4704 enableval="$enable_fs_inet"
e6cc62c6 4705
10f2d63a 4706 if test "$enableval" = yes; then
e46d2a18 4707 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4708 else
e46d2a18 4709 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4710 fi
e6cc62c6 4711
10f2d63a 4712else
e6cc62c6 4713
e46d2a18 4714 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
e46d2a18 4721 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4722
e6cc62c6 4723fi;
10f2d63a 4724
e46d2a18 4725 eval "$ac_cv_use_fs_inet"
10f2d63a 4726 if test "$no_cache" != 1; then
e46d2a18 4727 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4728 fi
4729
e46d2a18 4730 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
10f2d63a 4733 else
e6cc62c6
VS
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
10f2d63a 4736 fi
e6cc62c6 4737
10f2d63a 4738
5005acfe 4739 enablestring=
e46d2a18
VS
4740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4741echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4742 no_cache=0
e46d2a18
VS
4743 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4744if test "${enable_fs_zip+set}" = set; then
4745 enableval="$enable_fs_zip"
e6cc62c6 4746
a3a584a7 4747 if test "$enableval" = yes; then
e46d2a18 4748 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4749 else
e46d2a18 4750 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4751 fi
e6cc62c6 4752
a3a584a7 4753else
e6cc62c6 4754
e46d2a18 4755 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
e46d2a18 4762 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4763
e6cc62c6 4764fi;
a3a584a7 4765
e46d2a18 4766 eval "$ac_cv_use_fs_zip"
a3a584a7 4767 if test "$no_cache" != 1; then
e46d2a18 4768 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4769 fi
4770
e46d2a18 4771 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
a3a584a7 4774 else
e6cc62c6
VS
4775 echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
a3a584a7 4777 fi
e6cc62c6 4778
a3a584a7 4779
5005acfe 4780 enablestring=
e46d2a18
VS
4781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4782echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4783 no_cache=0
e46d2a18
VS
4784 # Check whether --enable-geometry or --disable-geometry was given.
4785if test "${enable_geometry+set}" = set; then
4786 enableval="$enable_geometry"
e6cc62c6 4787
10f2d63a 4788 if test "$enableval" = yes; then
e46d2a18 4789 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4790 else
e46d2a18 4791 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4792 fi
e6cc62c6 4793
10f2d63a 4794else
e6cc62c6 4795
e46d2a18 4796 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
e46d2a18 4803 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4804
e6cc62c6 4805fi;
10f2d63a 4806
e46d2a18 4807 eval "$ac_cv_use_geometry"
10f2d63a 4808 if test "$no_cache" != 1; then
e46d2a18 4809 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4810 fi
4811
e46d2a18 4812 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
10f2d63a 4815 else
e6cc62c6
VS
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
10f2d63a 4818 fi
e6cc62c6 4819
10f2d63a 4820
5005acfe 4821 enablestring=
e46d2a18
VS
4822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4823echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4824 no_cache=0
e46d2a18
VS
4825 # Check whether --enable-log or --disable-log was given.
4826if test "${enable_log+set}" = set; then
4827 enableval="$enable_log"
e6cc62c6 4828
10f2d63a 4829 if test "$enableval" = yes; then
e46d2a18 4830 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4831 else
e46d2a18 4832 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4833 fi
e6cc62c6 4834
10f2d63a 4835else
e6cc62c6 4836
e46d2a18 4837 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
e46d2a18 4844 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4845
e6cc62c6 4846fi;
10f2d63a 4847
e46d2a18 4848 eval "$ac_cv_use_log"
10f2d63a 4849 if test "$no_cache" != 1; then
e46d2a18 4850 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4851 fi
4852
e46d2a18 4853 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4854 echo "$as_me:$LINENO: result: yes" >&5
4855echo "${ECHO_T}yes" >&6
10f2d63a 4856 else
e6cc62c6
VS
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
10f2d63a 4859 fi
e6cc62c6 4860
10f2d63a 4861
5005acfe 4862 enablestring=
e46d2a18
VS
4863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4864echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 4865 no_cache=0
e46d2a18
VS
4866 # Check whether --enable-longlong or --disable-longlong was given.
4867if test "${enable_longlong+set}" = set; then
4868 enableval="$enable_longlong"
e6cc62c6 4869
1e6feb95 4870 if test "$enableval" = yes; then
e46d2a18 4871 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 4872 else
e46d2a18 4873 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 4874 fi
e6cc62c6 4875
1e6feb95 4876else
e6cc62c6 4877
e46d2a18 4878 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
e46d2a18 4885 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 4886
e6cc62c6 4887fi;
1e6feb95 4888
e46d2a18 4889 eval "$ac_cv_use_longlong"
1e6feb95 4890 if test "$no_cache" != 1; then
e46d2a18 4891 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
4892 fi
4893
e46d2a18
VS
4894 if test "$wxUSE_LONGLONG" = yes; then
4895 echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900 fi
4901
4902
4903 enablestring=
4904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
4905echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
4906 no_cache=0
4907 # Check whether --enable-mimetype or --disable-mimetype was given.
4908if test "${enable_mimetype+set}" = set; then
4909 enableval="$enable_mimetype"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4913 else
4914 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4915 fi
4916
4917else
4918
4919 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4927
4928fi;
4929
4930 eval "$ac_cv_use_mimetype"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
4936 echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
1e6feb95 4938 else
e6cc62c6
VS
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
1e6feb95 4941 fi
e6cc62c6 4942
1e6feb95 4943
5005acfe 4944 enablestring=
e6cc62c6
VS
4945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4946echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
4947 no_cache=0
4948 # Check whether --enable-mslu or --disable-mslu was given.
4949if test "${enable_mslu+set}" = set; then
4950 enableval="$enable_mslu"
e6cc62c6 4951
a72a4bfa
VS
4952 if test "$enableval" = yes; then
4953 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4954 else
4955 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4956 fi
e6cc62c6 4957
a72a4bfa 4958else
e6cc62c6 4959
a72a4bfa
VS
4960 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 4968
e6cc62c6 4969fi;
a72a4bfa
VS
4970
4971 eval "$ac_cv_use_mslu"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
4977 echo "$as_me:$LINENO: result: yes" >&5
4978echo "${ECHO_T}yes" >&6
a72a4bfa 4979 else
e6cc62c6
VS
4980 echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
a72a4bfa 4982 fi
e6cc62c6 4983
a72a4bfa 4984
5005acfe 4985 enablestring=
e46d2a18
VS
4986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
4987echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 4988 no_cache=0
e46d2a18
VS
4989 # Check whether --enable-snglinst or --disable-snglinst was given.
4990if test "${enable_snglinst+set}" = set; then
4991 enableval="$enable_snglinst"
e6cc62c6 4992
1e6feb95 4993 if test "$enableval" = yes; then
e46d2a18 4994 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 4995 else
e46d2a18 4996 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 4997 fi
e6cc62c6 4998
10f2d63a 4999else
e6cc62c6 5000
e46d2a18 5001 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5002 if test "x$LINE" != x ; then
5003 eval "DEFAULT_$LINE"
5004 else
5005 no_cache=1
5006 fi
5007
e46d2a18 5008 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5009
e6cc62c6 5010fi;
10f2d63a 5011
e46d2a18 5012 eval "$ac_cv_use_snglinst"
10f2d63a 5013 if test "$no_cache" != 1; then
e46d2a18 5014 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5015 fi
5016
e46d2a18
VS
5017 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5018 echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023 fi
5024
5025
5026 enablestring=
5027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5028echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5029 no_cache=0
5030 # Check whether --enable-streams or --disable-streams was given.
5031if test "${enable_streams+set}" = set; then
5032 enableval="$enable_streams"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_streams='wxUSE_STREAMS=yes'
5036 else
5037 ac_cv_use_streams='wxUSE_STREAMS=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5050
5051fi;
5052
5053 eval "$ac_cv_use_streams"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5059 echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
10f2d63a 5061 else
e6cc62c6
VS
5062 echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
10f2d63a 5064 fi
e6cc62c6 5065
10f2d63a 5066
5005acfe 5067 enablestring=
e6cc62c6
VS
5068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5069echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5070 no_cache=0
5071 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5072if test "${enable_std_iostreams+set}" = set; then
5073 enableval="$enable_std_iostreams"
e6cc62c6 5074
10f2d63a
VZ
5075 if test "$enableval" = yes; then
5076 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5077 else
5078 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5079 fi
e6cc62c6 5080
10f2d63a 5081else
e6cc62c6 5082
10f2d63a
VZ
5083 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5091
e6cc62c6 5092fi;
10f2d63a
VZ
5093
5094 eval "$ac_cv_use_std_iostreams"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5100 echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
10f2d63a 5102 else
e6cc62c6
VS
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
10f2d63a 5105 fi
e6cc62c6 5106
10f2d63a 5107
5005acfe 5108 enablestring=
e46d2a18
VS
5109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5110echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5111 no_cache=0
e46d2a18
VS
5112 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5113if test "${enable_stopwatch+set}" = set; then
5114 enableval="$enable_stopwatch"
e6cc62c6 5115
24528b0c 5116 if test "$enableval" = yes; then
e46d2a18 5117 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5118 else
e46d2a18 5119 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5120 fi
e6cc62c6 5121
24528b0c 5122else
e6cc62c6 5123
e46d2a18 5124 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
e46d2a18 5131 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5132
e6cc62c6 5133fi;
24528b0c 5134
e46d2a18 5135 eval "$ac_cv_use_stopwatch"
24528b0c 5136 if test "$no_cache" != 1; then
e46d2a18 5137 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5138 fi
5139
e46d2a18 5140 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5141 echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
24528b0c 5143 else
e6cc62c6
VS
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
24528b0c 5146 fi
e6cc62c6 5147
24528b0c 5148
5005acfe 5149 enablestring=
e46d2a18
VS
5150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5151echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5152 no_cache=0
e46d2a18
VS
5153 # Check whether --enable-system_options or --disable-system_options was given.
5154if test "${enable_system_options+set}" = set; then
5155 enableval="$enable_system_options"
e6cc62c6 5156
10f2d63a 5157 if test "$enableval" = yes; then
e46d2a18 5158 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5159 else
e46d2a18 5160 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5161 fi
e6cc62c6 5162
10f2d63a 5163else
e6cc62c6 5164
e46d2a18 5165 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5166 if test "x$LINE" != x ; then
5167 eval "DEFAULT_$LINE"
5168 else
5169 no_cache=1
5170 fi
5171
e46d2a18 5172 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5173
e6cc62c6 5174fi;
10f2d63a 5175
e46d2a18 5176 eval "$ac_cv_use_system_options"
10f2d63a 5177 if test "$no_cache" != 1; then
e46d2a18 5178 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5179 fi
5180
e46d2a18 5181 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5182 echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
10f2d63a 5184 else
e6cc62c6
VS
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
10f2d63a 5187 fi
e6cc62c6 5188
10f2d63a 5189
5005acfe 5190 enablestring=
e46d2a18
VS
5191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5192echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5193 no_cache=0
e46d2a18
VS
5194 # Check whether --enable-textbuf or --disable-textbuf was given.
5195if test "${enable_textbuf+set}" = set; then
5196 enableval="$enable_textbuf"
e6cc62c6 5197
10f2d63a 5198 if test "$enableval" = yes; then
e46d2a18 5199 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5200 else
e46d2a18 5201 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5202 fi
e6cc62c6 5203
10f2d63a 5204else
e6cc62c6 5205
e46d2a18 5206 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
e46d2a18 5213 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5214
e6cc62c6 5215fi;
10f2d63a 5216
e46d2a18 5217 eval "$ac_cv_use_textbuf"
10f2d63a 5218 if test "$no_cache" != 1; then
e46d2a18 5219 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5220 fi
5221
e46d2a18 5222 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5223 echo "$as_me:$LINENO: result: yes" >&5
5224echo "${ECHO_T}yes" >&6
10f2d63a 5225 else
e6cc62c6
VS
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
10f2d63a 5228 fi
e6cc62c6 5229
10f2d63a 5230
5005acfe 5231 enablestring=
e46d2a18
VS
5232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5233echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5234 no_cache=0
e46d2a18
VS
5235 # Check whether --enable-textfile or --disable-textfile was given.
5236if test "${enable_textfile+set}" = set; then
5237 enableval="$enable_textfile"
e6cc62c6 5238
10f2d63a 5239 if test "$enableval" = yes; then
e46d2a18 5240 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5241 else
e46d2a18 5242 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5243 fi
e6cc62c6 5244
10f2d63a 5245else
e6cc62c6 5246
e46d2a18 5247 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5248 if test "x$LINE" != x ; then
5249 eval "DEFAULT_$LINE"
5250 else
5251 no_cache=1
5252 fi
5253
e46d2a18 5254 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5255
e6cc62c6 5256fi;
10f2d63a 5257
e46d2a18 5258 eval "$ac_cv_use_textfile"
10f2d63a 5259 if test "$no_cache" != 1; then
e46d2a18 5260 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5261 fi
5262
e46d2a18 5263 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5264 echo "$as_me:$LINENO: result: yes" >&5
5265echo "${ECHO_T}yes" >&6
10f2d63a 5266 else
e6cc62c6
VS
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
10f2d63a 5269 fi
e6cc62c6 5270
8284b0c5 5271
5005acfe 5272 enablestring=
e46d2a18
VS
5273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5274echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5275 no_cache=0
e46d2a18
VS
5276 # Check whether --enable-timer or --disable-timer was given.
5277if test "${enable_timer+set}" = set; then
5278 enableval="$enable_timer"
e6cc62c6 5279
eb4efbdc 5280 if test "$enableval" = yes; then
e46d2a18 5281 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5282 else
e46d2a18 5283 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5284 fi
e6cc62c6 5285
eb4efbdc 5286else
e6cc62c6 5287
e46d2a18 5288 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
e46d2a18 5295 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5296
e6cc62c6 5297fi;
eb4efbdc 5298
e46d2a18 5299 eval "$ac_cv_use_timer"
eb4efbdc 5300 if test "$no_cache" != 1; then
e46d2a18 5301 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5302 fi
5303
e46d2a18 5304 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
eb4efbdc 5307 else
e6cc62c6
VS
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
eb4efbdc 5310 fi
e6cc62c6 5311
eb4efbdc 5312
5005acfe 5313 enablestring=
e46d2a18
VS
5314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5315echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5316 no_cache=0
e46d2a18
VS
5317 # Check whether --enable-unicode or --disable-unicode was given.
5318if test "${enable_unicode+set}" = set; then
5319 enableval="$enable_unicode"
e6cc62c6 5320
4f3c5f06 5321 if test "$enableval" = yes; then
e46d2a18 5322 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5323 else
e46d2a18 5324 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5325 fi
e6cc62c6 5326
4f3c5f06 5327else
e6cc62c6 5328
e46d2a18 5329 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
e46d2a18 5336 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5337
e6cc62c6 5338fi;
4f3c5f06 5339
e46d2a18 5340 eval "$ac_cv_use_unicode"
4f3c5f06 5341 if test "$no_cache" != 1; then
e46d2a18 5342 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5343 fi
5344
e46d2a18 5345 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
4f3c5f06 5348 else
e6cc62c6
VS
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
4f3c5f06 5351 fi
e6cc62c6 5352
52127426 5353
e46d2a18
VS
5354 enablestring=
5355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5356echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5357 no_cache=0
5358 # Check whether --enable-wave or --disable-wave was given.
5359if test "${enable_wave+set}" = set; then
5360 enableval="$enable_wave"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_wave='wxUSE_WAVE=yes'
5364 else
5365 ac_cv_use_wave='wxUSE_WAVE=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5378
5379fi;
5380
5381 eval "$ac_cv_use_wave"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_WAVE" = yes; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392 fi
5393
8284b0c5 5394
5005acfe 5395 enablestring=
e46d2a18
VS
5396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5397echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5398 no_cache=0
e46d2a18
VS
5399 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5400if test "${enable_wxprintfv+set}" = set; then
5401 enableval="$enable_wxprintfv"
e6cc62c6 5402
1e6feb95 5403 if test "$enableval" = yes; then
e46d2a18 5404 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5405 else
e46d2a18 5406 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5407 fi
e6cc62c6 5408
1e6feb95 5409else
e6cc62c6 5410
e46d2a18 5411 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
e46d2a18 5418 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5419
e6cc62c6 5420fi;
1e6feb95 5421
e46d2a18 5422 eval "$ac_cv_use_wxprintfv"
1e6feb95 5423 if test "$no_cache" != 1; then
e46d2a18 5424 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5425 fi
5426
e46d2a18 5427 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5428 echo "$as_me:$LINENO: result: yes" >&5
5429echo "${ECHO_T}yes" >&6
1e6feb95 5430 else
e6cc62c6
VS
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
1e6feb95 5433 fi
e6cc62c6 5434
1e6feb95 5435
5005acfe 5436 enablestring=
e46d2a18
VS
5437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5438echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5439 no_cache=0
e46d2a18
VS
5440 # Check whether --enable-zipstream or --disable-zipstream was given.
5441if test "${enable_zipstream+set}" = set; then
5442 enableval="$enable_zipstream"
e6cc62c6 5443
3e44f09d 5444 if test "$enableval" = yes; then
e46d2a18 5445 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5446 else
e46d2a18 5447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5448 fi
e6cc62c6 5449
3e44f09d 5450else
e6cc62c6 5451
e46d2a18 5452 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
e46d2a18 5459 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5460
e6cc62c6 5461fi;
3e44f09d 5462
e46d2a18 5463 eval "$ac_cv_use_zipstream"
3e44f09d 5464 if test "$no_cache" != 1; then
e46d2a18 5465 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5466 fi
5467
e46d2a18 5468 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5469 echo "$as_me:$LINENO: result: yes" >&5
5470echo "${ECHO_T}yes" >&6
3e44f09d 5471 else
e6cc62c6
VS
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
3e44f09d 5474 fi
e6cc62c6 5475
8284b0c5 5476
7015ef3a
VZ
5477 enablestring=
5478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5479echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5480 no_cache=0
5481 # Check whether --enable-gzstream or --disable-gzstream was given.
5482if test "${enable_gzstream+set}" = set; then
5483 enableval="$enable_gzstream"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5487 else
5488 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5489 fi
5490
5491else
5492
5493 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5501
5502fi;
5503
5504 eval "$ac_cv_use_gzstream"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_GZSTREAM" = yes; then
5510 echo "$as_me:$LINENO: result: yes" >&5
5511echo "${ECHO_T}yes" >&6
5512 else
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515 fi
5516
5517
52127426 5518
5005acfe 5519 enablestring=
e6cc62c6
VS
5520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5521echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5522 no_cache=0
5523 # Check whether --enable-url or --disable-url was given.
5524if test "${enable_url+set}" = set; then
5525 enableval="$enable_url"
e6cc62c6 5526
4cdb0ab0
VS
5527 if test "$enableval" = yes; then
5528 ac_cv_use_url='wxUSE_URL=yes'
5529 else
5530 ac_cv_use_url='wxUSE_URL=no'
5531 fi
e6cc62c6 5532
4cdb0ab0 5533else
e6cc62c6 5534
4cdb0ab0
VS
5535 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5536 if test "x$LINE" != x ; then
5537 eval "DEFAULT_$LINE"
5538 else
5539 no_cache=1
5540 fi
5541
5542 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5543
e6cc62c6 5544fi;
4cdb0ab0
VS
5545
5546 eval "$ac_cv_use_url"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5552 echo "$as_me:$LINENO: result: yes" >&5
5553echo "${ECHO_T}yes" >&6
4cdb0ab0 5554 else
e6cc62c6
VS
5555 echo "$as_me:$LINENO: result: no" >&5
5556echo "${ECHO_T}no" >&6
4cdb0ab0 5557 fi
e6cc62c6 5558
4cdb0ab0 5559
5005acfe 5560 enablestring=
e6cc62c6
VS
5561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5562echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5563 no_cache=0
5564 # Check whether --enable-protocol or --disable-protocol was given.
5565if test "${enable_protocol+set}" = set; then
5566 enableval="$enable_protocol"
e6cc62c6 5567
4cdb0ab0
VS
5568 if test "$enableval" = yes; then
5569 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5570 else
5571 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5572 fi
e6cc62c6 5573
4cdb0ab0 5574else
e6cc62c6 5575
4cdb0ab0
VS
5576 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5577 if test "x$LINE" != x ; then
5578 eval "DEFAULT_$LINE"
5579 else
5580 no_cache=1
5581 fi
5582
5583 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5584
e6cc62c6 5585fi;
4cdb0ab0
VS
5586
5587 eval "$ac_cv_use_protocol"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5593 echo "$as_me:$LINENO: result: yes" >&5
5594echo "${ECHO_T}yes" >&6
4cdb0ab0 5595 else
e6cc62c6
VS
5596 echo "$as_me:$LINENO: result: no" >&5
5597echo "${ECHO_T}no" >&6
4cdb0ab0 5598 fi
e6cc62c6 5599
4cdb0ab0 5600
5005acfe 5601 enablestring=
e6cc62c6
VS
5602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5603echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5604 no_cache=0
5605 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5606if test "${enable_protocol_http+set}" = set; then
5607 enableval="$enable_protocol_http"
e6cc62c6 5608
4cdb0ab0
VS
5609 if test "$enableval" = yes; then
5610 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5611 else
5612 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5613 fi
e6cc62c6 5614
4cdb0ab0 5615else
e6cc62c6 5616
4cdb0ab0
VS
5617 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5618 if test "x$LINE" != x ; then
5619 eval "DEFAULT_$LINE"
5620 else
5621 no_cache=1
5622 fi
5623
5624 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5625
e6cc62c6 5626fi;
4cdb0ab0
VS
5627
5628 eval "$ac_cv_use_protocol_http"
5629 if test "$no_cache" != 1; then
5630 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5631 fi
5632
5633 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5634 echo "$as_me:$LINENO: result: yes" >&5
5635echo "${ECHO_T}yes" >&6
4cdb0ab0 5636 else
e6cc62c6
VS
5637 echo "$as_me:$LINENO: result: no" >&5
5638echo "${ECHO_T}no" >&6
4cdb0ab0 5639 fi
e6cc62c6 5640
4cdb0ab0 5641
5005acfe 5642 enablestring=
e6cc62c6
VS
5643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5644echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5645 no_cache=0
5646 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5647if test "${enable_protocol_ftp+set}" = set; then
5648 enableval="$enable_protocol_ftp"
e6cc62c6 5649
4cdb0ab0
VS
5650 if test "$enableval" = yes; then
5651 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5652 else
5653 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5654 fi
e6cc62c6 5655
4cdb0ab0 5656else
e6cc62c6 5657
4cdb0ab0
VS
5658 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5659 if test "x$LINE" != x ; then
5660 eval "DEFAULT_$LINE"
5661 else
5662 no_cache=1
5663 fi
5664
5665 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5666
e6cc62c6 5667fi;
4cdb0ab0
VS
5668
5669 eval "$ac_cv_use_protocol_ftp"
5670 if test "$no_cache" != 1; then
5671 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5672 fi
5673
5674 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5675 echo "$as_me:$LINENO: result: yes" >&5
5676echo "${ECHO_T}yes" >&6
4cdb0ab0 5677 else
e6cc62c6
VS
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
4cdb0ab0 5680 fi
e6cc62c6 5681
4cdb0ab0 5682
5005acfe 5683 enablestring=
e6cc62c6
VS
5684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5685echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5686 no_cache=0
5687 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5688if test "${enable_protocol_file+set}" = set; then
5689 enableval="$enable_protocol_file"
e6cc62c6 5690
4cdb0ab0
VS
5691 if test "$enableval" = yes; then
5692 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5693 else
5694 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5695 fi
e6cc62c6 5696
4cdb0ab0 5697else
e6cc62c6 5698
4cdb0ab0
VS
5699 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5700 if test "x$LINE" != x ; then
5701 eval "DEFAULT_$LINE"
5702 else
5703 no_cache=1
5704 fi
5705
5706 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5707
e6cc62c6 5708fi;
4cdb0ab0
VS
5709
5710 eval "$ac_cv_use_protocol_file"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5716 echo "$as_me:$LINENO: result: yes" >&5
5717echo "${ECHO_T}yes" >&6
4cdb0ab0 5718 else
e6cc62c6
VS
5719 echo "$as_me:$LINENO: result: no" >&5
5720echo "${ECHO_T}no" >&6
4cdb0ab0 5721 fi
e6cc62c6 5722
52127426 5723
8284b0c5
MB
5724
5725
5726
5005acfe 5727 enablestring=
e6cc62c6
VS
5728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5729echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5730 no_cache=0
5731 # Check whether --enable-threads or --disable-threads was given.
5732if test "${enable_threads+set}" = set; then
5733 enableval="$enable_threads"
e6cc62c6 5734
10f2d63a
VZ
5735 if test "$enableval" = yes; then
5736 ac_cv_use_threads='wxUSE_THREADS=yes'
5737 else
5738 ac_cv_use_threads='wxUSE_THREADS=no'
5739 fi
e6cc62c6 5740
10f2d63a 5741else
e6cc62c6 5742
10f2d63a
VZ
5743 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5751
e6cc62c6 5752fi;
10f2d63a
VZ
5753
5754 eval "$ac_cv_use_threads"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5760 echo "$as_me:$LINENO: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
10f2d63a 5762 else
e6cc62c6
VS
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
10f2d63a 5765 fi
e6cc62c6 5766
10f2d63a 5767
b12915c1
VZ
5768if test "$wxUSE_GUI" = "yes"; then
5769
8284b0c5
MB
5770
5771
5005acfe 5772 enablestring=
e6cc62c6
VS
5773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5774echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5775 no_cache=0
5776 # Check whether --enable-docview or --disable-docview was given.
5777if test "${enable_docview+set}" = set; then
5778 enableval="$enable_docview"
e6cc62c6 5779
10f2d63a
VZ
5780 if test "$enableval" = yes; then
5781 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5782 else
5783 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5784 fi
e6cc62c6 5785
10f2d63a 5786else
e6cc62c6 5787
10f2d63a
VZ
5788 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5789 if test "x$LINE" != x ; then
5790 eval "DEFAULT_$LINE"
5791 else
5792 no_cache=1
5793 fi
5794
5795 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5796
e6cc62c6 5797fi;
10f2d63a
VZ
5798
5799 eval "$ac_cv_use_docview"
5800 if test "$no_cache" != 1; then
5801 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5802 fi
5803
5804 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5805 echo "$as_me:$LINENO: result: yes" >&5
5806echo "${ECHO_T}yes" >&6
10f2d63a 5807 else
e6cc62c6
VS
5808 echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6
10f2d63a 5810 fi
e6cc62c6 5811
10f2d63a 5812
5005acfe 5813 enablestring=
e6cc62c6
VS
5814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5815echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5816 no_cache=0
5817 # Check whether --enable-help or --disable-help was given.
5818if test "${enable_help+set}" = set; then
5819 enableval="$enable_help"
e6cc62c6 5820
10f2d63a
VZ
5821 if test "$enableval" = yes; then
5822 ac_cv_use_help='wxUSE_HELP=yes'
5823 else
5824 ac_cv_use_help='wxUSE_HELP=no'
5825 fi
e6cc62c6 5826
10f2d63a 5827else
e6cc62c6 5828
10f2d63a
VZ
5829 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5830 if test "x$LINE" != x ; then
5831 eval "DEFAULT_$LINE"
5832 else
5833 no_cache=1
5834 fi
5835
5836 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5837
e6cc62c6 5838fi;
10f2d63a
VZ
5839
5840 eval "$ac_cv_use_help"
5841 if test "$no_cache" != 1; then
5842 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5843 fi
5844
5845 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5846 echo "$as_me:$LINENO: result: yes" >&5
5847echo "${ECHO_T}yes" >&6
10f2d63a 5848 else
e6cc62c6
VS
5849 echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
10f2d63a 5851 fi
e6cc62c6 5852
10f2d63a 5853
5005acfe 5854 enablestring=
e6cc62c6
VS
5855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5856echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5857 no_cache=0
5858 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5859if test "${enable_mshtmlhelp+set}" = set; then
5860 enableval="$enable_mshtmlhelp"
e6cc62c6 5861
29fd3c0c
VS
5862 if test "$enableval" = yes; then
5863 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5864 else
5865 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5866 fi
e6cc62c6 5867
29fd3c0c 5868else
e6cc62c6 5869
29fd3c0c
VS
5870 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5871 if test "x$LINE" != x ; then
5872 eval "DEFAULT_$LINE"
5873 else
5874 no_cache=1
5875 fi
5876
5877 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5878
e6cc62c6 5879fi;
29fd3c0c
VS
5880
5881 eval "$ac_cv_use_mshtmlhelp"
5882 if test "$no_cache" != 1; then
5883 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5884 fi
5885
5886 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5887 echo "$as_me:$LINENO: result: yes" >&5
5888echo "${ECHO_T}yes" >&6
29fd3c0c 5889 else
e6cc62c6
VS
5890 echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
29fd3c0c 5892 fi
e6cc62c6 5893
29fd3c0c 5894
5005acfe 5895 enablestring=
e6cc62c6
VS
5896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5897echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5898 no_cache=0
5899 # Check whether --enable-html or --disable-html was given.
5900if test "${enable_html+set}" = set; then
5901 enableval="$enable_html"
e6cc62c6 5902
3379ed37
VZ
5903 if test "$enableval" = yes; then
5904 ac_cv_use_html='wxUSE_HTML=yes'
5905 else
5906 ac_cv_use_html='wxUSE_HTML=no'
5907 fi
e6cc62c6 5908
3379ed37 5909else
e6cc62c6 5910
3379ed37
VZ
5911 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5912 if test "x$LINE" != x ; then
5913 eval "DEFAULT_$LINE"
5914 else
5915 no_cache=1
5916 fi
5917
5918 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5919
e6cc62c6 5920fi;
3379ed37
VZ
5921
5922 eval "$ac_cv_use_html"
5923 if test "$no_cache" != 1; then
5924 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5925 fi
5926
5927 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5928 echo "$as_me:$LINENO: result: yes" >&5
5929echo "${ECHO_T}yes" >&6
3379ed37 5930 else
e6cc62c6
VS
5931 echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
3379ed37 5933 fi
e6cc62c6 5934
3379ed37 5935
5005acfe 5936 enablestring=
e6cc62c6
VS
5937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5938echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5939 no_cache=0
5940 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5941if test "${enable_htmlhelp+set}" = set; then
5942 enableval="$enable_htmlhelp"
e6cc62c6 5943
3379ed37
VZ
5944 if test "$enableval" = yes; then
5945 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5946 else
5947 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5948 fi
e6cc62c6 5949
3379ed37 5950else
e6cc62c6 5951
3379ed37
VZ
5952 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5953 if test "x$LINE" != x ; then
5954 eval "DEFAULT_$LINE"
5955 else
5956 no_cache=1
5957 fi
5958
5959 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5960
e6cc62c6 5961fi;
3379ed37
VZ
5962
5963 eval "$ac_cv_use_htmlhelp"
5964 if test "$no_cache" != 1; then
5965 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5966 fi
5967
5968 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5969 echo "$as_me:$LINENO: result: yes" >&5
5970echo "${ECHO_T}yes" >&6
3379ed37 5971 else
e6cc62c6
VS
5972 echo "$as_me:$LINENO: result: no" >&5
5973echo "${ECHO_T}no" >&6
3379ed37 5974 fi
e6cc62c6 5975
3379ed37 5976
5005acfe 5977 enablestring=
e6cc62c6
VS
5978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5979echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5980 no_cache=0
5981 # Check whether --enable-constraints or --disable-constraints was given.
5982if test "${enable_constraints+set}" = set; then
5983 enableval="$enable_constraints"
e6cc62c6 5984
10f2d63a
VZ
5985 if test "$enableval" = yes; then
5986 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5987 else
5988 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5989 fi
e6cc62c6 5990
10f2d63a 5991else
e6cc62c6 5992
10f2d63a
VZ
5993 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5994 if test "x$LINE" != x ; then
5995 eval "DEFAULT_$LINE"
5996 else
5997 no_cache=1
5998 fi
5999
6000 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6001
e6cc62c6 6002fi;
10f2d63a
VZ
6003
6004 eval "$ac_cv_use_constraints"
6005 if test "$no_cache" != 1; then
6006 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6007 fi
6008
6009 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6010 echo "$as_me:$LINENO: result: yes" >&5
6011echo "${ECHO_T}yes" >&6
10f2d63a 6012 else
e6cc62c6
VS
6013 echo "$as_me:$LINENO: result: no" >&5
6014echo "${ECHO_T}no" >&6
10f2d63a 6015 fi
e6cc62c6 6016
10f2d63a 6017
5005acfe 6018 enablestring=
e6cc62c6
VS
6019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6020echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6021 no_cache=0
6022 # Check whether --enable-printarch or --disable-printarch was given.
6023if test "${enable_printarch+set}" = set; then
6024 enableval="$enable_printarch"
e6cc62c6 6025
10f2d63a
VZ
6026 if test "$enableval" = yes; then
6027 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6028 else
6029 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6030 fi
e6cc62c6 6031
10f2d63a 6032else
e6cc62c6 6033
10f2d63a
VZ
6034 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6035 if test "x$LINE" != x ; then
6036 eval "DEFAULT_$LINE"
6037 else
6038 no_cache=1
6039 fi
6040
6041 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6042
e6cc62c6 6043fi;
10f2d63a
VZ
6044
6045 eval "$ac_cv_use_printarch"
6046 if test "$no_cache" != 1; then
6047 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6048 fi
6049
6050 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6051 echo "$as_me:$LINENO: result: yes" >&5
6052echo "${ECHO_T}yes" >&6
10f2d63a 6053 else
e6cc62c6
VS
6054 echo "$as_me:$LINENO: result: no" >&5
6055echo "${ECHO_T}no" >&6
10f2d63a 6056 fi
e6cc62c6 6057
10f2d63a 6058
5005acfe 6059 enablestring=
e6cc62c6
VS
6060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6061echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6062 no_cache=0
6063 # Check whether --enable-mdi or --disable-mdi was given.
6064if test "${enable_mdi+set}" = set; then
6065 enableval="$enable_mdi"
e6cc62c6 6066
10f2d63a
VZ
6067 if test "$enableval" = yes; then
6068 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6069 else
6070 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6071 fi
e6cc62c6 6072
10f2d63a 6073else
e6cc62c6 6074
10f2d63a
VZ
6075 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6083
e6cc62c6 6084fi;
10f2d63a
VZ
6085
6086 eval "$ac_cv_use_mdi"
6087 if test "$no_cache" != 1; then
6088 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6089 fi
6090
6091 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6092 echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6
10f2d63a 6094 else
e6cc62c6
VS
6095 echo "$as_me:$LINENO: result: no" >&5
6096echo "${ECHO_T}no" >&6
10f2d63a 6097 fi
e6cc62c6 6098
698dcdb6 6099
5005acfe 6100 enablestring=
e6cc62c6
VS
6101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6102echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6103 no_cache=0
6104 # Check whether --enable-loggui or --disable-loggui was given.
6105if test "${enable_loggui+set}" = set; then
6106 enableval="$enable_loggui"
e6cc62c6 6107
1e6feb95
VZ
6108 if test "$enableval" = yes; then
6109 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6110 else
6111 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6112 fi
e6cc62c6 6113
1e6feb95 6114else
e6cc62c6 6115
1e6feb95
VZ
6116 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6124
e6cc62c6 6125fi;
1e6feb95
VZ
6126
6127 eval "$ac_cv_use_loggui"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6133 echo "$as_me:$LINENO: result: yes" >&5
6134echo "${ECHO_T}yes" >&6
1e6feb95 6135 else
e6cc62c6
VS
6136 echo "$as_me:$LINENO: result: no" >&5
6137echo "${ECHO_T}no" >&6
1e6feb95 6138 fi
e6cc62c6 6139
1e6feb95 6140
5005acfe 6141 enablestring=
e6cc62c6
VS
6142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6143echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6144 no_cache=0
6145 # Check whether --enable-logwin or --disable-logwin was given.
6146if test "${enable_logwin+set}" = set; then
6147 enableval="$enable_logwin"
e6cc62c6 6148
1e6feb95
VZ
6149 if test "$enableval" = yes; then
6150 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6151 else
6152 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6153 fi
e6cc62c6 6154
1e6feb95 6155else
e6cc62c6 6156
1e6feb95
VZ
6157 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6165
e6cc62c6 6166fi;
1e6feb95
VZ
6167
6168 eval "$ac_cv_use_logwin"
6169 if test "$no_cache" != 1; then
6170 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6171 fi
6172
6173 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6174 echo "$as_me:$LINENO: result: yes" >&5
6175echo "${ECHO_T}yes" >&6
1e6feb95 6176 else
e6cc62c6
VS
6177 echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
1e6feb95 6179 fi
e6cc62c6 6180
1e6feb95 6181
5005acfe 6182 enablestring=
e6cc62c6
VS
6183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6184echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6185 no_cache=0
6186 # Check whether --enable-logdialog or --disable-logdialog was given.
6187if test "${enable_logdialog+set}" = set; then
6188 enableval="$enable_logdialog"
e6cc62c6 6189
69d27ff7
MB
6190 if test "$enableval" = yes; then
6191 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6192 else
6193 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6194 fi
e6cc62c6 6195
69d27ff7 6196else
e6cc62c6 6197
69d27ff7
MB
6198 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6199 if test "x$LINE" != x ; then
6200 eval "DEFAULT_$LINE"
6201 else
6202 no_cache=1
6203 fi
6204
6205 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6206
e6cc62c6 6207fi;
69d27ff7
MB
6208
6209 eval "$ac_cv_use_logdialog"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6215 echo "$as_me:$LINENO: result: yes" >&5
6216echo "${ECHO_T}yes" >&6
69d27ff7 6217 else
e6cc62c6
VS
6218 echo "$as_me:$LINENO: result: no" >&5
6219echo "${ECHO_T}no" >&6
69d27ff7 6220 fi
e6cc62c6 6221
8284b0c5 6222
52127426 6223
5005acfe 6224 enablestring=
e6cc62c6
VS
6225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6226echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6227 no_cache=0
6228 # Check whether --enable-postscript or --disable-postscript was given.
6229if test "${enable_postscript+set}" = set; then
6230 enableval="$enable_postscript"
e6cc62c6 6231
10f2d63a
VZ
6232 if test "$enableval" = yes; then
6233 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6234 else
6235 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6236 fi
e6cc62c6 6237
10f2d63a 6238else
e6cc62c6 6239
10f2d63a
VZ
6240 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6248
e6cc62c6 6249fi;
10f2d63a
VZ
6250
6251 eval "$ac_cv_use_postscript"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6257 echo "$as_me:$LINENO: result: yes" >&5
6258echo "${ECHO_T}yes" >&6
10f2d63a 6259 else
e6cc62c6
VS
6260 echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6
10f2d63a 6262 fi
e6cc62c6 6263
8284b0c5
MB
6264
6265
52127426 6266
8284b0c5 6267
5005acfe 6268 enablestring=
e6cc62c6
VS
6269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6270echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6271 no_cache=0
3c907f20
VZ
6272 # Check whether --enable-prologio or --disable-prologio was given.
6273if test "${enable_prologio+set}" = set; then
6274 enableval="$enable_prologio"
e6cc62c6 6275
10f2d63a 6276 if test "$enableval" = yes; then
3c907f20 6277 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6278 else
3c907f20 6279 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6280 fi
e6cc62c6 6281
10f2d63a 6282else
e6cc62c6 6283
3c907f20 6284 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6285 if test "x$LINE" != x ; then
6286 eval "DEFAULT_$LINE"
6287 else
6288 no_cache=1
6289 fi
6290
3c907f20 6291 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6292
e6cc62c6 6293fi;
10f2d63a 6294
3c907f20 6295 eval "$ac_cv_use_prologio"
10f2d63a 6296 if test "$no_cache" != 1; then
3c907f20 6297 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6298 fi
6299
3c907f20 6300 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6301 echo "$as_me:$LINENO: result: yes" >&5
6302echo "${ECHO_T}yes" >&6
10f2d63a 6303 else
e6cc62c6
VS
6304 echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6
10f2d63a 6306 fi
e6cc62c6 6307
8284b0c5 6308
5005acfe 6309 enablestring=
e6cc62c6
VS
6310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6311echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6312 no_cache=0
3c907f20
VZ
6313 # Check whether --enable-resources or --disable-resources was given.
6314if test "${enable_resources+set}" = set; then
6315 enableval="$enable_resources"
e6cc62c6 6316
10f2d63a 6317 if test "$enableval" = yes; then
3c907f20 6318 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6319 else
3c907f20 6320 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6321 fi
e6cc62c6 6322
10f2d63a 6323else
e6cc62c6 6324
3c907f20 6325 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6326 if test "x$LINE" != x ; then
6327 eval "DEFAULT_$LINE"
6328 else
6329 no_cache=1
6330 fi
6331
3c907f20 6332 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6333
e6cc62c6 6334fi;
10f2d63a 6335
3c907f20 6336 eval "$ac_cv_use_resources"
10f2d63a 6337 if test "$no_cache" != 1; then
3c907f20 6338 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6339 fi
6340
3c907f20 6341 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6342 echo "$as_me:$LINENO: result: yes" >&5
6343echo "${ECHO_T}yes" >&6
10f2d63a 6344 else
e6cc62c6
VS
6345 echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6
10f2d63a 6347 fi
e6cc62c6 6348
8284b0c5
MB
6349
6350
52127426 6351
5005acfe 6352 enablestring=
e6cc62c6
VS
6353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6354echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6355 no_cache=0
6356 # Check whether --enable-clipboard or --disable-clipboard was given.
6357if test "${enable_clipboard+set}" = set; then
6358 enableval="$enable_clipboard"
e6cc62c6 6359
10f2d63a
VZ
6360 if test "$enableval" = yes; then
6361 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6362 else
6363 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6364 fi
e6cc62c6 6365
10f2d63a 6366else
e6cc62c6 6367
10f2d63a
VZ
6368 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
6375 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6376
e6cc62c6 6377fi;
10f2d63a
VZ
6378
6379 eval "$ac_cv_use_clipboard"
6380 if test "$no_cache" != 1; then
6381 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6382 fi
6383
6384 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6385 echo "$as_me:$LINENO: result: yes" >&5
6386echo "${ECHO_T}yes" >&6
10f2d63a 6387 else
e6cc62c6
VS
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
10f2d63a 6390 fi
e6cc62c6 6391
10f2d63a 6392
5005acfe 6393 enablestring=
e6cc62c6
VS
6394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6395echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6396 no_cache=0
6397 # Check whether --enable-dnd or --disable-dnd was given.
6398if test "${enable_dnd+set}" = set; then
6399 enableval="$enable_dnd"
e6cc62c6 6400
10f2d63a
VZ
6401 if test "$enableval" = yes; then
6402 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6403 else
6404 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6405 fi
e6cc62c6 6406
10f2d63a 6407else
e6cc62c6 6408
10f2d63a
VZ
6409 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6410 if test "x$LINE" != x ; then
6411 eval "DEFAULT_$LINE"
6412 else
6413 no_cache=1
6414 fi
6415
6416 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6417
e6cc62c6 6418fi;
10f2d63a
VZ
6419
6420 eval "$ac_cv_use_dnd"
6421 if test "$no_cache" != 1; then
6422 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6423 fi
6424
6425 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6426 echo "$as_me:$LINENO: result: yes" >&5
6427echo "${ECHO_T}yes" >&6
10f2d63a 6428 else
e6cc62c6
VS
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
10f2d63a 6431 fi
e6cc62c6 6432
10f2d63a 6433
5005acfe 6434 enablestring=
e6cc62c6
VS
6435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6436echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6437 no_cache=0
6438 # Check whether --enable-metafile or --disable-metafile was given.
6439if test "${enable_metafile+set}" = set; then
6440 enableval="$enable_metafile"
e6cc62c6 6441
b64f0a5f
RL
6442 if test "$enableval" = yes; then
6443 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6444 else
6445 ac_cv_use_metafile='wxUSE_METAFILE=no'
6446 fi
e6cc62c6 6447
b64f0a5f 6448else
e6cc62c6 6449
b64f0a5f
RL
6450 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6451 if test "x$LINE" != x ; then
6452 eval "DEFAULT_$LINE"
6453 else
6454 no_cache=1
6455 fi
6456
6457 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6458
e6cc62c6 6459fi;
b64f0a5f
RL
6460
6461 eval "$ac_cv_use_metafile"
6462 if test "$no_cache" != 1; then
6463 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6464 fi
6465
6466 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6467 echo "$as_me:$LINENO: result: yes" >&5
6468echo "${ECHO_T}yes" >&6
b64f0a5f 6469 else
e6cc62c6
VS
6470 echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
b64f0a5f 6472 fi
e6cc62c6 6473
52127426 6474
8284b0c5 6475
52127426 6476
8284b0c5 6477
5005acfe 6478 enablestring=
e6cc62c6
VS
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6481 no_cache=0
6482 # Check whether --enable-controls or --disable-controls was given.
6483if test "${enable_controls+set}" = set; then
6484 enableval="$enable_controls"
e6cc62c6 6485
10f2d63a
VZ
6486 if test "$enableval" = yes; then
6487 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6488 else
6489 ac_cv_use_controls='wxUSE_CONTROLS=no'
6490 fi
e6cc62c6 6491
10f2d63a 6492else
e6cc62c6 6493
10f2d63a
VZ
6494 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6495 if test "x$LINE" != x ; then
6496 eval "DEFAULT_$LINE"
6497 else
6498 no_cache=1
6499 fi
6500
6501 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6502
e6cc62c6 6503fi;
10f2d63a
VZ
6504
6505 eval "$ac_cv_use_controls"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
10f2d63a 6513 else
e6cc62c6
VS
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
10f2d63a 6516 fi
e6cc62c6 6517
10f2d63a
VZ
6518
6519if test "$wxUSE_CONTROLS" = "yes"; then
6520 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6521 DEFAULT_wxUSE_BMPBUTTON=yes
6522 DEFAULT_wxUSE_BUTTON=yes
6523 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6524 DEFAULT_wxUSE_CARET=yes
6525 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6526 DEFAULT_wxUSE_CHECKBOX=yes
6527 DEFAULT_wxUSE_CHECKLISTBOX=yes
6528 DEFAULT_wxUSE_CHOICE=yes
6529 DEFAULT_wxUSE_GAUGE=yes
6530 DEFAULT_wxUSE_GRID=yes
10f2d63a 6531 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6532 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6533 DEFAULT_wxUSE_LISTBOX=yes
6534 DEFAULT_wxUSE_LISTCTRL=yes
6535 DEFAULT_wxUSE_NOTEBOOK=yes
6536 DEFAULT_wxUSE_RADIOBOX=yes
6537 DEFAULT_wxUSE_RADIOBTN=yes
6538 DEFAULT_wxUSE_SASH=yes
6539 DEFAULT_wxUSE_SCROLLBAR=yes
6540 DEFAULT_wxUSE_SLIDER=yes
6541 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6542 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6543 DEFAULT_wxUSE_SPLITTER=yes
6544 DEFAULT_wxUSE_STATBMP=yes
6545 DEFAULT_wxUSE_STATBOX=yes
6546 DEFAULT_wxUSE_STATLINE=yes
6547 DEFAULT_wxUSE_STATUSBAR=yes
6548 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6549 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6550 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6551 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6552 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6553 DEFAULT_wxUSE_TOOLTIPS=yes
6554 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6555 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6556 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6557elif test "$wxUSE_CONTROLS" = "no"; then
6558 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6559 DEFAULT_wxUSE_BMPBUTTON=no
6560 DEFAULT_wxUSE_BUTTON=no
6561 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6562 DEFAULT_wxUSE_CARET=no
6563 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6564 DEFAULT_wxUSE_CHECKBOX=no
6565 DEFAULT_wxUSE_CHECKLISTBOX=no
6566 DEFAULT_wxUSE_CHOICE=no
6567 DEFAULT_wxUSE_GAUGE=no
6568 DEFAULT_wxUSE_GRID=no
10f2d63a 6569 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6570 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6571 DEFAULT_wxUSE_LISTBOX=no
6572 DEFAULT_wxUSE_LISTCTRL=no
6573 DEFAULT_wxUSE_NOTEBOOK=no
6574 DEFAULT_wxUSE_RADIOBOX=no
6575 DEFAULT_wxUSE_RADIOBTN=no
6576 DEFAULT_wxUSE_SASH=no
6577 DEFAULT_wxUSE_SCROLLBAR=no
6578 DEFAULT_wxUSE_SLIDER=no
6579 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6580 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6581 DEFAULT_wxUSE_SPLITTER=no
6582 DEFAULT_wxUSE_STATBMP=no
6583 DEFAULT_wxUSE_STATBOX=no
6584 DEFAULT_wxUSE_STATLINE=no
6585 DEFAULT_wxUSE_STATUSBAR=no
6586 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6587 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6588 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6589 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6590 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6591 DEFAULT_wxUSE_TOOLTIPS=no
6592 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6593 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6594 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6595fi
6596
ac0c4cc3
DE
6597## FIXME: This is a blatant hack
6598if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6599 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6600 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6601 # Generic notebook requires tab dialog
6602 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6603 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6604 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6605 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6606 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6607fi
6608
8284b0c5 6609
5005acfe 6610 enablestring=
e6cc62c6
VS
6611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6612echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6613 no_cache=0
6614 # Check whether --enable-accel or --disable-accel was given.
6615if test "${enable_accel+set}" = set; then
6616 enableval="$enable_accel"
e6cc62c6 6617
10f2d63a
VZ
6618 if test "$enableval" = yes; then
6619 ac_cv_use_accel='wxUSE_ACCEL=yes'
6620 else
6621 ac_cv_use_accel='wxUSE_ACCEL=no'
6622 fi
e6cc62c6 6623
10f2d63a 6624else
e6cc62c6 6625
10f2d63a
VZ
6626 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6634
e6cc62c6 6635fi;
10f2d63a
VZ
6636
6637 eval "$ac_cv_use_accel"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6640 fi
6641
6642 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6643 echo "$as_me:$LINENO: result: yes" >&5
6644echo "${ECHO_T}yes" >&6
10f2d63a 6645 else
e6cc62c6
VS
6646 echo "$as_me:$LINENO: result: no" >&5
6647echo "${ECHO_T}no" >&6
10f2d63a 6648 fi
e6cc62c6 6649
10f2d63a 6650
5005acfe 6651 enablestring=
e6cc62c6
VS
6652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6653echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6654 no_cache=0
1e6feb95
VZ
6655 # Check whether --enable-button or --disable-button was given.
6656if test "${enable_button+set}" = set; then
6657 enableval="$enable_button"
e6cc62c6 6658
10f2d63a 6659 if test "$enableval" = yes; then
1e6feb95 6660 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6661 else
1e6feb95 6662 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6663 fi
e6cc62c6 6664
10f2d63a 6665else
e6cc62c6 6666
1e6feb95 6667 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6668 if test "x$LINE" != x ; then
6669 eval "DEFAULT_$LINE"
6670 else
6671 no_cache=1
6672 fi
6673
1e6feb95 6674 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6675
e6cc62c6 6676fi;
10f2d63a 6677
1e6feb95 6678 eval "$ac_cv_use_button"
10f2d63a 6679 if test "$no_cache" != 1; then
1e6feb95 6680 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6681 fi
6682
1e6feb95 6683 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6684 echo "$as_me:$LINENO: result: yes" >&5
6685echo "${ECHO_T}yes" >&6
10f2d63a 6686 else
e6cc62c6
VS
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
10f2d63a 6689 fi
e6cc62c6 6690
10f2d63a 6691
5005acfe 6692 enablestring=
e6cc62c6
VS
6693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6694echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6695 no_cache=0
6696 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6697if test "${enable_bmpbutton+set}" = set; then
6698 enableval="$enable_bmpbutton"
e6cc62c6 6699
10f2d63a
VZ
6700 if test "$enableval" = yes; then
6701 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6702 else
6703 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6704 fi
e6cc62c6 6705
10f2d63a 6706else
e6cc62c6 6707
10f2d63a
VZ
6708 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6716
e6cc62c6 6717fi;
10f2d63a
VZ
6718
6719 eval "$ac_cv_use_bmpbutton"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6725 echo "$as_me:$LINENO: result: yes" >&5
6726echo "${ECHO_T}yes" >&6
10f2d63a 6727 else
e6cc62c6
VS
6728 echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
10f2d63a 6730 fi
e6cc62c6 6731
10f2d63a 6732
5005acfe 6733 enablestring=
e6cc62c6
VS
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6736 no_cache=0
6737 # Check whether --enable-calendar or --disable-calendar was given.
6738if test "${enable_calendar+set}" = set; then
6739 enableval="$enable_calendar"
e6cc62c6 6740
1e6feb95
VZ
6741 if test "$enableval" = yes; then
6742 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6743 else
6744 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6745 fi
e6cc62c6 6746
1e6feb95 6747else
e6cc62c6 6748
1e6feb95
VZ
6749 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6757
e6cc62c6 6758fi;
1e6feb95
VZ
6759
6760 eval "$ac_cv_use_calendar"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
1e6feb95 6768 else
e6cc62c6
VS
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
1e6feb95 6771 fi
e6cc62c6 6772
1e6feb95 6773
5005acfe 6774 enablestring=
e6cc62c6
VS
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6777 no_cache=0
6778 # Check whether --enable-caret or --disable-caret was given.
6779if test "${enable_caret+set}" = set; then
6780 enableval="$enable_caret"
e6cc62c6 6781
1e6feb95
VZ
6782 if test "$enableval" = yes; then
6783 ac_cv_use_caret='wxUSE_CARET=yes'
6784 else
6785 ac_cv_use_caret='wxUSE_CARET=no'
6786 fi
e6cc62c6 6787
1e6feb95 6788else
e6cc62c6 6789
1e6feb95
VZ
6790 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6798
e6cc62c6 6799fi;
1e6feb95
VZ
6800
6801 eval "$ac_cv_use_caret"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
1e6feb95 6809 else
e6cc62c6
VS
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
1e6feb95 6812 fi
e6cc62c6 6813
1e6feb95 6814
5005acfe 6815 enablestring=
e6cc62c6
VS
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6818 no_cache=0
6819 # Check whether --enable-checkbox or --disable-checkbox was given.
6820if test "${enable_checkbox+set}" = set; then
6821 enableval="$enable_checkbox"
e6cc62c6 6822
10f2d63a
VZ
6823 if test "$enableval" = yes; then
6824 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6825 else
6826 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6827 fi
e6cc62c6 6828
10f2d63a 6829else
e6cc62c6 6830
10f2d63a
VZ
6831 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6839
e6cc62c6 6840fi;
10f2d63a
VZ
6841
6842 eval "$ac_cv_use_checkbox"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
10f2d63a 6850 else
e6cc62c6
VS
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
10f2d63a 6853 fi
e6cc62c6 6854
10f2d63a 6855
5005acfe 6856 enablestring=
e6cc62c6
VS
6857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6858echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6859 no_cache=0
6860 # Check whether --enable-checklst or --disable-checklst was given.
6861if test "${enable_checklst+set}" = set; then
6862 enableval="$enable_checklst"
e6cc62c6 6863
10f2d63a
VZ
6864 if test "$enableval" = yes; then
6865 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6866 else
6867 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6868 fi
e6cc62c6 6869
10f2d63a 6870else
e6cc62c6 6871
10f2d63a
VZ
6872 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6880
e6cc62c6 6881fi;
10f2d63a
VZ
6882
6883 eval "$ac_cv_use_checklst"
6884 if test "$no_cache" != 1; then
6885 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6886 fi
6887
6888 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6889 echo "$as_me:$LINENO: result: yes" >&5
6890echo "${ECHO_T}yes" >&6
10f2d63a 6891 else
e6cc62c6
VS
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
10f2d63a 6894 fi
e6cc62c6 6895
10f2d63a 6896
5005acfe 6897 enablestring=
e6cc62c6
VS
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6900 no_cache=0
6901 # Check whether --enable-choice or --disable-choice was given.
6902if test "${enable_choice+set}" = set; then
6903 enableval="$enable_choice"
e6cc62c6 6904
10f2d63a
VZ
6905 if test "$enableval" = yes; then
6906 ac_cv_use_choice='wxUSE_CHOICE=yes'
6907 else
6908 ac_cv_use_choice='wxUSE_CHOICE=no'
6909 fi
e6cc62c6 6910
10f2d63a 6911else
e6cc62c6 6912
10f2d63a
VZ
6913 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6921
e6cc62c6 6922fi;
10f2d63a
VZ
6923
6924 eval "$ac_cv_use_choice"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
10f2d63a 6932 else
e6cc62c6
VS
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
10f2d63a 6935 fi
e6cc62c6 6936
10f2d63a 6937
5005acfe 6938 enablestring=
e6cc62c6
VS
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6941 no_cache=0
6942 # Check whether --enable-combobox or --disable-combobox was given.
6943if test "${enable_combobox+set}" = set; then
6944 enableval="$enable_combobox"
e6cc62c6 6945
10f2d63a
VZ
6946 if test "$enableval" = yes; then
6947 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6948 else
6949 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6950 fi
e6cc62c6 6951
10f2d63a 6952else
e6cc62c6 6953
10f2d63a
VZ
6954 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6962
e6cc62c6 6963fi;
10f2d63a
VZ
6964
6965 eval "$ac_cv_use_combobox"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
10f2d63a 6973 else
e6cc62c6
VS
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
10f2d63a 6976 fi
e6cc62c6 6977
10f2d63a 6978
da494b40 6979 enablestring=
e6cc62c6
VS
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6982 no_cache=0
6983 # Check whether --enable-display or --disable-display was given.
6984if test "${enable_display+set}" = set; then
6985 enableval="$enable_display"
e6cc62c6 6986
da494b40
MB
6987 if test "$enableval" = yes; then
6988 ac_cv_use_display='wxUSE_DISPLAY=yes'
6989 else
6990 ac_cv_use_display='wxUSE_DISPLAY=no'
6991 fi
e6cc62c6 6992
da494b40 6993else
e6cc62c6 6994
da494b40
MB
6995 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7003
e6cc62c6 7004fi;
da494b40
MB
7005
7006 eval "$ac_cv_use_display"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
da494b40 7014 else
e6cc62c6
VS
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
da494b40 7017 fi
e6cc62c6 7018
da494b40 7019
5005acfe 7020 enablestring=
e6cc62c6
VS
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7023 no_cache=0
7024 # Check whether --enable-gauge or --disable-gauge was given.
7025if test "${enable_gauge+set}" = set; then
7026 enableval="$enable_gauge"
e6cc62c6 7027
10f2d63a
VZ
7028 if test "$enableval" = yes; then
7029 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7030 else
7031 ac_cv_use_gauge='wxUSE_GAUGE=no'
7032 fi
e6cc62c6 7033
10f2d63a 7034else
e6cc62c6 7035
10f2d63a
VZ
7036 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7044
e6cc62c6 7045fi;
10f2d63a
VZ
7046
7047 eval "$ac_cv_use_gauge"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
10f2d63a 7055 else
e6cc62c6
VS
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
10f2d63a 7058 fi
e6cc62c6 7059
10f2d63a 7060
5005acfe 7061 enablestring=
e6cc62c6
VS
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7064 no_cache=0
7065 # Check whether --enable-grid or --disable-grid was given.
7066if test "${enable_grid+set}" = set; then
7067 enableval="$enable_grid"
e6cc62c6 7068
10f2d63a
VZ
7069 if test "$enableval" = yes; then
7070 ac_cv_use_grid='wxUSE_GRID=yes'
7071 else
7072 ac_cv_use_grid='wxUSE_GRID=no'
7073 fi
e6cc62c6 7074
10f2d63a 7075else
e6cc62c6 7076
10f2d63a
VZ
7077 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7085
e6cc62c6 7086fi;
10f2d63a
VZ
7087
7088 eval "$ac_cv_use_grid"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
10f2d63a 7096 else
e6cc62c6
VS
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
10f2d63a 7099 fi
e6cc62c6 7100
10f2d63a 7101
5005acfe 7102 enablestring=
e6cc62c6
VS
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7105 no_cache=0
7106 # Check whether --enable-imaglist or --disable-imaglist was given.
7107if test "${enable_imaglist+set}" = set; then
7108 enableval="$enable_imaglist"
e6cc62c6 7109
10f2d63a
VZ
7110 if test "$enableval" = yes; then
7111 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7112 else
7113 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7114 fi
e6cc62c6 7115
10f2d63a 7116else
e6cc62c6 7117
10f2d63a
VZ
7118 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7126
e6cc62c6 7127fi;
10f2d63a
VZ
7128
7129 eval "$ac_cv_use_imaglist"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
10f2d63a 7137 else
e6cc62c6
VS
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
10f2d63a 7140 fi
e6cc62c6 7141
10f2d63a 7142
0e012a93
VZ
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-listbook or --disable-listbook was given.
7148if test "${enable_listbook+set}" = set; then
7149 enableval="$enable_listbook"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7153 else
7154 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7167
7168fi;
7169
7170 eval "$ac_cv_use_listbook"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_LISTBOOK" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
5005acfe 7184 enablestring=
e6cc62c6
VS
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7187 no_cache=0
7188 # Check whether --enable-listbox or --disable-listbox was given.
7189if test "${enable_listbox+set}" = set; then
7190 enableval="$enable_listbox"
e6cc62c6 7191
10f2d63a
VZ
7192 if test "$enableval" = yes; then
7193 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7194 else
7195 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7196 fi
e6cc62c6 7197
10f2d63a 7198else
e6cc62c6 7199
10f2d63a
VZ
7200 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7208
e6cc62c6 7209fi;
10f2d63a
VZ
7210
7211 eval "$ac_cv_use_listbox"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
10f2d63a 7219 else
e6cc62c6
VS
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
10f2d63a 7222 fi
e6cc62c6 7223
10f2d63a 7224
5005acfe 7225 enablestring=
e6cc62c6
VS
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7228 no_cache=0
7229 # Check whether --enable-listctrl or --disable-listctrl was given.
7230if test "${enable_listctrl+set}" = set; then
7231 enableval="$enable_listctrl"
e6cc62c6 7232
10f2d63a
VZ
7233 if test "$enableval" = yes; then
7234 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7235 else
7236 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7237 fi
e6cc62c6 7238
10f2d63a 7239else
e6cc62c6 7240
10f2d63a
VZ
7241 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7249
e6cc62c6 7250fi;
10f2d63a
VZ
7251
7252 eval "$ac_cv_use_listctrl"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
10f2d63a 7260 else
e6cc62c6
VS
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
10f2d63a 7263 fi
e6cc62c6 7264
10f2d63a 7265
5005acfe 7266 enablestring=
e6cc62c6
VS
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7269 no_cache=0
7270 # Check whether --enable-notebook or --disable-notebook was given.
7271if test "${enable_notebook+set}" = set; then
7272 enableval="$enable_notebook"
e6cc62c6 7273
10f2d63a
VZ
7274 if test "$enableval" = yes; then
7275 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7276 else
7277 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7278 fi
e6cc62c6 7279
10f2d63a 7280else
e6cc62c6 7281
10f2d63a
VZ
7282 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7290
e6cc62c6 7291fi;
10f2d63a
VZ
7292
7293 eval "$ac_cv_use_notebook"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
10f2d63a 7301 else
e6cc62c6
VS
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
10f2d63a 7304 fi
e6cc62c6 7305
10f2d63a 7306
5005acfe 7307 enablestring=
e6cc62c6
VS
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7310 no_cache=0
7311 # Check whether --enable-radiobox or --disable-radiobox was given.
7312if test "${enable_radiobox+set}" = set; then
7313 enableval="$enable_radiobox"
e6cc62c6 7314
10f2d63a
VZ
7315 if test "$enableval" = yes; then
7316 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7317 else
7318 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7319 fi
e6cc62c6 7320
10f2d63a 7321else
e6cc62c6 7322
10f2d63a
VZ
7323 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7331
e6cc62c6 7332fi;
10f2d63a
VZ
7333
7334 eval "$ac_cv_use_radiobox"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
10f2d63a 7342 else
e6cc62c6
VS
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
10f2d63a 7345 fi
e6cc62c6 7346
10f2d63a 7347
5005acfe 7348 enablestring=
e6cc62c6
VS
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7351 no_cache=0
7352 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7353if test "${enable_radiobtn+set}" = set; then
7354 enableval="$enable_radiobtn"
e6cc62c6 7355
10f2d63a
VZ
7356 if test "$enableval" = yes; then
7357 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7358 else
7359 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7360 fi
e6cc62c6 7361
10f2d63a 7362else
e6cc62c6 7363
10f2d63a
VZ
7364 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7372
e6cc62c6 7373fi;
10f2d63a
VZ
7374
7375 eval "$ac_cv_use_radiobtn"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
10f2d63a 7383 else
e6cc62c6
VS
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
10f2d63a 7386 fi
e6cc62c6 7387
10f2d63a 7388
5005acfe 7389 enablestring=
e6cc62c6
VS
7390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7391echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7392 no_cache=0
7393 # Check whether --enable-sash or --disable-sash was given.
7394if test "${enable_sash+set}" = set; then
7395 enableval="$enable_sash"
e6cc62c6 7396
10f2d63a
VZ
7397 if test "$enableval" = yes; then
7398 ac_cv_use_sash='wxUSE_SASH=yes'
7399 else
7400 ac_cv_use_sash='wxUSE_SASH=no'
7401 fi
e6cc62c6 7402
10f2d63a 7403else
e6cc62c6 7404
10f2d63a
VZ
7405 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7413
e6cc62c6 7414fi;
10f2d63a
VZ
7415
7416 eval "$ac_cv_use_sash"
7417 if test "$no_cache" != 1; then
7418 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7419 fi
7420
7421 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7422 echo "$as_me:$LINENO: result: yes" >&5
7423echo "${ECHO_T}yes" >&6
10f2d63a 7424 else
e6cc62c6
VS
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
10f2d63a 7427 fi
e6cc62c6 7428
10f2d63a 7429
5005acfe 7430 enablestring=
e6cc62c6
VS
7431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7432echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7433 no_cache=0
7434 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7435if test "${enable_scrollbar+set}" = set; then
7436 enableval="$enable_scrollbar"
e6cc62c6 7437
10f2d63a
VZ
7438 if test "$enableval" = yes; then
7439 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7440 else
7441 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7442 fi
e6cc62c6 7443
10f2d63a 7444else
e6cc62c6 7445
10f2d63a
VZ
7446 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7454
e6cc62c6 7455fi;
10f2d63a
VZ
7456
7457 eval "$ac_cv_use_scrollbar"
7458 if test "$no_cache" != 1; then
7459 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7460 fi
7461
7462 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7463 echo "$as_me:$LINENO: result: yes" >&5
7464echo "${ECHO_T}yes" >&6
10f2d63a 7465 else
e6cc62c6
VS
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
10f2d63a 7468 fi
e6cc62c6 7469
10f2d63a 7470
5005acfe 7471 enablestring=
e6cc62c6
VS
7472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7473echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7474 no_cache=0
7475 # Check whether --enable-slider or --disable-slider was given.
7476if test "${enable_slider+set}" = set; then
7477 enableval="$enable_slider"
e6cc62c6 7478
10f2d63a
VZ
7479 if test "$enableval" = yes; then
7480 ac_cv_use_slider='wxUSE_SLIDER=yes'
7481 else
7482 ac_cv_use_slider='wxUSE_SLIDER=no'
7483 fi
e6cc62c6 7484
10f2d63a 7485else
e6cc62c6 7486
10f2d63a
VZ
7487 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7495
e6cc62c6 7496fi;
10f2d63a
VZ
7497
7498 eval "$ac_cv_use_slider"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7504 echo "$as_me:$LINENO: result: yes" >&5
7505echo "${ECHO_T}yes" >&6
10f2d63a 7506 else
e6cc62c6
VS
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
10f2d63a 7509 fi
e6cc62c6 7510
10f2d63a 7511
5005acfe 7512 enablestring=
e6cc62c6
VS
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7515 no_cache=0
7516 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7517if test "${enable_spinbtn+set}" = set; then
7518 enableval="$enable_spinbtn"
e6cc62c6 7519
10f2d63a
VZ
7520 if test "$enableval" = yes; then
7521 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7522 else
7523 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7524 fi
e6cc62c6 7525
10f2d63a 7526else
e6cc62c6 7527
10f2d63a
VZ
7528 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7536
e6cc62c6 7537fi;
10f2d63a
VZ
7538
7539 eval "$ac_cv_use_spinbtn"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
10f2d63a 7547 else
e6cc62c6
VS
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
10f2d63a 7550 fi
e6cc62c6 7551
10f2d63a 7552
5005acfe 7553 enablestring=
e6cc62c6
VS
7554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7555echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7556 no_cache=0
7557 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7558if test "${enable_spinctrl+set}" = set; then
7559 enableval="$enable_spinctrl"
e6cc62c6 7560
56cfaa52
RR
7561 if test "$enableval" = yes; then
7562 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7563 else
7564 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7565 fi
e6cc62c6 7566
56cfaa52 7567else
e6cc62c6 7568
56cfaa52
RR
7569 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7577
e6cc62c6 7578fi;
56cfaa52
RR
7579
7580 eval "$ac_cv_use_spinctrl"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
56cfaa52 7588 else
e6cc62c6
VS
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
56cfaa52 7591 fi
e6cc62c6 7592
56cfaa52 7593
5005acfe 7594 enablestring=
e6cc62c6
VS
7595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7596echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7597 no_cache=0
7598 # Check whether --enable-splitter or --disable-splitter was given.
7599if test "${enable_splitter+set}" = set; then
7600 enableval="$enable_splitter"
e6cc62c6 7601
10f2d63a
VZ
7602 if test "$enableval" = yes; then
7603 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7604 else
7605 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7606 fi
e6cc62c6 7607
10f2d63a 7608else
e6cc62c6 7609
10f2d63a
VZ
7610 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7618
e6cc62c6 7619fi;
10f2d63a
VZ
7620
7621 eval "$ac_cv_use_splitter"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7627 echo "$as_me:$LINENO: result: yes" >&5
7628echo "${ECHO_T}yes" >&6
10f2d63a 7629 else
e6cc62c6
VS
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
10f2d63a 7632 fi
e6cc62c6 7633
10f2d63a 7634
5005acfe 7635 enablestring=
e6cc62c6
VS
7636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7637echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7638 no_cache=0
7639 # Check whether --enable-statbmp or --disable-statbmp was given.
7640if test "${enable_statbmp+set}" = set; then
7641 enableval="$enable_statbmp"
e6cc62c6 7642
10f2d63a
VZ
7643 if test "$enableval" = yes; then
7644 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7645 else
7646 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7647 fi
e6cc62c6 7648
10f2d63a 7649else
e6cc62c6 7650
10f2d63a
VZ
7651 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7652 if test "x$LINE" != x ; then
7653 eval "DEFAULT_$LINE"
7654 else
7655 no_cache=1
7656 fi
7657
7658 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7659
e6cc62c6 7660fi;
10f2d63a
VZ
7661
7662 eval "$ac_cv_use_statbmp"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7668 echo "$as_me:$LINENO: result: yes" >&5
7669echo "${ECHO_T}yes" >&6
10f2d63a 7670 else
e6cc62c6
VS
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
10f2d63a 7673 fi
e6cc62c6 7674
10f2d63a 7675
5005acfe 7676 enablestring=
e6cc62c6
VS
7677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7678echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7679 no_cache=0
7680 # Check whether --enable-statbox or --disable-statbox was given.
7681if test "${enable_statbox+set}" = set; then
7682 enableval="$enable_statbox"
e6cc62c6 7683
10f2d63a
VZ
7684 if test "$enableval" = yes; then
7685 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7686 else
7687 ac_cv_use_statbox='wxUSE_STATBOX=no'
7688 fi
e6cc62c6 7689
10f2d63a 7690else
e6cc62c6 7691
10f2d63a
VZ
7692 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7700
e6cc62c6 7701fi;
10f2d63a
VZ
7702
7703 eval "$ac_cv_use_statbox"
7704 if test "$no_cache" != 1; then
7705 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7706 fi
7707
7708 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7709 echo "$as_me:$LINENO: result: yes" >&5
7710echo "${ECHO_T}yes" >&6
10f2d63a 7711 else
e6cc62c6
VS
7712 echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6
10f2d63a 7714 fi
e6cc62c6 7715
10f2d63a 7716
5005acfe 7717 enablestring=
e6cc62c6
VS
7718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7719echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7720 no_cache=0
7721 # Check whether --enable-statline or --disable-statline was given.
7722if test "${enable_statline+set}" = set; then
7723 enableval="$enable_statline"
e6cc62c6 7724
10f2d63a
VZ
7725 if test "$enableval" = yes; then
7726 ac_cv_use_statline='wxUSE_STATLINE=yes'
7727 else
7728 ac_cv_use_statline='wxUSE_STATLINE=no'
7729 fi
e6cc62c6 7730
10f2d63a 7731else
e6cc62c6 7732
10f2d63a
VZ
7733 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7741
e6cc62c6 7742fi;
10f2d63a
VZ
7743
7744 eval "$ac_cv_use_statline"
7745 if test "$no_cache" != 1; then
7746 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7747 fi
7748
7749 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7750 echo "$as_me:$LINENO: result: yes" >&5
7751echo "${ECHO_T}yes" >&6
10f2d63a 7752 else
e6cc62c6
VS
7753 echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6
10f2d63a 7755 fi
e6cc62c6 7756
10f2d63a 7757
5005acfe 7758 enablestring=
e6cc62c6
VS
7759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7760echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7761 no_cache=0
7762 # Check whether --enable-stattext or --disable-stattext was given.
7763if test "${enable_stattext+set}" = set; then
7764 enableval="$enable_stattext"
e6cc62c6 7765
1e6feb95
VZ
7766 if test "$enableval" = yes; then
7767 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7768 else
7769 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7770 fi
e6cc62c6 7771
1e6feb95 7772else
e6cc62c6 7773
1e6feb95
VZ
7774 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7782
e6cc62c6 7783fi;
1e6feb95
VZ
7784
7785 eval "$ac_cv_use_stattext"
7786 if test "$no_cache" != 1; then
7787 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7788 fi
7789
7790 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7791 echo "$as_me:$LINENO: result: yes" >&5
7792echo "${ECHO_T}yes" >&6
1e6feb95 7793 else
e6cc62c6
VS
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
1e6feb95 7796 fi
e6cc62c6 7797
1e6feb95 7798
5005acfe 7799 enablestring=
e6cc62c6
VS
7800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7801echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7802 no_cache=0
7803 # Check whether --enable-statusbar or --disable-statusbar was given.
7804if test "${enable_statusbar+set}" = set; then
7805 enableval="$enable_statusbar"
e6cc62c6 7806
10f2d63a
VZ
7807 if test "$enableval" = yes; then
7808 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7809 else
7810 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7811 fi
e6cc62c6 7812
10f2d63a 7813else
e6cc62c6 7814
10f2d63a
VZ
7815 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7823
e6cc62c6 7824fi;
10f2d63a
VZ
7825
7826 eval "$ac_cv_use_statusbar"
7827 if test "$no_cache" != 1; then
7828 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7829 fi
7830
7831 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7832 echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6
10f2d63a 7834 else
e6cc62c6
VS
7835 echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6
10f2d63a 7837 fi
e6cc62c6 7838
10f2d63a 7839
5005acfe 7840 enablestring=
e6cc62c6
VS
7841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7842echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7843 no_cache=0
7844 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7845if test "${enable_tabdialog+set}" = set; then
7846 enableval="$enable_tabdialog"
e6cc62c6 7847
10f2d63a
VZ
7848 if test "$enableval" = yes; then
7849 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7850 else
7851 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7852 fi
e6cc62c6 7853
10f2d63a 7854else
e6cc62c6 7855
10f2d63a
VZ
7856 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7857 if test "x$LINE" != x ; then
7858 eval "DEFAULT_$LINE"
7859 else
7860 no_cache=1
7861 fi
7862
7863 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7864
e6cc62c6 7865fi;
10f2d63a
VZ
7866
7867 eval "$ac_cv_use_tabdialog"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7873 echo "$as_me:$LINENO: result: yes" >&5
7874echo "${ECHO_T}yes" >&6
10f2d63a 7875 else
e6cc62c6
VS
7876 echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
10f2d63a 7878 fi
e6cc62c6 7879
10f2d63a 7880
5005acfe 7881 enablestring=
e6cc62c6
VS
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7884 no_cache=0
7885 # Check whether --enable-textctrl or --disable-textctrl was given.
7886if test "${enable_textctrl+set}" = set; then
7887 enableval="$enable_textctrl"
e6cc62c6 7888
1e6feb95
VZ
7889 if test "$enableval" = yes; then
7890 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7891 else
7892 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7893 fi
e6cc62c6 7894
1e6feb95 7895else
e6cc62c6 7896
1e6feb95
VZ
7897 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7905
e6cc62c6 7906fi;
1e6feb95
VZ
7907
7908 eval "$ac_cv_use_textctrl"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
1e6feb95 7916 else
e6cc62c6
VS
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
1e6feb95 7919 fi
e6cc62c6 7920
1e6feb95 7921
5005acfe 7922 enablestring=
e6cc62c6
VS
7923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7924echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7925 no_cache=0
7926 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7927if test "${enable_togglebtn+set}" = set; then
7928 enableval="$enable_togglebtn"
e6cc62c6 7929
1db8dc4a
VZ
7930 if test "$enableval" = yes; then
7931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7932 else
7933 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7934 fi
e6cc62c6 7935
1db8dc4a 7936else
e6cc62c6 7937
1db8dc4a
VZ
7938 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7946
e6cc62c6 7947fi;
1db8dc4a
VZ
7948
7949 eval "$ac_cv_use_togglebtn"
7950 if test "$no_cache" != 1; then
7951 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7952 fi
7953
7954 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
1db8dc4a 7957 else
e6cc62c6
VS
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
1db8dc4a 7960 fi
e6cc62c6 7961
1db8dc4a 7962
5005acfe 7963 enablestring=
e6cc62c6
VS
7964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7965echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7966 no_cache=0
7967 # Check whether --enable-toolbar or --disable-toolbar was given.
7968if test "${enable_toolbar+set}" = set; then
7969 enableval="$enable_toolbar"
e6cc62c6 7970
10f2d63a
VZ
7971 if test "$enableval" = yes; then
7972 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7973 else
7974 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7975 fi
e6cc62c6 7976
10f2d63a 7977else
e6cc62c6 7978
10f2d63a
VZ
7979 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7980 if test "x$LINE" != x ; then
7981 eval "DEFAULT_$LINE"
7982 else
7983 no_cache=1
7984 fi
7985
7986 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7987
e6cc62c6 7988fi;
10f2d63a
VZ
7989
7990 eval "$ac_cv_use_toolbar"
7991 if test "$no_cache" != 1; then
7992 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7993 fi
7994
7995 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7996 echo "$as_me:$LINENO: result: yes" >&5
7997echo "${ECHO_T}yes" >&6
10f2d63a 7998 else
e6cc62c6
VS
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
10f2d63a 8001 fi
e6cc62c6 8002
10f2d63a 8003
5005acfe 8004 enablestring=
e6cc62c6
VS
8005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8006echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8007 no_cache=0
8008 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8009if test "${enable_tbarnative+set}" = set; then
8010 enableval="$enable_tbarnative"
e6cc62c6 8011
360d6699
VZ
8012 if test "$enableval" = yes; then
8013 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8014 else
8015 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8016 fi
e6cc62c6 8017
360d6699 8018else
e6cc62c6 8019
360d6699
VZ
8020 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8028
e6cc62c6 8029fi;
360d6699
VZ
8030
8031 eval "$ac_cv_use_tbarnative"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8037 echo "$as_me:$LINENO: result: yes" >&5
8038echo "${ECHO_T}yes" >&6
360d6699 8039 else
e6cc62c6
VS
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
360d6699 8042 fi
e6cc62c6 8043
360d6699 8044
5005acfe 8045 enablestring=
e6cc62c6
VS
8046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8047echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8048 no_cache=0
8049 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8050if test "${enable_tbarsmpl+set}" = set; then
8051 enableval="$enable_tbarsmpl"
e6cc62c6 8052
360d6699
VZ
8053 if test "$enableval" = yes; then
8054 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8055 else
8056 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8057 fi
e6cc62c6 8058
360d6699 8059else
e6cc62c6 8060
360d6699
VZ
8061 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8062 if test "x$LINE" != x ; then
8063 eval "DEFAULT_$LINE"
8064 else
8065 no_cache=1
8066 fi
8067
8068 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8069
e6cc62c6 8070fi;
360d6699
VZ
8071
8072 eval "$ac_cv_use_tbarsmpl"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8078 echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6
360d6699 8080 else
e6cc62c6
VS
8081 echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
360d6699 8083 fi
e6cc62c6 8084
360d6699 8085
5005acfe 8086 enablestring=
e6cc62c6
VS
8087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8088echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8089 no_cache=0
8090 # Check whether --enable-treectrl or --disable-treectrl was given.
8091if test "${enable_treectrl+set}" = set; then
8092 enableval="$enable_treectrl"
e6cc62c6 8093
10f2d63a
VZ
8094 if test "$enableval" = yes; then
8095 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8096 else
8097 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8098 fi
e6cc62c6 8099
10f2d63a 8100else
e6cc62c6 8101
10f2d63a
VZ
8102 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8110
e6cc62c6 8111fi;
10f2d63a 8112
1e6feb95
VZ
8113 eval "$ac_cv_use_treectrl"
8114 if test "$no_cache" != 1; then
8115 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8116 fi
8117
8118 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8119 echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
1e6feb95 8121 else
e6cc62c6
VS
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
1e6feb95 8124 fi
e6cc62c6 8125
1e6feb95 8126
5005acfe 8127 enablestring=
e6cc62c6
VS
8128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8129echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8130 no_cache=0
8131 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8132if test "${enable_tipwindow+set}" = set; then
8133 enableval="$enable_tipwindow"
e6cc62c6 8134
9926e4a4
VZ
8135 if test "$enableval" = yes; then
8136 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8137 else
8138 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8139 fi
e6cc62c6 8140
9926e4a4 8141else
e6cc62c6 8142
9926e4a4
VZ
8143 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8144 if test "x$LINE" != x ; then
8145 eval "DEFAULT_$LINE"
8146 else
8147 no_cache=1
8148 fi
8149
8150 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8151
e6cc62c6 8152fi;
9926e4a4
VZ
8153
8154 eval "$ac_cv_use_tipwindow"
8155 if test "$no_cache" != 1; then
8156 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8157 fi
8158
8159 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
9926e4a4 8162 else
e6cc62c6
VS
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
9926e4a4 8165 fi
e6cc62c6 8166
9926e4a4 8167
5005acfe 8168 enablestring=
e6cc62c6
VS
8169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8170echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8171 no_cache=0
8172 # Check whether --enable-popupwin or --disable-popupwin was given.
8173if test "${enable_popupwin+set}" = set; then
8174 enableval="$enable_popupwin"
e6cc62c6 8175
9f41d601
RR
8176 if test "$enableval" = yes; then
8177 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8178 else
8179 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8180 fi
e6cc62c6 8181
9f41d601 8182else
e6cc62c6 8183
9f41d601
RR
8184 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8185 if test "x$LINE" != x ; then
8186 eval "DEFAULT_$LINE"
8187 else
8188 no_cache=1
8189 fi
8190
8191 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8192
e6cc62c6 8193fi;
9f41d601
RR
8194
8195 eval "$ac_cv_use_popupwin"
8196 if test "$no_cache" != 1; then
8197 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8198 fi
8199
8200 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8201 echo "$as_me:$LINENO: result: yes" >&5
8202echo "${ECHO_T}yes" >&6
9f41d601 8203 else
e6cc62c6
VS
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
9f41d601 8206 fi
e6cc62c6 8207
52127426 8208
8284b0c5
MB
8209
8210
5005acfe 8211 enablestring=
e6cc62c6
VS
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8214 no_cache=0
8215 # Check whether --enable-commondlg or --disable-commondlg was given.
8216if test "${enable_commondlg+set}" = set; then
8217 enableval="$enable_commondlg"
e6cc62c6 8218
1e6feb95
VZ
8219 if test "$enableval" = yes; then
8220 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8221 else
8222 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8223 fi
e6cc62c6 8224
1e6feb95 8225else
e6cc62c6 8226
1e6feb95
VZ
8227 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8235
e6cc62c6 8236fi;
1e6feb95
VZ
8237
8238 eval "$ac_cv_use_commondlg"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
1e6feb95 8246 else
e6cc62c6
VS
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
1e6feb95 8249 fi
e6cc62c6 8250
1e6feb95 8251
5005acfe 8252 enablestring=
e6cc62c6
VS
8253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8254echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8255 no_cache=0
8256 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8257if test "${enable_choicedlg+set}" = set; then
8258 enableval="$enable_choicedlg"
e6cc62c6 8259
1e6feb95
VZ
8260 if test "$enableval" = yes; then
8261 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8262 else
8263 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8264 fi
e6cc62c6 8265
1e6feb95 8266else
e6cc62c6 8267
1e6feb95
VZ
8268 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8276
e6cc62c6 8277fi;
1e6feb95
VZ
8278
8279 eval "$ac_cv_use_choicedlg"
8280 if test "$no_cache" != 1; then
8281 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8282 fi
8283
8284 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8285 echo "$as_me:$LINENO: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
1e6feb95 8287 else
e6cc62c6
VS
8288 echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6
1e6feb95 8290 fi
e6cc62c6 8291
1e6feb95 8292
5005acfe 8293 enablestring=
e6cc62c6
VS
8294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8295echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8296 no_cache=0
8297 # Check whether --enable-coldlg or --disable-coldlg was given.
8298if test "${enable_coldlg+set}" = set; then
8299 enableval="$enable_coldlg"
e6cc62c6 8300
1e6feb95
VZ
8301 if test "$enableval" = yes; then
8302 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8303 else
8304 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8305 fi
e6cc62c6 8306
1e6feb95 8307else
e6cc62c6 8308
1e6feb95
VZ
8309 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8317
e6cc62c6 8318fi;
1e6feb95
VZ
8319
8320 eval "$ac_cv_use_coldlg"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8326 echo "$as_me:$LINENO: result: yes" >&5
8327echo "${ECHO_T}yes" >&6
1e6feb95 8328 else
e6cc62c6
VS
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
1e6feb95 8331 fi
e6cc62c6 8332
1e6feb95 8333
5005acfe 8334 enablestring=
e6cc62c6
VS
8335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8336echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8337 no_cache=0
8338 # Check whether --enable-filedlg or --disable-filedlg was given.
8339if test "${enable_filedlg+set}" = set; then
8340 enableval="$enable_filedlg"
e6cc62c6 8341
1e6feb95
VZ
8342 if test "$enableval" = yes; then
8343 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8344 else
8345 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8346 fi
e6cc62c6 8347
1e6feb95 8348else
e6cc62c6 8349
1e6feb95
VZ
8350 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8358
e6cc62c6 8359fi;
1e6feb95
VZ
8360
8361 eval "$ac_cv_use_filedlg"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8367 echo "$as_me:$LINENO: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
1e6feb95 8369 else
e6cc62c6
VS
8370 echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
1e6feb95 8372 fi
e6cc62c6 8373
1e6feb95 8374
5005acfe 8375 enablestring=
e6cc62c6
VS
8376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8377echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8378 no_cache=0
69d27ff7
MB
8379 # Check whether --enable-finddlg or --disable-finddlg was given.
8380if test "${enable_finddlg+set}" = set; then
8381 enableval="$enable_finddlg"
e6cc62c6 8382
8db37e06 8383 if test "$enableval" = yes; then
69d27ff7 8384 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8385 else
69d27ff7 8386 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8387 fi
e6cc62c6 8388
8db37e06 8389else
e6cc62c6 8390
8db37e06
VZ
8391 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
69d27ff7 8398 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8399
e6cc62c6 8400fi;
8db37e06 8401
69d27ff7 8402 eval "$ac_cv_use_finddlg"
8db37e06 8403 if test "$no_cache" != 1; then
69d27ff7 8404 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8405 fi
8406
8407 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8408 echo "$as_me:$LINENO: result: yes" >&5
8409echo "${ECHO_T}yes" >&6
8db37e06 8410 else
e6cc62c6
VS
8411 echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6
8db37e06 8413 fi
e6cc62c6 8414
8db37e06 8415
5005acfe 8416 enablestring=
e6cc62c6
VS
8417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8418echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8419 no_cache=0
8420 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8421if test "${enable_fontdlg+set}" = set; then
8422 enableval="$enable_fontdlg"
e6cc62c6 8423
1e6feb95
VZ
8424 if test "$enableval" = yes; then
8425 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8426 else
8427 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8428 fi
e6cc62c6 8429
1e6feb95 8430else
e6cc62c6 8431
1e6feb95
VZ
8432 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8433 if test "x$LINE" != x ; then
8434 eval "DEFAULT_$LINE"
8435 else
8436 no_cache=1
8437 fi
8438
8439 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8440
e6cc62c6 8441fi;
1e6feb95
VZ
8442
8443 eval "$ac_cv_use_fontdlg"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
1e6feb95 8451 else
e6cc62c6
VS
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
1e6feb95 8454 fi
e6cc62c6 8455
1e6feb95 8456
5005acfe 8457 enablestring=
e6cc62c6
VS
8458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8459echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8460 no_cache=0
8461 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8462if test "${enable_dirdlg+set}" = set; then
8463 enableval="$enable_dirdlg"
e6cc62c6 8464
1e6feb95
VZ
8465 if test "$enableval" = yes; then
8466 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8467 else
8468 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8469 fi
e6cc62c6 8470
1e6feb95 8471else
e6cc62c6 8472
1e6feb95
VZ
8473 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8474 if test "x$LINE" != x ; then
8475 eval "DEFAULT_$LINE"
8476 else
8477 no_cache=1
8478 fi
8479
8480 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8481
e6cc62c6 8482fi;
1e6feb95
VZ
8483
8484 eval "$ac_cv_use_dirdlg"
10f2d63a 8485 if test "$no_cache" != 1; then
1e6feb95 8486 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8487 fi
8488
1e6feb95 8489 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
10f2d63a 8492 else
e6cc62c6
VS
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
10f2d63a 8495 fi
e6cc62c6 8496
698dcdb6 8497
5005acfe 8498 enablestring=
e6cc62c6
VS
8499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8500echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8501 no_cache=0
1e6feb95
VZ
8502 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8503if test "${enable_msgdlg+set}" = set; then
8504 enableval="$enable_msgdlg"
e6cc62c6 8505
10f2d63a 8506 if test "$enableval" = yes; then
1e6feb95 8507 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8508 else
1e6feb95 8509 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8510 fi
e6cc62c6 8511
10f2d63a 8512else
e6cc62c6 8513
1e6feb95 8514 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
1e6feb95 8521 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8522
e6cc62c6 8523fi;
10f2d63a 8524
1e6feb95 8525 eval "$ac_cv_use_msgdlg"
10f2d63a 8526 if test "$no_cache" != 1; then
1e6feb95 8527 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8528 fi
8529
1e6feb95 8530 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8531 echo "$as_me:$LINENO: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
10f2d63a 8533 else
e6cc62c6
VS
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
10f2d63a 8536 fi
e6cc62c6 8537
10f2d63a 8538
5005acfe 8539 enablestring=
e6cc62c6
VS
8540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8541echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8542 no_cache=0
1e6feb95
VZ
8543 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8544if test "${enable_numberdlg+set}" = set; then
8545 enableval="$enable_numberdlg"
e6cc62c6 8546
10f2d63a 8547 if test "$enableval" = yes; then
1e6feb95 8548 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8549 else
1e6feb95 8550 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8551 fi
e6cc62c6 8552
10f2d63a 8553else
e6cc62c6 8554
1e6feb95 8555 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
1e6feb95 8562 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8563
e6cc62c6 8564fi;
10f2d63a 8565
1e6feb95 8566 eval "$ac_cv_use_numberdlg"
10f2d63a 8567 if test "$no_cache" != 1; then
1e6feb95 8568 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8569 fi
8570
1e6feb95 8571 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8572 echo "$as_me:$LINENO: result: yes" >&5
8573echo "${ECHO_T}yes" >&6
10f2d63a 8574 else
e6cc62c6
VS
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
10f2d63a 8577 fi
e6cc62c6 8578
10f2d63a 8579
5005acfe 8580 enablestring=
e6cc62c6
VS
8581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8583 no_cache=0
8584 # Check whether --enable-splash or --disable-splash was given.
8585if test "${enable_splash+set}" = set; then
8586 enableval="$enable_splash"
e6cc62c6 8587
cbca9943
VZ
8588 if test "$enableval" = yes; then
8589 ac_cv_use_splash='wxUSE_SPLASH=yes'
8590 else
8591 ac_cv_use_splash='wxUSE_SPLASH=no'
8592 fi
e6cc62c6 8593
cbca9943 8594else
e6cc62c6 8595
cbca9943
VZ
8596 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8597 if test "x$LINE" != x ; then
8598 eval "DEFAULT_$LINE"
8599 else
8600 no_cache=1
8601 fi
8602
8603 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8604
e6cc62c6 8605fi;
cbca9943
VZ
8606
8607 eval "$ac_cv_use_splash"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8613 echo "$as_me:$LINENO: result: yes" >&5
8614echo "${ECHO_T}yes" >&6
cbca9943 8615 else
e6cc62c6
VS
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
cbca9943 8618 fi
e6cc62c6 8619
cbca9943 8620
5005acfe 8621 enablestring=
e6cc62c6
VS
8622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8623echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8624 no_cache=0
8625 # Check whether --enable-textdlg or --disable-textdlg was given.
8626if test "${enable_textdlg+set}" = set; then
8627 enableval="$enable_textdlg"
e6cc62c6 8628
10f2d63a
VZ
8629 if test "$enableval" = yes; then
8630 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8631 else
8632 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8633 fi
e6cc62c6 8634
10f2d63a 8635else
e6cc62c6 8636
10f2d63a
VZ
8637 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8638 if test "x$LINE" != x ; then
8639 eval "DEFAULT_$LINE"
8640 else
8641 no_cache=1
8642 fi
8643
8644 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8645
e6cc62c6 8646fi;
10f2d63a
VZ
8647
8648 eval "$ac_cv_use_textdlg"
8649 if test "$no_cache" != 1; then
8650 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8651 fi
8652
8653 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
10f2d63a 8656 else
e6cc62c6
VS
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
10f2d63a 8659 fi
e6cc62c6 8660
10f2d63a 8661
5005acfe 8662 enablestring=
e6cc62c6
VS
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8665 no_cache=0
8666 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8667if test "${enable_tipdlg+set}" = set; then
8668 enableval="$enable_tipdlg"
e6cc62c6 8669
10f2d63a
VZ
8670 if test "$enableval" = yes; then
8671 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8672 else
8673 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8674 fi
e6cc62c6 8675
10f2d63a 8676else
e6cc62c6 8677
10f2d63a
VZ
8678 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8686
e6cc62c6 8687fi;
10f2d63a
VZ
8688
8689 eval "$ac_cv_use_tipdlg"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
10f2d63a 8697 else
e6cc62c6
VS
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
10f2d63a 8700 fi
e6cc62c6 8701
10f2d63a 8702
5005acfe 8703 enablestring=
e6cc62c6
VS
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8706 no_cache=0
8707 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8708if test "${enable_progressdlg+set}" = set; then
8709 enableval="$enable_progressdlg"
e6cc62c6 8710
10f2d63a
VZ
8711 if test "$enableval" = yes; then
8712 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8713 else
8714 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8715 fi
e6cc62c6 8716
10f2d63a 8717else
e6cc62c6 8718
10f2d63a
VZ
8719 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8727
e6cc62c6 8728fi;
10f2d63a
VZ
8729
8730 eval "$ac_cv_use_progressdlg"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
10f2d63a 8738 else
e6cc62c6
VS
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
10f2d63a 8741 fi
e6cc62c6 8742
10f2d63a 8743
5005acfe 8744 enablestring=
e6cc62c6
VS
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8747 no_cache=0
8748 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8749if test "${enable_wizarddlg+set}" = set; then
8750 enableval="$enable_wizarddlg"
e6cc62c6 8751
b1f5d087
VZ
8752 if test "$enableval" = yes; then
8753 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8754 else
8755 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8756 fi
e6cc62c6 8757
b1f5d087 8758else
e6cc62c6 8759
b1f5d087
VZ
8760 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8768
e6cc62c6 8769fi;
b1f5d087
VZ
8770
8771 eval "$ac_cv_use_wizarddlg"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
b1f5d087 8779 else
e6cc62c6
VS
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
b1f5d087 8782 fi
e6cc62c6 8783
8284b0c5
MB
8784
8785
52127426 8786
5005acfe 8787 enablestring=
e6cc62c6
VS
8788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8789echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8790 no_cache=0
8791 # Check whether --enable-menus or --disable-menus was given.
8792if test "${enable_menus+set}" = set; then
8793 enableval="$enable_menus"
e6cc62c6 8794
1e6feb95
VZ
8795 if test "$enableval" = yes; then
8796 ac_cv_use_menus='wxUSE_MENUS=yes'
8797 else
8798 ac_cv_use_menus='wxUSE_MENUS=no'
8799 fi
e6cc62c6 8800
1e6feb95 8801else
e6cc62c6 8802
1e6feb95
VZ
8803 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8804 if test "x$LINE" != x ; then
8805 eval "DEFAULT_$LINE"
8806 else
8807 no_cache=1
8808 fi
8809
8810 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8811
e6cc62c6 8812fi;
1e6feb95
VZ
8813
8814 eval "$ac_cv_use_menus"
8815 if test "$no_cache" != 1; then
8816 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8817 fi
8818
8819 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8820 echo "$as_me:$LINENO: result: yes" >&5
8821echo "${ECHO_T}yes" >&6
1e6feb95 8822 else
e6cc62c6
VS
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
1e6feb95 8825 fi
e6cc62c6 8826
1e6feb95 8827
5005acfe 8828 enablestring=
e6cc62c6
VS
8829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8830echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8831 no_cache=0
8832 # Check whether --enable-miniframe or --disable-miniframe was given.
8833if test "${enable_miniframe+set}" = set; then
8834 enableval="$enable_miniframe"
e6cc62c6 8835
10f2d63a
VZ
8836 if test "$enableval" = yes; then
8837 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8838 else
8839 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8840 fi
e6cc62c6 8841
10f2d63a 8842else
e6cc62c6 8843
10f2d63a
VZ
8844 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8845 if test "x$LINE" != x ; then
8846 eval "DEFAULT_$LINE"
8847 else
8848 no_cache=1
8849 fi
8850
8851 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8852
e6cc62c6 8853fi;
10f2d63a
VZ
8854
8855 eval "$ac_cv_use_miniframe"
8856 if test "$no_cache" != 1; then
8857 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8858 fi
8859
8860 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8861 echo "$as_me:$LINENO: result: yes" >&5
8862echo "${ECHO_T}yes" >&6
10f2d63a 8863 else
e6cc62c6
VS
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
10f2d63a 8866 fi
e6cc62c6 8867
10f2d63a 8868
5005acfe 8869 enablestring=
e6cc62c6
VS
8870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8871echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8872 no_cache=0
8873 # Check whether --enable-tooltips or --disable-tooltips was given.
8874if test "${enable_tooltips+set}" = set; then
8875 enableval="$enable_tooltips"
e6cc62c6 8876
10f2d63a
VZ
8877 if test "$enableval" = yes; then
8878 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8879 else
8880 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8881 fi
e6cc62c6 8882
10f2d63a 8883else
e6cc62c6 8884
10f2d63a
VZ
8885 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8886 if test "x$LINE" != x ; then
8887 eval "DEFAULT_$LINE"
8888 else
8889 no_cache=1
8890 fi
8891
8892 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8893
e6cc62c6 8894fi;
10f2d63a
VZ
8895
8896 eval "$ac_cv_use_tooltips"
8897 if test "$no_cache" != 1; then
8898 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8899 fi
8900
8901 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8902 echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
10f2d63a 8904 else
e6cc62c6
VS
8905 echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6
10f2d63a 8907 fi
e6cc62c6 8908
10f2d63a 8909
5005acfe 8910 enablestring=
e6cc62c6
VS
8911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8912echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8913 no_cache=0
8914 # Check whether --enable-splines or --disable-splines was given.
8915if test "${enable_splines+set}" = set; then
8916 enableval="$enable_splines"
e6cc62c6 8917
10f2d63a
VZ
8918 if test "$enableval" = yes; then
8919 ac_cv_use_splines='wxUSE_SPLINES=yes'
8920 else
8921 ac_cv_use_splines='wxUSE_SPLINES=no'
8922 fi
e6cc62c6 8923
10f2d63a 8924else
e6cc62c6 8925
10f2d63a
VZ
8926 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8927 if test "x$LINE" != x ; then
8928 eval "DEFAULT_$LINE"
8929 else
8930 no_cache=1
8931 fi
8932
8933 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8934
e6cc62c6 8935fi;
10f2d63a
VZ
8936
8937 eval "$ac_cv_use_splines"
8938 if test "$no_cache" != 1; then
8939 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8940 fi
8941
8942 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8943 echo "$as_me:$LINENO: result: yes" >&5
8944echo "${ECHO_T}yes" >&6
10f2d63a 8945 else
e6cc62c6
VS
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
10f2d63a 8948 fi
e6cc62c6 8949
10f2d63a 8950
5005acfe 8951 enablestring=
e6cc62c6
VS
8952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8953echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8954 no_cache=0
8955 # Check whether --enable-validators or --disable-validators was given.
8956if test "${enable_validators+set}" = set; then
8957 enableval="$enable_validators"
e6cc62c6 8958
10f2d63a
VZ
8959 if test "$enableval" = yes; then
8960 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8961 else
8962 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8963 fi
e6cc62c6 8964
10f2d63a 8965else
e6cc62c6 8966
10f2d63a
VZ
8967 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8968 if test "x$LINE" != x ; then
8969 eval "DEFAULT_$LINE"
8970 else
8971 no_cache=1
8972 fi
8973
8974 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8975
e6cc62c6 8976fi;
10f2d63a
VZ
8977
8978 eval "$ac_cv_use_validators"
8979 if test "$no_cache" != 1; then
8980 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8981 fi
8982
8983 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8984 echo "$as_me:$LINENO: result: yes" >&5
8985echo "${ECHO_T}yes" >&6
10f2d63a 8986 else
e6cc62c6
VS
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
10f2d63a 8989 fi
e6cc62c6 8990
10f2d63a 8991
5005acfe 8992 enablestring=
e6cc62c6
VS
8993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8994echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8995 no_cache=0
8996 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8997if test "${enable_busyinfo+set}" = set; then
8998 enableval="$enable_busyinfo"
e6cc62c6 8999
10f2d63a
VZ
9000 if test "$enableval" = yes; then
9001 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9002 else
9003 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9004 fi
e6cc62c6 9005
10f2d63a 9006else
e6cc62c6 9007
10f2d63a
VZ
9008 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9009 if test "x$LINE" != x ; then
9010 eval "DEFAULT_$LINE"
9011 else
9012 no_cache=1
9013 fi
9014
9015 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9016
e6cc62c6 9017fi;
10f2d63a
VZ
9018
9019 eval "$ac_cv_use_busyinfo"
9020 if test "$no_cache" != 1; then
9021 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9022 fi
9023
9024 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9025 echo "$as_me:$LINENO: result: yes" >&5
9026echo "${ECHO_T}yes" >&6
10f2d63a 9027 else
e6cc62c6
VS
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
10f2d63a 9030 fi
e6cc62c6 9031
10f2d63a 9032
5005acfe 9033 enablestring=
e6cc62c6
VS
9034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9035echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9036 no_cache=0
9037 # Check whether --enable-joystick or --disable-joystick was given.
9038if test "${enable_joystick+set}" = set; then
9039 enableval="$enable_joystick"
e6cc62c6 9040
f6bcfd97
BP
9041 if test "$enableval" = yes; then
9042 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9043 else
9044 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9045 fi
e6cc62c6 9046
f6bcfd97 9047else
e6cc62c6 9048
f6bcfd97
BP
9049 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9050 if test "x$LINE" != x ; then
9051 eval "DEFAULT_$LINE"
9052 else
9053 no_cache=1
9054 fi
9055
9056 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9057
e6cc62c6 9058fi;
f6bcfd97
BP
9059
9060 eval "$ac_cv_use_joystick"
9061 if test "$no_cache" != 1; then
9062 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9063 fi
9064
9065 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
f6bcfd97 9068 else
e6cc62c6
VS
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
f6bcfd97 9071 fi
e6cc62c6 9072
698dcdb6 9073
5005acfe 9074 enablestring=
e6cc62c6
VS
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9077 no_cache=0
9078 # Check whether --enable-metafile or --disable-metafile was given.
9079if test "${enable_metafile+set}" = set; then
9080 enableval="$enable_metafile"
e6cc62c6 9081
1e6feb95
VZ
9082 if test "$enableval" = yes; then
9083 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9084 else
9085 ac_cv_use_metafile='wxUSE_METAFILE=no'
9086 fi
e6cc62c6 9087
1e6feb95 9088else
e6cc62c6 9089
1e6feb95
VZ
9090 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9098
e6cc62c6 9099fi;
1e6feb95
VZ
9100
9101 eval "$ac_cv_use_metafile"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
1e6feb95 9109 else
e6cc62c6
VS
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
1e6feb95 9112 fi
e6cc62c6 9113
1e6feb95 9114
5005acfe 9115 enablestring=
e6cc62c6
VS
9116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9117echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9118 no_cache=0
9119 # Check whether --enable-dragimage or --disable-dragimage was given.
9120if test "${enable_dragimage+set}" = set; then
9121 enableval="$enable_dragimage"
e6cc62c6 9122
24fd6d87
VZ
9123 if test "$enableval" = yes; then
9124 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9125 else
9126 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9127 fi
e6cc62c6 9128
24fd6d87 9129else
e6cc62c6 9130
24fd6d87
VZ
9131 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9132 if test "x$LINE" != x ; then
9133 eval "DEFAULT_$LINE"
9134 else
9135 no_cache=1
9136 fi
9137
9138 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9139
e6cc62c6 9140fi;
24fd6d87
VZ
9141
9142 eval "$ac_cv_use_dragimage"
9143 if test "$no_cache" != 1; then
9144 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9145 fi
9146
9147 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9148 echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
24fd6d87 9150 else
e6cc62c6
VS
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
24fd6d87 9153 fi
e6cc62c6 9154
52127426 9155
7bb2947d 9156 enablestring=
e6cc62c6
VS
9157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9158echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9159 no_cache=0
9160 # Check whether --enable-accessibility or --disable-accessibility was given.
9161if test "${enable_accessibility+set}" = set; then
9162 enableval="$enable_accessibility"
e6cc62c6 9163
7bb2947d
MB
9164 if test "$enableval" = yes; then
9165 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9166 else
9167 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9168 fi
e6cc62c6 9169
7bb2947d 9170else
e6cc62c6 9171
7bb2947d
MB
9172 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9173 if test "x$LINE" != x ; then
9174 eval "DEFAULT_$LINE"
9175 else
9176 no_cache=1
9177 fi
9178
9179 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9180
e6cc62c6 9181fi;
7bb2947d
MB
9182
9183 eval "$ac_cv_use_accessibility"
9184 if test "$no_cache" != 1; then
9185 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9186 fi
9187
9188 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9189 echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6
7bb2947d 9191 else
e6cc62c6
VS
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
7bb2947d 9194 fi
e6cc62c6 9195
7bb2947d 9196
8284b0c5
MB
9197
9198
5005acfe 9199 enablestring=
e6cc62c6
VS
9200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9201echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9202 no_cache=0
9203 # Check whether --enable-palette or --disable-palette was given.
9204if test "${enable_palette+set}" = set; then
9205 enableval="$enable_palette"
e6cc62c6 9206
edae8572
VZ
9207 if test "$enableval" = yes; then
9208 ac_cv_use_palette='wxUSE_PALETTE=yes'
9209 else
9210 ac_cv_use_palette='wxUSE_PALETTE=no'
9211 fi
e6cc62c6 9212
edae8572 9213else
e6cc62c6 9214
edae8572
VZ
9215 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9216 if test "x$LINE" != x ; then
9217 eval "DEFAULT_$LINE"
9218 else
9219 no_cache=1
9220 fi
9221
9222 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9223
e6cc62c6 9224fi;
edae8572
VZ
9225
9226 eval "$ac_cv_use_palette"
9227 if test "$no_cache" != 1; then
9228 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9229 fi
9230
9231 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9232 echo "$as_me:$LINENO: result: yes" >&5
9233echo "${ECHO_T}yes" >&6
edae8572 9234 else
e6cc62c6
VS
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
edae8572 9237 fi
e6cc62c6 9238
edae8572 9239
5005acfe 9240 enablestring=
e6cc62c6
VS
9241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9242echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9243 no_cache=0
9244 # Check whether --enable-image or --disable-image was given.
9245if test "${enable_image+set}" = set; then
9246 enableval="$enable_image"
e6cc62c6 9247
0046ff7c
VS
9248 if test "$enableval" = yes; then
9249 ac_cv_use_image='wxUSE_IMAGE=yes'
9250 else
9251 ac_cv_use_image='wxUSE_IMAGE=no'
9252 fi
e6cc62c6 9253
0046ff7c 9254else
e6cc62c6 9255
0046ff7c
VS
9256 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9257 if test "x$LINE" != x ; then
9258 eval "DEFAULT_$LINE"
9259 else
9260 no_cache=1
9261 fi
9262
9263 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9264
e6cc62c6 9265fi;
0046ff7c
VS
9266
9267 eval "$ac_cv_use_image"
9268 if test "$no_cache" != 1; then
9269 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9270 fi
9271
9272 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9273 echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6
0046ff7c 9275 else
e6cc62c6
VS
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
0046ff7c 9278 fi
e6cc62c6 9279
0046ff7c 9280
5005acfe 9281 enablestring=
e6cc62c6
VS
9282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9283echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9284 no_cache=0
9285 # Check whether --enable-gif or --disable-gif was given.
9286if test "${enable_gif+set}" = set; then
9287 enableval="$enable_gif"
e6cc62c6 9288
10f2d63a
VZ
9289 if test "$enableval" = yes; then
9290 ac_cv_use_gif='wxUSE_GIF=yes'
9291 else
9292 ac_cv_use_gif='wxUSE_GIF=no'
9293 fi
e6cc62c6 9294
10f2d63a 9295else
e6cc62c6 9296
10f2d63a
VZ
9297 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9298 if test "x$LINE" != x ; then
9299 eval "DEFAULT_$LINE"
9300 else
9301 no_cache=1
9302 fi
9303
9304 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9305
e6cc62c6 9306fi;
10f2d63a
VZ
9307
9308 eval "$ac_cv_use_gif"
9309 if test "$no_cache" != 1; then
9310 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9311 fi
9312
9313 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9314 echo "$as_me:$LINENO: result: yes" >&5
9315echo "${ECHO_T}yes" >&6
10f2d63a 9316 else
e6cc62c6
VS
9317 echo "$as_me:$LINENO: result: no" >&5
9318echo "${ECHO_T}no" >&6
10f2d63a 9319 fi
e6cc62c6 9320
10f2d63a 9321
5005acfe 9322 enablestring=
e6cc62c6
VS
9323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9324echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9325 no_cache=0
9326 # Check whether --enable-pcx or --disable-pcx was given.
9327if test "${enable_pcx+set}" = set; then
9328 enableval="$enable_pcx"
e6cc62c6 9329
10f2d63a
VZ
9330 if test "$enableval" = yes; then
9331 ac_cv_use_pcx='wxUSE_PCX=yes'
9332 else
9333 ac_cv_use_pcx='wxUSE_PCX=no'
9334 fi
e6cc62c6 9335
10f2d63a 9336else
e6cc62c6 9337
10f2d63a
VZ
9338 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9339 if test "x$LINE" != x ; then
9340 eval "DEFAULT_$LINE"
9341 else
9342 no_cache=1
9343 fi
9344
9345 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9346
e6cc62c6 9347fi;
10f2d63a
VZ
9348
9349 eval "$ac_cv_use_pcx"
9350 if test "$no_cache" != 1; then
9351 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9352 fi
9353
9354 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9355 echo "$as_me:$LINENO: result: yes" >&5
9356echo "${ECHO_T}yes" >&6
10f2d63a 9357 else
e6cc62c6
VS
9358 echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6
10f2d63a 9360 fi
e6cc62c6 9361
10f2d63a 9362
5005acfe 9363 enablestring=
e6cc62c6
VS
9364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9365echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9366 no_cache=0
9367 # Check whether --enable-iff or --disable-iff was given.
9368if test "${enable_iff+set}" = set; then
9369 enableval="$enable_iff"
e6cc62c6 9370
4b6b4dfc
RR
9371 if test "$enableval" = yes; then
9372 ac_cv_use_iff='wxUSE_IFF=yes'
9373 else
9374 ac_cv_use_iff='wxUSE_IFF=no'
9375 fi
e6cc62c6 9376
4b6b4dfc 9377else
e6cc62c6 9378
4b6b4dfc
RR
9379 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9380 if test "x$LINE" != x ; then
9381 eval "DEFAULT_$LINE"
9382 else
9383 no_cache=1
9384 fi
9385
9386 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9387
e6cc62c6 9388fi;
4b6b4dfc
RR
9389
9390 eval "$ac_cv_use_iff"
9391 if test "$no_cache" != 1; then
9392 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9393 fi
9394
9395 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9396 echo "$as_me:$LINENO: result: yes" >&5
9397echo "${ECHO_T}yes" >&6
4b6b4dfc 9398 else
e6cc62c6
VS
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
4b6b4dfc 9401 fi
e6cc62c6 9402
4b6b4dfc 9403
5005acfe 9404 enablestring=
e6cc62c6
VS
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9407 no_cache=0
9408 # Check whether --enable-pnm or --disable-pnm was given.
9409if test "${enable_pnm+set}" = set; then
9410 enableval="$enable_pnm"
e6cc62c6 9411
10f2d63a
VZ
9412 if test "$enableval" = yes; then
9413 ac_cv_use_pnm='wxUSE_PNM=yes'
9414 else
9415 ac_cv_use_pnm='wxUSE_PNM=no'
9416 fi
e6cc62c6 9417
10f2d63a 9418else
e6cc62c6 9419
10f2d63a
VZ
9420 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9428
e6cc62c6 9429fi;
10f2d63a
VZ
9430
9431 eval "$ac_cv_use_pnm"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
10f2d63a 9439 else
e6cc62c6
VS
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
10f2d63a 9442 fi
e6cc62c6 9443
10f2d63a 9444
5005acfe 9445 enablestring=
e6cc62c6
VS
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9447echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9448 no_cache=0
69d27ff7
MB
9449 # Check whether --enable-xpm or --disable-xpm was given.
9450if test "${enable_xpm+set}" = set; then
9451 enableval="$enable_xpm"
e6cc62c6 9452
0046ff7c 9453 if test "$enableval" = yes; then
69d27ff7 9454 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9455 else
69d27ff7 9456 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9457 fi
e6cc62c6 9458
0046ff7c 9459else
e6cc62c6 9460
0046ff7c
VS
9461 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
69d27ff7 9468 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9469
e6cc62c6 9470fi;
0046ff7c 9471
69d27ff7 9472 eval "$ac_cv_use_xpm"
0046ff7c 9473 if test "$no_cache" != 1; then
69d27ff7 9474 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9475 fi
9476
9477 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
0046ff7c 9480 else
e6cc62c6
VS
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
0046ff7c 9483 fi
e6cc62c6 9484
0046ff7c 9485
5005acfe 9486 enablestring=
e6cc62c6
VS
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9488echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9489 no_cache=0
c7206e64
VS
9490 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9491if test "${enable_ico_cur+set}" = set; then
9492 enableval="$enable_ico_cur"
e6cc62c6 9493
658974ae 9494 if test "$enableval" = yes; then
c7206e64 9495 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9496 else
c7206e64 9497 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9498 fi
e6cc62c6 9499
658974ae 9500else
e6cc62c6 9501
658974ae
VS
9502 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
c7206e64 9509 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9510
e6cc62c6 9511fi;
658974ae 9512
c7206e64 9513 eval "$ac_cv_use_ico_cur"
658974ae 9514 if test "$no_cache" != 1; then
c7206e64 9515 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9516 fi
9517
9518 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9519 echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
658974ae 9521 else
e6cc62c6
VS
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
658974ae 9524 fi
e6cc62c6 9525
658974ae 9526
b12915c1
VZ
9527fi
9528
029b47ad
VS
9529
9530
9531 enablestring=
9532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9533echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9534 no_cache=0
9535 # Check whether --enable-official_build or --disable-official_build was given.
9536if test "${enable_official_build+set}" = set; then
9537 enableval="$enable_official_build"
9538
9539 if test "$enableval" = yes; then
9540 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9541 else
9542 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9543 fi
9544
9545else
9546
9547 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9548 if test "x$LINE" != x ; then
9549 eval "DEFAULT_$LINE"
9550 else
9551 no_cache=1
9552 fi
9553
9554 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9555
9556fi;
9557
9558 eval "$ac_cv_use_official_build"
9559 if test "$no_cache" != 1; then
9560 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9561 fi
9562
9563 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9564 echo "$as_me:$LINENO: result: yes" >&5
9565echo "${ECHO_T}yes" >&6
9566 else
9567 echo "$as_me:$LINENO: result: no" >&5
9568echo "${ECHO_T}no" >&6
9569 fi
9570
9571# Check whether --enable-vendor or --disable-vendor was given.
9572if test "${enable_vendor+set}" = set; then
9573 enableval="$enable_vendor"
9574 VENDOR="$enableval"
9575fi;
9576if test "x$VENDOR" = "x"; then
9577 VENDOR="custom"
9578fi
9579
d558c907
VS
9580case "${host}" in
9581 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9582 PATH_IFS=';'
d558c907
VS
9583 ;;
9584 *)
9585 PATH_IFS=':'
d558c907
VS
9586 ;;
9587esac
9588
8284b0c5
MB
9589
9590
10f2d63a
VZ
9591 echo "saving argument cache $wx_arg_cache_file"
9592 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9593
8284b0c5 9594
e6cc62c6
VS
9595
9596echo "$as_me:$LINENO: checking for toolkit" >&5
9597echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9598
9599# In Wine, we need to default to MSW, not GTK or MOTIF
9600if test "$wxUSE_WINE" = "yes"; then
9601 DEFAULT_DEFAULT_wxUSE_GTK=0
9602 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9603 DEFAULT_DEFAULT_wxUSE_MSW=1
9604fi
10f2d63a
VZ
9605
9606if test "$wxUSE_GUI" = "yes"; then
9607
3a922bb4 9608 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9609 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9610echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9611 { (exit 1); exit 1; }; }
3a922bb4 9612 fi
b12915c1 9613
3a922bb4
RL
9614 if test "$TOOLKIT_GIVEN" = 1; then
9615 for toolkit in `echo $ALL_TOOLKITS`; do
9616 var=wxUSE_$toolkit
9617 eval "value=\$${var}"
9618 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9619 done
10f2d63a 9620 else
3a922bb4
RL
9621 for toolkit in `echo $ALL_TOOLKITS`; do
9622 if test "$has_toolkit_in_cache" != 1; then
9623 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9624 else
9625 var=DEFAULT_wxUSE_$toolkit
9626 fi
9627 eval "wxUSE_$toolkit=\$${var}"
9628 done
10f2d63a 9629 fi
10f2d63a 9630
ac0c4cc3
DE
9631 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9632 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9633 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9634
d558c907 9635 case "${host}" in
6fa882bd 9636 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9637 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9638 esac
10f2d63a 9639
3a922bb4
RL
9640 case "$NUM_TOOLKITS" in
9641 1)
9642 ;;
9643 0)
e6cc62c6
VS
9644 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9645echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9646 { (exit 1); exit 1; }; }
3a922bb4
RL
9647 ;;
9648 *)
e6cc62c6
VS
9649 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9650echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9651 { (exit 1); exit 1; }; }
3a922bb4 9652 esac
10f2d63a 9653
3a922bb4
RL
9654 for toolkit in `echo $ALL_TOOLKITS`; do
9655 var=wxUSE_$toolkit
9656 eval "value=\$${var}"
9657 if test "x$value" != x; then
9658 cache_var=CACHE_$toolkit
9659 eval "cache=\$${cache_var}"
9660 if test "$cache" = 1; then
9661 echo "$var=$value" >> ${wx_arg_cache_file}
9662 fi
9663 if test "$value" = 1; then
9664 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9665 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9666echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9667 fi
9668 fi
9669 done
10f2d63a 9670else
9de9b8f0
VZ
9671 if test "x$host_alias" != "x"; then
9672 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9673echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9674 else
9675 echo "$as_me:$LINENO: result: base only" >&5
9676echo "${ECHO_T}base only" >&6
9677 fi
10f2d63a
VZ
9678fi
9679
43d99b6d
VS
9680wants_win32=0
9681doesnt_want_win32=0
17234b26
MB
9682case "${host}" in
9683 *-*-cygwin*)
9684 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9685 wants_win32=1
9686 else
9687 doesnt_want_win32=1
17234b26
MB
9688 fi
9689 ;;
9690 *-*-mingw*)
43d99b6d 9691 wants_win32=1
17234b26
MB
9692 ;;
9693esac
9694
89e6bf6d
VZ
9695if test "$wxUSE_WINE" = "yes"; then
9696 wants_win32=1
9697 CC=winegcc
9698 CXX=wineg++
9699 RESCOMP=wrc
9700fi
9701
43d99b6d 9702if test "$wants_win32" = 1 ; then
17234b26
MB
9703 USE_UNIX=0
9704 USE_WIN32=1
e6cc62c6 9705 cat >>confdefs.h <<\_ACEOF
17234b26 9706#define __WIN32__ 1
e6cc62c6 9707_ACEOF
17234b26 9708
e6cc62c6 9709 cat >>confdefs.h <<\_ACEOF
17234b26 9710#define __WIN95__ 1
e6cc62c6 9711_ACEOF
17234b26 9712
e6cc62c6 9713 cat >>confdefs.h <<\_ACEOF
17234b26 9714#define __WINDOWS__ 1
e6cc62c6 9715_ACEOF
17234b26 9716
e6cc62c6 9717 cat >>confdefs.h <<\_ACEOF
17234b26 9718#define __GNUWIN32__ 1
e6cc62c6 9719_ACEOF
17234b26 9720
e6cc62c6 9721 cat >>confdefs.h <<\_ACEOF
17234b26 9722#define STRICT 1
e6cc62c6 9723_ACEOF
17234b26 9724
e6cc62c6 9725 cat >>confdefs.h <<\_ACEOF
17234b26 9726#define WINVER 0x0400
e6cc62c6 9727_ACEOF
17234b26 9728
43d99b6d
VS
9729fi
9730if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9731 USE_UNIX=1
9732 USE_WIN32=0
9733fi
9734
9735if test "$USE_UNIX" = 1 ; then
9736 wxUSE_UNIX=yes
e6cc62c6 9737 cat >>confdefs.h <<\_ACEOF
17234b26 9738#define __UNIX__ 1
e6cc62c6 9739_ACEOF
17234b26
MB
9740
9741fi
9742
8284b0c5 9743
e6cc62c6 9744cat >confcache <<\_ACEOF
10f2d63a
VZ
9745# This file is a shell script that caches the results of configure
9746# tests run on this system so they can be shared between configure
e6cc62c6
VS
9747# scripts and configure runs, see configure's option --config-cache.
9748# It is not useful on other systems. If it contains results you don't
9749# want to keep, you may remove or edit it.
10f2d63a 9750#
e6cc62c6
VS
9751# config.status only pays attention to the cache file if you give it
9752# the --recheck option to rerun configure.
10f2d63a 9753#
e6cc62c6
VS
9754# `ac_cv_env_foo' variables (set or unset) will be overridden when
9755# loading this file, other *unset* `ac_cv_foo' will be assigned the
9756# following values.
9757
9758_ACEOF
9759
10f2d63a
VZ
9760# The following way of writing the cache mishandles newlines in values,
9761# but we know of no workaround that is simple, portable, and efficient.
9762# So, don't put newlines in cache variables' values.
9763# Ultrix sh set writes to stderr and can't be redirected directly,
9764# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9765{
9766 (set) 2>&1 |
9767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9768 *ac_space=\ *)
9769 # `set' does not quote correctly, so add quotes (double-quote
9770 # substitution turns \\\\ into \\, and sed turns \\ into \).
9771 sed -n \
9772 "s/'/'\\\\''/g;
9773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9774 ;;
9775 *)
9776 # `set' quotes correctly as required by POSIX, so do not add quotes.
9777 sed -n \
9778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9779 ;;
9780 esac;
9781} |
9782 sed '
9783 t clear
9784 : clear
9785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9786 t end
9787 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9788 : end' >>confcache
9789if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9790 if test -w $cache_file; then
e6cc62c6
VS
9791 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9792 cat confcache >$cache_file
10f2d63a
VZ
9793 else
9794 echo "not updating unwritable cache $cache_file"
9795 fi
9796fi
9797rm -f confcache
9798
e59890c3 9799if test "$build" != "$host" ; then
9d353d4a 9800 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9801 CC=$host_alias-gcc
9802 CXX=$host_alias-c++
9803 AR=$host_alias-ar
9804 RANLIB=$host_alias-ranlib
9805 DLLTOOL=$host_alias-dlltool
9806 RESCOMP=$host_alias-windres
9807 LD=$host_alias-ld
9808 NM=$host_alias-nm
9809 STRIP=$host_alias-strip
9810 else
e6cc62c6
VS
9811 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9812echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9813 { (exit 1); exit 1; }; }
3a922bb4 9814 fi
10f2d63a
VZ
9815fi
9816
ec603395 9817CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9818ac_ext=c
9819ac_cpp='$CPP $CPPFLAGS'
9820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9822ac_compiler_gnu=$ac_cv_c_compiler_gnu
9823if test -n "$ac_tool_prefix"; then
9824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9825set dummy ${ac_tool_prefix}gcc; ac_word=$2
9826echo "$as_me:$LINENO: checking for $ac_word" >&5
9827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9828if test "${ac_cv_prog_CC+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830else
9831 if test -n "$CC"; then
9832 ac_cv_prog_CC="$CC" # Let the user override the test.
9833else
9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $PATH
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845done
9846done
9847
9848fi
9849fi
9850CC=$ac_cv_prog_CC
9851if test -n "$CC"; then
9852 echo "$as_me:$LINENO: result: $CC" >&5
9853echo "${ECHO_T}$CC" >&6
9854else
9855 echo "$as_me:$LINENO: result: no" >&5
9856echo "${ECHO_T}no" >&6
9857fi
9858
9859fi
9860if test -z "$ac_cv_prog_CC"; then
9861 ac_ct_CC=$CC
9862 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9863set dummy gcc; ac_word=$2
e6cc62c6
VS
9864echo "$as_me:$LINENO: checking for $ac_word" >&5
9865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 if test -n "$ac_ct_CC"; then
9870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9871else
9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_ac_ct_CC="gcc"
9880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883done
9884done
9885
9886fi
9887fi
9888ac_ct_CC=$ac_cv_prog_ac_ct_CC
9889if test -n "$ac_ct_CC"; then
9890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9891echo "${ECHO_T}$ac_ct_CC" >&6
9892else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895fi
9896
9897 CC=$ac_ct_CC
9898else
9899 CC="$ac_cv_prog_CC"
9900fi
9901
9902if test -z "$CC"; then
9903 if test -n "$ac_tool_prefix"; then
9904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9905set dummy ${ac_tool_prefix}cc; ac_word=$2
9906echo "$as_me:$LINENO: checking for $ac_word" >&5
9907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9908if test "${ac_cv_prog_CC+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9910else
9911 if test -n "$CC"; then
9912 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9913else
e6cc62c6
VS
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921 ac_cv_prog_CC="${ac_tool_prefix}cc"
9922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9924 fi
9925done
9926done
9927
10f2d63a 9928fi
6232543b 9929fi
e6cc62c6 9930CC=$ac_cv_prog_CC
6232543b 9931if test -n "$CC"; then
e6cc62c6
VS
9932 echo "$as_me:$LINENO: result: $CC" >&5
9933echo "${ECHO_T}$CC" >&6
9934else
9935 echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
9937fi
9938
9939fi
9940if test -z "$ac_cv_prog_CC"; then
9941 ac_ct_CC=$CC
9942 # Extract the first word of "cc", so it can be a program name with args.
9943set dummy cc; ac_word=$2
9944echo "$as_me:$LINENO: checking for $ac_word" >&5
9945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9946if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 if test -n "$ac_ct_CC"; then
9950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9951else
9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959 ac_cv_prog_ac_ct_CC="cc"
9960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9962 fi
9963done
9964done
9965
9966fi
9967fi
9968ac_ct_CC=$ac_cv_prog_ac_ct_CC
9969if test -n "$ac_ct_CC"; then
9970 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9971echo "${ECHO_T}$ac_ct_CC" >&6
9972else
9973 echo "$as_me:$LINENO: result: no" >&5
9974echo "${ECHO_T}no" >&6
9975fi
9976
9977 CC=$ac_ct_CC
247f5006 9978else
e6cc62c6 9979 CC="$ac_cv_prog_CC"
247f5006
VZ
9980fi
9981
e6cc62c6 9982fi
5c6fa7d2
RR
9983if test -z "$CC"; then
9984 # Extract the first word of "cc", so it can be a program name with args.
9985set dummy cc; ac_word=$2
e6cc62c6
VS
9986echo "$as_me:$LINENO: checking for $ac_word" >&5
9987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9988if test "${ac_cv_prog_CC+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9990else
9991 if test -n "$CC"; then
9992 ac_cv_prog_CC="$CC" # Let the user override the test.
9993else
9994 ac_prog_rejected=no
e6cc62c6
VS
9995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996for as_dir in $PATH
9997do
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10003 ac_prog_rejected=yes
10004 continue
10005 fi
10006 ac_cv_prog_CC="cc"
10007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010done
10011done
10012
328a083c
RR
10013if test $ac_prog_rejected = yes; then
10014 # We found a bogon in the path, so make sure we never use it.
10015 set dummy $ac_cv_prog_CC
10016 shift
e6cc62c6 10017 if test $# != 0; then
328a083c 10018 # We chose a different compiler from the bogus one.
1e487827
VS
10019 # However, it has the same basename, so the bogon will be chosen
10020 # first if we set CC to just the basename; use the full file name.
10021 shift
e6cc62c6 10022 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10023 fi
1e487827
VS
10024fi
10025fi
10026fi
e6cc62c6 10027CC=$ac_cv_prog_CC
1e487827 10028if test -n "$CC"; then
e6cc62c6
VS
10029 echo "$as_me:$LINENO: result: $CC" >&5
10030echo "${ECHO_T}$CC" >&6
703e0a69 10031else
e6cc62c6
VS
10032 echo "$as_me:$LINENO: result: no" >&5
10033echo "${ECHO_T}no" >&6
703e0a69 10034fi
1e487827 10035
e6cc62c6
VS
10036fi
10037if test -z "$CC"; then
10038 if test -n "$ac_tool_prefix"; then
10039 for ac_prog in cl
10040 do
10041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10043echo "$as_me:$LINENO: checking for $ac_word" >&5
10044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10045if test "${ac_cv_prog_CC+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10047else
10048 if test -n "$CC"; then
10049 ac_cv_prog_CC="$CC" # Let the user override the test.
10050else
e6cc62c6
VS
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062done
10063done
10064
f09359cf
VS
10065fi
10066fi
e6cc62c6 10067CC=$ac_cv_prog_CC
f09359cf 10068if test -n "$CC"; then
e6cc62c6
VS
10069 echo "$as_me:$LINENO: result: $CC" >&5
10070echo "${ECHO_T}$CC" >&6
f09359cf 10071else
e6cc62c6
VS
10072 echo "$as_me:$LINENO: result: no" >&5
10073echo "${ECHO_T}no" >&6
5c6fa7d2 10074fi
1e487827 10075
e6cc62c6
VS
10076 test -n "$CC" && break
10077 done
10078fi
10079if test -z "$CC"; then
10080 ac_ct_CC=$CC
10081 for ac_prog in cl
10082do
10083 # Extract the first word of "$ac_prog", so it can be a program name with args.
10084set dummy $ac_prog; ac_word=$2
10085echo "$as_me:$LINENO: checking for $ac_word" >&5
10086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10087if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089else
10090 if test -n "$ac_ct_CC"; then
10091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10092else
10093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094for as_dir in $PATH
10095do
10096 IFS=$as_save_IFS
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_prog_ac_ct_CC="$ac_prog"
10101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 break 2
10103 fi
10104done
10105done
f09359cf 10106
e6cc62c6
VS
10107fi
10108fi
10109ac_ct_CC=$ac_cv_prog_ac_ct_CC
10110if test -n "$ac_ct_CC"; then
10111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10112echo "${ECHO_T}$ac_ct_CC" >&6
10113else
10114 echo "$as_me:$LINENO: result: no" >&5
10115echo "${ECHO_T}no" >&6
10116fi
f09359cf 10117
e6cc62c6
VS
10118 test -n "$ac_ct_CC" && break
10119done
247f5006 10120
e6cc62c6
VS
10121 CC=$ac_ct_CC
10122fi
10123
10124fi
10125
10126
10127test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10128See \`config.log' for more details." >&5
10129echo "$as_me: error: no acceptable C compiler found in \$PATH
10130See \`config.log' for more details." >&2;}
10131 { (exit 1); exit 1; }; }
10132
10133# Provide some information about the compiler.
10134echo "$as_me:$LINENO:" \
10135 "checking for C compiler version" >&5
10136ac_compiler=`set X $ac_compile; echo $2`
10137{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10138 (eval $ac_compiler --version </dev/null >&5) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }
10142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10143 (eval $ac_compiler -v </dev/null >&5) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }
10147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10148 (eval $ac_compiler -V </dev/null >&5) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }
10152
10153cat >conftest.$ac_ext <<_ACEOF
10154#line $LINENO "configure"
10155/* confdefs.h. */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h. */
10160
10161int
10162main ()
10163{
247f5006 10164
e6cc62c6
VS
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169ac_clean_files_save=$ac_clean_files
10170ac_clean_files="$ac_clean_files a.out a.exe b.out"
10171# Try to create an executable without -o first, disregard a.out.
10172# It will help us diagnose broken compilers, and finding out an intuition
10173# of exeext.
10174echo "$as_me:$LINENO: checking for C compiler default output" >&5
10175echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10176ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10177if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10178 (eval $ac_link_default) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; then
10182 # Find the output, starting from the most likely. This scheme is
10183# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10184# resort.
10185
10186# Be careful to initialize this variable, since it used to be cached.
10187# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10188ac_cv_exeext=
10189# b.out is created by i960 compilers.
10190for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10191do
10192 test -f "$ac_file" || continue
10193 case $ac_file in
10194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10195 ;;
10196 conftest.$ac_ext )
10197 # This is the source file.
10198 ;;
10199 [ab].out )
10200 # We found the default executable, but exeext='' is most
10201 # certainly right.
10202 break;;
10203 *.* )
10204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10205 # FIXME: I believe we export ac_cv_exeext for Libtool,
10206 # but it would be cool to find out if it's true. Does anybody
10207 # maintain Libtool? --akim.
10208 export ac_cv_exeext
10209 break;;
10210 * )
10211 break;;
10212 esac
10213done
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10219See \`config.log' for more details." >&5
10220echo "$as_me: error: C compiler cannot create executables
10221See \`config.log' for more details." >&2;}
10222 { (exit 77); exit 77; }; }
10223fi
10224
10225ac_exeext=$ac_cv_exeext
10226echo "$as_me:$LINENO: result: $ac_file" >&5
10227echo "${ECHO_T}$ac_file" >&6
10228
10229# Check the compiler produces executables we can run. If not, either
10230# the compiler is broken, or we cross compile.
10231echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10232echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10233# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10234# If not cross compiling, check that we can run a simple program.
10235if test "$cross_compiling" != yes; then
10236 if { ac_try='./$ac_file'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 cross_compiling=no
698dcdb6 10243 else
e6cc62c6
VS
10244 if test "$cross_compiling" = maybe; then
10245 cross_compiling=yes
10246 else
10247 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10248If you meant to cross compile, use \`--host'.
10249See \`config.log' for more details." >&5
10250echo "$as_me: error: cannot run C compiled programs.
10251If you meant to cross compile, use \`--host'.
10252See \`config.log' for more details." >&2;}
10253 { (exit 1); exit 1; }; }
10254 fi
698dcdb6 10255 fi
52127426 10256fi
e6cc62c6
VS
10257echo "$as_me:$LINENO: result: yes" >&5
10258echo "${ECHO_T}yes" >&6
10259
10260rm -f a.out a.exe conftest$ac_cv_exeext b.out
10261ac_clean_files=$ac_clean_files_save
10262# Check the compiler produces executables we can run. If not, either
10263# the compiler is broken, or we cross compile.
10264echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10265echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10266echo "$as_me:$LINENO: result: $cross_compiling" >&5
10267echo "${ECHO_T}$cross_compiling" >&6
10268
10269echo "$as_me:$LINENO: checking for suffix of executables" >&5
10270echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; then
10276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10278# work properly (i.e., refer to `conftest.exe'), while it won't with
10279# `rm'.
10280for ac_file in conftest.exe conftest conftest.*; do
10281 test -f "$ac_file" || continue
10282 case $ac_file in
10283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10285 export ac_cv_exeext
10286 break;;
10287 * ) break;;
10288 esac
10289done
5c6fa7d2 10290else
e6cc62c6
VS
10291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10292See \`config.log' for more details." >&5
10293echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10294See \`config.log' for more details." >&2;}
10295 { (exit 1); exit 1; }; }
10296fi
10297
10298rm -f conftest$ac_cv_exeext
10299echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10300echo "${ECHO_T}$ac_cv_exeext" >&6
10301
10302rm -f conftest.$ac_ext
10303EXEEXT=$ac_cv_exeext
10304ac_exeext=$EXEEXT
10305echo "$as_me:$LINENO: checking for suffix of object files" >&5
10306echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10307if test "${ac_cv_objext+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 cat >conftest.$ac_ext <<_ACEOF
10311#line $LINENO "configure"
10312/* confdefs.h. */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h. */
10317
10318int
10319main ()
10320{
f09359cf 10321
e6cc62c6
VS
10322 ;
10323 return 0;
10324}
10325_ACEOF
10326rm -f conftest.o conftest.obj
10327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10328 (eval $ac_compile) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; then
10332 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10333 case $ac_file in
10334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10336 break;;
10337 esac
10338done
a0b9e27f 10339else
e6cc62c6
VS
10340 echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10344See \`config.log' for more details." >&5
10345echo "$as_me: error: cannot compute suffix of object files: cannot compile
10346See \`config.log' for more details." >&2;}
10347 { (exit 1); exit 1; }; }
a0b9e27f 10348fi
247f5006 10349
e6cc62c6
VS
10350rm -f conftest.$ac_cv_objext conftest.$ac_ext
10351fi
10352echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10353echo "${ECHO_T}$ac_cv_objext" >&6
10354OBJEXT=$ac_cv_objext
10355ac_objext=$OBJEXT
10356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10358if test "${ac_cv_c_compiler_gnu+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10360else
e6cc62c6
VS
10361 cat >conftest.$ac_ext <<_ACEOF
10362#line $LINENO "configure"
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
10368
10369int
10370main ()
10371{
10372#ifndef __GNUC__
10373 choke me
10374#endif
10375
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext
10381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_compiler_gnu=yes
10393else
10394 echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397ac_compiler_gnu=no
10398fi
10399rm -f conftest.$ac_objext conftest.$ac_ext
10400ac_cv_c_compiler_gnu=$ac_compiler_gnu
10401
10402fi
10403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10405GCC=`test $ac_compiler_gnu = yes && echo yes`
10406ac_test_CFLAGS=${CFLAGS+set}
10407ac_save_CFLAGS=$CFLAGS
10408CFLAGS="-g"
10409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10411if test "${ac_cv_prog_cc_g+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 cat >conftest.$ac_ext <<_ACEOF
10415#line $LINENO "configure"
10416/* confdefs.h. */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h. */
10421
10422int
10423main ()
10424{
10425
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
10f2d63a
VZ
10442 ac_cv_prog_cc_g=yes
10443else
e6cc62c6
VS
10444 echo "$as_me: failed program was:" >&5
10445sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10446
e6cc62c6 10447ac_cv_prog_cc_g=no
10f2d63a 10448fi
e6cc62c6
VS
10449rm -f conftest.$ac_objext conftest.$ac_ext
10450fi
10451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10453if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10454 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10455elif test $ac_cv_prog_cc_g = yes; then
10456 if test "$GCC" = yes; then
10f2d63a
VZ
10457 CFLAGS="-g -O2"
10458 else
f09359cf 10459 CFLAGS="-g"
10f2d63a 10460 fi
5c0a20c3 10461else
f09359cf
VS
10462 if test "$GCC" = yes; then
10463 CFLAGS="-O2"
10464 else
10465 CFLAGS=
10466 fi
10f2d63a 10467fi
e6cc62c6
VS
10468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10470if test "${ac_cv_prog_cc_stdc+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473 ac_cv_prog_cc_stdc=no
10474ac_save_CC=$CC
10475cat >conftest.$ac_ext <<_ACEOF
10476#line $LINENO "configure"
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482#include <stdarg.h>
10483#include <stdio.h>
10484#include <sys/types.h>
10485#include <sys/stat.h>
10486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10487struct buf { int x; };
10488FILE * (*rcsopen) (struct buf *, struct stat *, int);
10489static char *e (p, i)
10490 char **p;
10491 int i;
10492{
10493 return p[i];
10494}
10495static char *f (char * (*g) (char **, int), char **p, ...)
10496{
10497 char *s;
10498 va_list v;
10499 va_start (v,p);
10500 s = g (p, va_arg (v,int));
10501 va_end (v);
10502 return s;
10503}
10504int test (int i, double x);
10505struct s1 {int (*f) (int a);};
10506struct s2 {int (*f) (double a);};
10507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10508int argc;
10509char **argv;
10510int
10511main ()
10512{
10513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10514 ;
10515 return 0;
10516}
10517_ACEOF
10518# Don't try gcc -ansi; that turns off useful extensions and
10519# breaks some systems' header files.
10520# AIX -qlanglvl=ansi
10521# Ultrix and OSF/1 -std1
10522# HP-UX 10.20 and later -Ae
10523# HP-UX older versions -Aa -D_HPUX_SOURCE
10524# SVR4 -Xc -D__EXTENSIONS__
10525for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10526do
10527 CC="$ac_save_CC $ac_arg"
10528 rm -f conftest.$ac_objext
10529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 ac_cv_prog_cc_stdc=$ac_arg
10541break
10542else
10543 echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546fi
10547rm -f conftest.$ac_objext
10548done
10549rm -f conftest.$ac_ext conftest.$ac_objext
10550CC=$ac_save_CC
10551
10552fi
10553
10554case "x$ac_cv_prog_cc_stdc" in
10555 x|xno)
10556 echo "$as_me:$LINENO: result: none needed" >&5
10557echo "${ECHO_T}none needed" >&6 ;;
10558 *)
10559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10560echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10561 CC="$CC $ac_cv_prog_cc_stdc" ;;
10562esac
10563
10564# Some people use a C++ compiler to compile C. Since we use `exit',
10565# in C++ we need to declare it. In case someone uses the same compiler
10566# for both compiling C and C++ we need to have the C++ compiler decide
10567# the declaration of exit, since it's the most demanding environment.
10568cat >conftest.$ac_ext <<_ACEOF
10569#ifndef __cplusplus
10570 choke me
10571#endif
10572_ACEOF
10573rm -f conftest.$ac_objext
10574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10575 (eval $ac_compile) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try='test -s conftest.$ac_objext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 for ac_declaration in \
7015ef3a 10586 '' \
e6cc62c6
VS
10587 'extern "C" void std::exit (int) throw (); using std::exit;' \
10588 'extern "C" void std::exit (int); using std::exit;' \
10589 'extern "C" void exit (int) throw ();' \
10590 'extern "C" void exit (int);' \
10591 'void exit (int);'
10592do
10593 cat >conftest.$ac_ext <<_ACEOF
10594#line $LINENO "configure"
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
0bdb08e7 10600$ac_declaration
7015ef3a 10601#include <stdlib.h>
e6cc62c6
VS
10602int
10603main ()
10604{
10605exit (42);
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext
10611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612 (eval $ac_compile) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -s conftest.$ac_objext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 :
10623else
10624 echo "$as_me: failed program was:" >&5
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
10627continue
10628fi
10629rm -f conftest.$ac_objext conftest.$ac_ext
10630 cat >conftest.$ac_ext <<_ACEOF
10631#line $LINENO "configure"
10632/* confdefs.h. */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
10637$ac_declaration
10638int
10639main ()
10640{
10641exit (42);
10642 ;
10643 return 0;
10644}
10645_ACEOF
10646rm -f conftest.$ac_objext
10647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 break
10659else
10660 echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663fi
10664rm -f conftest.$ac_objext conftest.$ac_ext
10665done
10666rm -f conftest*
10667if test -n "$ac_declaration"; then
10668 echo '#ifdef __cplusplus' >>confdefs.h
10669 echo $ac_declaration >>confdefs.h
10670 echo '#endif' >>confdefs.h
10671fi
10672
10673else
10674 echo "$as_me: failed program was:" >&5
10675sed 's/^/| /' conftest.$ac_ext >&5
10676
10677fi
10678rm -f conftest.$ac_objext conftest.$ac_ext
10679ac_ext=c
10680ac_cpp='$CPP $CPPFLAGS'
10681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10684
10685
e6cc62c6
VS
10686
10687ac_ext=c
10688ac_cpp='$CPP $CPPFLAGS'
10689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691ac_compiler_gnu=$ac_cv_c_compiler_gnu
10692echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10693echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10694# On Suns, sometimes $CPP names a directory.
10695if test -n "$CPP" && test -d "$CPP"; then
10696 CPP=
10697fi
10698if test -z "$CPP"; then
e6cc62c6
VS
10699 if test "${ac_cv_prog_CPP+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702 # Double quotes because CPP needs to be expanded
10703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10704 do
10705 ac_preproc_ok=false
10706for ac_c_preproc_warn_flag in '' yes
10707do
10708 # Use a header file that comes with gcc, so configuring glibc
10709 # with a fresh cross-compiler works.
10710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711 # <limits.h> exists even on freestanding compilers.
10f2d63a 10712 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10713 # not just through cpp. "Syntax error" is here to catch this case.
10714 cat >conftest.$ac_ext <<_ACEOF
10715#line $LINENO "configure"
10716/* confdefs.h. */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h. */
10721#ifdef __STDC__
10722# include <limits.h>
10723#else
10724# include <assert.h>
10725#endif
10726 Syntax error
10727_ACEOF
10728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } >/dev/null; then
10736 if test -s conftest.err; then
10737 ac_cpp_err=$ac_c_preproc_warn_flag
10738 else
10739 ac_cpp_err=
10740 fi
10f2d63a 10741else
e6cc62c6
VS
10742 ac_cpp_err=yes
10743fi
10744if test -z "$ac_cpp_err"; then
a0b9e27f 10745 :
247f5006 10746else
e6cc62c6
VS
10747 echo "$as_me: failed program was:" >&5
10748sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 # Broken: fails on valid input.
10751continue
10752fi
10753rm -f conftest.err conftest.$ac_ext
10754
10755 # OK, works on sane cases. Now check whether non-existent headers
10756 # can be detected and how.
10757 cat >conftest.$ac_ext <<_ACEOF
10758#line $LINENO "configure"
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
10764#include <ac_nonexistent.h>
10765_ACEOF
10766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev/null; then
10774 if test -s conftest.err; then
10775 ac_cpp_err=$ac_c_preproc_warn_flag
10776 else
10777 ac_cpp_err=
10778 fi
10f2d63a 10779else
e6cc62c6 10780 ac_cpp_err=yes
579d8138 10781fi
e6cc62c6
VS
10782if test -z "$ac_cpp_err"; then
10783 # Broken: success on invalid input.
10784continue
10785else
10786 echo "$as_me: failed program was:" >&5
10787sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 # Passes both tests.
10790ac_preproc_ok=:
10791break
52127426 10792fi
e6cc62c6
VS
10793rm -f conftest.err conftest.$ac_ext
10794
10795done
10796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10797rm -f conftest.err conftest.$ac_ext
10798if $ac_preproc_ok; then
10799 break
8284b0c5 10800fi
e6cc62c6
VS
10801
10802 done
10803 ac_cv_prog_CPP=$CPP
10804
10805fi
10806 CPP=$ac_cv_prog_CPP
10807else
10808 ac_cv_prog_CPP=$CPP
10809fi
10810echo "$as_me:$LINENO: result: $CPP" >&5
10811echo "${ECHO_T}$CPP" >&6
10812ac_preproc_ok=false
10813for ac_c_preproc_warn_flag in '' yes
10814do
10815 # Use a header file that comes with gcc, so configuring glibc
10816 # with a fresh cross-compiler works.
10817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 # <limits.h> exists even on freestanding compilers.
10819 # On the NeXT, cc -E runs the code through the compiler's parser,
10820 # not just through cpp. "Syntax error" is here to catch this case.
10821 cat >conftest.$ac_ext <<_ACEOF
10822#line $LINENO "configure"
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
10828#ifdef __STDC__
10829# include <limits.h>
10830#else
10831# include <assert.h>
10832#endif
10833 Syntax error
10834_ACEOF
10835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } >/dev/null; then
10843 if test -s conftest.err; then
10844 ac_cpp_err=$ac_c_preproc_warn_flag
10845 else
10846 ac_cpp_err=
10847 fi
10848else
10849 ac_cpp_err=yes
10850fi
10851if test -z "$ac_cpp_err"; then
10852 :
10853else
10854 echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 # Broken: fails on valid input.
10858continue
10859fi
10860rm -f conftest.err conftest.$ac_ext
10861
10862 # OK, works on sane cases. Now check whether non-existent headers
10863 # can be detected and how.
10864 cat >conftest.$ac_ext <<_ACEOF
10865#line $LINENO "configure"
10866/* confdefs.h. */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
10871#include <ac_nonexistent.h>
10872_ACEOF
10873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } >/dev/null; then
10881 if test -s conftest.err; then
10882 ac_cpp_err=$ac_c_preproc_warn_flag
10883 else
10884 ac_cpp_err=
10885 fi
10886else
10887 ac_cpp_err=yes
10888fi
10889if test -z "$ac_cpp_err"; then
10890 # Broken: success on invalid input.
10891continue
10892else
10893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 # Passes both tests.
10897ac_preproc_ok=:
10898break
a0b9e27f 10899fi
e6cc62c6
VS
10900rm -f conftest.err conftest.$ac_ext
10901
10902done
10903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10904rm -f conftest.err conftest.$ac_ext
10905if $ac_preproc_ok; then
10906 :
10907else
10908 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10909See \`config.log' for more details." >&5
10910echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10911See \`config.log' for more details." >&2;}
10912 { (exit 1); exit 1; }; }
10913fi
10914
10915ac_ext=c
10916ac_cpp='$CPP $CPPFLAGS'
10917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919ac_compiler_gnu=$ac_cv_c_compiler_gnu
10920
10921
10922echo "$as_me:$LINENO: checking for egrep" >&5
10923echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10924if test "${ac_cv_prog_egrep+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10926else
e6cc62c6
VS
10927 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10928 then ac_cv_prog_egrep='grep -E'
10929 else ac_cv_prog_egrep='egrep'
10930 fi
10f2d63a 10931fi
e6cc62c6
VS
10932echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10933echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10934 EGREP=$ac_cv_prog_egrep
10935
10f2d63a 10936
e6cc62c6
VS
10937if test $ac_cv_c_compiler_gnu = yes; then
10938 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10939echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10940if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10942else
10943 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10944 cat >conftest.$ac_ext <<_ACEOF
10945#line $LINENO "configure"
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10f2d63a
VZ
10951#include <sgtty.h>
10952Autoconf TIOCGETP
e6cc62c6 10953_ACEOF
10f2d63a 10954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10955 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10956 ac_cv_prog_gcc_traditional=yes
10957else
10f2d63a
VZ
10958 ac_cv_prog_gcc_traditional=no
10959fi
10960rm -f conftest*
10961
8284b0c5 10962
10f2d63a 10963 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10964 cat >conftest.$ac_ext <<_ACEOF
10965#line $LINENO "configure"
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10f2d63a
VZ
10971#include <termio.h>
10972Autoconf TCGETA
e6cc62c6 10973_ACEOF
10f2d63a 10974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10975 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10976 ac_cv_prog_gcc_traditional=yes
10977fi
10978rm -f conftest*
10979
10980 fi
10981fi
e6cc62c6
VS
10982echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10983echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10984 if test $ac_cv_prog_gcc_traditional = yes; then
10985 CC="$CC -traditional"
10986 fi
10987fi
10988
8284b0c5
MB
10989
10990
e6cc62c6
VS
10991
10992ac_ext=cc
1e487827 10993ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10997
698dcdb6 10998
ec603395 10999CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11000ac_ext=cc
11001ac_cpp='$CXXCPP $CPPFLAGS'
11002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11005if test -n "$ac_tool_prefix"; then
11006 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11007 do
11008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_CXX+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11014else
11015 if test -n "$CXX"; then
11016 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11017else
e6cc62c6
VS
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
10f2d63a
VZ
11032fi
11033fi
e6cc62c6 11034CXX=$ac_cv_prog_CXX
10f2d63a 11035if test -n "$CXX"; then
e6cc62c6
VS
11036 echo "$as_me:$LINENO: result: $CXX" >&5
11037echo "${ECHO_T}$CXX" >&6
10f2d63a 11038else
e6cc62c6
VS
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
10f2d63a
VZ
11041fi
11042
e6cc62c6
VS
11043 test -n "$CXX" && break
11044 done
11045fi
11046if test -z "$CXX"; then
11047 ac_ct_CXX=$CXX
11048 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11049do
11050 # Extract the first word of "$ac_prog", so it can be a program name with args.
11051set dummy $ac_prog; ac_word=$2
11052echo "$as_me:$LINENO: checking for $ac_word" >&5
11053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11054if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056else
11057 if test -n "$ac_ct_CXX"; then
11058 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11059else
11060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061for as_dir in $PATH
11062do
11063 IFS=$as_save_IFS
11064 test -z "$as_dir" && as_dir=.
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11067 ac_cv_prog_ac_ct_CXX="$ac_prog"
11068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11069 break 2
11070 fi
11071done
10f2d63a 11072done
a0b9e27f 11073
8284b0c5 11074fi
a0b9e27f 11075fi
e6cc62c6
VS
11076ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11077if test -n "$ac_ct_CXX"; then
11078 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11079echo "${ECHO_T}$ac_ct_CXX" >&6
11080else
11081 echo "$as_me:$LINENO: result: no" >&5
11082echo "${ECHO_T}no" >&6
a0b9e27f 11083fi
10f2d63a 11084
e6cc62c6
VS
11085 test -n "$ac_ct_CXX" && break
11086done
11087test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11088
11089 CXX=$ac_ct_CXX
11090fi
11091
11092
11093# Provide some information about the compiler.
11094echo "$as_me:$LINENO:" \
11095 "checking for C++ compiler version" >&5
11096ac_compiler=`set X $ac_compile; echo $2`
11097{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11098 (eval $ac_compiler --version </dev/null >&5) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }
11102{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11103 (eval $ac_compiler -v </dev/null >&5) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }
11107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11108 (eval $ac_compiler -V </dev/null >&5) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }
11112
11113echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11114echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11115if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117else
11118 cat >conftest.$ac_ext <<_ACEOF
11119#line $LINENO "configure"
11120/* confdefs.h. */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h. */
11125
11126int
11127main ()
11128{
11129#ifndef __GNUC__
11130 choke me
11131#endif
10f2d63a 11132
e6cc62c6
VS
11133 ;
11134 return 0;
11135}
11136_ACEOF
11137rm -f conftest.$ac_objext
11138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -s conftest.$ac_objext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_compiler_gnu=yes
11150else
11151 echo "$as_me: failed program was:" >&5
11152sed 's/^/| /' conftest.$ac_ext >&5
11153
11154ac_compiler_gnu=no
11155fi
11156rm -f conftest.$ac_objext conftest.$ac_ext
11157ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11158
11159fi
11160echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11161echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11162GXX=`test $ac_compiler_gnu = yes && echo yes`
11163ac_test_CXXFLAGS=${CXXFLAGS+set}
11164ac_save_CXXFLAGS=$CXXFLAGS
11165CXXFLAGS="-g"
11166echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11167echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11168if test "${ac_cv_prog_cxx_g+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 cat >conftest.$ac_ext <<_ACEOF
11172#line $LINENO "configure"
11173/* confdefs.h. */
11174_ACEOF
11175cat confdefs.h >>conftest.$ac_ext
11176cat >>conftest.$ac_ext <<_ACEOF
11177/* end confdefs.h. */
11178
11179int
11180main ()
11181{
f09359cf 11182
e6cc62c6
VS
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187rm -f conftest.$ac_objext
11188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189 (eval $ac_compile) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -s conftest.$ac_objext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11196 ac_status=$?
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
10f2d63a
VZ
11199 ac_cv_prog_cxx_g=yes
11200else
e6cc62c6
VS
11201 echo "$as_me: failed program was:" >&5
11202sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11203
e6cc62c6 11204ac_cv_prog_cxx_g=no
10f2d63a 11205fi
e6cc62c6
VS
11206rm -f conftest.$ac_objext conftest.$ac_ext
11207fi
11208echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11209echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11210if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11211 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11212elif test $ac_cv_prog_cxx_g = yes; then
11213 if test "$GXX" = yes; then
10f2d63a
VZ
11214 CXXFLAGS="-g -O2"
11215 else
f09359cf 11216 CXXFLAGS="-g"
10f2d63a 11217 fi
5c0a20c3 11218else
f09359cf
VS
11219 if test "$GXX" = yes; then
11220 CXXFLAGS="-O2"
11221 else
11222 CXXFLAGS=
11223 fi
10f2d63a 11224fi
e6cc62c6 11225for ac_declaration in \
7015ef3a 11226 '' \
e6cc62c6
VS
11227 'extern "C" void std::exit (int) throw (); using std::exit;' \
11228 'extern "C" void std::exit (int); using std::exit;' \
11229 'extern "C" void exit (int) throw ();' \
11230 'extern "C" void exit (int);' \
11231 'void exit (int);'
11232do
11233 cat >conftest.$ac_ext <<_ACEOF
11234#line $LINENO "configure"
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
0bdb08e7 11240$ac_declaration
7015ef3a 11241#include <stdlib.h>
e6cc62c6
VS
11242int
11243main ()
11244{
11245exit (42);
11246 ;
11247 return 0;
11248}
11249_ACEOF
11250rm -f conftest.$ac_objext
11251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11252 (eval $ac_compile) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -s conftest.$ac_objext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 :
11263else
11264 echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
11266
11267continue
11268fi
11269rm -f conftest.$ac_objext conftest.$ac_ext
11270 cat >conftest.$ac_ext <<_ACEOF
11271#line $LINENO "configure"
11272/* confdefs.h. */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h. */
11277$ac_declaration
11278int
11279main ()
11280{
11281exit (42);
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext
11287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11288 (eval $ac_compile) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 break
11299else
11300 echo "$as_me: failed program was:" >&5
11301sed 's/^/| /' conftest.$ac_ext >&5
11302
11303fi
11304rm -f conftest.$ac_objext conftest.$ac_ext
11305done
11306rm -f conftest*
11307if test -n "$ac_declaration"; then
11308 echo '#ifdef __cplusplus' >>confdefs.h
11309 echo $ac_declaration >>confdefs.h
11310 echo '#endif' >>confdefs.h
11311fi
11312
11313ac_ext=cc
11314ac_cpp='$CXXCPP $CPPFLAGS'
11315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11318
11319
10f2d63a 11320ac_ext=c
10f2d63a 11321ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11324ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11325
11326
e6cc62c6
VS
11327if test -n "$ac_tool_prefix"; then
11328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11329set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11330echo "$as_me:$LINENO: checking for $ac_word" >&5
11331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11332if test "${ac_cv_prog_RANLIB+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11334else
11335 if test -n "$RANLIB"; then
11336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11337else
e6cc62c6
VS
11338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339for as_dir in $PATH
11340do
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 break 2
11348 fi
11349done
11350done
11351
10f2d63a
VZ
11352fi
11353fi
e6cc62c6 11354RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11355if test -n "$RANLIB"; then
e6cc62c6
VS
11356 echo "$as_me:$LINENO: result: $RANLIB" >&5
11357echo "${ECHO_T}$RANLIB" >&6
11358else
11359 echo "$as_me:$LINENO: result: no" >&5
11360echo "${ECHO_T}no" >&6
11361fi
11362
11363fi
11364if test -z "$ac_cv_prog_RANLIB"; then
11365 ac_ct_RANLIB=$RANLIB
11366 # Extract the first word of "ranlib", so it can be a program name with args.
11367set dummy ranlib; ac_word=$2
11368echo "$as_me:$LINENO: checking for $ac_word" >&5
11369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11372else
e6cc62c6
VS
11373 if test -n "$ac_ct_RANLIB"; then
11374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11375else
11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_ac_ct_RANLIB="ranlib"
11384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387done
11388done
11389
11390 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11391fi
11392fi
11393ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11394if test -n "$ac_ct_RANLIB"; then
11395 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11396echo "${ECHO_T}$ac_ct_RANLIB" >&6
11397else
11398 echo "$as_me:$LINENO: result: no" >&5
11399echo "${ECHO_T}no" >&6
11400fi
11401
11402 RANLIB=$ac_ct_RANLIB
11403else
11404 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11405fi
11406
10f2d63a
VZ
11407
11408# Extract the first word of "ar", so it can be a program name with args.
11409set dummy ar; ac_word=$2
e6cc62c6
VS
11410echo "$as_me:$LINENO: checking for $ac_word" >&5
11411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11412if test "${ac_cv_prog_AR+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11414else
11415 if test -n "$AR"; then
11416 ac_cv_prog_AR="$AR" # Let the user override the test.
11417else
e6cc62c6
VS
11418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11419for as_dir in $PATH
11420do
11421 IFS=$as_save_IFS
11422 test -z "$as_dir" && as_dir=.
11423 for ac_exec_ext in '' $ac_executable_extensions; do
11424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11425 ac_cv_prog_AR="ar"
11426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 break 2
11428 fi
11429done
11430done
11431
10f2d63a
VZ
11432fi
11433fi
e6cc62c6 11434AR=$ac_cv_prog_AR
10f2d63a 11435if test -n "$AR"; then
e6cc62c6
VS
11436 echo "$as_me:$LINENO: result: $AR" >&5
11437echo "${ECHO_T}$AR" >&6
10f2d63a 11438else
e6cc62c6
VS
11439 echo "$as_me:$LINENO: result: no" >&5
11440echo "${ECHO_T}no" >&6
10f2d63a
VZ
11441fi
11442
911740e7
VS
11443if test "x$AR" = "x" ; then
11444 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11445echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11446 { (exit 1); exit 1; }; }
11447fi
8284b0c5 11448
6054113a 11449# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11450# so one script is as good as another. But avoid the broken or
11451# incompatible versions:
11452# SysV /etc/install, /usr/sbin/install
11453# SunOS /usr/etc/install
11454# IRIX /sbin/install
11455# AIX /bin/install
e6cc62c6 11456# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11457# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11458# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11459# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11460# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11461echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11462echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11463if test -z "$INSTALL"; then
e6cc62c6
VS
11464if test "${ac_cv_path_install+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468for as_dir in $PATH
11469do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 # Account for people who put trailing slashes in PATH elements.
11473case $as_dir/ in
11474 ./ | .// | /cC/* | \
11475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11476 /usr/ucb/* ) ;;
11477 *)
11478 # OSF1 and SCO ODT 3.0 have their own names for install.
11479 # Don't use installbsd from OSF since it installs stuff as root
11480 # by default.
11481 for ac_prog in ginstall scoinst install; do
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11484 if test $ac_prog = install &&
11485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11486 # AIX install. It has an incompatible calling convention.
11487 :
11488 elif test $ac_prog = install &&
11489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11490 # program-specific install script used by HP pwplus--don't use.
11491 :
11492 else
11493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11494 break 3
11495 fi
11496 fi
10f2d63a 11497 done
e6cc62c6
VS
11498 done
11499 ;;
11500esac
11501done
11502
10f2d63a
VZ
11503
11504fi
11505 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11506 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11507 else
11508 # As a last resort, use the slow shell script. We don't cache a
11509 # path for INSTALL within a source directory, because that will
11510 # break other packages using the cache if that directory is
11511 # removed, or if the path is relative.
e6cc62c6 11512 INSTALL=$ac_install_sh
10f2d63a
VZ
11513 fi
11514fi
e6cc62c6
VS
11515echo "$as_me:$LINENO: result: $INSTALL" >&5
11516echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11517
11518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11519# It thinks the first close brace ends the variable substitution.
11520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11521
e6cc62c6 11522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11523
10f2d63a
VZ
11524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11525
8284b0c5 11526
1d1b75ac
VZ
11527case ${INSTALL} in
11528 /* ) # Absolute
11529 ;;
4f5a7f74
VZ
11530 ?:* ) # Drive letter, considered as absolute.
11531 ;;
3bd8fb5f 11532 *)
1d1b75ac
VZ
11533 INSTALL=`pwd`/${INSTALL} ;;
11534esac
11535
4f5a7f74
VZ
11536case ${host} in
11537 *-hp-hpux* )
11538 INSTALL_DIR="mkdir"
11539 ;;
11540
11541 *) INSTALL_DIR="$INSTALL -d"
11542 ;;
11543esac
11544
8284b0c5 11545
6054113a
GD
11546case "${host}" in
11547
b5853384 11548 powerpc-*-darwin* )
eb99ae0b
GD
11549 INSTALL_PROGRAM="cp -fp"
11550 INSTALL_DATA="cp -fp"
6054113a
GD
11551 ;;
11552 *)
11553 ;;
d6853540 11554esac
698dcdb6 11555
10f2d63a
VZ
11556# Extract the first word of "strip", so it can be a program name with args.
11557set dummy strip; ac_word=$2
e6cc62c6
VS
11558echo "$as_me:$LINENO: checking for $ac_word" >&5
11559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11560if test "${ac_cv_prog_STRIP+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11562else
11563 if test -n "$STRIP"; then
11564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11565else
e6cc62c6
VS
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_STRIP="strip"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11576 fi
11577done
11578done
11579
10f2d63a
VZ
11580 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11581fi
11582fi
e6cc62c6 11583STRIP=$ac_cv_prog_STRIP
10f2d63a 11584if test -n "$STRIP"; then
e6cc62c6
VS
11585 echo "$as_me:$LINENO: result: $STRIP" >&5
11586echo "${ECHO_T}$STRIP" >&6
10f2d63a 11587else
e6cc62c6
VS
11588 echo "$as_me:$LINENO: result: no" >&5
11589echo "${ECHO_T}no" >&6
10f2d63a
VZ
11590fi
11591
5c6fa7d2 11592
e6cc62c6
VS
11593echo "$as_me:$LINENO: checking if make is GNU make" >&5
11594echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11595if test "${wx_cv_prog_makeisgnu+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11597else
e6cc62c6 11598
414eab6d 11599 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11600 egrep -s GNU > /dev/null); then
414eab6d
VZ
11601 wx_cv_prog_makeisgnu="yes"
11602 else
11603 wx_cv_prog_makeisgnu="no"
11604 fi
11605
11606fi
e6cc62c6
VS
11607echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11608echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11609
11610if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11611 IF_GNU_MAKE=""
11612else
11613 IF_GNU_MAKE="#"
11614fi
11615
8284b0c5
MB
11616
11617
414eab6d 11618if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11619echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11620echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11621if test "${wx_cv_prog_makevpath+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11623else
e6cc62c6 11624
10f2d63a
VZ
11625cat - << EOF > confMake
11626check : file
11627 cp \$? \$@
11628 cp \$? final_file
11629EOF
11630
11631if test ! -d sub ; then
11632 mkdir sub
11633fi
11634echo dummy > sub/file
f6bcfd97 11635${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11636RESULT=$?
11637rm -f sub/file check final_file confMake
11638rmdir sub
11639if test "$RESULT" = 0; then
04e7a216 11640 wx_cv_prog_makevpath="yes"
10f2d63a 11641else
04e7a216
VZ
11642 wx_cv_prog_makevpath="no"
11643fi
11644
11645fi
e6cc62c6
VS
11646echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11647echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11648
11649if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11650{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11651You need a make-utility that is able to use the variable
11652VPATH correctly.
11653If your version of make does not support VPATH correctly,
11654please install GNU-make (possibly as gmake), and start
11655configure with the following command:
11656export MAKE=gmake; ./configure for sh-type shells
11657setenv MAKE gmake; ./configure for csh-type shells
11658Also please do remember to use gmake in this case every time
11659you are trying to compile.
e6cc62c6
VS
11660" >&5
11661echo "$as_me: error:
11662You need a make-utility that is able to use the variable
11663VPATH correctly.
11664If your version of make does not support VPATH correctly,
11665please install GNU-make (possibly as gmake), and start
11666configure with the following command:
11667export MAKE=gmake; ./configure for sh-type shells
11668setenv MAKE gmake; ./configure for csh-type shells
11669Also please do remember to use gmake in this case every time
11670you are trying to compile.
11671" >&2;}
11672 { (exit 1); exit 1; }; }
11673fi fi
e6cc62c6
VS
11674echo "$as_me:$LINENO: checking whether ln -s works" >&5
11675echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11676LN_S=$as_ln_s
11677if test "$LN_S" = "ln -s"; then
11678 echo "$as_me:$LINENO: result: yes" >&5
11679echo "${ECHO_T}yes" >&6
10f2d63a 11680else
e6cc62c6
VS
11681 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11682echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11683fi
5c6fa7d2 11684
247f5006 11685
2b5f62a0
VZ
11686case "${host}" in
11687 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11688 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11689 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11690echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11691if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11693else
e6cc62c6 11694 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11695LIBS="-lcExt $LIBS"
e6cc62c6
VS
11696cat >conftest.$ac_ext <<_ACEOF
11697#line $LINENO "configure"
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
11703
2b5f62a0 11704/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11705#ifdef __cplusplus
11706extern "C"
11707#endif
2b5f62a0 11708/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11709 builtin and then its argument prototype would still apply. */
11710char drand48 ();
11711int
11712main ()
11713{
11714drand48 ();
11715 ;
11716 return 0;
11717}
11718_ACEOF
11719rm -f conftest.$ac_objext conftest$ac_exeext
11720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_lib_cExt_drand48=yes
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736ac_cv_lib_cExt_drand48=no
11737fi
11738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11739LIBS=$ac_check_lib_save_LIBS
11740fi
11741echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11742echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11743if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11744 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11745fi
11746
11747 else
11748 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11749 fi
73d617c9
MB
11750 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11751echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11752if test "${wx_cv_gcc3+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755
11756 cat >conftest.$ac_ext <<_ACEOF
11757#line $LINENO "configure"
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763#include <features.h>
11764int
11765main ()
11766{
11767
11768 #if (__GNUC__ < 3)
11769 #error old gcc
11770 #endif
11771
11772 ;
11773 return 0;
11774}
11775_ACEOF
11776rm -f conftest.$ac_objext
11777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11778 (eval $ac_compile) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788
11789 wx_cv_gcc3=yes
11790
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795
11796 wx_cv_gcc3=no
11797
11798
11799fi
11800rm -f conftest.$ac_objext conftest.$ac_ext
11801
11802fi
11803echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
11804echo "${ECHO_T}$wx_cv_gcc3" >&6
11805 if test "$wx_cv_gcc3" = "no"; then
11806 LIBS="$LIBS -lstdcpp"
11807 else
11808 LIBS="$LIBS -lstdcxx"
11809 fi
2b5f62a0
VZ
11810 ;;
11811esac
11812
a0b9e27f 11813
01aa5863
VS
11814if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11815 echo "$as_me:$LINENO: checking for strings.h" >&5
11816echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11817if test "${ac_cv_header_strings_h+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 ac_cv_header_strings_h=no
11821fi
11822echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11823echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11824 if test "$ac_cv_header_strings_h" = "no"; then
11825 echo "$as_me:$LINENO: result: forced no into cache" >&5
11826echo "${ECHO_T}forced no into cache" >&6
11827 else
11828 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11829echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11830 fi
11831fi
11832echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11833echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11834if test "${ac_cv_header_stdc+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836else
11837 cat >conftest.$ac_ext <<_ACEOF
11838#line $LINENO "configure"
11839/* confdefs.h. */
11840_ACEOF
11841cat confdefs.h >>conftest.$ac_ext
11842cat >>conftest.$ac_ext <<_ACEOF
11843/* end confdefs.h. */
11844#include <stdlib.h>
11845#include <stdarg.h>
11846#include <string.h>
11847#include <float.h>
247f5006 11848
e6cc62c6
VS
11849int
11850main ()
11851{
90dd450c 11852
e6cc62c6
VS
11853 ;
11854 return 0;
11855}
11856_ACEOF
11857rm -f conftest.$ac_objext
11858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11859 (eval $ac_compile) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try='test -s conftest.$ac_objext'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 ac_cv_header_stdc=yes
8284b0c5 11870else
e6cc62c6
VS
11871 echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5
11873
11874ac_cv_header_stdc=no
21d1c967 11875fi
e6cc62c6 11876rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11877
e6cc62c6
VS
11878if test $ac_cv_header_stdc = yes; then
11879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11880 cat >conftest.$ac_ext <<_ACEOF
11881#line $LINENO "configure"
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887#include <string.h>
11888
11889_ACEOF
11890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11891 $EGREP "memchr" >/dev/null 2>&1; then
11892 :
11893else
11894 ac_cv_header_stdc=no
3a922bb4 11895fi
a0b9e27f 11896rm -f conftest*
e6cc62c6 11897
90dd450c 11898fi
e6cc62c6
VS
11899
11900if test $ac_cv_header_stdc = yes; then
11901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11902 cat >conftest.$ac_ext <<_ACEOF
11903#line $LINENO "configure"
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909#include <stdlib.h>
11910
11911_ACEOF
11912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11913 $EGREP "free" >/dev/null 2>&1; then
11914 :
a0b9e27f 11915else
e6cc62c6 11916 ac_cv_header_stdc=no
21d1c967 11917fi
e6cc62c6 11918rm -f conftest*
247f5006
VZ
11919
11920fi
e6cc62c6
VS
11921
11922if test $ac_cv_header_stdc = yes; then
11923 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11924 if test "$cross_compiling" = yes; then
11925 :
11926else
11927 cat >conftest.$ac_ext <<_ACEOF
11928#line $LINENO "configure"
11929/* confdefs.h. */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h. */
11934#include <ctype.h>
11935#if ((' ' & 0x0FF) == 0x020)
11936# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11937# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11938#else
11939# define ISLOWER(c) \
11940 (('a' <= (c) && (c) <= 'i') \
11941 || ('j' <= (c) && (c) <= 'r') \
11942 || ('s' <= (c) && (c) <= 'z'))
11943# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11944#endif
11945
11946#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11947int
11948main ()
11949{
11950 int i;
11951 for (i = 0; i < 256; i++)
11952 if (XOR (islower (i), ISLOWER (i))
11953 || toupper (i) != TOUPPER (i))
11954 exit(2);
11955 exit (0);
11956}
11957_ACEOF
11958rm -f conftest$ac_exeext
11959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960 (eval $ac_link) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 :
a0b9e27f 11970else
e6cc62c6
VS
11971 echo "$as_me: program exited with status $ac_status" >&5
11972echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975( exit $ac_status )
11976ac_cv_header_stdc=no
11977fi
11978rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11979fi
11980fi
11981fi
11982echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11983echo "${ECHO_T}$ac_cv_header_stdc" >&6
11984if test $ac_cv_header_stdc = yes; then
11985
11986cat >>confdefs.h <<\_ACEOF
11987#define STDC_HEADERS 1
11988_ACEOF
11989
a0b9e27f 11990fi
e6cc62c6
VS
11991
11992# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12003 inttypes.h stdint.h unistd.h
12004do
12005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12006echo "$as_me:$LINENO: checking for $ac_header" >&5
12007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12008if eval "test \"\${$as_ac_Header+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
12011 cat >conftest.$ac_ext <<_ACEOF
12012#line $LINENO "configure"
12013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
12018$ac_includes_default
12019
12020#include <$ac_header>
12021_ACEOF
12022rm -f conftest.$ac_objext
12023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024 (eval $ac_compile) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 eval "$as_ac_Header=yes"
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039eval "$as_ac_Header=no"
12040fi
12041rm -f conftest.$ac_objext conftest.$ac_ext
12042fi
12043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12045if test `eval echo '${'$as_ac_Header'}'` = yes; then
12046 cat >>confdefs.h <<_ACEOF
12047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12048_ACEOF
12049
12050fi
12051
a0b9e27f 12052done
90dd450c 12053
e6cc62c6
VS
12054
12055
12056for ac_header in strings.h
21d1c967 12057do
e6cc62c6
VS
12058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12059if eval "test \"\${$as_ac_Header+set}\" = set"; then
12060 echo "$as_me:$LINENO: checking for $ac_header" >&5
12061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12062if eval "test \"\${$as_ac_Header+set}\" = set"; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064fi
12065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12067else
12068 # Is the header compilable?
12069echo "$as_me:$LINENO: checking $ac_header usability" >&5
12070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12071cat >conftest.$ac_ext <<_ACEOF
12072#line $LINENO "configure"
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079#include <$ac_header>
12080_ACEOF
12081rm -f conftest.$ac_objext
12082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -s conftest.$ac_objext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_header_compiler=yes
12094else
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
12098ac_header_compiler=no
12099fi
12100rm -f conftest.$ac_objext conftest.$ac_ext
12101echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12102echo "${ECHO_T}$ac_header_compiler" >&6
12103
12104# Is the header present?
12105echo "$as_me:$LINENO: checking $ac_header presence" >&5
12106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12107cat >conftest.$ac_ext <<_ACEOF
12108#line $LINENO "configure"
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
12114#include <$ac_header>
12115_ACEOF
12116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } >/dev/null; then
12124 if test -s conftest.err; then
12125 ac_cpp_err=$ac_c_preproc_warn_flag
12126 else
12127 ac_cpp_err=
12128 fi
12129else
12130 ac_cpp_err=yes
12131fi
12132if test -z "$ac_cpp_err"; then
12133 ac_header_preproc=yes
12134else
12135 echo "$as_me: failed program was:" >&5
12136sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 ac_header_preproc=no
12139fi
12140rm -f conftest.err conftest.$ac_ext
12141echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12142echo "${ECHO_T}$ac_header_preproc" >&6
12143
12144# So? What about this header?
12145case $ac_header_compiler:$ac_header_preproc in
12146 yes:no )
12147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12148echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12151 (
12152 cat <<\_ASBOX
12153## ------------------------------------ ##
12154## Report this to bug-autoconf@gnu.org. ##
12155## ------------------------------------ ##
12156_ASBOX
12157 ) |
12158 sed "s/^/$as_me: WARNING: /" >&2
12159 ;;
12160 no:yes )
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12167 (
12168 cat <<\_ASBOX
12169## ------------------------------------ ##
12170## Report this to bug-autoconf@gnu.org. ##
12171## ------------------------------------ ##
12172_ASBOX
12173 ) |
12174 sed "s/^/$as_me: WARNING: /" >&2
12175 ;;
12176esac
12177echo "$as_me:$LINENO: checking for $ac_header" >&5
12178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12179if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12183fi
e6cc62c6
VS
12184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12186
a0b9e27f 12187fi
e6cc62c6
VS
12188if test `eval echo '${'$as_ac_Header'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12191_ACEOF
12192
12193fi
12194
12195done
12196
e6cc62c6
VS
12197
12198
12199for ac_header in stdlib.h
12200do
12201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12202if eval "test \"\${$as_ac_Header+set}\" = set"; then
12203 echo "$as_me:$LINENO: checking for $ac_header" >&5
12204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12205if eval "test \"\${$as_ac_Header+set}\" = set"; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207fi
12208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12210else
12211 # Is the header compilable?
12212echo "$as_me:$LINENO: checking $ac_header usability" >&5
12213echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12214cat >conftest.$ac_ext <<_ACEOF
12215#line $LINENO "configure"
12216/* confdefs.h. */
12217_ACEOF
12218cat confdefs.h >>conftest.$ac_ext
12219cat >>conftest.$ac_ext <<_ACEOF
12220/* end confdefs.h. */
12221$ac_includes_default
12222#include <$ac_header>
12223_ACEOF
12224rm -f conftest.$ac_objext
12225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12226 (eval $ac_compile) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_header_compiler=yes
12237else
12238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241ac_header_compiler=no
12242fi
12243rm -f conftest.$ac_objext conftest.$ac_ext
12244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12245echo "${ECHO_T}$ac_header_compiler" >&6
12246
12247# Is the header present?
12248echo "$as_me:$LINENO: checking $ac_header presence" >&5
12249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12250cat >conftest.$ac_ext <<_ACEOF
12251#line $LINENO "configure"
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
12257#include <$ac_header>
12258_ACEOF
12259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12261 ac_status=$?
12262 grep -v '^ *+' conftest.er1 >conftest.err
12263 rm -f conftest.er1
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } >/dev/null; then
12267 if test -s conftest.err; then
12268 ac_cpp_err=$ac_c_preproc_warn_flag
12269 else
12270 ac_cpp_err=
12271 fi
12272else
12273 ac_cpp_err=yes
12274fi
12275if test -z "$ac_cpp_err"; then
12276 ac_header_preproc=yes
12277else
12278 echo "$as_me: failed program was:" >&5
12279sed 's/^/| /' conftest.$ac_ext >&5
12280
12281 ac_header_preproc=no
12282fi
12283rm -f conftest.err conftest.$ac_ext
12284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12285echo "${ECHO_T}$ac_header_preproc" >&6
12286
12287# So? What about this header?
12288case $ac_header_compiler:$ac_header_preproc in
12289 yes:no )
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12294 (
12295 cat <<\_ASBOX
12296## ------------------------------------ ##
12297## Report this to bug-autoconf@gnu.org. ##
12298## ------------------------------------ ##
12299_ASBOX
12300 ) |
12301 sed "s/^/$as_me: WARNING: /" >&2
12302 ;;
12303 no:yes )
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12310 (
12311 cat <<\_ASBOX
12312## ------------------------------------ ##
12313## Report this to bug-autoconf@gnu.org. ##
12314## ------------------------------------ ##
12315_ASBOX
12316 ) |
12317 sed "s/^/$as_me: WARNING: /" >&2
12318 ;;
12319esac
12320echo "$as_me:$LINENO: checking for $ac_header" >&5
12321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12322if eval "test \"\${$as_ac_Header+set}\" = set"; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12324else
e6cc62c6
VS
12325 eval "$as_ac_Header=$ac_header_preproc"
12326fi
12327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12329
21d1c967 12330fi
e6cc62c6
VS
12331if test `eval echo '${'$as_ac_Header'}'` = yes; then
12332 cat >>confdefs.h <<_ACEOF
12333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12334_ACEOF
12335
12336fi
12337
21d1c967 12338done
4f14bcd8 12339
5c6fa7d2 12340
e6cc62c6 12341for ac_header in malloc.h
21d1c967 12342do
e6cc62c6
VS
12343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12344if eval "test \"\${$as_ac_Header+set}\" = set"; then
12345 echo "$as_me:$LINENO: checking for $ac_header" >&5
12346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12347if eval "test \"\${$as_ac_Header+set}\" = set"; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349fi
12350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12352else
12353 # Is the header compilable?
12354echo "$as_me:$LINENO: checking $ac_header usability" >&5
12355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12356cat >conftest.$ac_ext <<_ACEOF
12357#line $LINENO "configure"
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363$ac_includes_default
12364#include <$ac_header>
12365_ACEOF
12366rm -f conftest.$ac_objext
12367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368 (eval $ac_compile) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_header_compiler=yes
12379else
12380 echo "$as_me: failed program was:" >&5
12381sed 's/^/| /' conftest.$ac_ext >&5
12382
12383ac_header_compiler=no
12384fi
12385rm -f conftest.$ac_objext conftest.$ac_ext
12386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12387echo "${ECHO_T}$ac_header_compiler" >&6
12388
12389# Is the header present?
12390echo "$as_me:$LINENO: checking $ac_header presence" >&5
12391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12392cat >conftest.$ac_ext <<_ACEOF
12393#line $LINENO "configure"
12394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
12399#include <$ac_header>
12400_ACEOF
12401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null; then
12409 if test -s conftest.err; then
12410 ac_cpp_err=$ac_c_preproc_warn_flag
12411 else
12412 ac_cpp_err=
12413 fi
12414else
12415 ac_cpp_err=yes
12416fi
12417if test -z "$ac_cpp_err"; then
12418 ac_header_preproc=yes
12419else
12420 echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 ac_header_preproc=no
12424fi
12425rm -f conftest.err conftest.$ac_ext
12426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12427echo "${ECHO_T}$ac_header_preproc" >&6
12428
12429# So? What about this header?
12430case $ac_header_compiler:$ac_header_preproc in
12431 yes:no )
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12436 (
12437 cat <<\_ASBOX
12438## ------------------------------------ ##
12439## Report this to bug-autoconf@gnu.org. ##
12440## ------------------------------------ ##
12441_ASBOX
12442 ) |
12443 sed "s/^/$as_me: WARNING: /" >&2
12444 ;;
12445 no:yes )
12446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12452 (
12453 cat <<\_ASBOX
12454## ------------------------------------ ##
12455## Report this to bug-autoconf@gnu.org. ##
12456## ------------------------------------ ##
12457_ASBOX
12458 ) |
12459 sed "s/^/$as_me: WARNING: /" >&2
12460 ;;
12461esac
12462echo "$as_me:$LINENO: checking for $ac_header" >&5
12463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12464if eval "test \"\${$as_ac_Header+set}\" = set"; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12468fi
e6cc62c6
VS
12469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12471
21d1c967 12472fi
e6cc62c6
VS
12473if test `eval echo '${'$as_ac_Header'}'` = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12476_ACEOF
12477
12478fi
12479
12480done
12481
12482
12483for ac_header in unistd.h
12484do
12485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12486if eval "test \"\${$as_ac_Header+set}\" = set"; then
12487 echo "$as_me:$LINENO: checking for $ac_header" >&5
12488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12489if eval "test \"\${$as_ac_Header+set}\" = set"; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491fi
12492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12494else
12495 # Is the header compilable?
12496echo "$as_me:$LINENO: checking $ac_header usability" >&5
12497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12498cat >conftest.$ac_ext <<_ACEOF
12499#line $LINENO "configure"
12500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
12504/* end confdefs.h. */
12505$ac_includes_default
12506#include <$ac_header>
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -s conftest.$ac_objext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_header_compiler=yes
12521else
12522 echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525ac_header_compiler=no
12526fi
12527rm -f conftest.$ac_objext conftest.$ac_ext
12528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12529echo "${ECHO_T}$ac_header_compiler" >&6
12530
12531# Is the header present?
12532echo "$as_me:$LINENO: checking $ac_header presence" >&5
12533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12534cat >conftest.$ac_ext <<_ACEOF
12535#line $LINENO "configure"
12536/* confdefs.h. */
12537_ACEOF
12538cat confdefs.h >>conftest.$ac_ext
12539cat >>conftest.$ac_ext <<_ACEOF
12540/* end confdefs.h. */
12541#include <$ac_header>
12542_ACEOF
12543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } >/dev/null; then
12551 if test -s conftest.err; then
12552 ac_cpp_err=$ac_c_preproc_warn_flag
12553 else
12554 ac_cpp_err=
12555 fi
a0b9e27f 12556else
e6cc62c6
VS
12557 ac_cpp_err=yes
12558fi
12559if test -z "$ac_cpp_err"; then
12560 ac_header_preproc=yes
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ac_header_preproc=no
12566fi
12567rm -f conftest.err conftest.$ac_ext
12568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12569echo "${ECHO_T}$ac_header_preproc" >&6
12570
12571# So? What about this header?
12572case $ac_header_compiler:$ac_header_preproc in
12573 yes:no )
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12578 (
12579 cat <<\_ASBOX
12580## ------------------------------------ ##
12581## Report this to bug-autoconf@gnu.org. ##
12582## ------------------------------------ ##
12583_ASBOX
12584 ) |
12585 sed "s/^/$as_me: WARNING: /" >&2
12586 ;;
12587 no:yes )
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12594 (
12595 cat <<\_ASBOX
12596## ------------------------------------ ##
12597## Report this to bug-autoconf@gnu.org. ##
12598## ------------------------------------ ##
12599_ASBOX
12600 ) |
12601 sed "s/^/$as_me: WARNING: /" >&2
12602 ;;
12603esac
12604echo "$as_me:$LINENO: checking for $ac_header" >&5
12605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12606if eval "test \"\${$as_ac_Header+set}\" = set"; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608else
12609 eval "$as_ac_Header=$ac_header_preproc"
12610fi
12611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12613
12614fi
12615if test `eval echo '${'$as_ac_Header'}'` = yes; then
12616 cat >>confdefs.h <<_ACEOF
12617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12618_ACEOF
12619
d4158b5d 12620fi
e6cc62c6 12621
21d1c967 12622done
f6bcfd97 12623
e6cc62c6
VS
12624
12625for ac_header in wchar.h
12626do
12627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12628if eval "test \"\${$as_ac_Header+set}\" = set"; then
12629 echo "$as_me:$LINENO: checking for $ac_header" >&5
12630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12631if eval "test \"\${$as_ac_Header+set}\" = set"; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633fi
12634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12636else
12637 # Is the header compilable?
12638echo "$as_me:$LINENO: checking $ac_header usability" >&5
12639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12640cat >conftest.$ac_ext <<_ACEOF
12641#line $LINENO "configure"
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
12647$ac_includes_default
12648#include <$ac_header>
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_header_compiler=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667ac_header_compiler=no
12668fi
12669rm -f conftest.$ac_objext conftest.$ac_ext
12670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671echo "${ECHO_T}$ac_header_compiler" >&6
12672
12673# Is the header present?
12674echo "$as_me:$LINENO: checking $ac_header presence" >&5
12675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12676cat >conftest.$ac_ext <<_ACEOF
12677#line $LINENO "configure"
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683#include <$ac_header>
12684_ACEOF
12685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } >/dev/null; then
12693 if test -s conftest.err; then
12694 ac_cpp_err=$ac_c_preproc_warn_flag
12695 else
12696 ac_cpp_err=
12697 fi
12698else
12699 ac_cpp_err=yes
12700fi
12701if test -z "$ac_cpp_err"; then
12702 ac_header_preproc=yes
12703else
12704 echo "$as_me: failed program was:" >&5
12705sed 's/^/| /' conftest.$ac_ext >&5
12706
12707 ac_header_preproc=no
12708fi
12709rm -f conftest.err conftest.$ac_ext
12710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12711echo "${ECHO_T}$ac_header_preproc" >&6
12712
12713# So? What about this header?
12714case $ac_header_compiler:$ac_header_preproc in
12715 yes:no )
12716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12720 (
12721 cat <<\_ASBOX
12722## ------------------------------------ ##
12723## Report this to bug-autoconf@gnu.org. ##
12724## ------------------------------------ ##
12725_ASBOX
12726 ) |
12727 sed "s/^/$as_me: WARNING: /" >&2
12728 ;;
12729 no:yes )
12730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12736 (
12737 cat <<\_ASBOX
12738## ------------------------------------ ##
12739## Report this to bug-autoconf@gnu.org. ##
12740## ------------------------------------ ##
12741_ASBOX
12742 ) |
12743 sed "s/^/$as_me: WARNING: /" >&2
12744 ;;
12745esac
12746echo "$as_me:$LINENO: checking for $ac_header" >&5
12747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12748if eval "test \"\${$as_ac_Header+set}\" = set"; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750else
12751 eval "$as_ac_Header=$ac_header_preproc"
12752fi
12753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12755
90dd450c 12756fi
e6cc62c6
VS
12757if test `eval echo '${'$as_ac_Header'}'` = yes; then
12758 cat >>confdefs.h <<_ACEOF
12759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12760_ACEOF
12761
12762fi
12763
12764done
90dd450c 12765
e6cc62c6
VS
12766
12767if test "$ac_cv_header_wchar_h" != "yes"; then
12768
12769for ac_header in wcstr.h
21d1c967 12770do
e6cc62c6
VS
12771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12772if eval "test \"\${$as_ac_Header+set}\" = set"; then
12773 echo "$as_me:$LINENO: checking for $ac_header" >&5
12774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12775if eval "test \"\${$as_ac_Header+set}\" = set"; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777fi
12778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12780else
12781 # Is the header compilable?
12782echo "$as_me:$LINENO: checking $ac_header usability" >&5
12783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12784cat >conftest.$ac_ext <<_ACEOF
12785#line $LINENO "configure"
12786/* confdefs.h. */
12787_ACEOF
12788cat confdefs.h >>conftest.$ac_ext
12789cat >>conftest.$ac_ext <<_ACEOF
12790/* end confdefs.h. */
12791$ac_includes_default
12792#include <$ac_header>
12793_ACEOF
12794rm -f conftest.$ac_objext
12795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_header_compiler=yes
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811ac_header_compiler=no
12812fi
12813rm -f conftest.$ac_objext conftest.$ac_ext
12814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12815echo "${ECHO_T}$ac_header_compiler" >&6
12816
12817# Is the header present?
12818echo "$as_me:$LINENO: checking $ac_header presence" >&5
12819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12820cat >conftest.$ac_ext <<_ACEOF
12821#line $LINENO "configure"
12822/* confdefs.h. */
12823_ACEOF
12824cat confdefs.h >>conftest.$ac_ext
12825cat >>conftest.$ac_ext <<_ACEOF
12826/* end confdefs.h. */
12827#include <$ac_header>
12828_ACEOF
12829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12831 ac_status=$?
12832 grep -v '^ *+' conftest.er1 >conftest.err
12833 rm -f conftest.er1
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } >/dev/null; then
12837 if test -s conftest.err; then
12838 ac_cpp_err=$ac_c_preproc_warn_flag
12839 else
12840 ac_cpp_err=
12841 fi
12842else
12843 ac_cpp_err=yes
12844fi
12845if test -z "$ac_cpp_err"; then
12846 ac_header_preproc=yes
12847else
12848 echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
12851 ac_header_preproc=no
12852fi
12853rm -f conftest.err conftest.$ac_ext
12854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12855echo "${ECHO_T}$ac_header_preproc" >&6
12856
12857# So? What about this header?
12858case $ac_header_compiler:$ac_header_preproc in
12859 yes:no )
12860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12864 (
12865 cat <<\_ASBOX
12866## ------------------------------------ ##
12867## Report this to bug-autoconf@gnu.org. ##
12868## ------------------------------------ ##
12869_ASBOX
12870 ) |
12871 sed "s/^/$as_me: WARNING: /" >&2
12872 ;;
12873 no:yes )
12874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 (
12881 cat <<\_ASBOX
12882## ------------------------------------ ##
12883## Report this to bug-autoconf@gnu.org. ##
12884## ------------------------------------ ##
12885_ASBOX
12886 ) |
12887 sed "s/^/$as_me: WARNING: /" >&2
12888 ;;
12889esac
12890echo "$as_me:$LINENO: checking for $ac_header" >&5
12891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12892if eval "test \"\${$as_ac_Header+set}\" = set"; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12894else
12895 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12896fi
e6cc62c6
VS
12897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12899
4f14bcd8 12900fi
e6cc62c6
VS
12901if test `eval echo '${'$as_ac_Header'}'` = yes; then
12902 cat >>confdefs.h <<_ACEOF
12903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12904_ACEOF
12905
12906fi
12907
12908done
12909
12910fi
12911
12912
12913for ac_header in fnmatch.h
12914do
12915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12916if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917 echo "$as_me:$LINENO: checking for $ac_header" >&5
12918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12919if eval "test \"\${$as_ac_Header+set}\" = set"; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921fi
12922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12924else
12925 # Is the header compilable?
12926echo "$as_me:$LINENO: checking $ac_header usability" >&5
12927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12928cat >conftest.$ac_ext <<_ACEOF
12929#line $LINENO "configure"
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
12935$ac_includes_default
12936#include <$ac_header>
12937_ACEOF
12938rm -f conftest.$ac_objext
12939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12940 (eval $ac_compile) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -s conftest.$ac_objext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_header_compiler=yes
12951else
12952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955ac_header_compiler=no
12956fi
12957rm -f conftest.$ac_objext conftest.$ac_ext
12958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12959echo "${ECHO_T}$ac_header_compiler" >&6
12960
12961# Is the header present?
12962echo "$as_me:$LINENO: checking $ac_header presence" >&5
12963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12964cat >conftest.$ac_ext <<_ACEOF
12965#line $LINENO "configure"
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971#include <$ac_header>
12972_ACEOF
12973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } >/dev/null; then
12981 if test -s conftest.err; then
12982 ac_cpp_err=$ac_c_preproc_warn_flag
12983 else
12984 ac_cpp_err=
12985 fi
12986else
12987 ac_cpp_err=yes
12988fi
12989if test -z "$ac_cpp_err"; then
12990 ac_header_preproc=yes
12991else
12992 echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 ac_header_preproc=no
12996fi
12997rm -f conftest.err conftest.$ac_ext
12998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12999echo "${ECHO_T}$ac_header_preproc" >&6
13000
13001# So? What about this header?
13002case $ac_header_compiler:$ac_header_preproc in
13003 yes:no )
13004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13008 (
13009 cat <<\_ASBOX
13010## ------------------------------------ ##
13011## Report this to bug-autoconf@gnu.org. ##
13012## ------------------------------------ ##
13013_ASBOX
13014 ) |
13015 sed "s/^/$as_me: WARNING: /" >&2
13016 ;;
13017 no:yes )
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13024 (
13025 cat <<\_ASBOX
13026## ------------------------------------ ##
13027## Report this to bug-autoconf@gnu.org. ##
13028## ------------------------------------ ##
13029_ASBOX
13030 ) |
13031 sed "s/^/$as_me: WARNING: /" >&2
13032 ;;
13033esac
13034echo "$as_me:$LINENO: checking for $ac_header" >&5
13035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13036if eval "test \"\${$as_ac_Header+set}\" = set"; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13038else
e6cc62c6
VS
13039 eval "$as_ac_Header=$ac_header_preproc"
13040fi
13041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13043
21d1c967 13044fi
e6cc62c6
VS
13045if test `eval echo '${'$as_ac_Header'}'` = yes; then
13046 cat >>confdefs.h <<_ACEOF
13047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13048_ACEOF
13049
13050fi
13051
21d1c967 13052done
90dd450c 13053
5c6fa7d2 13054
a0b9e27f 13055if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13056
13057for ac_func in fnmatch
21d1c967 13058do
e6cc62c6
VS
13059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13060echo "$as_me:$LINENO: checking for $ac_func" >&5
13061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13062if eval "test \"\${$as_ac_var+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064else
13065 cat >conftest.$ac_ext <<_ACEOF
13066#line $LINENO "configure"
13067/* confdefs.h. */
13068_ACEOF
13069cat confdefs.h >>conftest.$ac_ext
13070cat >>conftest.$ac_ext <<_ACEOF
13071/* end confdefs.h. */
a0b9e27f 13072/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13073 which can conflict with char $ac_func (); below.
13074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13075 <limits.h> exists even on freestanding compilers. */
13076#ifdef __STDC__
13077# include <limits.h>
13078#else
13079# include <assert.h>
13080#endif
a0b9e27f 13081/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13082#ifdef __cplusplus
13083extern "C"
13084{
13085#endif
a0b9e27f 13086/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13087 builtin and then its argument prototype would still apply. */
13088char $ac_func ();
a0b9e27f
MB
13089/* The GNU C library defines this for functions which it implements
13090 to always fail with ENOSYS. Some functions are actually named
13091 something starting with __ and the normal name is an alias. */
13092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13093choke me
13094#else
e6cc62c6
VS
13095char (*f) () = $ac_func;
13096#endif
13097#ifdef __cplusplus
13098}
a0b9e27f
MB
13099#endif
13100
e6cc62c6
VS
13101int
13102main ()
13103{
13104return f != $ac_func;
13105 ;
13106 return 0;
13107}
13108_ACEOF
13109rm -f conftest.$ac_objext conftest$ac_exeext
13110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13111 (eval $ac_link) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -s conftest$ac_exeext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 eval "$as_ac_var=yes"
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
13126eval "$as_ac_var=no"
13127fi
13128rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13129fi
13130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13132if test `eval echo '${'$as_ac_var'}'` = yes; then
13133 cat >>confdefs.h <<_ACEOF
13134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13135_ACEOF
32832908 13136
21d1c967
GD
13137fi
13138done
90dd450c 13139
a0b9e27f 13140fi
90dd450c 13141
e6cc62c6
VS
13142
13143for ac_header in langinfo.h
21d1c967 13144do
e6cc62c6
VS
13145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13146if eval "test \"\${$as_ac_Header+set}\" = set"; then
13147 echo "$as_me:$LINENO: checking for $ac_header" >&5
13148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13149if eval "test \"\${$as_ac_Header+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151fi
13152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13154else
13155 # Is the header compilable?
13156echo "$as_me:$LINENO: checking $ac_header usability" >&5
13157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13158cat >conftest.$ac_ext <<_ACEOF
13159#line $LINENO "configure"
13160/* confdefs.h. */
13161_ACEOF
13162cat confdefs.h >>conftest.$ac_ext
13163cat >>conftest.$ac_ext <<_ACEOF
13164/* end confdefs.h. */
13165$ac_includes_default
13166#include <$ac_header>
13167_ACEOF
13168rm -f conftest.$ac_objext
13169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13170 (eval $ac_compile) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -s conftest.$ac_objext'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 ac_header_compiler=yes
13181else
13182 echo "$as_me: failed program was:" >&5
13183sed 's/^/| /' conftest.$ac_ext >&5
13184
13185ac_header_compiler=no
13186fi
13187rm -f conftest.$ac_objext conftest.$ac_ext
13188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13189echo "${ECHO_T}$ac_header_compiler" >&6
13190
13191# Is the header present?
13192echo "$as_me:$LINENO: checking $ac_header presence" >&5
13193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13194cat >conftest.$ac_ext <<_ACEOF
13195#line $LINENO "configure"
13196/* confdefs.h. */
13197_ACEOF
13198cat confdefs.h >>conftest.$ac_ext
13199cat >>conftest.$ac_ext <<_ACEOF
13200/* end confdefs.h. */
13201#include <$ac_header>
13202_ACEOF
13203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } >/dev/null; then
13211 if test -s conftest.err; then
13212 ac_cpp_err=$ac_c_preproc_warn_flag
13213 else
13214 ac_cpp_err=
13215 fi
13216else
13217 ac_cpp_err=yes
13218fi
13219if test -z "$ac_cpp_err"; then
13220 ac_header_preproc=yes
13221else
13222 echo "$as_me: failed program was:" >&5
13223sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_header_preproc=no
13226fi
13227rm -f conftest.err conftest.$ac_ext
13228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13229echo "${ECHO_T}$ac_header_preproc" >&6
13230
13231# So? What about this header?
13232case $ac_header_compiler:$ac_header_preproc in
13233 yes:no )
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13238 (
13239 cat <<\_ASBOX
13240## ------------------------------------ ##
13241## Report this to bug-autoconf@gnu.org. ##
13242## ------------------------------------ ##
13243_ASBOX
13244 ) |
13245 sed "s/^/$as_me: WARNING: /" >&2
13246 ;;
13247 no:yes )
13248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13254 (
13255 cat <<\_ASBOX
13256## ------------------------------------ ##
13257## Report this to bug-autoconf@gnu.org. ##
13258## ------------------------------------ ##
13259_ASBOX
13260 ) |
13261 sed "s/^/$as_me: WARNING: /" >&2
13262 ;;
13263esac
13264echo "$as_me:$LINENO: checking for $ac_header" >&5
13265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13266if eval "test \"\${$as_ac_Header+set}\" = set"; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268else
13269 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13270fi
e6cc62c6
VS
13271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13273
4f14bcd8 13274fi
e6cc62c6
VS
13275if test `eval echo '${'$as_ac_Header'}'` = yes; then
13276 cat >>confdefs.h <<_ACEOF
13277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13278_ACEOF
13279
21d1c967 13280fi
e6cc62c6 13281
21d1c967 13282done
3a922bb4 13283
8284b0c5 13284
4f5a7f74
VZ
13285case "${host}" in
13286 *-pc-os2_emx | *-pc-os2-emx )
13287 if test $ac_cv_header_langinfo_h = "yes"; then
13288 LIBS="$LIBS -lintl"
13289 fi
13290 ;;
13291esac
1542ea39 13292
a0b9e27f 13293if test "$wxUSE_GUI" = "yes"; then
73d617c9 13294 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13295
eb69fda5 13296for ac_header in X11/Xlib.h
21d1c967 13297do
e6cc62c6
VS
13298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13299if eval "test \"\${$as_ac_Header+set}\" = set"; then
13300 echo "$as_me:$LINENO: checking for $ac_header" >&5
13301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13302if eval "test \"\${$as_ac_Header+set}\" = set"; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304fi
13305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13307else
13308 # Is the header compilable?
13309echo "$as_me:$LINENO: checking $ac_header usability" >&5
13310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13311cat >conftest.$ac_ext <<_ACEOF
13312#line $LINENO "configure"
13313/* confdefs.h. */
13314_ACEOF
13315cat confdefs.h >>conftest.$ac_ext
13316cat >>conftest.$ac_ext <<_ACEOF
13317/* end confdefs.h. */
13318$ac_includes_default
13319#include <$ac_header>
13320_ACEOF
13321rm -f conftest.$ac_objext
13322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13323 (eval $ac_compile) 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -s conftest.$ac_objext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 ac_header_compiler=yes
13334else
13335 echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338ac_header_compiler=no
13339fi
13340rm -f conftest.$ac_objext conftest.$ac_ext
13341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13342echo "${ECHO_T}$ac_header_compiler" >&6
13343
13344# Is the header present?
13345echo "$as_me:$LINENO: checking $ac_header presence" >&5
13346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13347cat >conftest.$ac_ext <<_ACEOF
13348#line $LINENO "configure"
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354#include <$ac_header>
13355_ACEOF
13356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev/null; then
13364 if test -s conftest.err; then
13365 ac_cpp_err=$ac_c_preproc_warn_flag
13366 else
13367 ac_cpp_err=
13368 fi
13369else
13370 ac_cpp_err=yes
13371fi
13372if test -z "$ac_cpp_err"; then
13373 ac_header_preproc=yes
13374else
13375 echo "$as_me: failed program was:" >&5
13376sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 ac_header_preproc=no
13379fi
13380rm -f conftest.err conftest.$ac_ext
13381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382echo "${ECHO_T}$ac_header_preproc" >&6
13383
13384# So? What about this header?
13385case $ac_header_compiler:$ac_header_preproc in
13386 yes:no )
13387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13391 (
13392 cat <<\_ASBOX
13393## ------------------------------------ ##
13394## Report this to bug-autoconf@gnu.org. ##
13395## ------------------------------------ ##
13396_ASBOX
13397 ) |
13398 sed "s/^/$as_me: WARNING: /" >&2
13399 ;;
13400 no:yes )
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13407 (
13408 cat <<\_ASBOX
13409## ------------------------------------ ##
13410## Report this to bug-autoconf@gnu.org. ##
13411## ------------------------------------ ##
13412_ASBOX
13413 ) |
13414 sed "s/^/$as_me: WARNING: /" >&2
13415 ;;
13416esac
13417echo "$as_me:$LINENO: checking for $ac_header" >&5
13418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13419if eval "test \"\${$as_ac_Header+set}\" = set"; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421else
13422 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13423fi
e6cc62c6
VS
13424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13426
90dd450c 13427fi
e6cc62c6
VS
13428if test `eval echo '${'$as_ac_Header'}'` = yes; then
13429 cat >>confdefs.h <<_ACEOF
13430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13431_ACEOF
13432
247f5006 13433fi
e6cc62c6 13434
eb69fda5
VS
13435done
13436
13437
13438for ac_header in X11/XKBlib.h
13439do
13440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13441echo "$as_me:$LINENO: checking for $ac_header" >&5
13442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13443if eval "test \"\${$as_ac_Header+set}\" = set"; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446 cat >conftest.$ac_ext <<_ACEOF
13447#line $LINENO "configure"
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453
13454 #if HAVE_X11_XLIB_H
13455 #include <X11/Xlib.h>
13456 #endif
13457
13458
13459#include <$ac_header>
13460_ACEOF
13461rm -f conftest.$ac_objext
13462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13463 (eval $ac_compile) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest.$ac_objext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 eval "$as_ac_Header=yes"
13474else
13475 echo "$as_me: failed program was:" >&5
13476sed 's/^/| /' conftest.$ac_ext >&5
13477
13478eval "$as_ac_Header=no"
13479fi
13480rm -f conftest.$ac_objext conftest.$ac_ext
13481fi
13482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13484if test `eval echo '${'$as_ac_Header'}'` = yes; then
13485 cat >>confdefs.h <<_ACEOF
13486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13487_ACEOF
13488
13489fi
13490
247f5006
VZ
13491done
13492
a0b9e27f
MB
13493 fi
13494fi
247f5006 13495
247f5006 13496
e6cc62c6
VS
13497echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13498echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13499if test "${ac_cv_c_const+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501else
13502 cat >conftest.$ac_ext <<_ACEOF
13503#line $LINENO "configure"
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509
13510int
13511main ()
13512{
13513/* FIXME: Include the comments suggested by Paul. */
13514#ifndef __cplusplus
13515 /* Ultrix mips cc rejects this. */
13516 typedef int charset[2];
13517 const charset x;
13518 /* SunOS 4.1.1 cc rejects this. */
13519 char const *const *ccp;
13520 char **p;
13521 /* NEC SVR4.0.2 mips cc rejects this. */
13522 struct point {int x, y;};
13523 static struct point const zero = {0,0};
13524 /* AIX XL C 1.02.0.0 rejects this.
13525 It does not let you subtract one const X* pointer from another in
13526 an arm of an if-expression whose if-part is not a constant
13527 expression */
13528 const char *g = "string";
13529 ccp = &g + (g ? g-g : 0);
13530 /* HPUX 7.0 cc rejects these. */
13531 ++ccp;
13532 p = (char**) ccp;
13533 ccp = (char const *const *) p;
13534 { /* SCO 3.2v4 cc rejects this. */
13535 char *t;
13536 char const *s = 0 ? (char *) 0 : (char const *) 0;
13537
13538 *t++ = 0;
13539 }
13540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13541 int x[] = {25, 17};
13542 const int *foo = &x[0];
13543 ++foo;
13544 }
13545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13546 typedef const int *iptr;
13547 iptr p = 0;
13548 ++p;
13549 }
13550 { /* AIX XL C 1.02.0.0 rejects this saying
13551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13552 struct s { int j; const int *ap[3]; };
13553 struct s *b; b->j = 5;
13554 }
13555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13556 const int foo = 10;
13557 }
13558#endif
13559
13560 ;
13561 return 0;
13562}
13563_ACEOF
13564rm -f conftest.$ac_objext
13565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566 (eval $ac_compile) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
a0b9e27f 13576 ac_cv_c_const=yes
247f5006 13577else
e6cc62c6
VS
13578 echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
13581ac_cv_c_const=no
247f5006 13582fi
e6cc62c6 13583rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13584fi
e6cc62c6
VS
13585echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13586echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13587if test $ac_cv_c_const = no; then
e6cc62c6
VS
13588
13589cat >>confdefs.h <<\_ACEOF
13590#define const
13591_ACEOF
10f2d63a 13592
90dd450c 13593fi
81809c07 13594
e6cc62c6
VS
13595echo "$as_me:$LINENO: checking for inline" >&5
13596echo $ECHO_N "checking for inline... $ECHO_C" >&6
13597if test "${ac_cv_c_inline+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13599else
a0b9e27f
MB
13600 ac_cv_c_inline=no
13601for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13602 cat >conftest.$ac_ext <<_ACEOF
13603#line $LINENO "configure"
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
13609#ifndef __cplusplus
13610typedef int foo_t;
13611static $ac_kw foo_t static_foo () {return 0; }
13612$ac_kw foo_t foo () {return 0; }
13613#endif
a0b9e27f 13614
e6cc62c6
VS
13615_ACEOF
13616rm -f conftest.$ac_objext
13617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618 (eval $ac_compile) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -s conftest.$ac_objext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
a0b9e27f 13628 ac_cv_c_inline=$ac_kw; break
247f5006 13629else
e6cc62c6
VS
13630 echo "$as_me: failed program was:" >&5
13631sed 's/^/| /' conftest.$ac_ext >&5
13632
247f5006 13633fi
e6cc62c6 13634rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13635done
247f5006
VZ
13636
13637fi
e6cc62c6
VS
13638echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13639echo "${ECHO_T}$ac_cv_c_inline" >&6
13640case $ac_cv_c_inline in
a0b9e27f 13641 inline | yes) ;;
e6cc62c6
VS
13642 no)
13643cat >>confdefs.h <<\_ACEOF
13644#define inline
13645_ACEOF
a0b9e27f 13646 ;;
e6cc62c6 13647 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13648#define inline $ac_cv_c_inline
e6cc62c6 13649_ACEOF
a0b9e27f
MB
13650 ;;
13651esac
247f5006 13652
247f5006 13653
e6cc62c6
VS
13654echo "$as_me:$LINENO: checking for char" >&5
13655echo $ECHO_N "checking for char... $ECHO_C" >&6
13656if test "${ac_cv_type_char+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658else
13659 cat >conftest.$ac_ext <<_ACEOF
13660#line $LINENO "configure"
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666$ac_includes_default
13667int
13668main ()
13669{
13670if ((char *) 0)
13671 return 0;
13672if (sizeof (char))
13673 return 0;
13674 ;
13675 return 0;
13676}
13677_ACEOF
13678rm -f conftest.$ac_objext
13679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13680 (eval $ac_compile) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_cv_type_char=yes
13691else
13692 echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
13695ac_cv_type_char=no
13696fi
13697rm -f conftest.$ac_objext conftest.$ac_ext
13698fi
13699echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13700echo "${ECHO_T}$ac_cv_type_char" >&6
13701
13702echo "$as_me:$LINENO: checking size of char" >&5
13703echo $ECHO_N "checking size of char... $ECHO_C" >&6
13704if test "${ac_cv_sizeof_char+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706else
13707 if test "$ac_cv_type_char" = yes; then
13708 # The cast to unsigned long works around a bug in the HP C Compiler
13709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13711 # This bug is HP SR number 8606223364.
a0b9e27f 13712 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13713 # Depending upon the size, compute the lo and hi bounds.
13714cat >conftest.$ac_ext <<_ACEOF
13715#line $LINENO "configure"
13716/* confdefs.h. */
13717_ACEOF
13718cat confdefs.h >>conftest.$ac_ext
13719cat >>conftest.$ac_ext <<_ACEOF
13720/* end confdefs.h. */
13721$ac_includes_default
13722int
13723main ()
13724{
13725static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13726test_array [0] = 0
13727
13728 ;
13729 return 0;
13730}
13731_ACEOF
13732rm -f conftest.$ac_objext
13733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734 (eval $ac_compile) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -s conftest.$ac_objext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_lo=0 ac_mid=0
13745 while :; do
13746 cat >conftest.$ac_ext <<_ACEOF
13747#line $LINENO "configure"
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753$ac_includes_default
13754int
13755main ()
13756{
13757static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13758test_array [0] = 0
13759
13760 ;
13761 return 0;
13762}
13763_ACEOF
13764rm -f conftest.$ac_objext
13765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_hi=$ac_mid; break
13777else
13778 echo "$as_me: failed program was:" >&5
13779sed 's/^/| /' conftest.$ac_ext >&5
13780
13781ac_lo=`expr $ac_mid + 1`
13782 if test $ac_lo -le $ac_mid; then
13783 ac_lo= ac_hi=
13784 break
13785 fi
13786 ac_mid=`expr 2 '*' $ac_mid + 1`
13787fi
13788rm -f conftest.$ac_objext conftest.$ac_ext
13789 done
a0b9e27f 13790else
e6cc62c6
VS
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794cat >conftest.$ac_ext <<_ACEOF
13795#line $LINENO "configure"
13796/* confdefs.h. */
13797_ACEOF
13798cat confdefs.h >>conftest.$ac_ext
13799cat >>conftest.$ac_ext <<_ACEOF
13800/* end confdefs.h. */
13801$ac_includes_default
13802int
13803main ()
13804{
13805static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13806test_array [0] = 0
13807
13808 ;
13809 return 0;
13810}
13811_ACEOF
13812rm -f conftest.$ac_objext
13813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_hi=-1 ac_mid=-1
13825 while :; do
13826 cat >conftest.$ac_ext <<_ACEOF
13827#line $LINENO "configure"
13828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h. */
13833$ac_includes_default
13834int
13835main ()
13836{
13837static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13838test_array [0] = 0
13839
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844rm -f conftest.$ac_objext
13845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13846 (eval $ac_compile) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_lo=$ac_mid; break
13857else
13858 echo "$as_me: failed program was:" >&5
13859sed 's/^/| /' conftest.$ac_ext >&5
13860
13861ac_hi=`expr '(' $ac_mid ')' - 1`
13862 if test $ac_mid -le $ac_hi; then
13863 ac_lo= ac_hi=
13864 break
13865 fi
13866 ac_mid=`expr 2 '*' $ac_mid`
13867fi
13868rm -f conftest.$ac_objext conftest.$ac_ext
13869 done
13870else
13871 echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874ac_lo= ac_hi=
13875fi
13876rm -f conftest.$ac_objext conftest.$ac_ext
13877fi
13878rm -f conftest.$ac_objext conftest.$ac_ext
13879# Binary search between lo and hi bounds.
13880while test "x$ac_lo" != "x$ac_hi"; do
13881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13882 cat >conftest.$ac_ext <<_ACEOF
13883#line $LINENO "configure"
13884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
13889$ac_includes_default
13890int
13891main ()
13892{
13893static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13894test_array [0] = 0
13895
13896 ;
13897 return 0;
13898}
13899_ACEOF
13900rm -f conftest.$ac_objext
13901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902 (eval $ac_compile) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } &&
13906 { ac_try='test -s conftest.$ac_objext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 ac_hi=$ac_mid
13913else
13914 echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
13917ac_lo=`expr '(' $ac_mid ')' + 1`
13918fi
13919rm -f conftest.$ac_objext conftest.$ac_ext
13920done
13921case $ac_lo in
13922?*) ac_cv_sizeof_char=$ac_lo;;
13923'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13924See \`config.log' for more details." >&5
13925echo "$as_me: error: cannot compute sizeof (char), 77
13926See \`config.log' for more details." >&2;}
13927 { (exit 1); exit 1; }; } ;;
13928esac
13929else
13930 if test "$cross_compiling" = yes; then
13931 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13932See \`config.log' for more details." >&5
13933echo "$as_me: error: cannot run test program while cross compiling
13934See \`config.log' for more details." >&2;}
13935 { (exit 1); exit 1; }; }
13936else
13937 cat >conftest.$ac_ext <<_ACEOF
13938#line $LINENO "configure"
13939/* confdefs.h. */
13940_ACEOF
13941cat confdefs.h >>conftest.$ac_ext
13942cat >>conftest.$ac_ext <<_ACEOF
13943/* end confdefs.h. */
13944$ac_includes_default
13945long longval () { return (long) (sizeof (char)); }
13946unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13947#include <stdio.h>
e6cc62c6
VS
13948#include <stdlib.h>
13949int
13950main ()
247f5006 13951{
e6cc62c6
VS
13952
13953 FILE *f = fopen ("conftest.val", "w");
13954 if (! f)
13955 exit (1);
13956 if (((long) (sizeof (char))) < 0)
13957 {
13958 long i = longval ();
13959 if (i != ((long) (sizeof (char))))
13960 exit (1);
13961 fprintf (f, "%ld\n", i);
13962 }
13963 else
13964 {
13965 unsigned long i = ulongval ();
13966 if (i != ((long) (sizeof (char))))
13967 exit (1);
13968 fprintf (f, "%lu\n", i);
13969 }
13970 exit (ferror (f) || fclose (f) != 0);
13971
13972 ;
13973 return 0;
52127426 13974}
e6cc62c6
VS
13975_ACEOF
13976rm -f conftest$ac_exeext
13977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13978 (eval $ac_link) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; }; then
13987 ac_cv_sizeof_char=`cat conftest.val`
13988else
13989 echo "$as_me: program exited with status $ac_status" >&5
13990echo "$as_me: failed program was:" >&5
13991sed 's/^/| /' conftest.$ac_ext >&5
13992
13993( exit $ac_status )
13994{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13995See \`config.log' for more details." >&5
13996echo "$as_me: error: cannot compute sizeof (char), 77
13997See \`config.log' for more details." >&2;}
13998 { (exit 1); exit 1; }; }
13999fi
14000rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14001fi
14002fi
14003rm -f conftest.val
247f5006 14004else
a0b9e27f 14005 ac_cv_sizeof_char=0
247f5006 14006fi
247f5006 14007fi
e6cc62c6
VS
14008echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14009echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14010cat >>confdefs.h <<_ACEOF
14011#define SIZEOF_CHAR $ac_cv_sizeof_char
14012_ACEOF
14013
14014
14015echo "$as_me:$LINENO: checking for short" >&5
14016echo $ECHO_N "checking for short... $ECHO_C" >&6
14017if test "${ac_cv_type_short+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 cat >conftest.$ac_ext <<_ACEOF
14021#line $LINENO "configure"
14022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
14027$ac_includes_default
14028int
14029main ()
14030{
14031if ((short *) 0)
14032 return 0;
14033if (sizeof (short))
14034 return 0;
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039rm -f conftest.$ac_objext
14040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 ac_cv_type_short=yes
14052else
14053 echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056ac_cv_type_short=no
14057fi
14058rm -f conftest.$ac_objext conftest.$ac_ext
14059fi
14060echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14061echo "${ECHO_T}$ac_cv_type_short" >&6
14062
14063echo "$as_me:$LINENO: checking size of short" >&5
14064echo $ECHO_N "checking size of short... $ECHO_C" >&6
14065if test "${ac_cv_sizeof_short+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068 if test "$ac_cv_type_short" = yes; then
14069 # The cast to unsigned long works around a bug in the HP C Compiler
14070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14072 # This bug is HP SR number 8606223364.
14073 if test "$cross_compiling" = yes; then
14074 # Depending upon the size, compute the lo and hi bounds.
14075cat >conftest.$ac_ext <<_ACEOF
14076#line $LINENO "configure"
14077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
14082$ac_includes_default
14083int
14084main ()
14085{
14086static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14087test_array [0] = 0
247f5006 14088
e6cc62c6
VS
14089 ;
14090 return 0;
14091}
14092_ACEOF
14093rm -f conftest.$ac_objext
14094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14095 (eval $ac_compile) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_lo=0 ac_mid=0
14106 while :; do
14107 cat >conftest.$ac_ext <<_ACEOF
14108#line $LINENO "configure"
14109/* confdefs.h. */
14110_ACEOF
14111cat confdefs.h >>conftest.$ac_ext
14112cat >>conftest.$ac_ext <<_ACEOF
14113/* end confdefs.h. */
14114$ac_includes_default
14115int
14116main ()
14117{
14118static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14119test_array [0] = 0
14120
14121 ;
14122 return 0;
14123}
14124_ACEOF
14125rm -f conftest.$ac_objext
14126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127 (eval $ac_compile) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_hi=$ac_mid; break
14138else
14139 echo "$as_me: failed program was:" >&5
14140sed 's/^/| /' conftest.$ac_ext >&5
14141
14142ac_lo=`expr $ac_mid + 1`
14143 if test $ac_lo -le $ac_mid; then
14144 ac_lo= ac_hi=
14145 break
14146 fi
14147 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14148fi
e6cc62c6
VS
14149rm -f conftest.$ac_objext conftest.$ac_ext
14150 done
14151else
14152 echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155cat >conftest.$ac_ext <<_ACEOF
14156#line $LINENO "configure"
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162$ac_includes_default
14163int
14164main ()
14165{
14166static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14167test_array [0] = 0
247f5006 14168
e6cc62c6
VS
14169 ;
14170 return 0;
14171}
14172_ACEOF
14173rm -f conftest.$ac_objext
14174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_hi=-1 ac_mid=-1
14186 while :; do
14187 cat >conftest.$ac_ext <<_ACEOF
14188#line $LINENO "configure"
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
14194$ac_includes_default
14195int
14196main ()
14197{
14198static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14199test_array [0] = 0
247f5006 14200
e6cc62c6
VS
14201 ;
14202 return 0;
14203}
14204_ACEOF
14205rm -f conftest.$ac_objext
14206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_lo=$ac_mid; break
14218else
14219 echo "$as_me: failed program was:" >&5
14220sed 's/^/| /' conftest.$ac_ext >&5
14221
14222ac_hi=`expr '(' $ac_mid ')' - 1`
14223 if test $ac_mid -le $ac_hi; then
14224 ac_lo= ac_hi=
14225 break
14226 fi
14227 ac_mid=`expr 2 '*' $ac_mid`
14228fi
14229rm -f conftest.$ac_objext conftest.$ac_ext
14230 done
247f5006 14231else
e6cc62c6
VS
14232 echo "$as_me: failed program was:" >&5
14233sed 's/^/| /' conftest.$ac_ext >&5
14234
14235ac_lo= ac_hi=
14236fi
14237rm -f conftest.$ac_objext conftest.$ac_ext
14238fi
14239rm -f conftest.$ac_objext conftest.$ac_ext
14240# Binary search between lo and hi bounds.
14241while test "x$ac_lo" != "x$ac_hi"; do
14242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14243 cat >conftest.$ac_ext <<_ACEOF
14244#line $LINENO "configure"
14245/* confdefs.h. */
14246_ACEOF
14247cat confdefs.h >>conftest.$ac_ext
14248cat >>conftest.$ac_ext <<_ACEOF
14249/* end confdefs.h. */
14250$ac_includes_default
14251int
14252main ()
14253{
14254static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14255test_array [0] = 0
14256
14257 ;
14258 return 0;
14259}
14260_ACEOF
14261rm -f conftest.$ac_objext
14262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14263 (eval $ac_compile) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -s conftest.$ac_objext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_hi=$ac_mid
14274else
14275 echo "$as_me: failed program was:" >&5
14276sed 's/^/| /' conftest.$ac_ext >&5
14277
14278ac_lo=`expr '(' $ac_mid ')' + 1`
14279fi
14280rm -f conftest.$ac_objext conftest.$ac_ext
14281done
14282case $ac_lo in
14283?*) ac_cv_sizeof_short=$ac_lo;;
14284'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14285See \`config.log' for more details." >&5
14286echo "$as_me: error: cannot compute sizeof (short), 77
14287See \`config.log' for more details." >&2;}
14288 { (exit 1); exit 1; }; } ;;
14289esac
247f5006 14290else
e6cc62c6
VS
14291 if test "$cross_compiling" = yes; then
14292 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14293See \`config.log' for more details." >&5
14294echo "$as_me: error: cannot run test program while cross compiling
14295See \`config.log' for more details." >&2;}
14296 { (exit 1); exit 1; }; }
14297else
14298 cat >conftest.$ac_ext <<_ACEOF
14299#line $LINENO "configure"
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306long longval () { return (long) (sizeof (short)); }
14307unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14308#include <stdio.h>
e6cc62c6
VS
14309#include <stdlib.h>
14310int
14311main ()
a0b9e27f 14312{
e6cc62c6
VS
14313
14314 FILE *f = fopen ("conftest.val", "w");
14315 if (! f)
14316 exit (1);
14317 if (((long) (sizeof (short))) < 0)
14318 {
14319 long i = longval ();
14320 if (i != ((long) (sizeof (short))))
14321 exit (1);
14322 fprintf (f, "%ld\n", i);
14323 }
14324 else
14325 {
14326 unsigned long i = ulongval ();
14327 if (i != ((long) (sizeof (short))))
14328 exit (1);
14329 fprintf (f, "%lu\n", i);
14330 }
14331 exit (ferror (f) || fclose (f) != 0);
14332
14333 ;
14334 return 0;
a0b9e27f 14335}
e6cc62c6
VS
14336_ACEOF
14337rm -f conftest$ac_exeext
14338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_sizeof_short=`cat conftest.val`
14349else
14350 echo "$as_me: program exited with status $ac_status" >&5
14351echo "$as_me: failed program was:" >&5
14352sed 's/^/| /' conftest.$ac_ext >&5
14353
14354( exit $ac_status )
14355{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14356See \`config.log' for more details." >&5
14357echo "$as_me: error: cannot compute sizeof (short), 77
14358See \`config.log' for more details." >&2;}
14359 { (exit 1); exit 1; }; }
14360fi
14361rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14362fi
14363fi
14364rm -f conftest.val
247f5006 14365else
a0b9e27f 14366 ac_cv_sizeof_short=0
247f5006 14367fi
247f5006 14368fi
e6cc62c6
VS
14369echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14370echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14371cat >>confdefs.h <<_ACEOF
14372#define SIZEOF_SHORT $ac_cv_sizeof_short
14373_ACEOF
14374
14375
14376echo "$as_me:$LINENO: checking for void *" >&5
14377echo $ECHO_N "checking for void *... $ECHO_C" >&6
14378if test "${ac_cv_type_void_p+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380else
14381 cat >conftest.$ac_ext <<_ACEOF
14382#line $LINENO "configure"
14383/* confdefs.h. */
14384_ACEOF
14385cat confdefs.h >>conftest.$ac_ext
14386cat >>conftest.$ac_ext <<_ACEOF
14387/* end confdefs.h. */
14388$ac_includes_default
14389int
14390main ()
14391{
14392if ((void * *) 0)
14393 return 0;
14394if (sizeof (void *))
14395 return 0;
14396 ;
14397 return 0;
14398}
14399_ACEOF
14400rm -f conftest.$ac_objext
14401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402 (eval $ac_compile) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_cv_type_void_p=yes
14413else
14414 echo "$as_me: failed program was:" >&5
14415sed 's/^/| /' conftest.$ac_ext >&5
14416
14417ac_cv_type_void_p=no
14418fi
14419rm -f conftest.$ac_objext conftest.$ac_ext
14420fi
14421echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14422echo "${ECHO_T}$ac_cv_type_void_p" >&6
14423
14424echo "$as_me:$LINENO: checking size of void *" >&5
14425echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14426if test "${ac_cv_sizeof_void_p+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429 if test "$ac_cv_type_void_p" = yes; then
14430 # The cast to unsigned long works around a bug in the HP C Compiler
14431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14433 # This bug is HP SR number 8606223364.
14434 if test "$cross_compiling" = yes; then
14435 # Depending upon the size, compute the lo and hi bounds.
14436cat >conftest.$ac_ext <<_ACEOF
14437#line $LINENO "configure"
14438/* confdefs.h. */
14439_ACEOF
14440cat confdefs.h >>conftest.$ac_ext
14441cat >>conftest.$ac_ext <<_ACEOF
14442/* end confdefs.h. */
14443$ac_includes_default
14444int
14445main ()
14446{
14447static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14448test_array [0] = 0
14449
14450 ;
14451 return 0;
14452}
14453_ACEOF
14454rm -f conftest.$ac_objext
14455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest.$ac_objext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_lo=0 ac_mid=0
14467 while :; do
14468 cat >conftest.$ac_ext <<_ACEOF
14469#line $LINENO "configure"
14470/* confdefs.h. */
14471_ACEOF
14472cat confdefs.h >>conftest.$ac_ext
14473cat >>conftest.$ac_ext <<_ACEOF
14474/* end confdefs.h. */
14475$ac_includes_default
14476int
14477main ()
14478{
14479static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14480test_array [0] = 0
247f5006 14481
e6cc62c6
VS
14482 ;
14483 return 0;
14484}
14485_ACEOF
14486rm -f conftest.$ac_objext
14487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_hi=$ac_mid; break
14499else
14500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503ac_lo=`expr $ac_mid + 1`
14504 if test $ac_lo -le $ac_mid; then
14505 ac_lo= ac_hi=
14506 break
14507 fi
14508 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14509fi
e6cc62c6
VS
14510rm -f conftest.$ac_objext conftest.$ac_ext
14511 done
14512else
14513 echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
14516cat >conftest.$ac_ext <<_ACEOF
14517#line $LINENO "configure"
14518/* confdefs.h. */
14519_ACEOF
14520cat confdefs.h >>conftest.$ac_ext
14521cat >>conftest.$ac_ext <<_ACEOF
14522/* end confdefs.h. */
14523$ac_includes_default
14524int
14525main ()
14526{
14527static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14528test_array [0] = 0
247f5006 14529
e6cc62c6
VS
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534rm -f conftest.$ac_objext
14535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536 (eval $ac_compile) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_hi=-1 ac_mid=-1
14547 while :; do
14548 cat >conftest.$ac_ext <<_ACEOF
14549#line $LINENO "configure"
14550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555$ac_includes_default
14556int
14557main ()
14558{
14559static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14560test_array [0] = 0
247f5006 14561
e6cc62c6
VS
14562 ;
14563 return 0;
14564}
14565_ACEOF
14566rm -f conftest.$ac_objext
14567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_lo=$ac_mid; break
14579else
14580 echo "$as_me: failed program was:" >&5
14581sed 's/^/| /' conftest.$ac_ext >&5
14582
14583ac_hi=`expr '(' $ac_mid ')' - 1`
14584 if test $ac_mid -le $ac_hi; then
14585 ac_lo= ac_hi=
14586 break
14587 fi
14588 ac_mid=`expr 2 '*' $ac_mid`
14589fi
14590rm -f conftest.$ac_objext conftest.$ac_ext
14591 done
a0b9e27f 14592else
e6cc62c6
VS
14593 echo "$as_me: failed program was:" >&5
14594sed 's/^/| /' conftest.$ac_ext >&5
14595
14596ac_lo= ac_hi=
14597fi
14598rm -f conftest.$ac_objext conftest.$ac_ext
14599fi
14600rm -f conftest.$ac_objext conftest.$ac_ext
14601# Binary search between lo and hi bounds.
14602while test "x$ac_lo" != "x$ac_hi"; do
14603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14604 cat >conftest.$ac_ext <<_ACEOF
14605#line $LINENO "configure"
14606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611$ac_includes_default
14612int
14613main ()
14614{
14615static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14616test_array [0] = 0
14617
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622rm -f conftest.$ac_objext
14623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14624 (eval $ac_compile) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_hi=$ac_mid
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639ac_lo=`expr '(' $ac_mid ')' + 1`
14640fi
14641rm -f conftest.$ac_objext conftest.$ac_ext
14642done
14643case $ac_lo in
14644?*) ac_cv_sizeof_void_p=$ac_lo;;
14645'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14646See \`config.log' for more details." >&5
14647echo "$as_me: error: cannot compute sizeof (void *), 77
14648See \`config.log' for more details." >&2;}
14649 { (exit 1); exit 1; }; } ;;
14650esac
247f5006 14651else
e6cc62c6
VS
14652 if test "$cross_compiling" = yes; then
14653 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14654See \`config.log' for more details." >&5
14655echo "$as_me: error: cannot run test program while cross compiling
14656See \`config.log' for more details." >&2;}
14657 { (exit 1); exit 1; }; }
14658else
14659 cat >conftest.$ac_ext <<_ACEOF
14660#line $LINENO "configure"
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
14666$ac_includes_default
14667long longval () { return (long) (sizeof (void *)); }
14668unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14669#include <stdio.h>
e6cc62c6
VS
14670#include <stdlib.h>
14671int
14672main ()
247f5006 14673{
e6cc62c6
VS
14674
14675 FILE *f = fopen ("conftest.val", "w");
14676 if (! f)
14677 exit (1);
14678 if (((long) (sizeof (void *))) < 0)
14679 {
14680 long i = longval ();
14681 if (i != ((long) (sizeof (void *))))
14682 exit (1);
14683 fprintf (f, "%ld\n", i);
14684 }
14685 else
14686 {
14687 unsigned long i = ulongval ();
14688 if (i != ((long) (sizeof (void *))))
14689 exit (1);
14690 fprintf (f, "%lu\n", i);
14691 }
14692 exit (ferror (f) || fclose (f) != 0);
14693
14694 ;
14695 return 0;
5c6fa7d2 14696}
e6cc62c6
VS
14697_ACEOF
14698rm -f conftest$ac_exeext
14699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_cv_sizeof_void_p=`cat conftest.val`
14710else
14711 echo "$as_me: program exited with status $ac_status" >&5
14712echo "$as_me: failed program was:" >&5
14713sed 's/^/| /' conftest.$ac_ext >&5
14714
14715( exit $ac_status )
14716{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14717See \`config.log' for more details." >&5
14718echo "$as_me: error: cannot compute sizeof (void *), 77
14719See \`config.log' for more details." >&2;}
14720 { (exit 1); exit 1; }; }
14721fi
14722rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14723fi
14724fi
14725rm -f conftest.val
a0b9e27f 14726else
a0b9e27f
MB
14727 ac_cv_sizeof_void_p=0
14728fi
a0b9e27f 14729fi
e6cc62c6
VS
14730echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14731echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14732cat >>confdefs.h <<_ACEOF
14733#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14734_ACEOF
14735
14736
14737echo "$as_me:$LINENO: checking for int" >&5
14738echo $ECHO_N "checking for int... $ECHO_C" >&6
14739if test "${ac_cv_type_int+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741else
14742 cat >conftest.$ac_ext <<_ACEOF
14743#line $LINENO "configure"
14744/* confdefs.h. */
14745_ACEOF
14746cat confdefs.h >>conftest.$ac_ext
14747cat >>conftest.$ac_ext <<_ACEOF
14748/* end confdefs.h. */
14749$ac_includes_default
14750int
14751main ()
14752{
14753if ((int *) 0)
14754 return 0;
14755if (sizeof (int))
14756 return 0;
14757 ;
14758 return 0;
14759}
14760_ACEOF
14761rm -f conftest.$ac_objext
14762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14763 (eval $ac_compile) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -s conftest.$ac_objext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_cv_type_int=yes
14774else
14775 echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
14778ac_cv_type_int=no
14779fi
14780rm -f conftest.$ac_objext conftest.$ac_ext
14781fi
14782echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14783echo "${ECHO_T}$ac_cv_type_int" >&6
14784
14785echo "$as_me:$LINENO: checking size of int" >&5
14786echo $ECHO_N "checking size of int... $ECHO_C" >&6
14787if test "${ac_cv_sizeof_int+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14789else
14790 if test "$ac_cv_type_int" = yes; then
14791 # The cast to unsigned long works around a bug in the HP C Compiler
14792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14794 # This bug is HP SR number 8606223364.
14795 if test "$cross_compiling" = yes; then
14796 # Depending upon the size, compute the lo and hi bounds.
14797cat >conftest.$ac_ext <<_ACEOF
14798#line $LINENO "configure"
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804$ac_includes_default
14805int
14806main ()
14807{
14808static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14809test_array [0] = 0
8284b0c5 14810
e6cc62c6
VS
14811 ;
14812 return 0;
14813}
14814_ACEOF
14815rm -f conftest.$ac_objext
14816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14817 (eval $ac_compile) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -s conftest.$ac_objext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_lo=0 ac_mid=0
14828 while :; do
14829 cat >conftest.$ac_ext <<_ACEOF
14830#line $LINENO "configure"
14831/* confdefs.h. */
14832_ACEOF
14833cat confdefs.h >>conftest.$ac_ext
14834cat >>conftest.$ac_ext <<_ACEOF
14835/* end confdefs.h. */
14836$ac_includes_default
14837int
14838main ()
14839{
14840static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14841test_array [0] = 0
14842
14843 ;
14844 return 0;
14845}
14846_ACEOF
14847rm -f conftest.$ac_objext
14848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849 (eval $ac_compile) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_hi=$ac_mid; break
14860else
14861 echo "$as_me: failed program was:" >&5
14862sed 's/^/| /' conftest.$ac_ext >&5
14863
14864ac_lo=`expr $ac_mid + 1`
14865 if test $ac_lo -le $ac_mid; then
14866 ac_lo= ac_hi=
14867 break
14868 fi
14869 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14870fi
e6cc62c6
VS
14871rm -f conftest.$ac_objext conftest.$ac_ext
14872 done
14873else
14874 echo "$as_me: failed program was:" >&5
14875sed 's/^/| /' conftest.$ac_ext >&5
14876
14877cat >conftest.$ac_ext <<_ACEOF
14878#line $LINENO "configure"
14879/* confdefs.h. */
14880_ACEOF
14881cat confdefs.h >>conftest.$ac_ext
14882cat >>conftest.$ac_ext <<_ACEOF
14883/* end confdefs.h. */
14884$ac_includes_default
14885int
14886main ()
14887{
14888static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14889test_array [0] = 0
247f5006 14890
e6cc62c6
VS
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext
14896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_hi=-1 ac_mid=-1
14908 while :; do
14909 cat >conftest.$ac_ext <<_ACEOF
14910#line $LINENO "configure"
14911/* confdefs.h. */
14912_ACEOF
14913cat confdefs.h >>conftest.$ac_ext
14914cat >>conftest.$ac_ext <<_ACEOF
14915/* end confdefs.h. */
14916$ac_includes_default
14917int
14918main ()
14919{
14920static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14921test_array [0] = 0
247f5006 14922
e6cc62c6
VS
14923 ;
14924 return 0;
14925}
14926_ACEOF
14927rm -f conftest.$ac_objext
14928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929 (eval $ac_compile) 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -s conftest.$ac_objext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_lo=$ac_mid; break
14940else
14941 echo "$as_me: failed program was:" >&5
14942sed 's/^/| /' conftest.$ac_ext >&5
14943
14944ac_hi=`expr '(' $ac_mid ')' - 1`
14945 if test $ac_mid -le $ac_hi; then
14946 ac_lo= ac_hi=
14947 break
14948 fi
14949 ac_mid=`expr 2 '*' $ac_mid`
14950fi
14951rm -f conftest.$ac_objext conftest.$ac_ext
14952 done
247f5006 14953else
e6cc62c6
VS
14954 echo "$as_me: failed program was:" >&5
14955sed 's/^/| /' conftest.$ac_ext >&5
14956
14957ac_lo= ac_hi=
14958fi
14959rm -f conftest.$ac_objext conftest.$ac_ext
14960fi
14961rm -f conftest.$ac_objext conftest.$ac_ext
14962# Binary search between lo and hi bounds.
14963while test "x$ac_lo" != "x$ac_hi"; do
14964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14965 cat >conftest.$ac_ext <<_ACEOF
14966#line $LINENO "configure"
14967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
14971/* end confdefs.h. */
14972$ac_includes_default
14973int
14974main ()
14975{
14976static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14977test_array [0] = 0
14978
14979 ;
14980 return 0;
14981}
14982_ACEOF
14983rm -f conftest.$ac_objext
14984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985 (eval $ac_compile) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -s conftest.$ac_objext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_hi=$ac_mid
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000ac_lo=`expr '(' $ac_mid ')' + 1`
15001fi
15002rm -f conftest.$ac_objext conftest.$ac_ext
15003done
15004case $ac_lo in
15005?*) ac_cv_sizeof_int=$ac_lo;;
15006'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15007See \`config.log' for more details." >&5
15008echo "$as_me: error: cannot compute sizeof (int), 77
15009See \`config.log' for more details." >&2;}
15010 { (exit 1); exit 1; }; } ;;
15011esac
a0b9e27f 15012else
e6cc62c6
VS
15013 if test "$cross_compiling" = yes; then
15014 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15015See \`config.log' for more details." >&5
15016echo "$as_me: error: cannot run test program while cross compiling
15017See \`config.log' for more details." >&2;}
15018 { (exit 1); exit 1; }; }
15019else
15020 cat >conftest.$ac_ext <<_ACEOF
15021#line $LINENO "configure"
15022/* confdefs.h. */
15023_ACEOF
15024cat confdefs.h >>conftest.$ac_ext
15025cat >>conftest.$ac_ext <<_ACEOF
15026/* end confdefs.h. */
15027$ac_includes_default
15028long longval () { return (long) (sizeof (int)); }
15029unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15030#include <stdio.h>
e6cc62c6
VS
15031#include <stdlib.h>
15032int
15033main ()
247f5006 15034{
e6cc62c6
VS
15035
15036 FILE *f = fopen ("conftest.val", "w");
15037 if (! f)
15038 exit (1);
15039 if (((long) (sizeof (int))) < 0)
15040 {
15041 long i = longval ();
15042 if (i != ((long) (sizeof (int))))
15043 exit (1);
15044 fprintf (f, "%ld\n", i);
15045 }
15046 else
15047 {
15048 unsigned long i = ulongval ();
15049 if (i != ((long) (sizeof (int))))
15050 exit (1);
15051 fprintf (f, "%lu\n", i);
15052 }
15053 exit (ferror (f) || fclose (f) != 0);
15054
15055 ;
15056 return 0;
247f5006 15057}
e6cc62c6
VS
15058_ACEOF
15059rm -f conftest$ac_exeext
15060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_sizeof_int=`cat conftest.val`
15071else
15072 echo "$as_me: program exited with status $ac_status" >&5
15073echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076( exit $ac_status )
15077{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15078See \`config.log' for more details." >&5
15079echo "$as_me: error: cannot compute sizeof (int), 77
15080See \`config.log' for more details." >&2;}
15081 { (exit 1); exit 1; }; }
15082fi
15083rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15084fi
15085fi
15086rm -f conftest.val
6f72b082 15087else
a0b9e27f 15088 ac_cv_sizeof_int=0
21d1c967 15089fi
698dcdb6 15090fi
e6cc62c6
VS
15091echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15092echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15093cat >>confdefs.h <<_ACEOF
15094#define SIZEOF_INT $ac_cv_sizeof_int
15095_ACEOF
15096
15097
15098echo "$as_me:$LINENO: checking for long" >&5
15099echo $ECHO_N "checking for long... $ECHO_C" >&6
15100if test "${ac_cv_type_long+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102else
15103 cat >conftest.$ac_ext <<_ACEOF
15104#line $LINENO "configure"
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h. */
15110$ac_includes_default
15111int
15112main ()
15113{
15114if ((long *) 0)
15115 return 0;
15116if (sizeof (long))
15117 return 0;
15118 ;
15119 return 0;
15120}
15121_ACEOF
15122rm -f conftest.$ac_objext
15123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_cv_type_long=yes
15135else
15136 echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139ac_cv_type_long=no
15140fi
15141rm -f conftest.$ac_objext conftest.$ac_ext
15142fi
15143echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15144echo "${ECHO_T}$ac_cv_type_long" >&6
15145
15146echo "$as_me:$LINENO: checking size of long" >&5
15147echo $ECHO_N "checking size of long... $ECHO_C" >&6
15148if test "${ac_cv_sizeof_long+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15150else
15151 if test "$ac_cv_type_long" = yes; then
15152 # The cast to unsigned long works around a bug in the HP C Compiler
15153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15155 # This bug is HP SR number 8606223364.
15156 if test "$cross_compiling" = yes; then
15157 # Depending upon the size, compute the lo and hi bounds.
15158cat >conftest.$ac_ext <<_ACEOF
15159#line $LINENO "configure"
15160/* confdefs.h. */
15161_ACEOF
15162cat confdefs.h >>conftest.$ac_ext
15163cat >>conftest.$ac_ext <<_ACEOF
15164/* end confdefs.h. */
15165$ac_includes_default
15166int
15167main ()
15168{
15169static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15170test_array [0] = 0
15171
15172 ;
15173 return 0;
15174}
15175_ACEOF
15176rm -f conftest.$ac_objext
15177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178 (eval $ac_compile) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -s conftest.$ac_objext'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_lo=0 ac_mid=0
15189 while :; do
15190 cat >conftest.$ac_ext <<_ACEOF
15191#line $LINENO "configure"
15192/* confdefs.h. */
15193_ACEOF
15194cat confdefs.h >>conftest.$ac_ext
15195cat >>conftest.$ac_ext <<_ACEOF
15196/* end confdefs.h. */
15197$ac_includes_default
15198int
15199main ()
15200{
15201static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15202test_array [0] = 0
4f14bcd8 15203
e6cc62c6
VS
15204 ;
15205 return 0;
15206}
15207_ACEOF
15208rm -f conftest.$ac_objext
15209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15210 (eval $ac_compile) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -s conftest.$ac_objext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_hi=$ac_mid; break
15221else
15222 echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225ac_lo=`expr $ac_mid + 1`
15226 if test $ac_lo -le $ac_mid; then
15227 ac_lo= ac_hi=
15228 break
15229 fi
15230 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15231fi
e6cc62c6
VS
15232rm -f conftest.$ac_objext conftest.$ac_ext
15233 done
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238cat >conftest.$ac_ext <<_ACEOF
15239#line $LINENO "configure"
15240/* confdefs.h. */
15241_ACEOF
15242cat confdefs.h >>conftest.$ac_ext
15243cat >>conftest.$ac_ext <<_ACEOF
15244/* end confdefs.h. */
15245$ac_includes_default
15246int
15247main ()
15248{
15249static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15250test_array [0] = 0
4f14bcd8 15251
e6cc62c6
VS
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext
15257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest.$ac_objext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_hi=-1 ac_mid=-1
15269 while :; do
15270 cat >conftest.$ac_ext <<_ACEOF
15271#line $LINENO "configure"
15272/* confdefs.h. */
15273_ACEOF
15274cat confdefs.h >>conftest.$ac_ext
15275cat >>conftest.$ac_ext <<_ACEOF
15276/* end confdefs.h. */
15277$ac_includes_default
15278int
15279main ()
15280{
15281static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15282test_array [0] = 0
5c6fa7d2 15283
e6cc62c6
VS
15284 ;
15285 return 0;
15286}
15287_ACEOF
15288rm -f conftest.$ac_objext
15289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15290 (eval $ac_compile) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_lo=$ac_mid; break
15301else
15302 echo "$as_me: failed program was:" >&5
15303sed 's/^/| /' conftest.$ac_ext >&5
15304
15305ac_hi=`expr '(' $ac_mid ')' - 1`
15306 if test $ac_mid -le $ac_hi; then
15307 ac_lo= ac_hi=
15308 break
15309 fi
15310 ac_mid=`expr 2 '*' $ac_mid`
15311fi
15312rm -f conftest.$ac_objext conftest.$ac_ext
15313 done
247f5006 15314else
e6cc62c6
VS
15315 echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318ac_lo= ac_hi=
15319fi
15320rm -f conftest.$ac_objext conftest.$ac_ext
15321fi
15322rm -f conftest.$ac_objext conftest.$ac_ext
15323# Binary search between lo and hi bounds.
15324while test "x$ac_lo" != "x$ac_hi"; do
15325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15326 cat >conftest.$ac_ext <<_ACEOF
15327#line $LINENO "configure"
15328/* confdefs.h. */
15329_ACEOF
15330cat confdefs.h >>conftest.$ac_ext
15331cat >>conftest.$ac_ext <<_ACEOF
15332/* end confdefs.h. */
15333$ac_includes_default
15334int
15335main ()
15336{
15337static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15338test_array [0] = 0
15339
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344rm -f conftest.$ac_objext
15345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>&5
15347 ac_status=$?
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -s conftest.$ac_objext'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_hi=$ac_mid
15357else
15358 echo "$as_me: failed program was:" >&5
15359sed 's/^/| /' conftest.$ac_ext >&5
15360
15361ac_lo=`expr '(' $ac_mid ')' + 1`
15362fi
15363rm -f conftest.$ac_objext conftest.$ac_ext
15364done
15365case $ac_lo in
15366?*) ac_cv_sizeof_long=$ac_lo;;
15367'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15368See \`config.log' for more details." >&5
15369echo "$as_me: error: cannot compute sizeof (long), 77
15370See \`config.log' for more details." >&2;}
15371 { (exit 1); exit 1; }; } ;;
15372esac
247f5006 15373else
e6cc62c6
VS
15374 if test "$cross_compiling" = yes; then
15375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15376See \`config.log' for more details." >&5
15377echo "$as_me: error: cannot run test program while cross compiling
15378See \`config.log' for more details." >&2;}
15379 { (exit 1); exit 1; }; }
15380else
15381 cat >conftest.$ac_ext <<_ACEOF
15382#line $LINENO "configure"
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
15388$ac_includes_default
15389long longval () { return (long) (sizeof (long)); }
15390unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15391#include <stdio.h>
e6cc62c6
VS
15392#include <stdlib.h>
15393int
15394main ()
247f5006 15395{
e6cc62c6
VS
15396
15397 FILE *f = fopen ("conftest.val", "w");
15398 if (! f)
15399 exit (1);
15400 if (((long) (sizeof (long))) < 0)
15401 {
15402 long i = longval ();
15403 if (i != ((long) (sizeof (long))))
15404 exit (1);
15405 fprintf (f, "%ld\n", i);
15406 }
15407 else
15408 {
15409 unsigned long i = ulongval ();
15410 if (i != ((long) (sizeof (long))))
15411 exit (1);
15412 fprintf (f, "%lu\n", i);
15413 }
15414 exit (ferror (f) || fclose (f) != 0);
15415
15416 ;
15417 return 0;
247f5006 15418}
e6cc62c6
VS
15419_ACEOF
15420rm -f conftest$ac_exeext
15421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_cv_sizeof_long=`cat conftest.val`
15432else
15433 echo "$as_me: program exited with status $ac_status" >&5
15434echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437( exit $ac_status )
15438{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15439See \`config.log' for more details." >&5
15440echo "$as_me: error: cannot compute sizeof (long), 77
15441See \`config.log' for more details." >&2;}
15442 { (exit 1); exit 1; }; }
15443fi
15444rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15445fi
15446fi
15447rm -f conftest.val
247f5006 15448else
a0b9e27f 15449 ac_cv_sizeof_long=0
247f5006 15450fi
247f5006 15451fi
e6cc62c6
VS
15452echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15453echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15454cat >>confdefs.h <<_ACEOF
a0b9e27f 15455#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15456_ACEOF
247f5006 15457
a0b9e27f
MB
15458
15459
15460case "${host}" in
15461 arm-*-linux* )
e6cc62c6
VS
15462 echo "$as_me:$LINENO: checking for long long" >&5
15463echo $ECHO_N "checking for long long... $ECHO_C" >&6
15464if test "${ac_cv_type_long_long+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466else
15467 cat >conftest.$ac_ext <<_ACEOF
15468#line $LINENO "configure"
15469/* confdefs.h. */
15470_ACEOF
15471cat confdefs.h >>conftest.$ac_ext
15472cat >>conftest.$ac_ext <<_ACEOF
15473/* end confdefs.h. */
15474$ac_includes_default
15475int
15476main ()
15477{
15478if ((long long *) 0)
15479 return 0;
15480if (sizeof (long long))
15481 return 0;
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486rm -f conftest.$ac_objext
15487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15488 (eval $ac_compile) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_type_long_long=yes
15499else
15500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
15503ac_cv_type_long_long=no
15504fi
15505rm -f conftest.$ac_objext conftest.$ac_ext
15506fi
15507echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15508echo "${ECHO_T}$ac_cv_type_long_long" >&6
15509
15510echo "$as_me:$LINENO: checking size of long long" >&5
15511echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15512if test "${ac_cv_sizeof_long_long+set}" = set; then
15513 echo $ECHO_N "(cached) $ECHO_C" >&6
15514else
15515 if test "$ac_cv_type_long_long" = yes; then
15516 # The cast to unsigned long works around a bug in the HP C Compiler
15517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15519 # This bug is HP SR number 8606223364.
a0b9e27f 15520 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15521 # Depending upon the size, compute the lo and hi bounds.
15522cat >conftest.$ac_ext <<_ACEOF
15523#line $LINENO "configure"
15524/* confdefs.h. */
15525_ACEOF
15526cat confdefs.h >>conftest.$ac_ext
15527cat >>conftest.$ac_ext <<_ACEOF
15528/* end confdefs.h. */
15529$ac_includes_default
15530int
15531main ()
15532{
15533static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15534test_array [0] = 0
15535
15536 ;
15537 return 0;
15538}
15539_ACEOF
15540rm -f conftest.$ac_objext
15541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15542 (eval $ac_compile) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_lo=0 ac_mid=0
15553 while :; do
15554 cat >conftest.$ac_ext <<_ACEOF
15555#line $LINENO "configure"
15556/* confdefs.h. */
15557_ACEOF
15558cat confdefs.h >>conftest.$ac_ext
15559cat >>conftest.$ac_ext <<_ACEOF
15560/* end confdefs.h. */
15561$ac_includes_default
15562int
15563main ()
15564{
15565static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15566test_array [0] = 0
15567
15568 ;
15569 return 0;
15570}
15571_ACEOF
15572rm -f conftest.$ac_objext
15573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15574 (eval $ac_compile) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_hi=$ac_mid; break
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589ac_lo=`expr $ac_mid + 1`
15590 if test $ac_lo -le $ac_mid; then
15591 ac_lo= ac_hi=
15592 break
15593 fi
15594 ac_mid=`expr 2 '*' $ac_mid + 1`
15595fi
15596rm -f conftest.$ac_objext conftest.$ac_ext
15597 done
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602cat >conftest.$ac_ext <<_ACEOF
15603#line $LINENO "configure"
15604/* confdefs.h. */
15605_ACEOF
15606cat confdefs.h >>conftest.$ac_ext
15607cat >>conftest.$ac_ext <<_ACEOF
15608/* end confdefs.h. */
15609$ac_includes_default
15610int
15611main ()
15612{
15613static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15614test_array [0] = 0
15615
15616 ;
15617 return 0;
15618}
15619_ACEOF
15620rm -f conftest.$ac_objext
15621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15622 (eval $ac_compile) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_hi=-1 ac_mid=-1
15633 while :; do
15634 cat >conftest.$ac_ext <<_ACEOF
15635#line $LINENO "configure"
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641$ac_includes_default
15642int
15643main ()
15644{
15645static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15646test_array [0] = 0
15647
15648 ;
15649 return 0;
15650}
15651_ACEOF
15652rm -f conftest.$ac_objext
15653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15654 (eval $ac_compile) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_lo=$ac_mid; break
15665else
15666 echo "$as_me: failed program was:" >&5
15667sed 's/^/| /' conftest.$ac_ext >&5
15668
15669ac_hi=`expr '(' $ac_mid ')' - 1`
15670 if test $ac_mid -le $ac_hi; then
15671 ac_lo= ac_hi=
15672 break
15673 fi
15674 ac_mid=`expr 2 '*' $ac_mid`
15675fi
15676rm -f conftest.$ac_objext conftest.$ac_ext
15677 done
15678else
15679 echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682ac_lo= ac_hi=
15683fi
15684rm -f conftest.$ac_objext conftest.$ac_ext
15685fi
15686rm -f conftest.$ac_objext conftest.$ac_ext
15687# Binary search between lo and hi bounds.
15688while test "x$ac_lo" != "x$ac_hi"; do
15689 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15690 cat >conftest.$ac_ext <<_ACEOF
15691#line $LINENO "configure"
15692/* confdefs.h. */
15693_ACEOF
15694cat confdefs.h >>conftest.$ac_ext
15695cat >>conftest.$ac_ext <<_ACEOF
15696/* end confdefs.h. */
15697$ac_includes_default
15698int
15699main ()
15700{
15701static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15702test_array [0] = 0
15703
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext
15709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15710 (eval $ac_compile) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
15714 { ac_try='test -s conftest.$ac_objext'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_hi=$ac_mid
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725ac_lo=`expr '(' $ac_mid ')' + 1`
15726fi
15727rm -f conftest.$ac_objext conftest.$ac_ext
15728done
15729case $ac_lo in
15730?*) ac_cv_sizeof_long_long=$ac_lo;;
15731'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15732See \`config.log' for more details." >&5
15733echo "$as_me: error: cannot compute sizeof (long long), 77
15734See \`config.log' for more details." >&2;}
15735 { (exit 1); exit 1; }; } ;;
15736esac
a0b9e27f 15737else
e6cc62c6
VS
15738 if test "$cross_compiling" = yes; then
15739 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15740See \`config.log' for more details." >&5
15741echo "$as_me: error: cannot run test program while cross compiling
15742See \`config.log' for more details." >&2;}
15743 { (exit 1); exit 1; }; }
15744else
15745 cat >conftest.$ac_ext <<_ACEOF
15746#line $LINENO "configure"
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
15752$ac_includes_default
15753long longval () { return (long) (sizeof (long long)); }
15754unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15755#include <stdio.h>
e6cc62c6
VS
15756#include <stdlib.h>
15757int
15758main ()
247f5006 15759{
e6cc62c6
VS
15760
15761 FILE *f = fopen ("conftest.val", "w");
15762 if (! f)
15763 exit (1);
15764 if (((long) (sizeof (long long))) < 0)
15765 {
15766 long i = longval ();
15767 if (i != ((long) (sizeof (long long))))
15768 exit (1);
15769 fprintf (f, "%ld\n", i);
15770 }
15771 else
15772 {
15773 unsigned long i = ulongval ();
15774 if (i != ((long) (sizeof (long long))))
15775 exit (1);
15776 fprintf (f, "%lu\n", i);
15777 }
15778 exit (ferror (f) || fclose (f) != 0);
15779
15780 ;
15781 return 0;
247f5006 15782}
e6cc62c6
VS
15783_ACEOF
15784rm -f conftest$ac_exeext
15785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15786 (eval $ac_link) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_sizeof_long_long=`cat conftest.val`
15796else
15797 echo "$as_me: program exited with status $ac_status" >&5
15798echo "$as_me: failed program was:" >&5
15799sed 's/^/| /' conftest.$ac_ext >&5
15800
15801( exit $ac_status )
15802{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15803See \`config.log' for more details." >&5
15804echo "$as_me: error: cannot compute sizeof (long long), 77
15805See \`config.log' for more details." >&2;}
15806 { (exit 1); exit 1; }; }
15807fi
15808rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15809fi
15810fi
15811rm -f conftest.val
7b4a847f 15812else
a0b9e27f 15813 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15814fi
15815fi
e6cc62c6
VS
15816echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15817echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15818cat >>confdefs.h <<_ACEOF
15819#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15820_ACEOF
15821
15822
15823 ;;
15824 *-hp-hpux* )
15825 echo "$as_me:$LINENO: checking for long long" >&5
15826echo $ECHO_N "checking for long long... $ECHO_C" >&6
15827if test "${ac_cv_type_long_long+set}" = set; then
15828 echo $ECHO_N "(cached) $ECHO_C" >&6
15829else
15830 cat >conftest.$ac_ext <<_ACEOF
15831#line $LINENO "configure"
15832/* confdefs.h. */
15833_ACEOF
15834cat confdefs.h >>conftest.$ac_ext
15835cat >>conftest.$ac_ext <<_ACEOF
15836/* end confdefs.h. */
15837$ac_includes_default
15838int
15839main ()
15840{
15841if ((long long *) 0)
15842 return 0;
15843if (sizeof (long long))
15844 return 0;
15845 ;
15846 return 0;
15847}
15848_ACEOF
15849rm -f conftest.$ac_objext
15850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851 (eval $ac_compile) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -s conftest.$ac_objext'
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 ac_cv_type_long_long=yes
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866ac_cv_type_long_long=no
15867fi
15868rm -f conftest.$ac_objext conftest.$ac_ext
15869fi
15870echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15871echo "${ECHO_T}$ac_cv_type_long_long" >&6
15872
15873echo "$as_me:$LINENO: checking size of long long" >&5
15874echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15875if test "${ac_cv_sizeof_long_long+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15877else
15878 if test "$ac_cv_type_long_long" = yes; then
15879 # The cast to unsigned long works around a bug in the HP C Compiler
15880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15882 # This bug is HP SR number 8606223364.
15883 if test "$cross_compiling" = yes; then
15884 # Depending upon the size, compute the lo and hi bounds.
15885cat >conftest.$ac_ext <<_ACEOF
15886#line $LINENO "configure"
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892$ac_includes_default
15893int
15894main ()
15895{
15896static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15897test_array [0] = 0
15898
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_lo=0 ac_mid=0
15916 while :; do
15917 cat >conftest.$ac_ext <<_ACEOF
15918#line $LINENO "configure"
15919/* confdefs.h. */
15920_ACEOF
15921cat confdefs.h >>conftest.$ac_ext
15922cat >>conftest.$ac_ext <<_ACEOF
15923/* end confdefs.h. */
15924$ac_includes_default
15925int
15926main ()
15927{
15928static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15929test_array [0] = 0
8284b0c5 15930
e6cc62c6
VS
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935rm -f conftest.$ac_objext
15936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15937 (eval $ac_compile) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -s conftest.$ac_objext'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_hi=$ac_mid; break
15948else
15949 echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952ac_lo=`expr $ac_mid + 1`
15953 if test $ac_lo -le $ac_mid; then
15954 ac_lo= ac_hi=
15955 break
15956 fi
15957 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15958fi
e6cc62c6
VS
15959rm -f conftest.$ac_objext conftest.$ac_ext
15960 done
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965cat >conftest.$ac_ext <<_ACEOF
15966#line $LINENO "configure"
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
15972$ac_includes_default
15973int
15974main ()
15975{
15976static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15977test_array [0] = 0
a0b9e27f 15978
e6cc62c6
VS
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest.$ac_objext
15984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 ac_hi=-1 ac_mid=-1
15996 while :; do
15997 cat >conftest.$ac_ext <<_ACEOF
15998#line $LINENO "configure"
15999/* confdefs.h. */
16000_ACEOF
16001cat confdefs.h >>conftest.$ac_ext
16002cat >>conftest.$ac_ext <<_ACEOF
16003/* end confdefs.h. */
16004$ac_includes_default
16005int
16006main ()
16007{
16008static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16009test_array [0] = 0
a0b9e27f 16010
e6cc62c6
VS
16011 ;
16012 return 0;
16013}
16014_ACEOF
16015rm -f conftest.$ac_objext
16016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16017 (eval $ac_compile) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -s conftest.$ac_objext'
16022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_lo=$ac_mid; break
16028else
16029 echo "$as_me: failed program was:" >&5
16030sed 's/^/| /' conftest.$ac_ext >&5
16031
16032ac_hi=`expr '(' $ac_mid ')' - 1`
16033 if test $ac_mid -le $ac_hi; then
16034 ac_lo= ac_hi=
16035 break
16036 fi
16037 ac_mid=`expr 2 '*' $ac_mid`
16038fi
16039rm -f conftest.$ac_objext conftest.$ac_ext
16040 done
8284b0c5 16041else
e6cc62c6
VS
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045ac_lo= ac_hi=
16046fi
16047rm -f conftest.$ac_objext conftest.$ac_ext
16048fi
16049rm -f conftest.$ac_objext conftest.$ac_ext
16050# Binary search between lo and hi bounds.
16051while test "x$ac_lo" != "x$ac_hi"; do
16052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16053 cat >conftest.$ac_ext <<_ACEOF
16054#line $LINENO "configure"
16055/* confdefs.h. */
16056_ACEOF
16057cat confdefs.h >>conftest.$ac_ext
16058cat >>conftest.$ac_ext <<_ACEOF
16059/* end confdefs.h. */
16060$ac_includes_default
16061int
16062main ()
16063{
16064static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16065test_array [0] = 0
16066
16067 ;
16068 return 0;
16069}
16070_ACEOF
16071rm -f conftest.$ac_objext
16072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073 (eval $ac_compile) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -s conftest.$ac_objext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_hi=$ac_mid
16084else
16085 echo "$as_me: failed program was:" >&5
16086sed 's/^/| /' conftest.$ac_ext >&5
16087
16088ac_lo=`expr '(' $ac_mid ')' + 1`
16089fi
16090rm -f conftest.$ac_objext conftest.$ac_ext
16091done
16092case $ac_lo in
16093?*) ac_cv_sizeof_long_long=$ac_lo;;
16094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16095See \`config.log' for more details." >&5
16096echo "$as_me: error: cannot compute sizeof (long long), 77
16097See \`config.log' for more details." >&2;}
16098 { (exit 1); exit 1; }; } ;;
16099esac
8284b0c5 16100else
e6cc62c6
VS
16101 if test "$cross_compiling" = yes; then
16102 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16103See \`config.log' for more details." >&5
16104echo "$as_me: error: cannot run test program while cross compiling
16105See \`config.log' for more details." >&2;}
16106 { (exit 1); exit 1; }; }
16107else
16108 cat >conftest.$ac_ext <<_ACEOF
16109#line $LINENO "configure"
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116long longval () { return (long) (sizeof (long long)); }
16117unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16118#include <stdio.h>
e6cc62c6
VS
16119#include <stdlib.h>
16120int
16121main ()
8284b0c5 16122{
e6cc62c6
VS
16123
16124 FILE *f = fopen ("conftest.val", "w");
16125 if (! f)
16126 exit (1);
16127 if (((long) (sizeof (long long))) < 0)
16128 {
16129 long i = longval ();
16130 if (i != ((long) (sizeof (long long))))
16131 exit (1);
16132 fprintf (f, "%ld\n", i);
16133 }
16134 else
16135 {
16136 unsigned long i = ulongval ();
16137 if (i != ((long) (sizeof (long long))))
16138 exit (1);
16139 fprintf (f, "%lu\n", i);
16140 }
16141 exit (ferror (f) || fclose (f) != 0);
16142
16143 ;
16144 return 0;
8284b0c5 16145}
e6cc62c6
VS
16146_ACEOF
16147rm -f conftest$ac_exeext
16148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16149 (eval $ac_link) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_sizeof_long_long=`cat conftest.val`
16159else
16160 echo "$as_me: program exited with status $ac_status" >&5
16161echo "$as_me: failed program was:" >&5
16162sed 's/^/| /' conftest.$ac_ext >&5
16163
16164( exit $ac_status )
16165{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16166See \`config.log' for more details." >&5
16167echo "$as_me: error: cannot compute sizeof (long long), 77
16168See \`config.log' for more details." >&2;}
16169 { (exit 1); exit 1; }; }
16170fi
16171rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16172fi
16173fi
16174rm -f conftest.val
5c6fa7d2
RR
16175else
16176 ac_cv_sizeof_long_long=0
52127426 16177fi
4f57cf11 16178fi
e6cc62c6
VS
16179echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16180echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16181cat >>confdefs.h <<_ACEOF
4f57cf11 16182#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16183_ACEOF
4f57cf11
GD
16184
16185
16186 if test "$ac_cv_sizeof_long_long" != "0"; then
16187 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16188 fi
16189 ;;
16190 * )
e6cc62c6
VS
16191 echo "$as_me:$LINENO: checking for long long" >&5
16192echo $ECHO_N "checking for long long... $ECHO_C" >&6
16193if test "${ac_cv_type_long_long+set}" = set; then
16194 echo $ECHO_N "(cached) $ECHO_C" >&6
16195else
16196 cat >conftest.$ac_ext <<_ACEOF
16197#line $LINENO "configure"
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203$ac_includes_default
16204int
16205main ()
16206{
16207if ((long long *) 0)
16208 return 0;
16209if (sizeof (long long))
16210 return 0;
16211 ;
16212 return 0;
16213}
16214_ACEOF
16215rm -f conftest.$ac_objext
16216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217 (eval $ac_compile) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -s conftest.$ac_objext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_cv_type_long_long=yes
16228else
16229 echo "$as_me: failed program was:" >&5
16230sed 's/^/| /' conftest.$ac_ext >&5
16231
16232ac_cv_type_long_long=no
16233fi
16234rm -f conftest.$ac_objext conftest.$ac_ext
16235fi
16236echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16237echo "${ECHO_T}$ac_cv_type_long_long" >&6
16238
16239echo "$as_me:$LINENO: checking size of long long" >&5
16240echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16241if test "${ac_cv_sizeof_long_long+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16243else
16244 if test "$ac_cv_type_long_long" = yes; then
16245 # The cast to unsigned long works around a bug in the HP C Compiler
16246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16248 # This bug is HP SR number 8606223364.
4f57cf11 16249 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16250 # Depending upon the size, compute the lo and hi bounds.
16251cat >conftest.$ac_ext <<_ACEOF
16252#line $LINENO "configure"
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258$ac_includes_default
16259int
16260main ()
16261{
16262static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16263test_array [0] = 0
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext
16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_lo=0 ac_mid=0
16282 while :; do
16283 cat >conftest.$ac_ext <<_ACEOF
16284#line $LINENO "configure"
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291int
16292main ()
16293{
16294static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16295test_array [0] = 0
16296
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_hi=$ac_mid; break
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318ac_lo=`expr $ac_mid + 1`
16319 if test $ac_lo -le $ac_mid; then
16320 ac_lo= ac_hi=
16321 break
16322 fi
16323 ac_mid=`expr 2 '*' $ac_mid + 1`
16324fi
16325rm -f conftest.$ac_objext conftest.$ac_ext
16326 done
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331cat >conftest.$ac_ext <<_ACEOF
16332#line $LINENO "configure"
16333/* confdefs.h. */
16334_ACEOF
16335cat confdefs.h >>conftest.$ac_ext
16336cat >>conftest.$ac_ext <<_ACEOF
16337/* end confdefs.h. */
16338$ac_includes_default
16339int
16340main ()
16341{
16342static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16343test_array [0] = 0
16344
16345 ;
16346 return 0;
16347}
16348_ACEOF
16349rm -f conftest.$ac_objext
16350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16351 (eval $ac_compile) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } &&
16355 { ac_try='test -s conftest.$ac_objext'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_hi=-1 ac_mid=-1
16362 while :; do
16363 cat >conftest.$ac_ext <<_ACEOF
16364#line $LINENO "configure"
16365/* confdefs.h. */
16366_ACEOF
16367cat confdefs.h >>conftest.$ac_ext
16368cat >>conftest.$ac_ext <<_ACEOF
16369/* end confdefs.h. */
16370$ac_includes_default
16371int
16372main ()
16373{
16374static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16375test_array [0] = 0
16376
16377 ;
16378 return 0;
16379}
16380_ACEOF
16381rm -f conftest.$ac_objext
16382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383 (eval $ac_compile) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
16387 { ac_try='test -s conftest.$ac_objext'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_lo=$ac_mid; break
16394else
16395 echo "$as_me: failed program was:" >&5
16396sed 's/^/| /' conftest.$ac_ext >&5
16397
16398ac_hi=`expr '(' $ac_mid ')' - 1`
16399 if test $ac_mid -le $ac_hi; then
16400 ac_lo= ac_hi=
16401 break
16402 fi
16403 ac_mid=`expr 2 '*' $ac_mid`
16404fi
16405rm -f conftest.$ac_objext conftest.$ac_ext
16406 done
4f57cf11 16407else
e6cc62c6
VS
16408 echo "$as_me: failed program was:" >&5
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
16411ac_lo= ac_hi=
16412fi
16413rm -f conftest.$ac_objext conftest.$ac_ext
16414fi
16415rm -f conftest.$ac_objext conftest.$ac_ext
16416# Binary search between lo and hi bounds.
16417while test "x$ac_lo" != "x$ac_hi"; do
16418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16419 cat >conftest.$ac_ext <<_ACEOF
16420#line $LINENO "configure"
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16431test_array [0] = 0
16432
16433 ;
16434 return 0;
16435}
16436_ACEOF
16437rm -f conftest.$ac_objext
16438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439 (eval $ac_compile) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_hi=$ac_mid
16450else
16451 echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454ac_lo=`expr '(' $ac_mid ')' + 1`
16455fi
16456rm -f conftest.$ac_objext conftest.$ac_ext
16457done
16458case $ac_lo in
16459?*) ac_cv_sizeof_long_long=$ac_lo;;
16460'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16461See \`config.log' for more details." >&5
16462echo "$as_me: error: cannot compute sizeof (long long), 77
16463See \`config.log' for more details." >&2;}
16464 { (exit 1); exit 1; }; } ;;
16465esac
16466else
16467 if test "$cross_compiling" = yes; then
16468 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16469See \`config.log' for more details." >&5
16470echo "$as_me: error: cannot run test program while cross compiling
16471See \`config.log' for more details." >&2;}
16472 { (exit 1); exit 1; }; }
16473else
16474 cat >conftest.$ac_ext <<_ACEOF
16475#line $LINENO "configure"
16476/* confdefs.h. */
16477_ACEOF
16478cat confdefs.h >>conftest.$ac_ext
16479cat >>conftest.$ac_ext <<_ACEOF
16480/* end confdefs.h. */
16481$ac_includes_default
16482long longval () { return (long) (sizeof (long long)); }
16483unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16484#include <stdio.h>
e6cc62c6
VS
16485#include <stdlib.h>
16486int
16487main ()
4f57cf11 16488{
e6cc62c6
VS
16489
16490 FILE *f = fopen ("conftest.val", "w");
16491 if (! f)
16492 exit (1);
16493 if (((long) (sizeof (long long))) < 0)
16494 {
16495 long i = longval ();
16496 if (i != ((long) (sizeof (long long))))
16497 exit (1);
16498 fprintf (f, "%ld\n", i);
16499 }
16500 else
16501 {
16502 unsigned long i = ulongval ();
16503 if (i != ((long) (sizeof (long long))))
16504 exit (1);
16505 fprintf (f, "%lu\n", i);
16506 }
16507 exit (ferror (f) || fclose (f) != 0);
16508
16509 ;
16510 return 0;
4f57cf11 16511}
e6cc62c6
VS
16512_ACEOF
16513rm -f conftest$ac_exeext
16514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16515 (eval $ac_link) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_sizeof_long_long=`cat conftest.val`
16525else
16526 echo "$as_me: program exited with status $ac_status" >&5
16527echo "$as_me: failed program was:" >&5
16528sed 's/^/| /' conftest.$ac_ext >&5
16529
16530( exit $ac_status )
16531{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16532See \`config.log' for more details." >&5
16533echo "$as_me: error: cannot compute sizeof (long long), 77
16534See \`config.log' for more details." >&2;}
16535 { (exit 1); exit 1; }; }
16536fi
16537rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16538fi
16539fi
16540rm -f conftest.val
4f57cf11 16541else
4f57cf11
GD
16542 ac_cv_sizeof_long_long=0
16543fi
7b4a847f 16544fi
e6cc62c6
VS
16545echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16546echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16547cat >>confdefs.h <<_ACEOF
21d1c967 16548#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16549_ACEOF
9e691f46 16550
8284b0c5 16551
21d1c967
GD
16552esac
16553
e6cc62c6
VS
16554echo "$as_me:$LINENO: checking size of wchar_t" >&5
16555echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16556if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16558else
e6cc62c6 16559
21d1c967 16560 if test "$cross_compiling" = yes; then
e6cc62c6 16561
2b5f62a0
VZ
16562 case "${host}" in
16563 *-pc-msdosdjgpp )
16564 wx_cv_sizeof_wchar_t=0
16565 ;;
16566 * )
16567 wx_cv_sizeof_wchar_t=4
16568 ;;
16569 esac
e6cc62c6
VS
16570
16571
6f72b082 16572else
e6cc62c6
VS
16573 cat >conftest.$ac_ext <<_ACEOF
16574#line $LINENO "configure"
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
21d1c967 16580
2b5f62a0
VZ
16581 /* DJGPP only has fake wchar_t: */
16582 #ifdef __DJGPP__
16583 # error "fake wchar_t"
16584 #endif
21d1c967
GD
16585 #ifdef HAVE_WCHAR_H
16586 # ifdef __CYGWIN__
16587 # include <stddef.h>
16588 # endif
16589 # include <wchar.h>
16590 #endif
16591 #ifdef HAVE_STDLIB_H
16592 # include <stdlib.h>
16593 #endif
16594 #include <stdio.h>
16595 int main()
16596 {
16597 FILE *f=fopen("conftestval", "w");
16598 if (!f) exit(1);
16599 fprintf(f, "%i", sizeof(wchar_t));
16600 exit(0);
16601 }
e6cc62c6
VS
16602
16603_ACEOF
16604rm -f conftest$ac_exeext
16605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
21d1c967 16615 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16616else
e6cc62c6
VS
16617 echo "$as_me: program exited with status $ac_status" >&5
16618echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621( exit $ac_status )
16622wx_cv_sizeof_wchar_t=0
6f72b082 16623fi
e6cc62c6 16624rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16625fi
6f72b082 16626
3f345b47 16627fi
e6cc62c6
VS
16628echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16629echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16630
e6cc62c6 16631cat >>confdefs.h <<_ACEOF
21d1c967 16632#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16633_ACEOF
90dd450c 16634
8284b0c5 16635
21d1c967
GD
16636# Check whether --enable-largefile or --disable-largefile was given.
16637if test "${enable_largefile+set}" = set; then
16638 enableval="$enable_largefile"
3f345b47 16639
e6cc62c6 16640fi;
21d1c967
GD
16641if test "$enable_largefile" != no; then
16642 wx_largefile=no
e6cc62c6
VS
16643
16644 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16645echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16646if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648else
16649
16650 cat >conftest.$ac_ext <<_ACEOF
16651#line $LINENO "configure"
16652/* confdefs.h. */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h. */
21d1c967
GD
16657#define _FILE_OFFSET_BITS 64
16658 #include <sys/types.h>
e6cc62c6
VS
16659int
16660main ()
16661{
21d1c967
GD
16662typedef struct {
16663 unsigned int field: sizeof(off_t) == 8;
16664} wxlf;
16665
e6cc62c6
VS
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext
16671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
21d1c967 16682 ac_cv_sys_file_offset_bits=64
f6bcfd97 16683else
e6cc62c6
VS
16684 echo "$as_me: failed program was:" >&5
16685sed 's/^/| /' conftest.$ac_ext >&5
16686
16687ac_cv_sys_file_offset_bits=no
247f5006 16688fi
e6cc62c6
VS
16689rm -f conftest.$ac_objext conftest.$ac_ext
16690
a0b9e27f 16691
e6cc62c6
VS
16692fi
16693echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16694echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16695
16696 if test "$ac_cv_sys_file_offset_bits" != no; then
16697 wx_largefile=yes
e6cc62c6 16698 cat >>confdefs.h <<_ACEOF
21d1c967 16699#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16700_ACEOF
21d1c967
GD
16701
16702 fi
16703
16704 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16705
16706 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16707echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16708if test "${ac_cv_sys_large_files+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711
16712 cat >conftest.$ac_ext <<_ACEOF
16713#line $LINENO "configure"
16714/* confdefs.h. */
16715_ACEOF
16716cat confdefs.h >>conftest.$ac_ext
16717cat >>conftest.$ac_ext <<_ACEOF
16718/* end confdefs.h. */
21d1c967
GD
16719#define _LARGE_FILES 1
16720 #include <sys/types.h>
e6cc62c6
VS
16721int
16722main ()
16723{
21d1c967
GD
16724typedef struct {
16725 unsigned int field: sizeof(off_t) == 8;
16726} wxlf;
16727
e6cc62c6
VS
16728 ;
16729 return 0;
16730}
16731_ACEOF
16732rm -f conftest.$ac_objext
16733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -s conftest.$ac_objext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
21d1c967 16744 ac_cv_sys_large_files=1
f6bcfd97 16745else
e6cc62c6
VS
16746 echo "$as_me: failed program was:" >&5
16747sed 's/^/| /' conftest.$ac_ext >&5
16748
16749ac_cv_sys_large_files=no
247f5006 16750fi
e6cc62c6 16751rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16752
e6cc62c6
VS
16753
16754fi
16755echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16756echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16757
21d1c967
GD
16758 if test "$ac_cv_sys_large_files" != no; then
16759 wx_largefile=yes
e6cc62c6 16760 cat >>confdefs.h <<_ACEOF
21d1c967 16761#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16762_ACEOF
90dd450c 16763
90dd450c
VZ
16764 fi
16765
90dd450c 16766 fi
90dd450c 16767
e6cc62c6
VS
16768 echo "$as_me:$LINENO: checking if large file support is available" >&5
16769echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16770 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16771 cat >>confdefs.h <<\_ACEOF
21d1c967 16772#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16773_ACEOF
90dd450c 16774
90dd450c 16775 fi
e6cc62c6
VS
16776 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16777echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16778fi
90dd450c 16779
8284b0c5 16780
f02444d0 16781if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16782 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16783 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16784 else
e26c13cf 16785 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16786 fi
e26c13cf 16787 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16788fi
16789
e6cc62c6
VS
16790echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16791echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16792if test "${ac_cv_c_bigendian+set}" = set; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16794else
21d1c967
GD
16795 ac_cv_c_bigendian=unknown
16796# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16797cat >conftest.$ac_ext <<_ACEOF
16798#line $LINENO "configure"
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
21d1c967
GD
16804#include <sys/types.h>
16805#include <sys/param.h>
e6cc62c6
VS
16806int
16807main ()
16808{
21d1c967
GD
16809
16810#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16811 bogus endian macros
16812#endif
e6cc62c6
VS
16813 ;
16814 return 0;
16815}
16816_ACEOF
16817rm -f conftest.$ac_objext
16818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819 (eval $ac_compile) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -s conftest.$ac_objext'
16824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
21d1c967 16829 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16830cat >conftest.$ac_ext <<_ACEOF
16831#line $LINENO "configure"
16832/* confdefs.h. */
16833_ACEOF
16834cat confdefs.h >>conftest.$ac_ext
16835cat >>conftest.$ac_ext <<_ACEOF
16836/* end confdefs.h. */
21d1c967
GD
16837#include <sys/types.h>
16838#include <sys/param.h>
e6cc62c6
VS
16839int
16840main ()
16841{
21d1c967
GD
16842
16843#if BYTE_ORDER != BIG_ENDIAN
16844 not big endian
16845#endif
e6cc62c6
VS
16846 ;
16847 return 0;
16848}
16849_ACEOF
16850rm -f conftest.$ac_objext
16851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852 (eval $ac_compile) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -s conftest.$ac_objext'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
21d1c967 16862 ac_cv_c_bigendian=yes
3f345b47 16863else
e6cc62c6
VS
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867ac_cv_c_bigendian=no
3f345b47 16868fi
e6cc62c6 16869rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16870else
e6cc62c6
VS
16871 echo "$as_me: failed program was:" >&5
16872sed 's/^/| /' conftest.$ac_ext >&5
16873
3f345b47 16874fi
e6cc62c6 16875rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16876if test $ac_cv_c_bigendian = unknown; then
16877if test "$cross_compiling" = yes; then
16878 ac_cv_c_bigendian=unknown
10f2d63a 16879else
e6cc62c6
VS
16880 cat >conftest.$ac_ext <<_ACEOF
16881#line $LINENO "configure"
16882/* confdefs.h. */
16883_ACEOF
16884cat confdefs.h >>conftest.$ac_ext
16885cat >>conftest.$ac_ext <<_ACEOF
16886/* end confdefs.h. */
21d1c967
GD
16887main () {
16888 /* Are we little or big endian? From Harbison&Steele. */
16889 union
16890 {
16891 long l;
16892 char c[sizeof (long)];
16893 } u;
16894 u.l = 1;
16895 exit (u.c[sizeof (long) - 1] == 1);
16896}
e6cc62c6
VS
16897_ACEOF
16898rm -f conftest$ac_exeext
16899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 (eval $ac_link) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
21d1c967 16909 ac_cv_c_bigendian=no
3f345b47 16910else
e6cc62c6
VS
16911 echo "$as_me: program exited with status $ac_status" >&5
16912echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915( exit $ac_status )
16916ac_cv_c_bigendian=yes
247f5006 16917fi
e6cc62c6 16918rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16919fi
3f345b47 16920fi
8168de4c 16921fi
e6cc62c6
VS
16922echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16923echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16924if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16925 { 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
16926echo "$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
16927fi
16928if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16929 cat >>confdefs.h <<\_ACEOF
247f5006 16930#define WORDS_BIGENDIAN 1
e6cc62c6 16931_ACEOF
247f5006
VZ
16932
16933fi
16934
16935
e6cc62c6
VS
16936
16937ac_ext=cc
16938ac_cpp='$CXXCPP $CPPFLAGS'
16939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16942echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16943echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16944if test -z "$CXXCPP"; then
e6cc62c6
VS
16945 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947else
16948 # Double quotes because CXXCPP needs to be expanded
16949 for CXXCPP in "$CXX -E" "/lib/cpp"
16950 do
16951 ac_preproc_ok=false
16952for ac_cxx_preproc_warn_flag in '' yes
16953do
16954 # Use a header file that comes with gcc, so configuring glibc
16955 # with a fresh cross-compiler works.
16956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16957 # <limits.h> exists even on freestanding compilers.
16958 # On the NeXT, cc -E runs the code through the compiler's parser,
16959 # not just through cpp. "Syntax error" is here to catch this case.
16960 cat >conftest.$ac_ext <<_ACEOF
16961#line $LINENO "configure"
16962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
16967#ifdef __STDC__
16968# include <limits.h>
16969#else
16970# include <assert.h>
16971#endif
16972 Syntax error
16973_ACEOF
16974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16976 ac_status=$?
16977 grep -v '^ *+' conftest.er1 >conftest.err
16978 rm -f conftest.er1
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } >/dev/null; then
16982 if test -s conftest.err; then
16983 ac_cpp_err=$ac_cxx_preproc_warn_flag
16984 else
16985 ac_cpp_err=
16986 fi
247f5006 16987else
e6cc62c6
VS
16988 ac_cpp_err=yes
16989fi
16990if test -z "$ac_cpp_err"; then
16991 :
16992else
16993 echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 # Broken: fails on valid input.
16997continue
16998fi
16999rm -f conftest.err conftest.$ac_ext
17000
17001 # OK, works on sane cases. Now check whether non-existent headers
17002 # can be detected and how.
17003 cat >conftest.$ac_ext <<_ACEOF
17004#line $LINENO "configure"
17005/* confdefs.h. */
17006_ACEOF
17007cat confdefs.h >>conftest.$ac_ext
17008cat >>conftest.$ac_ext <<_ACEOF
17009/* end confdefs.h. */
17010#include <ac_nonexistent.h>
17011_ACEOF
17012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } >/dev/null; then
17020 if test -s conftest.err; then
17021 ac_cpp_err=$ac_cxx_preproc_warn_flag
17022 else
17023 ac_cpp_err=
17024 fi
17025else
17026 ac_cpp_err=yes
17027fi
17028if test -z "$ac_cpp_err"; then
17029 # Broken: success on invalid input.
17030continue
17031else
17032 echo "$as_me: failed program was:" >&5
17033sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 # Passes both tests.
17036ac_preproc_ok=:
17037break
17038fi
17039rm -f conftest.err conftest.$ac_ext
17040
17041done
17042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17043rm -f conftest.err conftest.$ac_ext
17044if $ac_preproc_ok; then
17045 break
17046fi
17047
17048 done
17049 ac_cv_prog_CXXCPP=$CXXCPP
17050
17051fi
17052 CXXCPP=$ac_cv_prog_CXXCPP
17053else
17054 ac_cv_prog_CXXCPP=$CXXCPP
17055fi
17056echo "$as_me:$LINENO: result: $CXXCPP" >&5
17057echo "${ECHO_T}$CXXCPP" >&6
17058ac_preproc_ok=false
17059for ac_cxx_preproc_warn_flag in '' yes
17060do
17061 # Use a header file that comes with gcc, so configuring glibc
17062 # with a fresh cross-compiler works.
17063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 # <limits.h> exists even on freestanding compilers.
17065 # On the NeXT, cc -E runs the code through the compiler's parser,
17066 # not just through cpp. "Syntax error" is here to catch this case.
17067 cat >conftest.$ac_ext <<_ACEOF
17068#line $LINENO "configure"
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074#ifdef __STDC__
17075# include <limits.h>
17076#else
17077# include <assert.h>
17078#endif
17079 Syntax error
17080_ACEOF
17081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } >/dev/null; then
17089 if test -s conftest.err; then
17090 ac_cpp_err=$ac_cxx_preproc_warn_flag
17091 else
17092 ac_cpp_err=
17093 fi
17094else
17095 ac_cpp_err=yes
17096fi
17097if test -z "$ac_cpp_err"; then
21d1c967 17098 :
698dcdb6 17099else
e6cc62c6
VS
17100 echo "$as_me: failed program was:" >&5
17101sed 's/^/| /' conftest.$ac_ext >&5
17102
17103 # Broken: fails on valid input.
17104continue
17105fi
17106rm -f conftest.err conftest.$ac_ext
17107
17108 # OK, works on sane cases. Now check whether non-existent headers
17109 # can be detected and how.
17110 cat >conftest.$ac_ext <<_ACEOF
17111#line $LINENO "configure"
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
17117#include <ac_nonexistent.h>
17118_ACEOF
17119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } >/dev/null; then
17127 if test -s conftest.err; then
17128 ac_cpp_err=$ac_cxx_preproc_warn_flag
17129 else
17130 ac_cpp_err=
17131 fi
17132else
17133 ac_cpp_err=yes
247f5006 17134fi
e6cc62c6
VS
17135if test -z "$ac_cpp_err"; then
17136 # Broken: success on invalid input.
17137continue
17138else
17139 echo "$as_me: failed program was:" >&5
17140sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 # Passes both tests.
17143ac_preproc_ok=:
17144break
328a083c 17145fi
e6cc62c6
VS
17146rm -f conftest.err conftest.$ac_ext
17147
17148done
17149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17150rm -f conftest.err conftest.$ac_ext
17151if $ac_preproc_ok; then
17152 :
17153else
17154 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17155See \`config.log' for more details." >&5
17156echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17157See \`config.log' for more details." >&2;}
17158 { (exit 1); exit 1; }; }
90dd450c 17159fi
e6cc62c6
VS
17160
17161ac_ext=cc
17162ac_cpp='$CXXCPP $CPPFLAGS'
17163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17166
1e6feb95 17167
1725144d 17168
21d1c967 17169 if test "$cross_compiling" = "yes"; then
e6cc62c6 17170 cat >>confdefs.h <<\_ACEOF
21d1c967 17171#define wxUSE_IOSTREAMH 1
e6cc62c6 17172_ACEOF
ab9b9eab 17173
21d1c967 17174 else
e6cc62c6
VS
17175
17176
17177 ac_ext=cc
5c6fa7d2 17178ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17182
52127426 17183
247f5006 17184
e6cc62c6 17185for ac_header in iostream
21d1c967 17186do
e6cc62c6
VS
17187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17188if eval "test \"\${$as_ac_Header+set}\" = set"; then
17189 echo "$as_me:$LINENO: checking for $ac_header" >&5
17190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17191if eval "test \"\${$as_ac_Header+set}\" = set"; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193fi
17194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17196else
17197 # Is the header compilable?
17198echo "$as_me:$LINENO: checking $ac_header usability" >&5
17199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17200cat >conftest.$ac_ext <<_ACEOF
17201#line $LINENO "configure"
17202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
17207$ac_includes_default
17208#include <$ac_header>
17209_ACEOF
17210rm -f conftest.$ac_objext
17211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17212 (eval $ac_compile) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -s conftest.$ac_objext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_header_compiler=yes
17223else
17224 echo "$as_me: failed program was:" >&5
17225sed 's/^/| /' conftest.$ac_ext >&5
17226
17227ac_header_compiler=no
17228fi
17229rm -f conftest.$ac_objext conftest.$ac_ext
17230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17231echo "${ECHO_T}$ac_header_compiler" >&6
17232
17233# Is the header present?
17234echo "$as_me:$LINENO: checking $ac_header presence" >&5
17235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17236cat >conftest.$ac_ext <<_ACEOF
17237#line $LINENO "configure"
17238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
17243#include <$ac_header>
17244_ACEOF
17245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } >/dev/null; then
17253 if test -s conftest.err; then
17254 ac_cpp_err=$ac_cxx_preproc_warn_flag
17255 else
17256 ac_cpp_err=
17257 fi
17258else
17259 ac_cpp_err=yes
17260fi
17261if test -z "$ac_cpp_err"; then
17262 ac_header_preproc=yes
17263else
17264 echo "$as_me: failed program was:" >&5
17265sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 ac_header_preproc=no
17268fi
17269rm -f conftest.err conftest.$ac_ext
17270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17271echo "${ECHO_T}$ac_header_preproc" >&6
17272
17273# So? What about this header?
17274case $ac_header_compiler:$ac_header_preproc in
17275 yes:no )
17276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17280 (
17281 cat <<\_ASBOX
17282## ------------------------------------ ##
17283## Report this to bug-autoconf@gnu.org. ##
17284## ------------------------------------ ##
17285_ASBOX
17286 ) |
17287 sed "s/^/$as_me: WARNING: /" >&2
17288 ;;
17289 no:yes )
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17296 (
17297 cat <<\_ASBOX
17298## ------------------------------------ ##
17299## Report this to bug-autoconf@gnu.org. ##
17300## ------------------------------------ ##
17301_ASBOX
17302 ) |
17303 sed "s/^/$as_me: WARNING: /" >&2
17304 ;;
17305esac
17306echo "$as_me:$LINENO: checking for $ac_header" >&5
17307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17308if eval "test \"\${$as_ac_Header+set}\" = set"; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17310else
17311 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17312fi
e6cc62c6
VS
17313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17315
90dd450c 17316fi
e6cc62c6
VS
17317if test `eval echo '${'$as_ac_Header'}'` = yes; then
17318 cat >>confdefs.h <<_ACEOF
17319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17320_ACEOF
17321
90dd450c 17322fi
e6cc62c6 17323
21d1c967 17324done
10f2d63a 17325
8284b0c5 17326
21d1c967
GD
17327 if test "$ac_cv_header_iostream" = "yes" ; then
17328 :
17329 else
e6cc62c6 17330 cat >>confdefs.h <<\_ACEOF
21d1c967 17331#define wxUSE_IOSTREAMH 1
e6cc62c6 17332_ACEOF
788deba1 17333
90dd450c 17334 fi
ab9b9eab 17335
21d1c967 17336 ac_ext=c
21d1c967 17337ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17340ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17341
21d1c967 17342 fi
ab9b9eab 17343
52127426 17344
8284b0c5 17345
e6cc62c6
VS
17346 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17347echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17348if test "${wx_cv_cpp_bool+set}" = set; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17350else
e6cc62c6
VS
17351
17352
17353
17354 ac_ext=cc
5c6fa7d2 17355ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17359
8284b0c5 17360
e6cc62c6
VS
17361 cat >conftest.$ac_ext <<_ACEOF
17362#line $LINENO "configure"
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
21d1c967 17368
e6cc62c6
VS
17369
17370int
17371main ()
17372{
21d1c967
GD
17373
17374 bool b = true;
17375
17376 return 0;
e6cc62c6
VS
17377
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext
17383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17384 (eval $ac_compile) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -s conftest.$ac_objext'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
17394
21d1c967 17395 wx_cv_cpp_bool=yes
e6cc62c6 17396
698dcdb6 17397else
e6cc62c6
VS
17398 echo "$as_me: failed program was:" >&5
17399sed 's/^/| /' conftest.$ac_ext >&5
17400
17401
21d1c967 17402 wx_cv_cpp_bool=no
e6cc62c6
VS
17403
17404
698dcdb6 17405fi
e6cc62c6 17406rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17407
17408 ac_ext=c
21d1c967 17409ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17412ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17413
a0b9e27f 17414
e6cc62c6
VS
17415fi
17416echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17417echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17418
17419 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17420 cat >>confdefs.h <<\_ACEOF
21d1c967 17421#define HAVE_BOOL 1
e6cc62c6 17422_ACEOF
ab9b9eab 17423
21d1c967
GD
17424 fi
17425
52127426 17426
8284b0c5 17427
e6cc62c6
VS
17428 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17429echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17430if test "${wx_cv_explicit+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17432else
e6cc62c6
VS
17433
17434
17435
17436 ac_ext=cc
5c6fa7d2 17437ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17441
8284b0c5 17442
e6cc62c6
VS
17443 cat >conftest.$ac_ext <<_ACEOF
17444#line $LINENO "configure"
17445/* confdefs.h. */
17446_ACEOF
17447cat confdefs.h >>conftest.$ac_ext
17448cat >>conftest.$ac_ext <<_ACEOF
17449/* end confdefs.h. */
986ecc86
VZ
17450
17451 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17452
17453int
17454main ()
17455{
986ecc86
VZ
17456
17457 return 0;
e6cc62c6
VS
17458
17459 ;
17460 return 0;
17461}
17462_ACEOF
17463rm -f conftest.$ac_objext
17464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17465 (eval $ac_compile) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -s conftest.$ac_objext'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475
17476 cat >conftest.$ac_ext <<_ACEOF
17477#line $LINENO "configure"
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
986ecc86
VZ
17483
17484 class Foo { public: explicit Foo(int) {} };
17485 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17486
17487int
17488main ()
17489{
986ecc86
VZ
17490
17491 TakeFoo(17);
17492 return 0;
e6cc62c6
VS
17493
17494 ;
17495 return 0;
17496}
17497_ACEOF
17498rm -f conftest.$ac_objext
17499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500 (eval $ac_compile) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -s conftest.$ac_objext'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
986ecc86
VZ
17510 wx_cv_explicit=no
17511else
e6cc62c6
VS
17512 echo "$as_me: failed program was:" >&5
17513sed 's/^/| /' conftest.$ac_ext >&5
17514
17515wx_cv_explicit=yes
17516
986ecc86 17517fi
e6cc62c6
VS
17518rm -f conftest.$ac_objext conftest.$ac_ext
17519
986ecc86 17520else
e6cc62c6
VS
17521 echo "$as_me: failed program was:" >&5
17522sed 's/^/| /' conftest.$ac_ext >&5
17523
17524wx_cv_explicit=no
17525
986ecc86 17526fi
e6cc62c6 17527rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17528
17529 ac_ext=c
986ecc86 17530ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17534
a0b9e27f 17535
e6cc62c6
VS
17536fi
17537echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17538echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17539
17540 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17541 cat >>confdefs.h <<\_ACEOF
986ecc86 17542#define HAVE_EXPLICIT 1
e6cc62c6 17543_ACEOF
986ecc86
VZ
17544
17545 fi
17546
8284b0c5 17547
e6cc62c6
VS
17548echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17549echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17550if test "${ac_cv_cxx_const_cast+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17552else
521196a2 17553
521196a2 17554
e6cc62c6
VS
17555 ac_ext=cc
17556ac_cpp='$CXXCPP $CPPFLAGS'
17557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17560
17561 cat >conftest.$ac_ext <<_ACEOF
17562#line $LINENO "configure"
17563/* confdefs.h. */
17564_ACEOF
17565cat confdefs.h >>conftest.$ac_ext
17566cat >>conftest.$ac_ext <<_ACEOF
17567/* end confdefs.h. */
17568
17569int
17570main ()
17571{
521196a2 17572int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17573 ;
17574 return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext
17578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17579 (eval $ac_compile) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
521196a2
MB
17589 ac_cv_cxx_const_cast=yes
17590else
e6cc62c6
VS
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
17594ac_cv_cxx_const_cast=no
521196a2 17595fi
e6cc62c6 17596rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17597 ac_ext=c
521196a2 17598ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17602
17603
17604fi
e6cc62c6
VS
17605echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17606echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17607if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17608
17609cat >>confdefs.h <<\_ACEOF
17610#define HAVE_CONST_CAST
17611_ACEOF
521196a2
MB
17612
17613fi
17614
17615
e87b7833
MB
17616if test "$wxUSE_STL" = "yes"; then
17617 ac_ext=cc
17618ac_cpp='$CXXCPP $CPPFLAGS'
17619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17622
17623
17624 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17625echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17626 cat >conftest.$ac_ext <<_ACEOF
17627#line $LINENO "configure"
17628/* confdefs.h. */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h. */
17633#include <string>
17634 #include <functional>
17635 #include <algorithm>
17636 #include <vector>
17637 #include <list>
17638int
17639main ()
17640{
17641std::vector<int> moo;
17642 std::list<int> foo;
17643 std::vector<int>::iterator it =
17644 std::find_if(moo.begin(), moo.end(),
17645 std::bind2nd(std::less<int>(), 3));
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext
17651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 echo "$as_me:$LINENO: result: yes" >&5
17663echo "${ECHO_T}yes" >&6
17664else
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668echo "$as_me:$LINENO: result: no" >&5
17669echo "${ECHO_T}no" >&6
17670 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17671echo "$as_me: error: Basic STL functionality missing" >&2;}
17672 { (exit 1); exit 1; }; }
17673fi
17674rm -f conftest.$ac_objext conftest.$ac_ext
17675
17676 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17677echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17678 cat >conftest.$ac_ext <<_ACEOF
17679#line $LINENO "configure"
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685#include <string>
17686int
17687main ()
17688{
17689std::wstring foo;
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext
17695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17696 (eval $ac_compile) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 echo "$as_me:$LINENO: result: yes" >&5
17707echo "${ECHO_T}yes" >&6
17708 cat >>confdefs.h <<\_ACEOF
17709#define HAVE_STD_WSTRING 1
17710_ACEOF
17711
17712else
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716echo "$as_me:$LINENO: result: no" >&5
17717echo "${ECHO_T}no" >&6
17718fi
17719rm -f conftest.$ac_objext conftest.$ac_ext
17720
17721 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17722echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17724#line $LINENO "configure"
17725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
17730#include <string>
17731int
17732main ()
17733{
17734std::string foo, bar;
17735 foo.compare(bar);
17736 foo.compare(1, 1, bar);
17737 foo.compare(1, 1, bar, 1, 1);
17738 foo.compare("");
17739 foo.compare(1, 1, "");
17740 foo.compare(1, 1, "", 2);
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747 (eval $ac_compile) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -s conftest.$ac_objext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 echo "$as_me:$LINENO: result: yes" >&5
17758echo "${ECHO_T}yes" >&6
17759 cat >>confdefs.h <<\_ACEOF
17760#define HAVE_STD_STRING_COMPARE 1
17761_ACEOF
17762
17763else
17764 echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767echo "$as_me:$LINENO: result: no" >&5
17768echo "${ECHO_T}no" >&6
17769fi
17770rm -f conftest.$ac_objext conftest.$ac_ext
17771
17772 ac_ext=c
17773ac_cpp='$CPP $CPPFLAGS'
17774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17776ac_compiler_gnu=$ac_cv_c_compiler_gnu
17777
17778fi
17779
8284b0c5 17780
21d1c967
GD
17781SEARCH_INCLUDE="\
17782 /usr/local/include \
17783 \
17784 /usr/Motif-1.2/include \
17785 /usr/Motif-2.1/include \
17786 \
17787 /usr/include/Motif1.2 \
17788 /opt/xpm/include/X11 \
17789 /opt/GBxpm/include/ \
17790 /opt/GBxpm/X11/include/ \
17791 \
17792 /usr/Motif1.2/include \
17793 /usr/dt/include \
17794 /usr/openwin/include \
17795 \
17796 /usr/include/Xm \
17797 \
17798 /usr/X11R6/include \
17799 /usr/X11R6.4/include \
17800 /usr/X11R5/include \
17801 /usr/X11R4/include \
17802 \
17803 /usr/include/X11R6 \
17804 /usr/include/X11R5 \
17805 /usr/include/X11R4 \
17806 \
17807 /usr/local/X11R6/include \
17808 /usr/local/X11R5/include \
17809 /usr/local/X11R4/include \
17810 \
17811 /usr/local/include/X11R6 \
17812 /usr/local/include/X11R5 \
17813 /usr/local/include/X11R4 \
17814 \
17815 /usr/X11/include \
17816 /usr/include/X11 \
17817 /usr/local/X11/include \
17818 /usr/local/include/X11 \
17819 \
17820 /usr/X386/include \
17821 /usr/x386/include \
17822 /usr/XFree86/include/X11 \
17823 \
17824 X:/XFree86/include \
17825 X:/XFree86/include/X11 \
17826 \
17827 /usr/include/gtk \
17828 /usr/local/include/gtk \
17829 /usr/include/glib \
17830 /usr/local/include/glib \
17831 \
17832 /usr/include/qt \
17833 /usr/local/include/qt \
17834 \
17835 /usr/include/windows \
17836 /usr/include/wine \
17837 /usr/local/include/wine \
17838 \
17839 /usr/unsupported/include \
17840 /usr/athena/include \
17841 /usr/local/x11r5/include \
17842 /usr/lpp/Xamples/include \
17843 \
2b5f62a0 17844 /usr/openwin/share/include"
21d1c967
GD
17845
17846SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17847
8284b0c5 17848
e6cc62c6 17849cat >confcache <<\_ACEOF
21d1c967
GD
17850# This file is a shell script that caches the results of configure
17851# tests run on this system so they can be shared between configure
e6cc62c6
VS
17852# scripts and configure runs, see configure's option --config-cache.
17853# It is not useful on other systems. If it contains results you don't
17854# want to keep, you may remove or edit it.
21d1c967 17855#
e6cc62c6
VS
17856# config.status only pays attention to the cache file if you give it
17857# the --recheck option to rerun configure.
21d1c967 17858#
e6cc62c6
VS
17859# `ac_cv_env_foo' variables (set or unset) will be overridden when
17860# loading this file, other *unset* `ac_cv_foo' will be assigned the
17861# following values.
17862
17863_ACEOF
17864
21d1c967
GD
17865# The following way of writing the cache mishandles newlines in values,
17866# but we know of no workaround that is simple, portable, and efficient.
17867# So, don't put newlines in cache variables' values.
17868# Ultrix sh set writes to stderr and can't be redirected directly,
17869# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17870{
17871 (set) 2>&1 |
17872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17873 *ac_space=\ *)
17874 # `set' does not quote correctly, so add quotes (double-quote
17875 # substitution turns \\\\ into \\, and sed turns \\ into \).
17876 sed -n \
17877 "s/'/'\\\\''/g;
17878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17879 ;;
17880 *)
17881 # `set' quotes correctly as required by POSIX, so do not add quotes.
17882 sed -n \
17883 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17884 ;;
17885 esac;
17886} |
17887 sed '
17888 t clear
17889 : clear
17890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17891 t end
17892 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17893 : end' >>confcache
17894if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17895 if test -w $cache_file; then
e6cc62c6
VS
17896 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17897 cat confcache >$cache_file
21d1c967
GD
17898 else
17899 echo "not updating unwritable cache $cache_file"
17900 fi
ab9b9eab 17901fi
21d1c967 17902rm -f confcache
ab9b9eab 17903
fe0895cf 17904if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17905 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17906echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17907if test "${wx_cv_lib_glibc21+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910
17911 cat >conftest.$ac_ext <<_ACEOF
17912#line $LINENO "configure"
17913/* confdefs.h. */
17914_ACEOF
17915cat confdefs.h >>conftest.$ac_ext
17916cat >>conftest.$ac_ext <<_ACEOF
17917/* end confdefs.h. */
21d1c967 17918#include <features.h>
e6cc62c6
VS
17919int
17920main ()
17921{
ab9b9eab 17922
21d1c967
GD
17923 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17924 #error not glibc2.1
17925 #endif
e6cc62c6
VS
17926
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext
17932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17933 (eval $ac_compile) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
17937 { ac_try='test -s conftest.$ac_objext'
17938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939 (eval $ac_try) 2>&5
17940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; }; then
17943
21d1c967 17944 wx_cv_lib_glibc21=yes
e6cc62c6 17945
698dcdb6 17946else
e6cc62c6
VS
17947 echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
17950
21d1c967 17951 wx_cv_lib_glibc21=no
e6cc62c6
VS
17952
17953
247f5006 17954fi
e6cc62c6 17955rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17956
e6cc62c6
VS
17957fi
17958echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17959echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17960 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17961 cat >>confdefs.h <<\_ACEOF
21d1c967 17962#define wxHAVE_GLIBC2 1
e6cc62c6 17963_ACEOF
1e487827 17964
90dd450c 17965 fi
ab9b9eab
VZ
17966fi
17967
5c0a20c3
VZ
17968if test "x$wx_cv_lib_glibc21" = "xyes"; then
17969 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17970 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17971#define _GNU_SOURCE 1
e6cc62c6 17972_ACEOF
5c0a20c3
VZ
17973
17974 fi
17975fi
17976
8284b0c5
MB
17977
17978
21d1c967
GD
17979REGEX_INCLUDE=
17980if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17981 cat >>confdefs.h <<\_ACEOF
21d1c967 17982#define wxUSE_REGEX 1
e6cc62c6 17983_ACEOF
698dcdb6 17984
8284b0c5 17985
21d1c967 17986 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17987 if test "${ac_cv_header_regex_h+set}" = set; then
17988 echo "$as_me:$LINENO: checking for regex.h" >&5
17989echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17990if test "${ac_cv_header_regex_h+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992fi
17993echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17994echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17995else
17996 # Is the header compilable?
17997echo "$as_me:$LINENO: checking regex.h usability" >&5
17998echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17999cat >conftest.$ac_ext <<_ACEOF
18000#line $LINENO "configure"
18001/* confdefs.h. */
18002_ACEOF
18003cat confdefs.h >>conftest.$ac_ext
18004cat >>conftest.$ac_ext <<_ACEOF
18005/* end confdefs.h. */
18006$ac_includes_default
247f5006 18007#include <regex.h>
e6cc62c6
VS
18008_ACEOF
18009rm -f conftest.$ac_objext
18010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18011 (eval $ac_compile) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -s conftest.$ac_objext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_header_compiler=yes
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026ac_header_compiler=no
18027fi
18028rm -f conftest.$ac_objext conftest.$ac_ext
18029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18030echo "${ECHO_T}$ac_header_compiler" >&6
18031
18032# Is the header present?
18033echo "$as_me:$LINENO: checking regex.h presence" >&5
18034echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18035cat >conftest.$ac_ext <<_ACEOF
18036#line $LINENO "configure"
18037/* confdefs.h. */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h. */
18042#include <regex.h>
18043_ACEOF
18044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } >/dev/null; then
18052 if test -s conftest.err; then
18053 ac_cpp_err=$ac_c_preproc_warn_flag
18054 else
18055 ac_cpp_err=
18056 fi
18057else
18058 ac_cpp_err=yes
18059fi
18060if test -z "$ac_cpp_err"; then
18061 ac_header_preproc=yes
18062else
18063 echo "$as_me: failed program was:" >&5
18064sed 's/^/| /' conftest.$ac_ext >&5
18065
18066 ac_header_preproc=no
18067fi
18068rm -f conftest.err conftest.$ac_ext
18069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18070echo "${ECHO_T}$ac_header_preproc" >&6
18071
18072# So? What about this header?
18073case $ac_header_compiler:$ac_header_preproc in
18074 yes:no )
18075 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18076echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18078echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18079 (
18080 cat <<\_ASBOX
18081## ------------------------------------ ##
18082## Report this to bug-autoconf@gnu.org. ##
18083## ------------------------------------ ##
18084_ASBOX
18085 ) |
18086 sed "s/^/$as_me: WARNING: /" >&2
18087 ;;
18088 no:yes )
18089 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18090echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18092echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18094echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18095 (
18096 cat <<\_ASBOX
18097## ------------------------------------ ##
18098## Report this to bug-autoconf@gnu.org. ##
18099## ------------------------------------ ##
18100_ASBOX
18101 ) |
18102 sed "s/^/$as_me: WARNING: /" >&2
18103 ;;
18104esac
18105echo "$as_me:$LINENO: checking for regex.h" >&5
18106echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18107if test "${ac_cv_header_regex_h+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109else
18110 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18111fi
e6cc62c6
VS
18112echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18113echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18114
698dcdb6 18115fi
e6cc62c6
VS
18116if test $ac_cv_header_regex_h = yes; then
18117
18118for ac_func in regcomp
21d1c967 18119do
e6cc62c6
VS
18120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18121echo "$as_me:$LINENO: checking for $ac_func" >&5
18122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18123if eval "test \"\${$as_ac_var+set}\" = set"; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18125else
18126 cat >conftest.$ac_ext <<_ACEOF
18127#line $LINENO "configure"
18128/* confdefs.h. */
18129_ACEOF
18130cat confdefs.h >>conftest.$ac_ext
18131cat >>conftest.$ac_ext <<_ACEOF
18132/* end confdefs.h. */
a0b9e27f 18133/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18134 which can conflict with char $ac_func (); below.
18135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136 <limits.h> exists even on freestanding compilers. */
18137#ifdef __STDC__
18138# include <limits.h>
18139#else
18140# include <assert.h>
18141#endif
21d1c967 18142/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18143#ifdef __cplusplus
18144extern "C"
18145{
18146#endif
21d1c967 18147/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18148 builtin and then its argument prototype would still apply. */
18149char $ac_func ();
21d1c967
GD
18150/* The GNU C library defines this for functions which it implements
18151 to always fail with ENOSYS. Some functions are actually named
18152 something starting with __ and the normal name is an alias. */
18153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18154choke me
18155#else
e6cc62c6
VS
18156char (*f) () = $ac_func;
18157#endif
18158#ifdef __cplusplus
18159}
21d1c967 18160#endif
90dd450c 18161
e6cc62c6
VS
18162int
18163main ()
18164{
18165return f != $ac_func;
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext conftest$ac_exeext
18171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172 (eval $ac_link) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -s conftest$ac_exeext'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 eval "$as_ac_var=yes"
18183else
18184 echo "$as_me: failed program was:" >&5
18185sed 's/^/| /' conftest.$ac_ext >&5
18186
18187eval "$as_ac_var=no"
18188fi
18189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18190fi
18191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18192echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18193if test `eval echo '${'$as_ac_var'}'` = yes; then
18194 cat >>confdefs.h <<_ACEOF
18195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18196_ACEOF
5c6fa7d2 18197
698dcdb6 18198fi
21d1c967
GD
18199done
18200
ab9b9eab
VZ
18201fi
18202
8284b0c5 18203
e6cc62c6 18204
21d1c967
GD
18205 if test "x$ac_cv_func_regcomp" != "xyes"; then
18206 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18207 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18208echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18209 { (exit 1); exit 1; }; }
21d1c967 18210 else
e6cc62c6
VS
18211 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18212echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18213 wxUSE_REGEX=builtin
18214 fi
18215 else
18216 wxUSE_REGEX=sys
18217 fi
ab9b9eab 18218 fi
90dd450c 18219
21d1c967
GD
18220 if test "$wxUSE_REGEX" = "builtin" ; then
18221 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18222 fi
21d1c967 18223fi
90dd450c 18224
8284b0c5 18225
21d1c967
GD
18226ZLIB_INCLUDE=
18227ZLIB_LINK=
18228if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18229 cat >>confdefs.h <<\_ACEOF
21d1c967 18230#define wxUSE_ZLIB 1
e6cc62c6 18231_ACEOF
21d1c967 18232
8284b0c5 18233
21d1c967 18234 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18235 if test "$USE_DARWIN" = 1; then
18236 system_zlib_h_ok="yes"
18237 else
e6cc62c6
VS
18238 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18239echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18240if test "${ac_cv_header_zlib_h+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18242else
18243 if test "$cross_compiling" = yes; then
89e6bf6d 18244 unset ac_cv_header_zlib_h
e6cc62c6 18245
d643b80e 18246else
e6cc62c6
VS
18247 cat >conftest.$ac_ext <<_ACEOF
18248#line $LINENO "configure"
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h. */
18254
ef33c576 18255 #include <zlib.h>
d775acfa 18256 #include <stdio.h>
d643b80e 18257
d775acfa
VZ
18258 int main()
18259 {
18260 FILE *f=fopen("conftestval", "w");
18261 if (!f) exit(1);
18262 fprintf(f, "%s",
18263 ZLIB_VERSION[0] == '1' &&
18264 (ZLIB_VERSION[2] > '1' ||
18265 (ZLIB_VERSION[2] == '1' &&
18266 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18267 exit(0);
18268 }
e6cc62c6
VS
18269
18270_ACEOF
18271rm -f conftest$ac_exeext
18272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; }; then
d643b80e
VZ
18282 ac_cv_header_zlib_h=`cat conftestval`
18283else
e6cc62c6
VS
18284 echo "$as_me: program exited with status $ac_status" >&5
18285echo "$as_me: failed program was:" >&5
18286sed 's/^/| /' conftest.$ac_ext >&5
18287
18288( exit $ac_status )
18289ac_cv_header_zlib_h=no
d643b80e 18290fi
e6cc62c6 18291rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18292fi
18293
d643b80e 18294fi
e6cc62c6
VS
18295echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18296echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18297 if test "${ac_cv_header_zlib_h+set}" = set; then
18298 echo "$as_me:$LINENO: checking for zlib.h" >&5
18299echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18300if test "${ac_cv_header_zlib_h+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302fi
18303echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18304echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18305else
e6cc62c6
VS
18306 # Is the header compilable?
18307echo "$as_me:$LINENO: checking zlib.h usability" >&5
18308echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18309cat >conftest.$ac_ext <<_ACEOF
18310#line $LINENO "configure"
18311/* confdefs.h. */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h. */
18316$ac_includes_default
89e6bf6d 18317#include <zlib.h>
e6cc62c6
VS
18318_ACEOF
18319rm -f conftest.$ac_objext
18320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18321 (eval $ac_compile) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -s conftest.$ac_objext'
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 ac_header_compiler=yes
18332else
18333 echo "$as_me: failed program was:" >&5
18334sed 's/^/| /' conftest.$ac_ext >&5
18335
18336ac_header_compiler=no
18337fi
18338rm -f conftest.$ac_objext conftest.$ac_ext
18339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18340echo "${ECHO_T}$ac_header_compiler" >&6
18341
18342# Is the header present?
18343echo "$as_me:$LINENO: checking zlib.h presence" >&5
18344echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18345cat >conftest.$ac_ext <<_ACEOF
18346#line $LINENO "configure"
18347/* confdefs.h. */
18348_ACEOF
18349cat confdefs.h >>conftest.$ac_ext
18350cat >>conftest.$ac_ext <<_ACEOF
18351/* end confdefs.h. */
18352#include <zlib.h>
18353_ACEOF
18354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } >/dev/null; then
18362 if test -s conftest.err; then
18363 ac_cpp_err=$ac_c_preproc_warn_flag
18364 else
18365 ac_cpp_err=
18366 fi
18367else
18368 ac_cpp_err=yes
18369fi
18370if test -z "$ac_cpp_err"; then
18371 ac_header_preproc=yes
18372else
18373 echo "$as_me: failed program was:" >&5
18374sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 ac_header_preproc=no
18377fi
18378rm -f conftest.err conftest.$ac_ext
18379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18380echo "${ECHO_T}$ac_header_preproc" >&6
18381
18382# So? What about this header?
18383case $ac_header_compiler:$ac_header_preproc in
18384 yes:no )
18385 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18386echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18387 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18388echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18389 (
18390 cat <<\_ASBOX
18391## ------------------------------------ ##
18392## Report this to bug-autoconf@gnu.org. ##
18393## ------------------------------------ ##
18394_ASBOX
18395 ) |
18396 sed "s/^/$as_me: WARNING: /" >&2
18397 ;;
18398 no:yes )
18399 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18400echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18401 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18402echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18403 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18404echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18405 (
18406 cat <<\_ASBOX
18407## ------------------------------------ ##
18408## Report this to bug-autoconf@gnu.org. ##
18409## ------------------------------------ ##
18410_ASBOX
18411 ) |
18412 sed "s/^/$as_me: WARNING: /" >&2
18413 ;;
18414esac
18415echo "$as_me:$LINENO: checking for zlib.h" >&5
18416echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18417if test "${ac_cv_header_zlib_h+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18419else
e6cc62c6
VS
18420 ac_cv_header_zlib_h=$ac_header_preproc
18421fi
18422echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18423echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18424
89e6bf6d
VZ
18425fi
18426
d643b80e 18427
e6cc62c6 18428
d775acfa
VZ
18429 system_zlib_h_ok=$ac_cv_header_zlib_h
18430 fi
18431
18432 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18433 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18434echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18435if test "${ac_cv_lib_z_deflate+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18437else
e6cc62c6 18438 ac_check_lib_save_LIBS=$LIBS
21d1c967 18439LIBS="-lz $LIBS"
e6cc62c6
VS
18440cat >conftest.$ac_ext <<_ACEOF
18441#line $LINENO "configure"
18442/* confdefs.h. */
18443_ACEOF
18444cat confdefs.h >>conftest.$ac_ext
18445cat >>conftest.$ac_ext <<_ACEOF
18446/* end confdefs.h. */
18447
21d1c967 18448/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18449#ifdef __cplusplus
18450extern "C"
18451#endif
21d1c967 18452/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18453 builtin and then its argument prototype would still apply. */
18454char deflate ();
18455int
18456main ()
18457{
18458deflate ();
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463rm -f conftest.$ac_objext conftest$ac_exeext
18464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465 (eval $ac_link) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_lib_z_deflate=yes
18476else
18477 echo "$as_me: failed program was:" >&5
18478sed 's/^/| /' conftest.$ac_ext >&5
18479
18480ac_cv_lib_z_deflate=no
18481fi
18482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18483LIBS=$ac_check_lib_save_LIBS
18484fi
18485echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18486echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18487if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18488 ZLIB_LINK=" -lz"
a0b9e27f 18489fi
698dcdb6 18490
d643b80e 18491 fi
247f5006 18492
21d1c967
GD
18493 if test "x$ZLIB_LINK" = "x" ; then
18494 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18495 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18496echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18497 { (exit 1); exit 1; }; }
21d1c967 18498 else
e6cc62c6
VS
18499 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18500echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18501 wxUSE_ZLIB=builtin
18502 fi
18503 else
18504 wxUSE_ZLIB=sys
18505 fi
18506 fi
18507
18508 if test "$wxUSE_ZLIB" = "builtin" ; then
18509 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18510 fi
ab9b9eab
VZ
18511fi
18512
8284b0c5 18513
21d1c967
GD
18514PNG_INCLUDE=
18515PNG_LINK=
18516if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18517 cat >>confdefs.h <<\_ACEOF
21d1c967 18518#define wxUSE_LIBPNG 1
e6cc62c6 18519_ACEOF
90dd450c 18520
8284b0c5 18521
21d1c967 18522 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18523 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18524echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18525 wxUSE_LIBPNG=sys
18526 fi
90dd450c 18527
21d1c967 18528 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18529 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18530echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18531 wxUSE_LIBPNG=builtin
18532 fi
18533
18534 if test "$wxUSE_MGL" != 1 ; then
18535 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18536 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18537echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18538if test "${ac_cv_header_png_h+set}" = set; then
18539 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18540else
18541 if test "$cross_compiling" = yes; then
89e6bf6d 18542 unset ac_cv_header_png_h
e6cc62c6 18543
5d3f766d 18544else
e6cc62c6
VS
18545 cat >conftest.$ac_ext <<_ACEOF
18546#line $LINENO "configure"
18547/* confdefs.h. */
18548_ACEOF
18549cat confdefs.h >>conftest.$ac_ext
18550cat >>conftest.$ac_ext <<_ACEOF
18551/* end confdefs.h. */
18552
ef33c576 18553 #include <png.h>
5d3f766d
VZ
18554 #include <stdio.h>
18555
18556 int main()
18557 {
18558 FILE *f=fopen("conftestval", "w");
18559 if (!f) exit(1);
18560 fprintf(f, "%s",
18561 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18562 exit(0);
18563 }
e6cc62c6
VS
18564
18565_ACEOF
18566rm -f conftest$ac_exeext
18567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18568 (eval $ac_link) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
5d3f766d
VZ
18577 ac_cv_header_png_h=`cat conftestval`
18578else
e6cc62c6
VS
18579 echo "$as_me: program exited with status $ac_status" >&5
18580echo "$as_me: failed program was:" >&5
18581sed 's/^/| /' conftest.$ac_ext >&5
18582
18583( exit $ac_status )
18584ac_cv_header_png_h=no
5d3f766d 18585fi
e6cc62c6 18586rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18587fi
18588
5d3f766d 18589fi
e6cc62c6
VS
18590echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18591echo "${ECHO_T}$ac_cv_header_png_h" >&6
18592 if test "${ac_cv_header_png_h+set}" = set; then
18593 echo "$as_me:$LINENO: checking for png.h" >&5
18594echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18595if test "${ac_cv_header_png_h+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597fi
18598echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18599echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18600else
e6cc62c6
VS
18601 # Is the header compilable?
18602echo "$as_me:$LINENO: checking png.h usability" >&5
18603echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18604cat >conftest.$ac_ext <<_ACEOF
18605#line $LINENO "configure"
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611$ac_includes_default
89e6bf6d 18612#include <png.h>
e6cc62c6
VS
18613_ACEOF
18614rm -f conftest.$ac_objext
18615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18616 (eval $ac_compile) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -s conftest.$ac_objext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_header_compiler=yes
18627else
18628 echo "$as_me: failed program was:" >&5
18629sed 's/^/| /' conftest.$ac_ext >&5
18630
18631ac_header_compiler=no
18632fi
18633rm -f conftest.$ac_objext conftest.$ac_ext
18634echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18635echo "${ECHO_T}$ac_header_compiler" >&6
18636
18637# Is the header present?
18638echo "$as_me:$LINENO: checking png.h presence" >&5
18639echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18640cat >conftest.$ac_ext <<_ACEOF
18641#line $LINENO "configure"
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647#include <png.h>
18648_ACEOF
18649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } >/dev/null; then
18657 if test -s conftest.err; then
18658 ac_cpp_err=$ac_c_preproc_warn_flag
18659 else
18660 ac_cpp_err=
18661 fi
18662else
18663 ac_cpp_err=yes
18664fi
18665if test -z "$ac_cpp_err"; then
18666 ac_header_preproc=yes
18667else
18668 echo "$as_me: failed program was:" >&5
18669sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ac_header_preproc=no
18672fi
18673rm -f conftest.err conftest.$ac_ext
18674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18675echo "${ECHO_T}$ac_header_preproc" >&6
18676
18677# So? What about this header?
18678case $ac_header_compiler:$ac_header_preproc in
18679 yes:no )
18680 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18681echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18682 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18683echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18684 (
18685 cat <<\_ASBOX
18686## ------------------------------------ ##
18687## Report this to bug-autoconf@gnu.org. ##
18688## ------------------------------------ ##
18689_ASBOX
18690 ) |
18691 sed "s/^/$as_me: WARNING: /" >&2
18692 ;;
18693 no:yes )
18694 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18695echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18696 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18697echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18699echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18700 (
18701 cat <<\_ASBOX
18702## ------------------------------------ ##
18703## Report this to bug-autoconf@gnu.org. ##
18704## ------------------------------------ ##
18705_ASBOX
18706 ) |
18707 sed "s/^/$as_me: WARNING: /" >&2
18708 ;;
18709esac
18710echo "$as_me:$LINENO: checking for png.h" >&5
18711echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18712if test "${ac_cv_header_png_h+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18714else
e6cc62c6
VS
18715 ac_cv_header_png_h=$ac_header_preproc
18716fi
18717echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18718echo "${ECHO_T}$ac_cv_header_png_h" >&6
18719
89e6bf6d
VZ
18720fi
18721
5d3f766d 18722
e6cc62c6 18723
5d3f766d 18724 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18725 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18726echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18727if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18729else
e6cc62c6 18730 ac_check_lib_save_LIBS=$LIBS
21d1c967 18731LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18732cat >conftest.$ac_ext <<_ACEOF
18733#line $LINENO "configure"
18734/* confdefs.h. */
18735_ACEOF
18736cat confdefs.h >>conftest.$ac_ext
18737cat >>conftest.$ac_ext <<_ACEOF
18738/* end confdefs.h. */
18739
21d1c967 18740/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18741#ifdef __cplusplus
18742extern "C"
18743#endif
21d1c967 18744/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18745 builtin and then its argument prototype would still apply. */
18746char png_check_sig ();
18747int
18748main ()
18749{
18750png_check_sig ();
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext conftest$ac_exeext
18756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_cv_lib_png_png_check_sig=yes
18768else
18769 echo "$as_me: failed program was:" >&5
18770sed 's/^/| /' conftest.$ac_ext >&5
18771
18772ac_cv_lib_png_png_check_sig=no
18773fi
18774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18775LIBS=$ac_check_lib_save_LIBS
18776fi
18777echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18778echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18779if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18780 PNG_LINK=" -lpng"
a0b9e27f 18781fi
90dd450c 18782
5d3f766d 18783 fi
247f5006 18784
21d1c967
GD
18785 if test "x$PNG_LINK" = "x" ; then
18786 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18787 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18788echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18789 { (exit 1); exit 1; }; }
21d1c967 18790 else
e6cc62c6
VS
18791 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18792echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18793 wxUSE_LIBPNG=builtin
18794 fi
18795 else
2b5f62a0 18796 wxUSE_LIBPNG=sys
21d1c967
GD
18797 fi
18798 fi
18799 fi
90dd450c 18800
21d1c967
GD
18801 if test "$wxUSE_LIBPNG" = "builtin" ; then
18802 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18803 fi
90dd450c 18804
21d1c967 18805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18806fi
18807
8284b0c5 18808
21d1c967
GD
18809JPEG_INCLUDE=
18810JPEG_LINK=
18811if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18812 cat >>confdefs.h <<\_ACEOF
21d1c967 18813#define wxUSE_LIBJPEG 1
e6cc62c6 18814_ACEOF
90dd450c 18815
8284b0c5 18816
21d1c967 18817 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18818 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18819echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18820 wxUSE_LIBJPEG=sys
18821 fi
90dd450c 18822
21d1c967
GD
18823 if test "$wxUSE_MGL" != 1 ; then
18824 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18825 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18826echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18827 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829else
18830 cat >conftest.$ac_ext <<_ACEOF
18831#line $LINENO "configure"
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
90dd450c 18837
21d1c967
GD
18838 #undef HAVE_STDLIB_H
18839 #include <stdio.h>
18840 #include <jpeglib.h>
90dd450c 18841
e6cc62c6
VS
18842int
18843main ()
18844{
18845
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext
18852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18853 (eval $ac_compile) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
18857 { ac_try='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
21d1c967 18863 ac_cv_header_jpeglib_h=yes
90dd450c 18864else
e6cc62c6
VS
18865 echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868ac_cv_header_jpeglib_h=no
18869
90dd450c 18870fi
e6cc62c6
VS
18871rm -f conftest.$ac_objext conftest.$ac_ext
18872
90dd450c
VZ
18873fi
18874
e6cc62c6
VS
18875 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18876echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18877
21d1c967 18878 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18879 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18880echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18881if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18883else
e6cc62c6 18884 ac_check_lib_save_LIBS=$LIBS
21d1c967 18885LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18886cat >conftest.$ac_ext <<_ACEOF
18887#line $LINENO "configure"
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
18893
21d1c967 18894/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18895#ifdef __cplusplus
18896extern "C"
18897#endif
21d1c967 18898/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18899 builtin and then its argument prototype would still apply. */
18900char jpeg_read_header ();
18901int
18902main ()
18903{
18904jpeg_read_header ();
18905 ;
18906 return 0;
18907}
18908_ACEOF
18909rm -f conftest.$ac_objext conftest$ac_exeext
18910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18911 (eval $ac_link) 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -s conftest$ac_exeext'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; }; then
18921 ac_cv_lib_jpeg_jpeg_read_header=yes
18922else
18923 echo "$as_me: failed program was:" >&5
18924sed 's/^/| /' conftest.$ac_ext >&5
18925
18926ac_cv_lib_jpeg_jpeg_read_header=no
18927fi
18928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18929LIBS=$ac_check_lib_save_LIBS
18930fi
18931echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18932echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18933if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18934 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18935fi
18936
21d1c967 18937 fi
90dd450c 18938
21d1c967
GD
18939 if test "x$JPEG_LINK" = "x" ; then
18940 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18941 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18942echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18943 { (exit 1); exit 1; }; }
21d1c967 18944 else
e6cc62c6
VS
18945 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18946echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18947 wxUSE_LIBJPEG=builtin
18948 fi
18949 else
18950 wxUSE_LIBJPEG=sys
18951 fi
18952 fi
18953 fi
90dd450c 18954
21d1c967
GD
18955 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18956 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18957 fi
18958fi
90dd450c 18959
8284b0c5 18960
21d1c967
GD
18961TIFF_INCLUDE=
18962TIFF_LINK=
2b5f62a0 18963TIFF_PREREQ_LINKS=-lm
21d1c967 18964if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18965 cat >>confdefs.h <<\_ACEOF
21d1c967 18966#define wxUSE_LIBTIFF 1
e6cc62c6 18967_ACEOF
21d1c967 18968
8284b0c5 18969
21d1c967 18970 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18971 if test "$wxUSE_LIBJPEG" = "sys"; then
18972 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18973 fi
18974 if test "$wxUSE_ZLIB" = "sys"; then
18975 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18976 fi
e6cc62c6
VS
18977 if test "${ac_cv_header_tiffio_h+set}" = set; then
18978 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18979echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18980if test "${ac_cv_header_tiffio_h+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18982fi
18983echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18984echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18985else
18986 # Is the header compilable?
18987echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18988echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18989cat >conftest.$ac_ext <<_ACEOF
18990#line $LINENO "configure"
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996$ac_includes_default
247f5006 18997#include <tiffio.h>
e6cc62c6
VS
18998_ACEOF
18999rm -f conftest.$ac_objext
19000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19001 (eval $ac_compile) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -s conftest.$ac_objext'
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_header_compiler=yes
19012else
19013 echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
19016ac_header_compiler=no
19017fi
19018rm -f conftest.$ac_objext conftest.$ac_ext
19019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19020echo "${ECHO_T}$ac_header_compiler" >&6
19021
19022# Is the header present?
19023echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19024echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19025cat >conftest.$ac_ext <<_ACEOF
19026#line $LINENO "configure"
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
19032#include <tiffio.h>
19033_ACEOF
19034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } >/dev/null; then
19042 if test -s conftest.err; then
19043 ac_cpp_err=$ac_c_preproc_warn_flag
19044 else
19045 ac_cpp_err=
19046 fi
19047else
19048 ac_cpp_err=yes
19049fi
19050if test -z "$ac_cpp_err"; then
19051 ac_header_preproc=yes
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 ac_header_preproc=no
19057fi
19058rm -f conftest.err conftest.$ac_ext
19059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19060echo "${ECHO_T}$ac_header_preproc" >&6
19061
19062# So? What about this header?
19063case $ac_header_compiler:$ac_header_preproc in
19064 yes:no )
19065 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19066echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19068echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19069 (
19070 cat <<\_ASBOX
19071## ------------------------------------ ##
19072## Report this to bug-autoconf@gnu.org. ##
19073## ------------------------------------ ##
19074_ASBOX
19075 ) |
19076 sed "s/^/$as_me: WARNING: /" >&2
19077 ;;
19078 no:yes )
19079 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19080echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19081 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19082echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19083 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19084echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19085 (
19086 cat <<\_ASBOX
19087## ------------------------------------ ##
19088## Report this to bug-autoconf@gnu.org. ##
19089## ------------------------------------ ##
19090_ASBOX
19091 ) |
19092 sed "s/^/$as_me: WARNING: /" >&2
19093 ;;
19094esac
19095echo "$as_me:$LINENO: checking for tiffio.h" >&5
19096echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19097if test "${ac_cv_header_tiffio_h+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19101fi
e6cc62c6
VS
19102echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19103echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19104
21d1c967 19105fi
e6cc62c6 19106if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19107
19108 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19109echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19110if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19112else
e6cc62c6 19113 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19114LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
19115cat >conftest.$ac_ext <<_ACEOF
19116#line $LINENO "configure"
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122
ab9b9eab 19123/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19124#ifdef __cplusplus
19125extern "C"
19126#endif
ab9b9eab 19127/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19128 builtin and then its argument prototype would still apply. */
19129char TIFFError ();
19130int
19131main ()
19132{
19133TIFFError ();
19134 ;
19135 return 0;
19136}
19137_ACEOF
19138rm -f conftest.$ac_objext conftest$ac_exeext
19139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19140 (eval $ac_link) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -s conftest$ac_exeext'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 ac_cv_lib_tiff_TIFFError=yes
19151else
19152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155ac_cv_lib_tiff_TIFFError=no
19156fi
19157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19158LIBS=$ac_check_lib_save_LIBS
19159fi
19160echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19161echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19162if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19163 TIFF_LINK=" -ltiff"
a0b9e27f 19164fi
cd6d6d5b 19165
e6cc62c6 19166
0e012a93 19167
a0b9e27f 19168fi
8284b0c5 19169
247f5006 19170
e6cc62c6 19171
21d1c967
GD
19172 if test "x$TIFF_LINK" = "x" ; then
19173 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19174 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19175echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19176 { (exit 1); exit 1; }; }
90dd450c 19177 else
e6cc62c6
VS
19178 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19179echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19180 wxUSE_LIBTIFF=builtin
d8356fa3 19181 fi
d8356fa3 19182 else
21d1c967 19183 wxUSE_LIBTIFF=sys
d8356fa3 19184 fi
21d1c967 19185 fi
d8356fa3 19186
21d1c967
GD
19187 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19188 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19189 fi
21d1c967 19190fi
10f2d63a 19191
8284b0c5 19192
672abd7a 19193if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19194 wxUSE_XML=yes
672abd7a
VS
19195 cat >>confdefs.h <<\_ACEOF
19196#define wxUSE_EXPAT 1
19197_ACEOF
19198
19199 cat >>confdefs.h <<\_ACEOF
19200#define wxUSE_XML 1
19201_ACEOF
19202
19203
19204 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19205 if test "${ac_cv_header_expat_h+set}" = set; then
19206 echo "$as_me:$LINENO: checking for expat.h" >&5
19207echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19208if test "${ac_cv_header_expat_h+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210fi
19211echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19212echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19213else
19214 # Is the header compilable?
19215echo "$as_me:$LINENO: checking expat.h usability" >&5
19216echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19217cat >conftest.$ac_ext <<_ACEOF
19218#line $LINENO "configure"
19219/* confdefs.h. */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h. */
19224$ac_includes_default
19225#include <expat.h>
19226_ACEOF
19227rm -f conftest.$ac_objext
19228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19229 (eval $ac_compile) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_header_compiler=yes
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244ac_header_compiler=no
19245fi
19246rm -f conftest.$ac_objext conftest.$ac_ext
19247echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248echo "${ECHO_T}$ac_header_compiler" >&6
19249
19250# Is the header present?
19251echo "$as_me:$LINENO: checking expat.h presence" >&5
19252echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19253cat >conftest.$ac_ext <<_ACEOF
19254#line $LINENO "configure"
19255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
19260#include <expat.h>
19261_ACEOF
19262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19264 ac_status=$?
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } >/dev/null; then
19270 if test -s conftest.err; then
19271 ac_cpp_err=$ac_c_preproc_warn_flag
19272 else
19273 ac_cpp_err=
19274 fi
19275else
19276 ac_cpp_err=yes
19277fi
19278if test -z "$ac_cpp_err"; then
19279 ac_header_preproc=yes
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_header_preproc=no
19285fi
19286rm -f conftest.err conftest.$ac_ext
19287echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288echo "${ECHO_T}$ac_header_preproc" >&6
19289
19290# So? What about this header?
19291case $ac_header_compiler:$ac_header_preproc in
19292 yes:no )
19293 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19294echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19296echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19297 (
19298 cat <<\_ASBOX
19299## ------------------------------------ ##
19300## Report this to bug-autoconf@gnu.org. ##
19301## ------------------------------------ ##
19302_ASBOX
19303 ) |
19304 sed "s/^/$as_me: WARNING: /" >&2
19305 ;;
19306 no:yes )
19307 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19308echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19310echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19312echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19313 (
19314 cat <<\_ASBOX
19315## ------------------------------------ ##
19316## Report this to bug-autoconf@gnu.org. ##
19317## ------------------------------------ ##
19318_ASBOX
19319 ) |
19320 sed "s/^/$as_me: WARNING: /" >&2
19321 ;;
19322esac
19323echo "$as_me:$LINENO: checking for expat.h" >&5
19324echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19325if test "${ac_cv_header_expat_h+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327else
19328 ac_cv_header_expat_h=$ac_header_preproc
19329fi
19330echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19331echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19332
19333fi
5f0b6dff
VS
19334if test $ac_cv_header_expat_h = yes; then
19335 found_expat_h=1
19336fi
19337
19338
19339 if test "x$found_expat_h" = "x1"; then
19340 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19341echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19342if test "${wx_cv_expat_is_not_broken+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344else
19345
19346
672abd7a 19347
5f0b6dff
VS
19348 ac_ext=cc
19349ac_cpp='$CXXCPP $CPPFLAGS'
19350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19353
19354 cat >conftest.$ac_ext <<_ACEOF
19355#line $LINENO "configure"
19356/* confdefs.h. */
19357_ACEOF
19358cat confdefs.h >>conftest.$ac_ext
19359cat >>conftest.$ac_ext <<_ACEOF
19360/* end confdefs.h. */
19361#include <expat.h>
19362int
19363main ()
19364{
672abd7a 19365
5f0b6dff
VS
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19372 (eval $ac_compile) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 wx_cv_expat_is_not_broken=yes
19383else
19384 echo "$as_me: failed program was:" >&5
19385sed 's/^/| /' conftest.$ac_ext >&5
19386
19387wx_cv_expat_is_not_broken=no
19388
19389fi
19390rm -f conftest.$ac_objext conftest.$ac_ext
19391 ac_ext=c
19392ac_cpp='$CPP $CPPFLAGS'
19393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395ac_compiler_gnu=$ac_cv_c_compiler_gnu
19396
19397
19398
19399fi
19400echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19401echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19402 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19403 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19404echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19405if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19407else
19408 ac_check_lib_save_LIBS=$LIBS
19409LIBS="-lexpat $LIBS"
19410cat >conftest.$ac_ext <<_ACEOF
19411#line $LINENO "configure"
19412/* confdefs.h. */
19413_ACEOF
19414cat confdefs.h >>conftest.$ac_ext
19415cat >>conftest.$ac_ext <<_ACEOF
19416/* end confdefs.h. */
19417
19418/* Override any gcc2 internal prototype to avoid an error. */
19419#ifdef __cplusplus
19420extern "C"
19421#endif
19422/* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19424char XML_ParserCreate ();
19425int
19426main ()
19427{
19428XML_ParserCreate ();
19429 ;
19430 return 0;
19431}
19432_ACEOF
19433rm -f conftest.$ac_objext conftest$ac_exeext
19434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -s conftest$ac_exeext'
19440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_cv_lib_expat_XML_ParserCreate=yes
19446else
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450ac_cv_lib_expat_XML_ParserCreate=no
19451fi
19452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19453LIBS=$ac_check_lib_save_LIBS
19454fi
19455echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19456echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19457if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19458 EXPAT_LINK=" -lexpat"
19459fi
19460
5f0b6dff 19461 fi
672abd7a
VS
19462 fi
19463 if test "x$EXPAT_LINK" = "x" ; then
19464 if test "$wxUSE_EXPAT" = "sys" ; then
19465 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19466echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19467 { (exit 1); exit 1; }; }
19468 else
19469 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19470echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19471 wxUSE_EXPAT=builtin
19472 fi
19473 else
19474 wxUSE_EXPAT=sys
19475 fi
19476 fi
19477 if test "$wxUSE_EXPAT" = "builtin" ; then
19478
19479
19480subdirs="$subdirs src/expat"
19481
19482 fi
19483fi
19484
19485
19486
21d1c967 19487AFMINSTALL=
2b5f62a0 19488WIN32INSTALL=
90dd450c 19489
21d1c967
GD
19490TOOLKIT=
19491TOOLKIT_INCLUDE=
19492WIDGET_SET=
19493
19494if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19495
19496for ac_header in w32api.h
21d1c967 19497do
e6cc62c6
VS
19498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19499if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5
19501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504fi
19505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19507else
19508 # Is the header compilable?
19509echo "$as_me:$LINENO: checking $ac_header usability" >&5
19510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19511cat >conftest.$ac_ext <<_ACEOF
19512#line $LINENO "configure"
19513/* confdefs.h. */
19514_ACEOF
19515cat confdefs.h >>conftest.$ac_ext
19516cat >>conftest.$ac_ext <<_ACEOF
19517/* end confdefs.h. */
19518$ac_includes_default
19519#include <$ac_header>
19520_ACEOF
19521rm -f conftest.$ac_objext
19522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19523 (eval $ac_compile) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -s conftest.$ac_objext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_header_compiler=yes
19534else
19535 echo "$as_me: failed program was:" >&5
19536sed 's/^/| /' conftest.$ac_ext >&5
19537
19538ac_header_compiler=no
19539fi
19540rm -f conftest.$ac_objext conftest.$ac_ext
19541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19542echo "${ECHO_T}$ac_header_compiler" >&6
19543
19544# Is the header present?
19545echo "$as_me:$LINENO: checking $ac_header presence" >&5
19546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19547cat >conftest.$ac_ext <<_ACEOF
19548#line $LINENO "configure"
19549/* confdefs.h. */
19550_ACEOF
19551cat confdefs.h >>conftest.$ac_ext
19552cat >>conftest.$ac_ext <<_ACEOF
19553/* end confdefs.h. */
19554#include <$ac_header>
19555_ACEOF
19556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } >/dev/null; then
19564 if test -s conftest.err; then
19565 ac_cpp_err=$ac_c_preproc_warn_flag
19566 else
19567 ac_cpp_err=
19568 fi
19569else
19570 ac_cpp_err=yes
19571fi
19572if test -z "$ac_cpp_err"; then
19573 ac_header_preproc=yes
19574else
19575 echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578 ac_header_preproc=no
19579fi
19580rm -f conftest.err conftest.$ac_ext
19581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19582echo "${ECHO_T}$ac_header_preproc" >&6
19583
19584# So? What about this header?
19585case $ac_header_compiler:$ac_header_preproc in
19586 yes:no )
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19591 (
19592 cat <<\_ASBOX
19593## ------------------------------------ ##
19594## Report this to bug-autoconf@gnu.org. ##
19595## ------------------------------------ ##
19596_ASBOX
19597 ) |
19598 sed "s/^/$as_me: WARNING: /" >&2
19599 ;;
19600 no:yes )
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19607 (
19608 cat <<\_ASBOX
19609## ------------------------------------ ##
19610## Report this to bug-autoconf@gnu.org. ##
19611## ------------------------------------ ##
19612_ASBOX
19613 ) |
19614 sed "s/^/$as_me: WARNING: /" >&2
19615 ;;
19616esac
19617echo "$as_me:$LINENO: checking for $ac_header" >&5
19618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19619if eval "test \"\${$as_ac_Header+set}\" = set"; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19623fi
e6cc62c6
VS
19624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626
21d1c967 19627fi
e6cc62c6
VS
19628if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629 cat >>confdefs.h <<_ACEOF
19630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19631_ACEOF
19632
21d1c967 19633fi
e6cc62c6 19634
21d1c967 19635done
f79bd02d 19636
e6cc62c6
VS
19637 if test "${ac_cv_header_windows_h+set}" = set; then
19638 echo "$as_me:$LINENO: checking for windows.h" >&5
19639echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19640if test "${ac_cv_header_windows_h+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642fi
19643echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19644echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19645else
19646 # Is the header compilable?
19647echo "$as_me:$LINENO: checking windows.h usability" >&5
19648echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19649cat >conftest.$ac_ext <<_ACEOF
19650#line $LINENO "configure"
19651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
19656$ac_includes_default
247f5006 19657#include <windows.h>
e6cc62c6
VS
19658_ACEOF
19659rm -f conftest.$ac_objext
19660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19661 (eval $ac_compile) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } &&
19665 { ac_try='test -s conftest.$ac_objext'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_header_compiler=yes
19672else
19673 echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676ac_header_compiler=no
19677fi
19678rm -f conftest.$ac_objext conftest.$ac_ext
19679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19680echo "${ECHO_T}$ac_header_compiler" >&6
19681
19682# Is the header present?
19683echo "$as_me:$LINENO: checking windows.h presence" >&5
19684echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19685cat >conftest.$ac_ext <<_ACEOF
19686#line $LINENO "configure"
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692#include <windows.h>
19693_ACEOF
19694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } >/dev/null; then
19702 if test -s conftest.err; then
19703 ac_cpp_err=$ac_c_preproc_warn_flag
19704 else
19705 ac_cpp_err=
19706 fi
19707else
19708 ac_cpp_err=yes
19709fi
19710if test -z "$ac_cpp_err"; then
19711 ac_header_preproc=yes
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_header_preproc=no
19717fi
19718rm -f conftest.err conftest.$ac_ext
19719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720echo "${ECHO_T}$ac_header_preproc" >&6
19721
19722# So? What about this header?
19723case $ac_header_compiler:$ac_header_preproc in
19724 yes:no )
19725 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19726echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19728echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19729 (
19730 cat <<\_ASBOX
19731## ------------------------------------ ##
19732## Report this to bug-autoconf@gnu.org. ##
19733## ------------------------------------ ##
19734_ASBOX
19735 ) |
19736 sed "s/^/$as_me: WARNING: /" >&2
19737 ;;
19738 no:yes )
19739 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19740echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19742echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19744echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19745 (
19746 cat <<\_ASBOX
19747## ------------------------------------ ##
19748## Report this to bug-autoconf@gnu.org. ##
19749## ------------------------------------ ##
19750_ASBOX
19751 ) |
19752 sed "s/^/$as_me: WARNING: /" >&2
19753 ;;
19754esac
19755echo "$as_me:$LINENO: checking for windows.h" >&5
19756echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19757if test "${ac_cv_header_windows_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19761fi
e6cc62c6
VS
19762echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19763echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19764
90dd450c 19765fi
e6cc62c6 19766if test $ac_cv_header_windows_h = yes; then
21d1c967 19767 :
90dd450c 19768else
21d1c967 19769
e6cc62c6
VS
19770 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19771echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19772 { (exit 1); exit 1; }; }
19773
5c6fa7d2 19774fi
7b4a847f 19775
5c6fa7d2 19776
e6cc62c6 19777
b3dfbbc9 19778 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19779
7bb2947d
MB
19780 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19781 LIBS="$LIBS -loleacc"
19782 fi
19783
21d1c967
GD
19784 case "${host}" in
19785 *-*-cygwin* )
b3dfbbc9 19786 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19787 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19788 esac
f79bd02d 19789
8647bec6
RG
19790 if test "$wxUSE_ODBC" = "sys" ; then
19791 wxUSE_ODBC = "yes"
21d1c967 19792 fi
8647bec6
RG
19793 if test "$wxUSE_ODBC" = "yes" ; then
19794 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19795 cat >>confdefs.h <<\_ACEOF
8647bec6 19796#define wxUSE_ODBC 1
e6cc62c6 19797_ACEOF
f79bd02d 19798
8647bec6 19799 fi
e6cc62c6 19800
21d1c967
GD
19801 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19802 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19803
19804 WIN32INSTALL=win32install
f79bd02d 19805fi
f79bd02d 19806
21d1c967
GD
19807if test "$wxUSE_GUI" = "yes"; then
19808 USE_GUI=1
f79bd02d 19809
21d1c967 19810 GUI_TK_LIBRARY=
f79bd02d 19811
21d1c967
GD
19812 WXGTK12=
19813 WXGTK127=
19814 WXGTK20=
f79bd02d 19815
21d1c967
GD
19816 if test "$wxUSE_MSW" = 1 ; then
19817 TOOLKIT=MSW
19818 GUIDIST=MSW_DIST
ffef10f6
VS
19819
19820 case "${host}" in
19821 *-*-mingw32* )
19822 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19823 esac
f79bd02d
JS
19824 fi
19825
21d1c967 19826 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19827 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19828echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19829
19830 gtk_version_cached=1
e6cc62c6
VS
19831 if test "${wx_cv_lib_gtk+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19833else
e6cc62c6 19834
21d1c967 19835 gtk_version_cached=0
e6cc62c6
VS
19836 echo "$as_me:$LINENO: result: " >&5
19837echo "${ECHO_T}" >&6
f79bd02d 19838
21d1c967
GD
19839 GTK_MODULES=
19840 if test "$wxUSE_THREADS" = "yes"; then
19841 GTK_MODULES=gthread
19842 fi
f79bd02d 19843
2b5f62a0 19844 wx_cv_lib_gtk=
21d1c967
GD
19845 if test "x$wxUSE_GTK2" = "xyes"; then
19846 # Check whether --enable-gtktest or --disable-gtktest was given.
19847if test "${enable_gtktest+set}" = set; then
19848 enableval="$enable_gtktest"
e6cc62c6 19849
f79bd02d 19850else
21d1c967 19851 enable_gtktest=yes
e6cc62c6 19852fi;
f79bd02d 19853
21d1c967
GD
19854 pkg_config_args=gtk+-2.0
19855 for module in . $GTK_MODULES
19856 do
19857 case "$module" in
e6cc62c6 19858 gthread)
21d1c967
GD
19859 pkg_config_args="$pkg_config_args gthread-2.0"
19860 ;;
19861 esac
19862 done
19863
19864 no_gtk=""
f79bd02d 19865
21d1c967
GD
19866 # Extract the first word of "pkg-config", so it can be a program name with args.
19867set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19868echo "$as_me:$LINENO: checking for $ac_word" >&5
19869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19870if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19872else
e6cc62c6
VS
19873 case $PKG_CONFIG in
19874 [\\/]* | ?:[\\/]*)
21d1c967
GD
19875 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19876 ;;
21d1c967 19877 *)
e6cc62c6
VS
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879for as_dir in $PATH
19880do
19881 IFS=$as_save_IFS
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19885 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19887 break 2
19888 fi
19889done
19890done
19891
21d1c967
GD
19892 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19893 ;;
19894esac
f79bd02d 19895fi
e6cc62c6
VS
19896PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19897
21d1c967 19898if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19899 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19900echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19901else
e6cc62c6
VS
19902 echo "$as_me:$LINENO: result: no" >&5
19903echo "${ECHO_T}no" >&6
f79bd02d
JS
19904fi
19905
8284b0c5 19906
21d1c967
GD
19907 if test x$PKG_CONFIG != xno ; then
19908 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19909 :
19910 else
19911 echo *** pkg-config too old; version 0.7 or better required.
19912 no_gtk=yes
19913 PKG_CONFIG=no
19914 fi
19915 else
19916 no_gtk=yes
19917 fi
f79bd02d 19918
21d1c967 19919 min_gtk_version=2.0.0
e6cc62c6
VS
19920 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19921echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19922
21d1c967
GD
19923 if test x$PKG_CONFIG != xno ; then
19924 ## don't try to run the test against uninstalled libtool libs
19925 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19926 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19927 enable_gtktest=no
19928 fi
f79bd02d 19929
21d1c967
GD
19930 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19931 :
19932 else
19933 no_gtk=yes
19934 fi
19935 fi
f79bd02d 19936
21d1c967
GD
19937 if test x"$no_gtk" = x ; then
19938 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19939 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19940 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19942 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19943 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19944 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19946 if test "x$enable_gtktest" = "xyes" ; then
19947 ac_save_CFLAGS="$CFLAGS"
19948 ac_save_LIBS="$LIBS"
19949 CFLAGS="$CFLAGS $GTK_CFLAGS"
19950 LIBS="$GTK_LIBS $LIBS"
19951 rm -f conf.gtktest
19952 if test "$cross_compiling" = yes; then
19953 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19954else
e6cc62c6
VS
19955 cat >conftest.$ac_ext <<_ACEOF
19956#line $LINENO "configure"
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
f79bd02d 19962
21d1c967
GD
19963#include <gtk/gtk.h>
19964#include <stdio.h>
19965#include <stdlib.h>
f79bd02d 19966
e6cc62c6 19967int
21d1c967
GD
19968main ()
19969{
19970 int major, minor, micro;
19971 char *tmp_version;
f79bd02d 19972
21d1c967 19973 system ("touch conf.gtktest");
f79bd02d 19974
21d1c967
GD
19975 /* HP/UX 9 (%@#!) writes to sscanf strings */
19976 tmp_version = g_strdup("$min_gtk_version");
19977 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19978 printf("%s, bad version string\n", "$min_gtk_version");
19979 exit(1);
19980 }
f79bd02d 19981
21d1c967
GD
19982 if ((gtk_major_version != $gtk_config_major_version) ||
19983 (gtk_minor_version != $gtk_config_minor_version) ||
19984 (gtk_micro_version != $gtk_config_micro_version))
19985 {
e6cc62c6 19986 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19987 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19988 gtk_major_version, gtk_minor_version, gtk_micro_version);
19989 printf ("*** was found! If pkg-config was correct, then it is best\n");
19990 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19991 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19992 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19993 printf("*** required on your system.\n");
19994 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19995 printf("*** to point to the correct configuration files\n");
e6cc62c6 19996 }
21d1c967
GD
19997 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19998 (gtk_minor_version != GTK_MINOR_VERSION) ||
19999 (gtk_micro_version != GTK_MICRO_VERSION))
20000 {
20001 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20002 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20003 printf("*** library (version %d.%d.%d)\n",
20004 gtk_major_version, gtk_minor_version, gtk_micro_version);
20005 }
20006 else
20007 {
20008 if ((gtk_major_version > major) ||
20009 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20010 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20011 {
20012 return 0;
20013 }
20014 else
20015 {
20016 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20017 gtk_major_version, gtk_minor_version, gtk_micro_version);
20018 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20019 major, minor, micro);
20020 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20021 printf("***\n");
20022 printf("*** If you have already installed a sufficiently new version, this error\n");
20023 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20024 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20025 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20026 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20027 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20028 printf("*** so that the correct libraries are found at run-time))\n");
20029 }
20030 }
20031 return 1;
20032}
f79bd02d 20033
e6cc62c6
VS
20034_ACEOF
20035rm -f conftest$ac_exeext
20036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20037 (eval $ac_link) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
21d1c967 20046 :
f79bd02d 20047else
e6cc62c6
VS
20048 echo "$as_me: program exited with status $ac_status" >&5
20049echo "$as_me: failed program was:" >&5
20050sed 's/^/| /' conftest.$ac_ext >&5
20051
20052( exit $ac_status )
20053no_gtk=yes
f79bd02d 20054fi
e6cc62c6 20055rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20056fi
21d1c967
GD
20057 CFLAGS="$ac_save_CFLAGS"
20058 LIBS="$ac_save_LIBS"
20059 fi
20060 fi
20061 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20062 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20063echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20064 wx_cv_lib_gtk=2.0
21d1c967 20065 else
e6cc62c6
VS
20066 echo "$as_me:$LINENO: result: no" >&5
20067echo "${ECHO_T}no" >&6
21d1c967
GD
20068 if test "$PKG_CONFIG" = "no" ; then
20069 echo "*** A new enough version of pkg-config was not found."
20070 echo "*** See http://pkgconfig.sourceforge.net"
20071 else
20072 if test -f conf.gtktest ; then
20073 :
20074 else
20075 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20076 ac_save_CFLAGS="$CFLAGS"
20077 ac_save_LIBS="$LIBS"
21d1c967
GD
20078 CFLAGS="$CFLAGS $GTK_CFLAGS"
20079 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20080 cat >conftest.$ac_ext <<_ACEOF
20081#line $LINENO "configure"
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
21d1c967
GD
20087
20088#include <gtk/gtk.h>
20089#include <stdio.h>
f79bd02d 20090
e6cc62c6
VS
20091int
20092main ()
20093{
20094 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099rm -f conftest.$ac_objext conftest$ac_exeext
20100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20101 (eval $ac_link) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest$ac_exeext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
21d1c967
GD
20111 echo "*** The test program compiled, but did not run. This usually means"
20112 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20113 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20114 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20115 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20116 echo "*** is required on your system"
20117 echo "***"
20118 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20119 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20120else
e6cc62c6
VS
20121 echo "$as_me: failed program was:" >&5
20122sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20125 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20126fi
e6cc62c6 20127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20128 CFLAGS="$ac_save_CFLAGS"
20129 LIBS="$ac_save_LIBS"
20130 fi
20131 fi
20132 GTK_CFLAGS=""
20133 GTK_LIBS=""
20134 :
20135 fi
e6cc62c6
VS
20136
20137
21d1c967 20138 rm -f conf.gtktest
f79bd02d 20139
2b5f62a0 20140 else
e6cc62c6
VS
20141
20142# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20143if test "${with_gtk_prefix+set}" = set; then
20144 withval="$with_gtk_prefix"
20145 gtk_config_prefix="$withval"
20146else
20147 gtk_config_prefix=""
e6cc62c6 20148fi;
f79bd02d 20149
21d1c967
GD
20150# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20151if test "${with_gtk_exec_prefix+set}" = set; then
20152 withval="$with_gtk_exec_prefix"
20153 gtk_config_exec_prefix="$withval"
20154else
20155 gtk_config_exec_prefix=""
e6cc62c6 20156fi;
21d1c967
GD
20157# Check whether --enable-gtktest or --disable-gtktest was given.
20158if test "${enable_gtktest+set}" = set; then
20159 enableval="$enable_gtktest"
e6cc62c6 20160
21d1c967
GD
20161else
20162 enable_gtktest=yes
e6cc62c6 20163fi;
21d1c967
GD
20164
20165 for module in . $GTK_MODULES
20166 do
20167 case "$module" in
e6cc62c6 20168 gthread)
21d1c967
GD
20169 gtk_config_args="$gtk_config_args gthread"
20170 ;;
20171 esac
20172 done
20173
20174 if test x$gtk_config_exec_prefix != x ; then
20175 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20176 if test x${GTK_CONFIG+set} != xset ; then
20177 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20178 fi
20179 fi
20180 if test x$gtk_config_prefix != x ; then
20181 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20182 if test x${GTK_CONFIG+set} != xset ; then
20183 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20184 fi
20185 fi
20186
20187 # Extract the first word of "gtk-config", so it can be a program name with args.
20188set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20189echo "$as_me:$LINENO: checking for $ac_word" >&5
20190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20191if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20193else
e6cc62c6
VS
20194 case $GTK_CONFIG in
20195 [\\/]* | ?:[\\/]*)
21d1c967
GD
20196 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20197 ;;
21d1c967 20198 *)
e6cc62c6
VS
20199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200for as_dir in $PATH
20201do
20202 IFS=$as_save_IFS
20203 test -z "$as_dir" && as_dir=.
20204 for ac_exec_ext in '' $ac_executable_extensions; do
20205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20206 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20208 break 2
20209 fi
20210done
20211done
20212
21d1c967
GD
20213 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20214 ;;
20215esac
20216fi
e6cc62c6
VS
20217GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20218
21d1c967 20219if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20220 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20221echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20222else
e6cc62c6
VS
20223 echo "$as_me:$LINENO: result: no" >&5
20224echo "${ECHO_T}no" >&6
21d1c967
GD
20225fi
20226
20227 min_gtk_version=1.2.7
e6cc62c6
VS
20228 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20229echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20230 no_gtk=""
20231 if test "$GTK_CONFIG" = "no" ; then
20232 no_gtk=yes
20233 else
20234 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20235 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20236 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20238 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20240 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20242 if test "x$enable_gtktest" = "xyes" ; then
20243 ac_save_CFLAGS="$CFLAGS"
20244 ac_save_LIBS="$LIBS"
20245 CFLAGS="$CFLAGS $GTK_CFLAGS"
20246 LIBS="$GTK_LIBS $LIBS"
20247 rm -f conf.gtktest
20248 if test "$cross_compiling" = yes; then
20249 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20250else
e6cc62c6
VS
20251 cat >conftest.$ac_ext <<_ACEOF
20252#line $LINENO "configure"
20253/* confdefs.h. */
20254_ACEOF
20255cat confdefs.h >>conftest.$ac_ext
20256cat >>conftest.$ac_ext <<_ACEOF
20257/* end confdefs.h. */
f79bd02d 20258
21d1c967
GD
20259#include <gtk/gtk.h>
20260#include <stdio.h>
20261#include <stdlib.h>
f79bd02d 20262
e6cc62c6 20263int
21d1c967
GD
20264main ()
20265{
20266 int major, minor, micro;
20267 char *tmp_version;
20268
20269 system ("touch conf.gtktest");
20270
20271 /* HP/UX 9 (%@#!) writes to sscanf strings */
20272 tmp_version = g_strdup("$min_gtk_version");
20273 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20274 printf("%s, bad version string\n", "$min_gtk_version");
20275 exit(1);
20276 }
90dd450c 20277
21d1c967
GD
20278 if ((gtk_major_version != $gtk_config_major_version) ||
20279 (gtk_minor_version != $gtk_config_minor_version) ||
20280 (gtk_micro_version != $gtk_config_micro_version))
20281 {
e6cc62c6 20282 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20283 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20284 gtk_major_version, gtk_minor_version, gtk_micro_version);
20285 printf ("*** was found! If gtk-config was correct, then it is best\n");
20286 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20287 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20288 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20289 printf("*** required on your system.\n");
20290 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20291 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20292 printf("*** before re-running configure\n");
e6cc62c6 20293 }
21d1c967
GD
20294#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20295 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20296 (gtk_minor_version != GTK_MINOR_VERSION) ||
20297 (gtk_micro_version != GTK_MICRO_VERSION))
20298 {
20299 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20300 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20301 printf("*** library (version %d.%d.%d)\n",
20302 gtk_major_version, gtk_minor_version, gtk_micro_version);
20303 }
20304#endif /* defined (GTK_MAJOR_VERSION) ... */
20305 else
20306 {
20307 if ((gtk_major_version > major) ||
20308 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20309 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20310 {
20311 return 0;
20312 }
20313 else
20314 {
20315 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20316 gtk_major_version, gtk_minor_version, gtk_micro_version);
20317 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20318 major, minor, micro);
20319 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20320 printf("***\n");
20321 printf("*** If you have already installed a sufficiently new version, this error\n");
20322 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20323 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20324 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20325 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20326 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20327 printf("*** so that the correct libraries are found at run-time))\n");
20328 }
20329 }
20330 return 1;
20331}
20332
e6cc62c6
VS
20333_ACEOF
20334rm -f conftest$ac_exeext
20335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
21d1c967
GD
20345 :
20346else
e6cc62c6
VS
20347 echo "$as_me: program exited with status $ac_status" >&5
20348echo "$as_me: failed program was:" >&5
20349sed 's/^/| /' conftest.$ac_ext >&5
20350
20351( exit $ac_status )
20352no_gtk=yes
21d1c967 20353fi
e6cc62c6 20354rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20355fi
21d1c967
GD
20356 CFLAGS="$ac_save_CFLAGS"
20357 LIBS="$ac_save_LIBS"
20358 fi
20359 fi
20360 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20361 echo "$as_me:$LINENO: result: yes" >&5
20362echo "${ECHO_T}yes" >&6
20363 wx_cv_lib_gtk=1.2.7
21d1c967 20364 else
e6cc62c6
VS
20365 echo "$as_me:$LINENO: result: no" >&5
20366echo "${ECHO_T}no" >&6
21d1c967
GD
20367 if test "$GTK_CONFIG" = "no" ; then
20368 echo "*** The gtk-config script installed by GTK could not be found"
20369 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20370 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20371 echo "*** full path to gtk-config."
20372 else
20373 if test -f conf.gtktest ; then
20374 :
20375 else
20376 echo "*** Could not run GTK test program, checking why..."
20377 CFLAGS="$CFLAGS $GTK_CFLAGS"
20378 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20379 cat >conftest.$ac_ext <<_ACEOF
20380#line $LINENO "configure"
20381/* confdefs.h. */
20382_ACEOF
20383cat confdefs.h >>conftest.$ac_ext
20384cat >>conftest.$ac_ext <<_ACEOF
20385/* end confdefs.h. */
21d1c967
GD
20386
20387#include <gtk/gtk.h>
20388#include <stdio.h>
20389
e6cc62c6
VS
20390int
20391main ()
20392{
20393 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20394 ;
20395 return 0;
20396}
20397_ACEOF
20398rm -f conftest.$ac_objext conftest$ac_exeext
20399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400 (eval $ac_link) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
21d1c967
GD
20410 echo "*** The test program compiled, but did not run. This usually means"
20411 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20412 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20413 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20414 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20415 echo "*** is required on your system"
20416 echo "***"
20417 echo "*** If you have an old version installed, it is best to remove it, although"
20418 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20419 echo "***"
20420 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20421 echo "*** came with the system with the command"
20422 echo "***"
e6cc62c6 20423 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20424else
e6cc62c6
VS
20425 echo "$as_me: failed program was:" >&5
20426sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20429 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20430 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20431 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20432fi
e6cc62c6 20433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20434 CFLAGS="$ac_save_CFLAGS"
20435 LIBS="$ac_save_LIBS"
20436 fi
20437 fi
20438 GTK_CFLAGS=""
20439 GTK_LIBS=""
20440 :
20441 fi
e6cc62c6
VS
20442
20443
21d1c967
GD
20444 rm -f conf.gtktest
20445
21d1c967 20446
2b5f62a0 20447 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20448
20449# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20450if test "${with_gtk_prefix+set}" = set; then
20451 withval="$with_gtk_prefix"
20452 gtk_config_prefix="$withval"
20453else
20454 gtk_config_prefix=""
e6cc62c6 20455fi;
f79bd02d 20456
21d1c967
GD
20457# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20458if test "${with_gtk_exec_prefix+set}" = set; then
20459 withval="$with_gtk_exec_prefix"
20460 gtk_config_exec_prefix="$withval"
20461else
20462 gtk_config_exec_prefix=""
e6cc62c6 20463fi;
21d1c967
GD
20464# Check whether --enable-gtktest or --disable-gtktest was given.
20465if test "${enable_gtktest+set}" = set; then
20466 enableval="$enable_gtktest"
e6cc62c6 20467
90dd450c 20468else
21d1c967 20469 enable_gtktest=yes
e6cc62c6 20470fi;
21d1c967
GD
20471
20472 for module in . $GTK_MODULES
20473 do
20474 case "$module" in
e6cc62c6 20475 gthread)
21d1c967
GD
20476 gtk_config_args="$gtk_config_args gthread"
20477 ;;
20478 esac
20479 done
20480
20481 if test x$gtk_config_exec_prefix != x ; then
20482 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20483 if test x${GTK_CONFIG+set} != xset ; then
20484 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20485 fi
20486 fi
20487 if test x$gtk_config_prefix != x ; then
20488 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20489 if test x${GTK_CONFIG+set} != xset ; then
20490 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20491 fi
20492 fi
20493
20494 # Extract the first word of "gtk-config", so it can be a program name with args.
20495set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20496echo "$as_me:$LINENO: checking for $ac_word" >&5
20497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20498if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20500else
e6cc62c6
VS
20501 case $GTK_CONFIG in
20502 [\\/]* | ?:[\\/]*)
21d1c967
GD
20503 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20504 ;;
21d1c967 20505 *)
e6cc62c6
VS
20506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20507for as_dir in $PATH
20508do
20509 IFS=$as_save_IFS
20510 test -z "$as_dir" && as_dir=.
20511 for ac_exec_ext in '' $ac_executable_extensions; do
20512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20513 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20515 break 2
20516 fi
20517done
20518done
20519
21d1c967
GD
20520 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20521 ;;
20522esac
20523fi
e6cc62c6
VS
20524GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20525
21d1c967 20526if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20527 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20528echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20529else
e6cc62c6
VS
20530 echo "$as_me:$LINENO: result: no" >&5
20531echo "${ECHO_T}no" >&6
21d1c967
GD
20532fi
20533
20534 min_gtk_version=1.2.3
e6cc62c6
VS
20535 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20536echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20537 no_gtk=""
20538 if test "$GTK_CONFIG" = "no" ; then
20539 no_gtk=yes
20540 else
20541 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20542 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20543 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20545 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20547 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20548 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20549 if test "x$enable_gtktest" = "xyes" ; then
20550 ac_save_CFLAGS="$CFLAGS"
20551 ac_save_LIBS="$LIBS"
20552 CFLAGS="$CFLAGS $GTK_CFLAGS"
20553 LIBS="$GTK_LIBS $LIBS"
20554 rm -f conf.gtktest
20555 if test "$cross_compiling" = yes; then
20556 echo $ac_n "cross compiling; assumed OK... $ac_c"
20557else
e6cc62c6
VS
20558 cat >conftest.$ac_ext <<_ACEOF
20559#line $LINENO "configure"
20560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
21d1c967
GD
20565
20566#include <gtk/gtk.h>
20567#include <stdio.h>
20568#include <stdlib.h>
20569
e6cc62c6 20570int
21d1c967
GD
20571main ()
20572{
20573 int major, minor, micro;
20574 char *tmp_version;
20575
20576 system ("touch conf.gtktest");
20577
20578 /* HP/UX 9 (%@#!) writes to sscanf strings */
20579 tmp_version = g_strdup("$min_gtk_version");
20580 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20581 printf("%s, bad version string\n", "$min_gtk_version");
20582 exit(1);
20583 }
20584
20585 if ((gtk_major_version != $gtk_config_major_version) ||
20586 (gtk_minor_version != $gtk_config_minor_version) ||
20587 (gtk_micro_version != $gtk_config_micro_version))
20588 {
e6cc62c6 20589 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20590 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20591 gtk_major_version, gtk_minor_version, gtk_micro_version);
20592 printf ("*** was found! If gtk-config was correct, then it is best\n");
20593 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20594 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20595 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20596 printf("*** required on your system.\n");
20597 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20598 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20599 printf("*** before re-running configure\n");
e6cc62c6 20600 }
21d1c967
GD
20601#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20602 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20603 (gtk_minor_version != GTK_MINOR_VERSION) ||
20604 (gtk_micro_version != GTK_MICRO_VERSION))
20605 {
20606 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20607 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20608 printf("*** library (version %d.%d.%d)\n",
20609 gtk_major_version, gtk_minor_version, gtk_micro_version);
20610 }
20611#endif /* defined (GTK_MAJOR_VERSION) ... */
20612 else
20613 {
20614 if ((gtk_major_version > major) ||
20615 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20616 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20617 {
20618 return 0;
20619 }
20620 else
20621 {
20622 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20623 gtk_major_version, gtk_minor_version, gtk_micro_version);
20624 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20625 major, minor, micro);
20626 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20627 printf("***\n");
20628 printf("*** If you have already installed a sufficiently new version, this error\n");
20629 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20630 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20631 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20632 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20633 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20634 printf("*** so that the correct libraries are found at run-time))\n");
20635 }
20636 }
20637 return 1;
20638}
20639
e6cc62c6
VS
20640_ACEOF
20641rm -f conftest$ac_exeext
20642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20643 (eval $ac_link) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
21d1c967
GD
20652 :
20653else
e6cc62c6
VS
20654 echo "$as_me: program exited with status $ac_status" >&5
20655echo "$as_me: failed program was:" >&5
20656sed 's/^/| /' conftest.$ac_ext >&5
20657
20658( exit $ac_status )
20659no_gtk=yes
21d1c967 20660fi
e6cc62c6 20661rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20662fi
21d1c967
GD
20663 CFLAGS="$ac_save_CFLAGS"
20664 LIBS="$ac_save_LIBS"
20665 fi
20666 fi
20667 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20668 echo "$as_me:$LINENO: result: yes" >&5
20669echo "${ECHO_T}yes" >&6
20670 wx_cv_lib_gtk=1.2.3
21d1c967 20671 else
e6cc62c6
VS
20672 echo "$as_me:$LINENO: result: no" >&5
20673echo "${ECHO_T}no" >&6
21d1c967
GD
20674 if test "$GTK_CONFIG" = "no" ; then
20675 echo "*** The gtk-config script installed by GTK could not be found"
20676 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20677 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20678 echo "*** full path to gtk-config."
20679 else
20680 if test -f conf.gtktest ; then
20681 :
20682 else
20683 echo "*** Could not run GTK test program, checking why..."
20684 CFLAGS="$CFLAGS $GTK_CFLAGS"
20685 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20686 cat >conftest.$ac_ext <<_ACEOF
20687#line $LINENO "configure"
20688/* confdefs.h. */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h. */
21d1c967
GD
20693
20694#include <gtk/gtk.h>
20695#include <stdio.h>
f79bd02d 20696
e6cc62c6
VS
20697int
20698main ()
20699{
20700 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20701 ;
20702 return 0;
20703}
20704_ACEOF
20705rm -f conftest.$ac_objext conftest$ac_exeext
20706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20707 (eval $ac_link) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -s conftest$ac_exeext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
21d1c967
GD
20717 echo "*** The test program compiled, but did not run. This usually means"
20718 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20719 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20720 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20721 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20722 echo "*** is required on your system"
20723 echo "***"
20724 echo "*** If you have an old version installed, it is best to remove it, although"
20725 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20726 echo "***"
20727 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20728 echo "*** came with the system with the command"
20729 echo "***"
e6cc62c6 20730 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20731else
e6cc62c6
VS
20732 echo "$as_me: failed program was:" >&5
20733sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20736 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20737 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20738 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20739fi
e6cc62c6 20740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20741 CFLAGS="$ac_save_CFLAGS"
20742 LIBS="$ac_save_LIBS"
20743 fi
20744 fi
20745 GTK_CFLAGS=""
20746 GTK_LIBS=""
20747 :
20748 fi
e6cc62c6
VS
20749
20750
21d1c967 20751 rm -f conf.gtktest
f79bd02d 20752
2b5f62a0 20753 fi
21d1c967
GD
20754 fi
20755
20756 if test -z "$wx_cv_lib_gtk"; then
20757 wx_cv_lib_gtk=none
20758 else
20759 wx_cv_cflags_gtk=$GTK_CFLAGS
20760 wx_cv_libs_gtk=$GTK_LIBS
20761 fi
e6cc62c6
VS
20762
20763
5c6fa7d2 20764fi
52127426 20765
8284b0c5 20766
21d1c967 20767 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20768 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20769echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20770 fi
20771
20772 case "$wx_cv_lib_gtk" in
20773 2.0) WXGTK20=1
2b5f62a0 20774 TOOLKIT_VERSION=2
21d1c967
GD
20775 ;;
20776 1.2.7) WXGTK127=1
20777 WXGTK12=1
20778 ;;
20779 1.2.3) WXGTK12=1
20780 ;;
e6cc62c6
VS
20781 *) { { echo "$as_me:$LINENO: error:
20782Please check that gtk-config is in path, the directory
20783where GTK+ libraries are installed (returned by
20784'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20785equivalent variable and GTK+ is version 1.2.3 or above.
20786 " >&5
20787echo "$as_me: error:
247f5006
VZ
20788Please check that gtk-config is in path, the directory
20789where GTK+ libraries are installed (returned by
20790'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20791equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20792 " >&2;}
20793 { (exit 1); exit 1; }; }
21d1c967
GD
20794 ;;
20795 esac
20796
b13cd66e
VZ
20797 if test "$WXGTK20" = 1; then
20798 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20799
f09359cf
VS
20800 succeeded=no
20801
20802 if test -z "$PKG_CONFIG"; then
20803 # Extract the first word of "pkg-config", so it can be a program name with args.
20804set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20805echo "$as_me:$LINENO: checking for $ac_word" >&5
20806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20807if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20809else
e6cc62c6
VS
20810 case $PKG_CONFIG in
20811 [\\/]* | ?:[\\/]*)
f09359cf
VS
20812 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20813 ;;
f09359cf 20814 *)
e6cc62c6
VS
20815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20816for as_dir in $PATH
20817do
20818 IFS=$as_save_IFS
20819 test -z "$as_dir" && as_dir=.
20820 for ac_exec_ext in '' $ac_executable_extensions; do
20821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20822 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20824 break 2
20825 fi
20826done
20827done
20828
f09359cf
VS
20829 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20830 ;;
20831esac
20832fi
e6cc62c6
VS
20833PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20834
f09359cf 20835if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20836 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20837echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20838else
e6cc62c6
VS
20839 echo "$as_me:$LINENO: result: no" >&5
20840echo "${ECHO_T}no" >&6
f09359cf
VS
20841fi
20842
20843 fi
20844
20845 if test "$PKG_CONFIG" = "no" ; then
20846 echo "*** The pkg-config script could not be found. Make sure it is"
20847 echo "*** in your path, or set the PKG_CONFIG environment variable"
20848 echo "*** to the full path to pkg-config."
20849 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20850 else
20851 PKG_CONFIG_MIN_VERSION=0.9.0
20852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20853 echo "$as_me:$LINENO: checking for pangoft2" >&5
20854echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20855
20856 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20857 echo "$as_me:$LINENO: result: yes" >&5
20858echo "${ECHO_T}yes" >&6
f09359cf
VS
20859 succeeded=yes
20860
e6cc62c6
VS
20861 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20862echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20863 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20864 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20865echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20866
e6cc62c6
VS
20867 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20868echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20869 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20870 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20871echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20872 else
20873 PANGOFT2_CFLAGS=""
20874 PANGOFT2_LIBS=""
e6cc62c6 20875 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20876 ## do set a variable so people can do so.
20877 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20878
f09359cf
VS
20879 fi
20880
e6cc62c6
VS
20881
20882
f09359cf
VS
20883 else
20884 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20885 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20886 fi
20887 fi
20888
20889 if test $succeeded = yes; then
e6cc62c6 20890
b13cd66e 20891 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20892 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20893
f09359cf 20894 else
e6cc62c6
VS
20895
20896 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20897echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20898 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20899
20900
f09359cf
VS
20901 fi
20902
b13cd66e 20903 fi
2b5f62a0
VZ
20904 else
20905 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20906 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20907echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20908 wxUSE_UNICODE=no
20909 fi
20910 fi
20911
20912 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20913
20914for ac_func in poll
2b5f62a0 20915do
e6cc62c6
VS
20916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20917echo "$as_me:$LINENO: checking for $ac_func" >&5
20918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20919if eval "test \"\${$as_ac_var+set}\" = set"; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20921else
20922 cat >conftest.$ac_ext <<_ACEOF
20923#line $LINENO "configure"
20924/* confdefs.h. */
20925_ACEOF
20926cat confdefs.h >>conftest.$ac_ext
20927cat >>conftest.$ac_ext <<_ACEOF
20928/* end confdefs.h. */
2b5f62a0 20929/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20930 which can conflict with char $ac_func (); below.
20931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20932 <limits.h> exists even on freestanding compilers. */
20933#ifdef __STDC__
20934# include <limits.h>
20935#else
20936# include <assert.h>
20937#endif
2b5f62a0 20938/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20939#ifdef __cplusplus
20940extern "C"
20941{
20942#endif
2b5f62a0 20943/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20944 builtin and then its argument prototype would still apply. */
20945char $ac_func ();
2b5f62a0
VZ
20946/* The GNU C library defines this for functions which it implements
20947 to always fail with ENOSYS. Some functions are actually named
20948 something starting with __ and the normal name is an alias. */
20949#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20950choke me
20951#else
e6cc62c6
VS
20952char (*f) () = $ac_func;
20953#endif
20954#ifdef __cplusplus
20955}
2b5f62a0
VZ
20956#endif
20957
e6cc62c6
VS
20958int
20959main ()
20960{
20961return f != $ac_func;
20962 ;
20963 return 0;
20964}
20965_ACEOF
20966rm -f conftest.$ac_objext conftest$ac_exeext
20967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20968 (eval $ac_link) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } &&
20972 { ac_try='test -s conftest$ac_exeext'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }; then
20978 eval "$as_ac_var=yes"
20979else
20980 echo "$as_me: failed program was:" >&5
20981sed 's/^/| /' conftest.$ac_ext >&5
20982
20983eval "$as_ac_var=no"
20984fi
20985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20986fi
20987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20989if test `eval echo '${'$as_ac_var'}'` = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20992_ACEOF
2b5f62a0 20993
2b5f62a0
VZ
20994fi
20995done
20996
f09359cf
VS
20997 fi
20998
21d1c967 20999 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21000 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21001
21002 AFMINSTALL=afminstall
21003 TOOLKIT=GTK
21004 GUIDIST=GTK_DIST
21005
e6cc62c6
VS
21006 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21007echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21008if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21010else
e6cc62c6 21011 ac_check_lib_save_LIBS=$LIBS
21d1c967 21012LIBS="-lgdk $LIBS"
e6cc62c6
VS
21013cat >conftest.$ac_ext <<_ACEOF
21014#line $LINENO "configure"
21015/* confdefs.h. */
21016_ACEOF
21017cat confdefs.h >>conftest.$ac_ext
21018cat >>conftest.$ac_ext <<_ACEOF
21019/* end confdefs.h. */
21020
5c6fa7d2 21021/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21022#ifdef __cplusplus
21023extern "C"
21024#endif
5c6fa7d2 21025/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21026 builtin and then its argument prototype would still apply. */
21027char gdk_im_open ();
21028int
21029main ()
21030{
21031gdk_im_open ();
21032 ;
21033 return 0;
21034}
21035_ACEOF
21036rm -f conftest.$ac_objext conftest$ac_exeext
21037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21038 (eval $ac_link) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
21042 { ac_try='test -s conftest$ac_exeext'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 ac_cv_lib_gdk_gdk_im_open=yes
21049else
21050 echo "$as_me: failed program was:" >&5
21051sed 's/^/| /' conftest.$ac_ext >&5
21052
21053ac_cv_lib_gdk_gdk_im_open=no
21054fi
21055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21056LIBS=$ac_check_lib_save_LIBS
21057fi
21058echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21059echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21060if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21061 cat >>confdefs.h <<\_ACEOF
21d1c967 21062#define HAVE_XIM 1
e6cc62c6 21063_ACEOF
21d1c967 21064
90dd450c 21065fi
1e6feb95 21066
21d1c967 21067 fi
1e6feb95 21068
21d1c967 21069 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21070 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21071echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21072 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21073 echo "$as_me:$LINENO: result: not found" >&5
21074echo "${ECHO_T}not found" >&6
21075 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21076echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21077 { (exit 1); exit 1; }; }
21d1c967 21078 else
e6cc62c6
VS
21079 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21080echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21081 fi
21082
e6cc62c6
VS
21083 echo "$as_me:$LINENO: checking for libmgl location" >&5
21084echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21085 case "${host}" in
21d1c967 21086 *-*-linux* )
e46d2a18
VS
21087 if test "x$wxUSE_SHARED" = xyes ; then
21088 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21089 else
e46d2a18 21090 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21091 fi
21d1c967
GD
21092 ;;
21093 *-pc-msdosdjgpp )
63a76696 21094 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21095 ;;
21096 *)
e6cc62c6
VS
21097 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21098echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21099 { (exit 1); exit 1; }; }
21d1c967 21100 esac
1e6feb95 21101
21d1c967 21102 mgl_lib_type=""
63a76696
VS
21103 mgl_os=""
21104
21105 for mgl_os_i in $mgl_os_candidates ; do
21106 if test "x$mgl_os" = x ; then
21107 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21108 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21109 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21110 mgl_lib_type=debug
21111 mgl_os=$mgl_os_i
21112 fi
21113 fi
21114 if test "x$mgl_lib_type" = x ; then
21115 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21116 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21117 mgl_lib_type=release
21118 mgl_os=$mgl_os_i
21119 fi
21120 fi
21d1c967 21121 fi
63a76696 21122 done
2224580a 21123
63a76696 21124 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21125 echo "$as_me:$LINENO: result: not found" >&5
21126echo "${ECHO_T}not found" >&6
21127 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21128echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21129 { (exit 1); exit 1; }; }
63a76696 21130 fi
e6cc62c6
VS
21131 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21132echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21133
1d1b75ac
VZ
21134 wxUSE_UNIVERSAL="yes"
21135
21d1c967
GD
21136 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21137 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21138
90dd450c 21139 AFMINSTALL=afminstall
21d1c967
GD
21140 TOOLKIT=MGL
21141 GUIDIST=MGL_DIST
21142 fi
dad6c0ea 21143
21d1c967 21144 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21145 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21146echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21147 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21148 echo "$as_me:$LINENO: result: not found" >&5
21149echo "${ECHO_T}not found" >&6
21150 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21151echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21152 { (exit 1); exit 1; }; }
21d1c967 21153 else
e6cc62c6
VS
21154 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21155echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21156 fi
f6bcfd97 21157
21d1c967 21158 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21159 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21160echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21161 else
e6cc62c6
VS
21162 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21163echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21164 { (exit 1); exit 1; }; }
90dd450c 21165 fi
0b2effe9 21166
21d1c967
GD
21167 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21168 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21169
1d1b75ac
VZ
21170 wxUSE_UNIVERSAL="yes"
21171
21d1c967
GD
21172 AFMINSTALL=afminstall
21173 TOOLKIT=MICROWIN
21174 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21175
21176 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21177 fi
f6bcfd97 21178
21d1c967 21179 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21180 echo "$as_me:$LINENO: checking for X" >&5
21181echo $ECHO_N "checking for X... $ECHO_C" >&6
21182
d8356fa3 21183
21d1c967
GD
21184# Check whether --with-x or --without-x was given.
21185if test "${with_x+set}" = set; then
21186 withval="$with_x"
2224580a 21187
e6cc62c6 21188fi;
21d1c967
GD
21189# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21190if test "x$with_x" = xno; then
21191 # The user explicitly disabled X.
21192 have_x=disabled
21193else
21194 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21195 # Both variables are already set.
21196 have_x=yes
21197 else
e6cc62c6
VS
21198 if test "${ac_cv_have_x+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21200else
21201 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21202ac_x_includes=no ac_x_libraries=no
21203rm -fr conftest.dir
21204if mkdir conftest.dir; then
21205 cd conftest.dir
21d1c967 21206 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21207 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21208acfindx:
21209 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21210_ACEOF
21d1c967
GD
21211 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21213 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21214 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21215 for ac_extension in a so sl; do
21216 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21217 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21218 ac_im_usrlibdir=$ac_im_libdir; break
21219 fi
21220 done
21221 # Screen out bogus values from the imake configuration. They are
21222 # bogus both because they are the default anyway, and because
21223 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21224 case $ac_im_incroot in
21d1c967 21225 /usr/include) ;;
e6cc62c6 21226 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21227 esac
e6cc62c6 21228 case $ac_im_usrlibdir in
21d1c967 21229 /usr/lib | /lib) ;;
e6cc62c6 21230 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21231 esac
21232 fi
21233 cd ..
e6cc62c6 21234 rm -fr conftest.dir
21d1c967 21235fi
10f2d63a 21236
e6cc62c6
VS
21237# Standard set of common directories for X headers.
21238# Check X11 before X11Rn because it is often a symlink to the current release.
21239ac_x_header_dirs='
21240/usr/X11/include
21241/usr/X11R6/include
21242/usr/X11R5/include
21243/usr/X11R4/include
21244
21245/usr/include/X11
21246/usr/include/X11R6
21247/usr/include/X11R5
21248/usr/include/X11R4
21249
21250/usr/local/X11/include
21251/usr/local/X11R6/include
21252/usr/local/X11R5/include
21253/usr/local/X11R4/include
21254
21255/usr/local/include/X11
21256/usr/local/include/X11R6
21257/usr/local/include/X11R5
21258/usr/local/include/X11R4
21259
21260/usr/X386/include
21261/usr/x386/include
21262/usr/XFree86/include/X11
21263
21264/usr/include
21265/usr/local/include
21266/usr/unsupported/include
21267/usr/athena/include
21268/usr/local/x11r5/include
21269/usr/lpp/Xamples/include
21270
21271/usr/openwin/include
21272/usr/openwin/share/include'
21273
21274if test "$ac_x_includes" = no; then
21275 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21276 # First, try using that file with no special directory specified.
e6cc62c6
VS
21277 cat >conftest.$ac_ext <<_ACEOF
21278#line $LINENO "configure"
21279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h. */
21284#include <X11/Intrinsic.h>
21285_ACEOF
21286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21288 ac_status=$?
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } >/dev/null; then
21294 if test -s conftest.err; then
21295 ac_cpp_err=$ac_c_preproc_warn_flag
21296 else
21297 ac_cpp_err=
21298 fi
21299else
21300 ac_cpp_err=yes
21301fi
21302if test -z "$ac_cpp_err"; then
21d1c967
GD
21303 # We can compile using X headers with no special include directory.
21304ac_x_includes=
90dd450c 21305else
e6cc62c6
VS
21306 echo "$as_me: failed program was:" >&5
21307sed 's/^/| /' conftest.$ac_ext >&5
21308
21309 for ac_dir in $ac_x_header_dirs; do
21310 if test -r "$ac_dir/X11/Intrinsic.h"; then
21311 ac_x_includes=$ac_dir
21312 break
21313 fi
21314done
3a922bb4 21315fi
e6cc62c6
VS
21316rm -f conftest.err conftest.$ac_ext
21317fi # $ac_x_includes = no
10f2d63a 21318
e6cc62c6 21319if test "$ac_x_libraries" = no; then
21d1c967 21320 # Check for the libraries.
21d1c967
GD
21321 # See if we find them without any special options.
21322 # Don't add to $LIBS permanently.
e6cc62c6
VS
21323 ac_save_LIBS=$LIBS
21324 LIBS="-lXt $LIBS"
21325 cat >conftest.$ac_ext <<_ACEOF
21326#line $LINENO "configure"
21327/* confdefs.h. */
21328_ACEOF
21329cat confdefs.h >>conftest.$ac_ext
21330cat >>conftest.$ac_ext <<_ACEOF
21331/* end confdefs.h. */
21332#include <X11/Intrinsic.h>
21333int
21334main ()
21335{
21336XtMalloc (0)
21337 ;
21338 return 0;
21339}
21340_ACEOF
21341rm -f conftest.$ac_objext conftest$ac_exeext
21342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } &&
21347 { ac_try='test -s conftest$ac_exeext'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 LIBS=$ac_save_LIBS
21d1c967
GD
21354# We can link X programs with no special library path.
21355ac_x_libraries=
3a922bb4 21356else
e6cc62c6
VS
21357 echo "$as_me: failed program was:" >&5
21358sed 's/^/| /' conftest.$ac_ext >&5
21359
21360LIBS=$ac_save_LIBS
21361for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21362do
e6cc62c6 21363 # Don't even attempt the hair of trying to link an X program!
21d1c967 21364 for ac_extension in a so sl; do
e6cc62c6 21365 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21366 ac_x_libraries=$ac_dir
21367 break 2
21368 fi
21369 done
21370done
3a922bb4 21371fi
e6cc62c6
VS
21372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21373fi # $ac_x_libraries = no
90dd450c 21374
e6cc62c6 21375if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21376 # Didn't find X anywhere. Cache the known absence of X.
21377 ac_cv_have_x="have_x=no"
21378else
21379 # Record where we found X for the cache.
21380 ac_cv_have_x="have_x=yes \
21381 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21382fi
21d1c967 21383fi
e6cc62c6 21384
21d1c967
GD
21385 fi
21386 eval "$ac_cv_have_x"
21387fi # $with_x != no
90dd450c 21388
21d1c967 21389if test "$have_x" != yes; then
e6cc62c6
VS
21390 echo "$as_me:$LINENO: result: $have_x" >&5
21391echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21392 no_x=yes
21393else
21394 # If each of the values was on the command line, it overrides each guess.
21395 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21396 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21397 # Update the cache value to reflect the command line values.
21398 ac_cv_have_x="have_x=yes \
21399 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21400 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21401echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21402fi
90dd450c 21403
21d1c967 21404if test "$no_x" = yes; then
90dd450c 21405 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21406
21407cat >>confdefs.h <<\_ACEOF
90dd450c 21408#define X_DISPLAY_MISSING 1
e6cc62c6 21409_ACEOF
90dd450c
VZ
21410
21411 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21412else
21413 if test -n "$x_includes"; then
21414 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21415 fi
3a922bb4 21416
90dd450c
VZ
21417 # It would also be nice to do this for all -L options, not just this one.
21418 if test -n "$x_libraries"; then
21419 X_LIBS="$X_LIBS -L$x_libraries"
21420 # For Solaris; some versions of Sun CC require a space after -R and
21421 # others require no space. Words are not sufficient . . . .
e6cc62c6 21422 case `(uname -sr) 2>/dev/null` in
90dd450c 21423 "SunOS 5"*)
e6cc62c6
VS
21424 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21425echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21426 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21427 cat >conftest.$ac_ext <<_ACEOF
21428#line $LINENO "configure"
21429/* confdefs.h. */
21430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h. */
21434
21435int
21436main ()
21437{
90dd450c 21438
e6cc62c6
VS
21439 ;
21440 return 0;
21441}
21442_ACEOF
21443rm -f conftest.$ac_objext conftest$ac_exeext
21444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -s conftest$ac_exeext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
90dd450c 21455 ac_R_nospace=yes
3a922bb4 21456else
e6cc62c6
VS
21457 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460ac_R_nospace=no
3a922bb4 21461fi
e6cc62c6 21462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21463 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21464 echo "$as_me:$LINENO: result: no" >&5
21465echo "${ECHO_T}no" >&6
90dd450c
VZ
21466 X_LIBS="$X_LIBS -R$x_libraries"
21467 else
21468 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21469 cat >conftest.$ac_ext <<_ACEOF
21470#line $LINENO "configure"
21471/* confdefs.h. */
21472_ACEOF
21473cat confdefs.h >>conftest.$ac_ext
21474cat >>conftest.$ac_ext <<_ACEOF
21475/* end confdefs.h. */
21476
21477int
21478main ()
21479{
6f754473 21480
e6cc62c6
VS
21481 ;
21482 return 0;
21483}
21484_ACEOF
21485rm -f conftest.$ac_objext conftest$ac_exeext
21486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21487 (eval $ac_link) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
21491 { ac_try='test -s conftest$ac_exeext'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; }; then
90dd450c
VZ
21497 ac_R_space=yes
21498else
e6cc62c6
VS
21499 echo "$as_me: failed program was:" >&5
21500sed 's/^/| /' conftest.$ac_ext >&5
21501
21502ac_R_space=no
90dd450c 21503fi
e6cc62c6 21504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21505 if test $ac_R_space = yes; then
e6cc62c6
VS
21506 echo "$as_me:$LINENO: result: yes" >&5
21507echo "${ECHO_T}yes" >&6
90dd450c
VZ
21508 X_LIBS="$X_LIBS -R $x_libraries"
21509 else
e6cc62c6
VS
21510 echo "$as_me:$LINENO: result: neither works" >&5
21511echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21512 fi
21513 fi
e6cc62c6 21514 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21515 esac
21516 fi
21517
21518 # Check for system-dependent libraries X programs must link with.
21519 # Do this before checking for the system-independent R6 libraries
21520 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21521
90dd450c
VZ
21522 if test "$ISC" = yes; then
21523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21524 else
e6cc62c6
VS
21525 # Martyn Johnson says this is needed for Ultrix, if the X
21526 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21527 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21528 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21529 cat >conftest.$ac_ext <<_ACEOF
21530#line $LINENO "configure"
21531/* confdefs.h. */
21532_ACEOF
21533cat confdefs.h >>conftest.$ac_ext
21534cat >>conftest.$ac_ext <<_ACEOF
21535/* end confdefs.h. */
21536
247f5006 21537/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21538#ifdef __cplusplus
21539extern "C"
21540#endif
247f5006 21541/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21542 builtin and then its argument prototype would still apply. */
21543char XOpenDisplay ();
21544int
21545main ()
21546{
21547XOpenDisplay ();
21548 ;
21549 return 0;
21550}
21551_ACEOF
21552rm -f conftest.$ac_objext conftest$ac_exeext
21553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -s conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 :
21565else
21566 echo "$as_me: failed program was:" >&5
21567sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21568
e6cc62c6
VS
21569echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21570echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21571if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21573else
e6cc62c6
VS
21574 ac_check_lib_save_LIBS=$LIBS
21575LIBS="-ldnet $LIBS"
21576cat >conftest.$ac_ext <<_ACEOF
21577#line $LINENO "configure"
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
a0b9e27f 21583
e6cc62c6
VS
21584/* Override any gcc2 internal prototype to avoid an error. */
21585#ifdef __cplusplus
21586extern "C"
21587#endif
21588/* We use char because int might match the return type of a gcc2
21589 builtin and then its argument prototype would still apply. */
21590char dnet_ntoa ();
21591int
21592main ()
21593{
21594dnet_ntoa ();
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599rm -f conftest.$ac_objext conftest$ac_exeext
21600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21601 (eval $ac_link) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -s conftest$ac_exeext'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 ac_cv_lib_dnet_dnet_ntoa=yes
21612else
21613 echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616ac_cv_lib_dnet_dnet_ntoa=no
21617fi
21618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21619LIBS=$ac_check_lib_save_LIBS
21620fi
21621echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21622echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21623if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21625fi
21626
90dd450c 21627 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21628 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21629echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21630if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21632else
e6cc62c6 21633 ac_check_lib_save_LIBS=$LIBS
90dd450c 21634LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21635cat >conftest.$ac_ext <<_ACEOF
21636#line $LINENO "configure"
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642
90dd450c 21643/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21644#ifdef __cplusplus
21645extern "C"
21646#endif
90dd450c 21647/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21648 builtin and then its argument prototype would still apply. */
21649char dnet_ntoa ();
21650int
21651main ()
21652{
21653dnet_ntoa ();
21654 ;
21655 return 0;
21656}
21657_ACEOF
21658rm -f conftest.$ac_objext conftest$ac_exeext
21659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660 (eval $ac_link) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -s conftest$ac_exeext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21671else
21672 echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5
21674
21675ac_cv_lib_dnet_stub_dnet_ntoa=no
21676fi
21677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21678LIBS=$ac_check_lib_save_LIBS
21679fi
21680echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21681echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21682if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21683 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21684fi
21685
90dd450c 21686 fi
e6cc62c6
VS
21687fi
21688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21689 LIBS="$ac_xsave_LIBS"
978f1259 21690
90dd450c
VZ
21691 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21692 # to get the SysV transport functions.
e6cc62c6 21693 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21694 # needs -lnsl.
21695 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21696 # on Irix 5.2, according to T.E. Dickey.
21697 # The functions gethostbyname, getservbyname, and inet_addr are
21698 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21699 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21700echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21701if test "${ac_cv_func_gethostbyname+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21703else
21704 cat >conftest.$ac_ext <<_ACEOF
21705#line $LINENO "configure"
21706/* confdefs.h. */
21707_ACEOF
21708cat confdefs.h >>conftest.$ac_ext
21709cat >>conftest.$ac_ext <<_ACEOF
21710/* end confdefs.h. */
90dd450c 21711/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21712 which can conflict with char gethostbyname (); below.
21713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21714 <limits.h> exists even on freestanding compilers. */
21715#ifdef __STDC__
21716# include <limits.h>
21717#else
21718# include <assert.h>
21719#endif
90dd450c 21720/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21721#ifdef __cplusplus
21722extern "C"
21723{
21724#endif
90dd450c 21725/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21726 builtin and then its argument prototype would still apply. */
21727char gethostbyname ();
90dd450c
VZ
21728/* The GNU C library defines this for functions which it implements
21729 to always fail with ENOSYS. Some functions are actually named
21730 something starting with __ and the normal name is an alias. */
21731#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21732choke me
21733#else
e6cc62c6
VS
21734char (*f) () = gethostbyname;
21735#endif
21736#ifdef __cplusplus
21737}
90dd450c 21738#endif
978f1259 21739
e6cc62c6
VS
21740int
21741main ()
21742{
21743return f != gethostbyname;
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext conftest$ac_exeext
21749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21750 (eval $ac_link) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -s conftest$ac_exeext'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760 ac_cv_func_gethostbyname=yes
21761else
21762 echo "$as_me: failed program was:" >&5
21763sed 's/^/| /' conftest.$ac_ext >&5
21764
21765ac_cv_func_gethostbyname=no
21766fi
21767rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21768fi
21769echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21770echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21771
90dd450c 21772 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21773 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21774echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21775if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21777else
e6cc62c6 21778 ac_check_lib_save_LIBS=$LIBS
90dd450c 21779LIBS="-lnsl $LIBS"
e6cc62c6
VS
21780cat >conftest.$ac_ext <<_ACEOF
21781#line $LINENO "configure"
21782/* confdefs.h. */
21783_ACEOF
21784cat confdefs.h >>conftest.$ac_ext
21785cat >>conftest.$ac_ext <<_ACEOF
21786/* end confdefs.h. */
21787
90dd450c 21788/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21789#ifdef __cplusplus
21790extern "C"
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 gethostbyname ();
21795int
21796main ()
21797{
21798gethostbyname ();
21799 ;
21800 return 0;
21801}
21802_ACEOF
21803rm -f conftest.$ac_objext conftest$ac_exeext
21804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21805 (eval $ac_link) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } &&
21809 { ac_try='test -s conftest$ac_exeext'
21810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811 (eval $ac_try) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); }; }; then
21815 ac_cv_lib_nsl_gethostbyname=yes
21816else
21817 echo "$as_me: failed program was:" >&5
21818sed 's/^/| /' conftest.$ac_ext >&5
21819
21820ac_cv_lib_nsl_gethostbyname=no
21821fi
21822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21823LIBS=$ac_check_lib_save_LIBS
21824fi
21825echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21826echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21827if test $ac_cv_lib_nsl_gethostbyname = yes; then
21828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21829fi
247f5006 21830
e6cc62c6
VS
21831 if test $ac_cv_lib_nsl_gethostbyname = no; then
21832 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21833echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21834if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21836else
e6cc62c6
VS
21837 ac_check_lib_save_LIBS=$LIBS
21838LIBS="-lbsd $LIBS"
21839cat >conftest.$ac_ext <<_ACEOF
21840#line $LINENO "configure"
21841/* confdefs.h. */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h. */
21846
21847/* Override any gcc2 internal prototype to avoid an error. */
21848#ifdef __cplusplus
21849extern "C"
21850#endif
21851/* We use char because int might match the return type of a gcc2
21852 builtin and then its argument prototype would still apply. */
21853char gethostbyname ();
21854int
21855main ()
21856{
21857gethostbyname ();
21858 ;
21859 return 0;
21860}
21861_ACEOF
21862rm -f conftest.$ac_objext conftest$ac_exeext
21863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21864 (eval $ac_link) 2>&5
21865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } &&
21868 { ac_try='test -s conftest$ac_exeext'
21869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21870 (eval $ac_try) 2>&5
21871 ac_status=$?
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); }; }; then
21874 ac_cv_lib_bsd_gethostbyname=yes
21875else
21876 echo "$as_me: failed program was:" >&5
21877sed 's/^/| /' conftest.$ac_ext >&5
21878
21879ac_cv_lib_bsd_gethostbyname=no
21880fi
21881rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21882LIBS=$ac_check_lib_save_LIBS
21883fi
21884echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21885echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21886if test $ac_cv_lib_bsd_gethostbyname = yes; then
21887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21888fi
b12915c1 21889
e6cc62c6 21890 fi
90dd450c
VZ
21891 fi
21892
21893 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21894 # socket/setsockopt and other routines are undefined under SCO ODT
21895 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21896 # on later versions), says Simon Leinen: it contains gethostby*
21897 # variants that don't use the name server (or something). -lsocket
21898 # must be given before -lnsl if both are needed. We assume that
21899 # if connect needs -lnsl, so does gethostbyname.
21900 echo "$as_me:$LINENO: checking for connect" >&5
21901echo $ECHO_N "checking for connect... $ECHO_C" >&6
21902if test "${ac_cv_func_connect+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904else
21905 cat >conftest.$ac_ext <<_ACEOF
21906#line $LINENO "configure"
21907/* confdefs.h. */
21908_ACEOF
21909cat confdefs.h >>conftest.$ac_ext
21910cat >>conftest.$ac_ext <<_ACEOF
21911/* end confdefs.h. */
90dd450c 21912/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21913 which can conflict with char connect (); below.
21914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21915 <limits.h> exists even on freestanding compilers. */
21916#ifdef __STDC__
21917# include <limits.h>
21918#else
21919# include <assert.h>
21920#endif
90dd450c 21921/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21922#ifdef __cplusplus
21923extern "C"
21924{
21925#endif
90dd450c 21926/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21927 builtin and then its argument prototype would still apply. */
21928char connect ();
90dd450c
VZ
21929/* The GNU C library defines this for functions which it implements
21930 to always fail with ENOSYS. Some functions are actually named
21931 something starting with __ and the normal name is an alias. */
21932#if defined (__stub_connect) || defined (__stub___connect)
21933choke me
21934#else
e6cc62c6
VS
21935char (*f) () = connect;
21936#endif
21937#ifdef __cplusplus
21938}
90dd450c
VZ
21939#endif
21940
e6cc62c6
VS
21941int
21942main ()
21943{
21944return f != connect;
21945 ;
21946 return 0;
21947}
21948_ACEOF
21949rm -f conftest.$ac_objext conftest$ac_exeext
21950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951 (eval $ac_link) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } &&
21955 { ac_try='test -s conftest$ac_exeext'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 ac_cv_func_connect=yes
21962else
21963 echo "$as_me: failed program was:" >&5
21964sed 's/^/| /' conftest.$ac_ext >&5
21965
21966ac_cv_func_connect=no
21967fi
21968rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21969fi
21970echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21971echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21972
90dd450c 21973 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21974 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21975echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21976if test "${ac_cv_lib_socket_connect+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21978else
e6cc62c6 21979 ac_check_lib_save_LIBS=$LIBS
90dd450c 21980LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21981cat >conftest.$ac_ext <<_ACEOF
21982#line $LINENO "configure"
21983/* confdefs.h. */
21984_ACEOF
21985cat confdefs.h >>conftest.$ac_ext
21986cat >>conftest.$ac_ext <<_ACEOF
21987/* end confdefs.h. */
21988
90dd450c 21989/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21990#ifdef __cplusplus
21991extern "C"
21992#endif
90dd450c 21993/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21994 builtin and then its argument prototype would still apply. */
21995char connect ();
21996int
21997main ()
21998{
21999connect ();
22000 ;
22001 return 0;
22002}
22003_ACEOF
22004rm -f conftest.$ac_objext conftest$ac_exeext
22005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22006 (eval $ac_link) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } &&
22010 { ac_try='test -s conftest$ac_exeext'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_lib_socket_connect=yes
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021ac_cv_lib_socket_connect=no
22022fi
22023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22024LIBS=$ac_check_lib_save_LIBS
22025fi
22026echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22027echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22028if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22029 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22030fi
77e13408 22031
90dd450c 22032 fi
25d0687a 22033
e6cc62c6
VS
22034 # Guillermo Gomez says -lposix is necessary on A/UX.
22035 echo "$as_me:$LINENO: checking for remove" >&5
22036echo $ECHO_N "checking for remove... $ECHO_C" >&6
22037if test "${ac_cv_func_remove+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039else
22040 cat >conftest.$ac_ext <<_ACEOF
22041#line $LINENO "configure"
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
90dd450c 22047/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22048 which can conflict with char remove (); below.
22049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22050 <limits.h> exists even on freestanding compilers. */
22051#ifdef __STDC__
22052# include <limits.h>
22053#else
22054# include <assert.h>
22055#endif
90dd450c 22056/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22057#ifdef __cplusplus
22058extern "C"
22059{
22060#endif
90dd450c 22061/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22062 builtin and then its argument prototype would still apply. */
22063char remove ();
90dd450c
VZ
22064/* The GNU C library defines this for functions which it implements
22065 to always fail with ENOSYS. Some functions are actually named
22066 something starting with __ and the normal name is an alias. */
22067#if defined (__stub_remove) || defined (__stub___remove)
22068choke me
22069#else
e6cc62c6
VS
22070char (*f) () = remove;
22071#endif
22072#ifdef __cplusplus
22073}
90dd450c 22074#endif
55e80573 22075
e6cc62c6
VS
22076int
22077main ()
22078{
22079return f != remove;
22080 ;
22081 return 0;
22082}
22083_ACEOF
22084rm -f conftest.$ac_objext conftest$ac_exeext
22085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22086 (eval $ac_link) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try='test -s conftest$ac_exeext'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_cv_func_remove=yes
22097else
22098 echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100
22101ac_cv_func_remove=no
22102fi
22103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22104fi
22105echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22106echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22107
90dd450c 22108 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22109 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22110echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22111if test "${ac_cv_lib_posix_remove+set}" = set; then
22112 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22113else
e6cc62c6 22114 ac_check_lib_save_LIBS=$LIBS
90dd450c 22115LIBS="-lposix $LIBS"
e6cc62c6
VS
22116cat >conftest.$ac_ext <<_ACEOF
22117#line $LINENO "configure"
22118/* confdefs.h. */
22119_ACEOF
22120cat confdefs.h >>conftest.$ac_ext
22121cat >>conftest.$ac_ext <<_ACEOF
22122/* end confdefs.h. */
22123
90dd450c 22124/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22125#ifdef __cplusplus
22126extern "C"
22127#endif
90dd450c 22128/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22129 builtin and then its argument prototype would still apply. */
22130char remove ();
22131int
22132main ()
22133{
22134remove ();
22135 ;
22136 return 0;
22137}
22138_ACEOF
22139rm -f conftest.$ac_objext conftest$ac_exeext
22140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22141 (eval $ac_link) 2>&5
22142 ac_status=$?
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
22145 { ac_try='test -s conftest$ac_exeext'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22151 ac_cv_lib_posix_remove=yes
22152else
22153 echo "$as_me: failed program was:" >&5
22154sed 's/^/| /' conftest.$ac_ext >&5
22155
22156ac_cv_lib_posix_remove=no
22157fi
22158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22159LIBS=$ac_check_lib_save_LIBS
22160fi
22161echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22162echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22163if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22165fi
f6bcfd97 22166
6fa882bd
RR
22167 fi
22168
90dd450c 22169 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22170 echo "$as_me:$LINENO: checking for shmat" >&5
22171echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22172if test "${ac_cv_func_shmat+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22174else
22175 cat >conftest.$ac_ext <<_ACEOF
22176#line $LINENO "configure"
22177/* confdefs.h. */
22178_ACEOF
22179cat confdefs.h >>conftest.$ac_ext
22180cat >>conftest.$ac_ext <<_ACEOF
22181/* end confdefs.h. */
90dd450c 22182/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22183 which can conflict with char shmat (); below.
22184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22185 <limits.h> exists even on freestanding compilers. */
22186#ifdef __STDC__
22187# include <limits.h>
22188#else
22189# include <assert.h>
22190#endif
90dd450c 22191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22192#ifdef __cplusplus
22193extern "C"
22194{
22195#endif
90dd450c 22196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22197 builtin and then its argument prototype would still apply. */
22198char shmat ();
90dd450c
VZ
22199/* The GNU C library defines this for functions which it implements
22200 to always fail with ENOSYS. Some functions are actually named
22201 something starting with __ and the normal name is an alias. */
22202#if defined (__stub_shmat) || defined (__stub___shmat)
22203choke me
22204#else
e6cc62c6
VS
22205char (*f) () = shmat;
22206#endif
22207#ifdef __cplusplus
22208}
90dd450c 22209#endif
10f2d63a 22210
e6cc62c6
VS
22211int
22212main ()
22213{
22214return f != shmat;
22215 ;
22216 return 0;
22217}
22218_ACEOF
22219rm -f conftest.$ac_objext conftest$ac_exeext
22220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22221 (eval $ac_link) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } &&
22225 { ac_try='test -s conftest$ac_exeext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ac_cv_func_shmat=yes
22232else
22233 echo "$as_me: failed program was:" >&5
22234sed 's/^/| /' conftest.$ac_ext >&5
22235
22236ac_cv_func_shmat=no
22237fi
22238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22239fi
22240echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22241echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22242
90dd450c 22243 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22244 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22245echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22246if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22248else
e6cc62c6 22249 ac_check_lib_save_LIBS=$LIBS
90dd450c 22250LIBS="-lipc $LIBS"
e6cc62c6
VS
22251cat >conftest.$ac_ext <<_ACEOF
22252#line $LINENO "configure"
22253/* confdefs.h. */
22254_ACEOF
22255cat confdefs.h >>conftest.$ac_ext
22256cat >>conftest.$ac_ext <<_ACEOF
22257/* end confdefs.h. */
22258
8284b0c5 22259/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22260#ifdef __cplusplus
22261extern "C"
22262#endif
90dd450c 22263/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22264 builtin and then its argument prototype would still apply. */
22265char shmat ();
22266int
22267main ()
22268{
22269shmat ();
22270 ;
22271 return 0;
22272}
22273_ACEOF
22274rm -f conftest.$ac_objext conftest$ac_exeext
22275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276 (eval $ac_link) 2>&5
22277 ac_status=$?
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
22280 { ac_try='test -s conftest$ac_exeext'
22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282 (eval $ac_try) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; }; then
22286 ac_cv_lib_ipc_shmat=yes
22287else
22288 echo "$as_me: failed program was:" >&5
22289sed 's/^/| /' conftest.$ac_ext >&5
22290
22291ac_cv_lib_ipc_shmat=no
22292fi
22293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22294LIBS=$ac_check_lib_save_LIBS
22295fi
22296echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22297echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22298if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22300fi
22301
d558c907 22302 fi
90dd450c 22303 fi
3a922bb4 22304
90dd450c 22305 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22306 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22307 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22308 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22309 # check for ICE first), but we must link in the order -lSM -lICE or
22310 # we get undefined symbols. So assume we have SM if we have ICE.
22311 # These have to be linked with before -lX11, unlike the other
22312 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22313 # John Interrante, Karl Berry
22314 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22315echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22316if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318else
22319 ac_check_lib_save_LIBS=$LIBS
f09359cf 22320LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22321cat >conftest.$ac_ext <<_ACEOF
22322#line $LINENO "configure"
22323/* confdefs.h. */
22324_ACEOF
22325cat confdefs.h >>conftest.$ac_ext
22326cat >>conftest.$ac_ext <<_ACEOF
22327/* end confdefs.h. */
22328
90dd450c 22329/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22330#ifdef __cplusplus
22331extern "C"
22332#endif
90dd450c 22333/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22334 builtin and then its argument prototype would still apply. */
22335char IceConnectionNumber ();
22336int
22337main ()
22338{
22339IceConnectionNumber ();
22340 ;
22341 return 0;
22342}
22343_ACEOF
22344rm -f conftest.$ac_objext conftest$ac_exeext
22345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346 (eval $ac_link) 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try='test -s conftest$ac_exeext'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356 ac_cv_lib_ICE_IceConnectionNumber=yes
22357else
22358 echo "$as_me: failed program was:" >&5
22359sed 's/^/| /' conftest.$ac_ext >&5
22360
22361ac_cv_lib_ICE_IceConnectionNumber=no
22362fi
22363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22364LIBS=$ac_check_lib_save_LIBS
22365fi
22366echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22367echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22368if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22369 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22370fi
10f2d63a 22371
e6cc62c6 22372 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22373
22374fi
22375
8284b0c5 22376
90dd450c 22377 if test "$no_x" = "yes"; then
e6cc62c6
VS
22378 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22379echo "$as_me: error: X11 not found" >&2;}
22380 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22381 fi
22382
22383 GUI_TK_LIBRARY="$X_LIBS"
22384 TOOLKIT_INCLUDE="$X_CFLAGS"
22385 AFMINSTALL=afminstall
22386 COMPILED_X_PROGRAM=0
22387
21d1c967 22388 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22389 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22390echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22391 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22392 echo "$as_me:$LINENO: result: not found" >&5
22393echo "${ECHO_T}not found" >&6
22394 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22395echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22396 { (exit 1); exit 1; }; }
90dd450c 22397 else
e6cc62c6
VS
22398 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22399echo "${ECHO_T}$MICROWIN" >&6
22400 cat >>confdefs.h <<\_ACEOF
21d1c967 22401#define wxUSE_NANOX 1
e6cc62c6 22402_ACEOF
21d1c967 22403
90dd450c
VZ
22404 fi
22405 fi
22406
22407 xpm_link=
e6cc62c6
VS
22408 echo "$as_me:$LINENO: checking for Xpm library" >&5
22409echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22410
90dd450c 22411ac_find_libraries=
2b5f62a0 22412for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22413 do
22414 for ac_extension in a so sl dylib; do
22415 if test -f "$ac_dir/libXpm.$ac_extension"; then
22416 ac_find_libraries=$ac_dir
22417 break 2
22418 fi
22419 done
22420 done
22421
22422 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22423
90dd450c
VZ
22424 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22425 result=$?
22426 if test $result = 0; then
22427 ac_path_to_link=""
22428 else
22429 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22430 fi
90dd450c 22431
21d1c967
GD
22432 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22433 xpm_link=" -lXpm"
e6cc62c6 22434 cat >>confdefs.h <<\_ACEOF
21d1c967 22435#define wxHAVE_LIB_XPM 1
e6cc62c6 22436_ACEOF
90dd450c 22437
e6cc62c6
VS
22438 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22439echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22440 else
e6cc62c6
VS
22441 cat >conftest.$ac_ext <<_ACEOF
22442#line $LINENO "configure"
22443/* confdefs.h. */
22444_ACEOF
22445cat confdefs.h >>conftest.$ac_ext
22446cat >>conftest.$ac_ext <<_ACEOF
22447/* end confdefs.h. */
90dd450c 22448
21d1c967 22449 #include <X11/xpm.h>
e6cc62c6
VS
22450
22451int
22452main ()
22453{
6f72b082 22454
21d1c967
GD
22455 int version;
22456 version = XpmLibraryVersion();
e6cc62c6
VS
22457
22458 ;
22459 return 0;
22460}
22461_ACEOF
22462rm -f conftest.$ac_objext
22463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22464 (eval $ac_compile) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
22468 { ac_try='test -s conftest.$ac_objext'
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474
21d1c967 22475 xpm_link=" -lXpm"
e6cc62c6 22476 cat >>confdefs.h <<\_ACEOF
21d1c967 22477#define wxHAVE_LIB_XPM 1
e6cc62c6 22478_ACEOF
90dd450c 22479
e6cc62c6
VS
22480 echo "$as_me:$LINENO: result: found in default search path" >&5
22481echo "${ECHO_T}found in default search path" >&6
21d1c967 22482 COMPILED_X_PROGRAM=0
e6cc62c6 22483
21d1c967 22484else
e6cc62c6
VS
22485 echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
22488
22489 echo "$as_me:$LINENO: result: no" >&5
22490echo "${ECHO_T}no" >&6
22491 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22492echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22493
22494
6f72b082 22495fi
e6cc62c6 22496rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22497 fi
90dd450c 22498
e6cc62c6
VS
22499 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22500echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22501if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22503else
e6cc62c6 22504 ac_check_lib_save_LIBS=$LIBS
f7f78039 22505LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22506cat >conftest.$ac_ext <<_ACEOF
22507#line $LINENO "configure"
22508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
22512/* end confdefs.h. */
22513
f7f78039 22514/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22515#ifdef __cplusplus
22516extern "C"
22517#endif
f7f78039 22518/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22519 builtin and then its argument prototype would still apply. */
22520char XShapeQueryExtension ();
22521int
22522main ()
22523{
22524XShapeQueryExtension ();
22525 ;
22526 return 0;
22527}
22528_ACEOF
22529rm -f conftest.$ac_objext conftest$ac_exeext
22530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22531 (eval $ac_link) 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); } &&
22535 { ac_try='test -s conftest$ac_exeext'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }; then
22541 ac_cv_lib_Xext_XShapeQueryExtension=yes
22542else
22543 echo "$as_me: failed program was:" >&5
22544sed 's/^/| /' conftest.$ac_ext >&5
22545
22546ac_cv_lib_Xext_XShapeQueryExtension=no
22547fi
22548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22549LIBS=$ac_check_lib_save_LIBS
22550fi
22551echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22552echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22553if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22554
f7f78039
MB
22555 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22556 wxHAVE_XEXT_LIB=1
e6cc62c6 22557
f7f78039
MB
22558fi
22559
22560
2b5f62a0 22561 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22562
2b5f62a0 22563 succeeded=no
90dd450c 22564
2b5f62a0
VZ
22565 if test -z "$PKG_CONFIG"; then
22566 # Extract the first word of "pkg-config", so it can be a program name with args.
22567set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22568echo "$as_me:$LINENO: checking for $ac_word" >&5
22569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22570if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22572else
e6cc62c6
VS
22573 case $PKG_CONFIG in
22574 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22576 ;;
2b5f62a0 22577 *)
e6cc62c6
VS
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579for as_dir in $PATH
22580do
22581 IFS=$as_save_IFS
22582 test -z "$as_dir" && as_dir=.
22583 for ac_exec_ext in '' $ac_executable_extensions; do
22584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22585 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22587 break 2
22588 fi
22589done
22590done
22591
2b5f62a0
VZ
22592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22593 ;;
22594esac
22595fi
e6cc62c6
VS
22596PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22597
2b5f62a0 22598if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22599 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22600echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22601else
e6cc62c6
VS
22602 echo "$as_me:$LINENO: result: no" >&5
22603echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22604fi
22605
22606 fi
22607
22608 if test "$PKG_CONFIG" = "no" ; then
22609 echo "*** The pkg-config script could not be found. Make sure it is"
22610 echo "*** in your path, or set the PKG_CONFIG environment variable"
22611 echo "*** to the full path to pkg-config."
22612 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22613 else
22614 PKG_CONFIG_MIN_VERSION=0.9.0
22615 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22616 echo "$as_me:$LINENO: checking for pangox" >&5
22617echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22618
22619 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22620 echo "$as_me:$LINENO: result: yes" >&5
22621echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22622 succeeded=yes
22623
e6cc62c6
VS
22624 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22625echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22626 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22627 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22628echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22629
e6cc62c6
VS
22630 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22631echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22632 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22633 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22634echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22635 else
22636 PANGOX_CFLAGS=""
22637 PANGOX_LIBS=""
e6cc62c6 22638 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22639 ## do set a variable so people can do so.
22640 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22641
2b5f62a0
VZ
22642 fi
22643
e6cc62c6
VS
22644
22645
2b5f62a0
VZ
22646 else
22647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22649 fi
22650 fi
22651
22652 if test $succeeded = yes; then
e6cc62c6 22653
2b5f62a0 22654 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22655 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22656
2b5f62a0 22657 else
e6cc62c6
VS
22658
22659 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22660echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22661 { (exit 1); exit 1; }; }
22662
22663
2b5f62a0
VZ
22664 fi
22665
e6cc62c6 22666
2b5f62a0
VZ
22667 succeeded=no
22668
22669 if test -z "$PKG_CONFIG"; then
22670 # Extract the first word of "pkg-config", so it can be a program name with args.
22671set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22672echo "$as_me:$LINENO: checking for $ac_word" >&5
22673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22674if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22675 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22676else
e6cc62c6
VS
22677 case $PKG_CONFIG in
22678 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22679 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22680 ;;
2b5f62a0 22681 *)
e6cc62c6
VS
22682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22683for as_dir in $PATH
22684do
22685 IFS=$as_save_IFS
22686 test -z "$as_dir" && as_dir=.
22687 for ac_exec_ext in '' $ac_executable_extensions; do
22688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22689 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22691 break 2
22692 fi
22693done
22694done
22695
2b5f62a0
VZ
22696 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22697 ;;
22698esac
22699fi
e6cc62c6
VS
22700PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22701
2b5f62a0 22702if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22703 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22704echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22705else
e6cc62c6
VS
22706 echo "$as_me:$LINENO: result: no" >&5
22707echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22708fi
22709
22710 fi
22711
22712 if test "$PKG_CONFIG" = "no" ; then
22713 echo "*** The pkg-config script could not be found. Make sure it is"
22714 echo "*** in your path, or set the PKG_CONFIG environment variable"
22715 echo "*** to the full path to pkg-config."
22716 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22717 else
22718 PKG_CONFIG_MIN_VERSION=0.9.0
22719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22720 echo "$as_me:$LINENO: checking for pangoft2" >&5
22721echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22722
22723 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22724 echo "$as_me:$LINENO: result: yes" >&5
22725echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22726 succeeded=yes
22727
e6cc62c6
VS
22728 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22729echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22730 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22731 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22732echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22733
e6cc62c6
VS
22734 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22735echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22736 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22737 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22738echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22739 else
22740 PANGOFT2_CFLAGS=""
22741 PANGOFT2_LIBS=""
e6cc62c6 22742 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22743 ## do set a variable so people can do so.
22744 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22745
2b5f62a0
VZ
22746 fi
22747
e6cc62c6
VS
22748
22749
2b5f62a0
VZ
22750 else
22751 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22752 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22753 fi
22754 fi
22755
22756 if test $succeeded = yes; then
e6cc62c6 22757
2b5f62a0 22758 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22759 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22760
2b5f62a0 22761 else
e6cc62c6
VS
22762
22763 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22764echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22765 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22766
22767
2b5f62a0
VZ
22768 fi
22769
e6cc62c6 22770
2b5f62a0
VZ
22771 succeeded=no
22772
22773 if test -z "$PKG_CONFIG"; then
22774 # Extract the first word of "pkg-config", so it can be a program name with args.
22775set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22776echo "$as_me:$LINENO: checking for $ac_word" >&5
22777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22778if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22780else
e6cc62c6
VS
22781 case $PKG_CONFIG in
22782 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22784 ;;
2b5f62a0 22785 *)
e6cc62c6
VS
22786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22787for as_dir in $PATH
22788do
22789 IFS=$as_save_IFS
22790 test -z "$as_dir" && as_dir=.
22791 for ac_exec_ext in '' $ac_executable_extensions; do
22792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22795 break 2
22796 fi
22797done
22798done
22799
2b5f62a0
VZ
22800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22801 ;;
22802esac
22803fi
e6cc62c6
VS
22804PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22805
2b5f62a0 22806if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22807 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22808echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22809else
e6cc62c6
VS
22810 echo "$as_me:$LINENO: result: no" >&5
22811echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22812fi
22813
22814 fi
22815
22816 if test "$PKG_CONFIG" = "no" ; then
22817 echo "*** The pkg-config script could not be found. Make sure it is"
22818 echo "*** in your path, or set the PKG_CONFIG environment variable"
22819 echo "*** to the full path to pkg-config."
22820 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22821 else
22822 PKG_CONFIG_MIN_VERSION=0.9.0
22823 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22824 echo "$as_me:$LINENO: checking for pangoxft" >&5
22825echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22826
22827 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22828 echo "$as_me:$LINENO: result: yes" >&5
22829echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22830 succeeded=yes
22831
e6cc62c6
VS
22832 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22833echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22834 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22835 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22836echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22837
e6cc62c6
VS
22838 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22839echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22840 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22841 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22842echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22843 else
22844 PANGOXFT_CFLAGS=""
22845 PANGOXFT_LIBS=""
e6cc62c6 22846 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22847 ## do set a variable so people can do so.
22848 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22849
2b5f62a0
VZ
22850 fi
22851
e6cc62c6
VS
22852
22853
2b5f62a0
VZ
22854 else
22855 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22856 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22857 fi
22858 fi
22859
22860 if test $succeeded = yes; then
e6cc62c6 22861
2b5f62a0 22862 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22863 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22864
2b5f62a0 22865 else
e6cc62c6
VS
22866
22867 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22868echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22869
22870
2b5f62a0
VZ
22871 fi
22872
22873 fi
22874
22875 wxUSE_UNIVERSAL="yes"
22876
22877 if test "$wxUSE_NANOX" = "yes"; then
22878 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22879 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
22880 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22881 else
22882 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22883 fi
22884
22885 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22886 TOOLKIT=X11
22887 GUIDIST=X11_DIST
22888 fi
22889
21d1c967
GD
22890 if test "$wxUSE_MOTIF" = 1; then
22891 if test "$no_x" = yes; then
22892 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22893
22894cat >>confdefs.h <<\_ACEOF
21d1c967 22895#define X_DISPLAY_MISSING 1
e6cc62c6 22896_ACEOF
21d1c967
GD
22897
22898 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22899else
22900 if test -n "$x_includes"; then
22901 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22902 fi
22903
21d1c967
GD
22904 # It would also be nice to do this for all -L options, not just this one.
22905 if test -n "$x_libraries"; then
22906 X_LIBS="$X_LIBS -L$x_libraries"
22907 # For Solaris; some versions of Sun CC require a space after -R and
22908 # others require no space. Words are not sufficient . . . .
e6cc62c6 22909 case `(uname -sr) 2>/dev/null` in
21d1c967 22910 "SunOS 5"*)
e6cc62c6
VS
22911 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22912echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22913 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22914 cat >conftest.$ac_ext <<_ACEOF
22915#line $LINENO "configure"
22916/* confdefs.h. */
22917_ACEOF
22918cat confdefs.h >>conftest.$ac_ext
22919cat >>conftest.$ac_ext <<_ACEOF
22920/* end confdefs.h. */
22921
22922int
22923main ()
22924{
21d1c967 22925
e6cc62c6
VS
22926 ;
22927 return 0;
22928}
22929_ACEOF
22930rm -f conftest.$ac_objext conftest$ac_exeext
22931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22932 (eval $ac_link) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try='test -s conftest$ac_exeext'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
21d1c967 22942 ac_R_nospace=yes
698dcdb6 22943else
e6cc62c6
VS
22944 echo "$as_me: failed program was:" >&5
22945sed 's/^/| /' conftest.$ac_ext >&5
22946
22947ac_R_nospace=no
10f2d63a 22948fi
e6cc62c6 22949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22950 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22951 echo "$as_me:$LINENO: result: no" >&5
22952echo "${ECHO_T}no" >&6
21d1c967
GD
22953 X_LIBS="$X_LIBS -R$x_libraries"
22954 else
22955 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22956 cat >conftest.$ac_ext <<_ACEOF
22957#line $LINENO "configure"
22958/* confdefs.h. */
22959_ACEOF
22960cat confdefs.h >>conftest.$ac_ext
22961cat >>conftest.$ac_ext <<_ACEOF
22962/* end confdefs.h. */
22963
22964int
22965main ()
22966{
f0c87536 22967
e6cc62c6
VS
22968 ;
22969 return 0;
22970}
22971_ACEOF
22972rm -f conftest.$ac_objext conftest$ac_exeext
22973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22974 (eval $ac_link) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
22978 { ac_try='test -s conftest$ac_exeext'
22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980 (eval $ac_try) 2>&5
22981 ac_status=$?
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; }; then
21d1c967
GD
22984 ac_R_space=yes
22985else
e6cc62c6
VS
22986 echo "$as_me: failed program was:" >&5
22987sed 's/^/| /' conftest.$ac_ext >&5
22988
22989ac_R_space=no
21d1c967 22990fi
e6cc62c6 22991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22992 if test $ac_R_space = yes; then
e6cc62c6
VS
22993 echo "$as_me:$LINENO: result: yes" >&5
22994echo "${ECHO_T}yes" >&6
21d1c967
GD
22995 X_LIBS="$X_LIBS -R $x_libraries"
22996 else
e6cc62c6
VS
22997 echo "$as_me:$LINENO: result: neither works" >&5
22998echo "${ECHO_T}neither works" >&6
21d1c967
GD
22999 fi
23000 fi
e6cc62c6 23001 LIBS=$ac_xsave_LIBS
21d1c967
GD
23002 esac
23003 fi
90dd450c 23004
21d1c967
GD
23005 # Check for system-dependent libraries X programs must link with.
23006 # Do this before checking for the system-independent R6 libraries
23007 # (-lICE), since we may need -lsocket or whatever for X linking.
23008
23009 if test "$ISC" = yes; then
23010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23011 else
e6cc62c6
VS
23012 # Martyn Johnson says this is needed for Ultrix, if the X
23013 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23014 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23015 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23016 cat >conftest.$ac_ext <<_ACEOF
23017#line $LINENO "configure"
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023
247f5006 23024/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23025#ifdef __cplusplus
23026extern "C"
23027#endif
247f5006 23028/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23029 builtin and then its argument prototype would still apply. */
23030char XOpenDisplay ();
23031int
23032main ()
23033{
23034XOpenDisplay ();
23035 ;
23036 return 0;
23037}
23038_ACEOF
23039rm -f conftest.$ac_objext conftest$ac_exeext
23040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041 (eval $ac_link) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } &&
23045 { ac_try='test -s conftest$ac_exeext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 :
23052else
23053 echo "$as_me: failed program was:" >&5
23054sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23055
e6cc62c6
VS
23056echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23057echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23058if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23060else
e6cc62c6
VS
23061 ac_check_lib_save_LIBS=$LIBS
23062LIBS="-ldnet $LIBS"
23063cat >conftest.$ac_ext <<_ACEOF
23064#line $LINENO "configure"
23065/* confdefs.h. */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h. */
a0b9e27f 23070
e6cc62c6
VS
23071/* Override any gcc2 internal prototype to avoid an error. */
23072#ifdef __cplusplus
23073extern "C"
23074#endif
23075/* We use char because int might match the return type of a gcc2
23076 builtin and then its argument prototype would still apply. */
23077char dnet_ntoa ();
23078int
23079main ()
23080{
23081dnet_ntoa ();
23082 ;
23083 return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext conftest$ac_exeext
23087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088 (eval $ac_link) 2>&5
23089 ac_status=$?
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
23092 { ac_try='test -s conftest$ac_exeext'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; }; then
23098 ac_cv_lib_dnet_dnet_ntoa=yes
23099else
23100 echo "$as_me: failed program was:" >&5
23101sed 's/^/| /' conftest.$ac_ext >&5
23102
23103ac_cv_lib_dnet_dnet_ntoa=no
23104fi
23105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23106LIBS=$ac_check_lib_save_LIBS
23107fi
23108echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23109echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23110if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23111 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23112fi
0fb0dd83 23113
21d1c967 23114 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23115 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23116echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23117if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23119else
e6cc62c6 23120 ac_check_lib_save_LIBS=$LIBS
21d1c967 23121LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
23122cat >conftest.$ac_ext <<_ACEOF
23123#line $LINENO "configure"
23124/* confdefs.h. */
23125_ACEOF
23126cat confdefs.h >>conftest.$ac_ext
23127cat >>conftest.$ac_ext <<_ACEOF
23128/* end confdefs.h. */
23129
21d1c967 23130/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23131#ifdef __cplusplus
23132extern "C"
23133#endif
21d1c967 23134/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23135 builtin and then its argument prototype would still apply. */
23136char dnet_ntoa ();
23137int
23138main ()
23139{
23140dnet_ntoa ();
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145rm -f conftest.$ac_objext conftest$ac_exeext
23146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147 (eval $ac_link) 2>&5
23148 ac_status=$?
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } &&
23151 { ac_try='test -s conftest$ac_exeext'
23152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153 (eval $ac_try) 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); }; }; then
23157 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23158else
23159 echo "$as_me: failed program was:" >&5
23160sed 's/^/| /' conftest.$ac_ext >&5
23161
23162ac_cv_lib_dnet_stub_dnet_ntoa=no
23163fi
23164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23165LIBS=$ac_check_lib_save_LIBS
23166fi
23167echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23168echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23169if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23170 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23171fi
23172
21d1c967 23173 fi
e6cc62c6
VS
23174fi
23175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23176 LIBS="$ac_xsave_LIBS"
90dd450c 23177
21d1c967
GD
23178 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23179 # to get the SysV transport functions.
e6cc62c6 23180 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23181 # needs -lnsl.
23182 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23183 # on Irix 5.2, according to T.E. Dickey.
23184 # The functions gethostbyname, getservbyname, and inet_addr are
23185 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23186 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23187echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23188if test "${ac_cv_func_gethostbyname+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190else
23191 cat >conftest.$ac_ext <<_ACEOF
23192#line $LINENO "configure"
23193/* confdefs.h. */
23194_ACEOF
23195cat confdefs.h >>conftest.$ac_ext
23196cat >>conftest.$ac_ext <<_ACEOF
23197/* end confdefs.h. */
21d1c967 23198/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23199 which can conflict with char gethostbyname (); below.
23200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23201 <limits.h> exists even on freestanding compilers. */
23202#ifdef __STDC__
23203# include <limits.h>
23204#else
23205# include <assert.h>
23206#endif
21d1c967 23207/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23208#ifdef __cplusplus
23209extern "C"
23210{
23211#endif
21d1c967 23212/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23213 builtin and then its argument prototype would still apply. */
23214char gethostbyname ();
21d1c967
GD
23215/* The GNU C library defines this for functions which it implements
23216 to always fail with ENOSYS. Some functions are actually named
23217 something starting with __ and the normal name is an alias. */
23218#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23219choke me
23220#else
e6cc62c6
VS
23221char (*f) () = gethostbyname;
23222#endif
23223#ifdef __cplusplus
23224}
21d1c967 23225#endif
90dd450c 23226
e6cc62c6
VS
23227int
23228main ()
23229{
23230return f != gethostbyname;
23231 ;
23232 return 0;
23233}
23234_ACEOF
23235rm -f conftest.$ac_objext conftest$ac_exeext
23236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23237 (eval $ac_link) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); } &&
23241 { ac_try='test -s conftest$ac_exeext'
23242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243 (eval $ac_try) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; }; then
23247 ac_cv_func_gethostbyname=yes
23248else
23249 echo "$as_me: failed program was:" >&5
23250sed 's/^/| /' conftest.$ac_ext >&5
23251
23252ac_cv_func_gethostbyname=no
23253fi
23254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23255fi
23256echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23257echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23258
21d1c967 23259 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23260 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23261echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23262if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23264else
e6cc62c6 23265 ac_check_lib_save_LIBS=$LIBS
21d1c967 23266LIBS="-lnsl $LIBS"
e6cc62c6
VS
23267cat >conftest.$ac_ext <<_ACEOF
23268#line $LINENO "configure"
23269/* confdefs.h. */
23270_ACEOF
23271cat confdefs.h >>conftest.$ac_ext
23272cat >>conftest.$ac_ext <<_ACEOF
23273/* end confdefs.h. */
23274
21d1c967 23275/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23276#ifdef __cplusplus
23277extern "C"
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 gethostbyname ();
23282int
23283main ()
23284{
23285gethostbyname ();
23286 ;
23287 return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext conftest$ac_exeext
23291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23292 (eval $ac_link) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try='test -s conftest$ac_exeext'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_lib_nsl_gethostbyname=yes
23303else
23304 echo "$as_me: failed program was:" >&5
23305sed 's/^/| /' conftest.$ac_ext >&5
23306
23307ac_cv_lib_nsl_gethostbyname=no
23308fi
23309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23310LIBS=$ac_check_lib_save_LIBS
23311fi
23312echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23313echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23314if test $ac_cv_lib_nsl_gethostbyname = yes; then
23315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23316fi
247f5006 23317
e6cc62c6
VS
23318 if test $ac_cv_lib_nsl_gethostbyname = no; then
23319 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23320echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23321if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23323else
e6cc62c6
VS
23324 ac_check_lib_save_LIBS=$LIBS
23325LIBS="-lbsd $LIBS"
23326cat >conftest.$ac_ext <<_ACEOF
23327#line $LINENO "configure"
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
23333
23334/* Override any gcc2 internal prototype to avoid an error. */
23335#ifdef __cplusplus
23336extern "C"
23337#endif
23338/* We use char because int might match the return type of a gcc2
23339 builtin and then its argument prototype would still apply. */
23340char gethostbyname ();
23341int
23342main ()
23343{
23344gethostbyname ();
23345 ;
23346 return 0;
23347}
23348_ACEOF
23349rm -f conftest.$ac_objext conftest$ac_exeext
23350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23351 (eval $ac_link) 2>&5
23352 ac_status=$?
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } &&
23355 { ac_try='test -s conftest$ac_exeext'
23356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23357 (eval $ac_try) 2>&5
23358 ac_status=$?
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361 ac_cv_lib_bsd_gethostbyname=yes
23362else
23363 echo "$as_me: failed program was:" >&5
23364sed 's/^/| /' conftest.$ac_ext >&5
23365
23366ac_cv_lib_bsd_gethostbyname=no
23367fi
23368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23369LIBS=$ac_check_lib_save_LIBS
23370fi
23371echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23372echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23373if test $ac_cv_lib_bsd_gethostbyname = yes; then
23374 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23375fi
90dd450c 23376
e6cc62c6 23377 fi
90dd450c
VZ
23378 fi
23379
21d1c967
GD
23380 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23381 # socket/setsockopt and other routines are undefined under SCO ODT
23382 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23383 # on later versions), says Simon Leinen: it contains gethostby*
23384 # variants that don't use the name server (or something). -lsocket
23385 # must be given before -lnsl if both are needed. We assume that
23386 # if connect needs -lnsl, so does gethostbyname.
23387 echo "$as_me:$LINENO: checking for connect" >&5
23388echo $ECHO_N "checking for connect... $ECHO_C" >&6
23389if test "${ac_cv_func_connect+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23391else
23392 cat >conftest.$ac_ext <<_ACEOF
23393#line $LINENO "configure"
23394/* confdefs.h. */
23395_ACEOF
23396cat confdefs.h >>conftest.$ac_ext
23397cat >>conftest.$ac_ext <<_ACEOF
23398/* end confdefs.h. */
21d1c967 23399/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23400 which can conflict with char connect (); below.
23401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23402 <limits.h> exists even on freestanding compilers. */
23403#ifdef __STDC__
23404# include <limits.h>
23405#else
23406# include <assert.h>
23407#endif
21d1c967 23408/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23409#ifdef __cplusplus
23410extern "C"
23411{
23412#endif
21d1c967 23413/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23414 builtin and then its argument prototype would still apply. */
23415char connect ();
21d1c967
GD
23416/* The GNU C library defines this for functions which it implements
23417 to always fail with ENOSYS. Some functions are actually named
23418 something starting with __ and the normal name is an alias. */
23419#if defined (__stub_connect) || defined (__stub___connect)
23420choke me
23421#else
e6cc62c6
VS
23422char (*f) () = connect;
23423#endif
23424#ifdef __cplusplus
23425}
21d1c967 23426#endif
90dd450c 23427
e6cc62c6
VS
23428int
23429main ()
23430{
23431return f != connect;
23432 ;
23433 return 0;
23434}
23435_ACEOF
23436rm -f conftest.$ac_objext conftest$ac_exeext
23437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23438 (eval $ac_link) 2>&5
23439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } &&
23442 { ac_try='test -s conftest$ac_exeext'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23448 ac_cv_func_connect=yes
23449else
23450 echo "$as_me: failed program was:" >&5
23451sed 's/^/| /' conftest.$ac_ext >&5
23452
23453ac_cv_func_connect=no
23454fi
23455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23456fi
23457echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23458echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23459
21d1c967 23460 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23461 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23462echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23463if test "${ac_cv_lib_socket_connect+set}" = set; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23465else
e6cc62c6 23466 ac_check_lib_save_LIBS=$LIBS
21d1c967 23467LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23468cat >conftest.$ac_ext <<_ACEOF
23469#line $LINENO "configure"
23470/* confdefs.h. */
23471_ACEOF
23472cat confdefs.h >>conftest.$ac_ext
23473cat >>conftest.$ac_ext <<_ACEOF
23474/* end confdefs.h. */
23475
21d1c967 23476/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23477#ifdef __cplusplus
23478extern "C"
23479#endif
21d1c967 23480/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23481 builtin and then its argument prototype would still apply. */
23482char connect ();
23483int
23484main ()
23485{
23486connect ();
23487 ;
23488 return 0;
23489}
23490_ACEOF
23491rm -f conftest.$ac_objext conftest$ac_exeext
23492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23493 (eval $ac_link) 2>&5
23494 ac_status=$?
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } &&
23497 { ac_try='test -s conftest$ac_exeext'
23498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_cv_lib_socket_connect=yes
23504else
23505 echo "$as_me: failed program was:" >&5
23506sed 's/^/| /' conftest.$ac_ext >&5
23507
23508ac_cv_lib_socket_connect=no
23509fi
23510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23511LIBS=$ac_check_lib_save_LIBS
23512fi
23513echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23514echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23515if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23516 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23517fi
90dd450c 23518
21d1c967 23519 fi
90dd450c 23520
e6cc62c6
VS
23521 # Guillermo Gomez says -lposix is necessary on A/UX.
23522 echo "$as_me:$LINENO: checking for remove" >&5
23523echo $ECHO_N "checking for remove... $ECHO_C" >&6
23524if test "${ac_cv_func_remove+set}" = set; then
23525 echo $ECHO_N "(cached) $ECHO_C" >&6
23526else
23527 cat >conftest.$ac_ext <<_ACEOF
23528#line $LINENO "configure"
23529/* confdefs.h. */
23530_ACEOF
23531cat confdefs.h >>conftest.$ac_ext
23532cat >>conftest.$ac_ext <<_ACEOF
23533/* end confdefs.h. */
21d1c967 23534/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23535 which can conflict with char remove (); below.
23536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23537 <limits.h> exists even on freestanding compilers. */
23538#ifdef __STDC__
23539# include <limits.h>
23540#else
23541# include <assert.h>
23542#endif
21d1c967 23543/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23544#ifdef __cplusplus
23545extern "C"
23546{
23547#endif
21d1c967 23548/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23549 builtin and then its argument prototype would still apply. */
23550char remove ();
21d1c967
GD
23551/* The GNU C library defines this for functions which it implements
23552 to always fail with ENOSYS. Some functions are actually named
23553 something starting with __ and the normal name is an alias. */
23554#if defined (__stub_remove) || defined (__stub___remove)
23555choke me
23556#else
e6cc62c6
VS
23557char (*f) () = remove;
23558#endif
23559#ifdef __cplusplus
23560}
21d1c967 23561#endif
90dd450c 23562
e6cc62c6
VS
23563int
23564main ()
23565{
23566return f != remove;
23567 ;
23568 return 0;
23569}
23570_ACEOF
23571rm -f conftest.$ac_objext conftest$ac_exeext
23572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573 (eval $ac_link) 2>&5
23574 ac_status=$?
23575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576 (exit $ac_status); } &&
23577 { ac_try='test -s conftest$ac_exeext'
23578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579 (eval $ac_try) 2>&5
23580 ac_status=$?
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); }; }; then
23583 ac_cv_func_remove=yes
23584else
23585 echo "$as_me: failed program was:" >&5
23586sed 's/^/| /' conftest.$ac_ext >&5
23587
23588ac_cv_func_remove=no
23589fi
23590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23591fi
23592echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23593echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23594
21d1c967 23595 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23596 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23597echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23598if test "${ac_cv_lib_posix_remove+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23600else
e6cc62c6 23601 ac_check_lib_save_LIBS=$LIBS
21d1c967 23602LIBS="-lposix $LIBS"
e6cc62c6
VS
23603cat >conftest.$ac_ext <<_ACEOF
23604#line $LINENO "configure"
23605/* confdefs.h. */
23606_ACEOF
23607cat confdefs.h >>conftest.$ac_ext
23608cat >>conftest.$ac_ext <<_ACEOF
23609/* end confdefs.h. */
23610
21d1c967 23611/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23612#ifdef __cplusplus
23613extern "C"
23614#endif
21d1c967 23615/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23616 builtin and then its argument prototype would still apply. */
23617char remove ();
23618int
23619main ()
23620{
23621remove ();
23622 ;
23623 return 0;
23624}
23625_ACEOF
23626rm -f conftest.$ac_objext conftest$ac_exeext
23627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23628 (eval $ac_link) 2>&5
23629 ac_status=$?
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } &&
23632 { ac_try='test -s conftest$ac_exeext'
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; }; then
23638 ac_cv_lib_posix_remove=yes
23639else
23640 echo "$as_me: failed program was:" >&5
23641sed 's/^/| /' conftest.$ac_ext >&5
23642
23643ac_cv_lib_posix_remove=no
23644fi
23645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23646LIBS=$ac_check_lib_save_LIBS
23647fi
23648echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23649echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23650if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23652fi
19bc6aad 23653
90dd450c 23654 fi
19bc6aad 23655
21d1c967 23656 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23657 echo "$as_me:$LINENO: checking for shmat" >&5
23658echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23659if test "${ac_cv_func_shmat+set}" = set; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23661else
23662 cat >conftest.$ac_ext <<_ACEOF
23663#line $LINENO "configure"
23664/* confdefs.h. */
23665_ACEOF
23666cat confdefs.h >>conftest.$ac_ext
23667cat >>conftest.$ac_ext <<_ACEOF
23668/* end confdefs.h. */
21d1c967 23669/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23670 which can conflict with char shmat (); below.
23671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23672 <limits.h> exists even on freestanding compilers. */
23673#ifdef __STDC__
23674# include <limits.h>
23675#else
23676# include <assert.h>
23677#endif
21d1c967 23678/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23679#ifdef __cplusplus
23680extern "C"
23681{
23682#endif
21d1c967 23683/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23684 builtin and then its argument prototype would still apply. */
23685char shmat ();
21d1c967
GD
23686/* The GNU C library defines this for functions which it implements
23687 to always fail with ENOSYS. Some functions are actually named
23688 something starting with __ and the normal name is an alias. */
23689#if defined (__stub_shmat) || defined (__stub___shmat)
23690choke me
23691#else
e6cc62c6
VS
23692char (*f) () = shmat;
23693#endif
23694#ifdef __cplusplus
23695}
21d1c967 23696#endif
90dd450c 23697
e6cc62c6
VS
23698int
23699main ()
23700{
23701return f != shmat;
23702 ;
23703 return 0;
23704}
23705_ACEOF
23706rm -f conftest.$ac_objext conftest$ac_exeext
23707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23708 (eval $ac_link) 2>&5
23709 ac_status=$?
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
23712 { ac_try='test -s conftest$ac_exeext'
23713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23714 (eval $ac_try) 2>&5
23715 ac_status=$?
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); }; }; then
23718 ac_cv_func_shmat=yes
23719else
23720 echo "$as_me: failed program was:" >&5
23721sed 's/^/| /' conftest.$ac_ext >&5
23722
23723ac_cv_func_shmat=no
23724fi
23725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23726fi
23727echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23728echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23729
21d1c967 23730 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23731 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23732echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23733if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23735else
e6cc62c6 23736 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23737LIBS="-lipc $LIBS"
e6cc62c6
VS
23738cat >conftest.$ac_ext <<_ACEOF
23739#line $LINENO "configure"
23740/* confdefs.h. */
23741_ACEOF
23742cat confdefs.h >>conftest.$ac_ext
23743cat >>conftest.$ac_ext <<_ACEOF
23744/* end confdefs.h. */
23745
5c6fa7d2 23746/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23747#ifdef __cplusplus
23748extern "C"
23749#endif
5c6fa7d2 23750/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23751 builtin and then its argument prototype would still apply. */
23752char shmat ();
23753int
23754main ()
23755{
23756shmat ();
23757 ;
23758 return 0;
23759}
23760_ACEOF
23761rm -f conftest.$ac_objext conftest$ac_exeext
23762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23763 (eval $ac_link) 2>&5
23764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } &&
23767 { ac_try='test -s conftest$ac_exeext'
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; }; then
23773 ac_cv_lib_ipc_shmat=yes
23774else
23775 echo "$as_me: failed program was:" >&5
23776sed 's/^/| /' conftest.$ac_ext >&5
23777
23778ac_cv_lib_ipc_shmat=no
23779fi
23780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23781LIBS=$ac_check_lib_save_LIBS
23782fi
23783echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23784echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23785if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23787fi
90dd450c 23788
90dd450c 23789 fi
21d1c967 23790 fi
10f2d63a 23791
21d1c967 23792 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23793 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23794 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23795 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23796 # check for ICE first), but we must link in the order -lSM -lICE or
23797 # we get undefined symbols. So assume we have SM if we have ICE.
23798 # These have to be linked with before -lX11, unlike the other
23799 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23800 # John Interrante, Karl Berry
23801 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23802echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23803if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805else
23806 ac_check_lib_save_LIBS=$LIBS
f09359cf 23807LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23808cat >conftest.$ac_ext <<_ACEOF
23809#line $LINENO "configure"
23810/* confdefs.h. */
23811_ACEOF
23812cat confdefs.h >>conftest.$ac_ext
23813cat >>conftest.$ac_ext <<_ACEOF
23814/* end confdefs.h. */
23815
21d1c967 23816/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23817#ifdef __cplusplus
23818extern "C"
23819#endif
21d1c967 23820/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23821 builtin and then its argument prototype would still apply. */
23822char IceConnectionNumber ();
23823int
23824main ()
23825{
23826IceConnectionNumber ();
23827 ;
23828 return 0;
23829}
23830_ACEOF
23831rm -f conftest.$ac_objext conftest$ac_exeext
23832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23833 (eval $ac_link) 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } &&
23837 { ac_try='test -s conftest$ac_exeext'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 ac_cv_lib_ICE_IceConnectionNumber=yes
23844else
23845 echo "$as_me: failed program was:" >&5
23846sed 's/^/| /' conftest.$ac_ext >&5
23847
23848ac_cv_lib_ICE_IceConnectionNumber=no
23849fi
23850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23851LIBS=$ac_check_lib_save_LIBS
23852fi
23853echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23854echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23855if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23856 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23857fi
21d1c967 23858
e6cc62c6 23859 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23860
10f2d63a
VZ
23861fi
23862
8284b0c5 23863
21d1c967 23864 if test "$no_x" = "yes"; then
e6cc62c6
VS
23865 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23866echo "$as_me: error: X11 not found" >&2;}
23867 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23868 fi
23869
2b5f62a0
VZ
23870 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23871 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23872 AFMINSTALL=afminstall
23873 COMPILED_X_PROGRAM=0
23874
e6cc62c6
VS
23875 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23876echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23877
21d1c967 23878ac_find_includes=
2b5f62a0 23879for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23880 do
23881 if test -f "$ac_dir/Xm/Xm.h"; then
23882 ac_find_includes=$ac_dir
23883 break
23884 fi
23885 done
23886
23887 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23888 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23889echo "${ECHO_T}found in $ac_find_includes" >&6
23890
2b5f62a0 23891 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23892 ac_path_to_include=""
23893 else
2b5f62a0
VZ
23894 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23895 result=$?
23896 if test $result = 0; then
23897 ac_path_to_include=""
23898 else
23899 ac_path_to_include=" -I$ac_find_includes"
23900 fi
dd0e4a90
VZ
23901 fi
23902
23903 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23904 else
e6cc62c6
VS
23905 cat >conftest.$ac_ext <<_ACEOF
23906#line $LINENO "configure"
23907/* confdefs.h. */
23908_ACEOF
23909cat confdefs.h >>conftest.$ac_ext
23910cat >>conftest.$ac_ext <<_ACEOF
23911/* end confdefs.h. */
21d1c967
GD
23912
23913 #include <Xm/Xm.h>
e6cc62c6
VS
23914
23915int
23916main ()
23917{
21d1c967
GD
23918
23919 int version;
23920 version = xmUseVersion;
e6cc62c6
VS
23921
23922 ;
23923 return 0;
23924}
23925_ACEOF
23926rm -f conftest.$ac_objext
23927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23928 (eval $ac_compile) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } &&
23932 { ac_try='test -s conftest.$ac_objext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938
23939 echo "$as_me:$LINENO: result: found in default search path" >&5
23940echo "${ECHO_T}found in default search path" >&6
21d1c967 23941 COMPILED_X_PROGRAM=1
e6cc62c6 23942
10f2d63a 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: no" >&5
23949echo "${ECHO_T}no" >&6
23950 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23951echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23952 { (exit 1); exit 1; }; }
23953
23954
10f2d63a 23955fi
e6cc62c6 23956rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23957 fi
10f2d63a 23958
21d1c967 23959 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23960 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23961echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23962
21d1c967 23963ac_find_libraries=
2b5f62a0 23964for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23965 do
23966 for ac_extension in a so sl dylib; do
23967 if test -f "$ac_dir/libXm.$ac_extension"; then
23968 ac_find_libraries=$ac_dir
23969 break 2
23970 fi
23971 done
23972 done
23973
23974 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23975 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23976echo "${ECHO_T}found at $ac_find_libraries" >&6
23977
21d1c967 23978
21d1c967
GD
23979 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23980 result=$?
23981 if test $result = 0; then
23982 ac_path_to_link=""
23983 else
23984 ac_path_to_link=" -L$ac_find_libraries"
23985 fi
23986
21d1c967 23987 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23988 else
dd0e4a90
VZ
23989 save_CFLAGS=$CFLAGS
23990 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23991
e6cc62c6
VS
23992 cat >conftest.$ac_ext <<_ACEOF
23993#line $LINENO "configure"
23994/* confdefs.h. */
23995_ACEOF
23996cat confdefs.h >>conftest.$ac_ext
23997cat >>conftest.$ac_ext <<_ACEOF
23998/* end confdefs.h. */
21d1c967
GD
23999
24000 #include <Xm/Xm.h>
e6cc62c6
VS
24001
24002int
24003main ()
24004{
21d1c967
GD
24005
24006 int version;
24007 version = xmUseVersion;
e6cc62c6
VS
24008
24009 ;
24010 return 0;
24011}
24012_ACEOF
24013rm -f conftest.$ac_objext
24014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24015 (eval $ac_compile) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } &&
24019 { ac_try='test -s conftest.$ac_objext'
24020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 (exit $ac_status); }; }; then
24025
24026 echo "$as_me:$LINENO: result: found in default search path" >&5
24027echo "${ECHO_T}found in default search path" >&6
21d1c967 24028 COMPILED_X_PROGRAM=1
e6cc62c6 24029
d836ee96 24030else
e6cc62c6
VS
24031 echo "$as_me: failed program was:" >&5
24032sed 's/^/| /' conftest.$ac_ext >&5
24033
24034
24035 echo "$as_me:$LINENO: result: no" >&5
24036echo "${ECHO_T}no" >&6
24037 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24038echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24039 { (exit 1); exit 1; }; }
24040
24041
d836ee96 24042fi
e6cc62c6 24043rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24044
24045 CFLAGS=$save_CFLAGS
21d1c967
GD
24046 fi
24047 fi
24048
24049 xpm_link=
e6cc62c6
VS
24050 echo "$as_me:$LINENO: checking for Xpm library" >&5
24051echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24052
21d1c967 24053ac_find_libraries=
2b5f62a0 24054for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24055 do
24056 for ac_extension in a so sl dylib; do
24057 if test -f "$ac_dir/libXpm.$ac_extension"; then
24058 ac_find_libraries=$ac_dir
24059 break 2
24060 fi
24061 done
24062 done
24063
24064 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24065
21d1c967
GD
24066 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24067 result=$?
24068 if test $result = 0; then
24069 ac_path_to_link=""
24070 else
24071 ac_path_to_link=" -L$ac_find_libraries"
24072 fi
24073
24074 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 24075
21d1c967 24076 xpm_link=" -lXpm"
e6cc62c6 24077 cat >>confdefs.h <<\_ACEOF
21d1c967 24078#define wxHAVE_LIB_XPM 1
e6cc62c6 24079_ACEOF
90dd450c 24080
e6cc62c6
VS
24081 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24082echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 24083 else
dd0e4a90
VZ
24084 save_CFLAGS=$CFLAGS
24085 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24086
e6cc62c6
VS
24087 cat >conftest.$ac_ext <<_ACEOF
24088#line $LINENO "configure"
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
21d1c967
GD
24094
24095 #include <X11/xpm.h>
e6cc62c6
VS
24096
24097int
24098main ()
24099{
21d1c967
GD
24100
24101 int version;
24102 version = XpmLibraryVersion();
e6cc62c6
VS
24103
24104 ;
24105 return 0;
24106}
24107_ACEOF
24108rm -f conftest.$ac_objext
24109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24110 (eval $ac_compile) 2>&5
24111 ac_status=$?
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } &&
24114 { ac_try='test -s conftest.$ac_objext'
24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116 (eval $ac_try) 2>&5
24117 ac_status=$?
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; }; then
24120
21d1c967 24121 xpm_link=" -lXpm"
e6cc62c6 24122 cat >>confdefs.h <<\_ACEOF
21d1c967 24123#define wxHAVE_LIB_XPM 1
e6cc62c6 24124_ACEOF
21d1c967 24125
e6cc62c6
VS
24126 echo "$as_me:$LINENO: result: found in default search path" >&5
24127echo "${ECHO_T}found in default search path" >&6
21d1c967 24128 COMPILED_X_PROGRAM=0
e6cc62c6 24129
d836ee96 24130else
e6cc62c6
VS
24131 echo "$as_me: failed program was:" >&5
24132sed 's/^/| /' conftest.$ac_ext >&5
24133
24134
24135 echo "$as_me:$LINENO: result: no" >&5
24136echo "${ECHO_T}no" >&6
24137 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24138echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24139
24140
d836ee96 24141fi
e6cc62c6 24142rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24143
24144 CFLAGS=$save_CFLAGS
21d1c967
GD
24145 fi
24146
e6cc62c6
VS
24147 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24148echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24149 libp_link=""
24150 libsm_ice_link=""
24151 libs_found=0
24152 for libp in "" " -lXp"; do
24153 if test "$libs_found" = "0"; then
7015ef3a 24154 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24155 if test "$libs_found" = "0"; then
6a30f1c8
MB
24156 save_LIBS="$LIBS"
24157 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24158 save_CFLAGS=$CFLAGS
24159 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24160
e6cc62c6
VS
24161 cat >conftest.$ac_ext <<_ACEOF
24162#line $LINENO "configure"
24163/* confdefs.h. */
24164_ACEOF
24165cat confdefs.h >>conftest.$ac_ext
24166cat >>conftest.$ac_ext <<_ACEOF
24167/* end confdefs.h. */
17234b26 24168
6a30f1c8
MB
24169 #include <Xm/Xm.h>
24170 #include <Xm/List.h>
e6cc62c6
VS
24171
24172int
24173main ()
24174{
6a30f1c8
MB
24175
24176 XmString string = NULL;
24177 Widget w = NULL;
24178 int position = 0;
24179 XmListAddItem(w, string, position);
e6cc62c6
VS
24180
24181 ;
24182 return 0;
24183}
24184_ACEOF
24185rm -f conftest.$ac_objext conftest$ac_exeext
24186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187 (eval $ac_link) 2>&5
24188 ac_status=$?
24189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190 (exit $ac_status); } &&
24191 { ac_try='test -s conftest$ac_exeext'
24192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; }; then
24197
6a30f1c8
MB
24198 libp_link="$libp"
24199 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24200 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24201echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24202 libs_found=1
e6cc62c6 24203
6a30f1c8 24204else
e6cc62c6
VS
24205 echo "$as_me: failed program was:" >&5
24206sed 's/^/| /' conftest.$ac_ext >&5
24207
24208
24209
6a30f1c8 24210fi
e6cc62c6 24211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24212
6a30f1c8 24213 LIBS="$save_LIBS"
dd0e4a90 24214 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24215 fi
24216 done
24217 fi
24218 done
24219
24220 if test "$libs_found" = "0"; then
e6cc62c6
VS
24221 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24222echo "${ECHO_T}can't find the right libraries" >&6
24223 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24224echo "$as_me: error: can't link a simple motif program" >&2;}
24225 { (exit 1); exit 1; }; }
6a30f1c8
MB
24226 fi
24227
da494b40
MB
24228 save_CFLAGS=$CFLAGS
24229 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24230 echo "$as_me:$LINENO: checking for Motif 2" >&5
24231echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24232 cat >conftest.$ac_ext <<_ACEOF
24233#line $LINENO "configure"
24234/* confdefs.h. */
24235_ACEOF
24236cat confdefs.h >>conftest.$ac_ext
24237cat >>conftest.$ac_ext <<_ACEOF
24238/* end confdefs.h. */
da494b40
MB
24239
24240 #include <Xm/Xm.h>
e6cc62c6
VS
24241
24242int
24243main ()
24244{
da494b40
MB
24245
24246 #if XmVersion < 2000
24247 #error "Not Motif 2"
24248 #endif
e6cc62c6
VS
24249
24250 ;
24251 return 0;
24252}
24253_ACEOF
24254rm -f conftest.$ac_objext
24255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24256 (eval $ac_compile) 2>&5
24257 ac_status=$?
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); } &&
24260 { ac_try='test -s conftest.$ac_objext'
24261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); }; }; then
24266
24267 cat >>confdefs.h <<\_ACEOF
da494b40 24268#define __WXMOTIF20__ 1
e6cc62c6
VS
24269_ACEOF
24270
24271 echo "$as_me:$LINENO: result: found" >&5
24272echo "${ECHO_T}found" >&6
da494b40 24273
da494b40 24274else
e6cc62c6
VS
24275 echo "$as_me: failed program was:" >&5
24276sed 's/^/| /' conftest.$ac_ext >&5
24277
24278
24279 cat >>confdefs.h <<\_ACEOF
da494b40 24280#define __WXMOTIF20__ 0
e6cc62c6
VS
24281_ACEOF
24282
24283 echo "$as_me:$LINENO: result: not found" >&5
24284echo "${ECHO_T}not found" >&6
da494b40 24285
da494b40 24286fi
e6cc62c6 24287rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24288 CFLAGS=$save_CFLAGS
24289
6a30f1c8 24290 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24291 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24292 TOOLKIT=MOTIF
24293 GUIDIST=MOTIF_DIST
f7f78039
MB
24294 wxHAVE_XEXT_LIB=1
24295 fi
24296
24297 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24298 test "$wxHAVE_XEXT_LIB" = 1; then
24299 save_CFLAGS="$CFLAGS"
24300 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24301
e6cc62c6
VS
24302 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24303echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24304 cat >conftest.$ac_ext <<_ACEOF
24305#line $LINENO "configure"
24306/* confdefs.h. */
24307_ACEOF
24308cat confdefs.h >>conftest.$ac_ext
24309cat >>conftest.$ac_ext <<_ACEOF
24310/* end confdefs.h. */
24311
24312 #include <X11/Xlib.h>
f7f78039 24313 #include <X11/extensions/shape.h>
e6cc62c6
VS
24314
24315int
24316main ()
24317{
f7f78039
MB
24318
24319 int dummy1, dummy2;
24320 XShapeQueryExtension((Display*)NULL,
24321 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24322
24323 ;
24324 return 0;
24325}
24326_ACEOF
24327rm -f conftest.$ac_objext
24328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329 (eval $ac_compile) 2>&5
24330 ac_status=$?
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -s conftest.$ac_objext'
24334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335 (eval $ac_try) 2>&5
24336 ac_status=$?
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); }; }; then
24339
24340 cat >>confdefs.h <<\_ACEOF
f7f78039 24341#define HAVE_XSHAPE 1
e6cc62c6
VS
24342_ACEOF
24343
24344 echo "$as_me:$LINENO: result: found" >&5
24345echo "${ECHO_T}found" >&6
f7f78039 24346
f7f78039 24347else
e6cc62c6
VS
24348 echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351
24352 echo "$as_me:$LINENO: result: not found" >&5
24353echo "${ECHO_T}not found" >&6
24354
f7f78039 24355fi
e6cc62c6 24356rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24357 CFLAGS="$save_CFLAGS"
21d1c967
GD
24358 fi
24359
24360 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
24361 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
24362echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
24363 if test "$GCC" = yes; then
24364 echo "$as_me:$LINENO: result: gcc" >&5
24365echo "${ECHO_T}gcc" >&6
24366 CPPFLAGS_PASCAL="-fpascal-strings"
24367 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
24368 echo "$as_me:$LINENO: result: xlc" >&5
24369echo "${ECHO_T}xlc" >&6
24370 CPPFLAGS_PASCAL="-qmacpstr"
24371 else
24372 echo "$as_me:$LINENO: result: none" >&5
24373echo "${ECHO_T}none" >&6
24374 fi
24375
24376 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24377
0c98a14e 24378 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24379 TOOLKIT=MAC
24380 GUIDIST=MACX_DIST
cf615ebb 24381 WXBASEPORT="_carbon"
21d1c967
GD
24382 fi
24383
ac0c4cc3
DE
24384 if test "$wxUSE_COCOA" = 1; then
24385 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24386 TOOLKIT=COCOA
24387 GUIDIST=COCOA_DIST
24388 fi
24389
21d1c967
GD
24390 if test "$wxUSE_PM" = 1; then
24391 TOOLKIT=PM
24392 GUIDIST=GTK_DIST
24393 fi
24394
24395 if test "$TOOLKIT" = "PM" ; then
24396 TOOLKIT_DIR="os2"
24397 else
24398 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24399 fi
24400
24401 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24402
24403 if test "$wxUSE_UNIVERSAL" = "yes"; then
24404 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24405
24406 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24407 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24408
24409 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24410 if test "$wxUSE_X11" = 1; then
24411 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24412 else
24413 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24414 fi
24415 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24416 WIDGET_SET=univ
24417 else
24418 ALL_OBJECTS="\$(GUIOBJS)"
24419 ALL_SOURCES="\$(ALL_SOURCES)"
24420 ALL_HEADERS="\$(ALL_HEADERS)"
24421 fi
24422
24423 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24424
24425 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24426 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24427 fi
24428
24429 if test "$wxUSE_HTML" = "yes"; then
24430 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24431 fi
24432
24433 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24434 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24435 fi
24436 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24437 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24438 fi
24439 if test "$wxUSE_LIBPNG" = "builtin" ; then
24440 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24441 fi
24442
24443 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24444 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24445else
21d1c967
GD
24446 USE_GUI=0
24447
24448 TOOLKIT_DIR="base"
24449
24450 if test "$USE_WIN32" = 1 ; then
24451 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24452 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24453
24454 TOOLKIT="MSW"
24455 else
24456 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24457 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24458 fi
24459
24460 ALL_SOURCES="\$(ALL_SOURCES)"
24461 ALL_HEADERS="\$(ALL_HEADERS)"
24462
24463 PORT_FILES="\${top_srcdir}/src/files.lst"
24464
24465 GUIDIST="BASE_DIST"
24466 DISTDIR="wxBase"
d836ee96
VZ
24467fi
24468
8284b0c5 24469
8647bec6
RG
24470
24471
24472IODBC_C_SRC=""
24473
24474
24475if test "$TOOLKIT" != "MSW" ; then
24476
bb41dcbe 24477 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24478
bb41dcbe 24479 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24480 echo "$as_me:$LINENO: checking for sql.h" >&5
24481echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24482if test "${ac_cv_header_sql_h+set}" = set; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24484fi
24485echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24486echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24487else
24488 # Is the header compilable?
24489echo "$as_me:$LINENO: checking sql.h usability" >&5
24490echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24491cat >conftest.$ac_ext <<_ACEOF
24492#line $LINENO "configure"
24493/* confdefs.h. */
24494_ACEOF
24495cat confdefs.h >>conftest.$ac_ext
24496cat >>conftest.$ac_ext <<_ACEOF
24497/* end confdefs.h. */
24498$ac_includes_default
8647bec6 24499#include <sql.h>
e6cc62c6
VS
24500_ACEOF
24501rm -f conftest.$ac_objext
24502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24503 (eval $ac_compile) 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } &&
24507 { ac_try='test -s conftest.$ac_objext'
24508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24509 (eval $ac_try) 2>&5
24510 ac_status=$?
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); }; }; then
24513 ac_header_compiler=yes
24514else
24515 echo "$as_me: failed program was:" >&5
24516sed 's/^/| /' conftest.$ac_ext >&5
24517
24518ac_header_compiler=no
24519fi
24520rm -f conftest.$ac_objext conftest.$ac_ext
24521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24522echo "${ECHO_T}$ac_header_compiler" >&6
24523
24524# Is the header present?
24525echo "$as_me:$LINENO: checking sql.h presence" >&5
24526echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24527cat >conftest.$ac_ext <<_ACEOF
24528#line $LINENO "configure"
24529/* confdefs.h. */
24530_ACEOF
24531cat confdefs.h >>conftest.$ac_ext
24532cat >>conftest.$ac_ext <<_ACEOF
24533/* end confdefs.h. */
24534#include <sql.h>
24535_ACEOF
24536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } >/dev/null; then
24544 if test -s conftest.err; then
24545 ac_cpp_err=$ac_c_preproc_warn_flag
24546 else
24547 ac_cpp_err=
24548 fi
24549else
24550 ac_cpp_err=yes
24551fi
24552if test -z "$ac_cpp_err"; then
24553 ac_header_preproc=yes
24554else
24555 echo "$as_me: failed program was:" >&5
24556sed 's/^/| /' conftest.$ac_ext >&5
24557
24558 ac_header_preproc=no
24559fi
24560rm -f conftest.err conftest.$ac_ext
24561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24562echo "${ECHO_T}$ac_header_preproc" >&6
24563
24564# So? What about this header?
24565case $ac_header_compiler:$ac_header_preproc in
24566 yes:no )
24567 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24568echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24569 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24570echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24571 (
24572 cat <<\_ASBOX
24573## ------------------------------------ ##
24574## Report this to bug-autoconf@gnu.org. ##
24575## ------------------------------------ ##
24576_ASBOX
24577 ) |
24578 sed "s/^/$as_me: WARNING: /" >&2
24579 ;;
24580 no:yes )
24581 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24582echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24584echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24586echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24587 (
24588 cat <<\_ASBOX
24589## ------------------------------------ ##
24590## Report this to bug-autoconf@gnu.org. ##
24591## ------------------------------------ ##
24592_ASBOX
24593 ) |
24594 sed "s/^/$as_me: WARNING: /" >&2
24595 ;;
24596esac
24597echo "$as_me:$LINENO: checking for sql.h" >&5
24598echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24599if test "${ac_cv_header_sql_h+set}" = set; then
24600 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24601else
e6cc62c6
VS
24602 ac_cv_header_sql_h=$ac_header_preproc
24603fi
24604echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24605echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24606
bb41dcbe
VS
24607fi
24608if test $ac_cv_header_sql_h = yes; then
24609 found_sql_h=1
8647bec6
RG
24610fi
24611
e6cc62c6 24612
bb41dcbe 24613 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
24614 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
24615echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
24616if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 24617 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24618else
bb41dcbe 24619 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24620LIBS="-liodbc $LIBS"
e6cc62c6
VS
24621cat >conftest.$ac_ext <<_ACEOF
24622#line $LINENO "configure"
24623/* confdefs.h. */
24624_ACEOF
24625cat confdefs.h >>conftest.$ac_ext
24626cat >>conftest.$ac_ext <<_ACEOF
24627/* end confdefs.h. */
24628
8647bec6 24629/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24630#ifdef __cplusplus
24631extern "C"
24632#endif
8647bec6 24633/* We use char because int might match the return type of a gcc2
e6cc62c6 24634 builtin and then its argument prototype would still apply. */
e46d2a18 24635char SQLAllocEnv ();
e6cc62c6
VS
24636int
24637main ()
24638{
e46d2a18 24639SQLAllocEnv ();
e6cc62c6
VS
24640 ;
24641 return 0;
24642}
24643_ACEOF
24644rm -f conftest.$ac_objext conftest$ac_exeext
24645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24646 (eval $ac_link) 2>&5
24647 ac_status=$?
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
24650 { ac_try='test -s conftest$ac_exeext'
24651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); }; }; then
e46d2a18 24656 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 24657else
e6cc62c6
VS
24658 echo "$as_me: failed program was:" >&5
24659sed 's/^/| /' conftest.$ac_ext >&5
24660
e46d2a18 24661ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 24662fi
e6cc62c6 24663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24664LIBS=$ac_check_lib_save_LIBS
24665fi
e46d2a18
VS
24666echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
24667echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
24668if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24669 ODBC_LINK=" -liodbc"
24670else
24671
e46d2a18
VS
24672 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
24673echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
24674if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
24676else
24677 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24678LIBS="-lunixodbc $LIBS"
bb41dcbe 24679cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24680#line $LINENO "configure"
24681/* confdefs.h. */
24682_ACEOF
24683cat confdefs.h >>conftest.$ac_ext
24684cat >>conftest.$ac_ext <<_ACEOF
24685/* end confdefs.h. */
24686
8647bec6 24687/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24688#ifdef __cplusplus
24689extern "C"
24690#endif
8647bec6 24691/* We use char because int might match the return type of a gcc2
e6cc62c6 24692 builtin and then its argument prototype would still apply. */
e46d2a18 24693char SQLAllocEnv ();
e6cc62c6
VS
24694int
24695main ()
24696{
e46d2a18 24697SQLAllocEnv ();
e6cc62c6
VS
24698 ;
24699 return 0;
24700}
24701_ACEOF
24702rm -f conftest.$ac_objext conftest$ac_exeext
24703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24704 (eval $ac_link) 2>&5
24705 ac_status=$?
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } &&
24708 { ac_try='test -s conftest$ac_exeext'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; }; then
e46d2a18 24714 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 24715else
e6cc62c6
VS
24716 echo "$as_me: failed program was:" >&5
24717sed 's/^/| /' conftest.$ac_ext >&5
24718
e46d2a18 24719ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 24720fi
e6cc62c6 24721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24722LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24723fi
e46d2a18
VS
24724echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
24725echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
24726if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24727 ODBC_LINK=" -lunixodbc"
24728else
24729
e46d2a18
VS
24730 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
24731echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
24732if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24734else
24735 ac_check_lib_save_LIBS=$LIBS
e46d2a18 24736LIBS="-lodbc $LIBS"
bb41dcbe
VS
24737cat >conftest.$ac_ext <<_ACEOF
24738#line $LINENO "configure"
24739/* confdefs.h. */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h. */
e6cc62c6 24744
bb41dcbe
VS
24745/* Override any gcc2 internal prototype to avoid an error. */
24746#ifdef __cplusplus
24747extern "C"
24748#endif
24749/* We use char because int might match the return type of a gcc2
24750 builtin and then its argument prototype would still apply. */
e46d2a18 24751char SQLAllocEnv ();
bb41dcbe
VS
24752int
24753main ()
24754{
e46d2a18 24755SQLAllocEnv ();
bb41dcbe
VS
24756 ;
24757 return 0;
24758}
24759_ACEOF
24760rm -f conftest.$ac_objext conftest$ac_exeext
24761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24762 (eval $ac_link) 2>&5
24763 ac_status=$?
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } &&
24766 { ac_try='test -s conftest$ac_exeext'
24767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24768 (eval $ac_try) 2>&5
24769 ac_status=$?
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); }; }; then
e46d2a18 24772 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 24773else
bb41dcbe
VS
24774 echo "$as_me: failed program was:" >&5
24775sed 's/^/| /' conftest.$ac_ext >&5
24776
e46d2a18 24777ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe
VS
24778fi
24779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24780LIBS=$ac_check_lib_save_LIBS
24781fi
e46d2a18
VS
24782echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
24783echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
24784if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
24785 ODBC_LINK=" -lodbc"
24786fi
24787
24788
24789fi
e6cc62c6 24790
e6cc62c6 24791
8647bec6 24792fi
e6cc62c6 24793
fd3d7534 24794 fi
bb41dcbe
VS
24795 if test "x$ODBC_LINK" = "x" ; then
24796 if test "$wxUSE_ODBC" = "sys" ; then
24797 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24798echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24799 { (exit 1); exit 1; }; }
24800 else
24801 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24802echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24803 wxUSE_ODBC=builtin
24804 fi
24805 else
24806 wxUSE_ODBC=sys
8647bec6 24807 fi
8647bec6 24808 fi
bb41dcbe
VS
24809 if test "$wxUSE_ODBC" != "no" ; then
24810 cat >>confdefs.h <<\_ACEOF
24811#define wxUSE_ODBC 1
24812_ACEOF
e6cc62c6 24813
0bdb08e7
VS
24814 if test "$wxUSE_ODBC" = "builtin" ; then
24815 cat >>confdefs.h <<\_ACEOF
24816#define wxUSE_BUILTIN_IODBC 1
24817_ACEOF
24818
24819 fi
bb41dcbe
VS
24820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24821
24822 WXODBCFLAG="-D_IODBC_"
24823 fi
6232543b 24824fi
21d1c967
GD
24825
24826if test "$wxUSE_REGEX" = "builtin" ; then
24827 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24828fi
21d1c967
GD
24829if test "$wxUSE_ZLIB" = "builtin" ; then
24830 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24831fi
24832
8284b0c5 24833
4d264332 24834USE_OPENGL=0
21d1c967 24835if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24836 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24837 OPENGL_LIBS="-framework OpenGL -framework AGL"
24838 elif test "$wxUSE_MSW" = 1; then
24839 OPENGL_LIBS="-lopengl32 -lglu32"
24840 else
01aa5863
VS
24841
24842
24843ac_find_includes=
24844for ac_dir in $SEARCH_INCLUDE /usr/include;
24845 do
24846 if test -f "$ac_dir/GL/gl.h"; then
24847 ac_find_includes=$ac_dir
24848 break
24849 fi
24850 done
24851
24852 if test "$ac_find_includes" != "" ; then
24853 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24854echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24855
24856 if test "x$ac_find_includes" = "x/usr/include"; then
24857 ac_path_to_include=""
24858 else
24859 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24860 result=$?
24861 if test $result = 0; then
24862 ac_path_to_include=""
24863 else
24864 ac_path_to_include=" -I$ac_find_includes"
24865 fi
24866 fi
24867
24868 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24869 fi
24870
e6cc62c6
VS
24871 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24872 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24873echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24874if test "${ac_cv_header_GL_gl_h+set}" = set; then
24875 echo $ECHO_N "(cached) $ECHO_C" >&6
24876fi
24877echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24878echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24879else
24880 # Is the header compilable?
24881echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24882echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24883cat >conftest.$ac_ext <<_ACEOF
24884#line $LINENO "configure"
24885/* confdefs.h. */
24886_ACEOF
24887cat confdefs.h >>conftest.$ac_ext
24888cat >>conftest.$ac_ext <<_ACEOF
24889/* end confdefs.h. */
24890$ac_includes_default
21d1c967 24891#include <GL/gl.h>
e6cc62c6
VS
24892_ACEOF
24893rm -f conftest.$ac_objext
24894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24895 (eval $ac_compile) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } &&
24899 { ac_try='test -s conftest.$ac_objext'
24900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24901 (eval $ac_try) 2>&5
24902 ac_status=$?
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; }; then
24905 ac_header_compiler=yes
24906else
24907 echo "$as_me: failed program was:" >&5
24908sed 's/^/| /' conftest.$ac_ext >&5
24909
24910ac_header_compiler=no
24911fi
24912rm -f conftest.$ac_objext conftest.$ac_ext
24913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24914echo "${ECHO_T}$ac_header_compiler" >&6
24915
24916# Is the header present?
24917echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24918echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24919cat >conftest.$ac_ext <<_ACEOF
24920#line $LINENO "configure"
24921/* confdefs.h. */
24922_ACEOF
24923cat confdefs.h >>conftest.$ac_ext
24924cat >>conftest.$ac_ext <<_ACEOF
24925/* end confdefs.h. */
24926#include <GL/gl.h>
24927_ACEOF
24928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24930 ac_status=$?
24931 grep -v '^ *+' conftest.er1 >conftest.err
24932 rm -f conftest.er1
24933 cat conftest.err >&5
24934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } >/dev/null; then
24936 if test -s conftest.err; then
24937 ac_cpp_err=$ac_c_preproc_warn_flag
24938 else
24939 ac_cpp_err=
24940 fi
24941else
24942 ac_cpp_err=yes
24943fi
24944if test -z "$ac_cpp_err"; then
24945 ac_header_preproc=yes
24946else
24947 echo "$as_me: failed program was:" >&5
24948sed 's/^/| /' conftest.$ac_ext >&5
24949
24950 ac_header_preproc=no
24951fi
24952rm -f conftest.err conftest.$ac_ext
24953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24954echo "${ECHO_T}$ac_header_preproc" >&6
24955
24956# So? What about this header?
24957case $ac_header_compiler:$ac_header_preproc in
24958 yes:no )
24959 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24960echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24961 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24962echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24963 (
24964 cat <<\_ASBOX
24965## ------------------------------------ ##
24966## Report this to bug-autoconf@gnu.org. ##
24967## ------------------------------------ ##
24968_ASBOX
24969 ) |
24970 sed "s/^/$as_me: WARNING: /" >&2
24971 ;;
24972 no:yes )
24973 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24974echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24975 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24976echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24977 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24978echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24979 (
24980 cat <<\_ASBOX
24981## ------------------------------------ ##
24982## Report this to bug-autoconf@gnu.org. ##
24983## ------------------------------------ ##
24984_ASBOX
24985 ) |
24986 sed "s/^/$as_me: WARNING: /" >&2
24987 ;;
24988esac
24989echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24990echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24991if test "${ac_cv_header_GL_gl_h+set}" = set; then
24992 echo $ECHO_N "(cached) $ECHO_C" >&6
24993else
24994 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24995fi
e6cc62c6
VS
24996echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24997echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24998
698dcdb6 24999fi
e6cc62c6
VS
25000if test $ac_cv_header_GL_gl_h = yes; then
25001
89e3b3e4
VZ
25002 found_gl=0
25003
e6cc62c6
VS
25004 echo "$as_me:$LINENO: checking for -lGL" >&5
25005echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25006
21d1c967 25007ac_find_libraries=
2b5f62a0 25008for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25009 do
25010 for ac_extension in a so sl dylib; do
25011 if test -f "$ac_dir/libGL.$ac_extension"; then
25012 ac_find_libraries=$ac_dir
25013 break 2
25014 fi
25015 done
25016 done
25017
25018 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25019
21d1c967
GD
25020 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25021 result=$?
25022 if test $result = 0; then
25023 ac_path_to_link=""
25024 else
25025 ac_path_to_link=" -L$ac_find_libraries"
25026 fi
25027
89e3b3e4
VZ
25028 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25029 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25030 fi
89e3b3e4 25031
e6cc62c6 25032
89e3b3e4
VZ
25033ac_find_libraries=
25034for ac_dir in $SEARCH_LIB /usr/lib;
25035 do
25036 for ac_extension in a so sl dylib; do
25037 if test -f "$ac_dir/libGLU.$ac_extension"; then
25038 ac_find_libraries=$ac_dir
25039 break 2
25040 fi
25041 done
25042 done
25043
25044 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25045
89e3b3e4
VZ
25046 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25047 result=$?
25048 if test $result = 0; then
25049 ac_path_to_link=""
25050 else
25051 ac_path_to_link=" -L$ac_find_libraries"
25052 fi
25053
25054 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25055 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25056 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25057 fi
25058
25059 found_gl=1
25060 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25061 echo "$as_me:$LINENO: result: yes" >&5
25062echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25063 fi
25064 fi
25065
bb41dcbe 25066 if test "$found_gl" != 1; then
e6cc62c6
VS
25067 echo "$as_me:$LINENO: result: no" >&5
25068echo "${ECHO_T}no" >&6
25069 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25070echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25071
21d1c967 25072ac_find_libraries=
2b5f62a0 25073for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25074 do
25075 for ac_extension in a so sl dylib; do
25076 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25077 ac_find_libraries=$ac_dir
25078 break 2
25079 fi
25080 done
25081 done
25082
25083 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25084
21d1c967
GD
25085 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25086 result=$?
25087 if test $result = 0; then
25088 ac_path_to_link=""
25089 else
25090 ac_path_to_link=" -L$ac_find_libraries"
25091 fi
25092
25093 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25094 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25095 echo "$as_me:$LINENO: result: yes" >&5
25096echo "${ECHO_T}yes" >&6
21d1c967 25097 else
e6cc62c6
VS
25098 echo "$as_me:$LINENO: result: no" >&5
25099echo "${ECHO_T}no" >&6
21d1c967
GD
25100 fi
25101 fi
e6cc62c6 25102
5c6fa7d2 25103fi
52127426 25104
8284b0c5 25105
e6cc62c6 25106
21d1c967 25107 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25108 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25109echo "$as_me: error: OpenGL libraries not available" >&2;}
25110 { (exit 1); exit 1; }; }
21d1c967
GD
25111 fi
25112 fi
90dd450c 25113
21d1c967 25114 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25115 USE_OPENGL=1
e6cc62c6 25116 cat >>confdefs.h <<\_ACEOF
21d1c967 25117#define wxUSE_OPENGL 1
e6cc62c6 25118_ACEOF
21d1c967 25119
e6cc62c6 25120 cat >>confdefs.h <<\_ACEOF
21d1c967 25121#define wxUSE_GLCANVAS 1
e6cc62c6 25122_ACEOF
21d1c967 25123
520755bb 25124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25125 fi
10f2d63a 25126fi
21d1c967
GD
25127
25128if test -z "$TOOLKIT_VPATH" ; then
25129 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25130fi
21d1c967
GD
25131
25132if test -n "$TOOLKIT" ; then
25133 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25134fi
25135
fe0895cf 25136UNICODE=0
21d1c967
GD
25137lib_unicode_suffix=
25138if test "$wxUSE_UNICODE" = "yes"; then
25139 lib_unicode_suffix=u
fe0895cf 25140 UNICODE=1
90dd450c 25141fi
698dcdb6 25142
21d1c967 25143lib_debug_suffix=
6c67131a 25144DEBUG_FLAG=0
21d1c967
GD
25145if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25146 lib_debug_suffix=d
6c67131a
VS
25147 DEBUG_FLAG=1
25148fi
25149
25150DEBUG_INFO=0
25151if test "$wxUSE_DEBUG_INFO" = "yes"; then
25152 DEBUG_INFO=1
21d1c967 25153fi
698dcdb6 25154
1cbb95a2 25155WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25156
25157TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25158TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25159
25160if test "$cross_compiling" = "yes"; then
25161 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25162 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25163 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25164fi
25165
25166WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25167WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25168WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25169WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
25170
25171WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25172WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25173
25174WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25175WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25176WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25177WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25178
25179case "${host}" in
25180 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25181 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25182 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25183 ;;
25184
25185 *-*-darwin* )
e6cc62c6 25186
05159a27
GD
25187 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25188 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25189
25190 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25191 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25192 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25193 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25194
21d1c967 25195 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25196 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25197 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25198 fi
25199 ;;
25200esac
25201
25202WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25203WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25204
25205WXCONFIG_LIBS="-l${WX_LIBRARY}"
25206WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25207
25208if test "$wxUSE_OPENGL" = "yes"; then
25209 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25210 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25211fi
25212
8284b0c5
MB
25213
25214
21d1c967
GD
25215if test "$wxUSE_SHARED" = "yes"; then
25216 case "${host}" in
25217 *-pc-os2_emx | *-pc-os2-emx | \
25218 *-pc-msdosdjgpp )
25219 wxUSE_SHARED=no
e6cc62c6
VS
25220 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25221echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25222 ;;
25223 esac
25224fi
25225
fe0895cf 25226SHARED=0
2b5f62a0 25227if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25228 SHARED=1
2b5f62a0 25229
e6cc62c6 25230
2b5f62a0
VZ
25231 found_versioning=no
25232
e6cc62c6 25233
2b5f62a0 25234 if test $found_versioning = no ; then
e6cc62c6
VS
25235 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25236echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25237if test "${wx_cv_version_script+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25239else
e6cc62c6 25240
2b5f62a0
VZ
25241 echo "VER_1 { *; };" >conftest.sym
25242 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25243
2b5f62a0
VZ
25244 if { ac_try='
25245 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25246 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25249 ac_status=$?
25250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25252 if test -s conftest.stderr ; then
25253 wx_cv_version_script=no
25254 else
25255 wx_cv_version_script=yes
25256 fi
25257 else
25258 wx_cv_version_script=no
25259 fi
25260 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25261
e6cc62c6
VS
25262fi
25263echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25264echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25265 if test $wx_cv_version_script = yes ; then
e6cc62c6 25266 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25267 fi
25268 fi
21d1c967 25269
21d1c967 25270
21d1c967 25271 case "${host}" in
fe0895cf 25272 *-*-linux* | *-*-gnu* )
e6cc62c6 25273 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25274 ;;
21d1c967
GD
25275
25276 *-*-solaris2* )
25277 if test "$GCC" = yes ; then
25278 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25279
25280 saveLdflags="$LDFLAGS"
25281 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25282 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25283echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25284 cat >conftest.$ac_ext <<_ACEOF
25285#line $LINENO "configure"
25286/* confdefs.h. */
25287_ACEOF
25288cat confdefs.h >>conftest.$ac_ext
25289cat >>conftest.$ac_ext <<_ACEOF
25290/* end confdefs.h. */
25291
25292int
25293main ()
25294{
fe0895cf 25295
e6cc62c6
VS
25296 ;
25297 return 0;
25298}
25299_ACEOF
25300rm -f conftest.$ac_objext conftest$ac_exeext
25301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25302 (eval $ac_link) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } &&
25306 { ac_try='test -s conftest$ac_exeext'
25307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312
25313 echo "$as_me:$LINENO: result: yes" >&5
25314echo "${ECHO_T}yes" >&6
25315 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25316
25317else
25318 echo "$as_me: failed program was:" >&5
25319sed 's/^/| /' conftest.$ac_ext >&5
25320
25321
25322 echo "$as_me:$LINENO: result: no" >&5
25323echo "${ECHO_T}no" >&6
25324 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25325echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25326 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25327 cat >conftest.$ac_ext <<_ACEOF
25328#line $LINENO "configure"
25329/* confdefs.h. */
25330_ACEOF
25331cat confdefs.h >>conftest.$ac_ext
25332cat >>conftest.$ac_ext <<_ACEOF
25333/* end confdefs.h. */
25334
25335int
25336main ()
25337{
25338
25339 ;
25340 return 0;
25341}
25342_ACEOF
25343rm -f conftest.$ac_objext conftest$ac_exeext
25344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25345 (eval $ac_link) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -s conftest$ac_exeext'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355
25356 echo "$as_me:$LINENO: result: yes" >&5
25357echo "${ECHO_T}yes" >&6
25358 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25359else
25360 echo "$as_me: failed program was:" >&5
25361sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25362
fe0895cf 25363
e6cc62c6
VS
25364 echo "$as_me:$LINENO: result: no" >&5
25365echo "${ECHO_T}no" >&6
25366
fe0895cf 25367fi
e6cc62c6
VS
25368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25369
25370fi
25371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25372 LDFLAGS="$saveLdflags"
21d1c967
GD
25373 else
25374 SHARED_LD="${CXX} -G -o"
25375 PIC_FLAG="-KPIC"
e6cc62c6 25376 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25377 fi
25378 ;;
0f1bc9c2
VS
25379
25380 powerpc-*-darwin* )
ef0add05
VS
25381 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25382 cat <<EOF >change-install-names
25383#!/bin/sh
25384libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25385inst_cmd="install_name_tool "
25386for i in \${libnames} ; do
25387 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25388done
25389\${inst_cmd} \${3}
25390EOF
25391 chmod +x change-install-names
0f1bc9c2
VS
25392 ;;
25393
21d1c967
GD
25394 esac
25395
25396 if test "x$WX_TARGET_LIBRARY" = "x"; then
25397 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25398 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25399 fi
25400
25401 WX_TARGET_LIBRARY_TYPE="so"
25402 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25403fi
10f2d63a 25404
21d1c967
GD
25405if test "$wxUSE_SHARED" = "no"; then
25406
25407 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25408 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25409 fi
25410
ac0c4cc3 25411 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25412 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25413 fi
25414
25415 if test "$wxUSE_OPENGL" = "yes"; then
25416 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25417 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25418 else
25419 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25420 fi
25421
25422 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25423 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25424
25425 WX_TARGET_LIBRARY_TYPE="a"
25426 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25427
25428 STATIC_FLAG="yes"
25429else
25430 STATIC_FLAG="no"
90dd450c 25431fi
1e487827 25432
93fac604
VZ
25433MACRESCOMP="@#"
25434MACSETFILE="@#"
36825681 25435MACRESWXCONFIG="#"
21d1c967 25436if test "$wxUSE_MAC" = 1; then
e6cc62c6 25437 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25438 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25439 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25440 # Extract the first word of "Rez", so it can be a program name with args.
25441set dummy Rez; ac_word=$2
e6cc62c6
VS
25442echo "$as_me:$LINENO: checking for $ac_word" >&5
25443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25444if test "${ac_cv_prog_RESCOMP+set}" = set; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25446else
21d1c967
GD
25447 if test -n "$RESCOMP"; then
25448 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25449else
e6cc62c6
VS
25450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25451for as_dir in $PATH
25452do
25453 IFS=$as_save_IFS
25454 test -z "$as_dir" && as_dir=.
25455 for ac_exec_ext in '' $ac_executable_extensions; do
25456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25457 ac_cv_prog_RESCOMP="Rez"
25458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25459 break 2
25460 fi
25461done
25462done
25463
21d1c967 25464 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25465fi
b93d0d08 25466fi
e6cc62c6 25467RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25468if test -n "$RESCOMP"; then
e6cc62c6
VS
25469 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25470echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25471else
e6cc62c6
VS
25472 echo "$as_me:$LINENO: result: no" >&5
25473echo "${ECHO_T}no" >&6
90dd450c 25474fi
b93d0d08 25475
21d1c967
GD
25476 # Extract the first word of "DeRez", so it can be a program name with args.
25477set dummy DeRez; ac_word=$2
e6cc62c6
VS
25478echo "$as_me:$LINENO: checking for $ac_word" >&5
25479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25480if test "${ac_cv_prog_DEREZ+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25482else
21d1c967
GD
25483 if test -n "$DEREZ"; then
25484 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25485else
e6cc62c6
VS
25486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25487for as_dir in $PATH
25488do
25489 IFS=$as_save_IFS
25490 test -z "$as_dir" && as_dir=.
25491 for ac_exec_ext in '' $ac_executable_extensions; do
25492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25493 ac_cv_prog_DEREZ="DeRez"
25494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25495 break 2
25496 fi
25497done
25498done
25499
21d1c967 25500 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25501fi
90dd450c 25502fi
e6cc62c6 25503DEREZ=$ac_cv_prog_DEREZ
21d1c967 25504if test -n "$DEREZ"; then
e6cc62c6
VS
25505 echo "$as_me:$LINENO: result: $DEREZ" >&5
25506echo "${ECHO_T}$DEREZ" >&6
90dd450c 25507else
e6cc62c6
VS
25508 echo "$as_me:$LINENO: result: no" >&5
25509echo "${ECHO_T}no" >&6
3a922bb4 25510fi
698dcdb6 25511
36825681
GD
25512 # Extract the first word of "SetFile", so it can be a program name with args.
25513set dummy SetFile; ac_word=$2
e6cc62c6
VS
25514echo "$as_me:$LINENO: checking for $ac_word" >&5
25515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25516if test "${ac_cv_prog_SETFILE+set}" = set; then
25517 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25518else
25519 if test -n "$SETFILE"; then
25520 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25521else
e6cc62c6
VS
25522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25523for as_dir in $PATH
25524do
25525 IFS=$as_save_IFS
25526 test -z "$as_dir" && as_dir=.
25527 for ac_exec_ext in '' $ac_executable_extensions; do
25528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25529 ac_cv_prog_SETFILE="SetFile"
25530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25531 break 2
25532 fi
25533done
25534done
25535
36825681
GD
25536 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25537fi
25538fi
e6cc62c6 25539SETFILE=$ac_cv_prog_SETFILE
36825681 25540if test -n "$SETFILE"; then
e6cc62c6
VS
25541 echo "$as_me:$LINENO: result: $SETFILE" >&5
25542echo "${ECHO_T}$SETFILE" >&6
36825681 25543else
e6cc62c6
VS
25544 echo "$as_me:$LINENO: result: no" >&5
25545echo "${ECHO_T}no" >&6
36825681
GD
25546fi
25547
21d1c967 25548 MACOSX_BUNDLE="bundle"
36825681
GD
25549 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25550 MACSETFILE="\$(SETFILE)"
9711d31e 25551 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25552elif test "$wxUSE_COCOA" = 1; then
25553 # Extract the first word of "Rez", so it can be a program name with args.
25554set dummy Rez; ac_word=$2
e6cc62c6
VS
25555echo "$as_me:$LINENO: checking for $ac_word" >&5
25556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25557if test "${ac_cv_prog_RESCOMP+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25559else
25560 if test -n "$RESCOMP"; then
25561 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25562else
e6cc62c6
VS
25563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25564for as_dir in $PATH
25565do
25566 IFS=$as_save_IFS
25567 test -z "$as_dir" && as_dir=.
25568 for ac_exec_ext in '' $ac_executable_extensions; do
25569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25570 ac_cv_prog_RESCOMP="Rez"
25571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25572 break 2
25573 fi
25574done
25575done
25576
64440d77
DE
25577 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25578fi
25579fi
e6cc62c6 25580RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25581if test -n "$RESCOMP"; then
e6cc62c6
VS
25582 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25583echo "${ECHO_T}$RESCOMP" >&6
64440d77 25584else
e6cc62c6
VS
25585 echo "$as_me:$LINENO: result: no" >&5
25586echo "${ECHO_T}no" >&6
64440d77
DE
25587fi
25588
25589 # Extract the first word of "DeRez", so it can be a program name with args.
25590set dummy DeRez; ac_word=$2
e6cc62c6
VS
25591echo "$as_me:$LINENO: checking for $ac_word" >&5
25592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25593if test "${ac_cv_prog_DEREZ+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25595else
25596 if test -n "$DEREZ"; then
25597 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25598else
e6cc62c6
VS
25599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25600for as_dir in $PATH
25601do
25602 IFS=$as_save_IFS
25603 test -z "$as_dir" && as_dir=.
25604 for ac_exec_ext in '' $ac_executable_extensions; do
25605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25606 ac_cv_prog_DEREZ="DeRez"
25607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25608 break 2
25609 fi
25610done
25611done
25612
64440d77
DE
25613 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25614fi
25615fi
e6cc62c6 25616DEREZ=$ac_cv_prog_DEREZ
64440d77 25617if test -n "$DEREZ"; then
e6cc62c6
VS
25618 echo "$as_me:$LINENO: result: $DEREZ" >&5
25619echo "${ECHO_T}$DEREZ" >&6
64440d77 25620else
e6cc62c6
VS
25621 echo "$as_me:$LINENO: result: no" >&5
25622echo "${ECHO_T}no" >&6
64440d77
DE
25623fi
25624
25625 # Extract the first word of "SetFile", so it can be a program name with args.
25626set dummy SetFile; ac_word=$2
e6cc62c6
VS
25627echo "$as_me:$LINENO: checking for $ac_word" >&5
25628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25629if test "${ac_cv_prog_SETFILE+set}" = set; then
25630 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25631else
25632 if test -n "$SETFILE"; then
25633 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25634else
e6cc62c6
VS
25635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25636for as_dir in $PATH
25637do
25638 IFS=$as_save_IFS
25639 test -z "$as_dir" && as_dir=.
25640 for ac_exec_ext in '' $ac_executable_extensions; do
25641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25642 ac_cv_prog_SETFILE="SetFile"
25643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25644 break 2
25645 fi
25646done
25647done
25648
64440d77
DE
25649 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25650fi
25651fi
e6cc62c6 25652SETFILE=$ac_cv_prog_SETFILE
64440d77 25653if test -n "$SETFILE"; then
e6cc62c6
VS
25654 echo "$as_me:$LINENO: result: $SETFILE" >&5
25655echo "${ECHO_T}$SETFILE" >&6
64440d77 25656else
e6cc62c6
VS
25657 echo "$as_me:$LINENO: result: no" >&5
25658echo "${ECHO_T}no" >&6
64440d77
DE
25659fi
25660
25661 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25662 MACSETFILE="\$(SETFILE)"
9711d31e 25663 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25664else
25665 if test "$wxUSE_PM" = 1; then
36825681 25666 MACRESCOMP="emxbind -ep"
90dd450c 25667 fi
4f14bcd8 25668fi
10f2d63a 25669
8284b0c5 25670
e6cc62c6
VS
25671echo "$as_me:$LINENO: checking for mode_t" >&5
25672echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25673if test "${ac_cv_type_mode_t+set}" = set; then
25674 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25675else
e6cc62c6
VS
25676 cat >conftest.$ac_ext <<_ACEOF
25677#line $LINENO "configure"
25678/* confdefs.h. */
25679_ACEOF
25680cat confdefs.h >>conftest.$ac_ext
25681cat >>conftest.$ac_ext <<_ACEOF
25682/* end confdefs.h. */
25683$ac_includes_default
25684int
25685main ()
25686{
25687if ((mode_t *) 0)
25688 return 0;
25689if (sizeof (mode_t))
25690 return 0;
25691 ;
25692 return 0;
25693}
25694_ACEOF
25695rm -f conftest.$ac_objext
25696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25697 (eval $ac_compile) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } &&
25701 { ac_try='test -s conftest.$ac_objext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 ac_cv_type_mode_t=yes
a0b9e27f 25708else
e6cc62c6
VS
25709 echo "$as_me: failed program was:" >&5
25710sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25711
e6cc62c6 25712ac_cv_type_mode_t=no
a0b9e27f 25713fi
e6cc62c6 25714rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25715fi
e6cc62c6
VS
25716echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25717echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25718if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25719 :
25720else
a0b9e27f 25721
e6cc62c6
VS
25722cat >>confdefs.h <<_ACEOF
25723#define mode_t int
25724_ACEOF
8284b0c5
MB
25725
25726fi
25727
e6cc62c6
VS
25728echo "$as_me:$LINENO: checking for off_t" >&5
25729echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25730if test "${ac_cv_type_off_t+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25732else
e6cc62c6
VS
25733 cat >conftest.$ac_ext <<_ACEOF
25734#line $LINENO "configure"
25735/* confdefs.h. */
25736_ACEOF
25737cat confdefs.h >>conftest.$ac_ext
25738cat >>conftest.$ac_ext <<_ACEOF
25739/* end confdefs.h. */
25740$ac_includes_default
25741int
25742main ()
25743{
25744if ((off_t *) 0)
25745 return 0;
25746if (sizeof (off_t))
25747 return 0;
25748 ;
25749 return 0;
25750}
25751_ACEOF
25752rm -f conftest.$ac_objext
25753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754 (eval $ac_compile) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
25758 { ac_try='test -s conftest.$ac_objext'
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
25764 ac_cv_type_off_t=yes
5c6fa7d2 25765else
e6cc62c6
VS
25766 echo "$as_me: failed program was:" >&5
25767sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25768
e6cc62c6 25769ac_cv_type_off_t=no
8284b0c5 25770fi
e6cc62c6 25771rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25772fi
e6cc62c6
VS
25773echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25774echo "${ECHO_T}$ac_cv_type_off_t" >&6
25775if test $ac_cv_type_off_t = yes; then
25776 :
247f5006
VZ
25777else
25778
e6cc62c6 25779cat >>confdefs.h <<_ACEOF
90dd450c 25780#define off_t long
e6cc62c6 25781_ACEOF
10f2d63a 25782
90dd450c 25783fi
10f2d63a 25784
e6cc62c6
VS
25785echo "$as_me:$LINENO: checking for pid_t" >&5
25786echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25787if test "${ac_cv_type_pid_t+set}" = set; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25789else
e6cc62c6
VS
25790 cat >conftest.$ac_ext <<_ACEOF
25791#line $LINENO "configure"
25792/* confdefs.h. */
25793_ACEOF
25794cat confdefs.h >>conftest.$ac_ext
25795cat >>conftest.$ac_ext <<_ACEOF
25796/* end confdefs.h. */
25797$ac_includes_default
25798int
25799main ()
25800{
25801if ((pid_t *) 0)
25802 return 0;
25803if (sizeof (pid_t))
25804 return 0;
25805 ;
25806 return 0;
25807}
25808_ACEOF
25809rm -f conftest.$ac_objext
25810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25811 (eval $ac_compile) 2>&5
25812 ac_status=$?
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } &&
25815 { ac_try='test -s conftest.$ac_objext'
25816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25817 (eval $ac_try) 2>&5
25818 ac_status=$?
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); }; }; then
90dd450c 25821 ac_cv_type_pid_t=yes
698dcdb6 25822else
e6cc62c6
VS
25823 echo "$as_me: failed program was:" >&5
25824sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25825
e6cc62c6
VS
25826ac_cv_type_pid_t=no
25827fi
25828rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25829fi
e6cc62c6
VS
25830echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25831echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25832if test $ac_cv_type_pid_t = yes; then
25833 :
25834else
25835
25836cat >>confdefs.h <<_ACEOF
90dd450c 25837#define pid_t int
e6cc62c6 25838_ACEOF
10f2d63a 25839
7b4a847f
RR
25840fi
25841
e6cc62c6
VS
25842echo "$as_me:$LINENO: checking for size_t" >&5
25843echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25844if test "${ac_cv_type_size_t+set}" = set; then
25845 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25846else
e6cc62c6
VS
25847 cat >conftest.$ac_ext <<_ACEOF
25848#line $LINENO "configure"
25849/* confdefs.h. */
25850_ACEOF
25851cat confdefs.h >>conftest.$ac_ext
25852cat >>conftest.$ac_ext <<_ACEOF
25853/* end confdefs.h. */
25854$ac_includes_default
25855int
25856main ()
25857{
25858if ((size_t *) 0)
25859 return 0;
25860if (sizeof (size_t))
25861 return 0;
25862 ;
25863 return 0;
25864}
25865_ACEOF
25866rm -f conftest.$ac_objext
25867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25868 (eval $ac_compile) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } &&
25872 { ac_try='test -s conftest.$ac_objext'
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; }; then
90dd450c 25878 ac_cv_type_size_t=yes
18dbb1f6 25879else
e6cc62c6
VS
25880 echo "$as_me: failed program was:" >&5
25881sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25882
e6cc62c6 25883ac_cv_type_size_t=no
a0b9e27f 25884fi
e6cc62c6
VS
25885rm -f conftest.$ac_objext conftest.$ac_ext
25886fi
25887echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25888echo "${ECHO_T}$ac_cv_type_size_t" >&6
25889if test $ac_cv_type_size_t = yes; then
25890 :
25891else
25892
25893cat >>confdefs.h <<_ACEOF
90dd450c 25894#define size_t unsigned
e6cc62c6 25895_ACEOF
90dd450c
VZ
25896
25897fi
25898
e6cc62c6
VS
25899echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25900echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25901if test "${ac_cv_type_uid_t+set}" = set; then
25902 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25903else
e6cc62c6
VS
25904 cat >conftest.$ac_ext <<_ACEOF
25905#line $LINENO "configure"
25906/* confdefs.h. */
25907_ACEOF
25908cat confdefs.h >>conftest.$ac_ext
25909cat >>conftest.$ac_ext <<_ACEOF
25910/* end confdefs.h. */
90dd450c 25911#include <sys/types.h>
e6cc62c6
VS
25912
25913_ACEOF
90dd450c 25914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25915 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25916 ac_cv_type_uid_t=yes
b3e8d00a 25917else
90dd450c 25918 ac_cv_type_uid_t=no
b3e8d00a 25919fi
90dd450c 25920rm -f conftest*
b3e8d00a 25921
4f14bcd8 25922fi
e6cc62c6
VS
25923echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25924echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25925if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25926
25927cat >>confdefs.h <<\_ACEOF
90dd450c 25928#define uid_t int
e6cc62c6 25929_ACEOF
247f5006 25930
e6cc62c6
VS
25931
25932cat >>confdefs.h <<\_ACEOF
90dd450c 25933#define gid_t int
e6cc62c6 25934_ACEOF
4f14bcd8 25935
b3e8d00a 25936fi
b3e8d00a 25937
8284b0c5
MB
25938
25939
e6cc62c6
VS
25940
25941ac_ext=cc
4f14bcd8 25942ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25946
25947echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25948echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25949if test "${wx_cv_size_t_is_uint+set}" = set; then
25950 echo $ECHO_N "(cached) $ECHO_C" >&6
25951else
25952
25953 cat >conftest.$ac_ext <<_ACEOF
25954#line $LINENO "configure"
25955/* confdefs.h. */
25956_ACEOF
25957cat confdefs.h >>conftest.$ac_ext
25958cat >>conftest.$ac_ext <<_ACEOF
25959/* end confdefs.h. */
90dd450c 25960#include <stddef.h>
e6cc62c6
VS
25961int
25962main ()
25963{
90dd450c
VZ
25964
25965 return 0; }
25966
25967 struct Foo { void foo(size_t); void foo(unsigned int); };
25968
25969 int bar() {
e6cc62c6
VS
25970
25971 ;
25972 return 0;
25973}
25974_ACEOF
25975rm -f conftest.$ac_objext
25976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25977 (eval $ac_compile) 2>&5
25978 ac_status=$?
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); } &&
25981 { ac_try='test -s conftest.$ac_objext'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
90dd450c 25987 wx_cv_size_t_is_uint=no
698dcdb6 25988else
e6cc62c6
VS
25989 echo "$as_me: failed program was:" >&5
25990sed 's/^/| /' conftest.$ac_ext >&5
25991
25992wx_cv_size_t_is_uint=yes
8284b0c5 25993
247f5006 25994fi
e6cc62c6
VS
25995rm -f conftest.$ac_objext conftest.$ac_ext
25996
a0b9e27f 25997
e6cc62c6
VS
25998fi
25999echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26000echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26001
90dd450c 26002if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26003 cat >>confdefs.h <<\_ACEOF
90dd450c 26004#define wxSIZE_T_IS_UINT 1
e6cc62c6 26005_ACEOF
698dcdb6 26006
90dd450c 26007else
e6cc62c6
VS
26008 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26009echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26010if test "${wx_cv_size_t_is_ulong+set}" = set; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26012else
e6cc62c6
VS
26013 cat >conftest.$ac_ext <<_ACEOF
26014#line $LINENO "configure"
26015/* confdefs.h. */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h. */
90dd450c 26020#include <stddef.h>
e6cc62c6
VS
26021int
26022main ()
26023{
90dd450c
VZ
26024
26025 return 0; }
26026
26027 struct Foo { void foo(size_t); void foo(unsigned long); };
26028
26029 int bar() {
e6cc62c6
VS
26030
26031 ;
26032 return 0;
26033}
26034_ACEOF
26035rm -f conftest.$ac_objext
26036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26037 (eval $ac_compile) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
90dd450c 26047 wx_cv_size_t_is_ulong=no
698dcdb6 26048else
e6cc62c6
VS
26049 echo "$as_me: failed program was:" >&5
26050sed 's/^/| /' conftest.$ac_ext >&5
26051
26052wx_cv_size_t_is_ulong=yes
26053
247f5006 26054fi
e6cc62c6 26055rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26056
e6cc62c6
VS
26057fi
26058echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26059echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26060
90dd450c 26061 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26062 cat >>confdefs.h <<\_ACEOF
90dd450c 26063#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26064_ACEOF
4f14bcd8
GD
26065
26066 fi
90dd450c 26067fi
1e487827 26068
90dd450c 26069ac_ext=c
4f14bcd8 26070ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26073ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26074
5c6fa7d2 26075
8284b0c5 26076
e6cc62c6
VS
26077echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26078echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26079if test "${wx_cv_struct_pw_gecos+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26081else
e6cc62c6
VS
26082
26083 cat >conftest.$ac_ext <<_ACEOF
26084#line $LINENO "configure"
26085/* confdefs.h. */
26086_ACEOF
26087cat confdefs.h >>conftest.$ac_ext
26088cat >>conftest.$ac_ext <<_ACEOF
26089/* end confdefs.h. */
90dd450c 26090#include <pwd.h>
e6cc62c6
VS
26091int
26092main ()
26093{
f6bcfd97 26094
90dd450c
VZ
26095 char *p;
26096 struct passwd *pw;
26097 p = pw->pw_gecos;
e6cc62c6
VS
26098
26099 ;
26100 return 0;
26101}
26102_ACEOF
26103rm -f conftest.$ac_objext
26104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26105 (eval $ac_compile) 2>&5
26106 ac_status=$?
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } &&
26109 { ac_try='test -s conftest.$ac_objext'
26110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111 (eval $ac_try) 2>&5
26112 ac_status=$?
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); }; }; then
26115
90dd450c 26116 wx_cv_struct_pw_gecos=yes
e6cc62c6 26117
10f2d63a 26118else
e6cc62c6
VS
26119 echo "$as_me: failed program was:" >&5
26120sed 's/^/| /' conftest.$ac_ext >&5
26121
26122
90dd450c 26123 wx_cv_struct_pw_gecos=no
e6cc62c6 26124
247f5006
VZ
26125
26126fi
e6cc62c6 26127rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26128
e6cc62c6
VS
26129
26130fi
26131echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26132echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26133
90dd450c 26134if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26135 cat >>confdefs.h <<\_ACEOF
90dd450c 26136#define HAVE_PW_GECOS 1
e6cc62c6 26137_ACEOF
c521c494 26138
90dd450c 26139fi
4f14bcd8 26140
8284b0c5 26141
d29b553b 26142if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26143 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26144#define wxUSE_WCHAR_T 1
e6cc62c6 26145_ACEOF
d74f4b5a 26146
8284b0c5 26147
d74f4b5a
VZ
26148 WCSLEN_FOUND=0
26149 WCHAR_LINK=
e6cc62c6
VS
26150
26151for ac_func in wcslen
7a30264c 26152do
e6cc62c6
VS
26153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26154echo "$as_me:$LINENO: checking for $ac_func" >&5
26155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26156if eval "test \"\${$as_ac_var+set}\" = set"; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158else
26159 cat >conftest.$ac_ext <<_ACEOF
26160#line $LINENO "configure"
26161/* confdefs.h. */
26162_ACEOF
26163cat confdefs.h >>conftest.$ac_ext
26164cat >>conftest.$ac_ext <<_ACEOF
26165/* end confdefs.h. */
7a30264c 26166/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26167 which can conflict with char $ac_func (); below.
26168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26169 <limits.h> exists even on freestanding compilers. */
26170#ifdef __STDC__
26171# include <limits.h>
26172#else
26173# include <assert.h>
26174#endif
4f14bcd8 26175/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26176#ifdef __cplusplus
26177extern "C"
26178{
26179#endif
4f14bcd8 26180/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26181 builtin and then its argument prototype would still apply. */
26182char $ac_func ();
7a30264c
VZ
26183/* The GNU C library defines this for functions which it implements
26184 to always fail with ENOSYS. Some functions are actually named
26185 something starting with __ and the normal name is an alias. */
26186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26187choke me
26188#else
e6cc62c6
VS
26189char (*f) () = $ac_func;
26190#endif
26191#ifdef __cplusplus
26192}
7a30264c
VZ
26193#endif
26194
e6cc62c6
VS
26195int
26196main ()
26197{
26198return f != $ac_func;
26199 ;
26200 return 0;
26201}
26202_ACEOF
26203rm -f conftest.$ac_objext conftest$ac_exeext
26204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26205 (eval $ac_link) 2>&5
26206 ac_status=$?
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } &&
26209 { ac_try='test -s conftest$ac_exeext'
26210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); }; }; then
26215 eval "$as_ac_var=yes"
26216else
26217 echo "$as_me: failed program was:" >&5
26218sed 's/^/| /' conftest.$ac_ext >&5
26219
26220eval "$as_ac_var=no"
26221fi
26222rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26223fi
26224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26225echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26226if test `eval echo '${'$as_ac_var'}'` = yes; then
26227 cat >>confdefs.h <<_ACEOF
26228#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26229_ACEOF
d74f4b5a 26230 WCSLEN_FOUND=1
7a30264c
VZ
26231fi
26232done
9d8deca0 26233
8284b0c5 26234
d74f4b5a 26235 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26236 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26237 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26238echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26239if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26240 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26241else
e6cc62c6 26242 ac_check_lib_save_LIBS=$LIBS
7a30264c 26243LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26244cat >conftest.$ac_ext <<_ACEOF
26245#line $LINENO "configure"
26246/* confdefs.h. */
26247_ACEOF
26248cat confdefs.h >>conftest.$ac_ext
26249cat >>conftest.$ac_ext <<_ACEOF
26250/* end confdefs.h. */
26251
4f14bcd8 26252/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26253#ifdef __cplusplus
26254extern "C"
26255#endif
4f14bcd8 26256/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26257 builtin and then its argument prototype would still apply. */
26258char wcslen ();
26259int
26260main ()
26261{
26262wcslen ();
26263 ;
26264 return 0;
26265}
26266_ACEOF
26267rm -f conftest.$ac_objext conftest$ac_exeext
26268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26269 (eval $ac_link) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } &&
26273 { ac_try='test -s conftest$ac_exeext'
26274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26275 (eval $ac_try) 2>&5
26276 ac_status=$?
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); }; }; then
26279 ac_cv_lib_msvcrt_wcslen=yes
26280else
26281 echo "$as_me: failed program was:" >&5
26282sed 's/^/| /' conftest.$ac_ext >&5
26283
26284ac_cv_lib_msvcrt_wcslen=no
26285fi
26286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26287LIBS=$ac_check_lib_save_LIBS
26288fi
26289echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26290echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26291if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26292 WCHAR_OK=1
d29b553b 26293fi
698dcdb6 26294
7a30264c 26295 else
e6cc62c6
VS
26296 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26297echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26298if test "${ac_cv_lib_w_wcslen+set}" = set; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26300else
e6cc62c6 26301 ac_check_lib_save_LIBS=$LIBS
7a30264c 26302LIBS="-lw $LIBS"
e6cc62c6
VS
26303cat >conftest.$ac_ext <<_ACEOF
26304#line $LINENO "configure"
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
4f14bcd8 26311/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26312#ifdef __cplusplus
26313extern "C"
26314#endif
4f14bcd8 26315/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26316 builtin and then its argument prototype would still apply. */
26317char wcslen ();
26318int
26319main ()
26320{
26321wcslen ();
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext conftest$ac_exeext
26327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26328 (eval $ac_link) 2>&5
26329 ac_status=$?
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } &&
26332 { ac_try='test -s conftest$ac_exeext'
26333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334 (eval $ac_try) 2>&5
26335 ac_status=$?
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); }; }; then
26338 ac_cv_lib_w_wcslen=yes
26339else
26340 echo "$as_me: failed program was:" >&5
26341sed 's/^/| /' conftest.$ac_ext >&5
26342
26343ac_cv_lib_w_wcslen=no
26344fi
26345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26346LIBS=$ac_check_lib_save_LIBS
26347fi
26348echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26349echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26350if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26351
7a30264c 26352 WCHAR_LINK=" -lw"
d74f4b5a 26353 WCSLEN_FOUND=1
e6cc62c6 26354
4f14bcd8 26355fi
10f2d63a 26356
7a30264c 26357 fi
d29b553b 26358 fi
95c8801c 26359
d74f4b5a 26360 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26361 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26362#define HAVE_WCSLEN 1
e6cc62c6 26363_ACEOF
10f2d63a 26364
d74f4b5a 26365 fi
52127426 26366
e6cc62c6
VS
26367
26368for ac_func in wcsrtombs
eb4efbdc 26369do
e6cc62c6
VS
26370as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26371echo "$as_me:$LINENO: checking for $ac_func" >&5
26372echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26373if eval "test \"\${$as_ac_var+set}\" = set"; then
26374 echo $ECHO_N "(cached) $ECHO_C" >&6
26375else
26376 cat >conftest.$ac_ext <<_ACEOF
26377#line $LINENO "configure"
26378/* confdefs.h. */
26379_ACEOF
26380cat confdefs.h >>conftest.$ac_ext
26381cat >>conftest.$ac_ext <<_ACEOF
26382/* end confdefs.h. */
eb4efbdc 26383/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26384 which can conflict with char $ac_func (); below.
26385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26386 <limits.h> exists even on freestanding compilers. */
26387#ifdef __STDC__
26388# include <limits.h>
26389#else
26390# include <assert.h>
26391#endif
eb4efbdc 26392/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26393#ifdef __cplusplus
26394extern "C"
26395{
26396#endif
4f14bcd8 26397/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26398 builtin and then its argument prototype would still apply. */
26399char $ac_func ();
10f2d63a
VZ
26400/* The GNU C library defines this for functions which it implements
26401 to always fail with ENOSYS. Some functions are actually named
26402 something starting with __ and the normal name is an alias. */
247f5006 26403#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26404choke me
26405#else
e6cc62c6
VS
26406char (*f) () = $ac_func;
26407#endif
26408#ifdef __cplusplus
26409}
10f2d63a
VZ
26410#endif
26411
e6cc62c6
VS
26412int
26413main ()
26414{
26415return f != $ac_func;
26416 ;
26417 return 0;
26418}
26419_ACEOF
26420rm -f conftest.$ac_objext conftest$ac_exeext
26421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26422 (eval $ac_link) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); } &&
26426 { ac_try='test -s conftest$ac_exeext'
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 eval "$as_ac_var=yes"
26433else
26434 echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437eval "$as_ac_var=no"
26438fi
26439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26440fi
26441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26442echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26443if test `eval echo '${'$as_ac_var'}'` = yes; then
26444 cat >>confdefs.h <<_ACEOF
26445#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26446_ACEOF
270a909e 26447
4f14bcd8 26448fi
247f5006 26449done
1e487827 26450
af15babd 26451else
e6cc62c6
VS
26452 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26453echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26454fi
52127426 26455
8284b0c5 26456
e6cc62c6
VS
26457
26458ac_ext=cc
247f5006 26459ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26463
af15babd 26464
247f5006
VZ
26465
26466for ac_func in vsnprintf
26467do
e6cc62c6
VS
26468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26469echo "$as_me:$LINENO: checking for $ac_func" >&5
26470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26471if eval "test \"\${$as_ac_var+set}\" = set"; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26473else
26474 cat >conftest.$ac_ext <<_ACEOF
26475#line $LINENO "configure"
26476/* confdefs.h. */
26477_ACEOF
26478cat confdefs.h >>conftest.$ac_ext
26479cat >>conftest.$ac_ext <<_ACEOF
26480/* end confdefs.h. */
247f5006 26481/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26482 which can conflict with char $ac_func (); below.
26483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26484 <limits.h> exists even on freestanding compilers. */
26485#ifdef __STDC__
26486# include <limits.h>
26487#else
26488# include <assert.h>
26489#endif
247f5006
VZ
26490/* Override any gcc2 internal prototype to avoid an error. */
26491#ifdef __cplusplus
26492extern "C"
e6cc62c6 26493{
247f5006
VZ
26494#endif
26495/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26496 builtin and then its argument prototype would still apply. */
26497char $ac_func ();
247f5006
VZ
26498/* The GNU C library defines this for functions which it implements
26499 to always fail with ENOSYS. Some functions are actually named
26500 something starting with __ and the normal name is an alias. */
26501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26502choke me
26503#else
e6cc62c6
VS
26504char (*f) () = $ac_func;
26505#endif
26506#ifdef __cplusplus
26507}
247f5006 26508#endif
af15babd 26509
e6cc62c6
VS
26510int
26511main ()
26512{
26513return f != $ac_func;
26514 ;
26515 return 0;
26516}
26517_ACEOF
26518rm -f conftest.$ac_objext conftest$ac_exeext
26519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26520 (eval $ac_link) 2>&5
26521 ac_status=$?
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); } &&
26524 { ac_try='test -s conftest$ac_exeext'
26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); }; }; then
26530 eval "$as_ac_var=yes"
26531else
26532 echo "$as_me: failed program was:" >&5
26533sed 's/^/| /' conftest.$ac_ext >&5
26534
26535eval "$as_ac_var=no"
26536fi
26537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26538fi
26539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26540echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26541if test `eval echo '${'$as_ac_var'}'` = yes; then
26542 cat >>confdefs.h <<_ACEOF
26543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26544_ACEOF
52127426 26545
5c6fa7d2 26546fi
247f5006 26547done
8284b0c5 26548
4f14bcd8 26549
8d90d2f2 26550if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26551 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26552echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26553if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26554 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26555else
e6cc62c6
VS
26556
26557 cat >conftest.$ac_ext <<_ACEOF
26558#line $LINENO "configure"
26559/* confdefs.h. */
26560_ACEOF
26561cat confdefs.h >>conftest.$ac_ext
26562cat >>conftest.$ac_ext <<_ACEOF
26563/* end confdefs.h. */
8d90d2f2
VZ
26564
26565 #include <stdio.h>
26566 #include <stdarg.h>
e6cc62c6
VS
26567
26568int
26569main ()
26570{
8d90d2f2
VZ
26571
26572 char *buf;
26573 va_list ap;
26574 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26575
26576 ;
26577 return 0;
26578}
26579_ACEOF
26580rm -f conftest.$ac_objext
26581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26582 (eval $ac_compile) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } &&
26586 { ac_try='test -s conftest.$ac_objext'
26587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; }; then
8d90d2f2
VZ
26592 wx_cv_func_vsnprintf_decl=yes
26593else
e6cc62c6
VS
26594 echo "$as_me: failed program was:" >&5
26595sed 's/^/| /' conftest.$ac_ext >&5
26596
26597wx_cv_func_vsnprintf_decl=no
26598
8d90d2f2 26599fi
e6cc62c6
VS
26600rm -f conftest.$ac_objext conftest.$ac_ext
26601
8d90d2f2 26602
e6cc62c6
VS
26603fi
26604echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26605echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26606
26607 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26608 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26609#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26610_ACEOF
8d90d2f2
VZ
26611
26612 fi
26613fi
26614
247f5006 26615if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26616
26617
26618
26619for ac_func in fputwc wprintf vswprintf
d74f4b5a 26620do
e6cc62c6
VS
26621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26622echo "$as_me:$LINENO: checking for $ac_func" >&5
26623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26624if eval "test \"\${$as_ac_var+set}\" = set"; then
26625 echo $ECHO_N "(cached) $ECHO_C" >&6
26626else
26627 cat >conftest.$ac_ext <<_ACEOF
26628#line $LINENO "configure"
26629/* confdefs.h. */
26630_ACEOF
26631cat confdefs.h >>conftest.$ac_ext
26632cat >>conftest.$ac_ext <<_ACEOF
26633/* end confdefs.h. */
d74f4b5a 26634/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26635 which can conflict with char $ac_func (); below.
26636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26637 <limits.h> exists even on freestanding compilers. */
26638#ifdef __STDC__
26639# include <limits.h>
26640#else
26641# include <assert.h>
26642#endif
d74f4b5a 26643/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26644#ifdef __cplusplus
26645extern "C"
e6cc62c6 26646{
247f5006 26647#endif
d74f4b5a 26648/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26649 builtin and then its argument prototype would still apply. */
26650char $ac_func ();
d74f4b5a
VZ
26651/* The GNU C library defines this for functions which it implements
26652 to always fail with ENOSYS. Some functions are actually named
26653 something starting with __ and the normal name is an alias. */
26654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26655choke me
26656#else
e6cc62c6
VS
26657char (*f) () = $ac_func;
26658#endif
26659#ifdef __cplusplus
26660}
d74f4b5a
VZ
26661#endif
26662
e6cc62c6
VS
26663int
26664main ()
26665{
26666return f != $ac_func;
26667 ;
26668 return 0;
26669}
26670_ACEOF
26671rm -f conftest.$ac_objext conftest$ac_exeext
26672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26673 (eval $ac_link) 2>&5
26674 ac_status=$?
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } &&
26677 { ac_try='test -s conftest$ac_exeext'
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; }; then
26683 eval "$as_ac_var=yes"
26684else
26685 echo "$as_me: failed program was:" >&5
26686sed 's/^/| /' conftest.$ac_ext >&5
26687
26688eval "$as_ac_var=no"
26689fi
26690rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26691fi
26692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26694if test `eval echo '${'$as_ac_var'}'` = yes; then
26695 cat >>confdefs.h <<_ACEOF
26696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26697_ACEOF
d74f4b5a 26698
d74f4b5a
VZ
26699fi
26700done
26701
8d90d2f2 26702
e6cc62c6
VS
26703 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26704echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26705 cat >conftest.$ac_ext <<_ACEOF
26706#line $LINENO "configure"
26707/* confdefs.h. */
26708_ACEOF
26709cat confdefs.h >>conftest.$ac_ext
26710cat >>conftest.$ac_ext <<_ACEOF
26711/* end confdefs.h. */
79668cae 26712#include <wchar.h>
e6cc62c6
VS
26713int
26714main ()
26715{
79668cae 26716&_vsnwprintf;
e6cc62c6
VS
26717 ;
26718 return 0;
26719}
26720_ACEOF
26721rm -f conftest.$ac_objext
26722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26723 (eval $ac_compile) 2>&5
26724 ac_status=$?
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); } &&
26727 { ac_try='test -s conftest.$ac_objext'
26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
26733 echo "$as_me:$LINENO: result: yes" >&5
26734echo "${ECHO_T}yes" >&6
26735 cat >>confdefs.h <<\_ACEOF
79668cae 26736#define HAVE__VSNWPRINTF 1
e6cc62c6 26737_ACEOF
79668cae
MB
26738
26739else
e6cc62c6
VS
26740 echo "$as_me: failed program was:" >&5
26741sed 's/^/| /' conftest.$ac_ext >&5
26742
26743echo "$as_me:$LINENO: result: no" >&5
26744echo "${ECHO_T}no" >&6
79668cae 26745fi
e6cc62c6 26746rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26747fi
26748
247f5006
VZ
26749ac_ext=c
26750ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26753ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26754
26755
26756
26757
4f14bcd8 26758if test "$TOOLKIT" != "MSW"; then
af15babd 26759
8284b0c5
MB
26760
26761
e6cc62c6
VS
26762
26763ac_ext=cc
4f14bcd8 26764ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26768
52127426 26769
e6cc62c6
VS
26770
26771
26772# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26773if test "${with_libiconv_prefix+set}" = set; then
26774 withval="$with_libiconv_prefix"
e6cc62c6 26775
b040e242
VS
26776 for dir in `echo "$withval" | tr : ' '`; do
26777 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26778 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26779 done
b040e242 26780
e6cc62c6 26781fi;
b040e242 26782
e6cc62c6
VS
26783 echo "$as_me:$LINENO: checking for iconv" >&5
26784echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26785if test "${am_cv_func_iconv+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26787else
e6cc62c6 26788
b040e242
VS
26789 am_cv_func_iconv="no, consider installing GNU libiconv"
26790 am_cv_lib_iconv=no
e6cc62c6
VS
26791 cat >conftest.$ac_ext <<_ACEOF
26792#line $LINENO "configure"
26793/* confdefs.h. */
26794_ACEOF
26795cat confdefs.h >>conftest.$ac_ext
26796cat >>conftest.$ac_ext <<_ACEOF
26797/* end confdefs.h. */
b040e242 26798#include <stdlib.h>
4f14bcd8 26799#include <iconv.h>
e6cc62c6
VS
26800int
26801main ()
26802{
b040e242
VS
26803iconv_t cd = iconv_open("","");
26804 iconv(cd,NULL,NULL,NULL,NULL);
26805 iconv_close(cd);
e6cc62c6
VS
26806 ;
26807 return 0;
26808}
26809_ACEOF
26810rm -f conftest.$ac_objext conftest$ac_exeext
26811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26812 (eval $ac_link) 2>&5
26813 ac_status=$?
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
26816 { ac_try='test -s conftest$ac_exeext'
26817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26818 (eval $ac_try) 2>&5
26819 ac_status=$?
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
b040e242 26822 am_cv_func_iconv=yes
af15babd 26823else
e6cc62c6
VS
26824 echo "$as_me: failed program was:" >&5
26825sed 's/^/| /' conftest.$ac_ext >&5
26826
b040e242 26827fi
e6cc62c6 26828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26829 if test "$am_cv_func_iconv" != yes; then
26830 am_save_LIBS="$LIBS"
26831 LIBS="$LIBS -liconv"
e6cc62c6
VS
26832 cat >conftest.$ac_ext <<_ACEOF
26833#line $LINENO "configure"
26834/* confdefs.h. */
26835_ACEOF
26836cat confdefs.h >>conftest.$ac_ext
26837cat >>conftest.$ac_ext <<_ACEOF
26838/* end confdefs.h. */
b040e242
VS
26839#include <stdlib.h>
26840#include <iconv.h>
e6cc62c6
VS
26841int
26842main ()
26843{
b040e242
VS
26844iconv_t cd = iconv_open("","");
26845 iconv(cd,NULL,NULL,NULL,NULL);
26846 iconv_close(cd);
e6cc62c6
VS
26847 ;
26848 return 0;
26849}
26850_ACEOF
26851rm -f conftest.$ac_objext conftest$ac_exeext
26852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26853 (eval $ac_link) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } &&
26857 { ac_try='test -s conftest$ac_exeext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
b040e242
VS
26863 am_cv_lib_iconv=yes
26864 am_cv_func_iconv=yes
26865else
e6cc62c6
VS
26866 echo "$as_me: failed program was:" >&5
26867sed 's/^/| /' conftest.$ac_ext >&5
26868
af15babd 26869fi
e6cc62c6 26870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26871 LIBS="$am_save_LIBS"
26872 fi
247f5006 26873
e6cc62c6
VS
26874fi
26875echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26876echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26877 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26878
26879cat >>confdefs.h <<\_ACEOF
b040e242 26880#define HAVE_ICONV 1
e6cc62c6 26881_ACEOF
b040e242 26882
e6cc62c6
VS
26883 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26884echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26885if test "${wx_cv_func_iconv_const+set}" = set; then
26886 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26887else
e6cc62c6
VS
26888 cat >conftest.$ac_ext <<_ACEOF
26889#line $LINENO "configure"
26890/* confdefs.h. */
26891_ACEOF
26892cat confdefs.h >>conftest.$ac_ext
26893cat >>conftest.$ac_ext <<_ACEOF
26894/* end confdefs.h. */
b040e242
VS
26895
26896#include <stdlib.h>
26897#include <iconv.h>
26898extern
26899#ifdef __cplusplus
26900"C"
26901#endif
26902#if defined(__STDC__) || defined(__cplusplus)
26903size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26904#else
26905size_t iconv();
26906#endif
af15babd 26907
e6cc62c6
VS
26908int
26909main ()
26910{
26911
26912 ;
26913 return 0;
26914}
26915_ACEOF
26916rm -f conftest.$ac_objext
26917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26918 (eval $ac_compile) 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); } &&
26922 { ac_try='test -s conftest.$ac_objext'
26923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924 (eval $ac_try) 2>&5
26925 ac_status=$?
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); }; }; then
b7043674 26928 wx_cv_func_iconv_const="no"
b040e242 26929else
e6cc62c6
VS
26930 echo "$as_me: failed program was:" >&5
26931sed 's/^/| /' conftest.$ac_ext >&5
26932
26933wx_cv_func_iconv_const="yes"
26934
247f5006 26935fi
e6cc62c6 26936rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26937
e6cc62c6
VS
26938fi
26939echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26940echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26941
26942 iconv_const=
1c405bb5 26943 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26944 iconv_const="const"
26945 fi
26946
e6cc62c6
VS
26947
26948cat >>confdefs.h <<_ACEOF
f09359cf 26949#define ICONV_CONST $iconv_const
e6cc62c6 26950_ACEOF
b040e242
VS
26951
26952 fi
26953 LIBICONV=
26954 if test "$am_cv_lib_iconv" = yes; then
26955 LIBICONV="-liconv"
26956 fi
e6cc62c6 26957
b040e242
VS
26958
26959LIBS="$LIBICONV $LIBS"
4f14bcd8 26960ac_ext=c
4f14bcd8 26961ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26964ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26965
5c6fa7d2 26966
8284b0c5 26967if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26968
26969for ac_func in sigaction
af15babd 26970do
e6cc62c6
VS
26971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26972echo "$as_me:$LINENO: checking for $ac_func" >&5
26973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26974if eval "test \"\${$as_ac_var+set}\" = set"; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26976else
26977 cat >conftest.$ac_ext <<_ACEOF
26978#line $LINENO "configure"
26979/* confdefs.h. */
26980_ACEOF
26981cat confdefs.h >>conftest.$ac_ext
26982cat >>conftest.$ac_ext <<_ACEOF
26983/* end confdefs.h. */
af15babd 26984/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26985 which can conflict with char $ac_func (); below.
26986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26987 <limits.h> exists even on freestanding compilers. */
26988#ifdef __STDC__
26989# include <limits.h>
26990#else
26991# include <assert.h>
26992#endif
af15babd 26993/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26994#ifdef __cplusplus
26995extern "C"
26996{
26997#endif
af15babd 26998/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26999 builtin and then its argument prototype would still apply. */
27000char $ac_func ();
af15babd
VZ
27001/* The GNU C library defines this for functions which it implements
27002 to always fail with ENOSYS. Some functions are actually named
27003 something starting with __ and the normal name is an alias. */
27004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27005choke me
27006#else
e6cc62c6
VS
27007char (*f) () = $ac_func;
27008#endif
27009#ifdef __cplusplus
27010}
af15babd
VZ
27011#endif
27012
e6cc62c6
VS
27013int
27014main ()
27015{
27016return f != $ac_func;
27017 ;
27018 return 0;
27019}
27020_ACEOF
27021rm -f conftest.$ac_objext conftest$ac_exeext
27022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27023 (eval $ac_link) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
27027 { ac_try='test -s conftest$ac_exeext'
27028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27030 ac_status=$?
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); }; }; then
27033 eval "$as_ac_var=yes"
27034else
27035 echo "$as_me: failed program was:" >&5
27036sed 's/^/| /' conftest.$ac_ext >&5
27037
27038eval "$as_ac_var=no"
27039fi
27040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27041fi
27042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27044if test `eval echo '${'$as_ac_var'}'` = yes; then
27045 cat >>confdefs.h <<_ACEOF
27046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27047_ACEOF
7b4a847f 27048
4f14bcd8
GD
27049fi
27050done
27051
8284b0c5 27052
4f14bcd8 27053 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27054 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27055echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27056 wxUSE_ON_FATAL_EXCEPTION=no
27057 fi
27058
27059 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27060
27061
27062 ac_ext=cc
5c6fa7d2 27063ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27067
5c6fa7d2 27068
e6cc62c6
VS
27069 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27070echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27071if test "${wx_cv_type_sa_handler+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27073else
e6cc62c6
VS
27074
27075 cat >conftest.$ac_ext <<_ACEOF
27076#line $LINENO "configure"
27077/* confdefs.h. */
27078_ACEOF
27079cat confdefs.h >>conftest.$ac_ext
27080cat >>conftest.$ac_ext <<_ACEOF
27081/* end confdefs.h. */
4f14bcd8 27082#include <signal.h>
e6cc62c6
VS
27083int
27084main ()
27085{
4f14bcd8
GD
27086
27087 extern void testSigHandler(int);
27088
27089 struct sigaction sa;
27090 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27091
27092 ;
27093 return 0;
27094}
27095_ACEOF
27096rm -f conftest.$ac_objext
27097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27098 (eval $ac_compile) 2>&5
27099 ac_status=$?
27100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 (exit $ac_status); } &&
27102 { ac_try='test -s conftest.$ac_objext'
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108
4f14bcd8 27109 wx_cv_type_sa_handler=int
e6cc62c6 27110
af15babd 27111else
e6cc62c6
VS
27112 echo "$as_me: failed program was:" >&5
27113sed 's/^/| /' conftest.$ac_ext >&5
27114
27115
4f14bcd8 27116 wx_cv_type_sa_handler=void
e6cc62c6 27117
247f5006 27118fi
e6cc62c6 27119rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27120
e6cc62c6
VS
27121fi
27122echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27123echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27124
27125 ac_ext=c
4f14bcd8 27126ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27129ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27130
8284b0c5 27131
e6cc62c6 27132 cat >>confdefs.h <<_ACEOF
4f14bcd8 27133#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27134_ACEOF
af15babd 27135
4f14bcd8
GD
27136 fi
27137fi
af15babd 27138
e6cc62c6
VS
27139
27140
a1d22ad7 27141for ac_func in mkstemp mktemp
af15babd 27142do
e6cc62c6
VS
27143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27144echo "$as_me:$LINENO: checking for $ac_func" >&5
27145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27146if eval "test \"\${$as_ac_var+set}\" = set"; then
27147 echo $ECHO_N "(cached) $ECHO_C" >&6
27148else
27149 cat >conftest.$ac_ext <<_ACEOF
27150#line $LINENO "configure"
27151/* confdefs.h. */
27152_ACEOF
27153cat confdefs.h >>conftest.$ac_ext
27154cat >>conftest.$ac_ext <<_ACEOF
27155/* end confdefs.h. */
af15babd 27156/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27157 which can conflict with char $ac_func (); below.
27158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27159 <limits.h> exists even on freestanding compilers. */
27160#ifdef __STDC__
27161# include <limits.h>
27162#else
27163# include <assert.h>
27164#endif
af15babd 27165/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27166#ifdef __cplusplus
27167extern "C"
27168{
27169#endif
af15babd 27170/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27171 builtin and then its argument prototype would still apply. */
27172char $ac_func ();
af15babd
VZ
27173/* The GNU C library defines this for functions which it implements
27174 to always fail with ENOSYS. Some functions are actually named
27175 something starting with __ and the normal name is an alias. */
27176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27177choke me
27178#else
e6cc62c6
VS
27179char (*f) () = $ac_func;
27180#endif
27181#ifdef __cplusplus
27182}
af15babd
VZ
27183#endif
27184
e6cc62c6
VS
27185int
27186main ()
27187{
27188return f != $ac_func;
27189 ;
27190 return 0;
27191}
27192_ACEOF
27193rm -f conftest.$ac_objext conftest$ac_exeext
27194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27195 (eval $ac_link) 2>&5
27196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } &&
27199 { ac_try='test -s conftest$ac_exeext'
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }; then
27205 eval "$as_ac_var=yes"
27206else
27207 echo "$as_me: failed program was:" >&5
27208sed 's/^/| /' conftest.$ac_ext >&5
27209
27210eval "$as_ac_var=no"
27211fi
27212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27213fi
27214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27216if test `eval echo '${'$as_ac_var'}'` = yes; then
27217 cat >>confdefs.h <<_ACEOF
27218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27219_ACEOF
ade35f11 27220 break
ade35f11
VZ
27221fi
27222done
27223
8284b0c5 27224
e6cc62c6
VS
27225echo "$as_me:$LINENO: checking for statfs" >&5
27226echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27227if test "${wx_cv_func_statfs+set}" = set; then
27228 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27229else
e6cc62c6
VS
27230 cat >conftest.$ac_ext <<_ACEOF
27231#line $LINENO "configure"
27232/* confdefs.h. */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h. */
4f14bcd8
GD
27237
27238 #if defined(__BSD__)
27239 #include <sys/param.h>
27240 #include <sys/mount.h>
27241 #else
27242 #include <sys/vfs.h>
27243 #endif
e6cc62c6
VS
27244
27245int
27246main ()
27247{
4f14bcd8
GD
27248
27249 long l;
27250 struct statfs fs;
27251 statfs("/", &fs);
27252 l = fs.f_bsize;
27253 l += fs.f_blocks;
27254 l += fs.f_bavail;
e6cc62c6
VS
27255
27256 ;
27257 return 0;
27258}
27259_ACEOF
27260rm -f conftest.$ac_objext
27261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27262 (eval $ac_compile) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); } &&
27266 { ac_try='test -s conftest.$ac_objext'
27267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); }; }; then
27272
4f14bcd8 27273 wx_cv_func_statfs=yes
e6cc62c6 27274
4f14bcd8 27275else
e6cc62c6
VS
27276 echo "$as_me: failed program was:" >&5
27277sed 's/^/| /' conftest.$ac_ext >&5
27278
27279
4f14bcd8 27280 wx_cv_func_statfs=no
e6cc62c6 27281
8284b0c5 27282
247f5006 27283fi
e6cc62c6 27284rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27285
e6cc62c6
VS
27286fi
27287echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27288echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27289
27290if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27291 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27292 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27293#define HAVE_STATFS 1
e6cc62c6 27294_ACEOF
4f14bcd8
GD
27295
27296else
e6cc62c6
VS
27297 echo "$as_me:$LINENO: checking for statvfs" >&5
27298echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27299if test "${wx_cv_func_statvfs+set}" = set; then
27300 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27301else
e6cc62c6
VS
27302 cat >conftest.$ac_ext <<_ACEOF
27303#line $LINENO "configure"
27304/* confdefs.h. */
27305_ACEOF
27306cat confdefs.h >>conftest.$ac_ext
27307cat >>conftest.$ac_ext <<_ACEOF
27308/* end confdefs.h. */
af15babd 27309
54ab82b3
VZ
27310 #include <stddef.h>
27311 #include <sys/statvfs.h>
e6cc62c6
VS
27312
27313int
27314main ()
27315{
af15babd 27316
54ab82b3 27317 statvfs("/", NULL);
e6cc62c6
VS
27318
27319 ;
27320 return 0;
27321}
27322_ACEOF
27323rm -f conftest.$ac_objext
27324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27325 (eval $ac_compile) 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } &&
27329 { ac_try='test -s conftest.$ac_objext'
27330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331 (eval $ac_try) 2>&5
27332 ac_status=$?
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; }; then
54ab82b3 27335 wx_cv_func_statvfs=yes
af15babd 27336else
e6cc62c6
VS
27337 echo "$as_me: failed program was:" >&5
27338sed 's/^/| /' conftest.$ac_ext >&5
27339
27340wx_cv_func_statvfs=no
27341
247f5006 27342fi
e6cc62c6 27343rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27344
e6cc62c6
VS
27345fi
27346echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27347echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27348
4f14bcd8 27349 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27350
27351
27352 ac_ext=cc
54ab82b3 27353ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27357
27358
e6cc62c6
VS
27359 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27360echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27361if test "${wx_cv_type_statvfs_t+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27363else
e6cc62c6
VS
27364 cat >conftest.$ac_ext <<_ACEOF
27365#line $LINENO "configure"
27366/* confdefs.h. */
27367_ACEOF
27368cat confdefs.h >>conftest.$ac_ext
27369cat >>conftest.$ac_ext <<_ACEOF
27370/* end confdefs.h. */
54ab82b3
VZ
27371
27372 #include <sys/statvfs.h>
e6cc62c6
VS
27373
27374int
27375main ()
27376{
54ab82b3
VZ
27377
27378 long l;
27379 statvfs_t fs;
27380 statvfs("/", &fs);
27381 l = fs.f_bsize;
27382 l += fs.f_blocks;
27383 l += fs.f_bavail;
e6cc62c6
VS
27384
27385 ;
27386 return 0;
27387}
27388_ACEOF
27389rm -f conftest.$ac_objext
27390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27391 (eval $ac_compile) 2>&5
27392 ac_status=$?
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } &&
27395 { ac_try='test -s conftest.$ac_objext'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27398 ac_status=$?
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
54ab82b3
VZ
27401 wx_cv_type_statvfs_t=statvfs_t
27402else
e6cc62c6
VS
27403 echo "$as_me: failed program was:" >&5
27404sed 's/^/| /' conftest.$ac_ext >&5
27405
27406
27407 cat >conftest.$ac_ext <<_ACEOF
27408#line $LINENO "configure"
27409/* confdefs.h. */
27410_ACEOF
27411cat confdefs.h >>conftest.$ac_ext
27412cat >>conftest.$ac_ext <<_ACEOF
27413/* end confdefs.h. */
54ab82b3
VZ
27414
27415 #include <sys/statvfs.h>
e6cc62c6
VS
27416
27417int
27418main ()
27419{
54ab82b3
VZ
27420
27421 long l;
65d8ef1e 27422 struct statvfs fs;
54ab82b3
VZ
27423 statvfs("/", &fs);
27424 l = fs.f_bsize;
27425 l += fs.f_blocks;
27426 l += fs.f_bavail;
e6cc62c6
VS
27427
27428 ;
27429 return 0;
27430}
27431_ACEOF
27432rm -f conftest.$ac_objext
27433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27434 (eval $ac_compile) 2>&5
27435 ac_status=$?
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); } &&
27438 { ac_try='test -s conftest.$ac_objext'
27439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440 (eval $ac_try) 2>&5
27441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; }; then
54ab82b3
VZ
27444 wx_cv_type_statvfs_t="struct statvfs"
27445else
e6cc62c6
VS
27446 echo "$as_me: failed program was:" >&5
27447sed 's/^/| /' conftest.$ac_ext >&5
27448
27449wx_cv_type_statvfs_t="unknown"
27450
54ab82b3 27451fi
e6cc62c6
VS
27452rm -f conftest.$ac_objext conftest.$ac_ext
27453
27454
54ab82b3 27455fi
e6cc62c6 27456rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27457
e6cc62c6
VS
27458fi
27459echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27460echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27461
27462 ac_ext=c
54ab82b3 27463ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27466ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27467
27468
27469 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27470 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27471#define HAVE_STATVFS 1
e6cc62c6 27472_ACEOF
af15babd 27473
54ab82b3 27474 fi
4f14bcd8 27475 else
54ab82b3 27476 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27477 fi
27478fi
af15babd 27479
54ab82b3 27480if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27481 cat >>confdefs.h <<_ACEOF
54ab82b3 27482#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27483_ACEOF
54ab82b3
VZ
27484
27485else
e6cc62c6
VS
27486 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27487echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27488fi
27489
4f14bcd8 27490if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27491
27492
27493for ac_func in fcntl flock
af15babd 27494do
e6cc62c6
VS
27495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27496echo "$as_me:$LINENO: checking for $ac_func" >&5
27497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27498if eval "test \"\${$as_ac_var+set}\" = set"; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27500else
27501 cat >conftest.$ac_ext <<_ACEOF
27502#line $LINENO "configure"
27503/* confdefs.h. */
27504_ACEOF
27505cat confdefs.h >>conftest.$ac_ext
27506cat >>conftest.$ac_ext <<_ACEOF
27507/* end confdefs.h. */
af15babd 27508/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27509 which can conflict with char $ac_func (); below.
27510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27511 <limits.h> exists even on freestanding compilers. */
27512#ifdef __STDC__
27513# include <limits.h>
27514#else
27515# include <assert.h>
27516#endif
af15babd 27517/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27518#ifdef __cplusplus
27519extern "C"
27520{
27521#endif
af15babd 27522/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27523 builtin and then its argument prototype would still apply. */
27524char $ac_func ();
af15babd
VZ
27525/* The GNU C library defines this for functions which it implements
27526 to always fail with ENOSYS. Some functions are actually named
27527 something starting with __ and the normal name is an alias. */
27528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27529choke me
27530#else
e6cc62c6
VS
27531char (*f) () = $ac_func;
27532#endif
27533#ifdef __cplusplus
27534}
af15babd
VZ
27535#endif
27536
e6cc62c6
VS
27537int
27538main ()
27539{
27540return f != $ac_func;
27541 ;
27542 return 0;
27543}
27544_ACEOF
27545rm -f conftest.$ac_objext conftest$ac_exeext
27546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27547 (eval $ac_link) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); } &&
27551 { ac_try='test -s conftest$ac_exeext'
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 eval "$as_ac_var=yes"
27558else
27559 echo "$as_me: failed program was:" >&5
27560sed 's/^/| /' conftest.$ac_ext >&5
27561
27562eval "$as_ac_var=no"
27563fi
27564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27565fi
27566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27568if test `eval echo '${'$as_ac_var'}'` = yes; then
27569 cat >>confdefs.h <<_ACEOF
27570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27571_ACEOF
4f14bcd8 27572 break
af15babd
VZ
27573fi
27574done
27575
8284b0c5 27576
4f14bcd8 27577 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27578 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27579echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27580 wxUSE_SNGLINST_CHECKER=no
27581 fi
27582fi
af15babd 27583
e6cc62c6 27584
4f14bcd8 27585for ac_func in timegm
af15babd 27586do
e6cc62c6
VS
27587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27588echo "$as_me:$LINENO: checking for $ac_func" >&5
27589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27590if eval "test \"\${$as_ac_var+set}\" = set"; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27592else
27593 cat >conftest.$ac_ext <<_ACEOF
27594#line $LINENO "configure"
27595/* confdefs.h. */
27596_ACEOF
27597cat confdefs.h >>conftest.$ac_ext
27598cat >>conftest.$ac_ext <<_ACEOF
27599/* end confdefs.h. */
af15babd 27600/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27601 which can conflict with char $ac_func (); below.
27602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27603 <limits.h> exists even on freestanding compilers. */
27604#ifdef __STDC__
27605# include <limits.h>
27606#else
27607# include <assert.h>
27608#endif
af15babd 27609/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27610#ifdef __cplusplus
27611extern "C"
27612{
27613#endif
af15babd 27614/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27615 builtin and then its argument prototype would still apply. */
27616char $ac_func ();
af15babd
VZ
27617/* The GNU C library defines this for functions which it implements
27618 to always fail with ENOSYS. Some functions are actually named
27619 something starting with __ and the normal name is an alias. */
247f5006
VZ
27620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27621choke me
27622#else
e6cc62c6
VS
27623char (*f) () = $ac_func;
27624#endif
27625#ifdef __cplusplus
27626}
247f5006
VZ
27627#endif
27628
e6cc62c6
VS
27629int
27630main ()
27631{
27632return f != $ac_func;
27633 ;
27634 return 0;
27635}
27636_ACEOF
27637rm -f conftest.$ac_objext conftest$ac_exeext
27638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27639 (eval $ac_link) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); } &&
27643 { ac_try='test -s conftest$ac_exeext'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }; then
27649 eval "$as_ac_var=yes"
27650else
27651 echo "$as_me: failed program was:" >&5
27652sed 's/^/| /' conftest.$ac_ext >&5
27653
27654eval "$as_ac_var=no"
27655fi
27656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27657fi
27658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27660if test `eval echo '${'$as_ac_var'}'` = yes; then
27661 cat >>confdefs.h <<_ACEOF
27662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27663_ACEOF
703e0a69 27664
af15babd
VZ
27665fi
27666done
27667
8284b0c5 27668
e6cc62c6
VS
27669
27670
4f14bcd8 27671for ac_func in putenv setenv
10f2d63a 27672do
e6cc62c6
VS
27673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27674echo "$as_me:$LINENO: checking for $ac_func" >&5
27675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27676if eval "test \"\${$as_ac_var+set}\" = set"; then
27677 echo $ECHO_N "(cached) $ECHO_C" >&6
27678else
27679 cat >conftest.$ac_ext <<_ACEOF
27680#line $LINENO "configure"
27681/* confdefs.h. */
27682_ACEOF
27683cat confdefs.h >>conftest.$ac_ext
27684cat >>conftest.$ac_ext <<_ACEOF
27685/* end confdefs.h. */
af15babd 27686/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27687 which can conflict with char $ac_func (); below.
27688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27689 <limits.h> exists even on freestanding compilers. */
27690#ifdef __STDC__
27691# include <limits.h>
27692#else
27693# include <assert.h>
27694#endif
af15babd 27695/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27696#ifdef __cplusplus
27697extern "C"
27698{
27699#endif
af15babd 27700/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27701 builtin and then its argument prototype would still apply. */
27702char $ac_func ();
af15babd
VZ
27703/* The GNU C library defines this for functions which it implements
27704 to always fail with ENOSYS. Some functions are actually named
27705 something starting with __ and the normal name is an alias. */
27706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27707choke me
27708#else
e6cc62c6
VS
27709char (*f) () = $ac_func;
27710#endif
27711#ifdef __cplusplus
27712}
af15babd
VZ
27713#endif
27714
e6cc62c6
VS
27715int
27716main ()
27717{
27718return f != $ac_func;
27719 ;
27720 return 0;
27721}
27722_ACEOF
27723rm -f conftest.$ac_objext conftest$ac_exeext
27724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27725 (eval $ac_link) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); } &&
27729 { ac_try='test -s conftest$ac_exeext'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27732 ac_status=$?
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; }; then
27735 eval "$as_ac_var=yes"
27736else
27737 echo "$as_me: failed program was:" >&5
27738sed 's/^/| /' conftest.$ac_ext >&5
27739
27740eval "$as_ac_var=no"
27741fi
27742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27743fi
27744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27746if test `eval echo '${'$as_ac_var'}'` = yes; then
27747 cat >>confdefs.h <<_ACEOF
27748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27749_ACEOF
4f14bcd8 27750 break
af15babd 27751fi
af15babd
VZ
27752done
27753
8284b0c5 27754
4f14bcd8
GD
27755HAVE_SOME_SLEEP_FUNC=0
27756if test "$USE_BEOS" = 1; then
e6cc62c6 27757 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27758#define HAVE_SLEEP 1
e6cc62c6 27759_ACEOF
af15babd 27760
4f14bcd8 27761 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27762fi
27763
4f14bcd8 27764if test "$USE_DARWIN" = 1; then
e6cc62c6 27765 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27766#define HAVE_USLEEP 1
e6cc62c6 27767_ACEOF
10f2d63a 27768
4f14bcd8 27769 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27770fi
27771
4f14bcd8
GD
27772if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27773 POSIX4_LINK=
e6cc62c6
VS
27774
27775for ac_func in nanosleep
4f14bcd8 27776do
e6cc62c6
VS
27777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27778echo "$as_me:$LINENO: checking for $ac_func" >&5
27779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27780if eval "test \"\${$as_ac_var+set}\" = set"; then
27781 echo $ECHO_N "(cached) $ECHO_C" >&6
27782else
27783 cat >conftest.$ac_ext <<_ACEOF
27784#line $LINENO "configure"
27785/* confdefs.h. */
27786_ACEOF
27787cat confdefs.h >>conftest.$ac_ext
27788cat >>conftest.$ac_ext <<_ACEOF
27789/* end confdefs.h. */
4f14bcd8 27790/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27791 which can conflict with char $ac_func (); below.
27792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27793 <limits.h> exists even on freestanding compilers. */
27794#ifdef __STDC__
27795# include <limits.h>
27796#else
27797# include <assert.h>
27798#endif
10f2d63a 27799/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27800#ifdef __cplusplus
27801extern "C"
27802{
27803#endif
10f2d63a 27804/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27805 builtin and then its argument prototype would still apply. */
27806char $ac_func ();
4f14bcd8
GD
27807/* The GNU C library defines this for functions which it implements
27808 to always fail with ENOSYS. Some functions are actually named
27809 something starting with __ and the normal name is an alias. */
27810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27811choke me
27812#else
e6cc62c6
VS
27813char (*f) () = $ac_func;
27814#endif
27815#ifdef __cplusplus
27816}
4f14bcd8
GD
27817#endif
27818
e6cc62c6
VS
27819int
27820main ()
27821{
27822return f != $ac_func;
27823 ;
27824 return 0;
27825}
27826_ACEOF
27827rm -f conftest.$ac_objext conftest$ac_exeext
27828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27829 (eval $ac_link) 2>&5
27830 ac_status=$?
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); } &&
27833 { ac_try='test -s conftest$ac_exeext'
27834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835 (eval $ac_try) 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
27839 eval "$as_ac_var=yes"
27840else
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
27844eval "$as_ac_var=no"
27845fi
27846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27847fi
27848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27849echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27850if test `eval echo '${'$as_ac_var'}'` = yes; then
27851 cat >>confdefs.h <<_ACEOF
27852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27853_ACEOF
27854 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27855#define HAVE_NANOSLEEP 1
e6cc62c6 27856_ACEOF
4f14bcd8 27857
10f2d63a 27858else
e6cc62c6
VS
27859
27860 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27861echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27862if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27864else
e6cc62c6 27865 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27866LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27867cat >conftest.$ac_ext <<_ACEOF
27868#line $LINENO "configure"
27869/* confdefs.h. */
27870_ACEOF
27871cat confdefs.h >>conftest.$ac_ext
27872cat >>conftest.$ac_ext <<_ACEOF
27873/* end confdefs.h. */
27874
10f2d63a 27875/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27876#ifdef __cplusplus
27877extern "C"
27878#endif
10f2d63a 27879/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27880 builtin and then its argument prototype would still apply. */
27881char nanosleep ();
27882int
27883main ()
27884{
27885nanosleep ();
27886 ;
27887 return 0;
27888}
27889_ACEOF
27890rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892 (eval $ac_link) 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); } &&
27896 { ac_try='test -s conftest$ac_exeext'
27897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27898 (eval $ac_try) 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
27902 ac_cv_lib_posix4_nanosleep=yes
27903else
27904 echo "$as_me: failed program was:" >&5
27905sed 's/^/| /' conftest.$ac_ext >&5
27906
27907ac_cv_lib_posix4_nanosleep=no
27908fi
27909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27910LIBS=$ac_check_lib_save_LIBS
27911fi
27912echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27913echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27914if test $ac_cv_lib_posix4_nanosleep = yes; then
27915
27916 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27917#define HAVE_NANOSLEEP 1
e6cc62c6 27918_ACEOF
4f14bcd8 27919
3d63bc3a 27920 POSIX4_LINK=" -lposix4"
e6cc62c6 27921
10f2d63a 27922else
10f2d63a 27923
e6cc62c6
VS
27924
27925for ac_func in usleep
4f14bcd8 27926do
e6cc62c6
VS
27927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27928echo "$as_me:$LINENO: checking for $ac_func" >&5
27929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27930if eval "test \"\${$as_ac_var+set}\" = set"; then
27931 echo $ECHO_N "(cached) $ECHO_C" >&6
27932else
27933 cat >conftest.$ac_ext <<_ACEOF
27934#line $LINENO "configure"
27935/* confdefs.h. */
27936_ACEOF
27937cat confdefs.h >>conftest.$ac_ext
27938cat >>conftest.$ac_ext <<_ACEOF
27939/* end confdefs.h. */
4f14bcd8 27940/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27941 which can conflict with char $ac_func (); below.
27942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27943 <limits.h> exists even on freestanding compilers. */
27944#ifdef __STDC__
27945# include <limits.h>
27946#else
27947# include <assert.h>
27948#endif
4f14bcd8 27949/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27950#ifdef __cplusplus
27951extern "C"
27952{
27953#endif
4f14bcd8 27954/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27955 builtin and then its argument prototype would still apply. */
27956char $ac_func ();
4f14bcd8
GD
27957/* The GNU C library defines this for functions which it implements
27958 to always fail with ENOSYS. Some functions are actually named
27959 something starting with __ and the normal name is an alias. */
27960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27961choke me
27962#else
e6cc62c6
VS
27963char (*f) () = $ac_func;
27964#endif
27965#ifdef __cplusplus
27966}
4f14bcd8
GD
27967#endif
27968
e6cc62c6
VS
27969int
27970main ()
27971{
27972return f != $ac_func;
27973 ;
27974 return 0;
27975}
27976_ACEOF
27977rm -f conftest.$ac_objext conftest$ac_exeext
27978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27979 (eval $ac_link) 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } &&
27983 { ac_try='test -s conftest$ac_exeext'
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; }; then
27989 eval "$as_ac_var=yes"
27990else
27991 echo "$as_me: failed program was:" >&5
27992sed 's/^/| /' conftest.$ac_ext >&5
27993
27994eval "$as_ac_var=no"
27995fi
27996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27997fi
27998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27999echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28000if test `eval echo '${'$as_ac_var'}'` = yes; then
28001 cat >>confdefs.h <<_ACEOF
28002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28003_ACEOF
28004 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28005#define HAVE_USLEEP 1
e6cc62c6 28006_ACEOF
4f14bcd8 28007
698dcdb6 28008else
e6cc62c6
VS
28009 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28010echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28011
10f2d63a 28012fi
4f14bcd8 28013done
10f2d63a 28014
e6cc62c6
VS
28015
28016
6232543b 28017fi
10f2d63a 28018
e6cc62c6
VS
28019
28020
1e487827 28021fi
4f14bcd8 28022done
703e0a69 28023
10f2d63a
VZ
28024fi
28025
e6cc62c6
VS
28026
28027
4f14bcd8 28028for ac_func in uname gethostname
70846f0a 28029do
e6cc62c6
VS
28030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28031echo "$as_me:$LINENO: checking for $ac_func" >&5
28032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28033if eval "test \"\${$as_ac_var+set}\" = set"; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28035else
28036 cat >conftest.$ac_ext <<_ACEOF
28037#line $LINENO "configure"
28038/* confdefs.h. */
28039_ACEOF
28040cat confdefs.h >>conftest.$ac_ext
28041cat >>conftest.$ac_ext <<_ACEOF
28042/* end confdefs.h. */
70846f0a 28043/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28044 which can conflict with char $ac_func (); below.
28045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28046 <limits.h> exists even on freestanding compilers. */
28047#ifdef __STDC__
28048# include <limits.h>
28049#else
28050# include <assert.h>
28051#endif
70846f0a 28052/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28053#ifdef __cplusplus
28054extern "C"
28055{
28056#endif
70846f0a 28057/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28058 builtin and then its argument prototype would still apply. */
28059char $ac_func ();
70846f0a
VZ
28060/* The GNU C library defines this for functions which it implements
28061 to always fail with ENOSYS. Some functions are actually named
28062 something starting with __ and the normal name is an alias. */
28063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28064choke me
28065#else
e6cc62c6
VS
28066char (*f) () = $ac_func;
28067#endif
28068#ifdef __cplusplus
28069}
70846f0a
VZ
28070#endif
28071
e6cc62c6
VS
28072int
28073main ()
28074{
28075return f != $ac_func;
28076 ;
28077 return 0;
28078}
28079_ACEOF
28080rm -f conftest.$ac_objext conftest$ac_exeext
28081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28082 (eval $ac_link) 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } &&
28086 { ac_try='test -s conftest$ac_exeext'
28087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088 (eval $ac_try) 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 eval "$as_ac_var=yes"
28093else
28094 echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
28097eval "$as_ac_var=no"
28098fi
28099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28100fi
28101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28102echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28103if test `eval echo '${'$as_ac_var'}'` = yes; then
28104 cat >>confdefs.h <<_ACEOF
28105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28106_ACEOF
4f14bcd8 28107 break
70846f0a
VZ
28108fi
28109done
28110
8284b0c5
MB
28111
28112
e6cc62c6
VS
28113
28114ac_ext=cc
4f14bcd8 28115ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28119
8284b0c5 28120
4f14bcd8
GD
28121
28122for ac_func in strtok_r
10f2d63a 28123do
e6cc62c6
VS
28124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28125echo "$as_me:$LINENO: checking for $ac_func" >&5
28126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28127if eval "test \"\${$as_ac_var+set}\" = set"; then
28128 echo $ECHO_N "(cached) $ECHO_C" >&6
28129else
28130 cat >conftest.$ac_ext <<_ACEOF
28131#line $LINENO "configure"
28132/* confdefs.h. */
28133_ACEOF
28134cat confdefs.h >>conftest.$ac_ext
28135cat >>conftest.$ac_ext <<_ACEOF
28136/* end confdefs.h. */
4f14bcd8 28137/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28138 which can conflict with char $ac_func (); below.
28139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28140 <limits.h> exists even on freestanding compilers. */
28141#ifdef __STDC__
28142# include <limits.h>
28143#else
28144# include <assert.h>
28145#endif
4f14bcd8
GD
28146/* Override any gcc2 internal prototype to avoid an error. */
28147#ifdef __cplusplus
28148extern "C"
e6cc62c6 28149{
4f14bcd8
GD
28150#endif
28151/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28152 builtin and then its argument prototype would still apply. */
28153char $ac_func ();
4f14bcd8
GD
28154/* The GNU C library defines this for functions which it implements
28155 to always fail with ENOSYS. Some functions are actually named
28156 something starting with __ and the normal name is an alias. */
28157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28158choke me
28159#else
e6cc62c6
VS
28160char (*f) () = $ac_func;
28161#endif
28162#ifdef __cplusplus
28163}
4f14bcd8
GD
28164#endif
28165
e6cc62c6
VS
28166int
28167main ()
28168{
28169return f != $ac_func;
28170 ;
28171 return 0;
28172}
28173_ACEOF
28174rm -f conftest.$ac_objext conftest$ac_exeext
28175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28176 (eval $ac_link) 2>&5
28177 ac_status=$?
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } &&
28180 { ac_try='test -s conftest$ac_exeext'
28181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28182 (eval $ac_try) 2>&5
28183 ac_status=$?
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
28186 eval "$as_ac_var=yes"
28187else
28188 echo "$as_me: failed program was:" >&5
28189sed 's/^/| /' conftest.$ac_ext >&5
28190
28191eval "$as_ac_var=no"
28192fi
28193rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28194fi
28195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28197if test `eval echo '${'$as_ac_var'}'` = yes; then
28198 cat >>confdefs.h <<_ACEOF
28199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28200_ACEOF
4f14bcd8 28201
10f2d63a
VZ
28202fi
28203done
28204
8284b0c5 28205
4f14bcd8 28206ac_ext=c
4f14bcd8 28207ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28210ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28211
5c6fa7d2 28212
8284b0c5 28213INET_LINK=
e6cc62c6 28214
4f14bcd8
GD
28215for ac_func in inet_addr
28216do
e6cc62c6
VS
28217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28218echo "$as_me:$LINENO: checking for $ac_func" >&5
28219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28220if eval "test \"\${$as_ac_var+set}\" = set"; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28222else
28223 cat >conftest.$ac_ext <<_ACEOF
28224#line $LINENO "configure"
28225/* confdefs.h. */
28226_ACEOF
28227cat confdefs.h >>conftest.$ac_ext
28228cat >>conftest.$ac_ext <<_ACEOF
28229/* end confdefs.h. */
4f14bcd8 28230/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28231 which can conflict with char $ac_func (); below.
28232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28233 <limits.h> exists even on freestanding compilers. */
28234#ifdef __STDC__
28235# include <limits.h>
28236#else
28237# include <assert.h>
28238#endif
10f2d63a 28239/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28240#ifdef __cplusplus
28241extern "C"
28242{
28243#endif
10f2d63a 28244/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28245 builtin and then its argument prototype would still apply. */
28246char $ac_func ();
4f14bcd8
GD
28247/* The GNU C library defines this for functions which it implements
28248 to always fail with ENOSYS. Some functions are actually named
28249 something starting with __ and the normal name is an alias. */
28250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28251choke me
28252#else
e6cc62c6
VS
28253char (*f) () = $ac_func;
28254#endif
28255#ifdef __cplusplus
28256}
4f14bcd8
GD
28257#endif
28258
e6cc62c6
VS
28259int
28260main ()
28261{
28262return f != $ac_func;
28263 ;
28264 return 0;
28265}
28266_ACEOF
28267rm -f conftest.$ac_objext conftest$ac_exeext
28268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28269 (eval $ac_link) 2>&5
28270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
28273 { ac_try='test -s conftest$ac_exeext'
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; }; then
28279 eval "$as_ac_var=yes"
28280else
28281 echo "$as_me: failed program was:" >&5
28282sed 's/^/| /' conftest.$ac_ext >&5
28283
28284eval "$as_ac_var=no"
28285fi
28286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28287fi
28288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28290if test `eval echo '${'$as_ac_var'}'` = yes; then
28291 cat >>confdefs.h <<_ACEOF
28292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28293_ACEOF
28294 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28295#define HAVE_INET_ADDR 1
e6cc62c6 28296_ACEOF
10f2d63a
VZ
28297
28298else
e6cc62c6
VS
28299
28300 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28301echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28302if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28304else
e6cc62c6 28305 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28306LIBS="-lnsl $LIBS"
e6cc62c6
VS
28307cat >conftest.$ac_ext <<_ACEOF
28308#line $LINENO "configure"
28309/* confdefs.h. */
28310_ACEOF
28311cat confdefs.h >>conftest.$ac_ext
28312cat >>conftest.$ac_ext <<_ACEOF
28313/* end confdefs.h. */
28314
10f2d63a 28315/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28316#ifdef __cplusplus
28317extern "C"
28318#endif
10f2d63a 28319/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28320 builtin and then its argument prototype would still apply. */
28321char inet_addr ();
28322int
28323main ()
28324{
28325inet_addr ();
28326 ;
28327 return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28332 (eval $ac_link) 2>&5
28333 ac_status=$?
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } &&
28336 { ac_try='test -s conftest$ac_exeext'
28337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338 (eval $ac_try) 2>&5
28339 ac_status=$?
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
28342 ac_cv_lib_nsl_inet_addr=yes
28343else
28344 echo "$as_me: failed program was:" >&5
28345sed 's/^/| /' conftest.$ac_ext >&5
28346
28347ac_cv_lib_nsl_inet_addr=no
28348fi
28349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28350LIBS=$ac_check_lib_save_LIBS
28351fi
28352echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28353echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28354if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28355 INET_LINK="nsl"
10f2d63a 28356else
0e012a93
VZ
28357
28358 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
28359echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28360if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28362else
e6cc62c6 28363 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28364LIBS="-lresolv $LIBS"
e6cc62c6
VS
28365cat >conftest.$ac_ext <<_ACEOF
28366#line $LINENO "configure"
28367/* confdefs.h. */
28368_ACEOF
28369cat confdefs.h >>conftest.$ac_ext
28370cat >>conftest.$ac_ext <<_ACEOF
28371/* end confdefs.h. */
28372
5c6fa7d2 28373/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28374#ifdef __cplusplus
28375extern "C"
28376#endif
5c6fa7d2 28377/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28378 builtin and then its argument prototype would still apply. */
28379char inet_addr ();
28380int
28381main ()
28382{
28383inet_addr ();
28384 ;
28385 return 0;
28386}
28387_ACEOF
28388rm -f conftest.$ac_objext conftest$ac_exeext
28389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28390 (eval $ac_link) 2>&5
28391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } &&
28394 { ac_try='test -s conftest$ac_exeext'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_lib_resolv_inet_addr=yes
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405ac_cv_lib_resolv_inet_addr=no
28406fi
28407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28408LIBS=$ac_check_lib_save_LIBS
28409fi
28410echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28411echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28412if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28413 INET_LINK="resolv"
698dcdb6 28414else
0e012a93
VZ
28415
28416 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
28417echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28418if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28419 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28420else
e6cc62c6 28421 ac_check_lib_save_LIBS=$LIBS
3c011993 28422LIBS="-lsocket $LIBS"
e6cc62c6
VS
28423cat >conftest.$ac_ext <<_ACEOF
28424#line $LINENO "configure"
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430
3c011993 28431/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28432#ifdef __cplusplus
28433extern "C"
28434#endif
3c011993 28435/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28436 builtin and then its argument prototype would still apply. */
28437char inet_addr ();
28438int
28439main ()
28440{
28441inet_addr ();
28442 ;
28443 return 0;
28444}
28445_ACEOF
28446rm -f conftest.$ac_objext conftest$ac_exeext
28447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28448 (eval $ac_link) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -s conftest$ac_exeext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_cv_lib_socket_inet_addr=yes
28459else
28460 echo "$as_me: failed program was:" >&5
28461sed 's/^/| /' conftest.$ac_ext >&5
28462
28463ac_cv_lib_socket_inet_addr=no
28464fi
28465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28466LIBS=$ac_check_lib_save_LIBS
28467fi
28468echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28469echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28470if test $ac_cv_lib_socket_inet_addr = yes; then
28471 INET_LINK="socket"
4f14bcd8 28472
8284b0c5 28473fi
e6cc62c6 28474
698dcdb6 28475
0e012a93 28476
7b4a847f 28477fi
e6cc62c6
VS
28478
28479
0e012a93 28480
a0b9e27f 28481fi
579d8138 28482
e6cc62c6
VS
28483
28484
5c6fa7d2 28485fi
e6cc62c6
VS
28486done
28487
28488
28489
28490for ac_func in inet_aton
28491do
28492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28493echo "$as_me:$LINENO: checking for $ac_func" >&5
28494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28495if eval "test \"\${$as_ac_var+set}\" = set"; then
28496 echo $ECHO_N "(cached) $ECHO_C" >&6
28497else
28498 cat >conftest.$ac_ext <<_ACEOF
28499#line $LINENO "configure"
28500/* confdefs.h. */
28501_ACEOF
28502cat confdefs.h >>conftest.$ac_ext
28503cat >>conftest.$ac_ext <<_ACEOF
28504/* end confdefs.h. */
28505/* System header to define __stub macros and hopefully few prototypes,
28506 which can conflict with char $ac_func (); below.
28507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28508 <limits.h> exists even on freestanding compilers. */
28509#ifdef __STDC__
28510# include <limits.h>
28511#else
28512# include <assert.h>
28513#endif
28514/* Override any gcc2 internal prototype to avoid an error. */
28515#ifdef __cplusplus
28516extern "C"
28517{
28518#endif
28519/* We use char because int might match the return type of a gcc2
28520 builtin and then its argument prototype would still apply. */
28521char $ac_func ();
28522/* The GNU C library defines this for functions which it implements
28523 to always fail with ENOSYS. Some functions are actually named
28524 something starting with __ and the normal name is an alias. */
28525#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28526choke me
28527#else
28528char (*f) () = $ac_func;
28529#endif
28530#ifdef __cplusplus
28531}
28532#endif
28533
28534int
28535main ()
28536{
28537return f != $ac_func;
28538 ;
28539 return 0;
28540}
28541_ACEOF
28542rm -f conftest.$ac_objext conftest$ac_exeext
28543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28544 (eval $ac_link) 2>&5
28545 ac_status=$?
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } &&
28548 { ac_try='test -s conftest$ac_exeext'
28549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550 (eval $ac_try) 2>&5
28551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; }; then
28554 eval "$as_ac_var=yes"
28555else
28556 echo "$as_me: failed program was:" >&5
28557sed 's/^/| /' conftest.$ac_ext >&5
28558
28559eval "$as_ac_var=no"
28560fi
28561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28562fi
28563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28565if test `eval echo '${'$as_ac_var'}'` = yes; then
28566 cat >>confdefs.h <<_ACEOF
28567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28568_ACEOF
28569 cat >>confdefs.h <<\_ACEOF
28570#define HAVE_INET_ATON 1
28571_ACEOF
28572
28573else
28574
28575 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28576echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28577echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28578if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28580else
28581 ac_check_lib_save_LIBS=$LIBS
28582LIBS="-l$INET_LINK $LIBS"
28583cat >conftest.$ac_ext <<_ACEOF
28584#line $LINENO "configure"
28585/* confdefs.h. */
28586_ACEOF
28587cat confdefs.h >>conftest.$ac_ext
28588cat >>conftest.$ac_ext <<_ACEOF
28589/* end confdefs.h. */
28590
28591/* Override any gcc2 internal prototype to avoid an error. */
28592#ifdef __cplusplus
28593extern "C"
28594#endif
28595/* We use char because int might match the return type of a gcc2
28596 builtin and then its argument prototype would still apply. */
28597char inet_aton ();
28598int
28599main ()
28600{
28601inet_aton ();
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest.$ac_objext conftest$ac_exeext
28607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28608 (eval $ac_link) 2>&5
28609 ac_status=$?
28610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } &&
28612 { ac_try='test -s conftest$ac_exeext'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28615 ac_status=$?
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28618 eval "$as_ac_Lib=yes"
28619else
28620 echo "$as_me: failed program was:" >&5
28621sed 's/^/| /' conftest.$ac_ext >&5
28622
28623eval "$as_ac_Lib=no"
28624fi
28625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28626LIBS=$ac_check_lib_save_LIBS
28627fi
28628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28629echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28630if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28631 cat >>confdefs.h <<\_ACEOF
28632#define HAVE_INET_ATON 1
28633_ACEOF
52127426 28634
a0b9e27f 28635fi
247f5006 28636
8284b0c5 28637
698dcdb6 28638fi
4f14bcd8
GD
28639done
28640
8284b0c5 28641
e6cc62c6
VS
28642if test "x$INET_LINK" != "x"; then
28643 cat >>confdefs.h <<\_ACEOF
28644#define HAVE_INET_ADDR 1
28645_ACEOF
28646
28647 INET_LINK=" -l$INET_LINK"
28648fi
28649
28650fi
a0b9e27f 28651
a0b9e27f 28652
4f14bcd8 28653
edd891e2
VS
28654EXTRALIBS_ESD=
28655echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28656echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28657if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659else
28660 ac_check_lib_save_LIBS=$LIBS
28661LIBS="-lesd $LIBS"
28662cat >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. */
28669
28670/* Override any gcc2 internal prototype to avoid an error. */
28671#ifdef __cplusplus
28672extern "C"
28673#endif
28674/* We use char because int might match the return type of a gcc2
28675 builtin and then its argument prototype would still apply. */
28676char esd_close ();
28677int
28678main ()
28679{
28680esd_close ();
28681 ;
28682 return 0;
28683}
28684_ACEOF
28685rm -f conftest.$ac_objext conftest$ac_exeext
28686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28687 (eval $ac_link) 2>&5
28688 ac_status=$?
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); } &&
28691 { ac_try='test -s conftest$ac_exeext'
28692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
28697 ac_cv_lib_esd_esd_close=yes
28698else
28699 echo "$as_me: failed program was:" >&5
28700sed 's/^/| /' conftest.$ac_ext >&5
28701
28702ac_cv_lib_esd_esd_close=no
28703fi
28704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28705LIBS=$ac_check_lib_save_LIBS
28706fi
28707echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28708echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28709if test $ac_cv_lib_esd_esd_close = yes; then
28710
28711
28712for ac_header in esd.h
28713do
28714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28715if eval "test \"\${$as_ac_Header+set}\" = set"; then
28716 echo "$as_me:$LINENO: checking for $ac_header" >&5
28717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28718if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28720fi
edd891e2
VS
28721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28723else
28724 # Is the header compilable?
edd891e2
VS
28725echo "$as_me:$LINENO: checking $ac_header usability" >&5
28726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28727cat >conftest.$ac_ext <<_ACEOF
28728#line $LINENO "configure"
28729/* confdefs.h. */
28730_ACEOF
28731cat confdefs.h >>conftest.$ac_ext
28732cat >>conftest.$ac_ext <<_ACEOF
28733/* end confdefs.h. */
28734$ac_includes_default
edd891e2 28735#include <$ac_header>
e6cc62c6
VS
28736_ACEOF
28737rm -f conftest.$ac_objext
28738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28739 (eval $ac_compile) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
28743 { ac_try='test -s conftest.$ac_objext'
28744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); }; }; then
28749 ac_header_compiler=yes
28750else
28751 echo "$as_me: failed program was:" >&5
28752sed 's/^/| /' conftest.$ac_ext >&5
28753
28754ac_header_compiler=no
28755fi
28756rm -f conftest.$ac_objext conftest.$ac_ext
28757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28758echo "${ECHO_T}$ac_header_compiler" >&6
28759
28760# Is the header present?
edd891e2
VS
28761echo "$as_me:$LINENO: checking $ac_header presence" >&5
28762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28763cat >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. */
edd891e2 28770#include <$ac_header>
e6cc62c6
VS
28771_ACEOF
28772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28774 ac_status=$?
28775 grep -v '^ *+' conftest.er1 >conftest.err
28776 rm -f conftest.er1
28777 cat conftest.err >&5
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); } >/dev/null; then
28780 if test -s conftest.err; then
28781 ac_cpp_err=$ac_c_preproc_warn_flag
28782 else
28783 ac_cpp_err=
28784 fi
a0b9e27f 28785else
e6cc62c6
VS
28786 ac_cpp_err=yes
28787fi
28788if test -z "$ac_cpp_err"; then
28789 ac_header_preproc=yes
28790else
28791 echo "$as_me: failed program was:" >&5
28792sed 's/^/| /' conftest.$ac_ext >&5
28793
28794 ac_header_preproc=no
28795fi
28796rm -f conftest.err conftest.$ac_ext
28797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28798echo "${ECHO_T}$ac_header_preproc" >&6
28799
28800# So? What about this header?
28801case $ac_header_compiler:$ac_header_preproc in
28802 yes:no )
edd891e2
VS
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28807 (
28808 cat <<\_ASBOX
28809## ------------------------------------ ##
28810## Report this to bug-autoconf@gnu.org. ##
28811## ------------------------------------ ##
28812_ASBOX
28813 ) |
28814 sed "s/^/$as_me: WARNING: /" >&2
28815 ;;
28816 no:yes )
edd891e2
VS
28817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28823 (
28824 cat <<\_ASBOX
28825## ------------------------------------ ##
28826## Report this to bug-autoconf@gnu.org. ##
28827## ------------------------------------ ##
28828_ASBOX
28829 ) |
28830 sed "s/^/$as_me: WARNING: /" >&2
28831 ;;
28832esac
edd891e2
VS
28833echo "$as_me:$LINENO: checking for $ac_header" >&5
28834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28835if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28837else
edd891e2 28838 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28839fi
edd891e2
VS
28840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28842
e6cc62c6 28843fi
edd891e2
VS
28844if test `eval echo '${'$as_ac_Header'}'` = yes; then
28845 cat >>confdefs.h <<_ACEOF
28846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28847_ACEOF
e6cc62c6 28848
edd891e2 28849 EXTRALIBS_ESD="-lesd"
4f14bcd8 28850
a0b9e27f 28851fi
247f5006 28852
edd891e2 28853done
8284b0c5 28854
4f14bcd8 28855
6232543b 28856fi
10f2d63a 28857
703e0a69 28858
8284b0c5 28859
d19d1899
MB
28860echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
28861echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
28862cat >conftest.$ac_ext <<_ACEOF
28863#line $LINENO "configure"
28864/* confdefs.h. */
28865_ACEOF
28866cat confdefs.h >>conftest.$ac_ext
28867cat >>conftest.$ac_ext <<_ACEOF
28868/* end confdefs.h. */
28869#ifdef __linux__
28870 #include <linux/cdrom.h>
28871 #else
28872 /* For Solaris */
28873 #include <sys/cdio.h>
28874 #endif
28875
28876int
28877main ()
28878{
28879struct cdrom_tocentry entry, old_entry;
28880 ;
28881 return 0;
28882}
28883_ACEOF
28884rm -f conftest.$ac_objext
28885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28886 (eval $ac_compile) 2>&5
28887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); } &&
28890 { ac_try='test -s conftest.$ac_objext'
28891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28892 (eval $ac_try) 2>&5
28893 ac_status=$?
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; }; then
28896 echo "$as_me:$LINENO: result: yes" >&5
28897echo "${ECHO_T}yes" >&6
28898 cat >>confdefs.h <<\_ACEOF
28899#define HAVE_KNOWN_CDROM_INTERFACE 1
28900_ACEOF
28901
28902else
28903 echo "$as_me: failed program was:" >&5
28904sed 's/^/| /' conftest.$ac_ext >&5
28905
28906echo "$as_me:$LINENO: result: no" >&5
28907echo "${ECHO_T}no" >&6
28908fi
28909rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28910
28911
28912cat >confcache <<\_ACEOF
4f14bcd8
GD
28913# This file is a shell script that caches the results of configure
28914# tests run on this system so they can be shared between configure
e6cc62c6
VS
28915# scripts and configure runs, see configure's option --config-cache.
28916# It is not useful on other systems. If it contains results you don't
28917# want to keep, you may remove or edit it.
4f14bcd8 28918#
e6cc62c6
VS
28919# config.status only pays attention to the cache file if you give it
28920# the --recheck option to rerun configure.
4f14bcd8 28921#
e6cc62c6
VS
28922# `ac_cv_env_foo' variables (set or unset) will be overridden when
28923# loading this file, other *unset* `ac_cv_foo' will be assigned the
28924# following values.
28925
28926_ACEOF
28927
4f14bcd8
GD
28928# The following way of writing the cache mishandles newlines in values,
28929# but we know of no workaround that is simple, portable, and efficient.
28930# So, don't put newlines in cache variables' values.
28931# Ultrix sh set writes to stderr and can't be redirected directly,
28932# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28933{
28934 (set) 2>&1 |
28935 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28936 *ac_space=\ *)
28937 # `set' does not quote correctly, so add quotes (double-quote
28938 # substitution turns \\\\ into \\, and sed turns \\ into \).
28939 sed -n \
28940 "s/'/'\\\\''/g;
28941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28942 ;;
28943 *)
28944 # `set' quotes correctly as required by POSIX, so do not add quotes.
28945 sed -n \
28946 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28947 ;;
28948 esac;
28949} |
28950 sed '
28951 t clear
28952 : clear
28953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28954 t end
28955 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28956 : end' >>confcache
28957if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28958 if test -w $cache_file; then
e6cc62c6
VS
28959 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28960 cat confcache >$cache_file
f6bcfd97 28961 else
4f14bcd8 28962 echo "not updating unwritable cache $cache_file"
f6bcfd97 28963 fi
4f14bcd8
GD
28964fi
28965rm -f confcache
f6bcfd97 28966
8284b0c5 28967
009fead0 28968CPP_MT_FLAG=
73d617c9 28969if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 28970
e6cc62c6 28971
7274f1c7 28972 THREADS_LINK=
009fead0 28973 THREADS_CFLAGS=
7274f1c7
RL
28974
28975 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28976 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28977 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28978echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28979 wxUSE_THREADS="no"
28980 fi
4f14bcd8 28981 fi
4f14bcd8 28982
7274f1c7 28983 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28984
28985
009fead0
VZ
28986 THREAD_OPTS="-pthread"
28987 case "${host}" in
28988 *-*-solaris2* | *-*-sunos4* )
28989 if test "x$GCC" = "xyes"; then
126be6b4 28990 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28991 else
28992 THREAD_OPTS="-mt $THREAD_OPTS"
28993 fi
28994 ;;
28995 *-*-freebsd*)
28996 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28997 ;;
17234b26
MB
28998 *-*-darwin* | *-*-cygwin* )
28999 THREAD_OPTS=""
4101db81 29000 ;;
8f4a9a10 29001 *-*-aix*)
009fead0
VZ
29002 THREAD_OPTS="pthreads"
29003 ;;
4f5a7f74
VZ
29004 *-hp-hpux* )
29005 if test "x$GCC" != "xyes"; then
29006 THREAD_OPTS=""
29007 fi
89e3b3e4
VZ
29008 ;;
29009
29010 *-*-irix* )
29011 if test "x$GCC" = "xyes"; then
29012 THREAD_OPTS=""
29013 fi
29014 ;;
29015
29016 *-*-*UnixWare*)
29017 if test "x$GCC" != "xyes"; then
29018 THREAD_OPTS="-Ethread"
29019 fi
29020 ;;
009fead0 29021 esac
4f14bcd8 29022
02a1dfba 29023 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29024
009fead0
VZ
29025 THREADS_OK=no
29026 for flag in $THREAD_OPTS; do
29027 case $flag in
29028 none)
e6cc62c6
VS
29029 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29030echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29031 ;;
698dcdb6 29032
009fead0 29033 -*)
e6cc62c6
VS
29034 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29035echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29036 THREADS_CFLAGS="$flag"
29037 ;;
698dcdb6 29038
009fead0 29039 *)
e6cc62c6
VS
29040 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29041echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29042 THREADS_LINK="-l$flag"
29043 ;;
29044 esac
10f2d63a 29045
009fead0
VZ
29046 save_LIBS="$LIBS"
29047 save_CFLAGS="$CFLAGS"
29048 LIBS="$THREADS_LINK $LIBS"
04727afd 29049 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29050
e6cc62c6
VS
29051 cat >conftest.$ac_ext <<_ACEOF
29052#line $LINENO "configure"
29053/* confdefs.h. */
29054_ACEOF
29055cat confdefs.h >>conftest.$ac_ext
29056cat >>conftest.$ac_ext <<_ACEOF
29057/* end confdefs.h. */
009fead0 29058#include <pthread.h>
e6cc62c6
VS
29059int
29060main ()
29061{
009fead0 29062pthread_create(0,0,0,0);
e6cc62c6
VS
29063 ;
29064 return 0;
29065}
29066_ACEOF
29067rm -f conftest.$ac_objext conftest$ac_exeext
29068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29069 (eval $ac_link) 2>&5
29070 ac_status=$?
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); } &&
29073 { ac_try='test -s conftest$ac_exeext'
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
009fead0 29079 THREADS_OK=yes
10f2d63a 29080else
e6cc62c6
VS
29081 echo "$as_me: failed program was:" >&5
29082sed 's/^/| /' conftest.$ac_ext >&5
29083
6232543b 29084fi
e6cc62c6 29085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29086
009fead0
VZ
29087 LIBS="$save_LIBS"
29088 CFLAGS="$save_CFLAGS"
d9b9876f 29089
e6cc62c6
VS
29090 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29091echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29092 if test "x$THREADS_OK" = "xyes"; then
29093 break;
29094 fi
d9b9876f 29095
009fead0
VZ
29096 THREADS_LINK=""
29097 THREADS_CFLAGS=""
29098 done
4f14bcd8 29099
009fead0
VZ
29100 if test "x$THREADS_OK" != "xyes"; then
29101 wxUSE_THREADS=no
e6cc62c6
VS
29102 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29103echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29104 else
db82f09e
VZ
29105 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29106 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29107
e6cc62c6
VS
29108 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29109echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29110 flag=no
29111 case "${host}" in
2b5f62a0
VZ
29112 *-aix*)
29113 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29114 flag="-D_THREAD_SAFE"
29115 ;;
29116 *-freebsd*)
009fead0
VZ
29117 flag="-D_THREAD_SAFE"
29118 ;;
06313569
GD
29119 *-hp-hpux* )
29120 flag="-D_REENTRANT"
4f5a7f74
VZ
29121 if test "x$GCC" != "xyes"; then
29122 flag="$flag -D_RWSTD_MULTI_THREAD"
29123 fi
06313569 29124 ;;
009fead0
VZ
29125 *solaris* | alpha*-osf*)
29126 flag="-D_REENTRANT"
29127 ;;
29128 esac
e6cc62c6
VS
29129 echo "$as_me:$LINENO: result: ${flag}" >&5
29130echo "${ECHO_T}${flag}" >&6
009fead0 29131 if test "x$flag" != xno; then
04727afd 29132 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29133 fi
29134
009fead0 29135 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29136 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29137 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29138 fi
29139 fi
4f14bcd8 29140 fi
4f14bcd8 29141
7274f1c7 29142 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29143
29144for ac_func in thr_setconcurrency
4f14bcd8 29145do
e6cc62c6
VS
29146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29147echo "$as_me:$LINENO: checking for $ac_func" >&5
29148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29149if eval "test \"\${$as_ac_var+set}\" = set"; then
29150 echo $ECHO_N "(cached) $ECHO_C" >&6
29151else
29152 cat >conftest.$ac_ext <<_ACEOF
29153#line $LINENO "configure"
29154/* confdefs.h. */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h. */
4f14bcd8 29159/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29160 which can conflict with char $ac_func (); below.
29161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29162 <limits.h> exists even on freestanding compilers. */
29163#ifdef __STDC__
29164# include <limits.h>
29165#else
29166# include <assert.h>
29167#endif
4f14bcd8 29168/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29169#ifdef __cplusplus
29170extern "C"
29171{
29172#endif
4f14bcd8 29173/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29174 builtin and then its argument prototype would still apply. */
29175char $ac_func ();
4f14bcd8
GD
29176/* The GNU C library defines this for functions which it implements
29177 to always fail with ENOSYS. Some functions are actually named
29178 something starting with __ and the normal name is an alias. */
29179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29180choke me
29181#else
e6cc62c6
VS
29182char (*f) () = $ac_func;
29183#endif
29184#ifdef __cplusplus
29185}
4f14bcd8
GD
29186#endif
29187
e6cc62c6
VS
29188int
29189main ()
29190{
29191return f != $ac_func;
29192 ;
29193 return 0;
29194}
29195_ACEOF
29196rm -f conftest.$ac_objext conftest$ac_exeext
29197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29198 (eval $ac_link) 2>&5
29199 ac_status=$?
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); } &&
29202 { ac_try='test -s conftest$ac_exeext'
29203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204 (eval $ac_try) 2>&5
29205 ac_status=$?
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); }; }; then
29208 eval "$as_ac_var=yes"
29209else
29210 echo "$as_me: failed program was:" >&5
29211sed 's/^/| /' conftest.$ac_ext >&5
29212
29213eval "$as_ac_var=no"
29214fi
29215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29216fi
29217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29219if test `eval echo '${'$as_ac_var'}'` = yes; then
29220 cat >>confdefs.h <<_ACEOF
29221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29222_ACEOF
698dcdb6 29223
10f2d63a 29224fi
4f14bcd8 29225done
10f2d63a 29226
8284b0c5 29227
e6cc62c6
VS
29228
29229for ac_header in sched.h
4f14bcd8 29230do
e6cc62c6
VS
29231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29232if eval "test \"\${$as_ac_Header+set}\" = set"; then
29233 echo "$as_me:$LINENO: checking for $ac_header" >&5
29234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29235if eval "test \"\${$as_ac_Header+set}\" = set"; then
29236 echo $ECHO_N "(cached) $ECHO_C" >&6
29237fi
29238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29240else
29241 # Is the header compilable?
29242echo "$as_me:$LINENO: checking $ac_header usability" >&5
29243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29244cat >conftest.$ac_ext <<_ACEOF
29245#line $LINENO "configure"
29246/* confdefs.h. */
29247_ACEOF
29248cat confdefs.h >>conftest.$ac_ext
29249cat >>conftest.$ac_ext <<_ACEOF
29250/* end confdefs.h. */
29251$ac_includes_default
29252#include <$ac_header>
29253_ACEOF
29254rm -f conftest.$ac_objext
29255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29256 (eval $ac_compile) 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); } &&
29260 { ac_try='test -s conftest.$ac_objext'
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29263 ac_status=$?
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; }; then
29266 ac_header_compiler=yes
29267else
29268 echo "$as_me: failed program was:" >&5
29269sed 's/^/| /' conftest.$ac_ext >&5
29270
29271ac_header_compiler=no
29272fi
29273rm -f conftest.$ac_objext conftest.$ac_ext
29274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29275echo "${ECHO_T}$ac_header_compiler" >&6
29276
29277# Is the header present?
29278echo "$as_me:$LINENO: checking $ac_header presence" >&5
29279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29280cat >conftest.$ac_ext <<_ACEOF
29281#line $LINENO "configure"
29282/* confdefs.h. */
29283_ACEOF
29284cat confdefs.h >>conftest.$ac_ext
29285cat >>conftest.$ac_ext <<_ACEOF
29286/* end confdefs.h. */
29287#include <$ac_header>
29288_ACEOF
29289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29291 ac_status=$?
29292 grep -v '^ *+' conftest.er1 >conftest.err
29293 rm -f conftest.er1
29294 cat conftest.err >&5
29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296 (exit $ac_status); } >/dev/null; then
29297 if test -s conftest.err; then
29298 ac_cpp_err=$ac_c_preproc_warn_flag
29299 else
29300 ac_cpp_err=
29301 fi
29302else
29303 ac_cpp_err=yes
29304fi
29305if test -z "$ac_cpp_err"; then
29306 ac_header_preproc=yes
29307else
29308 echo "$as_me: failed program was:" >&5
29309sed 's/^/| /' conftest.$ac_ext >&5
29310
29311 ac_header_preproc=no
29312fi
29313rm -f conftest.err conftest.$ac_ext
29314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29315echo "${ECHO_T}$ac_header_preproc" >&6
29316
29317# So? What about this header?
29318case $ac_header_compiler:$ac_header_preproc in
29319 yes:no )
29320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29321echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29324 (
29325 cat <<\_ASBOX
29326## ------------------------------------ ##
29327## Report this to bug-autoconf@gnu.org. ##
29328## ------------------------------------ ##
29329_ASBOX
29330 ) |
29331 sed "s/^/$as_me: WARNING: /" >&2
29332 ;;
29333 no:yes )
29334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29340 (
29341 cat <<\_ASBOX
29342## ------------------------------------ ##
29343## Report this to bug-autoconf@gnu.org. ##
29344## ------------------------------------ ##
29345_ASBOX
29346 ) |
29347 sed "s/^/$as_me: WARNING: /" >&2
29348 ;;
29349esac
29350echo "$as_me:$LINENO: checking for $ac_header" >&5
29351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29352if eval "test \"\${$as_ac_Header+set}\" = set"; then
29353 echo $ECHO_N "(cached) $ECHO_C" >&6
29354else
29355 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29356fi
e6cc62c6
VS
29357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29359
10f2d63a 29360fi
e6cc62c6
VS
29361if test `eval echo '${'$as_ac_Header'}'` = yes; then
29362 cat >>confdefs.h <<_ACEOF
29363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29364_ACEOF
29365
f6bcfd97 29366fi
e6cc62c6 29367
4f14bcd8 29368done
f6bcfd97 29369
009fead0 29370 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29371 echo "$as_me:$LINENO: checking for sched_yield" >&5
29372echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29373if test "${ac_cv_func_sched_yield+set}" = set; then
29374 echo $ECHO_N "(cached) $ECHO_C" >&6
29375else
29376 cat >conftest.$ac_ext <<_ACEOF
29377#line $LINENO "configure"
29378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
009fead0 29383/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29384 which can conflict with char sched_yield (); below.
29385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29386 <limits.h> exists even on freestanding compilers. */
29387#ifdef __STDC__
29388# include <limits.h>
29389#else
29390# include <assert.h>
29391#endif
4f14bcd8 29392/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29393#ifdef __cplusplus
29394extern "C"
29395{
29396#endif
4f14bcd8 29397/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29398 builtin and then its argument prototype would still apply. */
29399char sched_yield ();
009fead0
VZ
29400/* The GNU C library defines this for functions which it implements
29401 to always fail with ENOSYS. Some functions are actually named
29402 something starting with __ and the normal name is an alias. */
29403#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29404choke me
29405#else
e6cc62c6
VS
29406char (*f) () = sched_yield;
29407#endif
29408#ifdef __cplusplus
29409}
009fead0
VZ
29410#endif
29411
e6cc62c6
VS
29412int
29413main ()
29414{
29415return f != sched_yield;
29416 ;
29417 return 0;
29418}
29419_ACEOF
29420rm -f conftest.$ac_objext conftest$ac_exeext
29421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29422 (eval $ac_link) 2>&5
29423 ac_status=$?
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } &&
29426 { ac_try='test -s conftest$ac_exeext'
29427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29428 (eval $ac_try) 2>&5
29429 ac_status=$?
29430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431 (exit $ac_status); }; }; then
29432 ac_cv_func_sched_yield=yes
29433else
29434 echo "$as_me: failed program was:" >&5
29435sed 's/^/| /' conftest.$ac_ext >&5
29436
29437ac_cv_func_sched_yield=no
29438fi
29439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29440fi
29441echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29442echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29443if test $ac_cv_func_sched_yield = yes; then
29444 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29445#define HAVE_SCHED_YIELD 1
e6cc62c6 29446_ACEOF
10f2d63a 29447
4f14bcd8 29448else
009fead0 29449
e6cc62c6
VS
29450 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29451echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29452if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29454else
e6cc62c6 29455 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29456LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29457cat >conftest.$ac_ext <<_ACEOF
29458#line $LINENO "configure"
29459/* confdefs.h. */
29460_ACEOF
29461cat confdefs.h >>conftest.$ac_ext
29462cat >>conftest.$ac_ext <<_ACEOF
29463/* end confdefs.h. */
29464
4f14bcd8 29465/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29466#ifdef __cplusplus
29467extern "C"
29468#endif
4f14bcd8 29469/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29470 builtin and then its argument prototype would still apply. */
29471char sched_yield ();
29472int
29473main ()
29474{
29475sched_yield ();
29476 ;
29477 return 0;
29478}
29479_ACEOF
29480rm -f conftest.$ac_objext conftest$ac_exeext
29481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29482 (eval $ac_link) 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); } &&
29486 { ac_try='test -s conftest$ac_exeext'
29487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29488 (eval $ac_try) 2>&5
29489 ac_status=$?
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; }; then
29492 ac_cv_lib_posix4_sched_yield=yes
29493else
29494 echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497ac_cv_lib_posix4_sched_yield=no
29498fi
29499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29500LIBS=$ac_check_lib_save_LIBS
29501fi
29502echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29503echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29504if test $ac_cv_lib_posix4_sched_yield = yes; then
29505 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29506#define HAVE_SCHED_YIELD 1
e6cc62c6 29507_ACEOF
3d63bc3a 29508 POSIX4_LINK=" -lposix4"
4f14bcd8 29509else
e6cc62c6
VS
29510 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29511echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29512
54276ccf
VZ
29513fi
29514
e6cc62c6
VS
29515
29516
4f14bcd8 29517fi
698dcdb6 29518
009fead0 29519 fi
10f2d63a 29520
7274f1c7 29521 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29522 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29523echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29524if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29525 echo $ECHO_N "(cached) $ECHO_C" >&6
29526else
29527 cat >conftest.$ac_ext <<_ACEOF
29528#line $LINENO "configure"
29529/* confdefs.h. */
29530_ACEOF
29531cat confdefs.h >>conftest.$ac_ext
29532cat >>conftest.$ac_ext <<_ACEOF
29533/* end confdefs.h. */
009fead0 29534/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29535 which can conflict with char pthread_attr_getschedpolicy (); below.
29536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29537 <limits.h> exists even on freestanding compilers. */
29538#ifdef __STDC__
29539# include <limits.h>
29540#else
29541# include <assert.h>
29542#endif
4f14bcd8 29543/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29544#ifdef __cplusplus
29545extern "C"
29546{
29547#endif
4f14bcd8 29548/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29549 builtin and then its argument prototype would still apply. */
29550char pthread_attr_getschedpolicy ();
009fead0
VZ
29551/* The GNU C library defines this for functions which it implements
29552 to always fail with ENOSYS. Some functions are actually named
29553 something starting with __ and the normal name is an alias. */
29554#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29555choke me
29556#else
e6cc62c6
VS
29557char (*f) () = pthread_attr_getschedpolicy;
29558#endif
29559#ifdef __cplusplus
29560}
009fead0
VZ
29561#endif
29562
e6cc62c6
VS
29563int
29564main ()
29565{
29566return f != pthread_attr_getschedpolicy;
29567 ;
29568 return 0;
29569}
29570_ACEOF
29571rm -f conftest.$ac_objext conftest$ac_exeext
29572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29573 (eval $ac_link) 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); } &&
29577 { ac_try='test -s conftest$ac_exeext'
29578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29579 (eval $ac_try) 2>&5
29580 ac_status=$?
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); }; }; then
29583 ac_cv_func_pthread_attr_getschedpolicy=yes
29584else
29585 echo "$as_me: failed program was:" >&5
29586sed 's/^/| /' conftest.$ac_ext >&5
29587
29588ac_cv_func_pthread_attr_getschedpolicy=no
29589fi
29590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29591fi
29592echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29593echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29594if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29595 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29596echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29597if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29598 echo $ECHO_N "(cached) $ECHO_C" >&6
29599else
29600 cat >conftest.$ac_ext <<_ACEOF
29601#line $LINENO "configure"
29602/* confdefs.h. */
29603_ACEOF
29604cat confdefs.h >>conftest.$ac_ext
29605cat >>conftest.$ac_ext <<_ACEOF
29606/* end confdefs.h. */
a0b9e27f 29607/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29608 which can conflict with char pthread_attr_setschedparam (); below.
29609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29610 <limits.h> exists even on freestanding compilers. */
29611#ifdef __STDC__
29612# include <limits.h>
29613#else
29614# include <assert.h>
29615#endif
422107f9 29616/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29617#ifdef __cplusplus
29618extern "C"
29619{
29620#endif
422107f9 29621/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29622 builtin and then its argument prototype would still apply. */
29623char pthread_attr_setschedparam ();
009fead0
VZ
29624/* The GNU C library defines this for functions which it implements
29625 to always fail with ENOSYS. Some functions are actually named
29626 something starting with __ and the normal name is an alias. */
29627#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29628choke me
29629#else
e6cc62c6
VS
29630char (*f) () = pthread_attr_setschedparam;
29631#endif
29632#ifdef __cplusplus
29633}
009fead0
VZ
29634#endif
29635
e6cc62c6
VS
29636int
29637main ()
29638{
29639return f != pthread_attr_setschedparam;
29640 ;
29641 return 0;
29642}
29643_ACEOF
29644rm -f conftest.$ac_objext conftest$ac_exeext
29645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29646 (eval $ac_link) 2>&5
29647 ac_status=$?
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } &&
29650 { ac_try='test -s conftest$ac_exeext'
29651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29652 (eval $ac_try) 2>&5
29653 ac_status=$?
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); }; }; then
29656 ac_cv_func_pthread_attr_setschedparam=yes
29657else
29658 echo "$as_me: failed program was:" >&5
29659sed 's/^/| /' conftest.$ac_ext >&5
29660
29661ac_cv_func_pthread_attr_setschedparam=no
29662fi
29663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29664fi
29665echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29666echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29667if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29668 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29669echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29670if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29671 echo $ECHO_N "(cached) $ECHO_C" >&6
29672else
29673 cat >conftest.$ac_ext <<_ACEOF
29674#line $LINENO "configure"
29675/* confdefs.h. */
29676_ACEOF
29677cat confdefs.h >>conftest.$ac_ext
29678cat >>conftest.$ac_ext <<_ACEOF
29679/* end confdefs.h. */
ef33c576 29680/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29681 which can conflict with char sched_get_priority_max (); below.
29682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29683 <limits.h> exists even on freestanding compilers. */
29684#ifdef __STDC__
29685# include <limits.h>
29686#else
29687# include <assert.h>
29688#endif
4f14bcd8 29689/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29690#ifdef __cplusplus
29691extern "C"
29692{
29693#endif
4f14bcd8 29694/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29695 builtin and then its argument prototype would still apply. */
29696char sched_get_priority_max ();
009fead0
VZ
29697/* The GNU C library defines this for functions which it implements
29698 to always fail with ENOSYS. Some functions are actually named
29699 something starting with __ and the normal name is an alias. */
29700#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29701choke me
29702#else
e6cc62c6
VS
29703char (*f) () = sched_get_priority_max;
29704#endif
29705#ifdef __cplusplus
29706}
009fead0
VZ
29707#endif
29708
e6cc62c6
VS
29709int
29710main ()
29711{
29712return f != sched_get_priority_max;
29713 ;
29714 return 0;
29715}
29716_ACEOF
29717rm -f conftest.$ac_objext conftest$ac_exeext
29718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29719 (eval $ac_link) 2>&5
29720 ac_status=$?
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } &&
29723 { ac_try='test -s conftest$ac_exeext'
29724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725 (eval $ac_try) 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 ac_cv_func_sched_get_priority_max=yes
29730else
29731 echo "$as_me: failed program was:" >&5
29732sed 's/^/| /' conftest.$ac_ext >&5
29733
29734ac_cv_func_sched_get_priority_max=no
29735fi
29736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29737fi
29738echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29739echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29740if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29741 HAVE_PRIOR_FUNCS=1
29742else
e6cc62c6
VS
29743 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29744echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29745if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29746 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29747else
e6cc62c6 29748 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29749LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29750cat >conftest.$ac_ext <<_ACEOF
29751#line $LINENO "configure"
29752/* confdefs.h. */
29753_ACEOF
29754cat confdefs.h >>conftest.$ac_ext
29755cat >>conftest.$ac_ext <<_ACEOF
29756/* end confdefs.h. */
29757
422107f9 29758/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29759#ifdef __cplusplus
29760extern "C"
29761#endif
422107f9 29762/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29763 builtin and then its argument prototype would still apply. */
29764char sched_get_priority_max ();
29765int
29766main ()
29767{
29768sched_get_priority_max ();
29769 ;
29770 return 0;
29771}
29772_ACEOF
29773rm -f conftest.$ac_objext conftest$ac_exeext
29774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29775 (eval $ac_link) 2>&5
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
29779 { ac_try='test -s conftest$ac_exeext'
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29782 ac_status=$?
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; }; then
29785 ac_cv_lib_posix4_sched_get_priority_max=yes
29786else
29787 echo "$as_me: failed program was:" >&5
29788sed 's/^/| /' conftest.$ac_ext >&5
29789
29790ac_cv_lib_posix4_sched_get_priority_max=no
29791fi
29792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29793LIBS=$ac_check_lib_save_LIBS
29794fi
29795echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29796echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29797if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29798
7274f1c7
RL
29799 HAVE_PRIOR_FUNCS=1
29800 POSIX4_LINK=" -lposix4"
e6cc62c6 29801
4f14bcd8 29802fi
463abc64 29803
e6cc62c6 29804
328a083c 29805fi
463abc64 29806
e6cc62c6 29807
7b4a847f 29808fi
579d8138 29809
e6cc62c6 29810
5c6fa7d2 29811fi
52127426 29812
8284b0c5 29813
7274f1c7 29814 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29815 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29816#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29817_ACEOF
463abc64 29818
7274f1c7 29819 else
e6cc62c6
VS
29820 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29821echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29822 fi
463abc64 29823
e6cc62c6
VS
29824 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29825echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29826if test "${ac_cv_func_pthread_cancel+set}" = set; then
29827 echo $ECHO_N "(cached) $ECHO_C" >&6
29828else
29829 cat >conftest.$ac_ext <<_ACEOF
29830#line $LINENO "configure"
29831/* confdefs.h. */
29832_ACEOF
29833cat confdefs.h >>conftest.$ac_ext
29834cat >>conftest.$ac_ext <<_ACEOF
29835/* end confdefs.h. */
009fead0 29836/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29837 which can conflict with char pthread_cancel (); below.
29838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29839 <limits.h> exists even on freestanding compilers. */
29840#ifdef __STDC__
29841# include <limits.h>
29842#else
29843# include <assert.h>
29844#endif
422107f9 29845/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29846#ifdef __cplusplus
29847extern "C"
29848{
29849#endif
422107f9 29850/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29851 builtin and then its argument prototype would still apply. */
29852char pthread_cancel ();
009fead0
VZ
29853/* The GNU C library defines this for functions which it implements
29854 to always fail with ENOSYS. Some functions are actually named
29855 something starting with __ and the normal name is an alias. */
29856#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29857choke me
29858#else
e6cc62c6
VS
29859char (*f) () = pthread_cancel;
29860#endif
29861#ifdef __cplusplus
29862}
009fead0
VZ
29863#endif
29864
e6cc62c6
VS
29865int
29866main ()
29867{
29868return f != pthread_cancel;
29869 ;
29870 return 0;
29871}
29872_ACEOF
29873rm -f conftest.$ac_objext conftest$ac_exeext
29874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29875 (eval $ac_link) 2>&5
29876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
29879 { ac_try='test -s conftest$ac_exeext'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }; then
29885 ac_cv_func_pthread_cancel=yes
29886else
29887 echo "$as_me: failed program was:" >&5
29888sed 's/^/| /' conftest.$ac_ext >&5
29889
29890ac_cv_func_pthread_cancel=no
29891fi
29892rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29893fi
29894echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29895echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29896if test $ac_cv_func_pthread_cancel = yes; then
29897 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29898#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29899_ACEOF
4f14bcd8 29900
698dcdb6 29901else
e6cc62c6
VS
29902 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29903echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29904fi
29905
5c6fa7d2 29906
4f14bcd8 29907
e6cc62c6
VS
29908
29909 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29910echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29911if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29913else
e6cc62c6
VS
29914
29915 cat >conftest.$ac_ext <<_ACEOF
29916#line $LINENO "configure"
29917/* confdefs.h. */
29918_ACEOF
29919cat confdefs.h >>conftest.$ac_ext
29920cat >>conftest.$ac_ext <<_ACEOF
29921/* end confdefs.h. */
4f14bcd8 29922#include <pthread.h>
e6cc62c6
VS
29923int
29924main ()
29925{
4f14bcd8 29926
7274f1c7
RL
29927 pthread_mutexattr_t attr;
29928 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29929
29930 ;
29931 return 0;
29932}
29933_ACEOF
29934rm -f conftest.$ac_objext
29935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29936 (eval $ac_compile) 2>&5
29937 ac_status=$?
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); } &&
29940 { ac_try='test -s conftest.$ac_objext'
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; }; then
29946
7274f1c7 29947 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29948
3fed1840 29949else
e6cc62c6
VS
29950 echo "$as_me: failed program was:" >&5
29951sed 's/^/| /' conftest.$ac_ext >&5
29952
29953
7274f1c7 29954 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29955
29956
247f5006 29957fi
e6cc62c6 29958rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29959
e6cc62c6
VS
29960fi
29961echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29962echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29963
7274f1c7 29964 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29965 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29966#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29967_ACEOF
4f14bcd8 29968
7274f1c7 29969 else
e6cc62c6
VS
29970 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29971echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29972if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29973 echo $ECHO_N "(cached) $ECHO_C" >&6
29974else
29975
29976 cat >conftest.$ac_ext <<_ACEOF
29977#line $LINENO "configure"
29978/* confdefs.h. */
29979_ACEOF
29980cat confdefs.h >>conftest.$ac_ext
29981cat >>conftest.$ac_ext <<_ACEOF
29982/* end confdefs.h. */
4f14bcd8 29983#include <pthread.h>
e6cc62c6
VS
29984int
29985main ()
29986{
4f14bcd8 29987
7274f1c7 29988 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29989
29990 ;
29991 return 0;
29992}
29993_ACEOF
29994rm -f conftest.$ac_objext
29995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29996 (eval $ac_compile) 2>&5
29997 ac_status=$?
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); } &&
30000 { ac_try='test -s conftest.$ac_objext'
30001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002 (eval $ac_try) 2>&5
30003 ac_status=$?
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); }; }; then
30006
7274f1c7 30007 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30008
698dcdb6 30009else
e6cc62c6
VS
30010 echo "$as_me: failed program was:" >&5
30011sed 's/^/| /' conftest.$ac_ext >&5
30012
30013
7274f1c7 30014 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30015
30016
247f5006 30017fi
e6cc62c6 30018rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30019
e6cc62c6
VS
30020fi
30021echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30022echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30023 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30024 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30025#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30026_ACEOF
3fed1840 30027
7274f1c7 30028 else
e6cc62c6
VS
30029 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30030echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30031 fi
30032 fi
7274f1c7 30033 fi
3fed1840 30034
a0b9e27f
MB
30035else
30036 if test "$wxUSE_THREADS" = "yes" ; then
30037 case "${host}" in
30038 *-*-mingw32* )
e6cc62c6
VS
30039 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30040echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30041if test "${wx_cv_cflags_mthread+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30043else
e6cc62c6 30044
ca8e52b3
VZ
30045 CFLAGS_OLD="$CFLAGS"
30046 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
30047 cat >conftest.$ac_ext <<_ACEOF
30048#line $LINENO "configure"
30049/* confdefs.h. */
30050_ACEOF
30051cat confdefs.h >>conftest.$ac_ext
30052cat >>conftest.$ac_ext <<_ACEOF
30053/* end confdefs.h. */
30054
30055int
30056main ()
30057{
ca8e52b3 30058
e6cc62c6
VS
30059 ;
30060 return 0;
30061}
30062_ACEOF
30063rm -f conftest.$ac_objext
30064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30065 (eval $ac_compile) 2>&5
30066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); } &&
30069 { ac_try='test -s conftest.$ac_objext'
30070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071 (eval $ac_try) 2>&5
30072 ac_status=$?
30073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074 (exit $ac_status); }; }; then
ca8e52b3
VZ
30075 wx_cv_cflags_mthread=yes
30076else
e6cc62c6
VS
30077 echo "$as_me: failed program was:" >&5
30078sed 's/^/| /' conftest.$ac_ext >&5
30079
30080wx_cv_cflags_mthread=no
30081
ca8e52b3 30082fi
e6cc62c6
VS
30083rm -f conftest.$ac_objext conftest.$ac_ext
30084
ca8e52b3 30085
e6cc62c6
VS
30086fi
30087echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30088echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30089
30090 if test "$wx_cv_cflags_mthread" = "yes"; then
30091 CXXFLAGS="$CXXFLAGS -mthreads"
30092 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30093 LDFLAGS="$LDFLAGS -mthreads"
30094 else
30095 CFLAGS="$CFLAGS_OLD"
30096 fi
a0b9e27f 30097 ;;
73d617c9
MB
30098 *-pc-os2*emx )
30099 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30100 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30101 LDFLAGS="$LDFLAGS -Zmt"
30102 ;;
a0b9e27f
MB
30103 esac
30104 fi
4f14bcd8
GD
30105fi
30106
30107if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30108 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30109#define wxUSE_THREADS 1
e6cc62c6 30110_ACEOF
7b6058cd 30111
8284b0c5 30112
4f14bcd8 30113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30114else
4f14bcd8 30115 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30116 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30117echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30118 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30119 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30120 echo "$as_me:$LINENO: result: yes" >&5
30121echo "${ECHO_T}yes" >&6
4f14bcd8 30122 else
e6cc62c6
VS
30123 echo "$as_me:$LINENO: result: no" >&5
30124echo "${ECHO_T}no" >&6
4f14bcd8
GD
30125 fi
30126 fi
30127fi
30128
30129if test "$WXGTK20" = 1 ; then
e6cc62c6 30130 cat >>confdefs.h <<_ACEOF
4f14bcd8 30131#define __WXGTK20__ $WXGTK20
e6cc62c6 30132_ACEOF
4f14bcd8
GD
30133
30134 WXGTK12=1
10f2d63a 30135fi
4f14bcd8
GD
30136
30137if test "$WXGTK12" = 1 ; then
e6cc62c6 30138 cat >>confdefs.h <<_ACEOF
4f14bcd8 30139#define __WXGTK12__ $WXGTK12
e6cc62c6 30140_ACEOF
4f14bcd8 30141
10f2d63a 30142fi
698dcdb6 30143
4f14bcd8 30144if test "$WXGTK127" = 1 ; then
e6cc62c6 30145 cat >>confdefs.h <<_ACEOF
4f14bcd8 30146#define __WXGTK127__ $WXGTK127
e6cc62c6 30147_ACEOF
4f14bcd8 30148
698dcdb6 30149fi
10f2d63a 30150
4f14bcd8
GD
30151WXDEBUG=
30152
30153if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30154 WXDEBUG="-g"
30155 wxUSE_OPTIMISE=no
698dcdb6 30156fi
4f14bcd8
GD
30157
30158if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30159 wxUSE_DEBUG_INFO=yes
30160 WXDEBUG="-ggdb"
10f2d63a
VZ
30161fi
30162
4f14bcd8 30163if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30164 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30165#define WXDEBUG 1
e6cc62c6 30166_ACEOF
4f14bcd8
GD
30167
30168 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30169else
4f14bcd8
GD
30170 if test "$wxUSE_GTK" = 1 ; then
30171 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30172 fi
30173fi
30174
30175if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30176 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30177#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30178_ACEOF
4f14bcd8 30179
e6cc62c6 30180 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30181#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30182_ACEOF
4f14bcd8 30183
e6cc62c6 30184 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30185#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30186_ACEOF
4f14bcd8
GD
30187
30188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30189fi
30190
30191if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30192 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30193fi
30194
30195PROFILE=
30196if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30197 PROFILE=" -pg"
10f2d63a
VZ
30198fi
30199
009fead0
VZ
30200CODE_GEN_FLAGS=
30201CODE_GEN_FLAGS_CXX=
88e30f2b 30202if test "$GCC" = "yes" ; then
4f14bcd8
GD
30203 if test "$wxUSE_NO_RTTI" = "yes" ; then
30204 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30205 fi
4f14bcd8
GD
30206 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30207 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30208 fi
30209 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30210 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30211 fi
1d1b75ac 30212
2b5f62a0 30213 case "${host}" in
1d1b75ac
VZ
30214 powerpc*-*-aix* )
30215 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30216 ;;
2b5f62a0
VZ
30217 *-hppa* )
30218 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30219 ;;
1d1b75ac 30220 esac
4f14bcd8
GD
30221fi
30222
af7b5345 30223OPTIMISE=
4f14bcd8 30224if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30225 if test "$GCC" = yes ; then
30226 OPTIMISE="-O0"
30227 fi
4f14bcd8
GD
30228else
30229 if test "$GCC" = yes ; then
30230 OPTIMISE="-O2"
af7b5345
VZ
30231
30232 case "${host}" in
4f14bcd8
GD
30233 i586-*-*|i686-*-* )
30234 OPTIMISE="${OPTIMISE} "
30235 ;;
30236 esac
30237 else
30238 OPTIMISE="-O"
30239 fi
30240fi
30241
8d90d2f2 30242
65d8ef1e 30243if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30244 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30245#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30246_ACEOF
4f14bcd8 30247
8d90d2f2
VZ
30248
30249 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30250fi
30251
65d8ef1e 30252if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30253 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30254#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30255_ACEOF
65d8ef1e
VS
30256
30257fi
30258
8284b0c5 30259
10f2d63a 30260if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30261 cat >>confdefs.h <<\_ACEOF
10f2d63a 30262#define wxUSE_GUI 1
e6cc62c6 30263_ACEOF
10f2d63a 30264
8284b0c5 30265
10f2d63a 30266 else
e6cc62c6 30267 cat >>confdefs.h <<\_ACEOF
10f2d63a 30268#define wxUSE_NOGUI 1
e6cc62c6 30269_ACEOF
10f2d63a
VZ
30270
30271fi
30272
8284b0c5 30273
10f2d63a 30274if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30275 cat >>confdefs.h <<\_ACEOF
10f2d63a 30276#define wxUSE_UNIX 1
e6cc62c6 30277_ACEOF
10f2d63a
VZ
30278
30279fi
30280
8284b0c5 30281
df5168c4
MB
30282if test "$wxUSE_STL" = "yes"; then
30283 cat >>confdefs.h <<\_ACEOF
30284#define wxUSE_STL 1
30285_ACEOF
30286
30287fi
30288
10f2d63a 30289if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30290 cat >>confdefs.h <<\_ACEOF
10f2d63a 30291#define wxUSE_APPLE_IEEE 1
e6cc62c6 30292_ACEOF
10f2d63a
VZ
30293
30294fi
30295
1e6feb95 30296if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30297 cat >>confdefs.h <<\_ACEOF
1e6feb95 30298#define wxUSE_TIMER 1
e6cc62c6 30299_ACEOF
1e6feb95
VZ
30300
30301fi
30302
10f2d63a 30303if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30304 cat >>confdefs.h <<\_ACEOF
10f2d63a 30305#define wxUSE_WAVE 1
e6cc62c6 30306_ACEOF
10f2d63a
VZ
30307
30308fi
30309
1e6feb95 30310if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30311 cat >>confdefs.h <<\_ACEOF
1e6feb95 30312#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30313_ACEOF
1e6feb95
VZ
30314
30315fi
30316
30317if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30318 cat >>confdefs.h <<\_ACEOF
1e6feb95 30319#define wxUSE_STOPWATCH 1
e6cc62c6 30320_ACEOF
1e6feb95
VZ
30321
30322fi
30323
30324if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30325 cat >>confdefs.h <<\_ACEOF
1e6feb95 30326#define wxUSE_DATETIME 1
e6cc62c6 30327_ACEOF
1e6feb95
VZ
30328
30329fi
30330
10f2d63a 30331if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30332 cat >>confdefs.h <<\_ACEOF
10f2d63a 30333#define wxUSE_FILE 1
e6cc62c6 30334_ACEOF
10f2d63a
VZ
30335
30336fi
30337
1e6feb95 30338if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30339 cat >>confdefs.h <<\_ACEOF
1e6feb95 30340#define wxUSE_FFILE 1
e6cc62c6 30341_ACEOF
1e6feb95
VZ
30342
30343fi
30344
24528b0c 30345if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30346 cat >>confdefs.h <<\_ACEOF
24528b0c 30347#define wxUSE_FILESYSTEM 1
e6cc62c6 30348_ACEOF
24528b0c
VS
30349
30350fi
30351
10f2d63a 30352if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30353 cat >>confdefs.h <<\_ACEOF
10f2d63a 30354#define wxUSE_FS_ZIP 1
e6cc62c6 30355_ACEOF
10f2d63a
VZ
30356
30357fi
30358
30359if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30360 cat >>confdefs.h <<\_ACEOF
10f2d63a 30361#define wxUSE_ZIPSTREAM 1
e6cc62c6 30362_ACEOF
10f2d63a
VZ
30363
30364fi
30365
7015ef3a
VZ
30366if test "$wxUSE_GZSTREAM" = "yes"; then
30367 cat >>confdefs.h <<\_ACEOF
30368#define wxUSE_GZSTREAM 1
30369_ACEOF
30370
30371fi
30372
eb4efbdc 30373if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30374 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30375#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30376_ACEOF
eb4efbdc
VZ
30377
30378fi
30379
4f3c5f06 30380if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30381 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30382#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30383_ACEOF
4f3c5f06
VZ
30384
30385fi
30386
10f2d63a 30387if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30388 cat >>confdefs.h <<\_ACEOF
10f2d63a 30389#define wxUSE_BUSYINFO 1
e6cc62c6 30390_ACEOF
10f2d63a
VZ
30391
30392fi
30393
30394if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30395 cat >>confdefs.h <<\_ACEOF
10f2d63a 30396#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30397_ACEOF
10f2d63a
VZ
30398
30399fi
30400
a3a584a7 30401if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30402 cat >>confdefs.h <<\_ACEOF
a3a584a7 30403#define wxUSE_TEXTBUFFER 1
e6cc62c6 30404_ACEOF
a3a584a7
VZ
30405
30406fi
30407
10f2d63a 30408if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30409 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30410 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30411echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30412 else
e6cc62c6 30413 cat >>confdefs.h <<\_ACEOF
10f2d63a 30414#define wxUSE_TEXTFILE 1
e6cc62c6 30415_ACEOF
10f2d63a
VZ
30416
30417 fi
30418fi
30419
30420if test "$wxUSE_CONFIG" = "yes" ; then
30421 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30422 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30423echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30424 else
e6cc62c6 30425 cat >>confdefs.h <<\_ACEOF
10f2d63a 30426#define wxUSE_CONFIG 1
e6cc62c6 30427_ACEOF
10f2d63a
VZ
30428
30429 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30430 fi
30431fi
30432
30433if test "$wxUSE_INTL" = "yes" ; then
30434 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30435 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30436echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30437 else
e6cc62c6 30438 cat >>confdefs.h <<\_ACEOF
10f2d63a 30439#define wxUSE_INTL 1
e6cc62c6 30440_ACEOF
10f2d63a
VZ
30441
30442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30443 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30444 fi
30445fi
30446
30447if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30448 cat >>confdefs.h <<\_ACEOF
10f2d63a 30449#define wxUSE_LOG 1
e6cc62c6 30450_ACEOF
10f2d63a 30451
8284b0c5 30452
d73be714 30453 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30454 cat >>confdefs.h <<\_ACEOF
d73be714 30455#define wxUSE_LOGGUI 1
e6cc62c6 30456_ACEOF
d73be714
VZ
30457
30458 fi
30459
30460 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30461 cat >>confdefs.h <<\_ACEOF
d73be714 30462#define wxUSE_LOGWINDOW 1
e6cc62c6 30463_ACEOF
69d27ff7
MB
30464
30465 fi
30466
30467 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30468 cat >>confdefs.h <<\_ACEOF
69d27ff7 30469#define wxUSE_LOG_DIALOG 1
e6cc62c6 30470_ACEOF
d73be714
VZ
30471
30472 fi
10f2d63a
VZ
30473fi
30474
30475if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30476 cat >>confdefs.h <<\_ACEOF
10f2d63a 30477#define wxUSE_LONGLONG 1
e6cc62c6 30478_ACEOF
10f2d63a
VZ
30479
30480fi
30481
e8f65ba6 30482if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30483 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30484#define wxUSE_GEOMETRY 1
e6cc62c6 30485_ACEOF
e8f65ba6
RR
30486
30487fi
30488
10f2d63a 30489if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30490 cat >>confdefs.h <<\_ACEOF
10f2d63a 30491#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30492_ACEOF
10f2d63a 30493
70f7a477 30494 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30495fi
30496
30497if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30498 cat >>confdefs.h <<\_ACEOF
10f2d63a 30499#define wxUSE_STREAMS 1
e6cc62c6 30500_ACEOF
10f2d63a
VZ
30501
30502fi
30503
5c6fa7d2 30504
8284b0c5 30505if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30506
30507for ac_func in strptime
83307f33 30508do
e6cc62c6
VS
30509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30510echo "$as_me:$LINENO: checking for $ac_func" >&5
30511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30512if eval "test \"\${$as_ac_var+set}\" = set"; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
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. */
83307f33 30522/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30523 which can conflict with char $ac_func (); below.
30524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30525 <limits.h> exists even on freestanding compilers. */
30526#ifdef __STDC__
30527# include <limits.h>
30528#else
30529# include <assert.h>
30530#endif
83307f33 30531/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30532#ifdef __cplusplus
30533extern "C"
30534{
30535#endif
83307f33 30536/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30537 builtin and then its argument prototype would still apply. */
30538char $ac_func ();
83307f33
VZ
30539/* The GNU C library defines this for functions which it implements
30540 to always fail with ENOSYS. Some functions are actually named
30541 something starting with __ and the normal name is an alias. */
30542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30543choke me
30544#else
e6cc62c6
VS
30545char (*f) () = $ac_func;
30546#endif
30547#ifdef __cplusplus
30548}
83307f33
VZ
30549#endif
30550
e6cc62c6
VS
30551int
30552main ()
30553{
30554return f != $ac_func;
30555 ;
30556 return 0;
30557}
30558_ACEOF
30559rm -f conftest.$ac_objext conftest$ac_exeext
30560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30561 (eval $ac_link) 2>&5
30562 ac_status=$?
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); } &&
30565 { ac_try='test -s conftest$ac_exeext'
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 eval "$as_ac_var=yes"
30572else
30573 echo "$as_me: failed program was:" >&5
30574sed 's/^/| /' conftest.$ac_ext >&5
30575
30576eval "$as_ac_var=no"
30577fi
30578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30579fi
30580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30582if test `eval echo '${'$as_ac_var'}'` = yes; then
30583 cat >>confdefs.h <<_ACEOF
30584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30585_ACEOF
83307f33 30586
83307f33
VZ
30587fi
30588done
30589
5c6fa7d2 30590
e6cc62c6
VS
30591 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30592echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30593if test "${wx_cv_var_timezone+set}" = set; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30595else
e6cc62c6
VS
30596
30597 cat >conftest.$ac_ext <<_ACEOF
30598#line $LINENO "configure"
30599/* confdefs.h. */
30600_ACEOF
30601cat confdefs.h >>conftest.$ac_ext
30602cat >>conftest.$ac_ext <<_ACEOF
30603/* end confdefs.h. */
360d6699 30604
b4085ce6 30605 #include <time.h>
e6cc62c6
VS
30606
30607int
30608main ()
30609{
360d6699
VZ
30610
30611 int tz;
4f11a343 30612 tz = timezone;
e6cc62c6
VS
30613
30614 ;
30615 return 0;
30616}
30617_ACEOF
30618rm -f conftest.$ac_objext
30619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30620 (eval $ac_compile) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); } &&
30624 { ac_try='test -s conftest.$ac_objext'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
30630
4f11a343 30631 wx_cv_var_timezone=timezone
e6cc62c6 30632
360d6699 30633else
e6cc62c6
VS
30634 echo "$as_me: failed program was:" >&5
30635sed 's/^/| /' conftest.$ac_ext >&5
30636
30637
30638 cat >conftest.$ac_ext <<_ACEOF
30639#line $LINENO "configure"
30640/* confdefs.h. */
30641_ACEOF
30642cat confdefs.h >>conftest.$ac_ext
30643cat >>conftest.$ac_ext <<_ACEOF
30644/* end confdefs.h. */
360d6699 30645
b4085ce6 30646 #include <time.h>
e6cc62c6
VS
30647
30648int
30649main ()
30650{
360d6699
VZ
30651
30652 int tz;
30653 tz = _timezone;
e6cc62c6
VS
30654
30655 ;
30656 return 0;
30657}
30658_ACEOF
30659rm -f conftest.$ac_objext
30660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30661 (eval $ac_compile) 2>&5
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); } &&
30665 { ac_try='test -s conftest.$ac_objext'
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30668 ac_status=$?
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; }; then
30671
360d6699 30672 wx_cv_var_timezone=_timezone
e6cc62c6 30673
5357c8e8 30674else
e6cc62c6
VS
30675 echo "$as_me: failed program was:" >&5
30676sed 's/^/| /' conftest.$ac_ext >&5
30677
30678
30679 cat >conftest.$ac_ext <<_ACEOF
30680#line $LINENO "configure"
30681/* confdefs.h. */
30682_ACEOF
30683cat confdefs.h >>conftest.$ac_ext
30684cat >>conftest.$ac_ext <<_ACEOF
30685/* end confdefs.h. */
5357c8e8 30686
b4085ce6 30687 #include <time.h>
e6cc62c6
VS
30688
30689int
30690main ()
30691{
5357c8e8
VZ
30692
30693 int tz;
4f11a343 30694 tz = __timezone;
e6cc62c6
VS
30695
30696 ;
30697 return 0;
30698}
30699_ACEOF
30700rm -f conftest.$ac_objext
30701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30702 (eval $ac_compile) 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -s conftest.$ac_objext'
30707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708 (eval $ac_try) 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; }; then
30712
4f11a343 30713 wx_cv_var_timezone=__timezone
e6cc62c6 30714
360d6699 30715else
e6cc62c6
VS
30716 echo "$as_me: failed program was:" >&5
30717sed 's/^/| /' conftest.$ac_ext >&5
30718
30719
f9bc1684 30720 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30721 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30722echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30723 fi
e6cc62c6
VS
30724
30725
7b4a847f 30726fi
e6cc62c6
VS
30727rm -f conftest.$ac_objext conftest.$ac_ext
30728
30729
5c6fa7d2 30730fi
e6cc62c6
VS
30731rm -f conftest.$ac_objext conftest.$ac_ext
30732
30733
247f5006 30734fi
e6cc62c6 30735rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30736
e6cc62c6
VS
30737
30738fi
30739echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30740echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30741
f9bc1684 30742 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30743 cat >>confdefs.h <<_ACEOF
360d6699 30744#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30745_ACEOF
360d6699 30746
f9bc1684 30747 fi
698dcdb6 30748
e6cc62c6
VS
30749
30750for ac_func in localtime
afc31813 30751do
e6cc62c6
VS
30752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753echo "$as_me:$LINENO: checking for $ac_func" >&5
30754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30755if eval "test \"\${$as_ac_var+set}\" = set"; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30757else
30758 cat >conftest.$ac_ext <<_ACEOF
30759#line $LINENO "configure"
30760/* confdefs.h. */
30761_ACEOF
30762cat confdefs.h >>conftest.$ac_ext
30763cat >>conftest.$ac_ext <<_ACEOF
30764/* end confdefs.h. */
afc31813 30765/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30766 which can conflict with char $ac_func (); below.
30767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30768 <limits.h> exists even on freestanding compilers. */
30769#ifdef __STDC__
30770# include <limits.h>
30771#else
30772# include <assert.h>
30773#endif
afc31813 30774/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30775#ifdef __cplusplus
30776extern "C"
30777{
30778#endif
afc31813 30779/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30780 builtin and then its argument prototype would still apply. */
30781char $ac_func ();
afc31813
VZ
30782/* The GNU C library defines this for functions which it implements
30783 to always fail with ENOSYS. Some functions are actually named
30784 something starting with __ and the normal name is an alias. */
30785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30786choke me
30787#else
e6cc62c6
VS
30788char (*f) () = $ac_func;
30789#endif
30790#ifdef __cplusplus
30791}
afc31813
VZ
30792#endif
30793
e6cc62c6
VS
30794int
30795main ()
30796{
30797return f != $ac_func;
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802rm -f conftest.$ac_objext conftest$ac_exeext
30803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30804 (eval $ac_link) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } &&
30808 { ac_try='test -s conftest$ac_exeext'
30809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810 (eval $ac_try) 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; }; then
30814 eval "$as_ac_var=yes"
30815else
30816 echo "$as_me: failed program was:" >&5
30817sed 's/^/| /' conftest.$ac_ext >&5
30818
30819eval "$as_ac_var=no"
30820fi
30821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30822fi
30823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30825if test `eval echo '${'$as_ac_var'}'` = yes; then
30826 cat >>confdefs.h <<_ACEOF
30827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30828_ACEOF
afc31813 30829
afc31813
VZ
30830fi
30831done
30832
5c6fa7d2 30833
8284b0c5 30834 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30835 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30836echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30837if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30838 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30839else
e6cc62c6
VS
30840
30841 cat >conftest.$ac_ext <<_ACEOF
30842#line $LINENO "configure"
30843/* confdefs.h. */
30844_ACEOF
30845cat confdefs.h >>conftest.$ac_ext
30846cat >>conftest.$ac_ext <<_ACEOF
30847/* end confdefs.h. */
0470b1e6 30848
b4085ce6 30849 #include <time.h>
e6cc62c6
VS
30850
30851int
30852main ()
30853{
0470b1e6
VZ
30854
30855 struct tm tm;
30856 tm.tm_gmtoff++;
e6cc62c6
VS
30857
30858 ;
30859 return 0;
30860}
30861_ACEOF
30862rm -f conftest.$ac_objext
30863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30864 (eval $ac_compile) 2>&5
30865 ac_status=$?
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); } &&
30868 { ac_try='test -s conftest.$ac_objext'
30869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30870 (eval $ac_try) 2>&5
30871 ac_status=$?
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); }; }; then
30874
f03a98d8 30875 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30876
0470b1e6 30877else
e6cc62c6
VS
30878 echo "$as_me: failed program was:" >&5
30879sed 's/^/| /' conftest.$ac_ext >&5
30880
30881wx_cv_struct_tm_has_gmtoff=no
30882
247f5006 30883fi
e6cc62c6 30884rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30885
e6cc62c6
VS
30886fi
30887echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30888echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30889 fi
30890
30891 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30892 cat >>confdefs.h <<\_ACEOF
6232543b 30893#define WX_GMTOFF_IN_TM 1
e6cc62c6 30894_ACEOF
0470b1e6 30895
3fcdd07b
VZ
30896 fi
30897
e6cc62c6
VS
30898
30899
30900for ac_func in gettimeofday ftime
3fcdd07b 30901do
e6cc62c6
VS
30902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30903echo "$as_me:$LINENO: checking for $ac_func" >&5
30904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30905if eval "test \"\${$as_ac_var+set}\" = set"; then
30906 echo $ECHO_N "(cached) $ECHO_C" >&6
30907else
30908 cat >conftest.$ac_ext <<_ACEOF
30909#line $LINENO "configure"
30910/* confdefs.h. */
30911_ACEOF
30912cat confdefs.h >>conftest.$ac_ext
30913cat >>conftest.$ac_ext <<_ACEOF
30914/* end confdefs.h. */
3fcdd07b 30915/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30916 which can conflict with char $ac_func (); below.
30917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30918 <limits.h> exists even on freestanding compilers. */
30919#ifdef __STDC__
30920# include <limits.h>
30921#else
30922# include <assert.h>
30923#endif
3fcdd07b 30924/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30925#ifdef __cplusplus
30926extern "C"
30927{
30928#endif
3fcdd07b 30929/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30930 builtin and then its argument prototype would still apply. */
30931char $ac_func ();
3fcdd07b
VZ
30932/* The GNU C library defines this for functions which it implements
30933 to always fail with ENOSYS. Some functions are actually named
30934 something starting with __ and the normal name is an alias. */
30935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30936choke me
30937#else
e6cc62c6
VS
30938char (*f) () = $ac_func;
30939#endif
30940#ifdef __cplusplus
30941}
3fcdd07b
VZ
30942#endif
30943
e6cc62c6
VS
30944int
30945main ()
30946{
30947return f != $ac_func;
30948 ;
30949 return 0;
30950}
30951_ACEOF
30952rm -f conftest.$ac_objext conftest$ac_exeext
30953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30954 (eval $ac_link) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); } &&
30958 { ac_try='test -s conftest$ac_exeext'
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30964 eval "$as_ac_var=yes"
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
30969eval "$as_ac_var=no"
30970fi
30971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30972fi
30973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30974echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30975if test `eval echo '${'$as_ac_var'}'` = yes; then
30976 cat >>confdefs.h <<_ACEOF
30977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30978_ACEOF
3fcdd07b 30979 break
3fcdd07b
VZ
30980fi
30981done
30982
698dcdb6 30983
8284b0c5 30984 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30985 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30986echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30987if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30988 echo $ECHO_N "(cached) $ECHO_C" >&6
30989else
30990
30991
30992
30993 ac_ext=cc
5c6fa7d2 30994ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30998
8284b0c5 30999
e6cc62c6
VS
31000 cat >conftest.$ac_ext <<_ACEOF
31001#line $LINENO "configure"
31002/* confdefs.h. */
31003_ACEOF
31004cat confdefs.h >>conftest.$ac_ext
31005cat >>conftest.$ac_ext <<_ACEOF
31006/* end confdefs.h. */
afc31813
VZ
31007
31008 #include <sys/time.h>
31009 #include <unistd.h>
e6cc62c6
VS
31010
31011int
31012main ()
31013{
afc31813
VZ
31014
31015 struct timeval tv;
776862b4 31016 gettimeofday(&tv, NULL);
e6cc62c6
VS
31017
31018 ;
31019 return 0;
31020}
31021_ACEOF
31022rm -f conftest.$ac_objext
31023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31024 (eval $ac_compile) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); } &&
31028 { ac_try='test -s conftest.$ac_objext'
31029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; }; then
afc31813 31034 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 31035else
e6cc62c6
VS
31036 echo "$as_me: failed program was:" >&5
31037sed 's/^/| /' conftest.$ac_ext >&5
31038
31039cat >conftest.$ac_ext <<_ACEOF
31040#line $LINENO "configure"
31041/* confdefs.h. */
31042_ACEOF
31043cat confdefs.h >>conftest.$ac_ext
31044cat >>conftest.$ac_ext <<_ACEOF
31045/* end confdefs.h. */
afc31813
VZ
31046
31047 #include <sys/time.h>
31048 #include <unistd.h>
e6cc62c6
VS
31049
31050int
31051main ()
31052{
afc31813
VZ
31053
31054 struct timeval tv;
31055 gettimeofday(&tv);
e6cc62c6
VS
31056
31057 ;
31058 return 0;
31059}
31060_ACEOF
31061rm -f conftest.$ac_objext
31062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31063 (eval $ac_compile) 2>&5
31064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); } &&
31067 { ac_try='test -s conftest.$ac_objext'
31068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069 (eval $ac_try) 2>&5
31070 ac_status=$?
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; }; then
afc31813 31073 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 31074else
e6cc62c6
VS
31075 echo "$as_me: failed program was:" >&5
31076sed 's/^/| /' conftest.$ac_ext >&5
31077
31078
31079 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31080echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 31081 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
31082
31083
10f2d63a 31084fi
e6cc62c6
VS
31085rm -f conftest.$ac_objext conftest.$ac_ext
31086
10f2d63a 31087fi
e6cc62c6 31088rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 31089 ac_ext=c
10f2d63a 31090ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31093ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 31094
a0b9e27f 31095
e6cc62c6
VS
31096fi
31097echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31098echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 31099
afc31813 31100 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 31101 cat >>confdefs.h <<\_ACEOF
afc31813 31102#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 31103_ACEOF
afc31813
VZ
31104
31105 fi
31106 fi
31107
afc31813
VZ
31108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31109fi
31110
8284b0c5 31111
52127426 31112if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 31113 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
31114 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31115echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
31116 wxUSE_SOCKETS="no"
31117 fi
3879ecda
VZ
31118 if test "$wxUSE_COCOA" = "1"; then
31119 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31120echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31121 wxUSE_SOCKETS="no"
31122 fi
0feee163 31123fi
b089607b 31124
0feee163
VZ
31125if test "$wxUSE_SOCKETS" = "yes"; then
31126 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31127 echo "$as_me:$LINENO: checking for socket" >&5
31128echo $ECHO_N "checking for socket... $ECHO_C" >&6
31129if test "${ac_cv_func_socket+set}" = set; then
31130 echo $ECHO_N "(cached) $ECHO_C" >&6
31131else
31132 cat >conftest.$ac_ext <<_ACEOF
31133#line $LINENO "configure"
31134/* confdefs.h. */
31135_ACEOF
31136cat confdefs.h >>conftest.$ac_ext
31137cat >>conftest.$ac_ext <<_ACEOF
31138/* end confdefs.h. */
c63c7106 31139/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31140 which can conflict with char socket (); below.
31141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31142 <limits.h> exists even on freestanding compilers. */
31143#ifdef __STDC__
31144# include <limits.h>
31145#else
31146# include <assert.h>
31147#endif
c63c7106 31148/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31149#ifdef __cplusplus
31150extern "C"
31151{
31152#endif
c63c7106 31153/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31154 builtin and then its argument prototype would still apply. */
31155char socket ();
c63c7106
VZ
31156/* The GNU C library defines this for functions which it implements
31157 to always fail with ENOSYS. Some functions are actually named
31158 something starting with __ and the normal name is an alias. */
31159#if defined (__stub_socket) || defined (__stub___socket)
31160choke me
31161#else
e6cc62c6
VS
31162char (*f) () = socket;
31163#endif
31164#ifdef __cplusplus
31165}
c63c7106
VZ
31166#endif
31167
e6cc62c6
VS
31168int
31169main ()
31170{
31171return f != socket;
31172 ;
31173 return 0;
31174}
31175_ACEOF
31176rm -f conftest.$ac_objext conftest$ac_exeext
31177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31178 (eval $ac_link) 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); } &&
31182 { ac_try='test -s conftest$ac_exeext'
31183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184 (eval $ac_try) 2>&5
31185 ac_status=$?
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
31188 ac_cv_func_socket=yes
31189else
31190 echo "$as_me: failed program was:" >&5
31191sed 's/^/| /' conftest.$ac_ext >&5
31192
31193ac_cv_func_socket=no
31194fi
31195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31196fi
31197echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31198echo "${ECHO_T}$ac_cv_func_socket" >&6
31199if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31200 :
31201else
0e012a93
VZ
31202
31203 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
31204echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31205if test "${ac_cv_lib_socket_socket+set}" = set; then
31206 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31207else
e6cc62c6 31208 ac_check_lib_save_LIBS=$LIBS
c63c7106 31209LIBS="-lsocket $LIBS"
e6cc62c6
VS
31210cat >conftest.$ac_ext <<_ACEOF
31211#line $LINENO "configure"
31212/* confdefs.h. */
31213_ACEOF
31214cat confdefs.h >>conftest.$ac_ext
31215cat >>conftest.$ac_ext <<_ACEOF
31216/* end confdefs.h. */
31217
c63c7106 31218/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31219#ifdef __cplusplus
31220extern "C"
31221#endif
c63c7106 31222/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31223 builtin and then its argument prototype would still apply. */
31224char socket ();
31225int
31226main ()
31227{
31228socket ();
31229 ;
31230 return 0;
31231}
31232_ACEOF
31233rm -f conftest.$ac_objext conftest$ac_exeext
31234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31235 (eval $ac_link) 2>&5
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); } &&
31239 { ac_try='test -s conftest$ac_exeext'
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 ac_cv_lib_socket_socket=yes
31246else
31247 echo "$as_me: failed program was:" >&5
31248sed 's/^/| /' conftest.$ac_ext >&5
31249
31250ac_cv_lib_socket_socket=no
31251fi
31252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31253LIBS=$ac_check_lib_save_LIBS
31254fi
31255echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31256echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31257if test $ac_cv_lib_socket_socket = yes; then
d558c907 31258 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
31259 INET_LINK="$INET_LINK -lsocket"
31260 fi
c63c7106 31261else
afc31813 31262
0e012a93 31263 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 31264echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 31265 wxUSE_SOCKETS=no
e6cc62c6
VS
31266
31267
6232543b 31268fi
b089607b 31269
e6cc62c6 31270
0e012a93 31271
1e487827 31272fi
afc31813 31273
3a922bb4 31274 fi
0feee163 31275fi
51a9faba 31276
0feee163
VZ
31277if test "$wxUSE_SOCKETS" = "yes" ; then
31278 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31279 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31280echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31281if test "${wx_cv_type_getsockname3+set}" = set; then
31282 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31283else
e6cc62c6
VS
31284
31285 cat >conftest.$ac_ext <<_ACEOF
31286#line $LINENO "configure"
31287/* confdefs.h. */
31288_ACEOF
31289cat confdefs.h >>conftest.$ac_ext
31290cat >>conftest.$ac_ext <<_ACEOF
31291/* end confdefs.h. */
51a9faba 31292
3a922bb4
RL
31293 #include <sys/types.h>
31294 #include <sys/socket.h>
e6cc62c6
VS
31295
31296int
31297main ()
31298{
51a9faba 31299
3a922bb4
RL
31300 socklen_t len;
31301 getsockname(0, 0, &len);
e6cc62c6
VS
31302
31303 ;
31304 return 0;
31305}
31306_ACEOF
31307rm -f conftest.$ac_objext
31308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31309 (eval $ac_compile) 2>&5
31310 ac_status=$?
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } &&
31313 { ac_try='test -s conftest.$ac_objext'
31314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31315 (eval $ac_try) 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
51a9faba 31319 wx_cv_type_getsockname3=socklen_t
afc31813 31320else
e6cc62c6
VS
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
31324
9711d31e
GD
31325 CFLAGS_OLD="$CFLAGS"
31326 if test "$GCC" = yes ; then
31327 CFLAGS="$CFLAGS -Werror"
31328 fi
31329
e6cc62c6
VS
31330 cat >conftest.$ac_ext <<_ACEOF
31331#line $LINENO "configure"
31332/* confdefs.h. */
31333_ACEOF
31334cat confdefs.h >>conftest.$ac_ext
31335cat >>conftest.$ac_ext <<_ACEOF
31336/* end confdefs.h. */
51a9faba 31337
9711d31e
GD
31338 #include <sys/types.h>
31339 #include <sys/socket.h>
e6cc62c6
VS
31340
31341int
31342main ()
31343{
51a9faba 31344
9711d31e
GD
31345 size_t len;
31346 getsockname(0, 0, &len);
e6cc62c6
VS
31347
31348 ;
31349 return 0;
31350}
31351_ACEOF
31352rm -f conftest.$ac_objext
31353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31354 (eval $ac_compile) 2>&5
31355 ac_status=$?
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); } &&
31358 { ac_try='test -s conftest.$ac_objext'
31359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360 (eval $ac_try) 2>&5
31361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; }; then
51a9faba 31364 wx_cv_type_getsockname3=size_t
afc31813 31365else
e6cc62c6
VS
31366 echo "$as_me: failed program was:" >&5
31367sed 's/^/| /' conftest.$ac_ext >&5
31368
31369cat >conftest.$ac_ext <<_ACEOF
31370#line $LINENO "configure"
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
51a9faba 31376
9711d31e
GD
31377 #include <sys/types.h>
31378 #include <sys/socket.h>
e6cc62c6
VS
31379
31380int
31381main ()
31382{
51a9faba 31383
9711d31e
GD
31384 int len;
31385 getsockname(0, 0, &len);
e6cc62c6
VS
31386
31387 ;
31388 return 0;
31389}
31390_ACEOF
31391rm -f conftest.$ac_objext
31392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31393 (eval $ac_compile) 2>&5
31394 ac_status=$?
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); } &&
31397 { ac_try='test -s conftest.$ac_objext'
31398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31399 (eval $ac_try) 2>&5
31400 ac_status=$?
31401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); }; }; then
51a9faba 31403 wx_cv_type_getsockname3=int
afc31813 31404else
e6cc62c6
VS
31405 echo "$as_me: failed program was:" >&5
31406sed 's/^/| /' conftest.$ac_ext >&5
31407
31408wx_cv_type_getsockname3=unknown
31409
afc31813 31410fi
e6cc62c6
VS
31411rm -f conftest.$ac_objext conftest.$ac_ext
31412
afc31813 31413fi
e6cc62c6 31414rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31415
31416 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31417
31418
247f5006 31419fi
e6cc62c6 31420rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31421
e6cc62c6
VS
31422fi
31423echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31424echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31425
3a922bb4
RL
31426 if test "$wx_cv_type_getsockname3" = "unknown"; then
31427 wxUSE_SOCKETS=no
e6cc62c6
VS
31428 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31429echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31430 else
e6cc62c6 31431 cat >>confdefs.h <<_ACEOF
51a9faba 31432#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31433_ACEOF
51a9faba 31434
3a922bb4 31435 fi
51a9faba
VZ
31436 fi
31437fi
afc31813 31438
51a9faba 31439if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31440 cat >>confdefs.h <<\_ACEOF
afc31813 31441#define wxUSE_SOCKETS 1
e6cc62c6 31442_ACEOF
afc31813 31443
70f7a477 31444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31445fi
31446
3879ecda
VZ
31447if test "$wxUSE_PROTOCOL" = "yes"; then
31448 if test "$wxUSE_SOCKETS" != "yes"; then
31449 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31450echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31451 wxUSE_PROTOCOL=no
31452 fi
31453fi
31454
31455if test "$wxUSE_PROTOCOL" = "yes"; then
31456 cat >>confdefs.h <<\_ACEOF
31457#define wxUSE_PROTOCOL 1
31458_ACEOF
31459
31460
31461 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31462 cat >>confdefs.h <<\_ACEOF
31463#define wxUSE_PROTOCOL_HTTP 1
31464_ACEOF
31465
31466 fi
31467 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31468 cat >>confdefs.h <<\_ACEOF
31469#define wxUSE_PROTOCOL_FTP 1
31470_ACEOF
31471
31472 fi
31473 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31474 cat >>confdefs.h <<\_ACEOF
31475#define wxUSE_PROTOCOL_FILE 1
31476_ACEOF
31477
31478 fi
31479else
31480 if test "$wxUSE_FS_INET" = "yes"; then
31481 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31482echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31483 wxUSE_FS_INET="no"
31484 fi
31485fi
31486
31487if test "$wxUSE_URL" = "yes"; then
31488 if test "$wxUSE_PROTOCOL" != "yes"; then
31489 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31490echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31491 wxUSE_URL=no
31492 fi
31493 if test "$wxUSE_URL" = "yes"; then
31494 cat >>confdefs.h <<\_ACEOF
31495#define wxUSE_URL 1
31496_ACEOF
31497
31498 fi
31499fi
31500
31501if test "$wxUSE_FS_INET" = "yes"; then
31502 cat >>confdefs.h <<\_ACEOF
31503#define wxUSE_FS_INET 1
31504_ACEOF
31505
31506fi
31507
8284b0c5 31508
dc3d889d
VZ
31509if test "$wxUSE_GUI" = "yes"; then
31510
ac0c4cc3 31511 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31512 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31513echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31514 wxUSE_JOYSTICK=no
156b2523
GD
31515 fi
31516
131f235d 31517 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31518 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31519
31520for ac_header in linux/joystick.h
10f2d63a 31521do
e6cc62c6
VS
31522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31523if eval "test \"\${$as_ac_Header+set}\" = set"; then
31524 echo "$as_me:$LINENO: checking for $ac_header" >&5
31525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31526if eval "test \"\${$as_ac_Header+set}\" = set"; then
31527 echo $ECHO_N "(cached) $ECHO_C" >&6
31528fi
31529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31531else
31532 # Is the header compilable?
31533echo "$as_me:$LINENO: checking $ac_header usability" >&5
31534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31535cat >conftest.$ac_ext <<_ACEOF
31536#line $LINENO "configure"
31537/* confdefs.h. */
31538_ACEOF
31539cat confdefs.h >>conftest.$ac_ext
31540cat >>conftest.$ac_ext <<_ACEOF
31541/* end confdefs.h. */
31542$ac_includes_default
31543#include <$ac_header>
31544_ACEOF
31545rm -f conftest.$ac_objext
31546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31547 (eval $ac_compile) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); } &&
31551 { ac_try='test -s conftest.$ac_objext'
31552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553 (eval $ac_try) 2>&5
31554 ac_status=$?
31555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556 (exit $ac_status); }; }; then
31557 ac_header_compiler=yes
31558else
31559 echo "$as_me: failed program was:" >&5
31560sed 's/^/| /' conftest.$ac_ext >&5
31561
31562ac_header_compiler=no
31563fi
31564rm -f conftest.$ac_objext conftest.$ac_ext
31565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31566echo "${ECHO_T}$ac_header_compiler" >&6
31567
31568# Is the header present?
31569echo "$as_me:$LINENO: checking $ac_header presence" >&5
31570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31571cat >conftest.$ac_ext <<_ACEOF
31572#line $LINENO "configure"
31573/* confdefs.h. */
31574_ACEOF
31575cat confdefs.h >>conftest.$ac_ext
31576cat >>conftest.$ac_ext <<_ACEOF
31577/* end confdefs.h. */
31578#include <$ac_header>
31579_ACEOF
31580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31582 ac_status=$?
31583 grep -v '^ *+' conftest.er1 >conftest.err
31584 rm -f conftest.er1
31585 cat conftest.err >&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); } >/dev/null; then
31588 if test -s conftest.err; then
31589 ac_cpp_err=$ac_c_preproc_warn_flag
31590 else
31591 ac_cpp_err=
31592 fi
31593else
31594 ac_cpp_err=yes
31595fi
31596if test -z "$ac_cpp_err"; then
31597 ac_header_preproc=yes
31598else
31599 echo "$as_me: failed program was:" >&5
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
31602 ac_header_preproc=no
31603fi
31604rm -f conftest.err conftest.$ac_ext
31605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31606echo "${ECHO_T}$ac_header_preproc" >&6
31607
31608# So? What about this header?
31609case $ac_header_compiler:$ac_header_preproc in
31610 yes:no )
31611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31615 (
31616 cat <<\_ASBOX
31617## ------------------------------------ ##
31618## Report this to bug-autoconf@gnu.org. ##
31619## ------------------------------------ ##
31620_ASBOX
31621 ) |
31622 sed "s/^/$as_me: WARNING: /" >&2
31623 ;;
31624 no:yes )
31625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31631 (
31632 cat <<\_ASBOX
31633## ------------------------------------ ##
31634## Report this to bug-autoconf@gnu.org. ##
31635## ------------------------------------ ##
31636_ASBOX
31637 ) |
31638 sed "s/^/$as_me: WARNING: /" >&2
31639 ;;
31640esac
31641echo "$as_me:$LINENO: checking for $ac_header" >&5
31642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31643if eval "test \"\${$as_ac_Header+set}\" = set"; then
31644 echo $ECHO_N "(cached) $ECHO_C" >&6
31645else
31646 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31647fi
e6cc62c6
VS
31648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31650
10f2d63a 31651fi
e6cc62c6
VS
31652if test `eval echo '${'$as_ac_Header'}'` = yes; then
31653 cat >>confdefs.h <<_ACEOF
31654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31655_ACEOF
31656
247f5006 31657fi
e6cc62c6 31658
10f2d63a
VZ
31659done
31660
3a922bb4
RL
31661 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31662 wxUSE_JOYSTICK=no
e6cc62c6
VS
31663 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31664echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31665 fi
31666 fi
31667 fi
b089607b 31668
3a922bb4 31669 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31670 cat >>confdefs.h <<\_ACEOF
10f2d63a 31671#define wxUSE_JOYSTICK 1
e6cc62c6 31672_ACEOF
10f2d63a 31673
3a922bb4
RL
31674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31675 fi
dc3d889d
VZ
31676fi
31677
8284b0c5 31678
73d617c9 31679if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 31680
3a922bb4
RL
31681 HAVE_DL_FUNCS=0
31682 HAVE_SHL_FUNCS=0
0b9ab0bd 31683 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31684 if test "$USE_DARWIN" = 1; then
31685 HAVE_DL_FUNCS=1
31686 else
e6cc62c6
VS
31687
31688for ac_func in dlopen
10f2d63a 31689do
e6cc62c6
VS
31690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31691echo "$as_me:$LINENO: checking for $ac_func" >&5
31692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31693if eval "test \"\${$as_ac_var+set}\" = set"; then
31694 echo $ECHO_N "(cached) $ECHO_C" >&6
31695else
31696 cat >conftest.$ac_ext <<_ACEOF
31697#line $LINENO "configure"
31698/* confdefs.h. */
31699_ACEOF
31700cat confdefs.h >>conftest.$ac_ext
31701cat >>conftest.$ac_ext <<_ACEOF
31702/* end confdefs.h. */
10f2d63a 31703/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31704 which can conflict with char $ac_func (); below.
31705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31706 <limits.h> exists even on freestanding compilers. */
31707#ifdef __STDC__
31708# include <limits.h>
31709#else
31710# include <assert.h>
31711#endif
10f2d63a 31712/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31713#ifdef __cplusplus
31714extern "C"
31715{
31716#endif
10f2d63a 31717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31718 builtin and then its argument prototype would still apply. */
31719char $ac_func ();
10f2d63a
VZ
31720/* The GNU C library defines this for functions which it implements
31721 to always fail with ENOSYS. Some functions are actually named
31722 something starting with __ and the normal name is an alias. */
31723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31724choke me
31725#else
e6cc62c6
VS
31726char (*f) () = $ac_func;
31727#endif
31728#ifdef __cplusplus
31729}
10f2d63a
VZ
31730#endif
31731
e6cc62c6
VS
31732int
31733main ()
31734{
31735return f != $ac_func;
31736 ;
31737 return 0;
31738}
31739_ACEOF
31740rm -f conftest.$ac_objext conftest$ac_exeext
31741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31742 (eval $ac_link) 2>&5
31743 ac_status=$?
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); } &&
31746 { ac_try='test -s conftest$ac_exeext'
31747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748 (eval $ac_try) 2>&5
31749 ac_status=$?
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; }; then
31752 eval "$as_ac_var=yes"
31753else
31754 echo "$as_me: failed program was:" >&5
31755sed 's/^/| /' conftest.$ac_ext >&5
31756
31757eval "$as_ac_var=no"
31758fi
31759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31760fi
31761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31763if test `eval echo '${'$as_ac_var'}'` = yes; then
31764 cat >>confdefs.h <<_ACEOF
31765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31766_ACEOF
31767
31768 cat >>confdefs.h <<\_ACEOF
10f2d63a 31769#define HAVE_DLOPEN 1
e6cc62c6 31770_ACEOF
10f2d63a 31771
3a922bb4 31772 HAVE_DL_FUNCS=1
e6cc62c6 31773
10f2d63a 31774else
e6cc62c6
VS
31775
31776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31779 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31780else
e6cc62c6 31781 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31782LIBS="-ldl $LIBS"
e6cc62c6
VS
31783cat >conftest.$ac_ext <<_ACEOF
31784#line $LINENO "configure"
31785/* confdefs.h. */
31786_ACEOF
31787cat confdefs.h >>conftest.$ac_ext
31788cat >>conftest.$ac_ext <<_ACEOF
31789/* end confdefs.h. */
31790
10f2d63a 31791/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31792#ifdef __cplusplus
31793extern "C"
31794#endif
10f2d63a 31795/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31796 builtin and then its argument prototype would still apply. */
31797char dlopen ();
31798int
31799main ()
31800{
31801dlopen ();
31802 ;
31803 return 0;
31804}
31805_ACEOF
31806rm -f conftest.$ac_objext conftest$ac_exeext
31807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31808 (eval $ac_link) 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); } &&
31812 { ac_try='test -s conftest$ac_exeext'
31813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31814 (eval $ac_try) 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; }; then
31818 ac_cv_lib_dl_dlopen=yes
31819else
31820 echo "$as_me: failed program was:" >&5
31821sed 's/^/| /' conftest.$ac_ext >&5
31822
31823ac_cv_lib_dl_dlopen=no
31824fi
31825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31826LIBS=$ac_check_lib_save_LIBS
31827fi
31828echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31829echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31830if test $ac_cv_lib_dl_dlopen = yes; then
31831
31832 cat >>confdefs.h <<\_ACEOF
10f2d63a 31833#define HAVE_DLOPEN 1
e6cc62c6 31834_ACEOF
10f2d63a 31835
3a922bb4 31836 HAVE_DL_FUNCS=1
3d63bc3a 31837 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31838
10f2d63a 31839else
10f2d63a 31840
e6cc62c6
VS
31841
31842for ac_func in shl_load
10f2d63a 31843do
e6cc62c6
VS
31844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31845echo "$as_me:$LINENO: checking for $ac_func" >&5
31846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31847if eval "test \"\${$as_ac_var+set}\" = set"; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
31850 cat >conftest.$ac_ext <<_ACEOF
31851#line $LINENO "configure"
31852/* confdefs.h. */
31853_ACEOF
31854cat confdefs.h >>conftest.$ac_ext
31855cat >>conftest.$ac_ext <<_ACEOF
31856/* end confdefs.h. */
10f2d63a 31857/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31858 which can conflict with char $ac_func (); below.
31859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31860 <limits.h> exists even on freestanding compilers. */
31861#ifdef __STDC__
31862# include <limits.h>
31863#else
31864# include <assert.h>
31865#endif
10f2d63a 31866/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31867#ifdef __cplusplus
31868extern "C"
31869{
31870#endif
10f2d63a 31871/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31872 builtin and then its argument prototype would still apply. */
31873char $ac_func ();
10f2d63a
VZ
31874/* The GNU C library defines this for functions which it implements
31875 to always fail with ENOSYS. Some functions are actually named
31876 something starting with __ and the normal name is an alias. */
31877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31878choke me
31879#else
e6cc62c6
VS
31880char (*f) () = $ac_func;
31881#endif
31882#ifdef __cplusplus
31883}
10f2d63a
VZ
31884#endif
31885
e6cc62c6
VS
31886int
31887main ()
31888{
31889return f != $ac_func;
31890 ;
31891 return 0;
31892}
31893_ACEOF
31894rm -f conftest.$ac_objext conftest$ac_exeext
31895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31896 (eval $ac_link) 2>&5
31897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try='test -s conftest$ac_exeext'
31901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902 (eval $ac_try) 2>&5
31903 ac_status=$?
31904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905 (exit $ac_status); }; }; then
31906 eval "$as_ac_var=yes"
31907else
31908 echo "$as_me: failed program was:" >&5
31909sed 's/^/| /' conftest.$ac_ext >&5
31910
31911eval "$as_ac_var=no"
31912fi
31913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31914fi
31915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31917if test `eval echo '${'$as_ac_var'}'` = yes; then
31918 cat >>confdefs.h <<_ACEOF
31919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31920_ACEOF
31921
31922 cat >>confdefs.h <<\_ACEOF
10f2d63a 31923#define HAVE_SHL_LOAD 1
e6cc62c6 31924_ACEOF
10f2d63a 31925
3a922bb4 31926 HAVE_SHL_FUNCS=1
e6cc62c6 31927
10f2d63a 31928else
e6cc62c6
VS
31929
31930 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31931echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31932if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31933 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31934else
e6cc62c6 31935 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31936LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31937cat >conftest.$ac_ext <<_ACEOF
31938#line $LINENO "configure"
31939/* confdefs.h. */
31940_ACEOF
31941cat confdefs.h >>conftest.$ac_ext
31942cat >>conftest.$ac_ext <<_ACEOF
31943/* end confdefs.h. */
31944
8284b0c5 31945/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31946#ifdef __cplusplus
31947extern "C"
31948#endif
f6bcfd97 31949/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31950 builtin and then its argument prototype would still apply. */
31951char dld ();
31952int
31953main ()
31954{
31955dld ();
31956 ;
31957 return 0;
31958}
31959_ACEOF
31960rm -f conftest.$ac_objext conftest$ac_exeext
31961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31962 (eval $ac_link) 2>&5
31963 ac_status=$?
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); } &&
31966 { ac_try='test -s conftest$ac_exeext'
31967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31968 (eval $ac_try) 2>&5
31969 ac_status=$?
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); }; }; then
31972 ac_cv_lib_shl_load_dld=yes
31973else
31974 echo "$as_me: failed program was:" >&5
31975sed 's/^/| /' conftest.$ac_ext >&5
31976
31977ac_cv_lib_shl_load_dld=no
31978fi
31979rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31980LIBS=$ac_check_lib_save_LIBS
31981fi
31982echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31983echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31984if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31985
3a922bb4 31986 HAVE_SHL_FUNCS=1
3d63bc3a 31987 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31988
f6bcfd97
BP
31989fi
31990
e6cc62c6 31991
10f2d63a
VZ
31992fi
31993done
31994
e6cc62c6 31995
10f2d63a
VZ
31996fi
31997
e6cc62c6 31998
10f2d63a
VZ
31999fi
32000done
32001
5c6fa7d2 32002
8284b0c5 32003 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
32004
32005for ac_func in dlerror
f6bcfd97 32006do
e6cc62c6
VS
32007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32008echo "$as_me:$LINENO: checking for $ac_func" >&5
32009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32010if eval "test \"\${$as_ac_var+set}\" = set"; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32012else
32013 cat >conftest.$ac_ext <<_ACEOF
32014#line $LINENO "configure"
32015/* confdefs.h. */
32016_ACEOF
32017cat confdefs.h >>conftest.$ac_ext
32018cat >>conftest.$ac_ext <<_ACEOF
32019/* end confdefs.h. */
f6bcfd97 32020/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32021 which can conflict with char $ac_func (); below.
32022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023 <limits.h> exists even on freestanding compilers. */
32024#ifdef __STDC__
32025# include <limits.h>
32026#else
32027# include <assert.h>
32028#endif
f6bcfd97 32029/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32030#ifdef __cplusplus
32031extern "C"
32032{
32033#endif
f6bcfd97 32034/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32035 builtin and then its argument prototype would still apply. */
32036char $ac_func ();
f6bcfd97
BP
32037/* The GNU C library defines this for functions which it implements
32038 to always fail with ENOSYS. Some functions are actually named
32039 something starting with __ and the normal name is an alias. */
32040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32041choke me
32042#else
e6cc62c6
VS
32043char (*f) () = $ac_func;
32044#endif
32045#ifdef __cplusplus
32046}
f6bcfd97
BP
32047#endif
32048
e6cc62c6
VS
32049int
32050main ()
32051{
32052return f != $ac_func;
32053 ;
32054 return 0;
32055}
32056_ACEOF
32057rm -f conftest.$ac_objext conftest$ac_exeext
32058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32059 (eval $ac_link) 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } &&
32063 { ac_try='test -s conftest$ac_exeext'
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
32069 eval "$as_ac_var=yes"
32070else
32071 echo "$as_me: failed program was:" >&5
32072sed 's/^/| /' conftest.$ac_ext >&5
32073
32074eval "$as_ac_var=no"
32075fi
32076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32077fi
32078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32080if test `eval echo '${'$as_ac_var'}'` = yes; then
32081 cat >>confdefs.h <<_ACEOF
32082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32083_ACEOF
32084 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32085#define HAVE_DLERROR 1
e6cc62c6 32086_ACEOF
f6bcfd97
BP
32087
32088else
0e012a93
VZ
32089
32090 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
32091echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32092if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32093 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 32094else
e6cc62c6 32095 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 32096LIBS="-ldl $LIBS"
e6cc62c6
VS
32097cat >conftest.$ac_ext <<_ACEOF
32098#line $LINENO "configure"
32099/* confdefs.h. */
32100_ACEOF
32101cat confdefs.h >>conftest.$ac_ext
32102cat >>conftest.$ac_ext <<_ACEOF
32103/* end confdefs.h. */
32104
f6bcfd97 32105/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32106#ifdef __cplusplus
32107extern "C"
32108#endif
f6bcfd97 32109/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32110 builtin and then its argument prototype would still apply. */
32111char dlerror ();
32112int
32113main ()
32114{
32115dlerror ();
32116 ;
32117 return 0;
32118}
32119_ACEOF
32120rm -f conftest.$ac_objext conftest$ac_exeext
32121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32122 (eval $ac_link) 2>&5
32123 ac_status=$?
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); } &&
32126 { ac_try='test -s conftest$ac_exeext'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32129 ac_status=$?
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_lib_dl_dlerror=yes
32133else
32134 echo "$as_me: failed program was:" >&5
32135sed 's/^/| /' conftest.$ac_ext >&5
32136
32137ac_cv_lib_dl_dlerror=no
32138fi
32139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32140LIBS=$ac_check_lib_save_LIBS
32141fi
32142echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32143echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32144if test $ac_cv_lib_dl_dlerror = yes; then
32145 cat >>confdefs.h <<\_ACEOF
f6bcfd97 32146#define HAVE_DLERROR 1
e6cc62c6 32147_ACEOF
f6bcfd97 32148
f6bcfd97
BP
32149fi
32150
0e012a93
VZ
32151
32152
f6bcfd97
BP
32153fi
32154done
32155
3a922bb4
RL
32156 fi
32157 fi
f6bcfd97 32158
3a922bb4
RL
32159 if test "$HAVE_DL_FUNCS" = 0; then
32160 if test "$HAVE_SHL_FUNCS" = 0; then
32161 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
32162 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32163echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 32164 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
32165 wxUSE_DYNLIB_CLASS=no
32166 else
e6cc62c6
VS
32167 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32168echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
32169 fi
32170 fi
10f2d63a
VZ
32171 fi
32172 fi
32173fi
32174
0b9ab0bd 32175if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 32176 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 32177#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 32178_ACEOF
0b9ab0bd 32179
1948bb32
VS
32180fi
32181if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 32182 cat >>confdefs.h <<\_ACEOF
10f2d63a 32183#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 32184_ACEOF
10f2d63a
VZ
32185
32186fi
32187
8284b0c5 32188
1e6feb95 32189if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32190 cat >>confdefs.h <<\_ACEOF
1e6feb95 32191#define wxUSE_FONTMAP 1
e6cc62c6 32192_ACEOF
1e6feb95
VZ
32193
32194fi
32195
10f2d63a 32196if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32197 cat >>confdefs.h <<\_ACEOF
10f2d63a 32198#define wxUSE_UNICODE 1
e6cc62c6 32199_ACEOF
10f2d63a 32200
8284b0c5 32201
eb854003 32202 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32203 wxUSE_UNICODE_MSLU=no
32204 fi
a72a4bfa 32205
eb854003 32206 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32207 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32208echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32209if test "${ac_cv_lib_unicows_main+set}" = set; then
32210 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32211else
e6cc62c6 32212 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32213LIBS="-lunicows $LIBS"
e6cc62c6
VS
32214cat >conftest.$ac_ext <<_ACEOF
32215#line $LINENO "configure"
32216/* confdefs.h. */
32217_ACEOF
32218cat confdefs.h >>conftest.$ac_ext
32219cat >>conftest.$ac_ext <<_ACEOF
32220/* end confdefs.h. */
a72a4bfa 32221
8284b0c5 32222
e6cc62c6
VS
32223int
32224main ()
32225{
32226main ();
32227 ;
32228 return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext conftest$ac_exeext
32232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32233 (eval $ac_link) 2>&5
32234 ac_status=$?
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
32237 { ac_try='test -s conftest$ac_exeext'
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32240 ac_status=$?
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; }; then
32243 ac_cv_lib_unicows_main=yes
32244else
32245 echo "$as_me: failed program was:" >&5
32246sed 's/^/| /' conftest.$ac_ext >&5
32247
32248ac_cv_lib_unicows_main=no
32249fi
32250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32251LIBS=$ac_check_lib_save_LIBS
32252fi
32253echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32254echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32255if test $ac_cv_lib_unicows_main = yes; then
32256
32257 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32258#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32259_ACEOF
32260
a72a4bfa 32261
a72a4bfa 32262else
a72a4bfa 32263
e6cc62c6
VS
32264 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32265 Applications will only run on Windows NT/2000/XP!" >&5
32266echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32267 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32268 wxUSE_UNICODE_MSLU=no
e6cc62c6 32269
a72a4bfa
VS
32270fi
32271
32272 fi
10f2d63a
VZ
32273fi
32274
10f2d63a 32275if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32276 cat >>confdefs.h <<\_ACEOF
10f2d63a 32277#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32278_ACEOF
10f2d63a
VZ
32279
32280fi
32281
8284b0c5 32282
10f2d63a 32283if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32284 cat >>confdefs.h <<\_ACEOF
10f2d63a 32285#define wxUSE_POSTSCRIPT 1
e6cc62c6 32286_ACEOF
10f2d63a
VZ
32287
32288fi
32289
e6cc62c6 32290cat >>confdefs.h <<\_ACEOF
10f2d63a 32291#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32292_ACEOF
10f2d63a 32293
8284b0c5 32294
e6cc62c6 32295cat >>confdefs.h <<\_ACEOF
10f2d63a 32296#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32297_ACEOF
10f2d63a 32298
8284b0c5
MB
32299
32300
10f2d63a 32301if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32302 cat >>confdefs.h <<\_ACEOF
10f2d63a 32303#define wxUSE_CONSTRAINTS 1
e6cc62c6 32304_ACEOF
10f2d63a
VZ
32305
32306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32307fi
32308
3879ecda 32309if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32310 cat >>confdefs.h <<\_ACEOF
10f2d63a 32311#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32312_ACEOF
10f2d63a 32313
1772d20c 32314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32315fi
32316
32317if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32318 cat >>confdefs.h <<\_ACEOF
10f2d63a 32319#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32320_ACEOF
10f2d63a
VZ
32321
32322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32323 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32325 fi
32326fi
32327
32328if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32329 cat >>confdefs.h <<\_ACEOF
10f2d63a 32330#define wxUSE_HELP 1
e6cc62c6 32331_ACEOF
10f2d63a
VZ
32332
32333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32334
77e13408 32335 if test "$wxUSE_MSW" = 1; then
031d8228 32336 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32337 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32338#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32339_ACEOF
29fd3c0c 32340
3e44f09d 32341 fi
3379ed37 32342 fi
031d8228
VS
32343
32344 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32345 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32346 cat >>confdefs.h <<\_ACEOF
031d8228 32347#define wxUSE_WXHTML_HELP 1
e6cc62c6 32348_ACEOF
031d8228
VS
32349
32350 else
e6cc62c6
VS
32351 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32352echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32353 wxUSE_WXHTML_HELP=no
32354 fi
32355 fi
10f2d63a
VZ
32356fi
32357
32358if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32359 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32360 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32361echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32362 else
e6cc62c6 32363 cat >>confdefs.h <<\_ACEOF
10f2d63a 32364#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32365_ACEOF
10f2d63a
VZ
32366
32367 fi
32368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32369fi
32370
e6cc62c6
VS
32371if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32372 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32373echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32374 { (exit 1); exit 1; }; }
32375fi
32376
32377
32378if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32379 -o "$wxUSE_CLIPBOARD" = "yes" \
32380 -o "$wxUSE_OLE" = "yes" \
32381 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32382
32383for ac_header in ole2.h
32384do
32385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32386if eval "test \"\${$as_ac_Header+set}\" = set"; then
32387 echo "$as_me:$LINENO: checking for $ac_header" >&5
32388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32389if eval "test \"\${$as_ac_Header+set}\" = set"; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391fi
32392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32394else
32395 # Is the header compilable?
32396echo "$as_me:$LINENO: checking $ac_header usability" >&5
32397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32398cat >conftest.$ac_ext <<_ACEOF
32399#line $LINENO "configure"
32400/* confdefs.h. */
32401_ACEOF
32402cat confdefs.h >>conftest.$ac_ext
32403cat >>conftest.$ac_ext <<_ACEOF
32404/* end confdefs.h. */
32405$ac_includes_default
32406#include <$ac_header>
32407_ACEOF
32408rm -f conftest.$ac_objext
32409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32410 (eval $ac_compile) 2>&5
32411 ac_status=$?
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); } &&
32414 { ac_try='test -s conftest.$ac_objext'
32415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32416 (eval $ac_try) 2>&5
32417 ac_status=$?
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); }; }; then
32420 ac_header_compiler=yes
32421else
32422 echo "$as_me: failed program was:" >&5
32423sed 's/^/| /' conftest.$ac_ext >&5
32424
32425ac_header_compiler=no
32426fi
32427rm -f conftest.$ac_objext conftest.$ac_ext
32428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32429echo "${ECHO_T}$ac_header_compiler" >&6
32430
32431# Is the header present?
32432echo "$as_me:$LINENO: checking $ac_header presence" >&5
32433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32434cat >conftest.$ac_ext <<_ACEOF
32435#line $LINENO "configure"
32436/* confdefs.h. */
32437_ACEOF
32438cat confdefs.h >>conftest.$ac_ext
32439cat >>conftest.$ac_ext <<_ACEOF
32440/* end confdefs.h. */
32441#include <$ac_header>
32442_ACEOF
32443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32445 ac_status=$?
32446 grep -v '^ *+' conftest.er1 >conftest.err
32447 rm -f conftest.er1
32448 cat conftest.err >&5
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); } >/dev/null; then
32451 if test -s conftest.err; then
32452 ac_cpp_err=$ac_c_preproc_warn_flag
32453 else
32454 ac_cpp_err=
32455 fi
32456else
32457 ac_cpp_err=yes
32458fi
32459if test -z "$ac_cpp_err"; then
32460 ac_header_preproc=yes
32461else
32462 echo "$as_me: failed program was:" >&5
32463sed 's/^/| /' conftest.$ac_ext >&5
32464
32465 ac_header_preproc=no
32466fi
32467rm -f conftest.err conftest.$ac_ext
32468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32469echo "${ECHO_T}$ac_header_preproc" >&6
32470
32471# So? What about this header?
32472case $ac_header_compiler:$ac_header_preproc in
32473 yes:no )
32474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32475echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32478 (
32479 cat <<\_ASBOX
32480## ------------------------------------ ##
32481## Report this to bug-autoconf@gnu.org. ##
32482## ------------------------------------ ##
32483_ASBOX
32484 ) |
32485 sed "s/^/$as_me: WARNING: /" >&2
32486 ;;
32487 no:yes )
32488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32494 (
32495 cat <<\_ASBOX
32496## ------------------------------------ ##
32497## Report this to bug-autoconf@gnu.org. ##
32498## ------------------------------------ ##
32499_ASBOX
32500 ) |
32501 sed "s/^/$as_me: WARNING: /" >&2
32502 ;;
32503esac
32504echo "$as_me:$LINENO: checking for $ac_header" >&5
32505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32506if eval "test \"\${$as_ac_Header+set}\" = set"; then
32507 echo $ECHO_N "(cached) $ECHO_C" >&6
32508else
32509 eval "$as_ac_Header=$ac_header_preproc"
32510fi
32511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32513
10f2d63a 32514fi
e6cc62c6
VS
32515if test `eval echo '${'$as_ac_Header'}'` = yes; then
32516 cat >>confdefs.h <<_ACEOF
32517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32518_ACEOF
10f2d63a 32519
10f2d63a 32520fi
e6cc62c6 32521
10f2d63a
VZ
32522done
32523
8284b0c5 32524
2b9bdf71
VZ
32525 if test "$ac_cv_header_ole2_h" = "yes" ; then
32526 if test "$GCC" = yes ; then
8284b0c5
MB
32527
32528
e6cc62c6
VS
32529 ac_ext=cc
32530ac_cpp='$CXXCPP $CPPFLAGS'
32531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32534
32535
32536 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32537echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32538 cat >conftest.$ac_ext <<_ACEOF
32539#line $LINENO "configure"
32540/* confdefs.h. */
32541_ACEOF
32542cat confdefs.h >>conftest.$ac_ext
32543cat >>conftest.$ac_ext <<_ACEOF
32544/* end confdefs.h. */
8284b0c5
MB
32545#include <windows.h>
32546 #include <ole2.h>
e6cc62c6
VS
32547int
32548main ()
32549{
8284b0c5 32550
e6cc62c6
VS
32551 ;
32552 return 0;
32553}
32554_ACEOF
32555rm -f conftest.$ac_objext
32556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32557 (eval $ac_compile) 2>&5
32558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); } &&
32561 { ac_try='test -s conftest.$ac_objext'
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32564 ac_status=$?
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; }; then
32567 echo "$as_me:$LINENO: result: no" >&5
32568echo "${ECHO_T}no" >&6
32569else
32570 echo "$as_me: failed program was:" >&5
32571sed 's/^/| /' conftest.$ac_ext >&5
32572
32573echo "$as_me:$LINENO: result: yes" >&5
32574echo "${ECHO_T}yes" >&6
8284b0c5
MB
32575 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32576fi
e6cc62c6 32577rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32578 ac_ext=c
8284b0c5 32579ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32582ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32583
2b9bdf71 32584 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32585 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32586 cat >>confdefs.h <<\_ACEOF
4f11a343 32587#define wxUSE_OLE 1
e6cc62c6 32588_ACEOF
4f11a343 32589
8284b0c5 32590
2b9bdf71
VZ
32591 fi
32592
e6cc62c6 32593 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32594#define wxUSE_DATAOBJ 1
e6cc62c6 32595_ACEOF
2b9bdf71
VZ
32596
32597 else
e6cc62c6
VS
32598 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32599echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32600
32601 wxUSE_CLIPBOARD=no
32602 wxUSE_DRAG_AND_DROP=no
32603 wxUSE_DATAOBJ=no
3bce6687
JS
32604 wxUSE_OLE=no
32605 fi
32606
32607 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32608 cat >>confdefs.h <<\_ACEOF
3bce6687 32609#define wxUSE_METAFILE 1
e6cc62c6 32610_ACEOF
3bce6687
JS
32611
32612
e6cc62c6 32613 cat >>confdefs.h <<\_ACEOF
3bce6687 32614#define wxUSE_ENH_METAFILE 1
e6cc62c6 32615_ACEOF
3bce6687
JS
32616
32617 fi
32618fi
32619
2b9bdf71
VZ
32620if test "$wxUSE_IPC" = "yes"; then
32621 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32622 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32623echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32624 fi
32625
e6cc62c6 32626 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32627#define wxUSE_IPC 1
e6cc62c6 32628_ACEOF
2b9bdf71
VZ
32629
32630fi
32631
32632if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32633 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32634 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32635echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32636 wxUSE_CLIPBOARD=no
32637 fi
32638
32639 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32640 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32641#define wxUSE_CLIPBOARD 1
e6cc62c6 32642_ACEOF
2b9bdf71 32643
8284b0c5 32644
e6cc62c6 32645 cat >>confdefs.h <<\_ACEOF
673f4220 32646#define wxUSE_DATAOBJ 1
e6cc62c6 32647_ACEOF
673f4220 32648
6c657b52 32649 fi
2b9bdf71
VZ
32650fi
32651
32652if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32653 if test "$wxUSE_GTK" = 1; then
32654 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32655 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32656echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32657 wxUSE_DRAG_AND_DROP=no
32658 fi
32659 fi
32660
2b9bdf71 32661 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32662 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32663echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32664 wxUSE_DRAG_AND_DROP=no
32665 fi
32666
f79bd02d 32667 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32668 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32669echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32670 wxUSE_DRAG_AND_DROP=no
32671 fi
32672
6c657b52 32673 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32674 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32675echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32676 wxUSE_DRAG_AND_DROP=no
32677 fi
32678
10f2d63a 32679 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32680 cat >>confdefs.h <<\_ACEOF
10f2d63a 32681#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32682_ACEOF
10f2d63a
VZ
32683
32684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32685 fi
32686
32687fi
32688
32689if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32690 cat >>confdefs.h <<\_ACEOF
10f2d63a 32691#define wxUSE_SPLINES 1
e6cc62c6 32692_ACEOF
10f2d63a
VZ
32693
32694fi
32695
8284b0c5 32696
1e6feb95
VZ
32697USES_CONTROLS=0
32698if test "$wxUSE_CONTROLS" = "yes"; then
32699 USES_CONTROLS=1
32700fi
32701
10f2d63a 32702if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32703 cat >>confdefs.h <<\_ACEOF
10f2d63a 32704#define wxUSE_ACCEL 1
e6cc62c6 32705_ACEOF
10f2d63a 32706
1e6feb95
VZ
32707 USES_CONTROLS=1
32708fi
32709
32710if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32711 cat >>confdefs.h <<\_ACEOF
1e6feb95 32712#define wxUSE_BUTTON 1
e6cc62c6 32713_ACEOF
1e6feb95
VZ
32714
32715 USES_CONTROLS=1
32716fi
32717
32718if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32719 cat >>confdefs.h <<\_ACEOF
1e6feb95 32720#define wxUSE_BMPBUTTON 1
e6cc62c6 32721_ACEOF
1e6feb95
VZ
32722
32723 USES_CONTROLS=1
32724fi
32725
32726if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32727 cat >>confdefs.h <<\_ACEOF
1e6feb95 32728#define wxUSE_CALENDARCTRL 1
e6cc62c6 32729_ACEOF
1e6feb95
VZ
32730
32731 USES_CONTROLS=1
32732 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32733fi
32734
32735if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32736 cat >>confdefs.h <<\_ACEOF
10f2d63a 32737#define wxUSE_CARET 1
e6cc62c6 32738_ACEOF
10f2d63a 32739
1e6feb95 32740 USES_CONTROLS=1
10f2d63a
VZ
32741 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32742fi
32743
32744if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32745 cat >>confdefs.h <<\_ACEOF
10f2d63a 32746#define wxUSE_COMBOBOX 1
e6cc62c6 32747_ACEOF
10f2d63a 32748
1e6feb95 32749 USES_CONTROLS=1
10f2d63a
VZ
32750fi
32751
32752if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32753 cat >>confdefs.h <<\_ACEOF
10f2d63a 32754#define wxUSE_CHOICE 1
e6cc62c6 32755_ACEOF
10f2d63a 32756
1e6feb95 32757 USES_CONTROLS=1
10f2d63a
VZ
32758fi
32759
32760if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32761 cat >>confdefs.h <<\_ACEOF
10f2d63a 32762#define wxUSE_CHECKBOX 1
e6cc62c6 32763_ACEOF
10f2d63a 32764
1e6feb95 32765 USES_CONTROLS=1
10f2d63a
VZ
32766fi
32767
32768if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32769 cat >>confdefs.h <<\_ACEOF
10f2d63a 32770#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32771_ACEOF
10f2d63a 32772
1e6feb95 32773 USES_CONTROLS=1
10f2d63a
VZ
32774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32775fi
32776
da494b40 32777if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32778 cat >>confdefs.h <<\_ACEOF
da494b40 32779#define wxUSE_DISPLAY 1
e6cc62c6 32780_ACEOF
da494b40
MB
32781
32782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32783fi
32784
10f2d63a 32785if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32786 cat >>confdefs.h <<\_ACEOF
10f2d63a 32787#define wxUSE_GAUGE 1
e6cc62c6 32788_ACEOF
10f2d63a 32789
1e6feb95 32790 USES_CONTROLS=1
10f2d63a
VZ
32791fi
32792
d6a55c4b 32793if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32794 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32795#define wxUSE_GRID 1
e6cc62c6 32796_ACEOF
10f2d63a 32797
1e6feb95 32798 USES_CONTROLS=1
d6a55c4b 32799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32800fi
32801
32802if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32803 cat >>confdefs.h <<\_ACEOF
10f2d63a 32804#define wxUSE_IMAGLIST 1
e6cc62c6 32805_ACEOF
10f2d63a
VZ
32806
32807fi
32808
0e012a93
VZ
32809if test "$wxUSE_LISTBOOK" = "yes"; then
32810 cat >>confdefs.h <<\_ACEOF
32811#define wxUSE_LISTBOOK 1
32812_ACEOF
32813
32814 USES_CONTROLS=1
32815fi
32816
10f2d63a 32817if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32818 cat >>confdefs.h <<\_ACEOF
10f2d63a 32819#define wxUSE_LISTBOX 1
e6cc62c6 32820_ACEOF
10f2d63a 32821
1e6feb95 32822 USES_CONTROLS=1
10f2d63a
VZ
32823fi
32824
32825if test "$wxUSE_LISTCTRL" = "yes"; then
32826 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32827 cat >>confdefs.h <<\_ACEOF
10f2d63a 32828#define wxUSE_LISTCTRL 1
e6cc62c6 32829_ACEOF
10f2d63a 32830
1e6feb95 32831 USES_CONTROLS=1
10f2d63a
VZ
32832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32833 else
e6cc62c6
VS
32834 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32835echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32836 fi
32837fi
32838
32839if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32840 cat >>confdefs.h <<\_ACEOF
10f2d63a 32841#define wxUSE_NOTEBOOK 1
e6cc62c6 32842_ACEOF
10f2d63a 32843
1e6feb95 32844 USES_CONTROLS=1
10f2d63a
VZ
32845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32846fi
32847
24176f2c 32848
10f2d63a 32849if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32850 cat >>confdefs.h <<\_ACEOF
10f2d63a 32851#define wxUSE_RADIOBOX 1
e6cc62c6 32852_ACEOF
10f2d63a 32853
1e6feb95 32854 USES_CONTROLS=1
10f2d63a
VZ
32855fi
32856
32857if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32858 cat >>confdefs.h <<\_ACEOF
10f2d63a 32859#define wxUSE_RADIOBTN 1
e6cc62c6 32860_ACEOF
10f2d63a 32861
1e6feb95 32862 USES_CONTROLS=1
10f2d63a
VZ
32863fi
32864
32865if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32866 cat >>confdefs.h <<\_ACEOF
10f2d63a 32867#define wxUSE_SASH 1
e6cc62c6 32868_ACEOF
10f2d63a
VZ
32869
32870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32871fi
32872
32873if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32874 cat >>confdefs.h <<\_ACEOF
10f2d63a 32875#define wxUSE_SCROLLBAR 1
e6cc62c6 32876_ACEOF
10f2d63a 32877
1e6feb95 32878 USES_CONTROLS=1
741a9306 32879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32880fi
32881
32882if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32883 cat >>confdefs.h <<\_ACEOF
10f2d63a 32884#define wxUSE_SLIDER 1
e6cc62c6 32885_ACEOF
10f2d63a 32886
1e6feb95 32887 USES_CONTROLS=1
10f2d63a
VZ
32888fi
32889
32890if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32891 cat >>confdefs.h <<\_ACEOF
10f2d63a 32892#define wxUSE_SPINBTN 1
e6cc62c6 32893_ACEOF
10f2d63a 32894
1e6feb95 32895 USES_CONTROLS=1
10f2d63a
VZ
32896fi
32897
56cfaa52 32898if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32899 cat >>confdefs.h <<\_ACEOF
56cfaa52 32900#define wxUSE_SPINCTRL 1
e6cc62c6 32901_ACEOF
56cfaa52 32902
1e6feb95 32903 USES_CONTROLS=1
56cfaa52
RR
32904fi
32905
10f2d63a 32906if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32907 cat >>confdefs.h <<\_ACEOF
10f2d63a 32908#define wxUSE_SPLITTER 1
e6cc62c6 32909_ACEOF
10f2d63a
VZ
32910
32911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32912fi
32913
32914if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32915 cat >>confdefs.h <<\_ACEOF
10f2d63a 32916#define wxUSE_STATBMP 1
e6cc62c6 32917_ACEOF
10f2d63a 32918
1e6feb95 32919 USES_CONTROLS=1
10f2d63a
VZ
32920fi
32921
32922if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32923 cat >>confdefs.h <<\_ACEOF
10f2d63a 32924#define wxUSE_STATBOX 1
e6cc62c6 32925_ACEOF
10f2d63a 32926
1e6feb95
VZ
32927 USES_CONTROLS=1
32928fi
32929
32930if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32931 cat >>confdefs.h <<\_ACEOF
1e6feb95 32932#define wxUSE_STATTEXT 1
e6cc62c6 32933_ACEOF
1e6feb95
VZ
32934
32935 USES_CONTROLS=1
10f2d63a
VZ
32936fi
32937
32938if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32939 cat >>confdefs.h <<\_ACEOF
10f2d63a 32940#define wxUSE_STATLINE 1
e6cc62c6 32941_ACEOF
10f2d63a 32942
89e6bf6d 32943 USES_CONTROLS=1
10f2d63a
VZ
32944fi
32945
32946if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32947 cat >>confdefs.h <<\_ACEOF
10f2d63a 32948#define wxUSE_STATUSBAR 1
e6cc62c6 32949_ACEOF
10f2d63a 32950
1e6feb95 32951 USES_CONTROLS=1
698dcdb6 32952
2286341c 32953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32954fi
32955
32956if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32957 cat >>confdefs.h <<\_ACEOF
10f2d63a 32958#define wxUSE_TAB_DIALOG 1
e6cc62c6 32959_ACEOF
10f2d63a
VZ
32960
32961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32962fi
32963
1e6feb95 32964if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32965 cat >>confdefs.h <<\_ACEOF
1e6feb95 32966#define wxUSE_TEXTCTRL 1
e6cc62c6 32967_ACEOF
1e6feb95
VZ
32968
32969 USES_CONTROLS=1
32970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32971fi
32972
1db8dc4a 32973if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32974 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32975 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32976echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32977 wxUSE_TOGGLEBTN=no
32978 fi
32979 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32980 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32981echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32982 wxUSE_TOGGLEBTN=no
32983 fi
32984
32985 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32986 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32987#define wxUSE_TOGGLEBTN 1
e6cc62c6 32988_ACEOF
1db8dc4a 32989
1e6feb95 32990 USES_CONTROLS=1
a45d7ab7 32991 fi
1db8dc4a
VZ
32992fi
32993
360d6699 32994if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32995 cat >>confdefs.h <<\_ACEOF
360d6699 32996#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32997_ACEOF
360d6699
VZ
32998
32999 wxUSE_TOOLBAR="yes"
1e6feb95 33000 USES_CONTROLS=1
360d6699
VZ
33001fi
33002
10f2d63a 33003if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 33004 cat >>confdefs.h <<\_ACEOF
10f2d63a 33005#define wxUSE_TOOLBAR 1
e6cc62c6 33006_ACEOF
10f2d63a 33007
1e6feb95 33008 USES_CONTROLS=1
698dcdb6 33009
360d6699
VZ
33010 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33011 wxUSE_TOOLBAR_NATIVE="yes"
33012 fi
33013
1e6feb95 33014 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 33015 cat >>confdefs.h <<\_ACEOF
360d6699 33016#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 33017_ACEOF
360d6699 33018
1e6feb95
VZ
33019 USES_CONTROLS=1
33020 fi
33021
33022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
33023fi
33024
10f2d63a
VZ
33025if test "$wxUSE_TOOLTIPS" = "yes"; then
33026 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33027 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33028echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 33029 else
89e6bf6d 33030 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
33031 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33032echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 33033 else
e6cc62c6 33034 cat >>confdefs.h <<\_ACEOF
10f2d63a 33035#define wxUSE_TOOLTIPS 1
e6cc62c6 33036_ACEOF
10f2d63a
VZ
33037
33038 fi
33039 fi
33040fi
33041
33042if test "$wxUSE_TREECTRL" = "yes"; then
33043 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 33044 cat >>confdefs.h <<\_ACEOF
10f2d63a 33045#define wxUSE_TREECTRL 1
e6cc62c6 33046_ACEOF
10f2d63a 33047
1e6feb95 33048 USES_CONTROLS=1
10f2d63a
VZ
33049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33050 else
e6cc62c6
VS
33051 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33052echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
33053 fi
33054fi
33055
9f41d601 33056if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 33057 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
33058 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33059echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 33060 else
485cf710 33061 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33062 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33063echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 33064 else
3c011993 33065 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33066 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33067echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33068 else
e6cc62c6 33069 cat >>confdefs.h <<\_ACEOF
9f41d601 33070#define wxUSE_POPUPWIN 1
e6cc62c6 33071_ACEOF
9f41d601 33072
8284b0c5 33073
3c011993
VZ
33074 USES_CONTROLS=1
33075 fi
485cf710 33076 fi
6abe4b65 33077 fi
9f41d601
RR
33078fi
33079
dd964dcc 33080if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 33081 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
33082 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33083echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 33084 else
e6cc62c6 33085 cat >>confdefs.h <<\_ACEOF
dd964dcc 33086#define wxUSE_TIPWINDOW 1
e6cc62c6 33087_ACEOF
dd964dcc 33088
3c011993 33089 fi
dd964dcc
VZ
33090fi
33091
1e6feb95 33092if test "$USES_CONTROLS" = 1; then
e6cc62c6 33093 cat >>confdefs.h <<\_ACEOF
1e6feb95 33094#define wxUSE_CONTROLS 1
e6cc62c6 33095_ACEOF
10f2d63a 33096
10f2d63a
VZ
33097fi
33098
8284b0c5 33099
e46d2a18
VS
33100if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33101 cat >>confdefs.h <<\_ACEOF
33102#define wxUSE_ACCESSIBILITY 1
33103_ACEOF
33104
33105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33106fi
1e6feb95 33107
24fd6d87 33108if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 33109 cat >>confdefs.h <<\_ACEOF
24fd6d87 33110#define wxUSE_DRAGIMAGE 1
e6cc62c6 33111_ACEOF
24fd6d87
VZ
33112
33113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33114fi
33115
e46d2a18 33116if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 33117 cat >>confdefs.h <<\_ACEOF
e46d2a18 33118#define wxUSE_EXCEPTIONS 1
e6cc62c6 33119_ACEOF
7bb2947d 33120
e46d2a18
VS
33121fi
33122
33123USE_HTML=0
33124if test "$wxUSE_HTML" = "yes"; then
33125 cat >>confdefs.h <<\_ACEOF
33126#define wxUSE_HTML 1
33127_ACEOF
33128
33129 USE_HTML=1
33130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
33131fi
33132
1e6feb95 33133if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 33134 cat >>confdefs.h <<\_ACEOF
1e6feb95 33135#define wxUSE_MENUS 1
e6cc62c6 33136_ACEOF
10f2d63a 33137
1e6feb95 33138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
33139fi
33140
1e6feb95 33141if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33142 cat >>confdefs.h <<\_ACEOF
1e6feb95 33143#define wxUSE_METAFILE 1
e6cc62c6 33144_ACEOF
10f2d63a 33145
10f2d63a
VZ
33146fi
33147
1e6feb95 33148if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 33149 cat >>confdefs.h <<\_ACEOF
1e6feb95 33150#define wxUSE_MIMETYPE 1
e6cc62c6 33151_ACEOF
10f2d63a 33152
10f2d63a
VZ
33153fi
33154
33155if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 33156 cat >>confdefs.h <<\_ACEOF
10f2d63a 33157#define wxUSE_MINIFRAME 1
e6cc62c6 33158_ACEOF
10f2d63a
VZ
33159
33160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33161fi
33162
e46d2a18 33163if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 33164 cat >>confdefs.h <<\_ACEOF
e46d2a18 33165#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 33166_ACEOF
10f2d63a 33167
e46d2a18
VS
33168 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33169 "$TOOLKIT" = "MOTIF"; then
33170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33171 fi
10f2d63a
VZ
33172fi
33173
e46d2a18 33174
10f2d63a 33175if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 33176 cat >>confdefs.h <<\_ACEOF
1e487827 33177#define wxUSE_VALIDATORS 1
e6cc62c6 33178_ACEOF
703e0a69 33179
698dcdb6
VZ
33180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33181fi
33182
edae8572 33183if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 33184 cat >>confdefs.h <<\_ACEOF
edae8572 33185#define wxUSE_PALETTE 1
e6cc62c6 33186_ACEOF
edae8572
VZ
33187
33188fi
33189
e46d2a18
VS
33190if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33191 LIBS=" -lunicows $LIBS"
33192fi
33193
33194
698dcdb6 33195if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 33196 cat >>confdefs.h <<\_ACEOF
698dcdb6 33197#define wxUSE_IMAGE 1
e6cc62c6 33198_ACEOF
698dcdb6 33199
698dcdb6 33200
e46d2a18
VS
33201 if test "$wxUSE_GIF" = "yes" ; then
33202 cat >>confdefs.h <<\_ACEOF
698dcdb6 33203#define wxUSE_GIF 1
e6cc62c6 33204_ACEOF
698dcdb6 33205
e46d2a18 33206 fi
698dcdb6 33207
e46d2a18
VS
33208 if test "$wxUSE_PCX" = "yes" ; then
33209 cat >>confdefs.h <<\_ACEOF
698dcdb6 33210#define wxUSE_PCX 1
e6cc62c6 33211_ACEOF
698dcdb6 33212
e46d2a18 33213 fi
698dcdb6 33214
e46d2a18
VS
33215 if test "$wxUSE_IFF" = "yes" ; then
33216 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33217#define wxUSE_IFF 1
e6cc62c6 33218_ACEOF
4b6b4dfc 33219
e46d2a18 33220 fi
4b6b4dfc 33221
e46d2a18
VS
33222 if test "$wxUSE_PNM" = "yes" ; then
33223 cat >>confdefs.h <<\_ACEOF
698dcdb6 33224#define wxUSE_PNM 1
e6cc62c6 33225_ACEOF
698dcdb6 33226
e46d2a18 33227 fi
698dcdb6 33228
e46d2a18
VS
33229 if test "$wxUSE_XPM" = "yes" ; then
33230 cat >>confdefs.h <<\_ACEOF
698dcdb6 33231#define wxUSE_XPM 1
e6cc62c6 33232_ACEOF
698dcdb6 33233
e46d2a18 33234 fi
698dcdb6 33235
e46d2a18
VS
33236 if test "$wxUSE_ICO_CUR" = "yes" ; then
33237 cat >>confdefs.h <<\_ACEOF
658974ae 33238#define wxUSE_ICO_CUR 1
e6cc62c6 33239_ACEOF
658974ae 33240
e46d2a18 33241 fi
a72a4bfa
VS
33242fi
33243
8284b0c5 33244
1e6feb95 33245if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33246 cat >>confdefs.h <<\_ACEOF
1e6feb95 33247#define wxUSE_CHOICEDLG 1
e6cc62c6 33248_ACEOF
1e6feb95
VZ
33249
33250fi
33251
33252if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33253 cat >>confdefs.h <<\_ACEOF
1e6feb95 33254#define wxUSE_COLOURDLG 1
e6cc62c6 33255_ACEOF
1e6feb95
VZ
33256
33257fi
33258
33259if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33260 cat >>confdefs.h <<\_ACEOF
1e6feb95 33261#define wxUSE_FILEDLG 1
e6cc62c6 33262_ACEOF
1e6feb95
VZ
33263
33264fi
33265
8db37e06 33266if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33267 cat >>confdefs.h <<\_ACEOF
8db37e06 33268#define wxUSE_FINDREPLDLG 1
e6cc62c6 33269_ACEOF
8db37e06
VZ
33270
33271fi
33272
1e6feb95 33273if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33274 cat >>confdefs.h <<\_ACEOF
1e6feb95 33275#define wxUSE_FONTDLG 1
e6cc62c6 33276_ACEOF
1e6feb95
VZ
33277
33278fi
33279
33280if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33281 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33282 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33283echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33284 else
e6cc62c6 33285 cat >>confdefs.h <<\_ACEOF
1e6feb95 33286#define wxUSE_DIRDLG 1
e6cc62c6 33287_ACEOF
1e6feb95 33288
1e6feb95
VZ
33289 fi
33290fi
33291
33292if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33293 cat >>confdefs.h <<\_ACEOF
1e6feb95 33294#define wxUSE_MSGDLG 1
e6cc62c6 33295_ACEOF
1e6feb95
VZ
33296
33297fi
33298
33299if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33300 cat >>confdefs.h <<\_ACEOF
1e6feb95 33301#define wxUSE_NUMBERDLG 1
e6cc62c6 33302_ACEOF
1e6feb95
VZ
33303
33304fi
33305
33306if test "$wxUSE_PROGRESSDLG" = "yes"; then
33307 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33308 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33309echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33310 else
e6cc62c6 33311 cat >>confdefs.h <<\_ACEOF
1e6feb95 33312#define wxUSE_PROGRESSDLG 1
e6cc62c6 33313_ACEOF
1e6feb95
VZ
33314
33315 fi
33316fi
33317
cbca9943 33318if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33319 cat >>confdefs.h <<\_ACEOF
cbca9943 33320#define wxUSE_SPLASH 1
e6cc62c6 33321_ACEOF
cbca9943
VZ
33322
33323fi
33324
1e6feb95
VZ
33325if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33326 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33327 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33328echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33329 else
e6cc62c6 33330 cat >>confdefs.h <<\_ACEOF
1e6feb95 33331#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33332_ACEOF
1e6feb95 33333
7b4a847f
RR
33334 fi
33335fi
579d8138 33336
8284b0c5 33337if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33338 cat >>confdefs.h <<\_ACEOF
8284b0c5 33339#define wxUSE_TEXTDLG 1
e6cc62c6 33340_ACEOF
8284b0c5
MB
33341
33342fi
33343
33344if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33345 cat >>confdefs.h <<\_ACEOF
8284b0c5 33346#define wxUSE_WIZARDDLG 1
e6cc62c6 33347_ACEOF
8284b0c5
MB
33348
33349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33350fi
33351
33352
33353if test "$cross_compiling" = "yes"; then
33354 OSINFO="\"$host\""
33355else
33356 OSINFO=`uname -s -r -m`
33357 OSINFO="\"$OSINFO\""
33358fi
33359
e6cc62c6 33360cat >>confdefs.h <<_ACEOF
8284b0c5 33361#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33362_ACEOF
8284b0c5
MB
33363
33364
33365
33366if test "x$prefix" != "xNONE"; then
33367 wxPREFIX=$prefix
33368else
33369 wxPREFIX=$ac_default_prefix
33370fi
33371
e6cc62c6 33372cat >>confdefs.h <<_ACEOF
8284b0c5 33373#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33374_ACEOF
8284b0c5
MB
33375
33376
e6cc62c6 33377top_builddir_wxconfig=`pwd`
52c71b80 33378
8284b0c5
MB
33379
33380
edd891e2
VS
33381CORE_BASE_LIBS="net base"
33382CORE_GUI_LIBS="adv core"
33383
33384if test "$wxUSE_XML" = "yes" ; then
33385 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33386fi
45293562
VS
33387if test "$wxUSE_ODBC" != "no" ; then
33388 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33389 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33390fi
33391if test "$wxUSE_HTML" = "yes" ; then
33392 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33393fi
33394
33395
33396
33397
33398
33399
33400
8284b0c5
MB
33401
33402if test "$wxUSE_MAC" = 1 ; then
33403 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33404fi
ac0c4cc3
DE
33405if test "$wxUSE_COCOA" = 1 ; then
33406 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33407fi
8284b0c5
MB
33408
33409
2b5f62a0
VZ
33410LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33411
33412have_cos=0
33413have_floor=0
e6cc62c6 33414
2b5f62a0
VZ
33415for ac_func in cos
33416do
e6cc62c6
VS
33417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33418echo "$as_me:$LINENO: checking for $ac_func" >&5
33419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33420if eval "test \"\${$as_ac_var+set}\" = set"; then
33421 echo $ECHO_N "(cached) $ECHO_C" >&6
33422else
33423 cat >conftest.$ac_ext <<_ACEOF
33424#line $LINENO "configure"
33425/* confdefs.h. */
33426_ACEOF
33427cat confdefs.h >>conftest.$ac_ext
33428cat >>conftest.$ac_ext <<_ACEOF
33429/* end confdefs.h. */
2b5f62a0 33430/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33431 which can conflict with char $ac_func (); below.
33432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33433 <limits.h> exists even on freestanding compilers. */
33434#ifdef __STDC__
33435# include <limits.h>
33436#else
33437# include <assert.h>
33438#endif
2b5f62a0 33439/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33440#ifdef __cplusplus
33441extern "C"
33442{
33443#endif
2b5f62a0 33444/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33445 builtin and then its argument prototype would still apply. */
33446char $ac_func ();
2b5f62a0
VZ
33447/* The GNU C library defines this for functions which it implements
33448 to always fail with ENOSYS. Some functions are actually named
33449 something starting with __ and the normal name is an alias. */
33450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33451choke me
33452#else
e6cc62c6
VS
33453char (*f) () = $ac_func;
33454#endif
33455#ifdef __cplusplus
33456}
2b5f62a0
VZ
33457#endif
33458
e6cc62c6
VS
33459int
33460main ()
33461{
33462return f != $ac_func;
33463 ;
33464 return 0;
33465}
33466_ACEOF
33467rm -f conftest.$ac_objext conftest$ac_exeext
33468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33469 (eval $ac_link) 2>&5
33470 ac_status=$?
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); } &&
33473 { ac_try='test -s conftest$ac_exeext'
33474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33475 (eval $ac_try) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); }; }; then
33479 eval "$as_ac_var=yes"
33480else
33481 echo "$as_me: failed program was:" >&5
33482sed 's/^/| /' conftest.$ac_ext >&5
33483
33484eval "$as_ac_var=no"
33485fi
33486rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33487fi
33488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33490if test `eval echo '${'$as_ac_var'}'` = yes; then
33491 cat >>confdefs.h <<_ACEOF
33492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33493_ACEOF
2b5f62a0 33494 have_cos=1
2b5f62a0
VZ
33495fi
33496done
33497
e6cc62c6 33498
2b5f62a0
VZ
33499for ac_func in floor
33500do
e6cc62c6
VS
33501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33502echo "$as_me:$LINENO: checking for $ac_func" >&5
33503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33504if eval "test \"\${$as_ac_var+set}\" = set"; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33506else
33507 cat >conftest.$ac_ext <<_ACEOF
33508#line $LINENO "configure"
33509/* confdefs.h. */
33510_ACEOF
33511cat confdefs.h >>conftest.$ac_ext
33512cat >>conftest.$ac_ext <<_ACEOF
33513/* end confdefs.h. */
2b5f62a0 33514/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33515 which can conflict with char $ac_func (); below.
33516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33517 <limits.h> exists even on freestanding compilers. */
33518#ifdef __STDC__
33519# include <limits.h>
33520#else
33521# include <assert.h>
33522#endif
2b5f62a0 33523/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33524#ifdef __cplusplus
33525extern "C"
33526{
33527#endif
2b5f62a0 33528/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33529 builtin and then its argument prototype would still apply. */
33530char $ac_func ();
2b5f62a0
VZ
33531/* The GNU C library defines this for functions which it implements
33532 to always fail with ENOSYS. Some functions are actually named
33533 something starting with __ and the normal name is an alias. */
33534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33535choke me
33536#else
e6cc62c6
VS
33537char (*f) () = $ac_func;
33538#endif
33539#ifdef __cplusplus
33540}
2b5f62a0
VZ
33541#endif
33542
e6cc62c6
VS
33543int
33544main ()
33545{
33546return f != $ac_func;
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext conftest$ac_exeext
33552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33553 (eval $ac_link) 2>&5
33554 ac_status=$?
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); } &&
33557 { ac_try='test -s conftest$ac_exeext'
33558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559 (eval $ac_try) 2>&5
33560 ac_status=$?
33561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562 (exit $ac_status); }; }; then
33563 eval "$as_ac_var=yes"
33564else
33565 echo "$as_me: failed program was:" >&5
33566sed 's/^/| /' conftest.$ac_ext >&5
33567
33568eval "$as_ac_var=no"
33569fi
33570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33571fi
33572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33574if test `eval echo '${'$as_ac_var'}'` = yes; then
33575 cat >>confdefs.h <<_ACEOF
33576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33577_ACEOF
2b5f62a0 33578 have_floor=1
2b5f62a0
VZ
33579fi
33580done
33581
e6cc62c6
VS
33582echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33583echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33584if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33585 echo "$as_me:$LINENO: result: yes" >&5
33586echo "${ECHO_T}yes" >&6
2b5f62a0 33587else
e6cc62c6
VS
33588 echo "$as_me:$LINENO: result: no" >&5
33589echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33590 LIBS="$LIBS -lm"
33591 # use different functions to avoid configure caching
33592 have_sin=0
33593 have_ceil=0
e6cc62c6
VS
33594
33595for ac_func in sin
2b5f62a0 33596do
e6cc62c6
VS
33597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33598echo "$as_me:$LINENO: checking for $ac_func" >&5
33599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33600if eval "test \"\${$as_ac_var+set}\" = set"; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33602else
33603 cat >conftest.$ac_ext <<_ACEOF
33604#line $LINENO "configure"
33605/* confdefs.h. */
33606_ACEOF
33607cat confdefs.h >>conftest.$ac_ext
33608cat >>conftest.$ac_ext <<_ACEOF
33609/* end confdefs.h. */
2b5f62a0 33610/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33611 which can conflict with char $ac_func (); below.
33612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33613 <limits.h> exists even on freestanding compilers. */
33614#ifdef __STDC__
33615# include <limits.h>
33616#else
33617# include <assert.h>
33618#endif
2b5f62a0 33619/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33620#ifdef __cplusplus
33621extern "C"
33622{
33623#endif
2b5f62a0 33624/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33625 builtin and then its argument prototype would still apply. */
33626char $ac_func ();
2b5f62a0
VZ
33627/* The GNU C library defines this for functions which it implements
33628 to always fail with ENOSYS. Some functions are actually named
33629 something starting with __ and the normal name is an alias. */
33630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33631choke me
33632#else
e6cc62c6
VS
33633char (*f) () = $ac_func;
33634#endif
33635#ifdef __cplusplus
33636}
2b5f62a0
VZ
33637#endif
33638
e6cc62c6
VS
33639int
33640main ()
33641{
33642return f != $ac_func;
33643 ;
33644 return 0;
33645}
33646_ACEOF
33647rm -f conftest.$ac_objext conftest$ac_exeext
33648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33649 (eval $ac_link) 2>&5
33650 ac_status=$?
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
33653 { ac_try='test -s conftest$ac_exeext'
33654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655 (eval $ac_try) 2>&5
33656 ac_status=$?
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); }; }; then
33659 eval "$as_ac_var=yes"
33660else
33661 echo "$as_me: failed program was:" >&5
33662sed 's/^/| /' conftest.$ac_ext >&5
33663
33664eval "$as_ac_var=no"
33665fi
33666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33667fi
33668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33669echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33670if test `eval echo '${'$as_ac_var'}'` = yes; then
33671 cat >>confdefs.h <<_ACEOF
33672#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33673_ACEOF
2b5f62a0 33674 have_sin=1
2b5f62a0
VZ
33675fi
33676done
33677
e6cc62c6
VS
33678
33679for ac_func in ceil
2b5f62a0 33680do
e6cc62c6
VS
33681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33682echo "$as_me:$LINENO: checking for $ac_func" >&5
33683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33684if eval "test \"\${$as_ac_var+set}\" = set"; then
33685 echo $ECHO_N "(cached) $ECHO_C" >&6
33686else
33687 cat >conftest.$ac_ext <<_ACEOF
33688#line $LINENO "configure"
33689/* confdefs.h. */
33690_ACEOF
33691cat confdefs.h >>conftest.$ac_ext
33692cat >>conftest.$ac_ext <<_ACEOF
33693/* end confdefs.h. */
2b5f62a0 33694/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33695 which can conflict with char $ac_func (); below.
33696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33697 <limits.h> exists even on freestanding compilers. */
33698#ifdef __STDC__
33699# include <limits.h>
33700#else
33701# include <assert.h>
33702#endif
2b5f62a0 33703/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33704#ifdef __cplusplus
33705extern "C"
33706{
33707#endif
2b5f62a0 33708/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33709 builtin and then its argument prototype would still apply. */
33710char $ac_func ();
2b5f62a0
VZ
33711/* The GNU C library defines this for functions which it implements
33712 to always fail with ENOSYS. Some functions are actually named
33713 something starting with __ and the normal name is an alias. */
33714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33715choke me
33716#else
e6cc62c6
VS
33717char (*f) () = $ac_func;
33718#endif
33719#ifdef __cplusplus
33720}
2b5f62a0
VZ
33721#endif
33722
e6cc62c6
VS
33723int
33724main ()
33725{
33726return f != $ac_func;
33727 ;
33728 return 0;
33729}
33730_ACEOF
33731rm -f conftest.$ac_objext conftest$ac_exeext
33732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33733 (eval $ac_link) 2>&5
33734 ac_status=$?
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); } &&
33737 { ac_try='test -s conftest$ac_exeext'
33738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33739 (eval $ac_try) 2>&5
33740 ac_status=$?
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); }; }; then
33743 eval "$as_ac_var=yes"
33744else
33745 echo "$as_me: failed program was:" >&5
33746sed 's/^/| /' conftest.$ac_ext >&5
33747
33748eval "$as_ac_var=no"
33749fi
33750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33751fi
33752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33753echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33754if test `eval echo '${'$as_ac_var'}'` = yes; then
33755 cat >>confdefs.h <<_ACEOF
33756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33757_ACEOF
2b5f62a0 33758 have_ceil=1
2b5f62a0
VZ
33759fi
33760done
33761
e6cc62c6
VS
33762 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33763echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33764 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33765 echo "$as_me:$LINENO: result: yes" >&5
33766echo "${ECHO_T}yes" >&6
2b5f62a0 33767 else
e6cc62c6
VS
33768 echo "$as_me:$LINENO: result: no" >&5
33769echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33770 # not sure we should warn the user, crash, etc.
33771 fi
33772fi
8284b0c5
MB
33773
33774if test "$wxUSE_GUI" = "yes"; then
33775
e6cc62c6 33776
8284b0c5
MB
33777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33778 drawing dynamic erase event exec font image \
1dd02ac0 33779 minimal propsize rotate shaped widgets render"
b625909c
VS
33780
33781 if test "$wxUSE_MONOLITHIC" != "yes"; then
33782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33783 fi
8284b0c5
MB
33784else
33785 SAMPLES_SUBDIRS="console"
33786fi
33787
33788
e6cc62c6 33789INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33790-I\${top_srcdir}/include \
33791$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33792$TOOLKIT_INCLUDE"
33793
fddeb06b
VS
33794if test "$GXX" = yes ; then
33795 CXXWARNINGS="-Wall"
33796 fi
33797
33798EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33799
95318f7d 33800CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33801CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33802CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33803
33804
fddeb06b 33805LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33806EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33807EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33808EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33809if test "$wxUSE_GUI" = "yes"; then
33810 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33811fi
34b08d2c
VS
33812if test "$wxUSE_OPENGL" = "yes"; then
33813 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33814fi
fddeb06b
VS
33815
33816LDFLAGS="$LDFLAGS $PROFILE"
33817
8284b0c5
MB
33818if test "$wxUSE_GTK" = 1; then
33819 WXCONFIG_INCLUDE=
33820else
33821 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33822fi
33823
67c13b6c
VS
33824WXCONFIG_EXTRALIBS="$LIBS"
33825
33826if test "$wxUSE_REGEX" = "builtin" ; then
33827 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33828fi
33829if test "$wxUSE_EXPAT" = "builtin" ; then
33830 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33831fi
33832if test "$wxUSE_ODBC" = "builtin" ; then
33833 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33834fi
33835if test "$wxUSE_LIBTIFF" = "builtin" ; then
33836 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33837fi
33838if test "$wxUSE_LIBJPEG" = "builtin" ; then
33839 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33840fi
33841if test "$wxUSE_LIBPNG" = "builtin" ; then
33842 wxconfig_3rdparty="$wxconfig_3rdparty png"
33843fi
33844if test "$wxUSE_ZLIB" = "builtin" ; then
33845 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33846fi
bb41dcbe
VS
33847if test "$wxUSE_ODBC" = "builtin" ; then
33848 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33849fi
67c13b6c
VS
33850
33851for i in $wxconfig_3rdparty ; do
33852 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33853done
33854
33855
fe0895cf
VS
33856if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33857 WXUNIV=1
33858else
33859 WXUNIV=0
8284b0c5
MB
33860fi
33861
8284b0c5
MB
33862
33863
33864
33865
33866
33867
33868
672abd7a 33869
9747f85d
VS
33870if test $wxUSE_MONOLITHIC = "yes" ; then
33871 MONOLITHIC=1
33872else
33873 MONOLITHIC=0
33874fi
8284b0c5 33875
bb41dcbe
VS
33876if test $wxUSE_ODBC != "no" ; then
33877 USE_ODBC=1
33878else
33879 USE_ODBC=0
33880fi
33881
029b47ad
VS
33882if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33883 OFFICIAL_BUILD=1
33884else
33885 OFFICIAL_BUILD=0
33886fi
33887
8ee2dd05
VS
33888
33889
33890
8284b0c5
MB
33891
33892
33893
33894
33895
33896
c74dc163 33897
34b08d2c 33898
672abd7a 33899
cf615ebb 33900
6c67131a
VS
33901
33902
bb41dcbe 33903
fe0895cf 33904TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33905
33906
33907
33908
33909
ea66c762 33910
0f1bc9c2 33911
fe0895cf 33912 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33913
33914 if test -n "$ac_tool_prefix"; then
33915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33916set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33917echo "$as_me:$LINENO: checking for $ac_word" >&5
33918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33919if test "${ac_cv_prog_RANLIB+set}" = set; then
33920 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33921else
fe0895cf
VS
33922 if test -n "$RANLIB"; then
33923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33924else
e6cc62c6
VS
33925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33926for as_dir in $PATH
33927do
33928 IFS=$as_save_IFS
33929 test -z "$as_dir" && as_dir=.
33930 for ac_exec_ext in '' $ac_executable_extensions; do
33931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33934 break 2
33935 fi
33936done
33937done
33938
10f2d63a 33939fi
10f2d63a 33940fi
e6cc62c6 33941RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33942if test -n "$RANLIB"; then
e6cc62c6
VS
33943 echo "$as_me:$LINENO: result: $RANLIB" >&5
33944echo "${ECHO_T}$RANLIB" >&6
33945else
33946 echo "$as_me:$LINENO: result: no" >&5
33947echo "${ECHO_T}no" >&6
33948fi
33949
33950fi
33951if test -z "$ac_cv_prog_RANLIB"; then
33952 ac_ct_RANLIB=$RANLIB
33953 # Extract the first word of "ranlib", so it can be a program name with args.
33954set dummy ranlib; ac_word=$2
33955echo "$as_me:$LINENO: checking for $ac_word" >&5
33956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33957if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33958 echo $ECHO_N "(cached) $ECHO_C" >&6
33959else
33960 if test -n "$ac_ct_RANLIB"; then
33961 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33962else
33963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964for as_dir in $PATH
33965do
33966 IFS=$as_save_IFS
33967 test -z "$as_dir" && as_dir=.
33968 for ac_exec_ext in '' $ac_executable_extensions; do
33969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33970 ac_cv_prog_ac_ct_RANLIB="ranlib"
33971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33972 break 2
33973 fi
33974done
33975done
33976
33977 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33978fi
33979fi
33980ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33981if test -n "$ac_ct_RANLIB"; then
33982 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33983echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33984else
e6cc62c6
VS
33985 echo "$as_me:$LINENO: result: no" >&5
33986echo "${ECHO_T}no" >&6
33987fi
33988
33989 RANLIB=$ac_ct_RANLIB
33990else
33991 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33992fi
665bbe97 33993
fe0895cf
VS
33994 # Find a good install program. We prefer a C program (faster),
33995# so one script is as good as another. But avoid the broken or
33996# incompatible versions:
33997# SysV /etc/install, /usr/sbin/install
33998# SunOS /usr/etc/install
33999# IRIX /sbin/install
34000# AIX /bin/install
e6cc62c6 34001# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
34002# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34003# AFS /usr/afsws/bin/install, which mishandles nonexistent args
34004# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34005# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
34006echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34007echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 34008if test -z "$INSTALL"; then
e6cc62c6
VS
34009if test "${ac_cv_path_install+set}" = set; then
34010 echo $ECHO_N "(cached) $ECHO_C" >&6
34011else
34012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34013for as_dir in $PATH
34014do
34015 IFS=$as_save_IFS
34016 test -z "$as_dir" && as_dir=.
34017 # Account for people who put trailing slashes in PATH elements.
34018case $as_dir/ in
34019 ./ | .// | /cC/* | \
34020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34021 /usr/ucb/* ) ;;
34022 *)
34023 # OSF1 and SCO ODT 3.0 have their own names for install.
34024 # Don't use installbsd from OSF since it installs stuff as root
34025 # by default.
34026 for ac_prog in ginstall scoinst install; do
34027 for ac_exec_ext in '' $ac_executable_extensions; do
34028 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34029 if test $ac_prog = install &&
34030 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34031 # AIX install. It has an incompatible calling convention.
34032 :
34033 elif test $ac_prog = install &&
34034 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34035 # program-specific install script used by HP pwplus--don't use.
34036 :
34037 else
34038 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34039 break 3
34040 fi
34041 fi
fe0895cf 34042 done
e6cc62c6
VS
34043 done
34044 ;;
34045esac
34046done
34047
fe0895cf
VS
34048
34049fi
34050 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 34051 INSTALL=$ac_cv_path_install
fe0895cf
VS
34052 else
34053 # As a last resort, use the slow shell script. We don't cache a
34054 # path for INSTALL within a source directory, because that will
34055 # break other packages using the cache if that directory is
34056 # removed, or if the path is relative.
e6cc62c6 34057 INSTALL=$ac_install_sh
fe0895cf
VS
34058 fi
34059fi
e6cc62c6
VS
34060echo "$as_me:$LINENO: result: $INSTALL" >&5
34061echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
34062
34063# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34064# It thinks the first close brace ends the variable substitution.
34065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34066
e6cc62c6 34067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
34068
34069test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34070
e6cc62c6
VS
34071 echo "$as_me:$LINENO: checking whether ln -s works" >&5
34072echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34073LN_S=$as_ln_s
34074if test "$LN_S" = "ln -s"; then
34075 echo "$as_me:$LINENO: result: yes" >&5
34076echo "${ECHO_T}yes" >&6
fe0895cf 34077else
e6cc62c6
VS
34078 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34079echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
34080fi
34081
34082
e6cc62c6
VS
34083 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34084echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34085set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34086if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34087 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34088else
e6cc62c6 34089 cat >conftest.make <<\_ACEOF
fe0895cf 34090all:
e6cc62c6
VS
34091 @echo 'ac_maketemp="$(MAKE)"'
34092_ACEOF
fe0895cf 34093# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 34094eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
34095if test -n "$ac_maketemp"; then
34096 eval ac_cv_prog_make_${ac_make}_set=yes
34097else
34098 eval ac_cv_prog_make_${ac_make}_set=no
34099fi
e6cc62c6 34100rm -f conftest.make
fe0895cf
VS
34101fi
34102if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
34103 echo "$as_me:$LINENO: result: yes" >&5
34104echo "${ECHO_T}yes" >&6
fe0895cf
VS
34105 SET_MAKE=
34106else
e6cc62c6
VS
34107 echo "$as_me:$LINENO: result: no" >&5
34108echo "${ECHO_T}no" >&6
fe0895cf
VS
34109 SET_MAKE="MAKE=${MAKE-make}"
34110fi
34111
e6cc62c6
VS
34112
34113
874d12cf
VS
34114 if test -n "$ac_tool_prefix"; then
34115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34116set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
34117echo "$as_me:$LINENO: checking for $ac_word" >&5
34118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34119if test "${ac_cv_prog_AR+set}" = set; then
34120 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34121else
34122 if test -n "$AR"; then
34123 ac_cv_prog_AR="$AR" # Let the user override the test.
34124else
e6cc62c6
VS
34125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34126for as_dir in $PATH
34127do
34128 IFS=$as_save_IFS
34129 test -z "$as_dir" && as_dir=.
34130 for ac_exec_ext in '' $ac_executable_extensions; do
34131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34132 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
34133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34134 break 2
34135 fi
34136done
34137done
34138
fe0895cf
VS
34139fi
34140fi
e6cc62c6 34141AR=$ac_cv_prog_AR
fe0895cf 34142if test -n "$AR"; then
e6cc62c6
VS
34143 echo "$as_me:$LINENO: result: $AR" >&5
34144echo "${ECHO_T}$AR" >&6
fe0895cf 34145else
e6cc62c6
VS
34146 echo "$as_me:$LINENO: result: no" >&5
34147echo "${ECHO_T}no" >&6
fe0895cf
VS
34148fi
34149
874d12cf
VS
34150fi
34151if test -z "$ac_cv_prog_AR"; then
34152 ac_ct_AR=$AR
34153 # Extract the first word of "ar", so it can be a program name with args.
34154set dummy ar; ac_word=$2
34155echo "$as_me:$LINENO: checking for $ac_word" >&5
34156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34157if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34158 echo $ECHO_N "(cached) $ECHO_C" >&6
34159else
34160 if test -n "$ac_ct_AR"; then
34161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34162else
34163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34164for as_dir in $PATH
34165do
34166 IFS=$as_save_IFS
34167 test -z "$as_dir" && as_dir=.
34168 for ac_exec_ext in '' $ac_executable_extensions; do
34169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34170 ac_cv_prog_ac_ct_AR="ar"
34171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34172 break 2
34173 fi
34174done
34175done
34176
34177 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
34178fi
34179fi
34180ac_ct_AR=$ac_cv_prog_ac_ct_AR
34181if test -n "$ac_ct_AR"; then
34182 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34183echo "${ECHO_T}$ac_ct_AR" >&6
34184else
34185 echo "$as_me:$LINENO: result: no" >&5
34186echo "${ECHO_T}no" >&6
34187fi
34188
34189 AR=$ac_ct_AR
34190else
34191 AR="$ac_cv_prog_AR"
34192fi
34193
34194 if test -n "$ac_tool_prefix"; then
34195 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34196set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
34197echo "$as_me:$LINENO: checking for $ac_word" >&5
34198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34199if test "${ac_cv_prog_STRIP+set}" = set; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34201else
34202 if test -n "$STRIP"; then
34203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34204else
e6cc62c6
VS
34205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34206for as_dir in $PATH
34207do
34208 IFS=$as_save_IFS
34209 test -z "$as_dir" && as_dir=.
34210 for ac_exec_ext in '' $ac_executable_extensions; do
34211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 34212 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
34213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34214 break 2
34215 fi
34216done
34217done
34218
fe0895cf
VS
34219fi
34220fi
e6cc62c6 34221STRIP=$ac_cv_prog_STRIP
fe0895cf 34222if test -n "$STRIP"; then
e6cc62c6
VS
34223 echo "$as_me:$LINENO: result: $STRIP" >&5
34224echo "${ECHO_T}$STRIP" >&6
fe0895cf 34225else
e6cc62c6
VS
34226 echo "$as_me:$LINENO: result: no" >&5
34227echo "${ECHO_T}no" >&6
fe0895cf
VS
34228fi
34229
874d12cf
VS
34230fi
34231if test -z "$ac_cv_prog_STRIP"; then
34232 ac_ct_STRIP=$STRIP
34233 # Extract the first word of "strip", so it can be a program name with args.
34234set dummy strip; ac_word=$2
34235echo "$as_me:$LINENO: checking for $ac_word" >&5
34236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34237if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34238 echo $ECHO_N "(cached) $ECHO_C" >&6
34239else
34240 if test -n "$ac_ct_STRIP"; then
34241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34242else
34243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34244for as_dir in $PATH
34245do
34246 IFS=$as_save_IFS
34247 test -z "$as_dir" && as_dir=.
34248 for ac_exec_ext in '' $ac_executable_extensions; do
34249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34250 ac_cv_prog_ac_ct_STRIP="strip"
34251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34252 break 2
34253 fi
34254done
34255done
34256
34257 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
34258fi
34259fi
34260ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34261if test -n "$ac_ct_STRIP"; then
34262 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34263echo "${ECHO_T}$ac_ct_STRIP" >&6
34264else
34265 echo "$as_me:$LINENO: result: no" >&5
34266echo "${ECHO_T}no" >&6
34267fi
34268
34269 STRIP=$ac_ct_STRIP
34270else
34271 STRIP="$ac_cv_prog_STRIP"
34272fi
34273
34274 if test -n "$ac_tool_prefix"; then
34275 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
34276set dummy ${ac_tool_prefix}nm; ac_word=$2
34277echo "$as_me:$LINENO: checking for $ac_word" >&5
34278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34279if test "${ac_cv_prog_NM+set}" = set; then
34280 echo $ECHO_N "(cached) $ECHO_C" >&6
34281else
34282 if test -n "$NM"; then
34283 ac_cv_prog_NM="$NM" # Let the user override the test.
34284else
34285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34286for as_dir in $PATH
34287do
34288 IFS=$as_save_IFS
34289 test -z "$as_dir" && as_dir=.
34290 for ac_exec_ext in '' $ac_executable_extensions; do
34291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34292 ac_cv_prog_NM="${ac_tool_prefix}nm"
34293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34294 break 2
34295 fi
34296done
34297done
34298
34299fi
34300fi
34301NM=$ac_cv_prog_NM
34302if test -n "$NM"; then
34303 echo "$as_me:$LINENO: result: $NM" >&5
34304echo "${ECHO_T}$NM" >&6
34305else
34306 echo "$as_me:$LINENO: result: no" >&5
34307echo "${ECHO_T}no" >&6
34308fi
34309
34310fi
34311if test -z "$ac_cv_prog_NM"; then
34312 ac_ct_NM=$NM
34313 # Extract the first word of "nm", so it can be a program name with args.
34314set dummy nm; ac_word=$2
34315echo "$as_me:$LINENO: checking for $ac_word" >&5
34316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34317if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34319else
34320 if test -n "$ac_ct_NM"; then
34321 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
34322else
34323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34324for as_dir in $PATH
34325do
34326 IFS=$as_save_IFS
34327 test -z "$as_dir" && as_dir=.
34328 for ac_exec_ext in '' $ac_executable_extensions; do
34329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34330 ac_cv_prog_ac_ct_NM="nm"
34331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34332 break 2
34333 fi
34334done
34335done
34336
34337 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
34338fi
34339fi
34340ac_ct_NM=$ac_cv_prog_ac_ct_NM
34341if test -n "$ac_ct_NM"; then
34342 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
34343echo "${ECHO_T}$ac_ct_NM" >&6
34344else
34345 echo "$as_me:$LINENO: result: no" >&5
34346echo "${ECHO_T}no" >&6
34347fi
34348
34349 NM=$ac_ct_NM
34350else
34351 NM="$ac_cv_prog_NM"
34352fi
34353
fe0895cf
VS
34354
34355 case ${host} in
34356 *-hp-hpux* )
34357 INSTALL_DIR="mkdir"
34358 ;;
34359 *) INSTALL_DIR="$INSTALL -d"
34360 ;;
34361 esac
e6cc62c6 34362
fe0895cf 34363
6b9d41a5
VS
34364 LDFLAGS_GUI=
34365 case ${host} in
34366 *-*-cygwin* | *-*-mingw32* )
34367 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34368 esac
34369
34370
fe0895cf 34371 fi
e6cc62c6
VS
34372
34373 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34374echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34375if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34376 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34377else
e6cc62c6 34378
fe0895cf
VS
34379 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34380 egrep -s GNU > /dev/null); then
34381 bakefile_cv_prog_makeisgnu="yes"
34382 else
34383 bakefile_cv_prog_makeisgnu="no"
34384 fi
fe0895cf 34385
e6cc62c6 34386fi
49b0a3aa
VS
34387echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34388echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34389
34390 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34391 IF_GNU_MAKE=""
34392 else
34393 IF_GNU_MAKE="#"
34394 fi
fe0895cf 34395
e6cc62c6
VS
34396
34397
fe0895cf
VS
34398 PLATFORM_UNIX=0
34399 PLATFORM_WIN32=0
34400 PLATFORM_MSDOS=0
34401 PLATFORM_MAC=0
34402 PLATFORM_MACOSX=0
96c1699d 34403 PLATFORM_OS2=0
e6cc62c6 34404
fe0895cf
VS
34405 case "${host}" in
34406 *-*-cygwin* | *-*-mingw32* )
34407 PLATFORM_WIN32=1
34408 ;;
96c1699d 34409 *-pc-msdosdjgpp )
fe0895cf
VS
34410 PLATFORM_MSDOS=1
34411 ;;
96c1699d
VS
34412 *-pc-os2_emx | *-pc-os2-emx )
34413 PLATFORM_OS2=1
34414 ;;
fe0895cf
VS
34415 powerpc-*-darwin* )
34416 PLATFORM_MAC=1
34417 PLATFORM_MACOSX=1
34418 ;;
34419 * )
34420 PLATFORM_UNIX=1
34421 ;;
34422 esac
34423
fe0895cf 34424
e6cc62c6
VS
34425
34426
34427
34428
34429
34430
96c1699d 34431
fe0895cf 34432 SO_SUFFIX="so"
131f235d 34433 SO_SUFFIX_MODULE="so"
fe0895cf 34434 EXEEXT=""
4b1f6360 34435 LIBPREFIX=lib
fe0895cf 34436 DLLPREFIX=lib
131f235d 34437 DLLPREFIX_MODULE=
e6cc62c6 34438
fe0895cf
VS
34439 case "${host}" in
34440 *-hp-hpux* )
34441 SO_SUFFIX="sl"
131f235d 34442 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34443 ;;
34444 *-*-aix* )
34445 SO_SUFFIX="a"
131f235d 34446 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34447 ;;
34448 *-*-cygwin* | *-*-mingw32* )
34449 SO_SUFFIX="dll"
131f235d 34450 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34451 EXEEXT=".exe"
34452 DLLPREFIX=""
34453 ;;
4b1f6360
VS
34454 *-pc-msdosdjgpp )
34455 EXEEXT=".exe"
34456 DLLPREFIX=""
34457 ;;
34458 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
34459 EXEEXT=".exe"
34460 DLLPREFIX=""
4b1f6360 34461 LIBPREFIX=""
fe0895cf
VS
34462 ;;
34463 powerpc-*-darwin* )
34464 SO_SUFFIX="dylib"
131f235d 34465 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34466 ;;
34467 esac
34468
fe0895cf 34469
e6cc62c6
VS
34470
34471
34472
34473
131f235d
VS
34474
34475
4b1f6360 34476
fe0895cf
VS
34477 SHARED_LD_CC="\$(CC) -shared -o"
34478 SHARED_LD_CXX="\$(CXX) -shared -o"
34479
34480 if test "x$GCC" = "xyes"; then
34481 PIC_FLAG="-fPIC"
34482 fi
34483
34484 case "${host}" in
34485 *-hp-hpux* )
34486 if test "x$GCC" = "xyes"; then
34487 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34488 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34489 else
34490 LDFLAGS="$LDFLAGS -L/usr/lib"
34491
34492 SHARED_LD_CC="${CC} -b -o"
34493 SHARED_LD_CXX="${CXX} -b -o"
34494 PIC_FLAG="+Z"
34495 fi
34496 ;;
34497
34498 *-*-linux* )
34499 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34500 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34501echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34502if test "${bakefile_cv_prog_icc+set}" = set; then
34503 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34504else
fe0895cf 34505
e6cc62c6
VS
34506 cat >conftest.$ac_ext <<_ACEOF
34507#line $LINENO "configure"
34508/* confdefs.h. */
34509_ACEOF
34510cat confdefs.h >>conftest.$ac_ext
34511cat >>conftest.$ac_ext <<_ACEOF
34512/* end confdefs.h. */
34513
34514int
34515main ()
34516{
fe0895cf
VS
34517
34518 #ifndef __INTEL_COMPILER
34519 #error Not icc
34520 #endif
e6cc62c6
VS
34521
34522 ;
34523 return 0;
34524}
34525_ACEOF
34526rm -f conftest.$ac_objext
34527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34528 (eval $ac_compile) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); } &&
34532 { ac_try='test -s conftest.$ac_objext'
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34535 ac_status=$?
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
fe0895cf
VS
34538 bakefile_cv_prog_icc=yes
34539else
e6cc62c6
VS
34540 echo "$as_me: failed program was:" >&5
34541sed 's/^/| /' conftest.$ac_ext >&5
34542
34543bakefile_cv_prog_icc=no
34544
fe0895cf 34545fi
e6cc62c6 34546rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34547
e6cc62c6
VS
34548fi
34549echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34550echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34551 if test "$bakefile_cv_prog_icc" = "yes"; then
34552 PIC_FLAG="-KPIC"
34553 fi
34554 fi
34555 ;;
34556
34557 *-*-solaris2* )
34558 if test "x$GCC" != xyes ; then
34559 SHARED_LD_CC="${CC} -G -o"
34560 SHARED_LD_CXX="${CXX} -G -o"
34561 PIC_FLAG="-KPIC"
34562 fi
34563 ;;
34564
34565 *-*-darwin* )
34566 CFLAGS="$CFLAGS -fno-common"
34567 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34568
34569
2a879853 34570 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
34571echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
34572if test "${wx_cv_gcc31+set}" = set; then
34573 echo $ECHO_N "(cached) $ECHO_C" >&6
34574else
34575
2a879853 34576 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
34577#line $LINENO "configure"
34578/* confdefs.h. */
34579_ACEOF
34580cat confdefs.h >>conftest.$ac_ext
34581cat >>conftest.$ac_ext <<_ACEOF
34582/* end confdefs.h. */
34583
34584int
34585main ()
34586{
34587
2a879853
VS
34588 #if (__GNUC__ < 3) || \
34589 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
34590 #error old gcc
34591 #endif
43948499
RD
34592
34593 ;
34594 return 0;
34595}
34596_ACEOF
34597rm -f conftest.$ac_objext
34598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34599 (eval $ac_compile) 2>&5
34600 ac_status=$?
34601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); } &&
34603 { ac_try='test -s conftest.$ac_objext'
34604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34605 (eval $ac_try) 2>&5
34606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609
2a879853 34610 wx_cv_gcc31=yes
43948499
RD
34611
34612else
34613 echo "$as_me: failed program was:" >&5
34614sed 's/^/| /' conftest.$ac_ext >&5
34615
34616
2a879853 34617 wx_cv_gcc31=no
43948499
RD
34618
34619
34620fi
34621rm -f conftest.$ac_objext conftest.$ac_ext
34622
34623fi
34624echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
34625echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 34626 if test "$wx_cv_gcc31" = "no"; then
43948499 34627 cat <<EOF >shared-ld-sh
fe0895cf
VS
34628#!/bin/sh
34629#-----------------------------------------------------------------------------
34630#-- Name: distrib/mac/shared-ld-sh
34631#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34632#-- Author: Gilles Depeyrot
34633#-- Copyright: (c) 2002 Gilles Depeyrot
34634#-- Licence: any use permitted
34635#-----------------------------------------------------------------------------
34636
34637verbose=0
34638args=""
34639objects=""
131f235d 34640linking_flag="-dynamiclib"
fe0895cf
VS
34641
34642while test \${#} -gt 0; do
34643 case \${1} in
34644
34645 -v)
34646 verbose=1
34647 ;;
34648
34649 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34650 # collect these options and values
34651 args="\${args} \${1} \${2}"
34652 shift
34653 ;;
34654
34655 -l*|-L*|-flat_namespace)
34656 # collect these options
34657 args="\${args} \${1}"
34658 ;;
34659
131f235d
VS
34660 -dynamiclib|-bundle)
34661 linking_flag="\${1}"
fe0895cf
VS
34662 ;;
34663
34664 -*)
34665 echo "shared-ld: unhandled option '\${1}'"
34666 exit 1
34667 ;;
34668
4d264332 34669 *.o | *.a | *.dylib)
fe0895cf
VS
34670 # collect object files
34671 objects="\${objects} \${1}"
34672 ;;
34673
34674 *)
34675 echo "shared-ld: unhandled argument '\${1}'"
34676 exit 1
34677 ;;
34678
34679 esac
34680 shift
34681done
34682
34683#
34684# Link one module containing all the others
34685#
34686if test \${verbose} = 1; then
34687 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34688fi
34689c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34690status=\$?
34691if test \${status} != 0; then
34692 exit \${status}
34693fi
34694
34695#
34696# Link the shared library from the single module created
34697#
34698if test \${verbose} = 1; then
2a879853 34699 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34700fi
131f235d 34701c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34702status=\$?
34703if test \${status} != 0; then
34704 exit \${status}
34705fi
34706
34707#
34708# Remove intermediate module
34709#
34710rm -f master.\$\$.o
34711
34712exit 0
34713EOF
43948499 34714 chmod +x shared-ld-sh
fe0895cf 34715
2a879853
VS
34716 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o"
34717 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o"
34718 SHARED_LD_CXX="$SHARED_LD_CC"
34719 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34720 else
34721 SHARED_LD_CC="\${CC} -dynamiclib -single_module -o"
34722 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -o"
34723 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -o"
34724 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -o"
34725 fi
34726
fe0895cf 34727 PIC_FLAG="-dynamic -fPIC"
2a879853 34728 ;;
fe0895cf
VS
34729
34730 *-*-aix* )
34731 if test "x$GCC" != "xyes"; then
34732 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34733set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34734echo "$as_me:$LINENO: checking for $ac_word" >&5
34735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34736if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34737 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34738else
34739 if test -n "$AIX_CXX_LD"; then
34740 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34741else
e6cc62c6
VS
34742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34743for as_dir in $PATH
34744do
34745 IFS=$as_save_IFS
34746 test -z "$as_dir" && as_dir=.
34747 for ac_exec_ext in '' $ac_executable_extensions; do
34748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34749 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34751 break 2
34752 fi
34753done
34754done
34755
fe0895cf
VS
34756 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34757fi
34758fi
e6cc62c6 34759AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34760if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34761 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34762echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34763else
e6cc62c6
VS
34764 echo "$as_me:$LINENO: result: no" >&5
34765echo "${ECHO_T}no" >&6
fe0895cf
VS
34766fi
34767
34768 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34769 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34770 fi
34771 ;;
34772
34773 *-*-beos* )
34774 SHARED_LD_CC="${LD} -shared -o"
34775 SHARED_LD_CXX="${LD} -shared -o"
34776 ;;
34777
34778 *-*-irix* )
34779 if test "x$GCC" != "xyes"; then
34780 PIC_FLAG="-KPIC"
34781 fi
34782 ;;
e6cc62c6 34783
fe0895cf
VS
34784 *-*-cygwin* | *-*-mingw32* )
34785 PIC_FLAG=""
34786 ;;
e6cc62c6 34787
fe0895cf
VS
34788 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34789 *-*-sunos4* | \
34790 *-*-osf* | \
34791 *-*-dgux5* | \
4b1f6360 34792 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
34793 *-*-sysv5* )
34794 ;;
34795
34796 *)
e6cc62c6
VS
34797 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34798echo "$as_me: error: unknown system type $host." >&2;}
34799 { (exit 1); exit 1; }; }
fe0895cf
VS
34800 esac
34801
131f235d
VS
34802 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34803 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34804 fi
34805 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34806 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34807 fi
34808
34809
34810
fe0895cf 34811
e6cc62c6
VS
34812
34813
34814
34815
fe0895cf
VS
34816 USE_SOVERSION=0
34817 USE_SOVERLINUX=0
34818 USE_SOVERSOLARIS=0
34819 USE_SOSYMLINKS=0
34820 USE_MACVERSION=0
34821 SONAME_FLAG=
34822
34823 case "${host}" in
34824 *-*-linux* )
34825 SONAME_FLAG="-Wl,-soname,"
34826 USE_SOVERSION=1
34827 USE_SOVERLINUX=1
34828 USE_SOSYMLINKS=1
34829 ;;
34830
34831 *-*-solaris2* )
34832 SONAME_FLAG="-h "
34833 USE_SOVERSION=1
34834 USE_SOVERSOLARIS=1
34835 USE_SOSYMLINKS=1
34836 ;;
34837
34838 *-*-darwin* )
34839 USE_MACVERSION=1
34840 USE_SOVERSION=1
34841 USE_SOSYMLINKS=1
e6cc62c6 34842 ;;
fe0895cf
VS
34843 esac
34844
fe0895cf 34845
e6cc62c6
VS
34846
34847
34848
34849
34850
34851
34852
49b0a3aa
VS
34853 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34854echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34855 DEPS_TRACKING=0
34856
fe0895cf 34857 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34858 DEPSMODE=gcc
34859 DEPS_TRACKING=1
3e5c3c83
VS
34860 case "${host}" in
34861 powerpc-*-darwin* )
34862 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34863 ;;
34864 * )
34865 DEPSFLAG_GCC="-MMD"
34866 ;;
34867 esac
49b0a3aa
VS
34868 echo "$as_me:$LINENO: result: gcc" >&5
34869echo "${ECHO_T}gcc" >&6
34870 else
34871 echo "$as_me:$LINENO: result: none" >&5
34872echo "${ECHO_T}none" >&6
34873 fi
34874
34875 if test $DEPS_TRACKING = 1 ; then
34876 cat <<EOF >bk-deps
34877#!/bin/sh
34878
45842500
VS
34879# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34880# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34881#
34882# Permission is given to use this file in any way.
34883
34884DEPSMODE=$DEPSMODE
34885DEPSDIR=.deps
3e5c3c83 34886DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34887
34888mkdir -p \$DEPSDIR
34889
34890if test \$DEPSMODE = gcc ; then
3e5c3c83 34891 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34892 status=\${?}
34893 if test \${status} != 0 ; then
34894 exit \${status}
34895 fi
34896 # move created file to the location we want it in:
34897 while test \${#} -gt 0; do
34898 case "\${1}" in
34899 -o )
34900 shift
34901 objfile=\${1}
34902 ;;
34903 -* )
34904 ;;
34905 * )
34906 srcfile=\${1}
34907 ;;
34908 esac
34909 shift
34910 done
34911 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34912 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34913 if test -f \$depfile ; then
34914 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34915 rm -f \$depfile
34916 else
34917 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34918 if test -f \$depfile ; then
4c8b7f4b 34919 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34920 rm -f \$depfile
34921 fi
34922 fi
49b0a3aa
VS
34923 exit 0
34924else
34925 \${*}
34926 exit \${?}
34927fi
34928EOF
34929 chmod +x bk-deps
fe0895cf 34930 fi
fe0895cf 34931
e6cc62c6
VS
34932
34933
34934
fe0895cf
VS
34935 RESCOMP=
34936 SETFILE=
34937
e6cc62c6 34938 case ${host} in
fe0895cf
VS
34939 *-*-cygwin* | *-*-mingw32* )
34940 if test "$build" != "$host" ; then
34941 RESCOMP=$host_alias-windres
34942 else
34943 # Extract the first word of "windres", so it can be a program name with args.
34944set dummy windres; ac_word=$2
e6cc62c6
VS
34945echo "$as_me:$LINENO: checking for $ac_word" >&5
34946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34947if test "${ac_cv_prog_RESCOMP+set}" = set; then
34948 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34949else
34950 if test -n "$RESCOMP"; then
34951 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34952else
e6cc62c6
VS
34953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34954for as_dir in $PATH
34955do
34956 IFS=$as_save_IFS
34957 test -z "$as_dir" && as_dir=.
34958 for ac_exec_ext in '' $ac_executable_extensions; do
34959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34960 ac_cv_prog_RESCOMP="windres"
34961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34962 break 2
34963 fi
34964done
34965done
34966
fe0895cf
VS
34967 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34968fi
34969fi
e6cc62c6 34970RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34971if test -n "$RESCOMP"; then
e6cc62c6
VS
34972 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34973echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34974else
e6cc62c6
VS
34975 echo "$as_me:$LINENO: result: no" >&5
34976echo "${ECHO_T}no" >&6
fe0895cf
VS
34977fi
34978
34979 fi
34980 ;;
e6cc62c6 34981
fe0895cf
VS
34982 *-*-darwin* )
34983 # Extract the first word of "Rez", so it can be a program name with args.
34984set dummy Rez; ac_word=$2
e6cc62c6
VS
34985echo "$as_me:$LINENO: checking for $ac_word" >&5
34986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34987if test "${ac_cv_prog_RESCOMP+set}" = set; then
34988 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34989else
34990 if test -n "$RESCOMP"; then
34991 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34992else
e6cc62c6
VS
34993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34994for as_dir in $PATH
34995do
34996 IFS=$as_save_IFS
34997 test -z "$as_dir" && as_dir=.
34998 for ac_exec_ext in '' $ac_executable_extensions; do
34999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35000 ac_cv_prog_RESCOMP="Rez"
35001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35002 break 2
35003 fi
35004done
35005done
35006
fe0895cf
VS
35007 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
35008fi
35009fi
e6cc62c6 35010RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 35011if test -n "$RESCOMP"; then
e6cc62c6
VS
35012 echo "$as_me:$LINENO: result: $RESCOMP" >&5
35013echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 35014else
e6cc62c6
VS
35015 echo "$as_me:$LINENO: result: no" >&5
35016echo "${ECHO_T}no" >&6
fe0895cf
VS
35017fi
35018
35019 # Extract the first word of "SetFile", so it can be a program name with args.
35020set dummy SetFile; ac_word=$2
e6cc62c6
VS
35021echo "$as_me:$LINENO: checking for $ac_word" >&5
35022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35023if test "${ac_cv_prog_SETFILE+set}" = set; then
35024 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35025else
35026 if test -n "$SETFILE"; then
35027 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
35028else
e6cc62c6
VS
35029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35030for as_dir in $PATH
35031do
35032 IFS=$as_save_IFS
35033 test -z "$as_dir" && as_dir=.
35034 for ac_exec_ext in '' $ac_executable_extensions; do
35035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35036 ac_cv_prog_SETFILE="SetFile"
35037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35038 break 2
35039 fi
35040done
35041done
35042
fe0895cf
VS
35043 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
35044fi
35045fi
e6cc62c6 35046SETFILE=$ac_cv_prog_SETFILE
fe0895cf 35047if test -n "$SETFILE"; then
e6cc62c6
VS
35048 echo "$as_me:$LINENO: result: $SETFILE" >&5
35049echo "${ECHO_T}$SETFILE" >&6
fe0895cf 35050else
e6cc62c6
VS
35051 echo "$as_me:$LINENO: result: no" >&5
35052echo "${ECHO_T}no" >&6
fe0895cf
VS
35053fi
35054
35055 ;;
35056 esac
35057
fe0895cf
VS
35058
35059
e6cc62c6
VS
35060
35061
35062
35063
45842500 35064
45842500
VS
35065 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
35066if test "${enable_precomp_headers+set}" = set; then
35067 enableval="$enable_precomp_headers"
35068 bk_use_pch="$enableval"
35069fi;
35070
35071 GCC_PCH=0
35072
35073 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
35074 if test "x$GCC" = "xyes"; then
35075 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
35076echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
35077 cat >conftest.$ac_ext <<_ACEOF
35078#line $LINENO "configure"
35079/* confdefs.h. */
35080_ACEOF
35081cat confdefs.h >>conftest.$ac_ext
35082cat >>conftest.$ac_ext <<_ACEOF
35083/* end confdefs.h. */
35084
35085int
35086main ()
35087{
35088
8bcf2d20
VS
35089 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
35090 #error "no pch support"
35091 #endif
35092 #if (__GNUC__ < 3)
35093 #error "no pch support"
35094 #endif
35095 #if (__GNUC__ == 3) && \
35096 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
35097 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
35098 #error "no pch support"
45842500
VS
35099 #endif
35100
35101 ;
35102 return 0;
35103}
35104_ACEOF
35105rm -f conftest.$ac_objext
35106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35107 (eval $ac_compile) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); } &&
35111 { ac_try='test -s conftest.$ac_objext'
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35117
35118 echo "$as_me:$LINENO: result: yes" >&5
35119echo "${ECHO_T}yes" >&6
35120 CPPFLAGS="-fpch-deps $CPPFLAGS"
35121 GCC_PCH=1
35122
35123else
35124 echo "$as_me: failed program was:" >&5
35125sed 's/^/| /' conftest.$ac_ext >&5
35126
35127
35128 echo "$as_me:$LINENO: result: no" >&5
35129echo "${ECHO_T}no" >&6
35130
35131fi
35132rm -f conftest.$ac_objext conftest.$ac_ext
35133 if test $GCC_PCH = 1 ; then
35134 cat <<EOF >bk-make-pch
35135#!/bin/sh
35136
35137# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35138# script. It is used to generated precompiled headers.
35139#
35140# Permission is given to use this file in any way.
35141
35142outfile="\${1}"
35143header="\${2}"
35144shift
35145shift
35146
35147compiler=
35148headerfile=
35149while test \${#} -gt 0; do
35150 case "\${1}" in
35151 -I* )
35152 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35153 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35154 headerfile="\${incdir}/\${header}"
35155 fi
35156 ;;
35157 esac
35158 compiler="\${compiler} \${1}"
35159 shift
35160done
35161
35162if test "x\${headerfile}" = "x" ; then
35163 echo "error: can't find header \${header} in include paths" >2
35164else
35165 if test -f \${outfile} ; then
35166 rm -f \${outfile}
35167 else
35168 mkdir -p \`dirname \${outfile}\`
35169 fi
35170 depsfile=".deps/\`basename \${outfile}\`.d"
35171 mkdir -p .deps
35172 # can do this because gcc is >= 3.4:
35173 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35174 exit \${?}
35175fi
35176EOF
35177 chmod +x bk-make-pch
35178 fi
35179 fi
35180 fi
35181
35182
35183
35184
35185
d78c94f2 35186 COND_BUILD_DEBUG="#"
6f628073 35187 if test "x$BUILD" = "xdebug" ; then
d78c94f2 35188 COND_BUILD_DEBUG=""
6f628073
VS
35189 fi
35190
6c67131a
VS
35191 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35192 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35193 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35194 fi
35195
35196 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35197 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35198 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35199 fi
35200
d78c94f2 35201 COND_BUILD_RELEASE="#"
6f628073 35202 if test "x$BUILD" = "xrelease" ; then
d78c94f2 35203 COND_BUILD_RELEASE=""
6b9d41a5
VS
35204 fi
35205
6c67131a
VS
35206 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35207 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35208 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35209 fi
35210
35211 COND_DEBUG_FLAG_1="#"
35212 if test "x$DEBUG_FLAG" = "x1" ; then
35213 COND_DEBUG_FLAG_1=""
35214 fi
35215
35216 COND_DEBUG_INFO_0="#"
35217 if test "x$DEBUG_INFO" = "x0" ; then
35218 COND_DEBUG_INFO_0=""
35219 fi
35220
35221 COND_DEBUG_INFO_1="#"
35222 if test "x$DEBUG_INFO" = "x1" ; then
35223 COND_DEBUG_INFO_1=""
35224 fi
35225
f95cd8fa
VS
35226 COND_DEPS_TRACKING_0="#"
35227 if test "x$DEPS_TRACKING" = "x0" ; then
35228 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
35229 fi
35230
8ee2dd05
VS
35231 COND_DEPS_TRACKING_1="#"
35232 if test "x$DEPS_TRACKING" = "x1" ; then
35233 COND_DEPS_TRACKING_1=""
35234 fi
35235
45842500
VS
35236 COND_GCC_PCH_1="#"
35237 if test "x$GCC_PCH" = "x1" ; then
35238 COND_GCC_PCH_1=""
35239 fi
35240
6f628073
VS
35241 COND_MONOLITHIC_0="#"
35242 if test "x$MONOLITHIC" = "x0" ; then
35243 COND_MONOLITHIC_0=""
6b9d41a5
VS
35244 fi
35245
6f628073
VS
35246 COND_MONOLITHIC_0_SHARED_0="#"
35247 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35248 COND_MONOLITHIC_0_SHARED_0=""
35249 fi
35250
35251 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35252 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35253 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 35254 fi
e6cc62c6 35255
8772a1a7
VS
35256 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35257 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35258 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35259 fi
35260
250700e4
RD
35261 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35262 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35263 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35264 fi
35265
eb69fda5
VS
35266 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35267 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35268 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35269 fi
35270
8ee2dd05
VS
35271 COND_MONOLITHIC_0_SHARED_1="#"
35272 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35273 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 35274 fi
e6cc62c6 35275
6f628073
VS
35276 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35277 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35278 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35279 fi
35280
8772a1a7
VS
35281 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35282 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35283 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35284 fi
35285
250700e4
RD
35286 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35287 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35288 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35289 fi
35290
eb69fda5
VS
35291 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35292 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35293 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35294 fi
35295
3af038c0
VS
35296 COND_MONOLITHIC_1="#"
35297 if test "x$MONOLITHIC" = "x1" ; then
35298 COND_MONOLITHIC_1=""
35299 fi
35300
6f628073
VS
35301 COND_MONOLITHIC_1_SHARED_0="#"
35302 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35303 COND_MONOLITHIC_1_SHARED_0=""
35304 fi
35305
35306 COND_MONOLITHIC_1_SHARED_1="#"
35307 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35308 COND_MONOLITHIC_1_SHARED_1=""
35309 fi
35310
3af038c0
VS
35311 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35312 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35313 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35314 fi
35315
35316 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35317 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35318 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35319 fi
35320
6f628073
VS
35321 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35322 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35323 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35324 fi
35325
3af038c0
VS
35326 COND_PLATFORM_MACOSX_1="#"
35327 if test "x$PLATFORM_MACOSX" = "x1" ; then
35328 COND_PLATFORM_MACOSX_1=""
35329 fi
35330
250700e4
RD
35331 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35332 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35333 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35334 fi
35335
35336 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35337 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35338 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35339 fi
35340
35341 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35342 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35343 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35344 fi
35345
8ee2dd05
VS
35346 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35347 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35348 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35349 fi
35350
45842500
VS
35351 COND_PLATFORM_MAC_1="#"
35352 if test "x$PLATFORM_MAC" = "x1" ; then
35353 COND_PLATFORM_MAC_1=""
35354 fi
35355
3d8c1de0
VS
35356 COND_PLATFORM_OS2_1="#"
35357 if test "x$PLATFORM_OS2" = "x1" ; then
35358 COND_PLATFORM_OS2_1=""
35359 fi
35360
8772a1a7
VS
35361 COND_PLATFORM_UNIX_0="#"
35362 if test "x$PLATFORM_UNIX" = "x0" ; then
35363 COND_PLATFORM_UNIX_0=""
35364 fi
35365
3af038c0
VS
35366 COND_PLATFORM_UNIX_1="#"
35367 if test "x$PLATFORM_UNIX" = "x1" ; then
35368 COND_PLATFORM_UNIX_1=""
35369 fi
35370
35371 COND_PLATFORM_WIN32_0="#"
35372 if test "x$PLATFORM_WIN32" = "x0" ; then
35373 COND_PLATFORM_WIN32_0=""
35374 fi
35375
35376 COND_PLATFORM_WIN32_1="#"
35377 if test "x$PLATFORM_WIN32" = "x1" ; then
35378 COND_PLATFORM_WIN32_1=""
35379 fi
35380
45842500
VS
35381 COND_SHARED_0="#"
35382 if test "x$SHARED" = "x0" ; then
35383 COND_SHARED_0=""
35384 fi
35385
250700e4
RD
35386 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35387 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35388 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35389 fi
35390
52a5a009
VS
35391 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35392 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35393 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35394 fi
35395
35396 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35397 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35398 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35399 fi
35400
35401 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35402 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35403 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35404 fi
35405
35406 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35407 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35408 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35409 fi
35410
35411 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35412 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35413 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35414 fi
35415
35416 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35417 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35418 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35419 fi
35420
35421 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35422 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35423 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35424 fi
35425
45842500
VS
35426 COND_SHARED_1="#"
35427 if test "x$SHARED" = "x1" ; then
35428 COND_SHARED_1=""
35429 fi
35430
250700e4
RD
35431 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35432 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35433 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35434 fi
35435
6f628073
VS
35436 COND_TOOLKIT_COCOA="#"
35437 if test "x$TOOLKIT" = "xCOCOA" ; then
35438 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
35439 fi
35440
6f628073
VS
35441 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35442 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35443 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35444 fi
35445
6f628073
VS
35446 COND_TOOLKIT_GTK="#"
35447 if test "x$TOOLKIT" = "xGTK" ; then
35448 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35449 fi
35450
6f628073
VS
35451 COND_TOOLKIT_GTK_USE_GUI_1="#"
35452 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35453 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35454 fi
35455
6f628073
VS
35456 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35457 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35458 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35459 fi
35460
3af038c0
VS
35461 COND_TOOLKIT_MAC="#"
35462 if test "x$TOOLKIT" = "xMAC" ; then
35463 COND_TOOLKIT_MAC=""
35464 fi
35465
8772a1a7
VS
35466 COND_TOOLKIT_MAC_USE_GUI_1="#"
35467 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35468 COND_TOOLKIT_MAC_USE_GUI_1=""
35469 fi
35470
6f628073
VS
35471 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35472 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35473 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35474 fi
35475
6f628073
VS
35476 COND_TOOLKIT_MGL="#"
35477 if test "x$TOOLKIT" = "xMGL" ; then
35478 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35479 fi
35480
6f628073
VS
35481 COND_TOOLKIT_MGL_USE_GUI_1="#"
35482 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35483 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35484 fi
35485
6f628073
VS
35486 COND_TOOLKIT_MOTIF="#"
35487 if test "x$TOOLKIT" = "xMOTIF" ; then
35488 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35489 fi
35490
6f628073
VS
35491 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35492 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35493 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35494 fi
e6cc62c6 35495
6f628073
VS
35496 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35497 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35498 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35499 fi
35500
6f628073
VS
35501 COND_TOOLKIT_MSW="#"
35502 if test "x$TOOLKIT" = "xMSW" ; then
35503 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35504 fi
35505
6f628073
VS
35506 COND_TOOLKIT_MSW_USE_GUI_1="#"
35507 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35508 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35509 fi
e6cc62c6 35510
6f628073
VS
35511 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35512 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35513 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35514 fi
e6cc62c6 35515
96c1699d
VS
35516 COND_TOOLKIT_PM="#"
35517 if test "x$TOOLKIT" = "xPM" ; then
35518 COND_TOOLKIT_PM=""
35519 fi
35520
35521 COND_TOOLKIT_PM_USE_GUI_1="#"
35522 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35523 COND_TOOLKIT_PM_USE_GUI_1=""
35524 fi
35525
35526 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35527 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35528 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35529 fi
35530
6f628073
VS
35531 COND_TOOLKIT_X11="#"
35532 if test "x$TOOLKIT" = "xX11" ; then
35533 COND_TOOLKIT_X11=""
9747f85d
VS
35534 fi
35535
6f628073
VS
35536 COND_TOOLKIT_X11_USE_GUI_1="#"
35537 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35538 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35539 fi
35540
3af038c0
VS
35541 COND_UNICODE_1="#"
35542 if test "x$UNICODE" = "x1" ; then
35543 COND_UNICODE_1=""
35544 fi
35545
7015ef3a
VZ
35546 COND_USE_EXCEPTIONS_0="#"
35547 if test "x$USE_EXCEPTIONS" = "x0" ; then
35548 COND_USE_EXCEPTIONS_0=""
35549 fi
35550
35551 COND_USE_EXCEPTIONS_1="#"
35552 if test "x$USE_EXCEPTIONS" = "x1" ; then
35553 COND_USE_EXCEPTIONS_1=""
35554 fi
35555
3af038c0
VS
35556 COND_USE_GUI_0="#"
35557 if test "x$USE_GUI" = "x0" ; then
35558 COND_USE_GUI_0=""
35559 fi
35560
35561 COND_USE_GUI_1="#"
35562 if test "x$USE_GUI" = "x1" ; then
35563 COND_USE_GUI_1=""
35564 fi
35565
e6cc62c6 35566 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35567 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35568 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35569 fi
e6cc62c6
VS
35570
35571 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35572 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35573 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35574 fi
35575
66a96744
VS
35576 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35577 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35578 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35579 fi
35580
35581 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35582 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35583 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35584 fi
35585
35586 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35587 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35588 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35589 fi
35590
6f628073
VS
35591 COND_USE_SOSYMLINKS_1="#"
35592 if test "x$USE_SOSYMLINKS" = "x1" ; then
35593 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35594 fi
35595
6f628073
VS
35596 COND_USE_SOVERLINUX_1="#"
35597 if test "x$USE_SOVERLINUX" = "x1" ; then
35598 COND_USE_SOVERLINUX_1=""
b625909c
VS
35599 fi
35600
6f628073
VS
35601 COND_USE_SOVERSION_0="#"
35602 if test "x$USE_SOVERSION" = "x0" ; then
35603 COND_USE_SOVERSION_0=""
fddeb06b 35604 fi
fe0895cf 35605
6f628073
VS
35606 COND_USE_SOVERSOLARIS_1="#"
35607 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35608 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35609 fi
fe0895cf 35610
3af038c0
VS
35611 COND_WXUNIV_1="#"
35612 if test "x$WXUNIV" = "x1" ; then
35613 COND_WXUNIV_1=""
35614 fi
35615
66a96744
VS
35616 COND_WXUSE_EXPAT_BUILTIN="#"
35617 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35618 COND_WXUSE_EXPAT_BUILTIN=""
35619 fi
35620
02980527
VS
35621 COND_WXUSE_LIBJPEG_BUILTIN="#"
35622 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35623 COND_WXUSE_LIBJPEG_BUILTIN=""
35624 fi
35625
35626 COND_WXUSE_LIBPNG_BUILTIN="#"
35627 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35628 COND_WXUSE_LIBPNG_BUILTIN=""
35629 fi
35630
35631 COND_WXUSE_LIBTIFF_BUILTIN="#"
35632 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35633 COND_WXUSE_LIBTIFF_BUILTIN=""
35634 fi
35635
35636 COND_WXUSE_ODBC_BUILTIN="#"
35637 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35638 COND_WXUSE_ODBC_BUILTIN=""
35639 fi
35640
35641 COND_WXUSE_REGEX_BUILTIN="#"
35642 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35643 COND_WXUSE_REGEX_BUILTIN=""
35644 fi
35645
35646 COND_WXUSE_ZLIB_BUILTIN="#"
35647 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35648 COND_WXUSE_ZLIB_BUILTIN=""
35649 fi
35650
1772d20c 35651
fe0895cf 35652
fe0895cf 35653
fe0895cf 35654
45842500
VS
35655if test $GCC_PCH = 1 ; then
35656 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35657else
35658 case "${host}" in
35659 powerpc-*-darwin* )
35660 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35661 ;;
45842500
VS
35662 esac
35663fi
2c6f14e1
VS
35664case "${host}" in
35665 powerpc-*-darwin* )
35666 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35667 ;;
35668esac
fe0895cf
VS
35669
35670
fddeb06b 35671SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
fe0895cf 35766
f0290fca
VS
35767
35768
67c13b6c 35769
e6cc62c6
VS
35770
35771
35772echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35773echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35774set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35775if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35776 echo $ECHO_N "(cached) $ECHO_C" >&6
35777else
35778 cat >conftest.make <<\_ACEOF
35779all:
35780 @echo 'ac_maketemp="$(MAKE)"'
35781_ACEOF
35782# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35783eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35784if test -n "$ac_maketemp"; then
35785 eval ac_cv_prog_make_${ac_make}_set=yes
35786else
35787 eval ac_cv_prog_make_${ac_make}_set=no
35788fi
35789rm -f conftest.make
35790fi
35791if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35792 echo "$as_me:$LINENO: result: yes" >&5
35793echo "${ECHO_T}yes" >&6
35794 SET_MAKE=
35795else
35796 echo "$as_me:$LINENO: result: no" >&5
35797echo "${ECHO_T}no" >&6
35798 SET_MAKE="MAKE=${MAKE-make}"
35799fi
35800
35801
35802if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35803 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35804fi
35805
35806 ac_config_headers="$ac_config_headers setup.h"
35807
35808
81345eef 35809 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35810
35811
35812 ac_config_commands="$ac_config_commands default"
35813
35814
9de9b8f0 35815
6c3e36af
VZ
35816if test "$wxUSE_GUI" = "yes"; then
35817 SUBDIRS="samples demos utils contrib"
35818else SUBDIRS="samples utils"
35819fi
e6cc62c6 35820
166263e6 35821for subdir in `echo $SUBDIRS`; do
9747f85d 35822 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35823 if test "$wxUSE_GUI" = "yes"; then
166263e6 35824 if test ${subdir} = "samples"; then
8772a1a7
VS
35825 makefiles="samples/Makefile.in $makefiles"
35826 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35827 if test -d $srcdir/samples/$sample; then
35828 makefiles="samples/$sample/Makefile.in $makefiles"
35829 fi
35830 done
35831 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35832 fi
6c3e36af 35833 else if test ${subdir} = "samples"; then
8772a1a7 35834 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 35835 else makefiles="utils/HelpGen/Makefile.in \
73d617c9 35836 utils/HelpGen/src/Makefile.in"
6c3e36af
VZ
35837 fi
35838 fi
35839
9747f85d
VS
35840 for mkin in $makefiles ; do
35841 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35842 ac_config_files="$ac_config_files $mk"
e6cc62c6 35843
9747f85d
VS
35844 done
35845 fi
35846done
e6cc62c6 35847
9de9b8f0 35848
e6cc62c6
VS
35849cat >confcache <<\_ACEOF
35850# This file is a shell script that caches the results of configure
35851# tests run on this system so they can be shared between configure
35852# scripts and configure runs, see configure's option --config-cache.
35853# It is not useful on other systems. If it contains results you don't
35854# want to keep, you may remove or edit it.
35855#
35856# config.status only pays attention to the cache file if you give it
35857# the --recheck option to rerun configure.
35858#
35859# `ac_cv_env_foo' variables (set or unset) will be overridden when
35860# loading this file, other *unset* `ac_cv_foo' will be assigned the
35861# following values.
35862
35863_ACEOF
35864
35865# The following way of writing the cache mishandles newlines in values,
35866# but we know of no workaround that is simple, portable, and efficient.
35867# So, don't put newlines in cache variables' values.
35868# Ultrix sh set writes to stderr and can't be redirected directly,
35869# and sets the high bit in the cache file unless we assign to the vars.
35870{
35871 (set) 2>&1 |
35872 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35873 *ac_space=\ *)
35874 # `set' does not quote correctly, so add quotes (double-quote
35875 # substitution turns \\\\ into \\, and sed turns \\ into \).
35876 sed -n \
35877 "s/'/'\\\\''/g;
35878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35879 ;;
35880 *)
35881 # `set' quotes correctly as required by POSIX, so do not add quotes.
35882 sed -n \
35883 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35884 ;;
35885 esac;
35886} |
35887 sed '
35888 t clear
35889 : clear
35890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35891 t end
35892 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35893 : end' >>confcache
35894if diff $cache_file confcache >/dev/null 2>&1; then :; else
35895 if test -w $cache_file; then
35896 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35897 cat confcache >$cache_file
35898 else
35899 echo "not updating unwritable cache $cache_file"
35900 fi
35901fi
35902rm -f confcache
35903
35904test "x$prefix" = xNONE && prefix=$ac_default_prefix
35905# Let make expand exec_prefix.
35906test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35907
35908# VPATH may cause trouble with some makes, so we remove $(srcdir),
35909# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35910# trailing colons and then remove the whole line if VPATH becomes empty
35911# (actually we leave an empty line to preserve line numbers).
35912if test "x$srcdir" = x.; then
35913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35914s/:*\$(srcdir):*/:/;
35915s/:*\${srcdir}:*/:/;
35916s/:*@srcdir@:*/:/;
35917s/^\([^=]*=[ ]*\):*/\1/;
35918s/:*$//;
35919s/^[^=]*=[ ]*$//;
35920}'
35921fi
35922
35923DEFS=-DHAVE_CONFIG_H
35924
35925ac_libobjs=
35926ac_ltlibobjs=
35927for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35928 # 1. Remove the extension, and $U if already installed.
35929 ac_i=`echo "$ac_i" |
35930 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35931 # 2. Add them.
35932 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35933 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35934done
35935LIBOBJS=$ac_libobjs
35936
35937LTLIBOBJS=$ac_ltlibobjs
35938
35939
35940
35941: ${CONFIG_STATUS=./config.status}
35942ac_clean_files_save=$ac_clean_files
35943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35944{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35945echo "$as_me: creating $CONFIG_STATUS" >&6;}
35946cat >$CONFIG_STATUS <<_ACEOF
35947#! $SHELL
35948# Generated by $as_me.
35949# Run this file to recreate the current configuration.
35950# Compiler output produced by configure, useful for debugging
35951# configure, is in config.log if it exists.
35952
35953debug=false
35954ac_cs_recheck=false
35955ac_cs_silent=false
35956SHELL=\${CONFIG_SHELL-$SHELL}
35957_ACEOF
35958
35959cat >>$CONFIG_STATUS <<\_ACEOF
35960## --------------------- ##
35961## M4sh Initialization. ##
35962## --------------------- ##
35963
35964# Be Bourne compatible
35965if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35966 emulate sh
35967 NULLCMD=:
35968 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35969 # is contrary to our usage. Disable this feature.
35970 alias -g '${1+"$@"}'='"$@"'
35971elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35972 set -o posix
35973fi
35974
35975# Support unset when possible.
35976if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35977 as_unset=unset
35978else
35979 as_unset=false
35980fi
35981
35982
35983# Work around bugs in pre-3.0 UWIN ksh.
35984$as_unset ENV MAIL MAILPATH
35985PS1='$ '
35986PS2='> '
35987PS4='+ '
35988
35989# NLS nuisances.
35990for as_var in \
35991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35993 LC_TELEPHONE LC_TIME
35994do
35995 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35996 eval $as_var=C; export $as_var
35997 else
35998 $as_unset $as_var
35999 fi
36000done
36001
36002# Required to use basename.
36003if expr a : '\(a\)' >/dev/null 2>&1; then
36004 as_expr=expr
36005else
36006 as_expr=false
36007fi
36008
36009if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36010 as_basename=basename
36011else
36012 as_basename=false
36013fi
36014
36015
36016# Name of the executable.
36017as_me=`$as_basename "$0" ||
36018$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36019 X"$0" : 'X\(//\)$' \| \
36020 X"$0" : 'X\(/\)$' \| \
36021 . : '\(.\)' 2>/dev/null ||
36022echo X/"$0" |
36023 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36024 /^X\/\(\/\/\)$/{ s//\1/; q; }
36025 /^X\/\(\/\).*/{ s//\1/; q; }
36026 s/.*/./; q'`
36027
36028
36029# PATH needs CR, and LINENO needs CR and PATH.
36030# Avoid depending upon Character Ranges.
36031as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36032as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36033as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36034as_cr_digits='0123456789'
36035as_cr_alnum=$as_cr_Letters$as_cr_digits
36036
36037# The user is always right.
36038if test "${PATH_SEPARATOR+set}" != set; then
36039 echo "#! /bin/sh" >conf$$.sh
36040 echo "exit 0" >>conf$$.sh
36041 chmod +x conf$$.sh
36042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36043 PATH_SEPARATOR=';'
36044 else
36045 PATH_SEPARATOR=:
36046 fi
36047 rm -f conf$$.sh
36048fi
36049
36050
36051 as_lineno_1=$LINENO
36052 as_lineno_2=$LINENO
36053 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36054 test "x$as_lineno_1" != "x$as_lineno_2" &&
36055 test "x$as_lineno_3" = "x$as_lineno_2" || {
36056 # Find who we are. Look in the path if we contain no path at all
36057 # relative or not.
36058 case $0 in
36059 *[\\/]* ) as_myself=$0 ;;
36060 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36061for as_dir in $PATH
36062do
36063 IFS=$as_save_IFS
36064 test -z "$as_dir" && as_dir=.
36065 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36066done
36067
36068 ;;
36069 esac
36070 # We did not find ourselves, most probably we were run as `sh COMMAND'
36071 # in which case we are not to be found in the path.
36072 if test "x$as_myself" = x; then
36073 as_myself=$0
36074 fi
36075 if test ! -f "$as_myself"; then
36076 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36077echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36078 { (exit 1); exit 1; }; }
36079 fi
36080 case $CONFIG_SHELL in
36081 '')
36082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36083for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36084do
36085 IFS=$as_save_IFS
36086 test -z "$as_dir" && as_dir=.
36087 for as_base in sh bash ksh sh5; do
36088 case $as_dir in
36089 /*)
36090 if ("$as_dir/$as_base" -c '
36091 as_lineno_1=$LINENO
36092 as_lineno_2=$LINENO
36093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36094 test "x$as_lineno_1" != "x$as_lineno_2" &&
36095 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36096 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36097 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36098 CONFIG_SHELL=$as_dir/$as_base
36099 export CONFIG_SHELL
36100 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36101 fi;;
36102 esac
36103 done
36104done
36105;;
36106 esac
36107
36108 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36109 # uniformly replaced by the line number. The first 'sed' inserts a
36110 # line-number line before each line; the second 'sed' does the real
36111 # work. The second script uses 'N' to pair each line-number line
36112 # with the numbered line, and appends trailing '-' during
36113 # substitution so that $LINENO is not a special case at line end.
36114 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36115 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36116 sed '=' <$as_myself |
36117 sed '
36118 N
36119 s,$,-,
36120 : loop
36121 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36122 t loop
36123 s,-$,,
36124 s,^['$as_cr_digits']*\n,,
36125 ' >$as_me.lineno &&
36126 chmod +x $as_me.lineno ||
36127 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36128echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36129 { (exit 1); exit 1; }; }
36130
36131 # Don't try to exec as it changes $[0], causing all sort of problems
36132 # (the dirname of $[0] is not the place where we might find the
36133 # original and so on. Autoconf is especially sensible to this).
36134 . ./$as_me.lineno
36135 # Exit status is that of the last command.
36136 exit
36137}
36138
36139
36140case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36141 *c*,-n*) ECHO_N= ECHO_C='
36142' ECHO_T=' ' ;;
36143 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36144 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36145esac
36146
36147if expr a : '\(a\)' >/dev/null 2>&1; then
36148 as_expr=expr
36149else
36150 as_expr=false
36151fi
36152
36153rm -f conf$$ conf$$.exe conf$$.file
36154echo >conf$$.file
36155if ln -s conf$$.file conf$$ 2>/dev/null; then
36156 # We could just check for DJGPP; but this test a) works b) is more generic
36157 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36158 if test -f conf$$.exe; then
36159 # Don't use ln at all; we don't have any links
36160 as_ln_s='cp -p'
36161 else
36162 as_ln_s='ln -s'
36163 fi
36164elif ln conf$$.file conf$$ 2>/dev/null; then
36165 as_ln_s=ln
36166else
36167 as_ln_s='cp -p'
36168fi
36169rm -f conf$$ conf$$.exe conf$$.file
36170
36171if mkdir -p . 2>/dev/null; then
36172 as_mkdir_p=:
36173else
36174 as_mkdir_p=false
36175fi
36176
36177as_executable_p="test -f"
36178
36179# Sed expression to map a string onto a valid CPP name.
36180as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36181
36182# Sed expression to map a string onto a valid variable name.
36183as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36184
36185
36186# IFS
36187# We need space, tab and new line, in precisely that order.
36188as_nl='
36189'
36190IFS=" $as_nl"
36191
36192# CDPATH.
36193$as_unset CDPATH
36194
36195exec 6>&1
36196
36197# Open the log real soon, to keep \$[0] and so on meaningful, and to
36198# report actual input values of CONFIG_FILES etc. instead of their
36199# values after options handling. Logging --version etc. is OK.
36200exec 5>>config.log
36201{
36202 echo
36203 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36204## Running $as_me. ##
36205_ASBOX
36206} >&5
36207cat >&5 <<_CSEOF
36208
e46d2a18 36209This file was extended by wxWindows $as_me 2.5.1, which was
e6cc62c6
VS
36210generated by GNU Autoconf 2.57. Invocation command line was
36211
36212 CONFIG_FILES = $CONFIG_FILES
36213 CONFIG_HEADERS = $CONFIG_HEADERS
36214 CONFIG_LINKS = $CONFIG_LINKS
36215 CONFIG_COMMANDS = $CONFIG_COMMANDS
36216 $ $0 $@
36217
36218_CSEOF
36219echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36220echo >&5
36221_ACEOF
36222
36223# Files that config.status was made for.
36224if test -n "$ac_config_files"; then
36225 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36226fi
36227
36228if test -n "$ac_config_headers"; then
36229 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36230fi
36231
36232if test -n "$ac_config_links"; then
36233 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36234fi
36235
36236if test -n "$ac_config_commands"; then
36237 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36238fi
36239
36240cat >>$CONFIG_STATUS <<\_ACEOF
36241
36242ac_cs_usage="\
36243\`$as_me' instantiates files from templates according to the
36244current configuration.
36245
36246Usage: $0 [OPTIONS] [FILE]...
36247
36248 -h, --help print this help, then exit
36249 -V, --version print version number, then exit
36250 -q, --quiet do not print progress messages
36251 -d, --debug don't remove temporary files
36252 --recheck update $as_me by reconfiguring in the same conditions
36253 --file=FILE[:TEMPLATE]
36254 instantiate the configuration file FILE
36255 --header=FILE[:TEMPLATE]
36256 instantiate the configuration header FILE
36257
36258Configuration files:
36259$config_files
36260
36261Configuration headers:
36262$config_headers
36263
36264Configuration commands:
36265$config_commands
36266
36267Report bugs to <bug-autoconf@gnu.org>."
36268_ACEOF
36269
36270cat >>$CONFIG_STATUS <<_ACEOF
36271ac_cs_version="\\
e46d2a18 36272wxWindows config.status 2.5.1
e6cc62c6
VS
36273configured by $0, generated by GNU Autoconf 2.57,
36274 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36275
36276Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36277Free Software Foundation, Inc.
36278This config.status script is free software; the Free Software Foundation
36279gives unlimited permission to copy, distribute and modify it."
36280srcdir=$srcdir
36281INSTALL="$INSTALL"
36282_ACEOF
36283
36284cat >>$CONFIG_STATUS <<\_ACEOF
36285# If no file are specified by the user, then we need to provide default
36286# value. By we need to know if files were specified by the user.
36287ac_need_defaults=:
36288while test $# != 0
36289do
36290 case $1 in
36291 --*=*)
36292 ac_option=`expr "x$1" : 'x\([^=]*\)='`
36293 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36294 ac_shift=:
36295 ;;
36296 -*)
36297 ac_option=$1
36298 ac_optarg=$2
36299 ac_shift=shift
36300 ;;
36301 *) # This is not an option, so the user has probably given explicit
36302 # arguments.
36303 ac_option=$1
36304 ac_need_defaults=false;;
36305 esac
36306
36307 case $ac_option in
36308 # Handling of the options.
36309_ACEOF
36310cat >>$CONFIG_STATUS <<\_ACEOF
36311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36312 ac_cs_recheck=: ;;
36313 --version | --vers* | -V )
36314 echo "$ac_cs_version"; exit 0 ;;
36315 --he | --h)
36316 # Conflict between --help and --header
36317 { { echo "$as_me:$LINENO: error: ambiguous option: $1
36318Try \`$0 --help' for more information." >&5
36319echo "$as_me: error: ambiguous option: $1
36320Try \`$0 --help' for more information." >&2;}
36321 { (exit 1); exit 1; }; };;
36322 --help | --hel | -h )
36323 echo "$ac_cs_usage"; exit 0 ;;
36324 --debug | --d* | -d )
36325 debug=: ;;
36326 --file | --fil | --fi | --f )
36327 $ac_shift
36328 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36329 ac_need_defaults=false;;
36330 --header | --heade | --head | --hea )
36331 $ac_shift
36332 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36333 ac_need_defaults=false;;
36334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36335 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36336 ac_cs_silent=: ;;
36337
36338 # This is an error.
36339 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36340Try \`$0 --help' for more information." >&5
36341echo "$as_me: error: unrecognized option: $1
36342Try \`$0 --help' for more information." >&2;}
36343 { (exit 1); exit 1; }; } ;;
36344
36345 *) ac_config_targets="$ac_config_targets $1" ;;
36346
36347 esac
36348 shift
36349done
36350
36351ac_configure_extra_args=
36352
36353if $ac_cs_silent; then
36354 exec 6>/dev/null
36355 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
36356fi
36357
e6cc62c6
VS
36358_ACEOF
36359cat >>$CONFIG_STATUS <<_ACEOF
36360if \$ac_cs_recheck; then
36361 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36362 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
36363fi
36364
e6cc62c6 36365_ACEOF
fe0895cf 36366
e6cc62c6 36367cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 36368#
e6cc62c6 36369# INIT-COMMANDS section.
10f2d63a 36370#
10f2d63a 36371
a0b9e27f 36372
e6cc62c6
VS
36373 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36374 LN_S="${LN_S}"
10f2d63a 36375
10f2d63a 36376
10f2d63a 36377
e6cc62c6 36378_ACEOF
8284b0c5 36379
52127426 36380
247f5006 36381
e6cc62c6
VS
36382cat >>$CONFIG_STATUS <<\_ACEOF
36383for ac_config_target in $ac_config_targets
247f5006 36384do
e6cc62c6
VS
36385 case "$ac_config_target" in
36386 # Handling of arguments.
81345eef
VZ
36387 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36388 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36389 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 36390 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
36391 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36392 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36393 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36394echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36395 { (exit 1); exit 1; }; };;
247f5006
VZ
36396 esac
36397done
36398
e6cc62c6
VS
36399# If the user did not use the arguments to specify the items to instantiate,
36400# then the envvar interface is used. Set only those that are not.
36401# We use the long form for the default assignment because of an extremely
36402# bizarre bug on SunOS 4.1.3.
36403if $ac_need_defaults; then
36404 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36405 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36406 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36407fi
36408
36409# Have a temporary directory for convenience. Make it in the build tree
36410# simply because there is no reason to put it here, and in addition,
36411# creating and moving files from /tmp can sometimes cause problems.
36412# Create a temporary directory, and hook for its removal unless debugging.
36413$debug ||
36414{
36415 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36416 trap '{ (exit 1); exit 1; }' 1 2 13 15
36417}
247f5006 36418
e6cc62c6 36419# Create a (secure) tmp directory for tmp files.
247f5006 36420
e6cc62c6
VS
36421{
36422 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36423 test -n "$tmp" && test -d "$tmp"
36424} ||
36425{
36426 tmp=./confstat$$-$RANDOM
36427 (umask 077 && mkdir $tmp)
36428} ||
36429{
36430 echo "$me: cannot create a temporary directory in ." >&2
36431 { (exit 1); exit 1; }
36432}
36433
36434_ACEOF
36435
36436cat >>$CONFIG_STATUS <<_ACEOF
36437
36438#
36439# CONFIG_FILES section.
36440#
247f5006 36441
e6cc62c6
VS
36442# No need to generate the scripts if there are no CONFIG_FILES.
36443# This happens for instance when ./config.status config.h
36444if test -n "\$CONFIG_FILES"; then
36445 # Protect against being on the right side of a sed subst in config.status.
36446 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36447 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36448s,@SHELL@,$SHELL,;t t
36449s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36450s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36451s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36452s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36453s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36454s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36455s,@exec_prefix@,$exec_prefix,;t t
36456s,@prefix@,$prefix,;t t
36457s,@program_transform_name@,$program_transform_name,;t t
36458s,@bindir@,$bindir,;t t
36459s,@sbindir@,$sbindir,;t t
36460s,@libexecdir@,$libexecdir,;t t
36461s,@datadir@,$datadir,;t t
36462s,@sysconfdir@,$sysconfdir,;t t
36463s,@sharedstatedir@,$sharedstatedir,;t t
36464s,@localstatedir@,$localstatedir,;t t
36465s,@libdir@,$libdir,;t t
36466s,@includedir@,$includedir,;t t
36467s,@oldincludedir@,$oldincludedir,;t t
36468s,@infodir@,$infodir,;t t
36469s,@mandir@,$mandir,;t t
36470s,@build_alias@,$build_alias,;t t
36471s,@host_alias@,$host_alias,;t t
36472s,@target_alias@,$target_alias,;t t
36473s,@DEFS@,$DEFS,;t t
36474s,@ECHO_C@,$ECHO_C,;t t
36475s,@ECHO_N@,$ECHO_N,;t t
36476s,@ECHO_T@,$ECHO_T,;t t
36477s,@LIBS@,$LIBS,;t t
36478s,@build@,$build,;t t
36479s,@build_cpu@,$build_cpu,;t t
36480s,@build_vendor@,$build_vendor,;t t
36481s,@build_os@,$build_os,;t t
36482s,@host@,$host,;t t
36483s,@host_cpu@,$host_cpu,;t t
36484s,@host_vendor@,$host_vendor,;t t
36485s,@host_os@,$host_os,;t t
36486s,@target@,$target,;t t
36487s,@target_cpu@,$target_cpu,;t t
36488s,@target_vendor@,$target_vendor,;t t
36489s,@target_os@,$target_os,;t t
36490s,@CC@,$CC,;t t
36491s,@CFLAGS@,$CFLAGS,;t t
36492s,@LDFLAGS@,$LDFLAGS,;t t
36493s,@CPPFLAGS@,$CPPFLAGS,;t t
36494s,@ac_ct_CC@,$ac_ct_CC,;t t
36495s,@EXEEXT@,$EXEEXT,;t t
36496s,@OBJEXT@,$OBJEXT,;t t
36497s,@CPP@,$CPP,;t t
36498s,@EGREP@,$EGREP,;t t
36499s,@CXX@,$CXX,;t t
36500s,@CXXFLAGS@,$CXXFLAGS,;t t
36501s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36502s,@RANLIB@,$RANLIB,;t t
36503s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36504s,@AR@,$AR,;t t
36505s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36506s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36507s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36508s,@STRIP@,$STRIP,;t t
36509s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36510s,@LN_S@,$LN_S,;t t
36511s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36512s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36513s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36514s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36515s,@GTK_LIBS@,$GTK_LIBS,;t t
36516s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36517s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36518s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36519s,@X_CFLAGS@,$X_CFLAGS,;t t
36520s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36521s,@X_LIBS@,$X_LIBS,;t t
36522s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36523s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36524s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36525s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36526s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36527s,@RESCOMP@,$RESCOMP,;t t
36528s,@DEREZ@,$DEREZ,;t t
36529s,@SETFILE@,$SETFILE,;t t
36530s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36531s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36532s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36533s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36534s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36535s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36536s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36537s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36538s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36539s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36540s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36541s,@VENDOR@,$VENDOR,;t t
36542s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36543s,@WXUNIV@,$WXUNIV,;t t
36544s,@MONOLITHIC@,$MONOLITHIC,;t t
36545s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36546s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36547s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36548s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36549s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36550s,@UNICODE@,$UNICODE,;t t
36551s,@BUILD@,$BUILD,;t t
6c67131a
VS
36552s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36553s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36554s,@SHARED@,$SHARED,;t t
36555s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36556s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36557s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36558s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36559s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36560s,@SET_MAKE@,$SET_MAKE,;t t
36561s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
36562s,@ac_ct_AR@,$ac_ct_AR,;t t
36563s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36564s,@NM@,$NM,;t t
36565s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 36566s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36567s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36568s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36569s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36570s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36571s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36572s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 36573s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 36574s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36575s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 36576s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 36577s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36578s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36579s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36580s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36581s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36582s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36583s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36584s,@PIC_FLAG@,$PIC_FLAG,;t t
36585s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36586s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36587s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36588s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36589s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36590s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36591s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36592s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36593s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36594s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36595s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36596s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36597s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36598s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36599s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36600s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36601s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36602s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36603s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36604s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36605s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36606s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36607s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
250700e4 36608s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36609s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36610s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36611s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36612s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
250700e4 36613s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36614s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36615s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36616s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36617s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36618s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36619s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36620s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36621s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36622s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36623s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36624s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36625s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36626s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 36627s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 36628s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36629s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36630s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36631s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36632s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36633s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36634s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36635s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36636s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36637s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36638s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36639s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36640s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36641s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36642s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36643s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36644s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36645s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36646s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36647s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36648s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36649s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36650s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36651s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36652s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36653s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36654s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36655s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36656s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36657s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36658s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
36659s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36660s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36661s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
36662s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36663s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 36664s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
36665s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
36666s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
36667s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36668s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36669s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36670s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36671s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36672s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36673s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36674s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36675s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36676s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36677s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36678s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36679s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36680s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36681s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36682s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36683s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36684s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36685s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36686s,@PATH_IFS@,$PATH_IFS,;t t
36687s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36688s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36689s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36690s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36691s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36692s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36693s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36694s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36695s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36696s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36697s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36698s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36699s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36700s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36701s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36702s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36703s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36704s,@WX_ALL@,$WX_ALL,;t t
36705s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36706s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36707s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36708s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36709s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36710s,@USE_GUI@,$USE_GUI,;t t
36711s,@AFMINSTALL@,$AFMINSTALL,;t t
36712s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36713s,@TOOLKIT@,$TOOLKIT,;t t
36714s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36715s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36716s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36717s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36718s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36719s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36720s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36721s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36722s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36723s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36724s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36725s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36726s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36727s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36728s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36729s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36730s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36731s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36732s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36733s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36734s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36735s,@GUIDIST@,$GUIDIST,;t t
36736s,@PORT_FILES@,$PORT_FILES,;t t
36737s,@DISTDIR@,$DISTDIR,;t t
36738s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36739s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36740s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36741s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36742s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36743s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36744s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36745s,@RESFLAGS@,$RESFLAGS,;t t
36746s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36747s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36748s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36749s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36750s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36751s,@MACRESCOMP@,$MACRESCOMP,;t t
36752s,@MACSETFILE@,$MACSETFILE,;t t
36753s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36754s,@GCC@,$GCC,;t t
36755s,@DLLTOOL@,$DLLTOOL,;t t
36756s,@AS@,$AS,;t t
e6cc62c6
VS
36757s,@LD@,$LD,;t t
36758s,@MAKEINFO@,$MAKEINFO,;t t
36759s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36760s,@LIBOBJS@,$LIBOBJS,;t t
36761s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36762CEOF
36763
e6cc62c6
VS
36764_ACEOF
36765
36766 cat >>$CONFIG_STATUS <<\_ACEOF
36767 # Split the substitutions into bite-sized pieces for seds with
36768 # small command number limits, like on Digital OSF/1 and HP-UX.
36769 ac_max_sed_lines=48
36770 ac_sed_frag=1 # Number of current file.
36771 ac_beg=1 # First line for current file.
36772 ac_end=$ac_max_sed_lines # Line after last line for current file.
36773 ac_more_lines=:
36774 ac_sed_cmds=
36775 while $ac_more_lines; do
36776 if test $ac_beg -gt 1; then
36777 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36778 else
e6cc62c6
VS
36779 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36780 fi
36781 if test ! -s $tmp/subs.frag; then
36782 ac_more_lines=false
36783 else
36784 # The purpose of the label and of the branching condition is to
36785 # speed up the sed processing (if there are no `@' at all, there
36786 # is no need to browse any of the substitutions).
36787 # These are the two extra sed commands mentioned above.
36788 (echo ':t
36789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36790 if test -z "$ac_sed_cmds"; then
36791 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36792 else
36793 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36794 fi
36795 ac_sed_frag=`expr $ac_sed_frag + 1`
36796 ac_beg=$ac_end
36797 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36798 fi
e6cc62c6
VS
36799 done
36800 if test -z "$ac_sed_cmds"; then
36801 ac_sed_cmds=cat
10f2d63a 36802 fi
e6cc62c6 36803fi # test -n "$CONFIG_FILES"
10f2d63a 36804
e6cc62c6
VS
36805_ACEOF
36806cat >>$CONFIG_STATUS <<\_ACEOF
36807for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36809 case $ac_file in
36810 - | *:- | *:-:* ) # input from stdin
36811 cat >$tmp/stdin
36812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36816 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36817 esac
247f5006 36818
e6cc62c6
VS
36819 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36821$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36822 X"$ac_file" : 'X\(//\)[^/]' \| \
36823 X"$ac_file" : 'X\(//\)$' \| \
36824 X"$ac_file" : 'X\(/\)' \| \
36825 . : '\(.\)' 2>/dev/null ||
36826echo X"$ac_file" |
36827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36829 /^X\(\/\/\)$/{ s//\1/; q; }
36830 /^X\(\/\).*/{ s//\1/; q; }
36831 s/.*/./; q'`
36832 { if $as_mkdir_p; then
36833 mkdir -p "$ac_dir"
a0b9e27f 36834 else
e6cc62c6
VS
36835 as_dir="$ac_dir"
36836 as_dirs=
36837 while test ! -d "$as_dir"; do
36838 as_dirs="$as_dir $as_dirs"
36839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36841 X"$as_dir" : 'X\(//\)[^/]' \| \
36842 X"$as_dir" : 'X\(//\)$' \| \
36843 X"$as_dir" : 'X\(/\)' \| \
36844 . : '\(.\)' 2>/dev/null ||
36845echo X"$as_dir" |
36846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36848 /^X\(\/\/\)$/{ s//\1/; q; }
36849 /^X\(\/\).*/{ s//\1/; q; }
36850 s/.*/./; q'`
36851 done
36852 test ! -n "$as_dirs" || mkdir $as_dirs
36853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36854echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36855 { (exit 1); exit 1; }; }; }
36856
36857 ac_builddir=.
36858
36859if test "$ac_dir" != .; then
36860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36861 # A "../" for each directory in $ac_dir_suffix.
36862 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36863else
36864 ac_dir_suffix= ac_top_builddir=
36865fi
247f5006 36866
e6cc62c6
VS
36867case $srcdir in
36868 .) # No --srcdir option. We are building in place.
36869 ac_srcdir=.
36870 if test -z "$ac_top_builddir"; then
36871 ac_top_srcdir=.
36872 else
36873 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36874 fi ;;
36875 [\\/]* | ?:[\\/]* ) # Absolute path.
36876 ac_srcdir=$srcdir$ac_dir_suffix;
36877 ac_top_srcdir=$srcdir ;;
247f5006 36878 *) # Relative path.
e6cc62c6
VS
36879 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36880 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36881esac
36882# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36883# absolute.
36884ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36885ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36886ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36887ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36888
247f5006 36889
e6cc62c6
VS
36890 case $INSTALL in
36891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36892 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36893 esac
247f5006 36894
e6cc62c6
VS
36895 if test x"$ac_file" != x-; then
36896 { echo "$as_me:$LINENO: creating $ac_file" >&5
36897echo "$as_me: creating $ac_file" >&6;}
36898 rm -f "$ac_file"
36899 fi
36900 # Let's still pretend it is `configure' which instantiates (i.e., don't
36901 # use $as_me), people would be surprised to read:
36902 # /* config.h. Generated by config.status. */
36903 if test x"$ac_file" = x-; then
36904 configure_input=
36905 else
36906 configure_input="$ac_file. "
36907 fi
36908 configure_input=$configure_input"Generated from `echo $ac_file_in |
36909 sed 's,.*/,,'` by configure."
36910
36911 # First look for the input files in the build tree, otherwise in the
36912 # src tree.
36913 ac_file_inputs=`IFS=:
36914 for f in $ac_file_in; do
36915 case $f in
36916 -) echo $tmp/stdin ;;
36917 [\\/$]*)
36918 # Absolute (can't be DOS-style, as IFS=:)
36919 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36920echo "$as_me: error: cannot find input file: $f" >&2;}
36921 { (exit 1); exit 1; }; }
36922 echo $f;;
36923 *) # Relative
36924 if test -f "$f"; then
36925 # Build tree
36926 echo $f
36927 elif test -f "$srcdir/$f"; then
36928 # Source tree
36929 echo $srcdir/$f
36930 else
36931 # /dev/null tree
36932 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36933echo "$as_me: error: cannot find input file: $f" >&2;}
36934 { (exit 1); exit 1; }; }
36935 fi;;
36936 esac
36937 done` || { (exit 1); exit 1; }
36938_ACEOF
36939cat >>$CONFIG_STATUS <<_ACEOF
36940 sed "$ac_vpsub
36941$extrasub
36942_ACEOF
36943cat >>$CONFIG_STATUS <<\_ACEOF
36944:t
36945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36946s,@configure_input@,$configure_input,;t t
36947s,@srcdir@,$ac_srcdir,;t t
36948s,@abs_srcdir@,$ac_abs_srcdir,;t t
36949s,@top_srcdir@,$ac_top_srcdir,;t t
36950s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36951s,@builddir@,$ac_builddir,;t t
36952s,@abs_builddir@,$ac_abs_builddir,;t t
36953s,@top_builddir@,$ac_top_builddir,;t t
36954s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36955s,@INSTALL@,$ac_INSTALL,;t t
36956" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36957 rm -f $tmp/stdin
36958 if test x"$ac_file" != x-; then
36959 mv $tmp/out $ac_file
36960 else
36961 cat $tmp/out
36962 rm -f $tmp/out
36963 fi
36964
36965done
36966_ACEOF
36967cat >>$CONFIG_STATUS <<\_ACEOF
36968
36969#
36970# CONFIG_HEADER section.
36971#
10f2d63a
VZ
36972
36973# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36974# NAME is the cpp macro being defined and VALUE is the value it is being given.
36975#
36976# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36977ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36978ac_dB='[ ].*$,\1#\2'
36979ac_dC=' '
36980ac_dD=',;t'
36981# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36982ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36983ac_uB='$,\1#\2define\3'
10f2d63a 36984ac_uC=' '
e6cc62c6
VS
36985ac_uD=',;t'
36986
36987for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36989 case $ac_file in
36990 - | *:- | *:-:* ) # input from stdin
36991 cat >$tmp/stdin
36992 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36994 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36996 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36997 esac
36998
e6cc62c6
VS
36999 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37000echo "$as_me: creating $ac_file" >&6;}
37001
37002 # First look for the input files in the build tree, otherwise in the
37003 # src tree.
37004 ac_file_inputs=`IFS=:
37005 for f in $ac_file_in; do
37006 case $f in
37007 -) echo $tmp/stdin ;;
37008 [\\/$]*)
37009 # Absolute (can't be DOS-style, as IFS=:)
37010 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37011echo "$as_me: error: cannot find input file: $f" >&2;}
37012 { (exit 1); exit 1; }; }
37013 echo $f;;
37014 *) # Relative
37015 if test -f "$f"; then
37016 # Build tree
37017 echo $f
37018 elif test -f "$srcdir/$f"; then
37019 # Source tree
37020 echo $srcdir/$f
37021 else
37022 # /dev/null tree
37023 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37024echo "$as_me: error: cannot find input file: $f" >&2;}
37025 { (exit 1); exit 1; }; }
37026 fi;;
37027 esac
37028 done` || { (exit 1); exit 1; }
37029 # Remove the trailing spaces.
37030 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
37031
37032_ACEOF
37033
37034# Transform confdefs.h into two sed scripts, `conftest.defines' and
37035# `conftest.undefs', that substitutes the proper values into
37036# config.h.in to produce config.h. The first handles `#define'
37037# templates, and the second `#undef' templates.
37038# And first: Protect against being on the right side of a sed subst in
37039# config.status. Protect against being in an unquoted here document
37040# in config.status.
37041rm -f conftest.defines conftest.undefs
37042# Using a here document instead of a string reduces the quoting nightmare.
37043# Putting comments in sed scripts is not portable.
37044#
37045# `end' is used to avoid that the second main sed command (meant for
37046# 0-ary CPP macros) applies to n-ary macro definitions.
37047# See the Autoconf documentation for `clear'.
37048cat >confdef2sed.sed <<\_ACEOF
37049s/[\\&,]/\\&/g
37050s,[\\$`],\\&,g
37051t clear
37052: clear
37053s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37054t end
37055s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37056: end
37057_ACEOF
37058# If some macros were called several times there might be several times
37059# the same #defines, which is useless. Nevertheless, we may not want to
37060# sort them, since we want the *last* AC-DEFINE to be honored.
37061uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37062sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37063rm -f confdef2sed.sed
10f2d63a
VZ
37064
37065# This sed command replaces #undef with comments. This is necessary, for
37066# example, in the case of _POSIX_SOURCE, which is predefined and required
37067# on some systems where configure will not decide to define it.
e6cc62c6
VS
37068cat >>conftest.undefs <<\_ACEOF
37069s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37070_ACEOF
37071
37072# Break up conftest.defines because some shells have a limit on the size
37073# of here documents, and old seds have small limits too (100 cmds).
37074echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37075echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37076echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37077echo ' :' >>$CONFIG_STATUS
37078rm -f conftest.tail
37079while grep . conftest.defines >/dev/null
37080do
37081 # Write a limited-size here document to $tmp/defines.sed.
37082 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37083 # Speed up: don't consider the non `#define' lines.
37084 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37085 # Work around the forget-to-reset-the-flag bug.
37086 echo 't clr' >>$CONFIG_STATUS
37087 echo ': clr' >>$CONFIG_STATUS
37088 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37089 echo 'CEOF
37090 sed -f $tmp/defines.sed $tmp/in >$tmp/out
37091 rm -f $tmp/in
37092 mv $tmp/out $tmp/in
37093' >>$CONFIG_STATUS
37094 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37095 rm -f conftest.defines
37096 mv conftest.tail conftest.defines
37097done
37098rm -f conftest.defines
37099echo ' fi # grep' >>$CONFIG_STATUS
37100echo >>$CONFIG_STATUS
10f2d63a 37101
e6cc62c6
VS
37102# Break up conftest.undefs because some shells have a limit on the size
37103# of here documents, and old seds have small limits too (100 cmds).
37104echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 37105rm -f conftest.tail
e6cc62c6 37106while grep . conftest.undefs >/dev/null
10f2d63a 37107do
e6cc62c6
VS
37108 # Write a limited-size here document to $tmp/undefs.sed.
37109 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37110 # Speed up: don't consider the non `#undef'
37111 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37112 # Work around the forget-to-reset-the-flag bug.
37113 echo 't clr' >>$CONFIG_STATUS
37114 echo ': clr' >>$CONFIG_STATUS
37115 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 37116 echo 'CEOF
e6cc62c6
VS
37117 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37118 rm -f $tmp/in
37119 mv $tmp/out $tmp/in
37120' >>$CONFIG_STATUS
37121 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37122 rm -f conftest.undefs
37123 mv conftest.tail conftest.undefs
10f2d63a 37124done
e6cc62c6
VS
37125rm -f conftest.undefs
37126
37127cat >>$CONFIG_STATUS <<\_ACEOF
37128 # Let's still pretend it is `configure' which instantiates (i.e., don't
37129 # use $as_me), people would be surprised to read:
37130 # /* config.h. Generated by config.status. */
37131 if test x"$ac_file" = x-; then
37132 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 37133 else
e6cc62c6 37134 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 37135 fi
e6cc62c6
VS
37136 cat $tmp/in >>$tmp/config.h
37137 rm -f $tmp/in
37138 if test x"$ac_file" != x-; then
37139 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37140 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37141echo "$as_me: $ac_file is unchanged" >&6;}
37142 else
37143 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37144$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37145 X"$ac_file" : 'X\(//\)[^/]' \| \
37146 X"$ac_file" : 'X\(//\)$' \| \
37147 X"$ac_file" : 'X\(/\)' \| \
37148 . : '\(.\)' 2>/dev/null ||
37149echo X"$ac_file" |
37150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37152 /^X\(\/\/\)$/{ s//\1/; q; }
37153 /^X\(\/\).*/{ s//\1/; q; }
37154 s/.*/./; q'`
37155 { if $as_mkdir_p; then
37156 mkdir -p "$ac_dir"
37157 else
37158 as_dir="$ac_dir"
37159 as_dirs=
37160 while test ! -d "$as_dir"; do
37161 as_dirs="$as_dir $as_dirs"
37162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37164 X"$as_dir" : 'X\(//\)[^/]' \| \
37165 X"$as_dir" : 'X\(//\)$' \| \
37166 X"$as_dir" : 'X\(/\)' \| \
37167 . : '\(.\)' 2>/dev/null ||
37168echo X"$as_dir" |
37169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37171 /^X\(\/\/\)$/{ s//\1/; q; }
37172 /^X\(\/\).*/{ s//\1/; q; }
37173 s/.*/./; q'`
37174 done
37175 test ! -n "$as_dirs" || mkdir $as_dirs
37176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37177echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37178 { (exit 1); exit 1; }; }; }
a0b9e27f 37179
e6cc62c6
VS
37180 rm -f $ac_file
37181 mv $tmp/config.h $ac_file
37182 fi
37183 else
37184 cat $tmp/config.h
37185 rm -f $tmp/config.h
37186 fi
37187done
37188_ACEOF
37189cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 37190
e6cc62c6
VS
37191#
37192# CONFIG_COMMANDS section.
37193#
37194for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37195 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37196 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37197 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37198$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37199 X"$ac_dest" : 'X\(//\)[^/]' \| \
37200 X"$ac_dest" : 'X\(//\)$' \| \
37201 X"$ac_dest" : 'X\(/\)' \| \
37202 . : '\(.\)' 2>/dev/null ||
37203echo X"$ac_dest" |
37204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37206 /^X\(\/\/\)$/{ s//\1/; q; }
37207 /^X\(\/\).*/{ s//\1/; q; }
37208 s/.*/./; q'`
37209 ac_builddir=.
37210
37211if test "$ac_dir" != .; then
37212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37213 # A "../" for each directory in $ac_dir_suffix.
37214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37215else
37216 ac_dir_suffix= ac_top_builddir=
37217fi
37218
37219case $srcdir in
37220 .) # No --srcdir option. We are building in place.
37221 ac_srcdir=.
37222 if test -z "$ac_top_builddir"; then
37223 ac_top_srcdir=.
37224 else
37225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37226 fi ;;
37227 [\\/]* | ?:[\\/]* ) # Absolute path.
37228 ac_srcdir=$srcdir$ac_dir_suffix;
37229 ac_top_srcdir=$srcdir ;;
37230 *) # Relative path.
37231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37233esac
37234# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37235# absolute.
37236ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37237ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37238ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37239ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37240
37241
37242 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37243echo "$as_me: executing $ac_dest commands" >&6;}
37244 case $ac_dest in
37245 default )
652d930d 37246 if test ! -h wx-config; then
991a5759 37247 chmod +x wx-config
3a922bb4
RL
37248 mv wx-config wx${TOOLCHAIN_NAME}-config
37249 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 37250 fi
665bbe97 37251
00cf1208
RR
37252 if test ! -d lib; then
37253 mkdir lib
37254 fi
37255 if test ! -d lib/wx; then
37256 mkdir lib/wx
37257 fi
37258 if test ! -d lib/wx/include; then
37259 mkdir lib/wx/include
37260 fi
3a922bb4
RL
37261 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37262 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 37263 fi
3a922bb4
RL
37264 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37265 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
37266 fi
37267 if test -f setup.h; then
3a922bb4 37268 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 37269 fi
e6cc62c6
VS
37270 ;;
37271 esac
37272done
37273_ACEOF
2224580a 37274
e6cc62c6 37275cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 37276
e6cc62c6
VS
37277{ (exit 0); exit 0; }
37278_ACEOF
37279chmod +x $CONFIG_STATUS
37280ac_clean_files=$ac_clean_files_save
37281
37282
37283# configure is writing to config.log, and then calls config.status.
37284# config.status does its own redirection, appending to config.log.
37285# Unfortunately, on DOS this fails, as config.log is still kept open
37286# by configure, so config.status won't be able to write to it; its
37287# output is simply discarded. So we exec the FD to /dev/null,
37288# effectively closing config.log, so it can be properly (re)opened and
37289# appended to by config.status. When coming back to configure, we
37290# need to make the FD available again.
37291if test "$no_create" != yes; then
37292 ac_cs_success=:
37293 ac_config_status_args=
37294 test "$silent" = yes &&
37295 ac_config_status_args="$ac_config_status_args --quiet"
37296 exec 5>/dev/null
37297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37298 exec 5>>config.log
37299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37300 # would make configure fail if this is the last instruction.
37301 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
37302fi
37303
672abd7a
VS
37304#
37305# CONFIG_SUBDIRS section.
37306#
37307if test "$no_recursion" != yes; then
37308
37309 # Remove --cache-file and --srcdir arguments so they do not pile up.
37310 ac_sub_configure_args=
37311 ac_prev=
37312 for ac_arg in $ac_configure_args; do
37313 if test -n "$ac_prev"; then
37314 ac_prev=
37315 continue
37316 fi
37317 case $ac_arg in
37318 -cache-file | --cache-file | --cache-fil | --cache-fi \
37319 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37320 ac_prev=cache_file ;;
37321 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37322 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37323 | --c=*)
37324 ;;
37325 --config-cache | -C)
37326 ;;
37327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37328 ac_prev=srcdir ;;
37329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37330 ;;
37331 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37332 ac_prev=prefix ;;
37333 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37334 ;;
37335 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37336 esac
37337 done
37338
37339 # Always prepend --prefix to ensure using the same prefix
37340 # in subdir configurations.
37341 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37342
37343 ac_popdir=`pwd`
37344 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37345
37346 # Do not complain, so a configure script can configure whichever
37347 # parts of a large source tree are present.
37348 test -d $srcdir/$ac_dir || continue
37349
37350 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37351echo "$as_me: configuring in $ac_dir" >&6;}
37352 { if $as_mkdir_p; then
37353 mkdir -p "$ac_dir"
37354 else
37355 as_dir="$ac_dir"
37356 as_dirs=
37357 while test ! -d "$as_dir"; do
37358 as_dirs="$as_dir $as_dirs"
37359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
37360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37361 X"$as_dir" : 'X\(//\)[^/]' \| \
37362 X"$as_dir" : 'X\(//\)$' \| \
37363 X"$as_dir" : 'X\(/\)' \| \
37364 . : '\(.\)' 2>/dev/null ||
37365echo X"$as_dir" |
37366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37368 /^X\(\/\/\)$/{ s//\1/; q; }
37369 /^X\(\/\).*/{ s//\1/; q; }
37370 s/.*/./; q'`
37371 done
37372 test ! -n "$as_dirs" || mkdir $as_dirs
37373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37374echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37375 { (exit 1); exit 1; }; }; }
37376
37377 ac_builddir=.
37378
37379if test "$ac_dir" != .; then
37380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37381 # A "../" for each directory in $ac_dir_suffix.
37382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37383else
37384 ac_dir_suffix= ac_top_builddir=
37385fi
37386
37387case $srcdir in
37388 .) # No --srcdir option. We are building in place.
37389 ac_srcdir=.
37390 if test -z "$ac_top_builddir"; then
37391 ac_top_srcdir=.
37392 else
37393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37394 fi ;;
37395 [\\/]* | ?:[\\/]* ) # Absolute path.
37396 ac_srcdir=$srcdir$ac_dir_suffix;
37397 ac_top_srcdir=$srcdir ;;
37398 *) # Relative path.
37399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
37401esac
37402# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37403# absolute.
37404ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37405ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37406ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37407ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37408
37409
37410 cd $ac_dir
37411
37412 # Check for guested configure; otherwise get Cygnus style configure.
37413 if test -f $ac_srcdir/configure.gnu; then
37414 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37415 elif test -f $ac_srcdir/configure; then
37416 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37417 elif test -f $ac_srcdir/configure.in; then
37418 ac_sub_configure=$ac_configure
37419 else
37420 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37421echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37422 ac_sub_configure=
37423 fi
37424
37425 # The recursion is here.
37426 if test -n "$ac_sub_configure"; then
37427 # Make the cache file name correct relative to the subdirectory.
37428 case $cache_file in
37429 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37430 *) # Relative path.
37431 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37432 esac
37433
37434 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37435echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37436 # The eval makes quoting arguments work.
37437 eval $ac_sub_configure $ac_sub_configure_args \
37438 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37439 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37440echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37441 { (exit 1); exit 1; }; }
37442 fi
37443
37444 cd $ac_popdir
37445 done
37446fi
37447
8284b0c5 37448
2b5f62a0
VZ
37449echo
37450echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37451echo ""
37452echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 37453echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
37454
37455echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
37456echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
37457echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
37458
0c98a14e 37459echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37460echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37461echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37462
2b5f62a0
VZ
37463echo " Which libraries should wxWindows use?"
37464echo " jpeg ${wxUSE_LIBJPEG-none}"
37465echo " png ${wxUSE_LIBPNG-none}"
37466echo " regex ${wxUSE_REGEX}"
37467echo " tiff ${wxUSE_LIBTIFF-none}"
37468echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37469echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37470echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37471
37472echo ""
37473