]> git.saurik.com Git - wxWidgets.git/blame - configure
Invalidate the best size after adding an item
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
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
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
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'`
79
80
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
88
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
101
102
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
119
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
158
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}
188
189
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
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
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
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
6ab3c239 316ac_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 X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS 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_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 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_0_USE_XRC_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_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_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_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_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_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_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 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
3b57de8b 934 --enable-mediactrl use wxMediaCtrl class
77ffb593 935 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 936 --enable-zipstream use wxZipInputStream
a848cd7e
SC
937 --enable-url use wxURL class
938 --enable-protocol use wxProtocol class
939 --enable-protocol-http HTTP support in wxProtocol
940 --enable-protocol-ftp FTP support in wxProtocol
941 --enable-protocol-file FILE support in wxProtocol
942 --enable-threads use threads
943 --enable-docview use document view architecture
944 --enable-help use help subsystem
945 --enable-mshtmlhelp use MS HTML Help (win32)
946 --enable-html use wxHTML sub-library
947 --enable-htmlhelp use wxHTML-based help
9a8f0513 948 --enable-xrc use XRC resources sub-library
a848cd7e
SC
949 --enable-constraints use layout-constraints system
950 --enable-printarch use printing architecture
951 --enable-mdi use multiple document interface architecture
8a7b1113 952 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
953 --enable-loggui use standard GUI logger
954 --enable-logwin use wxLogWindow
955 --enable-logdialog use wxLogDialog
646b6ec1 956 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
957 --enable-postscript use wxPostscriptDC device context (default for gtk+)
958 --enable-prologio not available; see contrib
959 --enable-resources not available; see contrib
960 --enable-clipboard use wxClipboard class
961 --enable-dnd use Drag'n'Drop classes
962 --enable-metafile use win32 metafiles
963 --enable-controls use all usual controls
964 --enable-accel use accelerators
965 --enable-button use wxButton class
966 --enable-bmpbutton use wxBitmapButton class
967 --enable-calendar use wxCalendarCtrl class
968 --enable-caret use wxCaret class
969 --enable-checkbox use wxCheckBox class
970 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
971 --enable-choice use wxChoice class
92bbdbcd 972 --enable-choicebook use wxChoicebook class
a848cd7e
SC
973 --enable-combobox use wxComboBox class
974 --enable-display use wxDisplay class
975 --enable-gauge use wxGauge class
976 --enable-grid use wxGrid class
977 --enable-imaglist use wxImageList class
978 --enable-listbook use wxListbook class
979 --enable-listbox use wxListBox class
980 --enable-listctrl use wxListCtrl class
981 --enable-notebook use wxNotebook class
982 --enable-radiobox use wxRadioBox class
983 --enable-radiobtn use wxRadioButton class
984 --enable-sash use wxSashWindow class
985 --enable-scrollbar use wxScrollBar class and scrollable windows
986 --enable-slider use wxSlider class
987 --enable-spinbtn use wxSpinButton class
988 --enable-spinctrl use wxSpinCtrl class
989 --enable-splitter use wxSplitterWindow class
990 --enable-statbmp use wxStaticBitmap class
991 --enable-statbox use wxStaticBox class
992 --enable-statline use wxStaticLine class
993 --enable-stattext use wxStaticText class
994 --enable-statusbar use wxStatusBar class
995 --enable-tabdialog use wxTabControl class
996 --enable-textctrl use wxTextCtrl class
997 --enable-togglebtn use wxToggleButton class
998 --enable-toolbar use wxToolBar class
999 --enable-tbarnative use native wxToolBar class
1000 --enable-tbarsmpl use wxToolBarSimple class
1001 --enable-treectrl use wxTreeCtrl class
1002 --enable-tipwindow use wxTipWindow class
1003 --enable-popupwin use wxPopUpWindow class
1004 --enable-commondlg use all common dialogs
1005 --enable-choicedlg use wxChoiceDialog
1006 --enable-coldlg use wxColourDialog
1007 --enable-filedlg use wxFileDialog
1008 --enable-finddlg use wxFindReplaceDialog
1009 --enable-fontdlg use wxFontDialog
1010 --enable-dirdlg use wxDirDialog
1011 --enable-msgdlg use wxMessageDialog
1012 --enable-numberdlg use wxNumberEntryDialog
1013 --enable-splash use wxSplashScreen
1014 --enable-textdlg use wxTextDialog
1015 --enable-tipdlg use startup tips
1016 --enable-progressdlg use wxProgressDialog
1017 --enable-wizarddlg use wxWizard
1018 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1019 --enable-miniframe use wxMiniFrame class
1020 --enable-tooltips use wxToolTip class
1021 --enable-splines use spline drawing code
1022 --enable-validators use wxValidator and derived classes
1023 --enable-busyinfo use wxBusyInfo
1024 --enable-joystick use wxJoystick (Linux only)
1025 --enable-metafiles use wxMetaFile (Windows only)
1026 --enable-dragimage use wxDragImage
1027 --enable-accessibility enable accessibility support
1028 --enable-palette use wxPalette class
1029 --enable-image use wxImage class
1030 --enable-gif use gif images (GIF file format)
1031 --enable-pcx use pcx images (PCX file format)
1032 --enable-iff use iff images (IFF file format)
1033 --enable-pnm use pnm images (PNM file format)
1034 --enable-xpm use xpm images (XPM file format)
1035 --enable-icocur use Windows ICO and CUR formats
77ffb593 1036 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1037 --enable-vendor=VENDOR vendor name (win32 DLL only)
1038 --disable-largefile omit support for large files
1039 --disable-gtktest do not try to compile and run a test GTK+ program
1040 --disable-gtktest Do not try to compile and run a test GTK program
1041 --disable-sdltest Do not try to compile and run a test SDL program
1042 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1043 --disable-precomp-headers
1044 don't use precompiled headers even if compiler can
a848cd7e
SC
1045
1046Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gtk use GTK+
1050 --with-motif use Motif/Lesstif
1051 --with-mac use Mac OS X
1052 --with-cocoa use Cocoa
1053 --with-wine use Wine
1054 --with-msw use MS-Windows
1055 --with-pm use OS/2 Presentation Manager
1056 --with-mgl use SciTech MGL
1057 --with-microwin use MicroWindows
1058 --with-x11 use X11
1059 --with-libpng use libpng (PNG image format)
1060 --with-libjpeg use libjpeg (JPEG file format)
1061 --with-libtiff use libtiff (TIFF file format)
1062 --with-libxpm use libxpm (XPM file format)
1063 --with-libmspack use libmspack (CHM help files loading)
1064 --with-sdl use SDL for audio on Unix
d51253e8 1065 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1066 --with-opengl use OpenGL (or Mesa)
1067 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1068 --with-regex enable support for wxRegEx class
1069 --with-zlib use zlib for LZW compression
1070 --with-odbc use the IODBC and wxODBC classes
1071 --with-expat enable XML support using expat parser
ceec2216 1072 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1073 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1074 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1075 --with-x use the X Window System
1076 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1077 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1078 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1079 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1080 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1081
1082Some influential environment variables:
dcc1b6ad
VS
1083 CC C compiler command
1084 CFLAGS C compiler flags
1085 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1086 nonstandard directory <lib dir>
1087 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1088 headers in a nonstandard directory <include dir>
1089 CPP C preprocessor
1090 CXX C++ compiler command
1091 CXXFLAGS C++ compiler flags
1092 CXXCPP C++ preprocessor
a848cd7e
SC
1093
1094Use these variables to override the choices made by `configure' or to help
1095it to find libraries and programs with nonstandard names/locations.
1096
77ffb593 1097Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1098_ACEOF
1099fi
1100
1101if test "$ac_init_help" = "recursive"; then
1102 # If there are subdirs, report their specific --help.
1103 ac_popdir=`pwd`
1104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1105 test -d $ac_dir || continue
1106 ac_builddir=.
1107
1108if test "$ac_dir" != .; then
1109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1110 # A "../" for each directory in $ac_dir_suffix.
1111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112else
1113 ac_dir_suffix= ac_top_builddir=
1114fi
1115
1116case $srcdir in
1117 .) # No --srcdir option. We are building in place.
1118 ac_srcdir=.
1119 if test -z "$ac_top_builddir"; then
1120 ac_top_srcdir=.
1121 else
1122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123 fi ;;
1124 [\\/]* | ?:[\\/]* ) # Absolute path.
1125 ac_srcdir=$srcdir$ac_dir_suffix;
1126 ac_top_srcdir=$srcdir ;;
1127 *) # Relative path.
1128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1130esac
ac1cb8d3
VS
1131
1132# Do not use `cd foo && pwd` to compute absolute paths, because
1133# the directories may not exist.
1134case `pwd` in
1135.) ac_abs_builddir="$ac_dir";;
1136*)
1137 case "$ac_dir" in
1138 .) ac_abs_builddir=`pwd`;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1140 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1141 esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145*)
1146 case ${ac_top_builddir}. in
1147 .) ac_abs_top_builddir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_srcdir=$ac_srcdir;;
1154*)
1155 case $ac_srcdir in
1156 .) ac_abs_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1158 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163*)
1164 case $ac_top_srcdir in
1165 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1168 esac;;
1169esac
a848cd7e
SC
1170
1171 cd $ac_dir
1172 # Check for guested configure; otherwise get Cygnus style configure.
1173 if test -f $ac_srcdir/configure.gnu; then
1174 echo
1175 $SHELL $ac_srcdir/configure.gnu --help=recursive
1176 elif test -f $ac_srcdir/configure; then
1177 echo
1178 $SHELL $ac_srcdir/configure --help=recursive
1179 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1180 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1181 echo
1182 $ac_configure --help
1183 else
1184 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1185 fi
5f652d0d 1186 cd $ac_popdir
a848cd7e
SC
1187 done
1188fi
1189
1190test -n "$ac_init_help" && exit 0
1191if $ac_init_version; then
1192 cat <<\_ACEOF
7714864e 1193wxWidgets configure 2.5.3
ac1cb8d3 1194generated by GNU Autoconf 2.59
a848cd7e 1195
ac1cb8d3 1196Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1197This configure script is free software; the Free Software Foundation
1198gives unlimited permission to copy, distribute and modify it.
1199_ACEOF
1200 exit 0
1201fi
1202exec 5>config.log
1203cat >&5 <<_ACEOF
1204This file contains any messages produced by compilers while
1205running configure, to aid debugging if configure makes a mistake.
1206
7714864e 1207It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1208generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1209
1210 $ $0 $@
1211
1212_ACEOF
1213{
1214cat <<_ASUNAME
1215## --------- ##
1216## Platform. ##
1217## --------- ##
1218
1219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1220uname -m = `(uname -m) 2>/dev/null || echo unknown`
1221uname -r = `(uname -r) 2>/dev/null || echo unknown`
1222uname -s = `(uname -s) 2>/dev/null || echo unknown`
1223uname -v = `(uname -v) 2>/dev/null || echo unknown`
1224
1225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1227
1228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1231hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
1236_ASUNAME
1237
1238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239for as_dir in $PATH
1240do
1241 IFS=$as_save_IFS
1242 test -z "$as_dir" && as_dir=.
1243 echo "PATH: $as_dir"
1244done
1245
1246} >&5
1247
1248cat >&5 <<_ACEOF
1249
1250
1251## ----------- ##
1252## Core tests. ##
1253## ----------- ##
1254
1255_ACEOF
1256
1257
1258# Keep a trace of the command line.
1259# Strip out --no-create and --no-recursion so they do not pile up.
1260# Strip out --silent because we don't want to record it for future runs.
1261# Also quote any args containing shell meta-characters.
1262# Make two passes to allow for proper duplicate-argument suppression.
1263ac_configure_args=
1264ac_configure_args0=
1265ac_configure_args1=
1266ac_sep=
1267ac_must_keep_next=false
1268for ac_pass in 1 2
1269do
1270 for ac_arg
1271 do
1272 case $ac_arg in
1273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 continue ;;
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1279 esac
1280 case $ac_pass in
1281 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1282 2)
1283 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1284 if test $ac_must_keep_next = true; then
ac1cb8d3 1285 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1286 else
ac1cb8d3
VS
1287 case $ac_arg in
1288 *=* | --config-cache | -C | -disable-* | --disable-* \
1289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1291 | -with-* | --with-* | -without-* | --without-* | --x)
1292 case "$ac_configure_args0 " in
1293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1294 esac
1295 ;;
1296 -* ) ac_must_keep_next=true ;;
1297 esac
a848cd7e
SC
1298 fi
1299 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1300 # Get rid of the leading space.
1301 ac_sep=" "
1302 ;;
1303 esac
1304 done
1305done
1306$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1307$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1308
1309# When interrupted or exit'd, cleanup temporary files, and complete
1310# config.log. We remove comments because anyway the quotes in there
1311# would cause problems or look ugly.
1312# WARNING: Be sure not to use single quotes in there, as some shells,
1313# such as our DU 5.0 friend, will then `close' the trap.
1314trap 'exit_status=$?
1315 # Save into config.log some information that might help in debugging.
1316 {
1317 echo
1318
1319 cat <<\_ASBOX
1320## ---------------- ##
1321## Cache variables. ##
1322## ---------------- ##
1323_ASBOX
1324 echo
1325 # The following way of writing the cache mishandles newlines in values,
1326{
1327 (set) 2>&1 |
1328 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1329 *ac_space=\ *)
1330 sed -n \
ac1cb8d3
VS
1331 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1333 ;;
1334 *)
1335 sed -n \
ac1cb8d3 1336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1337 ;;
1338 esac;
1339}
1340 echo
1341
1342 cat <<\_ASBOX
1343## ----------------- ##
1344## Output variables. ##
1345## ----------------- ##
1346_ASBOX
1347 echo
1348 for ac_var in $ac_subst_vars
1349 do
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1352 done | sort
1353 echo
1354
1355 if test -n "$ac_subst_files"; then
1356 cat <<\_ASBOX
1357## ------------- ##
1358## Output files. ##
1359## ------------- ##
1360_ASBOX
1361 echo
1362 for ac_var in $ac_subst_files
1363 do
1364 eval ac_val=$`echo $ac_var`
ac1cb8d3 1365 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1366 done | sort
1367 echo
1368 fi
1369
1370 if test -s confdefs.h; then
1371 cat <<\_ASBOX
1372## ----------- ##
1373## confdefs.h. ##
1374## ----------- ##
1375_ASBOX
1376 echo
1377 sed "/^$/d" confdefs.h | sort
1378 echo
1379 fi
1380 test "$ac_signal" != 0 &&
1381 echo "$as_me: caught signal $ac_signal"
1382 echo "$as_me: exit $exit_status"
1383 } >&5
ac1cb8d3 1384 rm -f core *.core &&
a848cd7e
SC
1385 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1386 exit $exit_status
1387 ' 0
1388for ac_signal in 1 2 13 15; do
1389 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390done
1391ac_signal=0
1392
1393# confdefs.h avoids OS command line length limits that DEFS can exceed.
1394rm -rf conftest* confdefs.h
1395# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1396echo >confdefs.h
1397
1398# Predefined preprocessor variables.
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_NAME "$PACKAGE_NAME"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_STRING "$PACKAGE_STRING"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422_ACEOF
1423
1424
1425# Let the site file select an alternate cache file if it wants to.
1426# Prefer explicitly selected file to automatically selected ones.
1427if test -z "$CONFIG_SITE"; then
1428 if test "x$prefix" != xNONE; then
1429 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1430 else
1431 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1432 fi
1433fi
1434for ac_site_file in $CONFIG_SITE; do
1435 if test -r "$ac_site_file"; then
1436 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1437echo "$as_me: loading site script $ac_site_file" >&6;}
1438 sed 's/^/| /' "$ac_site_file" >&5
1439 . "$ac_site_file"
1440 fi
1441done
1442
1443if test -r "$cache_file"; then
1444 # Some versions of bash will fail to source /dev/null (special
1445 # files actually), so we avoid doing that.
1446 if test -f "$cache_file"; then
1447 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1448echo "$as_me: loading cache $cache_file" >&6;}
1449 case $cache_file in
1450 [\\/]* | ?:[\\/]* ) . $cache_file;;
1451 *) . ./$cache_file;;
1452 esac
1453 fi
1454else
1455 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1456echo "$as_me: creating cache $cache_file" >&6;}
1457 >$cache_file
1458fi
1459
1460# Check that the precious variables saved in the cache have kept the same
1461# value.
1462ac_cache_corrupted=false
1463for ac_var in `(set) 2>&1 |
ac1cb8d3 1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1470 set,)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,set)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,);;
1479 *)
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1482echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1484echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1486echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1487 ac_cache_corrupted=:
a848cd7e
SC
1488 fi;;
1489 esac
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1492 case $ac_new_val in
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1496 esac
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 esac
1501 fi
1502done
1503if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1509fi
1510
1511ac_ext=c
1512ac_cpp='$CPP $CPPFLAGS'
1513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546ac_aux_dir=
1547for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1548 if test -f $ac_dir/install-sh; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/install-sh -c"
1551 break
1552 elif test -f $ac_dir/install.sh; then
1553 ac_aux_dir=$ac_dir
1554 ac_install_sh="$ac_aux_dir/install.sh -c"
1555 break
1556 elif test -f $ac_dir/shtool; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 break
1560 fi
1561done
1562if test -z "$ac_aux_dir"; then
1563 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1564echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1565 { (exit 1); exit 1; }; }
1566fi
1567ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1568ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1569ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
1571# Make sure we can run config.sub.
1572$ac_config_sub sun4 >/dev/null 2>&1 ||
1573 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1574echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577echo "$as_me:$LINENO: checking build system type" >&5
1578echo $ECHO_N "checking build system type... $ECHO_C" >&6
1579if test "${ac_cv_build+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 ac_cv_build_alias=$build_alias
1583test -z "$ac_cv_build_alias" &&
1584 ac_cv_build_alias=`$ac_config_guess`
1585test -z "$ac_cv_build_alias" &&
1586 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1587echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1588 { (exit 1); exit 1; }; }
1589ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1596echo "${ECHO_T}$ac_cv_build" >&6
1597build=$ac_cv_build
1598build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603echo "$as_me:$LINENO: checking host system type" >&5
1604echo $ECHO_N "checking host system type... $ECHO_C" >&6
1605if test "${ac_cv_host+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608 ac_cv_host_alias=$host_alias
1609test -z "$ac_cv_host_alias" &&
1610 ac_cv_host_alias=$ac_cv_build_alias
1611ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1618echo "${ECHO_T}$ac_cv_host" >&6
1619host=$ac_cv_host
1620host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking target system type" >&5
1626echo $ECHO_N "checking target system type... $ECHO_C" >&6
1627if test "${ac_cv_target+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_target_alias=$target_alias
1631test "x$ac_cv_target_alias" = "x" &&
1632 ac_cv_target_alias=$ac_cv_host_alias
1633ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1640echo "${ECHO_T}$ac_cv_target" >&6
1641target=$ac_cv_target
1642target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647# The aliases save the names the user supplied, while $host etc.
1648# will get canonicalized.
1649test -n "$target_alias" &&
1650 test "$program_prefix$program_suffix$program_transform_name" = \
1651 NONENONEs,x,x, &&
1652 program_prefix=${target_alias}-
1653
1654
1655
ceec2216
RL
1656wx_major_version_number=2
1657wx_minor_version_number=5
7714864e 1658wx_release_number=3
0210f373 1659wx_subrelease_number=3
a848cd7e 1660
ceec2216
RL
1661WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1662WX_VERSION=$WX_RELEASE.$wx_release_number
1663WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1664
ceec2216 1665WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1666
e653e181 1667WX_CURRENT=3
a848cd7e 1668WX_REVISION=0
0210f373 1669WX_AGE=3
a848cd7e
SC
1670
1671
1672
1673USE_UNIX=1
1674USE_OS2=0
1675USE_WIN32=0
1676USE_DOS=0
1677USE_BEOS=0
1678USE_MAC=0
1679
1680USE_AIX=
1681USE_BSD= USE_DARWIN= USE_FREEBSD=
1682USE_GNU= USE_HPUX=
1683USE_LINUX=
1684USE_NETBSD=
1685USE_OPENBSD=
1686USE_OSF= USE_SGI=
1687USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1688USE_ULTRIX=
1689USE_UNIXWARE=
1690
1691USE_ALPHA=
1692
1693NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1694
1695ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1696
1697DEFAULT_wxUSE_COCOA=0
1698DEFAULT_wxUSE_GTK=0
1699DEFAULT_wxUSE_MAC=0
1700DEFAULT_wxUSE_MGL=0
1701DEFAULT_wxUSE_MICROWIN=0
1702DEFAULT_wxUSE_MOTIF=0
1703DEFAULT_wxUSE_MSW=0
1704DEFAULT_wxUSE_PM=0
1705DEFAULT_wxUSE_X11=0
1706
1707DEFAULT_DEFAULT_wxUSE_COCOA=0
1708DEFAULT_DEFAULT_wxUSE_GTK=0
1709DEFAULT_DEFAULT_wxUSE_MAC=0
1710DEFAULT_DEFAULT_wxUSE_MGL=0
1711DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1712DEFAULT_DEFAULT_wxUSE_MOTIF=0
1713DEFAULT_DEFAULT_wxUSE_MSW=0
1714DEFAULT_DEFAULT_wxUSE_PM=0
1715DEFAULT_DEFAULT_wxUSE_X11=0
1716
1717PROGRAM_EXT=
1718SO_SUFFIX=so
1719SAMPLES_RPATH_FLAG=
1720SAMPLES_RPATH_POSTLINK=
1721
1722case "${host}" in
1723 *-hp-hpux* )
1724 USE_HPUX=1
1725 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1726 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1727 SO_SUFFIX=sl
1728 cat >>confdefs.h <<\_ACEOF
1729#define __HPUX__ 1
1730_ACEOF
1731
1732 ;;
1733 *-*-linux* )
1734 USE_LINUX=1
1735 cat >>confdefs.h <<\_ACEOF
1736#define __LINUX__ 1
1737_ACEOF
1738
1739 TMP=`uname -m`
1740 if test "x$TMP" = "xalpha"; then
1741 USE_ALPHA=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __ALPHA__ 1
1744_ACEOF
1745
1746 fi
1747 DEFAULT_DEFAULT_wxUSE_GTK=1
1748 ;;
1749 *-*-gnu* | *-*-k*bsd*-gnu )
1750 USE_GNU=1
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-irix5* | *-*-irix6* )
1762 USE_SGI=1
1763 USE_SVR4=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __SGI__ 1
1766_ACEOF
1767
1768 cat >>confdefs.h <<\_ACEOF
1769#define __SVR4__ 1
1770_ACEOF
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1773 ;;
1774 *-*-solaris2* )
1775 USE_SUN=1
1776 USE_SOLARIS=1
1777 USE_SVR4=1
1778 cat >>confdefs.h <<\_ACEOF
1779#define __SUN__ 1
1780_ACEOF
1781
1782 cat >>confdefs.h <<\_ACEOF
1783#define __SOLARIS__ 1
1784_ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SVR4__ 1
1788_ACEOF
1789
1790 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1791 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1792 ;;
1793 *-*-sunos4* )
1794 USE_SUN=1
1795 USE_SUNOS=1
1796 USE_BSD=1
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SUN__ 1
1799_ACEOF
1800
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUNOS__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __BSD__ 1
1807_ACEOF
1808
1809 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810 ;;
1811 *-*-freebsd*)
1812 USE_BSD=1
1813 USE_FREEBSD=1
1814 cat >>confdefs.h <<\_ACEOF
1815#define __FREEBSD__ 1
1816_ACEOF
1817
1818 cat >>confdefs.h <<\_ACEOF
1819#define __BSD__ 1
1820_ACEOF
1821
1822 DEFAULT_DEFAULT_wxUSE_GTK=1
1823 ;;
1824 *-*-openbsd*)
1825 USE_BSD=1
1826 USE_OPENBSD=1
1827 cat >>confdefs.h <<\_ACEOF
1828#define __OPENBSD__ 1
1829_ACEOF
1830
1831 cat >>confdefs.h <<\_ACEOF
1832#define __BSD__ 1
1833_ACEOF
1834
1835 DEFAULT_DEFAULT_wxUSE_GTK=1
1836 ;;
1837 *-*-netbsd*)
1838 USE_BSD=1
1839 USE_NETBSD=1
1840 cat >>confdefs.h <<\_ACEOF
1841#define __NETBSD__ 1
1842_ACEOF
1843
1844 cat >>confdefs.h <<\_ACEOF
1845#define __BSD__ 1
1846_ACEOF
1847
1848 DEFAULT_DEFAULT_wxUSE_GTK=1
1849 ;;
1850 *-*-osf* )
1851 USE_ALPHA=1
1852 USE_OSF=1
1853 cat >>confdefs.h <<\_ACEOF
1854#define __ALPHA__ 1
1855_ACEOF
1856
1857 cat >>confdefs.h <<\_ACEOF
1858#define __OSF__ 1
1859_ACEOF
1860
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1862 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1863 ;;
1864 *-*-dgux5* )
1865 USE_ALPHA=1
1866 USE_SVR4=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 cat >>confdefs.h <<\_ACEOF
1872#define __SVR4__ 1
1873_ACEOF
1874
1875 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1876 ;;
1877 *-*-sysv5* )
1878 USE_SYSV=1
1879 USE_SVR4=1
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SYSV__ 1
1882_ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885#define __SVR4__ 1
1886_ACEOF
1887
1888 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1889 ;;
1890 *-*-aix* )
1891 USE_AIX=1
1892 USE_SYSV=1
1893 USE_SVR4=1
1894 SO_SUFFIX=a
1895 cat >>confdefs.h <<\_ACEOF
1896#define __AIX__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SYSV__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909
1910 *-*-*UnixWare*)
1911 USE_SYSV=1
1912 USE_SVR4=1
1913 USE_UNIXWARE=1
1914 cat >>confdefs.h <<\_ACEOF
1915#define __UNIXWARE__ 1
1916_ACEOF
1917
1918 ;;
1919
1920 *-*-cygwin* | *-*-mingw32* )
1921 SO_SUFFIX=dll
1922 PROGRAM_EXT=".exe"
1923 RESCOMP=windres
1924 DEFAULT_DEFAULT_wxUSE_MSW=1
1925 ;;
1926
1927 *-pc-msdosdjgpp )
1928 USE_UNIX=0
1929 USE_DOS=1
1930 cat >>confdefs.h <<\_ACEOF
1931#define __DOS__ 1
1932_ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_MGL=1
1936 LIBS="$LIBS -lstdc++"
1937 ;;
1938
1939 *-pc-os2_emx | *-pc-os2-emx )
1940 cat >>confdefs.h <<\_ACEOF
1941#define __EMX__ 1
1942_ACEOF
1943
1944 USE_OS2=1
1945 cat >>confdefs.h <<\_ACEOF
1946#define __OS2__ 1
1947_ACEOF
1948
1949 PROGRAM_EXT=".exe"
1950 DEFAULT_DEFAULT_wxUSE_PM=1
1951 CXX=gcc
1952 LDFLAGS="$LDFLAGS -Zcrtdll"
1953 ac_executable_extensions=".exe"
1954 export ac_executable_extensions
1955 ac_save_IFS="$IFS"
1956 IFS='\\'
1957 ac_TEMP_PATH=
1958 for ac_dir in $PATH; do
1959 IFS=$ac_save_IFS
1960 if test -z "$ac_TEMP_PATH"; then
1961 ac_TEMP_PATH="$ac_dir"
1962 else
1963 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1964 fi
1965 done
1966 export PATH="$ac_TEMP_PATH"
1967 unset ac_TEMP_PATH
1968 ;;
1969
1970 powerpc-*-darwin* )
1971 USE_BSD=1
1972 USE_DARWIN=1
1973 SO_SUFFIX=dylib
1974 cat >>confdefs.h <<\_ACEOF
1975#define __BSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __DARWIN__ 1
1980_ACEOF
1981
1982 cat >>confdefs.h <<\_ACEOF
1983#define __POWERPC__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define TARGET_CARBON 1
1988_ACEOF
1989
1990 DEFAULT_DEFAULT_wxUSE_MAC=1
1991 ;;
1e9e8aba
DE
1992 powerpc-apple-macos* )
1993 USE_UNIX=0
1994 ac_cv_c_bigendian=yes
1995 SO_SUFFIX=shlib
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
1997 ;;
a848cd7e
SC
1998
1999 *-*-beos* )
2000 USE_BEOS=1
2001 cat >>confdefs.h <<\_ACEOF
2002#define __BEOS__ 1
2003_ACEOF
2004
2005 ;;
2006
2007 *)
2008 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2009echo "$as_me: error: unknown system type ${host}." >&2;}
2010 { (exit 1); exit 1; }; }
2011esac
2012
2013
2014
2015
2016 wx_arg_cache_file="configarg.cache"
2017 echo "loading argument cache $wx_arg_cache_file"
2018 rm -f ${wx_arg_cache_file}.tmp
2019 touch ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}
2021
2022
2023DEBUG_CONFIGURE=0
2024if test $DEBUG_CONFIGURE = 1; then
2025 DEFAULT_wxUSE_UNIVERSAL=no
2026 DEFAULT_wxUSE_STL=no
2027
2028 DEFAULT_wxUSE_NANOX=no
2029
2030 DEFAULT_wxUSE_THREADS=yes
2031
2032 DEFAULT_wxUSE_SHARED=yes
2033 DEFAULT_wxUSE_OPTIMISE=no
2034 DEFAULT_wxUSE_PROFILE=no
2035 DEFAULT_wxUSE_NO_DEPS=no
2036 DEFAULT_wxUSE_NO_RTTI=no
2037 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2038 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2039 DEFAULT_wxUSE_PERMISSIVE=no
2040 DEFAULT_wxUSE_DEBUG_FLAG=yes
2041 DEFAULT_wxUSE_DEBUG_INFO=yes
2042 DEFAULT_wxUSE_DEBUG_GDB=yes
2043 DEFAULT_wxUSE_MEM_TRACING=no
2044 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2045 DEFAULT_wxUSE_DMALLOC=no
2046 DEFAULT_wxUSE_APPLE_IEEE=no
2047
2048 DEFAULT_wxUSE_EXCEPTIONS=no
2049 DEFAULT_wxUSE_LOG=yes
2050 DEFAULT_wxUSE_LOGWINDOW=no
2051 DEFAULT_wxUSE_LOGGUI=no
2052 DEFAULT_wxUSE_LOGDIALOG=no
2053
2054 DEFAULT_wxUSE_GUI=yes
2055 DEFAULT_wxUSE_CONTROLS=no
2056
2057 DEFAULT_wxUSE_REGEX=no
2058 DEFAULT_wxUSE_XML=no
2059 DEFAULT_wxUSE_EXPAT=no
2060 DEFAULT_wxUSE_ZLIB=no
2061 DEFAULT_wxUSE_LIBPNG=no
2062 DEFAULT_wxUSE_LIBJPEG=no
2063 DEFAULT_wxUSE_LIBTIFF=no
2064 DEFAULT_wxUSE_LIBXPM=no
2065 DEFAULT_wxUSE_LIBMSPACK=no
2066 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2067 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2068 DEFAULT_wxUSE_ODBC=no
2069 DEFAULT_wxUSE_OPENGL=no
2070
2071 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2072 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2073 DEFAULT_wxUSE_STD_IOSTREAM=no
2074 DEFAULT_wxUSE_CMDLINE_PARSER=no
2075 DEFAULT_wxUSE_DATETIME=no
2076 DEFAULT_wxUSE_TIMER=no
2077 DEFAULT_wxUSE_STOPWATCH=no
2078 DEFAULT_wxUSE_FILE=no
2079 DEFAULT_wxUSE_FFILE=no
2080 DEFAULT_wxUSE_TEXTBUFFER=no
2081 DEFAULT_wxUSE_TEXTFILE=no
2082 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2083 DEFAULT_wxUSE_MEDIACTRL=no
2084 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2085 DEFAULT_wxUSE_INTL=no
2086 DEFAULT_wxUSE_CONFIG=no
2087 DEFAULT_wxUSE_FONTMAP=no
2088 DEFAULT_wxUSE_STREAMS=no
2089 DEFAULT_wxUSE_SOCKETS=no
2090 DEFAULT_wxUSE_OLE=no
2091 DEFAULT_wxUSE_DATAOBJ=no
2092 DEFAULT_wxUSE_DIALUP_MANAGER=no
2093 DEFAULT_wxUSE_JOYSTICK=no
2094 DEFAULT_wxUSE_DYNLIB_CLASS=no
2095 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2096 DEFAULT_wxUSE_LONGLONG=no
2097 DEFAULT_wxUSE_GEOMETRY=no
2098
2099 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2100 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2101 DEFAULT_wxUSE_POSTSCRIPT=no
2102
2103 DEFAULT_wxUSE_CLIPBOARD=no
2104 DEFAULT_wxUSE_TOOLTIPS=no
2105 DEFAULT_wxUSE_DRAG_AND_DROP=no
2106 DEFAULT_wxUSE_DRAGIMAGE=no
2107 DEFAULT_wxUSE_SPLINES=no
2108
8a7b1113 2109 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2110 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2111 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2112 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2113
2114 DEFAULT_wxUSE_RESOURCES=no
2115 DEFAULT_wxUSE_CONSTRAINTS=no
2116 DEFAULT_wxUSE_IPC=no
2117 DEFAULT_wxUSE_HELP=no
2118 DEFAULT_wxUSE_MS_HTML_HELP=no
2119 DEFAULT_wxUSE_WXHTML_HELP=no
2120 DEFAULT_wxUSE_TREELAYOUT=no
2121 DEFAULT_wxUSE_METAFILE=no
2122 DEFAULT_wxUSE_MIMETYPE=no
2123 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2124 DEFAULT_wxUSE_PROTOCOL=no
2125 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2126 DEFAULT_wxUSE_PROTOCOL_FTP=no
2127 DEFAULT_wxUSE_PROTOCOL_FILE=no
2128 DEFAULT_wxUSE_URL=no
2129
2130 DEFAULT_wxUSE_COMMONDLGS=no
2131 DEFAULT_wxUSE_CHOICEDLG=no
2132 DEFAULT_wxUSE_COLOURDLG=no
2133 DEFAULT_wxUSE_DIRDLG=no
2134 DEFAULT_wxUSE_FILEDLG=no
2135 DEFAULT_wxUSE_FINDREPLDLG=no
2136 DEFAULT_wxUSE_FONTDLG=no
2137 DEFAULT_wxUSE_MSGDLG=no
2138 DEFAULT_wxUSE_NUMBERDLG=no
2139 DEFAULT_wxUSE_TEXTDLG=no
2140 DEFAULT_wxUSE_SPLASH=no
2141 DEFAULT_wxUSE_STARTUP_TIPS=no
2142 DEFAULT_wxUSE_PROGRESSDLG=no
2143 DEFAULT_wxUSE_WIZARDDLG=no
2144
2145 DEFAULT_wxUSE_MENUS=no
2146 DEFAULT_wxUSE_MINIFRAME=no
2147 DEFAULT_wxUSE_HTML=no
9a8f0513 2148 DEFAULT_wxUSE_XRC=no
646b6ec1 2149 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2150 DEFAULT_wxUSE_FILESYSTEM=no
2151 DEFAULT_wxUSE_FS_INET=no
2152 DEFAULT_wxUSE_FS_ZIP=no
2153 DEFAULT_wxUSE_BUSYINFO=no
2154 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2155 DEFAULT_wxUSE_VALIDATORS=no
2156
2157 DEFAULT_wxUSE_ACCEL=no
2158 DEFAULT_wxUSE_BUTTON=no
2159 DEFAULT_wxUSE_BMPBUTTON=no
2160 DEFAULT_wxUSE_CALCTRL=no
2161 DEFAULT_wxUSE_CARET=no
2162 DEFAULT_wxUSE_CHECKBOX=no
2163 DEFAULT_wxUSE_CHECKLST=no
2164 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2165 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2166 DEFAULT_wxUSE_COMBOBOX=no
2167 DEFAULT_wxUSE_DISPLAY=no
2168 DEFAULT_wxUSE_GAUGE=no
2169 DEFAULT_wxUSE_GRID=no
2170 DEFAULT_wxUSE_IMAGLIST=no
2171 DEFAULT_wxUSE_LISTBOOK=no
2172 DEFAULT_wxUSE_LISTBOX=no
2173 DEFAULT_wxUSE_LISTCTRL=no
2174 DEFAULT_wxUSE_NOTEBOOK=no
2175 DEFAULT_wxUSE_RADIOBOX=no
2176 DEFAULT_wxUSE_RADIOBTN=no
2177 DEFAULT_wxUSE_SASH=no
2178 DEFAULT_wxUSE_SCROLLBAR=no
2179 DEFAULT_wxUSE_SLIDER=no
2180 DEFAULT_wxUSE_SPINBTN=no
2181 DEFAULT_wxUSE_SPINCTRL=no
2182 DEFAULT_wxUSE_SPLITTER=no
2183 DEFAULT_wxUSE_STATBMP=no
2184 DEFAULT_wxUSE_STATBOX=no
2185 DEFAULT_wxUSE_STATLINE=no
2186 DEFAULT_wxUSE_STATTEXT=no
2187 DEFAULT_wxUSE_STATUSBAR=yes
2188 DEFAULT_wxUSE_TABDIALOG=no
2189 DEFAULT_wxUSE_TEXTCTRL=no
2190 DEFAULT_wxUSE_TOGGLEBTN=no
2191 DEFAULT_wxUSE_TOOLBAR=no
2192 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2193 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2194 DEFAULT_wxUSE_TREECTRL=no
2195 DEFAULT_wxUSE_POPUPWIN=no
2196 DEFAULT_wxUSE_TIPWINDOW=no
2197
2198 DEFAULT_wxUSE_UNICODE=no
2199 DEFAULT_wxUSE_UNICODE_MSLU=no
2200 DEFAULT_wxUSE_WCSRTOMBS=no
2201
2202 DEFAULT_wxUSE_PALETTE=no
2203 DEFAULT_wxUSE_IMAGE=no
2204 DEFAULT_wxUSE_GIF=no
2205 DEFAULT_wxUSE_PCX=no
2206 DEFAULT_wxUSE_PNM=no
2207 DEFAULT_wxUSE_IFF=no
2208 DEFAULT_wxUSE_XPM=no
2209 DEFAULT_wxUSE_ICO_CUR=no
2210 DEFAULT_wxUSE_ACCESSIBILITY=no
2211
2212 DEFAULT_wxUSE_MONOLITHIC=no
2213 DEFAULT_wxUSE_PLUGINS=no
2214 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2215else
2216 DEFAULT_wxUSE_UNIVERSAL=no
2217 DEFAULT_wxUSE_STL=no
2218
2219 DEFAULT_wxUSE_NANOX=no
2220
2221 DEFAULT_wxUSE_THREADS=yes
2222
2223 DEFAULT_wxUSE_SHARED=yes
2224 DEFAULT_wxUSE_OPTIMISE=yes
2225 DEFAULT_wxUSE_PROFILE=no
2226 DEFAULT_wxUSE_NO_DEPS=no
2227 DEFAULT_wxUSE_NO_RTTI=no
2228 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2229 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2230 DEFAULT_wxUSE_PERMISSIVE=no
2231 DEFAULT_wxUSE_DEBUG_FLAG=no
2232 DEFAULT_wxUSE_DEBUG_INFO=no
2233 DEFAULT_wxUSE_DEBUG_GDB=no
2234 DEFAULT_wxUSE_MEM_TRACING=no
2235 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2236 DEFAULT_wxUSE_DMALLOC=no
2237 DEFAULT_wxUSE_APPLE_IEEE=yes
2238
2239 DEFAULT_wxUSE_EXCEPTIONS=yes
2240 DEFAULT_wxUSE_LOG=yes
2241 DEFAULT_wxUSE_LOGWINDOW=yes
2242 DEFAULT_wxUSE_LOGGUI=yes
2243 DEFAULT_wxUSE_LOGDIALOG=yes
2244
2245 DEFAULT_wxUSE_GUI=yes
2246
2247 DEFAULT_wxUSE_REGEX=yes
2248 DEFAULT_wxUSE_XML=yes
2249 DEFAULT_wxUSE_EXPAT=yes
2250 DEFAULT_wxUSE_ZLIB=yes
2251 DEFAULT_wxUSE_LIBPNG=yes
2252 DEFAULT_wxUSE_LIBJPEG=yes
2253 DEFAULT_wxUSE_LIBTIFF=yes
2254 DEFAULT_wxUSE_LIBXPM=yes
2255 DEFAULT_wxUSE_LIBMSPACK=yes
2256 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2257 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2258 DEFAULT_wxUSE_ODBC=no
2259 DEFAULT_wxUSE_OPENGL=no
2260
2261 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2262 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2263 DEFAULT_wxUSE_STD_IOSTREAM=no
2264 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2265 DEFAULT_wxUSE_DATETIME=yes
2266 DEFAULT_wxUSE_TIMER=yes
2267 DEFAULT_wxUSE_STOPWATCH=yes
2268 DEFAULT_wxUSE_FILE=yes
2269 DEFAULT_wxUSE_FFILE=yes
2270 DEFAULT_wxUSE_TEXTBUFFER=yes
2271 DEFAULT_wxUSE_TEXTFILE=yes
2272 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2273 DEFAULT_wxUSE_MEDIACTRL=no
2274 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2275 DEFAULT_wxUSE_INTL=yes
2276 DEFAULT_wxUSE_CONFIG=yes
2277 DEFAULT_wxUSE_FONTMAP=yes
2278 DEFAULT_wxUSE_STREAMS=yes
2279 DEFAULT_wxUSE_SOCKETS=yes
2280 DEFAULT_wxUSE_OLE=yes
2281 DEFAULT_wxUSE_DATAOBJ=yes
2282 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2283 DEFAULT_wxUSE_JOYSTICK=yes
2284 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2285 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2286 DEFAULT_wxUSE_LONGLONG=yes
2287 DEFAULT_wxUSE_GEOMETRY=yes
2288
2289 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2290 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2291 DEFAULT_wxUSE_POSTSCRIPT=yes
2292
2293 DEFAULT_wxUSE_CLIPBOARD=yes
2294 DEFAULT_wxUSE_TOOLTIPS=yes
2295 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2296 DEFAULT_wxUSE_DRAGIMAGE=yes
2297 DEFAULT_wxUSE_SPLINES=yes
2298
8a7b1113 2299 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2300 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2301 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2302 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2303
2304 DEFAULT_wxUSE_RESOURCES=no
2305 DEFAULT_wxUSE_CONSTRAINTS=yes
2306 DEFAULT_wxUSE_IPC=yes
2307 DEFAULT_wxUSE_HELP=yes
2308 DEFAULT_wxUSE_MS_HTML_HELP=yes
2309 DEFAULT_wxUSE_WXHTML_HELP=yes
2310 DEFAULT_wxUSE_TREELAYOUT=yes
2311 DEFAULT_wxUSE_METAFILE=yes
2312 DEFAULT_wxUSE_MIMETYPE=yes
2313 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2314 DEFAULT_wxUSE_PROTOCOL=yes
2315 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2316 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2317 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2318 DEFAULT_wxUSE_URL=yes
2319
2320 DEFAULT_wxUSE_COMMONDLGS=yes
2321 DEFAULT_wxUSE_CHOICEDLG=yes
2322 DEFAULT_wxUSE_COLOURDLG=yes
2323 DEFAULT_wxUSE_DIRDLG=yes
2324 DEFAULT_wxUSE_FILEDLG=yes
2325 DEFAULT_wxUSE_FINDREPLDLG=yes
2326 DEFAULT_wxUSE_FONTDLG=yes
2327 DEFAULT_wxUSE_MSGDLG=yes
2328 DEFAULT_wxUSE_NUMBERDLG=yes
2329 DEFAULT_wxUSE_TEXTDLG=yes
2330 DEFAULT_wxUSE_SPLASH=yes
2331 DEFAULT_wxUSE_STARTUP_TIPS=yes
2332 DEFAULT_wxUSE_PROGRESSDLG=yes
2333 DEFAULT_wxUSE_WIZARDDLG=yes
2334
2335 DEFAULT_wxUSE_MENUS=yes
2336 DEFAULT_wxUSE_MINIFRAME=yes
2337 DEFAULT_wxUSE_HTML=yes
9a8f0513 2338 DEFAULT_wxUSE_XRC=yes
646b6ec1 2339 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_FILESYSTEM=yes
2341 DEFAULT_wxUSE_FS_INET=yes
2342 DEFAULT_wxUSE_FS_ZIP=yes
2343 DEFAULT_wxUSE_BUSYINFO=yes
2344 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2345 DEFAULT_wxUSE_VALIDATORS=yes
2346
2347 DEFAULT_wxUSE_ACCEL=yes
2348 DEFAULT_wxUSE_BUTTON=yes
2349 DEFAULT_wxUSE_BMPBUTTON=yes
2350 DEFAULT_wxUSE_CALCTRL=yes
2351 DEFAULT_wxUSE_CARET=yes
2352 DEFAULT_wxUSE_CHECKBOX=yes
2353 DEFAULT_wxUSE_CHECKLST=yes
2354 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2355 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_COMBOBOX=yes
2357 DEFAULT_wxUSE_DISPLAY=yes
2358 DEFAULT_wxUSE_GAUGE=yes
2359 DEFAULT_wxUSE_GRID=yes
2360 DEFAULT_wxUSE_IMAGLIST=yes
2361 DEFAULT_wxUSE_LISTBOOK=yes
2362 DEFAULT_wxUSE_LISTBOX=yes
2363 DEFAULT_wxUSE_LISTCTRL=yes
2364 DEFAULT_wxUSE_NOTEBOOK=yes
2365 DEFAULT_wxUSE_RADIOBOX=yes
2366 DEFAULT_wxUSE_RADIOBTN=yes
2367 DEFAULT_wxUSE_SASH=yes
2368 DEFAULT_wxUSE_SCROLLBAR=yes
2369 DEFAULT_wxUSE_SLIDER=yes
2370 DEFAULT_wxUSE_SPINBTN=yes
2371 DEFAULT_wxUSE_SPINCTRL=yes
2372 DEFAULT_wxUSE_SPLITTER=yes
2373 DEFAULT_wxUSE_STATBMP=yes
2374 DEFAULT_wxUSE_STATBOX=yes
2375 DEFAULT_wxUSE_STATLINE=yes
2376 DEFAULT_wxUSE_STATTEXT=yes
2377 DEFAULT_wxUSE_STATUSBAR=yes
2378 DEFAULT_wxUSE_TABDIALOG=no
2379 DEFAULT_wxUSE_TEXTCTRL=yes
2380 DEFAULT_wxUSE_TOGGLEBTN=yes
2381 DEFAULT_wxUSE_TOOLBAR=yes
2382 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2383 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2384 DEFAULT_wxUSE_TREECTRL=yes
2385 DEFAULT_wxUSE_POPUPWIN=yes
2386 DEFAULT_wxUSE_TIPWINDOW=yes
2387
2388 DEFAULT_wxUSE_UNICODE=no
2389 DEFAULT_wxUSE_UNICODE_MSLU=yes
2390 DEFAULT_wxUSE_WCSRTOMBS=no
2391
2392 DEFAULT_wxUSE_PALETTE=yes
2393 DEFAULT_wxUSE_IMAGE=yes
2394 DEFAULT_wxUSE_GIF=yes
2395 DEFAULT_wxUSE_PCX=yes
2396 DEFAULT_wxUSE_IFF=no
2397 DEFAULT_wxUSE_PNM=yes
2398 DEFAULT_wxUSE_XPM=yes
2399 DEFAULT_wxUSE_ICO_CUR=yes
2400 DEFAULT_wxUSE_ACCESSIBILITY=no
2401
2402 DEFAULT_wxUSE_MONOLITHIC=no
2403 DEFAULT_wxUSE_PLUGINS=no
2404 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2405
2406 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2407fi
2408
2409
2410
2411for toolkit in `echo $ALL_TOOLKITS`; do
2412 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2413 if test "x$LINE" != "x" ; then
2414 has_toolkit_in_cache=1
2415 eval "DEFAULT_$LINE"
2416 eval "CACHE_$toolkit=1"
2417 fi
2418done
2419
2420
2421
2422 enablestring=
2423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2424echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2425 no_cache=0
2426 # Check whether --enable-gui or --disable-gui was given.
2427if test "${enable_gui+set}" = set; then
2428 enableval="$enable_gui"
2429
2430 if test "$enableval" = yes; then
2431 ac_cv_use_gui='wxUSE_GUI=yes'
2432 else
2433 ac_cv_use_gui='wxUSE_GUI=no'
2434 fi
2435
2436else
2437
2438 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2439 if test "x$LINE" != x ; then
2440 eval "DEFAULT_$LINE"
2441 else
2442 no_cache=1
2443 fi
2444
2445 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2446
2447fi;
2448
2449 eval "$ac_cv_use_gui"
2450 if test "$no_cache" != 1; then
2451 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2452 fi
2453
2454 if test "$wxUSE_GUI" = yes; then
2455 echo "$as_me:$LINENO: result: yes" >&5
2456echo "${ECHO_T}yes" >&6
2457 else
2458 echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6
2460 fi
2461
2462
2463 enablestring=
2464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2465echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2466 no_cache=0
2467 # Check whether --enable-monolithic or --disable-monolithic was given.
2468if test "${enable_monolithic+set}" = set; then
2469 enableval="$enable_monolithic"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2473 else
2474 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2475 fi
2476
2477else
2478
2479 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2487
2488fi;
2489
2490 eval "$ac_cv_use_monolithic"
2491 if test "$no_cache" != 1; then
2492 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2493 fi
2494
2495 if test "$wxUSE_MONOLITHIC" = yes; then
2496 echo "$as_me:$LINENO: result: yes" >&5
2497echo "${ECHO_T}yes" >&6
2498 else
2499 echo "$as_me:$LINENO: result: no" >&5
2500echo "${ECHO_T}no" >&6
2501 fi
2502
2503
2504 enablestring=
2505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2506echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2507 no_cache=0
2508 # Check whether --enable-plugins or --disable-plugins was given.
2509if test "${enable_plugins+set}" = set; then
2510 enableval="$enable_plugins"
2511
2512 if test "$enableval" = yes; then
2513 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2514 else
2515 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2516 fi
2517
2518else
2519
2520 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2521 if test "x$LINE" != x ; then
2522 eval "DEFAULT_$LINE"
2523 else
2524 no_cache=1
2525 fi
2526
2527 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2528
2529fi;
2530
2531 eval "$ac_cv_use_plugins"
2532 if test "$no_cache" != 1; then
2533 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2534 fi
2535
2536 if test "$wxUSE_PLUGINS" = yes; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
2539 else
2540 echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6
2542 fi
2543
2544
2545if test "$wxUSE_GUI" = "yes"; then
2546
2547
2548 enablestring=
2549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2550echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2551 no_cache=0
2552 # Check whether --enable-universal or --disable-universal was given.
2553if test "${enable_universal+set}" = set; then
2554 enableval="$enable_universal"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2558 else
2559 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2572
2573fi;
2574
2575 eval "$ac_cv_use_universal"
2576 if test "$no_cache" != 1; then
2577 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2578 fi
2579
2580 if test "$wxUSE_UNIVERSAL" = yes; then
2581 echo "$as_me:$LINENO: result: yes" >&5
2582echo "${ECHO_T}yes" >&6
2583 else
2584 echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6
2586 fi
2587
2588
2589# Check whether --with-gtk or --without-gtk was given.
2590if test "${with_gtk+set}" = set; then
2591 withval="$with_gtk"
2592 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2593fi;
2594
2595# Check whether --with-motif or --without-motif was given.
2596if test "${with_motif+set}" = set; then
2597 withval="$with_motif"
2598 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2599fi;
2600
2601# Check whether --with-mac or --without-mac was given.
2602if test "${with_mac+set}" = set; then
2603 withval="$with_mac"
c228d3a4 2604 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2605fi;
2606
2607# Check whether --with-cocoa or --without-cocoa was given.
2608if test "${with_cocoa+set}" = set; then
2609 withval="$with_cocoa"
c228d3a4 2610 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2611fi;
2612
2613# Check whether --with-wine or --without-wine was given.
2614if test "${with_wine+set}" = set; then
2615 withval="$with_wine"
2616 wxUSE_WINE="$withval" CACHE_WINE=1
2617fi;
2618
2619# Check whether --with-msw or --without-msw was given.
2620if test "${with_msw+set}" = set; then
2621 withval="$with_msw"
2622 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-pm or --without-pm was given.
2626if test "${with_pm+set}" = set; then
2627 withval="$with_pm"
2628 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2629fi;
2630
2631# Check whether --with-mgl or --without-mgl was given.
2632if test "${with_mgl+set}" = set; then
2633 withval="$with_mgl"
2634 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2635fi;
2636
2637# Check whether --with-microwin or --without-microwin was given.
2638if test "${with_microwin+set}" = set; then
2639 withval="$with_microwin"
2640 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2641fi;
2642
2643# Check whether --with-x11 or --without-x11 was given.
2644if test "${with_x11+set}" = set; then
2645 withval="$with_x11"
2646 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649 enablestring=
2650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2651echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2652 no_cache=0
2653 # Check whether --enable-nanox or --disable-nanox was given.
2654if test "${enable_nanox+set}" = set; then
2655 enableval="$enable_nanox"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_nanox='wxUSE_NANOX=yes'
2659 else
2660 ac_cv_use_nanox='wxUSE_NANOX=no'
2661 fi
2662
2663else
2664
2665 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2673
2674fi;
2675
2676 eval "$ac_cv_use_nanox"
2677 if test "$no_cache" != 1; then
2678 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2679 fi
2680
2681 if test "$wxUSE_NANOX" = yes; then
2682 echo "$as_me:$LINENO: result: yes" >&5
2683echo "${ECHO_T}yes" >&6
2684 else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687 fi
2688
2689
2690
2691 enablestring=
2692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2693echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2694 no_cache=0
2695 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2696if test "${enable_gtk2+set}" = set; then
2697 enableval="$enable_gtk2"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2701 else
2702 ac_cv_use_gtk2='wxUSE_GTK2=no'
2703 fi
2704
2705else
2706
2707 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2715
2716fi;
2717
2718 eval "$ac_cv_use_gtk2"
2719 if test "$no_cache" != 1; then
2720 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2721 fi
2722
2723 if test "$wxUSE_GTK2" = yes; then
2724 echo "$as_me:$LINENO: result: yes" >&5
2725echo "${ECHO_T}yes" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729 fi
2730
2731
2732 enablestring=
2733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2734echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2735 no_cache=0
2736 # Check whether --enable-gpe or --disable-gpe was given.
2737if test "${enable_gpe+set}" = set; then
2738 enableval="$enable_gpe"
2739
2740 if test "$enableval" = yes; then
2741 ac_cv_use_gpe='wxUSE_GPE=yes'
2742 else
2743 ac_cv_use_gpe='wxUSE_GPE=no'
2744 fi
2745
2746else
2747
2748 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2749 if test "x$LINE" != x ; then
2750 eval "DEFAULT_$LINE"
2751 else
2752 no_cache=1
2753 fi
2754
2755 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2756
2757fi;
2758
2759 eval "$ac_cv_use_gpe"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_GPE" = yes; then
2765 echo "$as_me:$LINENO: result: yes" >&5
2766echo "${ECHO_T}yes" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769echo "${ECHO_T}no" >&6
2770 fi
2771
2772
2773
2774 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2775echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2776 no_cache=0
2777
2778# Check whether --with-libpng or --without-libpng was given.
2779if test "${with_libpng+set}" = set; then
2780 withval="$with_libpng"
2781
2782 if test "$withval" = yes; then
2783 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2784 elif test "$withval" = no; then
2785 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2786 elif test "$withval" = sys; then
2787 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2788 elif test "$withval" = builtin; then
2789 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2790 else
2791 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2792echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2793 { (exit 1); exit 1; }; }
2794 fi
2795
2796else
2797
2798 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2806
2807fi;
2808
2809 eval "$ac_cv_use_libpng"
2810 if test "$no_cache" != 1; then
2811 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2812 fi
2813
2814 if test "$wxUSE_LIBPNG" = yes; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816echo "${ECHO_T}yes" >&6
2817 elif test "$wxUSE_LIBPNG" = no; then
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
2820 elif test "$wxUSE_LIBPNG" = sys; then
2821 echo "$as_me:$LINENO: result: system version" >&5
2822echo "${ECHO_T}system version" >&6
2823 elif test "$wxUSE_LIBPNG" = builtin; then
2824 echo "$as_me:$LINENO: result: builtin version" >&5
2825echo "${ECHO_T}builtin version" >&6
2826 else
2827 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2828echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831
2832
2833 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2834echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2835 no_cache=0
2836
2837# Check whether --with-libjpeg or --without-libjpeg was given.
2838if test "${with_libjpeg+set}" = set; then
2839 withval="$with_libjpeg"
2840
2841 if test "$withval" = yes; then
2842 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2843 elif test "$withval" = no; then
2844 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2845 elif test "$withval" = sys; then
2846 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2847 elif test "$withval" = builtin; then
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2849 else
2850 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2851echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2852 { (exit 1); exit 1; }; }
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2865
2866fi;
2867
2868 eval "$ac_cv_use_libjpeg"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LIBJPEG" = yes; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6
2876 elif test "$wxUSE_LIBJPEG" = no; then
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879 elif test "$wxUSE_LIBJPEG" = sys; then
2880 echo "$as_me:$LINENO: result: system version" >&5
2881echo "${ECHO_T}system version" >&6
2882 elif test "$wxUSE_LIBJPEG" = builtin; then
2883 echo "$as_me:$LINENO: result: builtin version" >&5
2884echo "${ECHO_T}builtin version" >&6
2885 else
2886 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2887echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890
2891
2892 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2893echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2894 no_cache=0
2895
2896# Check whether --with-libtiff or --without-libtiff was given.
2897if test "${with_libtiff+set}" = set; then
2898 withval="$with_libtiff"
2899
2900 if test "$withval" = yes; then
2901 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2902 elif test "$withval" = no; then
2903 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2904 elif test "$withval" = sys; then
2905 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2906 elif test "$withval" = builtin; then
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2908 else
2909 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2910echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2913
2914else
2915
2916 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2924
2925fi;
2926
2927 eval "$ac_cv_use_libtiff"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_LIBTIFF" = yes; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935 elif test "$wxUSE_LIBTIFF" = no; then
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938 elif test "$wxUSE_LIBTIFF" = sys; then
2939 echo "$as_me:$LINENO: result: system version" >&5
2940echo "${ECHO_T}system version" >&6
2941 elif test "$wxUSE_LIBTIFF" = builtin; then
2942 echo "$as_me:$LINENO: result: builtin version" >&5
2943echo "${ECHO_T}builtin version" >&6
2944 else
2945 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2946echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950
2951 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2952echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2953 no_cache=0
2954
2955# Check whether --with-libxpm or --without-libxpm was given.
2956if test "${with_libxpm+set}" = set; then
2957 withval="$with_libxpm"
2958
2959 if test "$withval" = yes; then
2960 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2961 elif test "$withval" = no; then
2962 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2963 elif test "$withval" = sys; then
2964 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2965 elif test "$withval" = builtin; then
2966 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2967 else
2968 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2969echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2983
2984fi;
2985
2986 eval "$ac_cv_use_libxpm"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_LIBXPM" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 elif test "$wxUSE_LIBXPM" = no; then
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 elif test "$wxUSE_LIBXPM" = sys; then
2998 echo "$as_me:$LINENO: result: system version" >&5
2999echo "${ECHO_T}system version" >&6
3000 elif test "$wxUSE_LIBXPM" = builtin; then
3001 echo "$as_me:$LINENO: result: builtin version" >&5
3002echo "${ECHO_T}builtin version" >&6
3003 else
3004 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3005echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009
3010 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3011echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3012 no_cache=0
3013
3014# Check whether --with-libmspack or --without-libmspack was given.
3015if test "${with_libmspack+set}" = set; then
3016 withval="$with_libmspack"
3017
3018 if test "$withval" = yes; then
3019 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3020 else
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3022 fi
3023
3024else
3025
3026 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3027 if test "x$LINE" != x ; then
3028 eval "DEFAULT_$LINE"
3029 else
3030 no_cache=1
3031 fi
3032
3033 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3034
3035fi;
3036
3037 eval "$ac_cv_use_libmspack"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_LIBMSPACK" = yes; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044echo "${ECHO_T}yes" >&6
3045 else
3046 echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6
3048 fi
3049
3050
3051 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3052echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3053 no_cache=0
3054
3055# Check whether --with-sdl or --without-sdl was given.
3056if test "${with_sdl+set}" = set; then
3057 withval="$with_sdl"
3058
3059 if test "$withval" = yes; then
3060 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3061 else
3062 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3063 fi
3064
3065else
3066
3067 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3068 if test "x$LINE" != x ; then
3069 eval "DEFAULT_$LINE"
3070 else
3071 no_cache=1
3072 fi
3073
3074 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3075
3076fi;
3077
3078 eval "$ac_cv_use_sdl"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_LIBSDL" = yes; then
3084 echo "$as_me:$LINENO: result: yes" >&5
3085echo "${ECHO_T}yes" >&6
3086 else
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089 fi
3090
3091
d1c38808
VZ
3092 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3093echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3094 no_cache=0
3095
3096# Check whether --with-gnomeprint or --without-gnomeprint was given.
3097if test "${with_gnomeprint+set}" = set; then
3098 withval="$with_gnomeprint"
3099
3100 if test "$withval" = yes; then
3101 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3102 else
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3104 fi
3105
3106else
3107
3108 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3109 if test "x$LINE" != x ; then
3110 eval "DEFAULT_$LINE"
3111 else
3112 no_cache=1
3113 fi
3114
3115 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3116
3117fi;
3118
3119 eval "$ac_cv_use_gnomeprint"
3120 if test "$no_cache" != 1; then
3121 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3122 fi
3123
3124 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3125 echo "$as_me:$LINENO: result: yes" >&5
3126echo "${ECHO_T}yes" >&6
3127 else
3128 echo "$as_me:$LINENO: result: no" >&5
3129echo "${ECHO_T}no" >&6
3130 fi
3131
3132
a848cd7e
SC
3133 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3134echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3135 no_cache=0
3136
3137# Check whether --with-opengl or --without-opengl was given.
3138if test "${with_opengl+set}" = set; then
3139 withval="$with_opengl"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3143 else
3144 ac_cv_use_opengl='wxUSE_OPENGL=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3157
3158fi;
3159
3160 eval "$ac_cv_use_opengl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_OPENGL" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
3174fi
3175
3176
3177 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3178echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3179 no_cache=0
3180
3181# Check whether --with-dmalloc or --without-dmalloc was given.
3182if test "${with_dmalloc+set}" = set; then
3183 withval="$with_dmalloc"
3184
3185 if test "$withval" = yes; then
3186 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3187 else
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3189 fi
3190
3191else
3192
3193 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3194 if test "x$LINE" != x ; then
3195 eval "DEFAULT_$LINE"
3196 else
3197 no_cache=1
3198 fi
3199
3200 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3201
3202fi;
3203
3204 eval "$ac_cv_use_dmalloc"
3205 if test "$no_cache" != 1; then
3206 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3207 fi
3208
3209 if test "$wxUSE_DMALLOC" = yes; then
3210 echo "$as_me:$LINENO: result: yes" >&5
3211echo "${ECHO_T}yes" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215 fi
3216
3217
3218 echo "$as_me:$LINENO: checking for --with-regex" >&5
3219echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3220 no_cache=0
3221
3222# Check whether --with-regex or --without-regex was given.
3223if test "${with_regex+set}" = set; then
3224 withval="$with_regex"
3225
3226 if test "$withval" = yes; then
3227 ac_cv_use_regex='wxUSE_REGEX=yes'
3228 elif test "$withval" = no; then
3229 ac_cv_use_regex='wxUSE_REGEX=no'
3230 elif test "$withval" = sys; then
3231 ac_cv_use_regex='wxUSE_REGEX=sys'
3232 elif test "$withval" = builtin; then
3233 ac_cv_use_regex='wxUSE_REGEX=builtin'
3234 else
3235 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3236echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3237 { (exit 1); exit 1; }; }
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3250
3251fi;
3252
3253 eval "$ac_cv_use_regex"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_REGEX" = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
3261 elif test "$wxUSE_REGEX" = no; then
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264 elif test "$wxUSE_REGEX" = sys; then
3265 echo "$as_me:$LINENO: result: system version" >&5
3266echo "${ECHO_T}system version" >&6
3267 elif test "$wxUSE_REGEX" = builtin; then
3268 echo "$as_me:$LINENO: result: builtin version" >&5
3269echo "${ECHO_T}builtin version" >&6
3270 else
3271 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3272echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3273 { (exit 1); exit 1; }; }
3274 fi
3275
3276
3277 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3278echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3279 no_cache=0
3280
3281# Check whether --with-zlib or --without-zlib was given.
3282if test "${with_zlib+set}" = set; then
3283 withval="$with_zlib"
3284
3285 if test "$withval" = yes; then
3286 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3287 elif test "$withval" = no; then
3288 ac_cv_use_zlib='wxUSE_ZLIB=no'
3289 elif test "$withval" = sys; then
3290 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3291 elif test "$withval" = builtin; then
3292 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3293 else
3294 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3295echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3296 { (exit 1); exit 1; }; }
3297 fi
3298
3299else
3300
3301 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3302 if test "x$LINE" != x ; then
3303 eval "DEFAULT_$LINE"
3304 else
3305 no_cache=1
3306 fi
3307
3308 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3309
3310fi;
3311
3312 eval "$ac_cv_use_zlib"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_ZLIB" = yes; then
3318 echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320 elif test "$wxUSE_ZLIB" = no; then
3321 echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323 elif test "$wxUSE_ZLIB" = sys; then
3324 echo "$as_me:$LINENO: result: system version" >&5
3325echo "${ECHO_T}system version" >&6
3326 elif test "$wxUSE_ZLIB" = builtin; then
3327 echo "$as_me:$LINENO: result: builtin version" >&5
3328echo "${ECHO_T}builtin version" >&6
3329 else
3330 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3331echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3332 { (exit 1); exit 1; }; }
3333 fi
3334
3335
3336 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3337echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3338 no_cache=0
3339
3340# Check whether --with-odbc or --without-odbc was given.
3341if test "${with_odbc+set}" = set; then
3342 withval="$with_odbc"
3343
3344 if test "$withval" = yes; then
3345 ac_cv_use_odbc='wxUSE_ODBC=yes'
3346 elif test "$withval" = no; then
3347 ac_cv_use_odbc='wxUSE_ODBC=no'
3348 elif test "$withval" = sys; then
3349 ac_cv_use_odbc='wxUSE_ODBC=sys'
3350 elif test "$withval" = builtin; then
3351 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3352 else
3353 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3354echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3355 { (exit 1); exit 1; }; }
3356 fi
3357
3358else
3359
3360 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3361 if test "x$LINE" != x ; then
3362 eval "DEFAULT_$LINE"
3363 else
3364 no_cache=1
3365 fi
3366
3367 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3368
3369fi;
3370
3371 eval "$ac_cv_use_odbc"
3372 if test "$no_cache" != 1; then
3373 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3374 fi
3375
3376 if test "$wxUSE_ODBC" = yes; then
3377 echo "$as_me:$LINENO: result: yes" >&5
3378echo "${ECHO_T}yes" >&6
3379 elif test "$wxUSE_ODBC" = no; then
3380 echo "$as_me:$LINENO: result: no" >&5
3381echo "${ECHO_T}no" >&6
3382 elif test "$wxUSE_ODBC" = sys; then
3383 echo "$as_me:$LINENO: result: system version" >&5
3384echo "${ECHO_T}system version" >&6
3385 elif test "$wxUSE_ODBC" = builtin; then
3386 echo "$as_me:$LINENO: result: builtin version" >&5
3387echo "${ECHO_T}builtin version" >&6
3388 else
3389 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3390echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3391 { (exit 1); exit 1; }; }
3392 fi
3393
3394
3395 echo "$as_me:$LINENO: checking for --with-expat" >&5
3396echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3397 no_cache=0
3398
3399# Check whether --with-expat or --without-expat was given.
3400if test "${with_expat+set}" = set; then
3401 withval="$with_expat"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_expat='wxUSE_EXPAT=yes'
3405 elif test "$withval" = no; then
3406 ac_cv_use_expat='wxUSE_EXPAT=no'
3407 elif test "$withval" = sys; then
3408 ac_cv_use_expat='wxUSE_EXPAT=sys'
3409 elif test "$withval" = builtin; then
3410 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3411 else
3412 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3413echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3414 { (exit 1); exit 1; }; }
3415 fi
3416
3417else
3418
3419 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3420 if test "x$LINE" != x ; then
3421 eval "DEFAULT_$LINE"
3422 else
3423 no_cache=1
3424 fi
3425
3426 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3427
3428fi;
3429
3430 eval "$ac_cv_use_expat"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_EXPAT" = yes; then
3436 echo "$as_me:$LINENO: result: yes" >&5
3437echo "${ECHO_T}yes" >&6
3438 elif test "$wxUSE_EXPAT" = no; then
3439 echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441 elif test "$wxUSE_EXPAT" = sys; then
3442 echo "$as_me:$LINENO: result: system version" >&5
3443echo "${ECHO_T}system version" >&6
3444 elif test "$wxUSE_EXPAT" = builtin; then
3445 echo "$as_me:$LINENO: result: builtin version" >&5
3446echo "${ECHO_T}builtin version" >&6
3447 else
3448 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3449echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3450 { (exit 1); exit 1; }; }
3451 fi
3452
3453
3454
3455
3456 enablestring=
3457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3458echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3459 no_cache=0
3460 # Check whether --enable-shared or --disable-shared was given.
3461if test "${enable_shared+set}" = set; then
3462 enableval="$enable_shared"
3463
3464 if test "$enableval" = yes; then
3465 ac_cv_use_shared='wxUSE_SHARED=yes'
3466 else
3467 ac_cv_use_shared='wxUSE_SHARED=no'
3468 fi
3469
3470else
3471
3472 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3473 if test "x$LINE" != x ; then
3474 eval "DEFAULT_$LINE"
3475 else
3476 no_cache=1
3477 fi
3478
3479 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3480
3481fi;
3482
3483 eval "$ac_cv_use_shared"
3484 if test "$no_cache" != 1; then
3485 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3486 fi
3487
3488 if test "$wxUSE_SHARED" = yes; then
3489 echo "$as_me:$LINENO: result: yes" >&5
3490echo "${ECHO_T}yes" >&6
3491 else
3492 echo "$as_me:$LINENO: result: no" >&5
3493echo "${ECHO_T}no" >&6
3494 fi
3495
3496
3497 enablestring=
3498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3499echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3500 no_cache=0
3501 # Check whether --enable-optimise or --disable-optimise was given.
3502if test "${enable_optimise+set}" = set; then
3503 enableval="$enable_optimise"
3504
3505 if test "$enableval" = yes; then
3506 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3507 else
3508 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3509 fi
3510
3511else
3512
3513 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3514 if test "x$LINE" != x ; then
3515 eval "DEFAULT_$LINE"
3516 else
3517 no_cache=1
3518 fi
3519
3520 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3521
3522fi;
3523
3524 eval "$ac_cv_use_optimise"
3525 if test "$no_cache" != 1; then
3526 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3527 fi
3528
3529 if test "$wxUSE_OPTIMISE" = yes; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
3535 fi
3536
3537
3538 enablestring=
3539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3540echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3541 no_cache=0
3542 # Check whether --enable-debug or --disable-debug was given.
3543if test "${enable_debug+set}" = set; then
3544 enableval="$enable_debug"
3545
3546 if test "$enableval" = yes; then
3547 ac_cv_use_debug='wxUSE_DEBUG=yes'
3548 else
3549 ac_cv_use_debug='wxUSE_DEBUG=no'
3550 fi
3551
3552else
3553
3554 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3555 if test "x$LINE" != x ; then
3556 eval "DEFAULT_$LINE"
3557 else
3558 no_cache=1
3559 fi
3560
3561 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3562
3563fi;
3564
3565 eval "$ac_cv_use_debug"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_DEBUG" = yes; then
3571 echo "$as_me:$LINENO: result: yes" >&5
3572echo "${ECHO_T}yes" >&6
3573 else
3574 echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576 fi
3577
3578
3579 enablestring=
3580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3581echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3582 no_cache=0
3583 # Check whether --enable-stl or --disable-stl was given.
3584if test "${enable_stl+set}" = set; then
3585 enableval="$enable_stl"
3586
3587 if test "$enableval" = yes; then
3588 ac_cv_use_stl='wxUSE_STL=yes'
3589 else
3590 ac_cv_use_stl='wxUSE_STL=no'
3591 fi
3592
3593else
3594
3595 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3596 if test "x$LINE" != x ; then
3597 eval "DEFAULT_$LINE"
3598 else
3599 no_cache=1
3600 fi
3601
3602 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3603
3604fi;
3605
3606 eval "$ac_cv_use_stl"
3607 if test "$no_cache" != 1; then
3608 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3609 fi
3610
3611 if test "$wxUSE_STL" = yes; then
3612 echo "$as_me:$LINENO: result: yes" >&5
3613echo "${ECHO_T}yes" >&6
3614 else
3615 echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
3617 fi
3618
3619if test "$USE_OS2" = "1"; then
3620
3621 enablestring=
3622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3623echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3624 no_cache=0
3625 # Check whether --enable-omf or --disable-omf was given.
3626if test "${enable_omf+set}" = set; then
3627 enableval="$enable_omf"
3628
3629 if test "$enableval" = yes; then
3630 ac_cv_use_omf='wxUSE_OMF=yes'
3631 else
3632 ac_cv_use_omf='wxUSE_OMF=no'
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3645
3646fi;
3647
3648 eval "$ac_cv_use_omf"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_OMF" = yes; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659 fi
3660
3661fi
3662
3663if test "$wxUSE_DEBUG" = "yes"; then
3664 DEFAULT_wxUSE_DEBUG_FLAG=yes
3665 DEFAULT_wxUSE_DEBUG_INFO=yes
3666 BUILD=debug
3667elif test "$wxUSE_DEBUG" = "no"; then
3668 DEFAULT_wxUSE_DEBUG_FLAG=no
3669 DEFAULT_wxUSE_DEBUG_INFO=no
3670 BUILD=release
3671fi
3672
3673
3674 enablestring=
3675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3676echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3677 no_cache=0
3678 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3679if test "${enable_debug_flag+set}" = set; then
3680 enableval="$enable_debug_flag"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3684 else
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3686 fi
3687
3688else
3689
3690 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3698
3699fi;
3700
3701 eval "$ac_cv_use_debug_flag"
3702 if test "$no_cache" != 1; then
3703 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3704 fi
3705
3706 if test "$wxUSE_DEBUG_FLAG" = yes; then
3707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
3709 else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712 fi
3713
3714
3715 enablestring=
3716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3717echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3718 no_cache=0
3719 # Check whether --enable-debug_info or --disable-debug_info was given.
3720if test "${enable_debug_info+set}" = set; then
3721 enableval="$enable_debug_info"
3722
3723 if test "$enableval" = yes; then
3724 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3725 else
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3727 fi
3728
3729else
3730
3731 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3732 if test "x$LINE" != x ; then
3733 eval "DEFAULT_$LINE"
3734 else
3735 no_cache=1
3736 fi
3737
3738 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3739
3740fi;
3741
3742 eval "$ac_cv_use_debug_info"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DEBUG_INFO" = yes; then
3748 echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752echo "${ECHO_T}no" >&6
3753 fi
3754
3755
3756 enablestring=
3757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3758echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3759 no_cache=0
3760 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3761if test "${enable_debug_gdb+set}" = set; then
3762 enableval="$enable_debug_gdb"
3763
3764 if test "$enableval" = yes; then
3765 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3766 else
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3768 fi
3769
3770else
3771
3772 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
3779 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3780
3781fi;
3782
3783 eval "$ac_cv_use_debug_gdb"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_DEBUG_GDB" = yes; then
3789 echo "$as_me:$LINENO: result: yes" >&5
3790echo "${ECHO_T}yes" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794 fi
3795
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3802if test "${enable_debug_cntxt+set}" = set; then
3803 enableval="$enable_debug_cntxt"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3807 else
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3821
3822fi;
3823
3824 eval "$ac_cv_use_debug_cntxt"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837
3838 enablestring=
3839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3840echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3841 no_cache=0
3842 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3843if test "${enable_mem_tracing+set}" = set; then
3844 enableval="$enable_mem_tracing"
3845
3846 if test "$enableval" = yes; then
3847 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3848 else
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3850 fi
3851
3852else
3853
3854 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3855 if test "x$LINE" != x ; then
3856 eval "DEFAULT_$LINE"
3857 else
3858 no_cache=1
3859 fi
3860
3861 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3862
3863fi;
3864
3865 eval "$ac_cv_use_mem_tracing"
3866 if test "$no_cache" != 1; then
3867 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3868 fi
3869
3870 if test "$wxUSE_MEM_TRACING" = yes; then
3871 echo "$as_me:$LINENO: result: yes" >&5
3872echo "${ECHO_T}yes" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876 fi
3877
3878
3879 enablestring=
3880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3881echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3882 no_cache=0
3883 # Check whether --enable-profile or --disable-profile was given.
3884if test "${enable_profile+set}" = set; then
3885 enableval="$enable_profile"
3886
3887 if test "$enableval" = yes; then
3888 ac_cv_use_profile='wxUSE_PROFILE=yes'
3889 else
3890 ac_cv_use_profile='wxUSE_PROFILE=no'
3891 fi
3892
3893else
3894
3895 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3896 if test "x$LINE" != x ; then
3897 eval "DEFAULT_$LINE"
3898 else
3899 no_cache=1
3900 fi
3901
3902 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3903
3904fi;
3905
3906 eval "$ac_cv_use_profile"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_PROFILE" = yes; then
3912 echo "$as_me:$LINENO: result: yes" >&5
3913echo "${ECHO_T}yes" >&6
3914 else
3915 echo "$as_me:$LINENO: result: no" >&5
3916echo "${ECHO_T}no" >&6
3917 fi
3918
3919
3920 enablestring=
3921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3922echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3923 no_cache=0
3924 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3925if test "${enable_no_rtti+set}" = set; then
3926 enableval="$enable_no_rtti"
3927
3928 if test "$enableval" = yes; then
3929 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3930 else
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3932 fi
3933
3934else
3935
3936 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3937 if test "x$LINE" != x ; then
3938 eval "DEFAULT_$LINE"
3939 else
3940 no_cache=1
3941 fi
3942
3943 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3944
3945fi;
3946
3947 eval "$ac_cv_use_no_rtti"
3948 if test "$no_cache" != 1; then
3949 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3950 fi
3951
3952 if test "$wxUSE_NO_RTTI" = yes; then
3953 echo "$as_me:$LINENO: result: yes" >&5
3954echo "${ECHO_T}yes" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958 fi
3959
3960
3961 enablestring=
3962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3963echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3964 no_cache=0
3965 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3966if test "${enable_no_exceptions+set}" = set; then
3967 enableval="$enable_no_exceptions"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3971 else
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3985
3986fi;
3987
3988 eval "$ac_cv_use_no_exceptions"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3994 echo "$as_me:$LINENO: result: yes" >&5
3995echo "${ECHO_T}yes" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998echo "${ECHO_T}no" >&6
3999 fi
4000
4001
4002 enablestring=
4003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4004echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4005 no_cache=0
4006 # Check whether --enable-permissive or --disable-permissive was given.
4007if test "${enable_permissive+set}" = set; then
4008 enableval="$enable_permissive"
4009
4010 if test "$enableval" = yes; then
4011 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4012 else
4013 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4014 fi
4015
4016else
4017
4018 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4019 if test "x$LINE" != x ; then
4020 eval "DEFAULT_$LINE"
4021 else
4022 no_cache=1
4023 fi
4024
4025 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4026
4027fi;
4028
4029 eval "$ac_cv_use_permissive"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_PERMISSIVE" = yes; then
4035 echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
4040 fi
4041
4042
4043 enablestring=
4044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4045echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4046 no_cache=0
4047 # Check whether --enable-no_deps or --disable-no_deps was given.
4048if test "${enable_no_deps+set}" = set; then
4049 enableval="$enable_no_deps"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4053 else
4054 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4055 fi
4056
4057else
4058
4059 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4067
4068fi;
4069
4070 eval "$ac_cv_use_no_deps"
4071 if test "$no_cache" != 1; then
4072 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4073 fi
4074
4075 if test "$wxUSE_NO_DEPS" = yes; then
4076 echo "$as_me:$LINENO: result: yes" >&5
4077echo "${ECHO_T}yes" >&6
4078 else
4079 echo "$as_me:$LINENO: result: no" >&5
4080echo "${ECHO_T}no" >&6
4081 fi
4082
4083
4084
4085 enablestring=
4086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4087echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4088 no_cache=0
4089 # Check whether --enable-compat22 or --disable-compat22 was given.
4090if test "${enable_compat22+set}" = set; then
4091 enableval="$enable_compat22"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4095 else
4096 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4109
4110fi;
4111
4112 eval "$ac_cv_use_compat22"
4113 if test "$no_cache" != 1; then
4114 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4115 fi
4116
4117 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4118 echo "$as_me:$LINENO: result: yes" >&5
4119echo "${ECHO_T}yes" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
4123 fi
4124
4125
4126 enablestring=disable
4127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4128echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4129 no_cache=0
4130 # Check whether --enable-compat24 or --disable-compat24 was given.
4131if test "${enable_compat24+set}" = set; then
4132 enableval="$enable_compat24"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4136 else
4137 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4138 fi
4139
4140else
4141
4142 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4150
4151fi;
4152
4153 eval "$ac_cv_use_compat24"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4159 echo "$as_me:$LINENO: result: yes" >&5
4160echo "${ECHO_T}yes" >&6
4161 else
4162 echo "$as_me:$LINENO: result: no" >&5
4163echo "${ECHO_T}no" >&6
4164 fi
4165
4166
ffa0583f
RL
4167
4168 enablestring=
4169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4170echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4171 no_cache=0
4172 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4173if test "${enable_rpath+set}" = set; then
4174 enableval="$enable_rpath"
ffa0583f
RL
4175
4176 if test "$enableval" = yes; then
4177 ac_cv_use_rpath='wxUSE_RPATH=yes'
4178 else
4179 ac_cv_use_rpath='wxUSE_RPATH=no'
4180 fi
4181
4182else
4183
4184 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4185 if test "x$LINE" != x ; then
4186 eval "DEFAULT_$LINE"
4187 else
4188 no_cache=1
4189 fi
4190
4191 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4192
a848cd7e
SC
4193fi;
4194
ffa0583f
RL
4195 eval "$ac_cv_use_rpath"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_RPATH" = yes; then
4201 echo "$as_me:$LINENO: result: yes" >&5
4202echo "${ECHO_T}yes" >&6
4203 else
4204 echo "$as_me:$LINENO: result: no" >&5
4205echo "${ECHO_T}no" >&6
4206 fi
4207
a848cd7e
SC
4208
4209
4210
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-intl or --disable-intl was given.
4217if test "${enable_intl+set}" = set; then
4218 enableval="$enable_intl"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_intl='wxUSE_INTL=yes'
4222 else
4223 ac_cv_use_intl='wxUSE_INTL=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4236
4237fi;
4238
4239 eval "$ac_cv_use_intl"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_INTL" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
4252
4253 enablestring=
4254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4255echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4256 no_cache=0
4257 # Check whether --enable-config or --disable-config was given.
4258if test "${enable_config+set}" = set; then
4259 enableval="$enable_config"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_config='wxUSE_CONFIG=yes'
4263 else
4264 ac_cv_use_config='wxUSE_CONFIG=no'
4265 fi
4266
4267else
4268
4269 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4277
4278fi;
4279
4280 eval "$ac_cv_use_config"
4281 if test "$no_cache" != 1; then
4282 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4283 fi
4284
4285 if test "$wxUSE_CONFIG" = yes; then
4286 echo "$as_me:$LINENO: result: yes" >&5
4287echo "${ECHO_T}yes" >&6
4288 else
4289 echo "$as_me:$LINENO: result: no" >&5
4290echo "${ECHO_T}no" >&6
4291 fi
4292
4293
4294
4295 enablestring=
4296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4297echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4298 no_cache=0
4299 # Check whether --enable-protocols or --disable-protocols was given.
4300if test "${enable_protocols+set}" = set; then
4301 enableval="$enable_protocols"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4305 else
4306 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4319
4320fi;
4321
4322 eval "$ac_cv_use_protocols"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_PROTOCOL" = yes; then
4328 echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330 else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333 fi
4334
4335
4336 enablestring=
4337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4338echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4339 no_cache=0
4340 # Check whether --enable-ftp or --disable-ftp was given.
4341if test "${enable_ftp+set}" = set; then
4342 enableval="$enable_ftp"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4346 else
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4360
4361fi;
4362
4363 eval "$ac_cv_use_ftp"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4369 echo "$as_me:$LINENO: result: yes" >&5
4370echo "${ECHO_T}yes" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374 fi
4375
4376
4377 enablestring=
4378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4379echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4380 no_cache=0
4381 # Check whether --enable-http or --disable-http was given.
4382if test "${enable_http+set}" = set; then
4383 enableval="$enable_http"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4387 else
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4401
4402fi;
4403
4404 eval "$ac_cv_use_http"
4405 if test "$no_cache" != 1; then
4406 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4407 fi
4408
4409 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4410 echo "$as_me:$LINENO: result: yes" >&5
4411echo "${ECHO_T}yes" >&6
4412 else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 fi
4416
4417
4418 enablestring=
4419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4420echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4421 no_cache=0
4422 # Check whether --enable-fileproto or --disable-fileproto was given.
4423if test "${enable_fileproto+set}" = set; then
4424 enableval="$enable_fileproto"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4428 else
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4430 fi
4431
4432else
4433
4434 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4442
4443fi;
4444
4445 eval "$ac_cv_use_fileproto"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452echo "${ECHO_T}yes" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456 fi
4457
4458
4459 enablestring=
4460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4461echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4462 no_cache=0
4463 # Check whether --enable-sockets or --disable-sockets was given.
4464if test "${enable_sockets+set}" = set; then
4465 enableval="$enable_sockets"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4469 else
4470 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4483
4484fi;
4485
4486 eval "$ac_cv_use_sockets"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SOCKETS" = yes; then
4492 echo "$as_me:$LINENO: result: yes" >&5
4493echo "${ECHO_T}yes" >&6
4494 else
4495 echo "$as_me:$LINENO: result: no" >&5
4496echo "${ECHO_T}no" >&6
4497 fi
4498
4499
4500 enablestring=
4501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4502echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4503 no_cache=0
4504 # Check whether --enable-ole or --disable-ole was given.
4505if test "${enable_ole+set}" = set; then
4506 enableval="$enable_ole"
4507
4508 if test "$enableval" = yes; then
4509 ac_cv_use_ole='wxUSE_OLE=yes'
4510 else
4511 ac_cv_use_ole='wxUSE_OLE=no'
4512 fi
4513
4514else
4515
4516 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4517 if test "x$LINE" != x ; then
4518 eval "DEFAULT_$LINE"
4519 else
4520 no_cache=1
4521 fi
4522
4523 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4524
4525fi;
4526
4527 eval "$ac_cv_use_ole"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_OLE" = yes; then
4533 echo "$as_me:$LINENO: result: yes" >&5
4534echo "${ECHO_T}yes" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6
4538 fi
4539
4540
4541 enablestring=
4542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4543echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4544 no_cache=0
4545 # Check whether --enable-dataobj or --disable-dataobj was given.
4546if test "${enable_dataobj+set}" = set; then
4547 enableval="$enable_dataobj"
4548
4549 if test "$enableval" = yes; then
4550 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4551 else
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4553 fi
4554
4555else
4556
4557 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4558 if test "x$LINE" != x ; then
4559 eval "DEFAULT_$LINE"
4560 else
4561 no_cache=1
4562 fi
4563
4564 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4565
4566fi;
4567
4568 eval "$ac_cv_use_dataobj"
4569 if test "$no_cache" != 1; then
4570 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4571 fi
4572
4573 if test "$wxUSE_DATAOBJ" = yes; then
4574 echo "$as_me:$LINENO: result: yes" >&5
4575echo "${ECHO_T}yes" >&6
4576 else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579 fi
4580
4581
4582
4583 enablestring=
4584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4585echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4586 no_cache=0
4587 # Check whether --enable-ipc or --disable-ipc was given.
4588if test "${enable_ipc+set}" = set; then
4589 enableval="$enable_ipc"
4590
4591 if test "$enableval" = yes; then
4592 ac_cv_use_ipc='wxUSE_IPC=yes'
4593 else
4594 ac_cv_use_ipc='wxUSE_IPC=no'
4595 fi
4596
4597else
4598
4599 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4607
4608fi;
4609
4610 eval "$ac_cv_use_ipc"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_IPC" = yes; then
4616 echo "$as_me:$LINENO: result: yes" >&5
4617echo "${ECHO_T}yes" >&6
4618 else
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621 fi
4622
4623
4624
4625 enablestring=
4626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4627echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4628 no_cache=0
4629 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4630if test "${enable_apple_ieee+set}" = set; then
4631 enableval="$enable_apple_ieee"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4635 else
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4649
4650fi;
4651
4652 eval "$ac_cv_use_apple_ieee"
4653 if test "$no_cache" != 1; then
4654 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4655 fi
4656
4657 if test "$wxUSE_APPLE_IEEE" = yes; then
4658 echo "$as_me:$LINENO: result: yes" >&5
4659echo "${ECHO_T}yes" >&6
4660 else
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
4663 fi
4664
4665
4666 enablestring=
4667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4668echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4669 no_cache=0
4670 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4671if test "${enable_catch_segvs+set}" = set; then
4672 enableval="$enable_catch_segvs"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4676 else
4677 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4690
4691fi;
4692
4693 eval "$ac_cv_use_catch_segvs"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4699 echo "$as_me:$LINENO: result: yes" >&5
4700echo "${ECHO_T}yes" >&6
4701 else
4702 echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704 fi
4705
4706
4707 enablestring=
4708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4709echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4710 no_cache=0
4711 # Check whether --enable-cmdline or --disable-cmdline was given.
4712if test "${enable_cmdline+set}" = set; then
4713 enableval="$enable_cmdline"
4714
4715 if test "$enableval" = yes; then
4716 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4717 else
4718 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4719 fi
4720
4721else
4722
4723 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4724 if test "x$LINE" != x ; then
4725 eval "DEFAULT_$LINE"
4726 else
4727 no_cache=1
4728 fi
4729
4730 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4731
4732fi;
4733
4734 eval "$ac_cv_use_cmdline"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4740 echo "$as_me:$LINENO: result: yes" >&5
4741echo "${ECHO_T}yes" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745 fi
4746
4747
4748 enablestring=
4749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4750echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4751 no_cache=0
4752 # Check whether --enable-datetime or --disable-datetime was given.
4753if test "${enable_datetime+set}" = set; then
4754 enableval="$enable_datetime"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4758 else
4759 ac_cv_use_datetime='wxUSE_DATETIME=no'
4760 fi
4761
4762else
4763
4764 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4772
4773fi;
4774
4775 eval "$ac_cv_use_datetime"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_DATETIME" = yes; then
4781 echo "$as_me:$LINENO: result: yes" >&5
4782echo "${ECHO_T}yes" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786 fi
4787
4788
4789 enablestring=
4790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4791echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4792 no_cache=0
4793 # Check whether --enable-dialupman or --disable-dialupman was given.
4794if test "${enable_dialupman+set}" = set; then
4795 enableval="$enable_dialupman"
4796
4797 if test "$enableval" = yes; then
4798 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4799 else
4800 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4801 fi
4802
4803else
4804
4805 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4813
4814fi;
4815
4816 eval "$ac_cv_use_dialupman"
4817 if test "$no_cache" != 1; then
4818 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4819 fi
4820
4821 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4822 echo "$as_me:$LINENO: result: yes" >&5
4823echo "${ECHO_T}yes" >&6
4824 else
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
4827 fi
4828
4829
4830 enablestring=
4831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4832echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4833 no_cache=0
4834 # Check whether --enable-dynlib or --disable-dynlib was given.
4835if test "${enable_dynlib+set}" = set; then
4836 enableval="$enable_dynlib"
4837
4838 if test "$enableval" = yes; then
4839 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4840 else
4841 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4842 fi
4843
4844else
4845
4846 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4847 if test "x$LINE" != x ; then
4848 eval "DEFAULT_$LINE"
4849 else
4850 no_cache=1
4851 fi
4852
4853 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4854
4855fi;
4856
4857 eval "$ac_cv_use_dynlib"
4858 if test "$no_cache" != 1; then
4859 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4860 fi
4861
4862 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4863 echo "$as_me:$LINENO: result: yes" >&5
4864echo "${ECHO_T}yes" >&6
4865 else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868 fi
4869
4870
4871 enablestring=
4872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4873echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4874 no_cache=0
4875 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4876if test "${enable_dynamicloader+set}" = set; then
4877 enableval="$enable_dynamicloader"
4878
4879 if test "$enableval" = yes; then
4880 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4881 else
4882 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4883 fi
4884
4885else
4886
4887 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4888 if test "x$LINE" != x ; then
4889 eval "DEFAULT_$LINE"
4890 else
4891 no_cache=1
4892 fi
4893
4894 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4895
4896fi;
4897
4898 eval "$ac_cv_use_dynamicloader"
4899 if test "$no_cache" != 1; then
4900 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4901 fi
4902
4903 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908echo "${ECHO_T}no" >&6
4909 fi
4910
4911
4912 enablestring=
4913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4914echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4915 no_cache=0
4916 # Check whether --enable-exceptions or --disable-exceptions was given.
4917if test "${enable_exceptions+set}" = set; then
4918 enableval="$enable_exceptions"
4919
4920 if test "$enableval" = yes; then
4921 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4922 else
4923 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4924 fi
4925
4926else
4927
4928 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4929 if test "x$LINE" != x ; then
4930 eval "DEFAULT_$LINE"
4931 else
4932 no_cache=1
4933 fi
4934
4935 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4936
4937fi;
4938
4939 eval "$ac_cv_use_exceptions"
4940 if test "$no_cache" != 1; then
4941 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4942 fi
4943
4944 if test "$wxUSE_EXCEPTIONS" = yes; then
4945 echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947 else
4948 echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6
4950 fi
4951
4952
4953 enablestring=
4954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4955echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4956 no_cache=0
4957 # Check whether --enable-ffile or --disable-ffile was given.
4958if test "${enable_ffile+set}" = set; then
4959 enableval="$enable_ffile"
4960
4961 if test "$enableval" = yes; then
4962 ac_cv_use_ffile='wxUSE_FFILE=yes'
4963 else
4964 ac_cv_use_ffile='wxUSE_FFILE=no'
4965 fi
4966
4967else
4968
4969 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4970 if test "x$LINE" != x ; then
4971 eval "DEFAULT_$LINE"
4972 else
4973 no_cache=1
4974 fi
4975
4976 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4977
4978fi;
4979
4980 eval "$ac_cv_use_ffile"
4981 if test "$no_cache" != 1; then
4982 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4983 fi
4984
4985 if test "$wxUSE_FFILE" = yes; then
4986 echo "$as_me:$LINENO: result: yes" >&5
4987echo "${ECHO_T}yes" >&6
4988 else
4989 echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991 fi
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-file or --disable-file was given.
4999if test "${enable_file+set}" = set; then
5000 enableval="$enable_file"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_file='wxUSE_FILE=yes'
5004 else
5005 ac_cv_use_file='wxUSE_FILE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5018
5019fi;
5020
5021 eval "$ac_cv_use_file"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_FILE" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-filesystem or --disable-filesystem was given.
5040if test "${enable_filesystem+set}" = set; then
5041 enableval="$enable_filesystem"
5042
5043 if test "$enableval" = yes; then
5044 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5045 else
5046 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5047 fi
5048
5049else
5050
5051 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
5058 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5059
5060fi;
5061
5062 eval "$ac_cv_use_filesystem"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_FILESYSTEM" = yes; then
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
5076 enablestring=
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5079 no_cache=0
5080 # Check whether --enable-fontmap or --disable-fontmap was given.
5081if test "${enable_fontmap+set}" = set; then
5082 enableval="$enable_fontmap"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5086 else
5087 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5100
5101fi;
5102
5103 eval "$ac_cv_use_fontmap"
5104 if test "$no_cache" != 1; then
5105 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5106 fi
5107
5108 if test "$wxUSE_FONTMAP" = yes; then
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117 enablestring=
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5120 no_cache=0
5121 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5122if test "${enable_fs_inet+set}" = set; then
5123 enableval="$enable_fs_inet"
5124
5125 if test "$enableval" = yes; then
5126 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5127 else
5128 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5129 fi
5130
5131else
5132
5133 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
5140 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5141
5142fi;
5143
5144 eval "$ac_cv_use_fs_inet"
5145 if test "$no_cache" != 1; then
5146 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5147 fi
5148
5149 if test "$wxUSE_FS_INET" = yes; then
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5163if test "${enable_fs_zip+set}" = set; then
5164 enableval="$enable_fs_zip"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5168 else
5169 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5182
5183fi;
5184
5185 eval "$ac_cv_use_fs_zip"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_FS_ZIP" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-geometry or --disable-geometry was given.
5204if test "${enable_geometry+set}" = set; then
5205 enableval="$enable_geometry"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5209 else
5210 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5223
5224fi;
5225
5226 eval "$ac_cv_use_geometry"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_GEOMETRY" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-log or --disable-log was given.
5245if test "${enable_log+set}" = set; then
5246 enableval="$enable_log"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_log='wxUSE_LOG=yes'
5250 else
5251 ac_cv_use_log='wxUSE_LOG=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5264
5265fi;
5266
5267 eval "$ac_cv_use_log"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_LOG" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-longlong or --disable-longlong was given.
5286if test "${enable_longlong+set}" = set; then
5287 enableval="$enable_longlong"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5291 else
5292 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5305
5306fi;
5307
5308 eval "$ac_cv_use_longlong"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_LONGLONG" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-mimetype or --disable-mimetype was given.
5327if test "${enable_mimetype+set}" = set; then
5328 enableval="$enable_mimetype"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5332 else
5333 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5346
5347fi;
5348
5349 eval "$ac_cv_use_mimetype"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_MIMETYPE" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-mslu or --disable-mslu was given.
5368if test "${enable_mslu+set}" = set; then
5369 enableval="$enable_mslu"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5373 else
5374 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5387
5388fi;
5389
5390 eval "$ac_cv_use_mslu"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_UNICODE_MSLU" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-snglinst or --disable-snglinst was given.
5409if test "${enable_snglinst+set}" = set; then
5410 enableval="$enable_snglinst"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5414 else
5415 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5428
5429fi;
5430
5431 eval "$ac_cv_use_snglinst"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-streams or --disable-streams was given.
5450if test "${enable_streams+set}" = set; then
5451 enableval="$enable_streams"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_streams='wxUSE_STREAMS=yes'
5455 else
5456 ac_cv_use_streams='wxUSE_STREAMS=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5469
5470fi;
5471
5472 eval "$ac_cv_use_streams"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_STREAMS" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5491if test "${enable_std_iostreams+set}" = set; then
5492 enableval="$enable_std_iostreams"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5496 else
5497 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5510
5511fi;
5512
5513 eval "$ac_cv_use_std_iostreams"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_STD_IOSTREAM" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5532if test "${enable_stopwatch+set}" = set; then
5533 enableval="$enable_stopwatch"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5537 else
5538 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5551
5552fi;
5553
5554 eval "$ac_cv_use_stopwatch"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_STOPWATCH" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-system_options or --disable-system_options was given.
5573if test "${enable_system_options+set}" = set; then
5574 enableval="$enable_system_options"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5578 else
5579 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5592
5593fi;
5594
5595 eval "$ac_cv_use_system_options"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
5609 enablestring=
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-textbuf or --disable-textbuf was given.
5614if test "${enable_textbuf+set}" = set; then
5615 enableval="$enable_textbuf"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5619 else
5620 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5633
5634fi;
5635
5636 eval "$ac_cv_use_textbuf"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_TEXTBUFFER" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-textfile or --disable-textfile was given.
5655if test "${enable_textfile+set}" = set; then
5656 enableval="$enable_textfile"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5660 else
5661 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5674
5675fi;
5676
5677 eval "$ac_cv_use_textfile"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_TEXTFILE" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 enablestring=
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-timer or --disable-timer was given.
5696if test "${enable_timer+set}" = set; then
5697 enableval="$enable_timer"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_timer='wxUSE_TIMER=yes'
5701 else
5702 ac_cv_use_timer='wxUSE_TIMER=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5715
5716fi;
5717
5718 eval "$ac_cv_use_timer"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_TIMER" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-unicode or --disable-unicode was given.
5737if test "${enable_unicode+set}" = set; then
5738 enableval="$enable_unicode"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5742 else
5743 ac_cv_use_unicode='wxUSE_UNICODE=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5756
5757fi;
5758
5759 eval "$ac_cv_use_unicode"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_UNICODE" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-sound or --disable-sound was given.
5778if test "${enable_sound+set}" = set; then
5779 enableval="$enable_sound"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_sound='wxUSE_SOUND=yes'
5783 else
5784 ac_cv_use_sound='wxUSE_SOUND=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5797
5798fi;
5799
5800 eval "$ac_cv_use_sound"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_SOUND" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
3b57de8b
RL
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5819if test "${enable_mediactrl+set}" = set; then
5820 enableval="$enable_mediactrl"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5824 else
5825 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5838
5839fi;
5840
5841 eval "$ac_cv_use_mediactrl"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_MEDIACTRL" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
a848cd7e
SC
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5860if test "${enable_wxprintfv+set}" = set; then
5861 enableval="$enable_wxprintfv"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5865 else
5866 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5879
5880fi;
5881
5882 eval "$ac_cv_use_wxprintfv"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-zipstream or --disable-zipstream was given.
5901if test "${enable_zipstream+set}" = set; then
5902 enableval="$enable_zipstream"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5906 else
5907 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5920
5921fi;
5922
5923 eval "$ac_cv_use_zipstream"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_ZIPSTREAM" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
a848cd7e
SC
5937
5938 enablestring=
5939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5940echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5941 no_cache=0
5942 # Check whether --enable-url or --disable-url was given.
5943if test "${enable_url+set}" = set; then
5944 enableval="$enable_url"
5945
5946 if test "$enableval" = yes; then
5947 ac_cv_use_url='wxUSE_URL=yes'
5948 else
5949 ac_cv_use_url='wxUSE_URL=no'
5950 fi
5951
5952else
5953
5954 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5955 if test "x$LINE" != x ; then
5956 eval "DEFAULT_$LINE"
5957 else
5958 no_cache=1
5959 fi
5960
5961 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5962
5963fi;
5964
5965 eval "$ac_cv_use_url"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_URL" = yes; then
5971 echo "$as_me:$LINENO: result: yes" >&5
5972echo "${ECHO_T}yes" >&6
5973 else
5974 echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
5976 fi
5977
5978
5979 enablestring=
5980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5981echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5982 no_cache=0
5983 # Check whether --enable-protocol or --disable-protocol was given.
5984if test "${enable_protocol+set}" = set; then
5985 enableval="$enable_protocol"
5986
5987 if test "$enableval" = yes; then
5988 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5989 else
5990 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5991 fi
5992
5993else
5994
5995 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
6002 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6003
6004fi;
6005
6006 eval "$ac_cv_use_protocol"
6007 if test "$no_cache" != 1; then
6008 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6009 fi
6010
6011 if test "$wxUSE_PROTOCOL" = yes; then
6012 echo "$as_me:$LINENO: result: yes" >&5
6013echo "${ECHO_T}yes" >&6
6014 else
6015 echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6
6017 fi
6018
6019
6020 enablestring=
6021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6022echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6023 no_cache=0
6024 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6025if test "${enable_protocol_http+set}" = set; then
6026 enableval="$enable_protocol_http"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6030 else
6031 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6032 fi
6033
6034else
6035
6036 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6044
6045fi;
6046
6047 eval "$ac_cv_use_protocol_http"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6053 echo "$as_me:$LINENO: result: yes" >&5
6054echo "${ECHO_T}yes" >&6
6055 else
6056 echo "$as_me:$LINENO: result: no" >&5
6057echo "${ECHO_T}no" >&6
6058 fi
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6066if test "${enable_protocol_ftp+set}" = set; then
6067 enableval="$enable_protocol_ftp"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6071 else
6072 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6085
6086fi;
6087
6088 eval "$ac_cv_use_protocol_ftp"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6107if test "${enable_protocol_file+set}" = set; then
6108 enableval="$enable_protocol_file"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6112 else
6113 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6126
6127fi;
6128
6129 eval "$ac_cv_use_protocol_file"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-threads or --disable-threads was given.
6151if test "${enable_threads+set}" = set; then
6152 enableval="$enable_threads"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_threads='wxUSE_THREADS=yes'
6156 else
6157 ac_cv_use_threads='wxUSE_THREADS=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6170
6171fi;
6172
6173 eval "$ac_cv_use_threads"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_THREADS" = yes; then
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184 fi
6185
6186
6187if test "$wxUSE_GUI" = "yes"; then
6188
6189
6190
6191 enablestring=
6192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6193echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6194 no_cache=0
6195 # Check whether --enable-docview or --disable-docview was given.
6196if test "${enable_docview+set}" = set; then
6197 enableval="$enable_docview"
6198
6199 if test "$enableval" = yes; then
6200 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6201 else
6202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6203 fi
6204
6205else
6206
6207 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6208 if test "x$LINE" != x ; then
6209 eval "DEFAULT_$LINE"
6210 else
6211 no_cache=1
6212 fi
6213
6214 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6215
6216fi;
6217
6218 eval "$ac_cv_use_docview"
6219 if test "$no_cache" != 1; then
6220 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6221 fi
6222
6223 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6224 echo "$as_me:$LINENO: result: yes" >&5
6225echo "${ECHO_T}yes" >&6
6226 else
6227 echo "$as_me:$LINENO: result: no" >&5
6228echo "${ECHO_T}no" >&6
6229 fi
6230
6231
6232 enablestring=
6233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6234echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6235 no_cache=0
6236 # Check whether --enable-help or --disable-help was given.
6237if test "${enable_help+set}" = set; then
6238 enableval="$enable_help"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_help='wxUSE_HELP=yes'
6242 else
6243 ac_cv_use_help='wxUSE_HELP=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6256
6257fi;
6258
6259 eval "$ac_cv_use_help"
6260 if test "$no_cache" != 1; then
6261 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6262 fi
6263
6264 if test "$wxUSE_HELP" = yes; then
6265 echo "$as_me:$LINENO: result: yes" >&5
6266echo "${ECHO_T}yes" >&6
6267 else
6268 echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270 fi
6271
6272
6273 enablestring=
6274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6275echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6276 no_cache=0
6277 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6278if test "${enable_mshtmlhelp+set}" = set; then
6279 enableval="$enable_mshtmlhelp"
6280
6281 if test "$enableval" = yes; then
6282 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6283 else
6284 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6285 fi
6286
6287else
6288
6289 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6290 if test "x$LINE" != x ; then
6291 eval "DEFAULT_$LINE"
6292 else
6293 no_cache=1
6294 fi
6295
6296 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6297
6298fi;
6299
6300 eval "$ac_cv_use_mshtmlhelp"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_MS_HTML_HELP" = yes; then
6306 echo "$as_me:$LINENO: result: yes" >&5
6307echo "${ECHO_T}yes" >&6
6308 else
6309 echo "$as_me:$LINENO: result: no" >&5
6310echo "${ECHO_T}no" >&6
6311 fi
6312
6313
6314 enablestring=
6315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6316echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6317 no_cache=0
6318 # Check whether --enable-html or --disable-html was given.
6319if test "${enable_html+set}" = set; then
6320 enableval="$enable_html"
6321
6322 if test "$enableval" = yes; then
6323 ac_cv_use_html='wxUSE_HTML=yes'
6324 else
6325 ac_cv_use_html='wxUSE_HTML=no'
6326 fi
6327
6328else
6329
6330 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6331 if test "x$LINE" != x ; then
6332 eval "DEFAULT_$LINE"
6333 else
6334 no_cache=1
6335 fi
6336
6337 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6338
6339fi;
6340
6341 eval "$ac_cv_use_html"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_HTML" = yes; then
6347 echo "$as_me:$LINENO: result: yes" >&5
6348echo "${ECHO_T}yes" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352 fi
6353
6354
6355 enablestring=
6356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6357echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6358 no_cache=0
6359 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6360if test "${enable_htmlhelp+set}" = set; then
6361 enableval="$enable_htmlhelp"
6362
6363 if test "$enableval" = yes; then
6364 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6365 else
6366 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6367 fi
6368
6369else
6370
6371 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6372 if test "x$LINE" != x ; then
6373 eval "DEFAULT_$LINE"
6374 else
6375 no_cache=1
6376 fi
6377
6378 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6379
6380fi;
6381
6382 eval "$ac_cv_use_htmlhelp"
6383 if test "$no_cache" != 1; then
6384 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6385 fi
6386
6387 if test "$wxUSE_WXHTML_HELP" = yes; then
6388 echo "$as_me:$LINENO: result: yes" >&5
6389echo "${ECHO_T}yes" >&6
6390 else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393 fi
6394
6395
9a8f0513
VS
6396 enablestring=
6397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6398echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6399 no_cache=0
6400 # Check whether --enable-xrc or --disable-xrc was given.
6401if test "${enable_xrc+set}" = set; then
6402 enableval="$enable_xrc"
6403
6404 if test "$enableval" = yes; then
6405 ac_cv_use_xrc='wxUSE_XRC=yes'
6406 else
6407 ac_cv_use_xrc='wxUSE_XRC=no'
6408 fi
6409
6410else
6411
6412 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6413 if test "x$LINE" != x ; then
6414 eval "DEFAULT_$LINE"
6415 else
6416 no_cache=1
6417 fi
6418
6419 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6420
6421fi;
6422
6423 eval "$ac_cv_use_xrc"
6424 if test "$no_cache" != 1; then
6425 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6426 fi
6427
6428 if test "$wxUSE_XRC" = yes; then
6429 echo "$as_me:$LINENO: result: yes" >&5
6430echo "${ECHO_T}yes" >&6
6431 else
6432 echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6
6434 fi
6435
6436
a848cd7e
SC
6437 enablestring=
6438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6439echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6440 no_cache=0
6441 # Check whether --enable-constraints or --disable-constraints was given.
6442if test "${enable_constraints+set}" = set; then
6443 enableval="$enable_constraints"
6444
6445 if test "$enableval" = yes; then
6446 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6447 else
6448 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6449 fi
6450
6451else
6452
6453 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6454 if test "x$LINE" != x ; then
6455 eval "DEFAULT_$LINE"
6456 else
6457 no_cache=1
6458 fi
6459
6460 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6461
6462fi;
6463
6464 eval "$ac_cv_use_constraints"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_CONSTRAINTS" = yes; then
6470 echo "$as_me:$LINENO: result: yes" >&5
6471echo "${ECHO_T}yes" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
6475 fi
6476
6477
6478 enablestring=
6479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6480echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6481 no_cache=0
6482 # Check whether --enable-printarch or --disable-printarch was given.
6483if test "${enable_printarch+set}" = set; then
6484 enableval="$enable_printarch"
6485
6486 if test "$enableval" = yes; then
6487 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6488 else
6489 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6490 fi
6491
6492else
6493
6494 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6502
6503fi;
6504
6505 eval "$ac_cv_use_printarch"
6506 if test "$no_cache" != 1; then
6507 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6508 fi
6509
6510 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6511 echo "$as_me:$LINENO: result: yes" >&5
6512echo "${ECHO_T}yes" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516 fi
6517
6518
6519 enablestring=
6520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6521echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6522 no_cache=0
6523 # Check whether --enable-mdi or --disable-mdi was given.
6524if test "${enable_mdi+set}" = set; then
6525 enableval="$enable_mdi"
6526
6527 if test "$enableval" = yes; then
8a7b1113 6528 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6529 else
8a7b1113 6530 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6531 fi
6532
6533else
6534
8a7b1113 6535 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6536 if test "x$LINE" != x ; then
6537 eval "DEFAULT_$LINE"
6538 else
6539 no_cache=1
6540 fi
6541
8a7b1113 6542 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6543
6544fi;
6545
6546 eval "$ac_cv_use_mdi"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6549 fi
6550
8a7b1113
VZ
6551 if test "$wxUSE_MDI" = yes; then
6552 echo "$as_me:$LINENO: result: yes" >&5
6553echo "${ECHO_T}yes" >&6
6554 else
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557 fi
6558
6559
6560 enablestring=
6561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6562echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6563 no_cache=0
6564 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6565if test "${enable_mdidoc+set}" = set; then
6566 enableval="$enable_mdidoc"
6567
6568 if test "$enableval" = yes; then
6569 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6570 else
6571 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6572 fi
6573
6574else
6575
6576 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6577 if test "x$LINE" != x ; then
6578 eval "DEFAULT_$LINE"
6579 else
6580 no_cache=1
6581 fi
6582
6583 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6584
6585fi;
6586
6587 eval "$ac_cv_use_mdidoc"
6588 if test "$no_cache" != 1; then
6589 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6590 fi
6591
a848cd7e
SC
6592 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6593 echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6
6595 else
6596 echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
6598 fi
6599
6600
6601 enablestring=
6602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6603echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6604 no_cache=0
6605 # Check whether --enable-loggui or --disable-loggui was given.
6606if test "${enable_loggui+set}" = set; then
6607 enableval="$enable_loggui"
6608
6609 if test "$enableval" = yes; then
6610 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6611 else
6612 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6613 fi
6614
6615else
6616
6617 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6618 if test "x$LINE" != x ; then
6619 eval "DEFAULT_$LINE"
6620 else
6621 no_cache=1
6622 fi
6623
6624 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6625
6626fi;
6627
6628 eval "$ac_cv_use_loggui"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_LOGGUI" = yes; then
6634 echo "$as_me:$LINENO: result: yes" >&5
6635echo "${ECHO_T}yes" >&6
6636 else
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
6639 fi
6640
6641
6642 enablestring=
6643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6644echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6645 no_cache=0
6646 # Check whether --enable-logwin or --disable-logwin was given.
6647if test "${enable_logwin+set}" = set; then
6648 enableval="$enable_logwin"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6652 else
6653 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6654 fi
6655
6656else
6657
6658 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6666
6667fi;
6668
6669 eval "$ac_cv_use_logwin"
6670 if test "$no_cache" != 1; then
6671 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6672 fi
6673
6674 if test "$wxUSE_LOGWINDOW" = yes; then
6675 echo "$as_me:$LINENO: result: yes" >&5
6676echo "${ECHO_T}yes" >&6
6677 else
6678 echo "$as_me:$LINENO: result: no" >&5
6679echo "${ECHO_T}no" >&6
6680 fi
6681
6682
6683 enablestring=
6684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6685echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6686 no_cache=0
6687 # Check whether --enable-logdialog or --disable-logdialog was given.
6688if test "${enable_logdialog+set}" = set; then
6689 enableval="$enable_logdialog"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6693 else
6694 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6695 fi
6696
6697else
6698
6699 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6707
6708fi;
6709
6710 eval "$ac_cv_use_logdialog"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_LOGDIALOG" = yes; then
6716 echo "$as_me:$LINENO: result: yes" >&5
6717echo "${ECHO_T}yes" >&6
6718 else
6719 echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6
6721 fi
6722
6723
646b6ec1
VS
6724 enablestring=
6725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6726echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6727 no_cache=0
6728 # Check whether --enable-webkit or --disable-webkit was given.
6729if test "${enable_webkit+set}" = set; then
6730 enableval="$enable_webkit"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6734 else
6735 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6736 fi
6737
6738else
6739
6740 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6748
6749fi;
6750
6751 eval "$ac_cv_use_webkit"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_WEBKIT" = yes; then
6757 echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6
6759 else
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762 fi
6763
6764
a848cd7e
SC
6765
6766 enablestring=
6767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6768echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6769 no_cache=0
6770 # Check whether --enable-postscript or --disable-postscript was given.
6771if test "${enable_postscript+set}" = set; then
6772 enableval="$enable_postscript"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6776 else
6777 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6790
6791fi;
6792
6793 eval "$ac_cv_use_postscript"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_POSTSCRIPT" = yes; then
6799 echo "$as_me:$LINENO: result: yes" >&5
6800echo "${ECHO_T}yes" >&6
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803echo "${ECHO_T}no" >&6
6804 fi
6805
6806
6807
6808
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-prologio or --disable-prologio was given.
6815if test "${enable_prologio+set}" = set; then
6816 enableval="$enable_prologio"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6820 else
6821 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6834
6835fi;
6836
6837 eval "$ac_cv_use_prologio"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_PROLOGIO" = yes; then
6843 echo "$as_me:$LINENO: result: yes" >&5
6844echo "${ECHO_T}yes" >&6
6845 else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848 fi
6849
6850
6851 enablestring=
6852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6853echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6854 no_cache=0
6855 # Check whether --enable-resources or --disable-resources was given.
6856if test "${enable_resources+set}" = set; then
6857 enableval="$enable_resources"
6858
6859 if test "$enableval" = yes; then
6860 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6861 else
6862 ac_cv_use_resources='wxUSE_RESOURCES=no'
6863 fi
6864
6865else
6866
6867 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6868 if test "x$LINE" != x ; then
6869 eval "DEFAULT_$LINE"
6870 else
6871 no_cache=1
6872 fi
6873
6874 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6875
6876fi;
6877
6878 eval "$ac_cv_use_resources"
6879 if test "$no_cache" != 1; then
6880 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6881 fi
6882
6883 if test "$wxUSE_RESOURCES" = yes; then
6884 echo "$as_me:$LINENO: result: yes" >&5
6885echo "${ECHO_T}yes" >&6
6886 else
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
6889 fi
6890
6891
6892
6893
6894 enablestring=
6895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6896echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6897 no_cache=0
6898 # Check whether --enable-clipboard or --disable-clipboard was given.
6899if test "${enable_clipboard+set}" = set; then
6900 enableval="$enable_clipboard"
6901
6902 if test "$enableval" = yes; then
6903 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6904 else
6905 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6906 fi
6907
6908else
6909
6910 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6911 if test "x$LINE" != x ; then
6912 eval "DEFAULT_$LINE"
6913 else
6914 no_cache=1
6915 fi
6916
6917 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6918
6919fi;
6920
6921 eval "$ac_cv_use_clipboard"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_CLIPBOARD" = yes; then
6927 echo "$as_me:$LINENO: result: yes" >&5
6928echo "${ECHO_T}yes" >&6
6929 else
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932 fi
6933
6934
6935 enablestring=
6936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6937echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6938 no_cache=0
6939 # Check whether --enable-dnd or --disable-dnd was given.
6940if test "${enable_dnd+set}" = set; then
6941 enableval="$enable_dnd"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6945 else
6946 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6959
6960fi;
6961
6962 eval "$ac_cv_use_dnd"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970 else
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973 fi
6974
6975
6976 enablestring=
6977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6978echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6979 no_cache=0
6980 # Check whether --enable-metafile or --disable-metafile was given.
6981if test "${enable_metafile+set}" = set; then
6982 enableval="$enable_metafile"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6986 else
6987 ac_cv_use_metafile='wxUSE_METAFILE=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7000
7001fi;
7002
7003 eval "$ac_cv_use_metafile"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_METAFILE" = yes; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6
7011 else
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
7014 fi
7015
7016
7017
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-controls or --disable-controls was given.
7025if test "${enable_controls+set}" = set; then
7026 enableval="$enable_controls"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7030 else
7031 ac_cv_use_controls='wxUSE_CONTROLS=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7044
7045fi;
7046
7047 eval "$ac_cv_use_controls"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_CONTROLS" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061if test "$wxUSE_CONTROLS" = "yes"; then
7062 DEFAULT_wxUSE_ACCEL=yes
7063 DEFAULT_wxUSE_BMPBUTTON=yes
7064 DEFAULT_wxUSE_BUTTON=yes
7065 DEFAULT_wxUSE_CALCTRL=no
7066 DEFAULT_wxUSE_CARET=yes
7067 DEFAULT_wxUSE_COMBOBOX=yes
7068 DEFAULT_wxUSE_CHECKBOX=yes
7069 DEFAULT_wxUSE_CHECKLISTBOX=yes
7070 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7071 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7072 DEFAULT_wxUSE_GAUGE=yes
7073 DEFAULT_wxUSE_GRID=yes
7074 DEFAULT_wxUSE_IMAGLIST=yes
7075 DEFAULT_wxUSE_LISTBOOK=yes
7076 DEFAULT_wxUSE_LISTBOX=yes
7077 DEFAULT_wxUSE_LISTCTRL=yes
7078 DEFAULT_wxUSE_NOTEBOOK=yes
7079 DEFAULT_wxUSE_RADIOBOX=yes
7080 DEFAULT_wxUSE_RADIOBTN=yes
7081 DEFAULT_wxUSE_SASH=yes
7082 DEFAULT_wxUSE_SCROLLBAR=yes
7083 DEFAULT_wxUSE_SLIDER=yes
7084 DEFAULT_wxUSE_SPINBTN=yes
7085 DEFAULT_wxUSE_SPINCTRL=yes
7086 DEFAULT_wxUSE_SPLITTER=yes
7087 DEFAULT_wxUSE_STATBMP=yes
7088 DEFAULT_wxUSE_STATBOX=yes
7089 DEFAULT_wxUSE_STATLINE=yes
7090 DEFAULT_wxUSE_STATUSBAR=yes
7091 DEFAULT_wxUSE_TAB_DIALOG=yes
7092 DEFAULT_wxUSE_TOGGLEBTN=yes
7093 DEFAULT_wxUSE_TOOLBAR=yes
7094 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7095 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7096 DEFAULT_wxUSE_TOOLTIPS=yes
7097 DEFAULT_wxUSE_TREECTRL=yes
7098 DEFAULT_wxUSE_POPUPWIN=yes
7099 DEFAULT_wxUSE_TIPWINDOW=yes
7100elif test "$wxUSE_CONTROLS" = "no"; then
7101 DEFAULT_wxUSE_ACCEL=no
7102 DEFAULT_wxUSE_BMPBUTTON=no
7103 DEFAULT_wxUSE_BUTTON=no
7104 DEFAULT_wxUSE_CALCTRL=no
7105 DEFAULT_wxUSE_CARET=no
7106 DEFAULT_wxUSE_COMBOBOX=no
7107 DEFAULT_wxUSE_CHECKBOX=no
7108 DEFAULT_wxUSE_CHECKLISTBOX=no
7109 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7110 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7111 DEFAULT_wxUSE_GAUGE=no
7112 DEFAULT_wxUSE_GRID=no
7113 DEFAULT_wxUSE_IMAGLIST=no
7114 DEFAULT_wxUSE_LISTBOOK=no
7115 DEFAULT_wxUSE_LISTBOX=no
7116 DEFAULT_wxUSE_LISTCTRL=no
7117 DEFAULT_wxUSE_NOTEBOOK=no
7118 DEFAULT_wxUSE_RADIOBOX=no
7119 DEFAULT_wxUSE_RADIOBTN=no
7120 DEFAULT_wxUSE_SASH=no
7121 DEFAULT_wxUSE_SCROLLBAR=no
7122 DEFAULT_wxUSE_SLIDER=no
7123 DEFAULT_wxUSE_SPINBTN=no
7124 DEFAULT_wxUSE_SPINCTRL=no
7125 DEFAULT_wxUSE_SPLITTER=no
7126 DEFAULT_wxUSE_STATBMP=no
7127 DEFAULT_wxUSE_STATBOX=no
7128 DEFAULT_wxUSE_STATLINE=no
7129 DEFAULT_wxUSE_STATUSBAR=no
7130 DEFAULT_wxUSE_TAB_DIALOG=no
7131 DEFAULT_wxUSE_TOGGLEBTN=no
7132 DEFAULT_wxUSE_TOOLBAR=no
7133 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7134 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7135 DEFAULT_wxUSE_TOOLTIPS=no
7136 DEFAULT_wxUSE_TREECTRL=no
7137 DEFAULT_wxUSE_POPUPWIN=no
7138 DEFAULT_wxUSE_TIPWINDOW=no
7139fi
7140
a848cd7e
SC
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-accel or --disable-accel was given.
7147if test "${enable_accel+set}" = set; then
7148 enableval="$enable_accel"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_accel='wxUSE_ACCEL=yes'
7152 else
7153 ac_cv_use_accel='wxUSE_ACCEL=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7166
7167fi;
7168
7169 eval "$ac_cv_use_accel"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_ACCEL" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-button or --disable-button was given.
7188if test "${enable_button+set}" = set; then
7189 enableval="$enable_button"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_button='wxUSE_BUTTON=yes'
7193 else
7194 ac_cv_use_button='wxUSE_BUTTON=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7207
7208fi;
7209
7210 eval "$ac_cv_use_button"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_BUTTON" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7229if test "${enable_bmpbutton+set}" = set; then
7230 enableval="$enable_bmpbutton"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7234 else
7235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7248
7249fi;
7250
7251 eval "$ac_cv_use_bmpbutton"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_BMPBUTTON" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-calendar or --disable-calendar was given.
7270if test "${enable_calendar+set}" = set; then
7271 enableval="$enable_calendar"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7275 else
7276 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7289
7290fi;
7291
7292 eval "$ac_cv_use_calendar"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_CALCTRL" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-caret or --disable-caret was given.
7311if test "${enable_caret+set}" = set; then
7312 enableval="$enable_caret"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_caret='wxUSE_CARET=yes'
7316 else
7317 ac_cv_use_caret='wxUSE_CARET=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7330
7331fi;
7332
7333 eval "$ac_cv_use_caret"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_CARET" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-checkbox or --disable-checkbox was given.
7352if test "${enable_checkbox+set}" = set; then
7353 enableval="$enable_checkbox"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7357 else
7358 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7371
7372fi;
7373
7374 eval "$ac_cv_use_checkbox"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_CHECKBOX" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-checklst or --disable-checklst was given.
7393if test "${enable_checklst+set}" = set; then
7394 enableval="$enable_checklst"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7398 else
7399 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7412
7413fi;
7414
7415 eval "$ac_cv_use_checklst"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_CHECKLST" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-choice or --disable-choice was given.
7434if test "${enable_choice+set}" = set; then
7435 enableval="$enable_choice"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_choice='wxUSE_CHOICE=yes'
7439 else
7440 ac_cv_use_choice='wxUSE_CHOICE=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7453
7454fi;
7455
7456 eval "$ac_cv_use_choice"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_CHOICE" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
92bbdbcd
WS
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-choicebook or --disable-choicebook was given.
7475if test "${enable_choicebook+set}" = set; then
7476 enableval="$enable_choicebook"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7480 else
7481 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7494
7495fi;
7496
7497 eval "$ac_cv_use_choicebook"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_CHOICEBOOK" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
a848cd7e
SC
7511 enablestring=
7512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7513echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7514 no_cache=0
7515 # Check whether --enable-combobox or --disable-combobox was given.
7516if test "${enable_combobox+set}" = set; then
7517 enableval="$enable_combobox"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7521 else
7522 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7535
7536fi;
7537
7538 eval "$ac_cv_use_combobox"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_COMBOBOX" = yes; then
7544 echo "$as_me:$LINENO: result: yes" >&5
7545echo "${ECHO_T}yes" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 fi
7550
7551
7552 enablestring=
7553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7554echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7555 no_cache=0
7556 # Check whether --enable-display or --disable-display was given.
7557if test "${enable_display+set}" = set; then
7558 enableval="$enable_display"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_display='wxUSE_DISPLAY=yes'
7562 else
7563 ac_cv_use_display='wxUSE_DISPLAY=no'
7564 fi
7565
7566else
7567
7568 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7576
7577fi;
7578
7579 eval "$ac_cv_use_display"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_DISPLAY" = yes; then
7585 echo "$as_me:$LINENO: result: yes" >&5
7586echo "${ECHO_T}yes" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590 fi
7591
7592
7593 enablestring=
7594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7595echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7596 no_cache=0
7597 # Check whether --enable-gauge or --disable-gauge was given.
7598if test "${enable_gauge+set}" = set; then
7599 enableval="$enable_gauge"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7603 else
7604 ac_cv_use_gauge='wxUSE_GAUGE=no'
7605 fi
7606
7607else
7608
7609 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7617
7618fi;
7619
7620 eval "$ac_cv_use_gauge"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_GAUGE" = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631 fi
7632
7633
7634 enablestring=
7635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7636echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7637 no_cache=0
7638 # Check whether --enable-grid or --disable-grid was given.
7639if test "${enable_grid+set}" = set; then
7640 enableval="$enable_grid"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_grid='wxUSE_GRID=yes'
7644 else
7645 ac_cv_use_grid='wxUSE_GRID=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7658
7659fi;
7660
7661 eval "$ac_cv_use_grid"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_GRID" = yes; then
7667 echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672 fi
7673
7674
7675 enablestring=
7676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7677echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7678 no_cache=0
7679 # Check whether --enable-imaglist or --disable-imaglist was given.
7680if test "${enable_imaglist+set}" = set; then
7681 enableval="$enable_imaglist"
7682
7683 if test "$enableval" = yes; then
7684 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7685 else
7686 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7687 fi
7688
7689else
7690
7691 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7692 if test "x$LINE" != x ; then
7693 eval "DEFAULT_$LINE"
7694 else
7695 no_cache=1
7696 fi
7697
7698 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7699
7700fi;
7701
7702 eval "$ac_cv_use_imaglist"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_IMAGLIST" = yes; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709echo "${ECHO_T}yes" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713 fi
7714
7715
7716 enablestring=
7717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7718echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7719 no_cache=0
7720 # Check whether --enable-listbook or --disable-listbook was given.
7721if test "${enable_listbook+set}" = set; then
7722 enableval="$enable_listbook"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7726 else
7727 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7740
7741fi;
7742
7743 eval "$ac_cv_use_listbook"
7744 if test "$no_cache" != 1; then
7745 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7746 fi
7747
7748 if test "$wxUSE_LISTBOOK" = yes; then
7749 echo "$as_me:$LINENO: result: yes" >&5
7750echo "${ECHO_T}yes" >&6
7751 else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754 fi
7755
7756
7757 enablestring=
7758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7759echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7760 no_cache=0
7761 # Check whether --enable-listbox or --disable-listbox was given.
7762if test "${enable_listbox+set}" = set; then
7763 enableval="$enable_listbox"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7767 else
7768 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7781
7782fi;
7783
7784 eval "$ac_cv_use_listbox"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_LISTBOX" = yes; then
7790 echo "$as_me:$LINENO: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795 fi
7796
7797
7798 enablestring=
7799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7800echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7801 no_cache=0
7802 # Check whether --enable-listctrl or --disable-listctrl was given.
7803if test "${enable_listctrl+set}" = set; then
7804 enableval="$enable_listctrl"
7805
7806 if test "$enableval" = yes; then
7807 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7808 else
7809 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7810 fi
7811
7812else
7813
7814 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7815 if test "x$LINE" != x ; then
7816 eval "DEFAULT_$LINE"
7817 else
7818 no_cache=1
7819 fi
7820
7821 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7822
7823fi;
7824
7825 eval "$ac_cv_use_listctrl"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_LISTCTRL" = yes; then
7831 echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833 else
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
7836 fi
7837
7838
7839 enablestring=
7840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7841echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7842 no_cache=0
7843 # Check whether --enable-notebook or --disable-notebook was given.
7844if test "${enable_notebook+set}" = set; then
7845 enableval="$enable_notebook"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7849 else
7850 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7851 fi
7852
7853else
7854
7855 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7863
7864fi;
7865
7866 eval "$ac_cv_use_notebook"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_NOTEBOOK" = yes; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873echo "${ECHO_T}yes" >&6
7874 else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877 fi
7878
7879
7880 enablestring=
7881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7882echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7883 no_cache=0
7884 # Check whether --enable-radiobox or --disable-radiobox was given.
7885if test "${enable_radiobox+set}" = set; then
7886 enableval="$enable_radiobox"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7890 else
7891 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7904
7905fi;
7906
7907 eval "$ac_cv_use_radiobox"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_RADIOBOX" = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
7918 fi
7919
7920
7921 enablestring=
7922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7923echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7924 no_cache=0
7925 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7926if test "${enable_radiobtn+set}" = set; then
7927 enableval="$enable_radiobtn"
7928
7929 if test "$enableval" = yes; then
7930 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7931 else
7932 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7933 fi
7934
7935else
7936
7937 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7938 if test "x$LINE" != x ; then
7939 eval "DEFAULT_$LINE"
7940 else
7941 no_cache=1
7942 fi
7943
7944 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7945
7946fi;
7947
7948 eval "$ac_cv_use_radiobtn"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_RADIOBTN" = yes; then
7954 echo "$as_me:$LINENO: result: yes" >&5
7955echo "${ECHO_T}yes" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959 fi
7960
7961
7962 enablestring=
7963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7964echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7965 no_cache=0
7966 # Check whether --enable-sash or --disable-sash was given.
7967if test "${enable_sash+set}" = set; then
7968 enableval="$enable_sash"
7969
7970 if test "$enableval" = yes; then
7971 ac_cv_use_sash='wxUSE_SASH=yes'
7972 else
7973 ac_cv_use_sash='wxUSE_SASH=no'
7974 fi
7975
7976else
7977
7978 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7986
7987fi;
7988
7989 eval "$ac_cv_use_sash"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_SASH" = yes; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000 fi
8001
8002
8003 enablestring=
8004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8005echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8006 no_cache=0
8007 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8008if test "${enable_scrollbar+set}" = set; then
8009 enableval="$enable_scrollbar"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8013 else
8014 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8027
8028fi;
8029
8030 eval "$ac_cv_use_scrollbar"
8031 if test "$no_cache" != 1; then
8032 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8033 fi
8034
8035 if test "$wxUSE_SCROLLBAR" = yes; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041 fi
8042
8043
8044 enablestring=
8045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8046echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8047 no_cache=0
8048 # Check whether --enable-slider or --disable-slider was given.
8049if test "${enable_slider+set}" = set; then
8050 enableval="$enable_slider"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_slider='wxUSE_SLIDER=yes'
8054 else
8055 ac_cv_use_slider='wxUSE_SLIDER=no'
8056 fi
8057
8058else
8059
8060 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8068
8069fi;
8070
8071 eval "$ac_cv_use_slider"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_SLIDER" = yes; then
8077 echo "$as_me:$LINENO: result: yes" >&5
8078echo "${ECHO_T}yes" >&6
8079 else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082 fi
8083
8084
8085 enablestring=
8086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8087echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8088 no_cache=0
8089 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8090if test "${enable_spinbtn+set}" = set; then
8091 enableval="$enable_spinbtn"
8092
8093 if test "$enableval" = yes; then
8094 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8095 else
8096 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8097 fi
8098
8099else
8100
8101 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8102 if test "x$LINE" != x ; then
8103 eval "DEFAULT_$LINE"
8104 else
8105 no_cache=1
8106 fi
8107
8108 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8109
8110fi;
8111
8112 eval "$ac_cv_use_spinbtn"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_SPINBTN" = yes; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126 enablestring=
8127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8128echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8129 no_cache=0
8130 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8131if test "${enable_spinctrl+set}" = set; then
8132 enableval="$enable_spinctrl"
8133
8134 if test "$enableval" = yes; then
8135 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8136 else
8137 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8138 fi
8139
8140else
8141
8142 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8143 if test "x$LINE" != x ; then
8144 eval "DEFAULT_$LINE"
8145 else
8146 no_cache=1
8147 fi
8148
8149 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8150
8151fi;
8152
8153 eval "$ac_cv_use_spinctrl"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_SPINCTRL" = yes; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164 fi
8165
8166
8167 enablestring=
8168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8169echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8170 no_cache=0
8171 # Check whether --enable-splitter or --disable-splitter was given.
8172if test "${enable_splitter+set}" = set; then
8173 enableval="$enable_splitter"
8174
8175 if test "$enableval" = yes; then
8176 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8177 else
8178 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8179 fi
8180
8181else
8182
8183 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8184 if test "x$LINE" != x ; then
8185 eval "DEFAULT_$LINE"
8186 else
8187 no_cache=1
8188 fi
8189
8190 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8191
8192fi;
8193
8194 eval "$ac_cv_use_splitter"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_SPLITTER" = yes; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6
8205 fi
8206
8207
8208 enablestring=
8209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8210echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8211 no_cache=0
8212 # Check whether --enable-statbmp or --disable-statbmp was given.
8213if test "${enable_statbmp+set}" = set; then
8214 enableval="$enable_statbmp"
8215
8216 if test "$enableval" = yes; then
8217 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8218 else
8219 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8220 fi
8221
8222else
8223
8224 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8225 if test "x$LINE" != x ; then
8226 eval "DEFAULT_$LINE"
8227 else
8228 no_cache=1
8229 fi
8230
8231 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8232
8233fi;
8234
8235 eval "$ac_cv_use_statbmp"
8236 if test "$no_cache" != 1; then
8237 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8238 fi
8239
8240 if test "$wxUSE_STATBMP" = yes; then
8241 echo "$as_me:$LINENO: result: yes" >&5
8242echo "${ECHO_T}yes" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246 fi
8247
8248
8249 enablestring=
8250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8251echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8252 no_cache=0
8253 # Check whether --enable-statbox or --disable-statbox was given.
8254if test "${enable_statbox+set}" = set; then
8255 enableval="$enable_statbox"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8259 else
8260 ac_cv_use_statbox='wxUSE_STATBOX=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8273
8274fi;
8275
8276 eval "$ac_cv_use_statbox"
8277 if test "$no_cache" != 1; then
8278 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8279 fi
8280
8281 if test "$wxUSE_STATBOX" = yes; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283echo "${ECHO_T}yes" >&6
8284 else
8285 echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287 fi
8288
8289
8290 enablestring=
8291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8292echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8293 no_cache=0
8294 # Check whether --enable-statline or --disable-statline was given.
8295if test "${enable_statline+set}" = set; then
8296 enableval="$enable_statline"
8297
8298 if test "$enableval" = yes; then
8299 ac_cv_use_statline='wxUSE_STATLINE=yes'
8300 else
8301 ac_cv_use_statline='wxUSE_STATLINE=no'
8302 fi
8303
8304else
8305
8306 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8307 if test "x$LINE" != x ; then
8308 eval "DEFAULT_$LINE"
8309 else
8310 no_cache=1
8311 fi
8312
8313 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8314
8315fi;
8316
8317 eval "$ac_cv_use_statline"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_STATLINE" = yes; then
8323 echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325 else
8326 echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328 fi
8329
8330
8331 enablestring=
8332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8333echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8334 no_cache=0
8335 # Check whether --enable-stattext or --disable-stattext was given.
8336if test "${enable_stattext+set}" = set; then
8337 enableval="$enable_stattext"
8338
8339 if test "$enableval" = yes; then
8340 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8341 else
8342 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8343 fi
8344
8345else
8346
8347 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8348 if test "x$LINE" != x ; then
8349 eval "DEFAULT_$LINE"
8350 else
8351 no_cache=1
8352 fi
8353
8354 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8355
8356fi;
8357
8358 eval "$ac_cv_use_stattext"
8359 if test "$no_cache" != 1; then
8360 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8361 fi
8362
8363 if test "$wxUSE_STATTEXT" = yes; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365echo "${ECHO_T}yes" >&6
8366 else
8367 echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369 fi
8370
8371
8372 enablestring=
8373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8374echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8375 no_cache=0
8376 # Check whether --enable-statusbar or --disable-statusbar was given.
8377if test "${enable_statusbar+set}" = set; then
8378 enableval="$enable_statusbar"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8382 else
8383 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8384 fi
8385
8386else
8387
8388 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8396
8397fi;
8398
8399 eval "$ac_cv_use_statusbar"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_STATUSBAR" = yes; then
8405 echo "$as_me:$LINENO: result: yes" >&5
8406echo "${ECHO_T}yes" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
8410 fi
8411
8412
8413 enablestring=
8414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8415echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8416 no_cache=0
8417 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8418if test "${enable_tabdialog+set}" = set; then
8419 enableval="$enable_tabdialog"
8420
8421 if test "$enableval" = yes; then
8422 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8423 else
8424 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8425 fi
8426
8427else
8428
8429 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8430 if test "x$LINE" != x ; then
8431 eval "DEFAULT_$LINE"
8432 else
8433 no_cache=1
8434 fi
8435
8436 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8437
8438fi;
8439
8440 eval "$ac_cv_use_tabdialog"
8441 if test "$no_cache" != 1; then
8442 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8443 fi
8444
8445 if test "$wxUSE_TABDIALOG" = yes; then
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6
8451 fi
8452
8453
8454 enablestring=
8455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8456echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8457 no_cache=0
8458 # Check whether --enable-textctrl or --disable-textctrl was given.
8459if test "${enable_textctrl+set}" = set; then
8460 enableval="$enable_textctrl"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8464 else
8465 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8478
8479fi;
8480
8481 eval "$ac_cv_use_textctrl"
8482 if test "$no_cache" != 1; then
8483 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8484 fi
8485
8486 if test "$wxUSE_TEXTCTRL" = yes; then
8487 echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6
8489 else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492 fi
8493
8494
8495 enablestring=
8496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8497echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8498 no_cache=0
8499 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8500if test "${enable_togglebtn+set}" = set; then
8501 enableval="$enable_togglebtn"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8505 else
8506 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8507 fi
8508
8509else
8510
8511 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8519
8520fi;
8521
8522 eval "$ac_cv_use_togglebtn"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_TOGGLEBTN" = yes; then
8528 echo "$as_me:$LINENO: result: yes" >&5
8529echo "${ECHO_T}yes" >&6
8530 else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533 fi
8534
8535
8536 enablestring=
8537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8539 no_cache=0
8540 # Check whether --enable-toolbar or --disable-toolbar was given.
8541if test "${enable_toolbar+set}" = set; then
8542 enableval="$enable_toolbar"
8543
8544 if test "$enableval" = yes; then
8545 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8546 else
8547 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8548 fi
8549
8550else
8551
8552 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8553 if test "x$LINE" != x ; then
8554 eval "DEFAULT_$LINE"
8555 else
8556 no_cache=1
8557 fi
8558
8559 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8560
8561fi;
8562
8563 eval "$ac_cv_use_toolbar"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_TOOLBAR" = yes; then
8569 echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577 enablestring=
8578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8579echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8580 no_cache=0
8581 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8582if test "${enable_tbarnative+set}" = set; then
8583 enableval="$enable_tbarnative"
8584
8585 if test "$enableval" = yes; then
8586 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8587 else
8588 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8589 fi
8590
8591else
8592
8593 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8594 if test "x$LINE" != x ; then
8595 eval "DEFAULT_$LINE"
8596 else
8597 no_cache=1
8598 fi
8599
8600 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8601
8602fi;
8603
8604 eval "$ac_cv_use_tbarnative"
8605 if test "$no_cache" != 1; then
8606 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8607 fi
8608
8609 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618 enablestring=
8619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8620echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8621 no_cache=0
8622 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8623if test "${enable_tbarsmpl+set}" = set; then
8624 enableval="$enable_tbarsmpl"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8628 else
8629 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8642
8643fi;
8644
8645 eval "$ac_cv_use_tbarsmpl"
8646 if test "$no_cache" != 1; then
8647 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8648 fi
8649
8650 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656 fi
8657
8658
8659 enablestring=
8660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8661echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8662 no_cache=0
8663 # Check whether --enable-treectrl or --disable-treectrl was given.
8664if test "${enable_treectrl+set}" = set; then
8665 enableval="$enable_treectrl"
8666
8667 if test "$enableval" = yes; then
8668 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8669 else
8670 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8671 fi
8672
8673else
8674
8675 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8676 if test "x$LINE" != x ; then
8677 eval "DEFAULT_$LINE"
8678 else
8679 no_cache=1
8680 fi
8681
8682 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8683
8684fi;
8685
8686 eval "$ac_cv_use_treectrl"
8687 if test "$no_cache" != 1; then
8688 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8689 fi
8690
8691 if test "$wxUSE_TREECTRL" = yes; then
8692 echo "$as_me:$LINENO: result: yes" >&5
8693echo "${ECHO_T}yes" >&6
8694 else
8695 echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
8697 fi
8698
8699
8700 enablestring=
8701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8702echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8703 no_cache=0
8704 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8705if test "${enable_tipwindow+set}" = set; then
8706 enableval="$enable_tipwindow"
8707
8708 if test "$enableval" = yes; then
8709 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8710 else
8711 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8712 fi
8713
8714else
8715
8716 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8717 if test "x$LINE" != x ; then
8718 eval "DEFAULT_$LINE"
8719 else
8720 no_cache=1
8721 fi
8722
8723 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8724
8725fi;
8726
8727 eval "$ac_cv_use_tipwindow"
8728 if test "$no_cache" != 1; then
8729 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8730 fi
8731
8732 if test "$wxUSE_TIPWINDOW" = yes; then
8733 echo "$as_me:$LINENO: result: yes" >&5
8734echo "${ECHO_T}yes" >&6
8735 else
8736 echo "$as_me:$LINENO: result: no" >&5
8737echo "${ECHO_T}no" >&6
8738 fi
8739
8740
8741 enablestring=
8742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8743echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8744 no_cache=0
8745 # Check whether --enable-popupwin or --disable-popupwin was given.
8746if test "${enable_popupwin+set}" = set; then
8747 enableval="$enable_popupwin"
8748
8749 if test "$enableval" = yes; then
8750 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8751 else
8752 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8753 fi
8754
8755else
8756
8757 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8758 if test "x$LINE" != x ; then
8759 eval "DEFAULT_$LINE"
8760 else
8761 no_cache=1
8762 fi
8763
8764 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8765
8766fi;
8767
8768 eval "$ac_cv_use_popupwin"
8769 if test "$no_cache" != 1; then
8770 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8771 fi
8772
8773 if test "$wxUSE_POPUPWIN" = yes; then
8774 echo "$as_me:$LINENO: result: yes" >&5
8775echo "${ECHO_T}yes" >&6
8776 else
8777 echo "$as_me:$LINENO: result: no" >&5
8778echo "${ECHO_T}no" >&6
8779 fi
8780
8781
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-commondlg or --disable-commondlg was given.
8789if test "${enable_commondlg+set}" = set; then
8790 enableval="$enable_commondlg"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8794 else
8795 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8808
8809fi;
8810
8811 eval "$ac_cv_use_commondlg"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_COMMONDLGS" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8830if test "${enable_choicedlg+set}" = set; then
8831 enableval="$enable_choicedlg"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8835 else
8836 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8849
8850fi;
8851
8852 eval "$ac_cv_use_choicedlg"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_CHOICEDLG" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-coldlg or --disable-coldlg was given.
8871if test "${enable_coldlg+set}" = set; then
8872 enableval="$enable_coldlg"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8876 else
8877 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8890
8891fi;
8892
8893 eval "$ac_cv_use_coldlg"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_COLOURDLG" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-filedlg or --disable-filedlg was given.
8912if test "${enable_filedlg+set}" = set; then
8913 enableval="$enable_filedlg"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8917 else
8918 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8931
8932fi;
8933
8934 eval "$ac_cv_use_filedlg"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_FILEDLG" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-finddlg or --disable-finddlg was given.
8953if test "${enable_finddlg+set}" = set; then
8954 enableval="$enable_finddlg"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8958 else
8959 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8972
8973fi;
8974
8975 eval "$ac_cv_use_finddlg"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_FINDREPLDLG" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8994if test "${enable_fontdlg+set}" = set; then
8995 enableval="$enable_fontdlg"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8999 else
9000 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9013
9014fi;
9015
9016 eval "$ac_cv_use_fontdlg"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_FONTDLG" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9035if test "${enable_dirdlg+set}" = set; then
9036 enableval="$enable_dirdlg"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9040 else
9041 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9054
9055fi;
9056
9057 eval "$ac_cv_use_dirdlg"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_DIRDLG" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9076if test "${enable_msgdlg+set}" = set; then
9077 enableval="$enable_msgdlg"
9078
9079 if test "$enableval" = yes; then
9080 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9081 else
9082 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9083 fi
9084
9085else
9086
9087 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
9094 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9095
9096fi;
9097
9098 eval "$ac_cv_use_msgdlg"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9101 fi
9102
9103 if test "$wxUSE_MSGDLG" = yes; then
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9117if test "${enable_numberdlg+set}" = set; then
9118 enableval="$enable_numberdlg"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9122 else
9123 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9136
9137fi;
9138
9139 eval "$ac_cv_use_numberdlg"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_NUMBERDLG" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-splash or --disable-splash was given.
9158if test "${enable_splash+set}" = set; then
9159 enableval="$enable_splash"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_splash='wxUSE_SPLASH=yes'
9163 else
9164 ac_cv_use_splash='wxUSE_SPLASH=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9177
9178fi;
9179
9180 eval "$ac_cv_use_splash"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_SPLASH" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-textdlg or --disable-textdlg was given.
9199if test "${enable_textdlg+set}" = set; then
9200 enableval="$enable_textdlg"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9204 else
9205 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9218
9219fi;
9220
9221 eval "$ac_cv_use_textdlg"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_TEXTDLG" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235 enablestring=
9236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9237echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9238 no_cache=0
9239 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9240if test "${enable_tipdlg+set}" = set; then
9241 enableval="$enable_tipdlg"
9242
9243 if test "$enableval" = yes; then
9244 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9245 else
9246 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9247 fi
9248
9249else
9250
9251 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9252 if test "x$LINE" != x ; then
9253 eval "DEFAULT_$LINE"
9254 else
9255 no_cache=1
9256 fi
9257
9258 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9259
9260fi;
9261
9262 eval "$ac_cv_use_tipdlg"
9263 if test "$no_cache" != 1; then
9264 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9265 fi
9266
9267 if test "$wxUSE_STARTUP_TIPS" = yes; then
9268 echo "$as_me:$LINENO: result: yes" >&5
9269echo "${ECHO_T}yes" >&6
9270 else
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
9273 fi
9274
9275
9276 enablestring=
9277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9278echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9279 no_cache=0
9280 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9281if test "${enable_progressdlg+set}" = set; then
9282 enableval="$enable_progressdlg"
9283
9284 if test "$enableval" = yes; then
9285 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9286 else
9287 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9288 fi
9289
9290else
9291
9292 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9293 if test "x$LINE" != x ; then
9294 eval "DEFAULT_$LINE"
9295 else
9296 no_cache=1
9297 fi
9298
9299 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9300
9301fi;
9302
9303 eval "$ac_cv_use_progressdlg"
9304 if test "$no_cache" != 1; then
9305 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9306 fi
9307
9308 if test "$wxUSE_PROGRESSDLG" = yes; then
9309 echo "$as_me:$LINENO: result: yes" >&5
9310echo "${ECHO_T}yes" >&6
9311 else
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
9314 fi
9315
9316
9317 enablestring=
9318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9319echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9320 no_cache=0
9321 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9322if test "${enable_wizarddlg+set}" = set; then
9323 enableval="$enable_wizarddlg"
9324
9325 if test "$enableval" = yes; then
9326 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9327 else
9328 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9329 fi
9330
9331else
9332
9333 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9334 if test "x$LINE" != x ; then
9335 eval "DEFAULT_$LINE"
9336 else
9337 no_cache=1
9338 fi
9339
9340 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9341
9342fi;
9343
9344 eval "$ac_cv_use_wizarddlg"
9345 if test "$no_cache" != 1; then
9346 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9347 fi
9348
9349 if test "$wxUSE_WIZARDDLG" = yes; then
9350 echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6
9352 else
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
9355 fi
9356
9357
9358
9359
9360 enablestring=
9361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9362echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9363 no_cache=0
9364 # Check whether --enable-menus or --disable-menus was given.
9365if test "${enable_menus+set}" = set; then
9366 enableval="$enable_menus"
9367
9368 if test "$enableval" = yes; then
9369 ac_cv_use_menus='wxUSE_MENUS=yes'
9370 else
9371 ac_cv_use_menus='wxUSE_MENUS=no'
9372 fi
9373
9374else
9375
9376 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9377 if test "x$LINE" != x ; then
9378 eval "DEFAULT_$LINE"
9379 else
9380 no_cache=1
9381 fi
9382
9383 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9384
9385fi;
9386
9387 eval "$ac_cv_use_menus"
9388 if test "$no_cache" != 1; then
9389 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9390 fi
9391
9392 if test "$wxUSE_MENUS" = yes; then
9393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
9398 fi
9399
9400
9401 enablestring=
9402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9403echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9404 no_cache=0
9405 # Check whether --enable-miniframe or --disable-miniframe was given.
9406if test "${enable_miniframe+set}" = set; then
9407 enableval="$enable_miniframe"
9408
9409 if test "$enableval" = yes; then
9410 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9411 else
9412 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9413 fi
9414
9415else
9416
9417 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9418 if test "x$LINE" != x ; then
9419 eval "DEFAULT_$LINE"
9420 else
9421 no_cache=1
9422 fi
9423
9424 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9425
9426fi;
9427
9428 eval "$ac_cv_use_miniframe"
9429 if test "$no_cache" != 1; then
9430 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9431 fi
9432
9433 if test "$wxUSE_MINIFRAME" = yes; then
9434 echo "$as_me:$LINENO: result: yes" >&5
9435echo "${ECHO_T}yes" >&6
9436 else
9437 echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6
9439 fi
9440
9441
9442 enablestring=
9443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9444echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9445 no_cache=0
9446 # Check whether --enable-tooltips or --disable-tooltips was given.
9447if test "${enable_tooltips+set}" = set; then
9448 enableval="$enable_tooltips"
9449
9450 if test "$enableval" = yes; then
9451 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9452 else
9453 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9454 fi
9455
9456else
9457
9458 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9459 if test "x$LINE" != x ; then
9460 eval "DEFAULT_$LINE"
9461 else
9462 no_cache=1
9463 fi
9464
9465 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9466
9467fi;
9468
9469 eval "$ac_cv_use_tooltips"
9470 if test "$no_cache" != 1; then
9471 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test "$wxUSE_TOOLTIPS" = yes; then
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480 fi
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-splines or --disable-splines was given.
9488if test "${enable_splines+set}" = set; then
9489 enableval="$enable_splines"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_splines='wxUSE_SPLINES=yes'
9493 else
9494 ac_cv_use_splines='wxUSE_SPLINES=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9507
9508fi;
9509
9510 eval "$ac_cv_use_splines"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_SPLINES" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-validators or --disable-validators was given.
9529if test "${enable_validators+set}" = set; then
9530 enableval="$enable_validators"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9534 else
9535 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9548
9549fi;
9550
9551 eval "$ac_cv_use_validators"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_VALIDATORS" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9570if test "${enable_busyinfo+set}" = set; then
9571 enableval="$enable_busyinfo"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9575 else
9576 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9589
9590fi;
9591
9592 eval "$ac_cv_use_busyinfo"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_BUSYINFO" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-joystick or --disable-joystick was given.
9611if test "${enable_joystick+set}" = set; then
9612 enableval="$enable_joystick"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9616 else
9617 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9630
9631fi;
9632
9633 eval "$ac_cv_use_joystick"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_JOYSTICK" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647 enablestring=
9648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9649echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9650 no_cache=0
9651 # Check whether --enable-metafile or --disable-metafile was given.
9652if test "${enable_metafile+set}" = set; then
9653 enableval="$enable_metafile"
9654
9655 if test "$enableval" = yes; then
9656 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9657 else
9658 ac_cv_use_metafile='wxUSE_METAFILE=no'
9659 fi
9660
9661else
9662
9663 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9664 if test "x$LINE" != x ; then
9665 eval "DEFAULT_$LINE"
9666 else
9667 no_cache=1
9668 fi
9669
9670 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9671
9672fi;
9673
9674 eval "$ac_cv_use_metafile"
9675 if test "$no_cache" != 1; then
9676 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9677 fi
9678
9679 if test "$wxUSE_METAFILE" = yes; then
9680 echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6
9682 else
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
9685 fi
9686
9687
9688 enablestring=
9689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9690echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9691 no_cache=0
9692 # Check whether --enable-dragimage or --disable-dragimage was given.
9693if test "${enable_dragimage+set}" = set; then
9694 enableval="$enable_dragimage"
9695
9696 if test "$enableval" = yes; then
9697 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9698 else
9699 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9700 fi
9701
9702else
9703
9704 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9705 if test "x$LINE" != x ; then
9706 eval "DEFAULT_$LINE"
9707 else
9708 no_cache=1
9709 fi
9710
9711 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9712
9713fi;
9714
9715 eval "$ac_cv_use_dragimage"
9716 if test "$no_cache" != 1; then
9717 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9718 fi
9719
9720 if test "$wxUSE_DRAGIMAGE" = yes; then
9721 echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6
9723 else
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
9726 fi
9727
9728
9729 enablestring=
9730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9731echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9732 no_cache=0
9733 # Check whether --enable-accessibility or --disable-accessibility was given.
9734if test "${enable_accessibility+set}" = set; then
9735 enableval="$enable_accessibility"
9736
9737 if test "$enableval" = yes; then
9738 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9739 else
9740 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9741 fi
9742
9743else
9744
9745 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9746 if test "x$LINE" != x ; then
9747 eval "DEFAULT_$LINE"
9748 else
9749 no_cache=1
9750 fi
9751
9752 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9753
9754fi;
9755
9756 eval "$ac_cv_use_accessibility"
9757 if test "$no_cache" != 1; then
9758 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9759 fi
9760
9761 if test "$wxUSE_ACCESSIBILITY" = yes; then
9762 echo "$as_me:$LINENO: result: yes" >&5
9763echo "${ECHO_T}yes" >&6
9764 else
9765 echo "$as_me:$LINENO: result: no" >&5
9766echo "${ECHO_T}no" >&6
9767 fi
9768
9769
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-palette or --disable-palette was given.
9777if test "${enable_palette+set}" = set; then
9778 enableval="$enable_palette"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_palette='wxUSE_PALETTE=yes'
9782 else
9783 ac_cv_use_palette='wxUSE_PALETTE=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9796
9797fi;
9798
9799 eval "$ac_cv_use_palette"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_PALETTE" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-image or --disable-image was given.
9818if test "${enable_image+set}" = set; then
9819 enableval="$enable_image"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_image='wxUSE_IMAGE=yes'
9823 else
9824 ac_cv_use_image='wxUSE_IMAGE=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9837
9838fi;
9839
9840 eval "$ac_cv_use_image"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_IMAGE" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-gif or --disable-gif was given.
9859if test "${enable_gif+set}" = set; then
9860 enableval="$enable_gif"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_gif='wxUSE_GIF=yes'
9864 else
9865 ac_cv_use_gif='wxUSE_GIF=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9878
9879fi;
9880
9881 eval "$ac_cv_use_gif"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_GIF" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-pcx or --disable-pcx was given.
9900if test "${enable_pcx+set}" = set; then
9901 enableval="$enable_pcx"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_pcx='wxUSE_PCX=yes'
9905 else
9906 ac_cv_use_pcx='wxUSE_PCX=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9919
9920fi;
9921
9922 eval "$ac_cv_use_pcx"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_PCX" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-iff or --disable-iff was given.
9941if test "${enable_iff+set}" = set; then
9942 enableval="$enable_iff"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_iff='wxUSE_IFF=yes'
9946 else
9947 ac_cv_use_iff='wxUSE_IFF=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9960
9961fi;
9962
9963 eval "$ac_cv_use_iff"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_IFF" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977 enablestring=
9978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9979echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9980 no_cache=0
9981 # Check whether --enable-pnm or --disable-pnm was given.
9982if test "${enable_pnm+set}" = set; then
9983 enableval="$enable_pnm"
9984
9985 if test "$enableval" = yes; then
9986 ac_cv_use_pnm='wxUSE_PNM=yes'
9987 else
9988 ac_cv_use_pnm='wxUSE_PNM=no'
9989 fi
9990
9991else
9992
9993 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9994 if test "x$LINE" != x ; then
9995 eval "DEFAULT_$LINE"
9996 else
9997 no_cache=1
9998 fi
9999
10000 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10001
10002fi;
10003
10004 eval "$ac_cv_use_pnm"
10005 if test "$no_cache" != 1; then
10006 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10007 fi
10008
10009 if test "$wxUSE_PNM" = yes; then
10010 echo "$as_me:$LINENO: result: yes" >&5
10011echo "${ECHO_T}yes" >&6
10012 else
10013 echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015 fi
10016
10017
10018 enablestring=
10019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10020echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10021 no_cache=0
10022 # Check whether --enable-xpm or --disable-xpm was given.
10023if test "${enable_xpm+set}" = set; then
10024 enableval="$enable_xpm"
10025
10026 if test "$enableval" = yes; then
10027 ac_cv_use_xpm='wxUSE_XPM=yes'
10028 else
10029 ac_cv_use_xpm='wxUSE_XPM=no'
10030 fi
10031
10032else
10033
10034 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10035 if test "x$LINE" != x ; then
10036 eval "DEFAULT_$LINE"
10037 else
10038 no_cache=1
10039 fi
10040
10041 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10042
10043fi;
10044
10045 eval "$ac_cv_use_xpm"
10046 if test "$no_cache" != 1; then
10047 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10048 fi
10049
10050 if test "$wxUSE_XPM" = yes; then
10051 echo "$as_me:$LINENO: result: yes" >&5
10052echo "${ECHO_T}yes" >&6
10053 else
10054 echo "$as_me:$LINENO: result: no" >&5
10055echo "${ECHO_T}no" >&6
10056 fi
10057
10058
10059 enablestring=
10060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10061echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10062 no_cache=0
10063 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10064if test "${enable_ico_cur+set}" = set; then
10065 enableval="$enable_ico_cur"
10066
10067 if test "$enableval" = yes; then
10068 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10069 else
10070 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10071 fi
10072
10073else
10074
10075 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10076 if test "x$LINE" != x ; then
10077 eval "DEFAULT_$LINE"
10078 else
10079 no_cache=1
10080 fi
10081
10082 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10083
10084fi;
10085
10086 eval "$ac_cv_use_ico_cur"
10087 if test "$no_cache" != 1; then
10088 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10089 fi
10090
10091 if test "$wxUSE_ICO_CUR" = yes; then
10092 echo "$as_me:$LINENO: result: yes" >&5
10093echo "${ECHO_T}yes" >&6
10094 else
10095 echo "$as_me:$LINENO: result: no" >&5
10096echo "${ECHO_T}no" >&6
10097 fi
10098
10099
10100fi
10101
10102
10103
ceec2216
RL
10104# Check whether --with-flavour or --without-flavour was given.
10105if test "${with_flavour+set}" = set; then
10106 withval="$with_flavour"
10107 WX_FLAVOUR="$withval"
10108fi;
10109
10110
10111
a848cd7e
SC
10112 enablestring=
10113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10114echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10115 no_cache=0
10116 # Check whether --enable-official_build or --disable-official_build was given.
10117if test "${enable_official_build+set}" = set; then
10118 enableval="$enable_official_build"
10119
10120 if test "$enableval" = yes; then
10121 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10122 else
10123 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10124 fi
10125
10126else
10127
10128 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10129 if test "x$LINE" != x ; then
10130 eval "DEFAULT_$LINE"
10131 else
10132 no_cache=1
10133 fi
10134
10135 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10136
10137fi;
10138
10139 eval "$ac_cv_use_official_build"
10140 if test "$no_cache" != 1; then
10141 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10142 fi
10143
10144 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10145 echo "$as_me:$LINENO: result: yes" >&5
10146echo "${ECHO_T}yes" >&6
10147 else
10148 echo "$as_me:$LINENO: result: no" >&5
10149echo "${ECHO_T}no" >&6
10150 fi
10151
10152# Check whether --enable-vendor or --disable-vendor was given.
10153if test "${enable_vendor+set}" = set; then
10154 enableval="$enable_vendor"
10155 VENDOR="$enableval"
10156fi;
10157if test "x$VENDOR" = "x"; then
10158 VENDOR="custom"
10159fi
10160
a848cd7e
SC
10161
10162
10163
10164 echo "saving argument cache $wx_arg_cache_file"
10165 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10166
10167
10168
10169echo "$as_me:$LINENO: checking for toolkit" >&5
10170echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10171
10172# In Wine, we need to default to MSW, not GTK or MOTIF
10173if test "$wxUSE_WINE" = "yes"; then
10174 DEFAULT_DEFAULT_wxUSE_GTK=0
10175 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10176 DEFAULT_DEFAULT_wxUSE_MSW=1
10177 wxUSE_SHARED=no
10178fi
10179
10180if test "$wxUSE_GUI" = "yes"; then
10181
10182 if test "$USE_BEOS" = 1; then
10183 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10184echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10185 { (exit 1); exit 1; }; }
10186 fi
10187
10188 if test "$TOOLKIT_GIVEN" = 1; then
10189 for toolkit in `echo $ALL_TOOLKITS`; do
10190 var=wxUSE_$toolkit
10191 eval "value=\$${var}"
10192 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10193 done
10194 else
10195 for toolkit in `echo $ALL_TOOLKITS`; do
10196 if test "$has_toolkit_in_cache" != 1; then
10197 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10198 else
10199 var=DEFAULT_wxUSE_$toolkit
10200 fi
10201 eval "wxUSE_$toolkit=\$${var}"
10202 done
10203 fi
10204
10205 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10206 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10207 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10208
10209 case "${host}" in
10210 *-pc-os2_emx | *-pc-os2-emx )
10211 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10212 esac
10213
10214 case "$NUM_TOOLKITS" in
10215 1)
10216 ;;
10217 0)
10218 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10219echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10220 { (exit 1); exit 1; }; }
10221 ;;
10222 *)
10223 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10224echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10225 { (exit 1); exit 1; }; }
10226 esac
10227
10228 for toolkit in `echo $ALL_TOOLKITS`; do
10229 var=wxUSE_$toolkit
10230 eval "value=\$${var}"
10231 if test "x$value" != x; then
10232 cache_var=CACHE_$toolkit
10233 eval "cache=\$${cache_var}"
10234 if test "$cache" = 1; then
10235 echo "$var=$value" >> ${wx_arg_cache_file}
10236 fi
10237 if test "$value" = 1; then
10238 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10239 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10240echo "${ECHO_T}$toolkit_echo" >&6
10241 fi
10242 fi
10243 done
10244else
10245 if test "x$host_alias" != "x"; then
10246 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10247echo "${ECHO_T}base ($host_alias hosted) only" >&6
10248 else
10249 echo "$as_me:$LINENO: result: base only" >&5
10250echo "${ECHO_T}base only" >&6
10251 fi
10252fi
10253
10254wants_win32=0
10255doesnt_want_win32=0
10256case "${host}" in
10257 *-*-cygwin*)
10258 if test "$wxUSE_MSW" = 1 ; then
10259 wants_win32=1
10260 else
10261 doesnt_want_win32=1
10262 fi
10263 ;;
10264 *-*-mingw*)
10265 wants_win32=1
10266 ;;
10267esac
10268
10269if test "$wxUSE_WINE" = "yes"; then
10270 wants_win32=1
10271 CC=winegcc
10272 CXX=wineg++
10273 RESCOMP=wrc
10274 LDFLAGS_GUI="-mwindows"
10275fi
10276
10277if test "$wants_win32" = 1 ; then
10278 USE_UNIX=0
10279 USE_WIN32=1
10280 cat >>confdefs.h <<\_ACEOF
10281#define __WIN32__ 1
10282_ACEOF
10283
10284 cat >>confdefs.h <<\_ACEOF
10285#define __WIN95__ 1
10286_ACEOF
10287
10288 cat >>confdefs.h <<\_ACEOF
10289#define __WINDOWS__ 1
10290_ACEOF
10291
10292 cat >>confdefs.h <<\_ACEOF
10293#define __GNUWIN32__ 1
10294_ACEOF
10295
10296 cat >>confdefs.h <<\_ACEOF
10297#define STRICT 1
10298_ACEOF
10299
10300 cat >>confdefs.h <<\_ACEOF
10301#define WINVER 0x0400
10302_ACEOF
10303
10304fi
10305if test "$doesnt_want_win32" = 1 ; then
10306 USE_UNIX=1
10307 USE_WIN32=0
10308fi
10309
10310if test "$USE_UNIX" = 1 ; then
10311 wxUSE_UNIX=yes
10312 cat >>confdefs.h <<\_ACEOF
10313#define __UNIX__ 1
10314_ACEOF
10315
10316fi
10317
10318
10319cat >confcache <<\_ACEOF
10320# This file is a shell script that caches the results of configure
10321# tests run on this system so they can be shared between configure
10322# scripts and configure runs, see configure's option --config-cache.
10323# It is not useful on other systems. If it contains results you don't
10324# want to keep, you may remove or edit it.
10325#
10326# config.status only pays attention to the cache file if you give it
10327# the --recheck option to rerun configure.
10328#
10329# `ac_cv_env_foo' variables (set or unset) will be overridden when
10330# loading this file, other *unset* `ac_cv_foo' will be assigned the
10331# following values.
10332
10333_ACEOF
10334
10335# The following way of writing the cache mishandles newlines in values,
10336# but we know of no workaround that is simple, portable, and efficient.
10337# So, don't put newlines in cache variables' values.
10338# Ultrix sh set writes to stderr and can't be redirected directly,
10339# and sets the high bit in the cache file unless we assign to the vars.
10340{
10341 (set) 2>&1 |
10342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10343 *ac_space=\ *)
10344 # `set' does not quote correctly, so add quotes (double-quote
10345 # substitution turns \\\\ into \\, and sed turns \\ into \).
10346 sed -n \
ac1cb8d3
VS
10347 "s/'/'\\\\''/g;
10348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10349 ;;
10350 *)
10351 # `set' quotes correctly as required by POSIX, so do not add quotes.
10352 sed -n \
ac1cb8d3 10353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10354 ;;
10355 esac;
10356} |
10357 sed '
10358 t clear
10359 : clear
10360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10361 t end
10362 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10363 : end' >>confcache
10364if diff $cache_file confcache >/dev/null 2>&1; then :; else
10365 if test -w $cache_file; then
10366 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10367 cat confcache >$cache_file
10368 else
10369 echo "not updating unwritable cache $cache_file"
10370 fi
10371fi
10372rm -f confcache
10373
10374if test "$build" != "$host" ; then
1e9e8aba 10375 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10376 CC=$host_alias-gcc
10377 CXX=$host_alias-c++
10378 AR=$host_alias-ar
10379 RANLIB=$host_alias-ranlib
10380 DLLTOOL=$host_alias-dlltool
10381 RESCOMP=$host_alias-windres
a848cd7e 10382 STRIP=$host_alias-strip
1e9e8aba
DE
10383 elif test "x$CC" '!=' "x"; then
10384 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10385 else
10386 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10387echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10388 { (exit 1); exit 1; }; }
10389 fi
10390fi
10391
10392CFLAGS=${CFLAGS:=}
10393ac_ext=c
10394ac_cpp='$CPP $CPPFLAGS'
10395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10397ac_compiler_gnu=$ac_cv_c_compiler_gnu
10398if test -n "$ac_tool_prefix"; then
10399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10400set dummy ${ac_tool_prefix}gcc; ac_word=$2
10401echo "$as_me:$LINENO: checking for $ac_word" >&5
10402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403if test "${ac_cv_prog_CC+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 if test -n "$CC"; then
10407 ac_cv_prog_CC="$CC" # Let the user override the test.
10408else
10409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410for as_dir in $PATH
10411do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420done
10421done
10422
10423fi
10424fi
10425CC=$ac_cv_prog_CC
10426if test -n "$CC"; then
10427 echo "$as_me:$LINENO: result: $CC" >&5
10428echo "${ECHO_T}$CC" >&6
10429else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433
10434fi
10435if test -z "$ac_cv_prog_CC"; then
10436 ac_ct_CC=$CC
10437 # Extract the first word of "gcc", so it can be a program name with args.
10438set dummy gcc; ac_word=$2
10439echo "$as_me:$LINENO: checking for $ac_word" >&5
10440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 if test -n "$ac_ct_CC"; then
10445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10446else
10447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448for as_dir in $PATH
10449do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_ac_ct_CC="gcc"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458done
10459done
10460
10461fi
10462fi
10463ac_ct_CC=$ac_cv_prog_ac_ct_CC
10464if test -n "$ac_ct_CC"; then
10465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10466echo "${ECHO_T}$ac_ct_CC" >&6
10467else
10468 echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470fi
10471
10472 CC=$ac_ct_CC
10473else
10474 CC="$ac_cv_prog_CC"
10475fi
10476
10477if test -z "$CC"; then
10478 if test -n "$ac_tool_prefix"; then
10479 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10480set dummy ${ac_tool_prefix}cc; ac_word=$2
10481echo "$as_me:$LINENO: checking for $ac_word" >&5
10482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10483if test "${ac_cv_prog_CC+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 if test -n "$CC"; then
10487 ac_cv_prog_CC="$CC" # Let the user override the test.
10488else
10489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_CC="${ac_tool_prefix}cc"
10497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10499 fi
10500done
10501done
10502
10503fi
10504fi
10505CC=$ac_cv_prog_CC
10506if test -n "$CC"; then
10507 echo "$as_me:$LINENO: result: $CC" >&5
10508echo "${ECHO_T}$CC" >&6
10509else
10510 echo "$as_me:$LINENO: result: no" >&5
10511echo "${ECHO_T}no" >&6
10512fi
10513
10514fi
10515if test -z "$ac_cv_prog_CC"; then
10516 ac_ct_CC=$CC
10517 # Extract the first word of "cc", so it can be a program name with args.
10518set dummy cc; ac_word=$2
10519echo "$as_me:$LINENO: checking for $ac_word" >&5
10520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523else
10524 if test -n "$ac_ct_CC"; then
10525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10526else
10527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528for as_dir in $PATH
10529do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_prog_ac_ct_CC="cc"
10535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538done
10539done
10540
10541fi
10542fi
10543ac_ct_CC=$ac_cv_prog_ac_ct_CC
10544if test -n "$ac_ct_CC"; then
10545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10546echo "${ECHO_T}$ac_ct_CC" >&6
10547else
10548 echo "$as_me:$LINENO: result: no" >&5
10549echo "${ECHO_T}no" >&6
10550fi
10551
10552 CC=$ac_ct_CC
10553else
10554 CC="$ac_cv_prog_CC"
10555fi
10556
10557fi
10558if test -z "$CC"; then
10559 # Extract the first word of "cc", so it can be a program name with args.
10560set dummy cc; ac_word=$2
10561echo "$as_me:$LINENO: checking for $ac_word" >&5
10562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563if test "${ac_cv_prog_CC+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566 if test -n "$CC"; then
10567 ac_cv_prog_CC="$CC" # Let the user override the test.
10568else
10569 ac_prog_rejected=no
10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571for as_dir in $PATH
10572do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10578 ac_prog_rejected=yes
10579 continue
10580 fi
10581 ac_cv_prog_CC="cc"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585done
10586done
10587
10588if test $ac_prog_rejected = yes; then
10589 # We found a bogon in the path, so make sure we never use it.
10590 set dummy $ac_cv_prog_CC
10591 shift
10592 if test $# != 0; then
10593 # We chose a different compiler from the bogus one.
10594 # However, it has the same basename, so the bogon will be chosen
10595 # first if we set CC to just the basename; use the full file name.
10596 shift
10597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10598 fi
10599fi
10600fi
10601fi
10602CC=$ac_cv_prog_CC
10603if test -n "$CC"; then
10604 echo "$as_me:$LINENO: result: $CC" >&5
10605echo "${ECHO_T}$CC" >&6
10606else
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
10609fi
10610
10611fi
10612if test -z "$CC"; then
10613 if test -n "$ac_tool_prefix"; then
10614 for ac_prog in cl
10615 do
10616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10620if test "${ac_cv_prog_CC+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623 if test -n "$CC"; then
10624 ac_cv_prog_CC="$CC" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
10640fi
10641fi
10642CC=$ac_cv_prog_CC
10643if test -n "$CC"; then
10644 echo "$as_me:$LINENO: result: $CC" >&5
10645echo "${ECHO_T}$CC" >&6
10646else
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
10649fi
10650
10651 test -n "$CC" && break
10652 done
10653fi
10654if test -z "$CC"; then
10655 ac_ct_CC=$CC
10656 for ac_prog in cl
10657do
10658 # Extract the first word of "$ac_prog", so it can be a program name with args.
10659set dummy $ac_prog; ac_word=$2
10660echo "$as_me:$LINENO: checking for $ac_word" >&5
10661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665 if test -n "$ac_ct_CC"; then
10666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10667else
10668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669for as_dir in $PATH
10670do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10675 ac_cv_prog_ac_ct_CC="$ac_prog"
10676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679done
10680done
10681
10682fi
10683fi
10684ac_ct_CC=$ac_cv_prog_ac_ct_CC
10685if test -n "$ac_ct_CC"; then
10686 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10687echo "${ECHO_T}$ac_ct_CC" >&6
10688else
10689 echo "$as_me:$LINENO: result: no" >&5
10690echo "${ECHO_T}no" >&6
10691fi
10692
10693 test -n "$ac_ct_CC" && break
10694done
10695
10696 CC=$ac_ct_CC
10697fi
10698
10699fi
10700
10701
10702test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10703See \`config.log' for more details." >&5
10704echo "$as_me: error: no acceptable C compiler found in \$PATH
10705See \`config.log' for more details." >&2;}
10706 { (exit 1); exit 1; }; }
10707
10708# Provide some information about the compiler.
10709echo "$as_me:$LINENO:" \
10710 "checking for C compiler version" >&5
10711ac_compiler=`set X $ac_compile; echo $2`
10712{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10713 (eval $ac_compiler --version </dev/null >&5) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
10717{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10718 (eval $ac_compiler -v </dev/null >&5) 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }
10722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10723 (eval $ac_compiler -V </dev/null >&5) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }
10727
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735int
10736main ()
10737{
10738
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743ac_clean_files_save=$ac_clean_files
10744ac_clean_files="$ac_clean_files a.out a.exe b.out"
10745# Try to create an executable without -o first, disregard a.out.
10746# It will help us diagnose broken compilers, and finding out an intuition
10747# of exeext.
ac1cb8d3
VS
10748echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10749echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10750ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10751if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10752 (eval $ac_link_default) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; then
10756 # Find the output, starting from the most likely. This scheme is
10757# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10758# resort.
10759
10760# Be careful to initialize this variable, since it used to be cached.
10761# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10762ac_cv_exeext=
10763# b.out is created by i960 compilers.
10764for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10765do
10766 test -f "$ac_file" || continue
10767 case $ac_file in
10768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10769 ;;
a848cd7e 10770 conftest.$ac_ext )
ac1cb8d3
VS
10771 # This is the source file.
10772 ;;
a848cd7e 10773 [ab].out )
ac1cb8d3
VS
10774 # We found the default executable, but exeext='' is most
10775 # certainly right.
10776 break;;
a848cd7e 10777 *.* )
ac1cb8d3
VS
10778 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10779 # FIXME: I believe we export ac_cv_exeext for Libtool,
10780 # but it would be cool to find out if it's true. Does anybody
10781 # maintain Libtool? --akim.
10782 export ac_cv_exeext
10783 break;;
a848cd7e 10784 * )
ac1cb8d3 10785 break;;
a848cd7e
SC
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: C compiler cannot create executables
10795See \`config.log' for more details." >&2;}
10796 { (exit 77); exit 77; }; }
10797fi
10798
10799ac_exeext=$ac_cv_exeext
10800echo "$as_me:$LINENO: result: $ac_file" >&5
10801echo "${ECHO_T}$ac_file" >&6
10802
10803# Check the compiler produces executables we can run. If not, either
10804# the compiler is broken, or we cross compile.
10805echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10806echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10807# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10808# If not cross compiling, check that we can run a simple program.
10809if test "$cross_compiling" != yes; then
10810 if { ac_try='./$ac_file'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 cross_compiling=no
10817 else
10818 if test "$cross_compiling" = maybe; then
10819 cross_compiling=yes
10820 else
10821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10822If you meant to cross compile, use \`--host'.
10823See \`config.log' for more details." >&5
10824echo "$as_me: error: cannot run C compiled programs.
10825If you meant to cross compile, use \`--host'.
10826See \`config.log' for more details." >&2;}
10827 { (exit 1); exit 1; }; }
10828 fi
10829 fi
10830fi
10831echo "$as_me:$LINENO: result: yes" >&5
10832echo "${ECHO_T}yes" >&6
10833
10834rm -f a.out a.exe conftest$ac_cv_exeext b.out
10835ac_clean_files=$ac_clean_files_save
10836# Check the compiler produces executables we can run. If not, either
10837# the compiler is broken, or we cross compile.
10838echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10839echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10840echo "$as_me:$LINENO: result: $cross_compiling" >&5
10841echo "${ECHO_T}$cross_compiling" >&6
10842
10843echo "$as_me:$LINENO: checking for suffix of executables" >&5
10844echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; then
10850 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10851# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10852# work properly (i.e., refer to `conftest.exe'), while it won't with
10853# `rm'.
10854for ac_file in conftest.exe conftest conftest.*; do
10855 test -f "$ac_file" || continue
10856 case $ac_file in
10857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10859 export ac_cv_exeext
10860 break;;
a848cd7e
SC
10861 * ) break;;
10862 esac
10863done
10864else
10865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10866See \`config.log' for more details." >&5
10867echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10868See \`config.log' for more details." >&2;}
10869 { (exit 1); exit 1; }; }
10870fi
10871
10872rm -f conftest$ac_cv_exeext
10873echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10874echo "${ECHO_T}$ac_cv_exeext" >&6
10875
10876rm -f conftest.$ac_ext
10877EXEEXT=$ac_cv_exeext
10878ac_exeext=$EXEEXT
10879echo "$as_me:$LINENO: checking for suffix of object files" >&5
10880echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10881if test "${ac_cv_objext+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h. */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
10889/* end confdefs.h. */
10890
10891int
10892main ()
10893{
10894
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.o conftest.obj
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; then
10905 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10906 case $ac_file in
10907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10909 break;;
10910 esac
10911done
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10917See \`config.log' for more details." >&5
10918echo "$as_me: error: cannot compute suffix of object files: cannot compile
10919See \`config.log' for more details." >&2;}
10920 { (exit 1); exit 1; }; }
10921fi
10922
10923rm -f conftest.$ac_cv_objext conftest.$ac_ext
10924fi
10925echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10926echo "${ECHO_T}$ac_cv_objext" >&6
10927OBJEXT=$ac_cv_objext
10928ac_objext=$OBJEXT
10929echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10930echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10931if test "${ac_cv_c_compiler_gnu+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933else
10934 cat >conftest.$ac_ext <<_ACEOF
10935/* confdefs.h. */
10936_ACEOF
10937cat confdefs.h >>conftest.$ac_ext
10938cat >>conftest.$ac_ext <<_ACEOF
10939/* end confdefs.h. */
10940
10941int
10942main ()
10943{
10944#ifndef __GNUC__
10945 choke me
10946#endif
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952rm -f conftest.$ac_objext
10953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10954 (eval $ac_compile) 2>conftest.er1
a848cd7e 10955 ac_status=$?
ac1cb8d3
VS
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
a848cd7e
SC
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
5f652d0d
VS
10961 { ac_try='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
ac1cb8d3
VS
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_compiler_gnu=yes
10975else
10976 echo "$as_me: failed program was:" >&5
10977sed 's/^/| /' conftest.$ac_ext >&5
10978
10979ac_compiler_gnu=no
10980fi
ac1cb8d3 10981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10982ac_cv_c_compiler_gnu=$ac_compiler_gnu
10983
10984fi
10985echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10986echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10987GCC=`test $ac_compiler_gnu = yes && echo yes`
10988ac_test_CFLAGS=${CFLAGS+set}
10989ac_save_CFLAGS=$CFLAGS
10990CFLAGS="-g"
10991echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10992echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10993if test "${ac_cv_prog_cc_g+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002
11003int
11004main ()
11005{
11006
11007 ;
11008 return 0;
11009}
11010_ACEOF
11011rm -f conftest.$ac_objext
11012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11013 (eval $ac_compile) 2>conftest.er1
a848cd7e 11014 ac_status=$?
ac1cb8d3
VS
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
a848cd7e
SC
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
5f652d0d
VS
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
ac1cb8d3
VS
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_prog_cc_g=yes
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038ac_cv_prog_cc_g=no
11039fi
ac1cb8d3 11040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11041fi
11042echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11043echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11044if test "$ac_test_CFLAGS" = set; then
11045 CFLAGS=$ac_save_CFLAGS
11046elif test $ac_cv_prog_cc_g = yes; then
11047 if test "$GCC" = yes; then
11048 CFLAGS="-g -O2"
11049 else
11050 CFLAGS="-g"
11051 fi
11052else
11053 if test "$GCC" = yes; then
11054 CFLAGS="-O2"
11055 else
11056 CFLAGS=
11057 fi
11058fi
11059echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11060echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11061if test "${ac_cv_prog_cc_stdc+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063else
11064 ac_cv_prog_cc_stdc=no
11065ac_save_CC=$CC
11066cat >conftest.$ac_ext <<_ACEOF
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072#include <stdarg.h>
11073#include <stdio.h>
11074#include <sys/types.h>
11075#include <sys/stat.h>
11076/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11077struct buf { int x; };
11078FILE * (*rcsopen) (struct buf *, struct stat *, int);
11079static char *e (p, i)
11080 char **p;
11081 int i;
11082{
11083 return p[i];
11084}
11085static char *f (char * (*g) (char **, int), char **p, ...)
11086{
11087 char *s;
11088 va_list v;
11089 va_start (v,p);
11090 s = g (p, va_arg (v,int));
11091 va_end (v);
11092 return s;
11093}
ac1cb8d3
VS
11094
11095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11096 function prototypes and stuff, but not '\xHH' hex character constants.
11097 These don't provoke an error unfortunately, instead are silently treated
11098 as 'x'. The following induces an error, until -std1 is added to get
11099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11100 array size at least. It's necessary to write '\x00'==0 to get something
11101 that's true only with -std1. */
11102int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11103
a848cd7e
SC
11104int test (int i, double x);
11105struct s1 {int (*f) (int a);};
11106struct s2 {int (*f) (double a);};
11107int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11108int argc;
11109char **argv;
11110int
11111main ()
11112{
11113return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11114 ;
11115 return 0;
11116}
11117_ACEOF
11118# Don't try gcc -ansi; that turns off useful extensions and
11119# breaks some systems' header files.
11120# AIX -qlanglvl=ansi
11121# Ultrix and OSF/1 -std1
11122# HP-UX 10.20 and later -Ae
11123# HP-UX older versions -Aa -D_HPUX_SOURCE
11124# SVR4 -Xc -D__EXTENSIONS__
11125for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11126do
11127 CC="$ac_save_CC $ac_arg"
11128 rm -f conftest.$ac_objext
11129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11130 (eval $ac_compile) 2>conftest.er1
a848cd7e 11131 ac_status=$?
ac1cb8d3
VS
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
a848cd7e
SC
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
5f652d0d
VS
11137 { ac_try='test -z "$ac_c_werror_flag"
11138 || test ! -s conftest.err'
ac1cb8d3
VS
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_prog_cc_stdc=$ac_arg
11151break
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156fi
ac1cb8d3 11157rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11158done
11159rm -f conftest.$ac_ext conftest.$ac_objext
11160CC=$ac_save_CC
11161
11162fi
11163
11164case "x$ac_cv_prog_cc_stdc" in
11165 x|xno)
11166 echo "$as_me:$LINENO: result: none needed" >&5
11167echo "${ECHO_T}none needed" >&6 ;;
11168 *)
11169 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11170echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11171 CC="$CC $ac_cv_prog_cc_stdc" ;;
11172esac
11173
11174# Some people use a C++ compiler to compile C. Since we use `exit',
11175# in C++ we need to declare it. In case someone uses the same compiler
11176# for both compiling C and C++ we need to have the C++ compiler decide
11177# the declaration of exit, since it's the most demanding environment.
11178cat >conftest.$ac_ext <<_ACEOF
11179#ifndef __cplusplus
11180 choke me
11181#endif
11182_ACEOF
11183rm -f conftest.$ac_objext
11184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11185 (eval $ac_compile) 2>conftest.er1
a848cd7e 11186 ac_status=$?
ac1cb8d3
VS
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
a848cd7e
SC
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } &&
5f652d0d
VS
11192 { ac_try='test -z "$ac_c_werror_flag"
11193 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 for ac_declaration in \
ac1cb8d3 11206 '' \
a848cd7e
SC
11207 'extern "C" void std::exit (int) throw (); using std::exit;' \
11208 'extern "C" void std::exit (int); using std::exit;' \
11209 'extern "C" void exit (int) throw ();' \
11210 'extern "C" void exit (int);' \
11211 'void exit (int);'
11212do
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
de59c161 11219$ac_declaration
ac1cb8d3 11220#include <stdlib.h>
a848cd7e
SC
11221int
11222main ()
11223{
11224exit (42);
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.$ac_objext
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11231 (eval $ac_compile) 2>conftest.er1
a848cd7e 11232 ac_status=$?
ac1cb8d3
VS
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
a848cd7e
SC
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } &&
5f652d0d
VS
11238 { ac_try='test -z "$ac_c_werror_flag"
11239 || test ! -s conftest.err'
ac1cb8d3
VS
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 :
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256continue
11257fi
ac1cb8d3 11258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11259 cat >conftest.$ac_ext <<_ACEOF
11260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
11265$ac_declaration
11266int
11267main ()
11268{
11269exit (42);
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274rm -f conftest.$ac_objext
11275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11276 (eval $ac_compile) 2>conftest.er1
a848cd7e 11277 ac_status=$?
ac1cb8d3
VS
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
a848cd7e
SC
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
5f652d0d
VS
11283 { ac_try='test -z "$ac_c_werror_flag"
11284 || test ! -s conftest.err'
ac1cb8d3
VS
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; } &&
11290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 break
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301fi
ac1cb8d3 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11303done
11304rm -f conftest*
11305if test -n "$ac_declaration"; then
11306 echo '#ifdef __cplusplus' >>confdefs.h
11307 echo $ac_declaration >>confdefs.h
11308 echo '#endif' >>confdefs.h
11309fi
11310
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315fi
ac1cb8d3 11316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11317ac_ext=c
11318ac_cpp='$CPP $CPPFLAGS'
11319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11321ac_compiler_gnu=$ac_cv_c_compiler_gnu
11322
11323
11324
11325ac_ext=c
11326ac_cpp='$CPP $CPPFLAGS'
11327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329ac_compiler_gnu=$ac_cv_c_compiler_gnu
11330echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11331echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11332# On Suns, sometimes $CPP names a directory.
11333if test -n "$CPP" && test -d "$CPP"; then
11334 CPP=
11335fi
11336if test -z "$CPP"; then
11337 if test "${ac_cv_prog_CPP+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 # Double quotes because CPP needs to be expanded
11341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11342 do
11343 ac_preproc_ok=false
11344for ac_c_preproc_warn_flag in '' yes
11345do
11346 # Use a header file that comes with gcc, so configuring glibc
11347 # with a fresh cross-compiler works.
11348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11349 # <limits.h> exists even on freestanding compilers.
11350 # On the NeXT, cc -E runs the code through the compiler's parser,
11351 # not just through cpp. "Syntax error" is here to catch this case.
11352 cat >conftest.$ac_ext <<_ACEOF
11353/* confdefs.h. */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
11358#ifdef __STDC__
11359# include <limits.h>
11360#else
11361# include <assert.h>
11362#endif
ac1cb8d3 11363 Syntax error
a848cd7e
SC
11364_ACEOF
11365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } >/dev/null; then
11373 if test -s conftest.err; then
11374 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11376 else
11377 ac_cpp_err=
11378 fi
11379else
11380 ac_cpp_err=yes
11381fi
11382if test -z "$ac_cpp_err"; then
11383 :
11384else
11385 echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 # Broken: fails on valid input.
11389continue
11390fi
11391rm -f conftest.err conftest.$ac_ext
11392
11393 # OK, works on sane cases. Now check whether non-existent headers
11394 # can be detected and how.
11395 cat >conftest.$ac_ext <<_ACEOF
11396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
11401#include <ac_nonexistent.h>
11402_ACEOF
11403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } >/dev/null; then
11411 if test -s conftest.err; then
11412 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11414 else
11415 ac_cpp_err=
11416 fi
11417else
11418 ac_cpp_err=yes
11419fi
11420if test -z "$ac_cpp_err"; then
11421 # Broken: success on invalid input.
11422continue
11423else
11424 echo "$as_me: failed program was:" >&5
11425sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 # Passes both tests.
11428ac_preproc_ok=:
11429break
11430fi
11431rm -f conftest.err conftest.$ac_ext
11432
11433done
11434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11435rm -f conftest.err conftest.$ac_ext
11436if $ac_preproc_ok; then
11437 break
11438fi
11439
11440 done
11441 ac_cv_prog_CPP=$CPP
11442
11443fi
11444 CPP=$ac_cv_prog_CPP
11445else
11446 ac_cv_prog_CPP=$CPP
11447fi
11448echo "$as_me:$LINENO: result: $CPP" >&5
11449echo "${ECHO_T}$CPP" >&6
11450ac_preproc_ok=false
11451for ac_c_preproc_warn_flag in '' yes
11452do
11453 # Use a header file that comes with gcc, so configuring glibc
11454 # with a fresh cross-compiler works.
11455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 # <limits.h> exists even on freestanding compilers.
11457 # On the NeXT, cc -E runs the code through the compiler's parser,
11458 # not just through cpp. "Syntax error" is here to catch this case.
11459 cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465#ifdef __STDC__
11466# include <limits.h>
11467#else
11468# include <assert.h>
11469#endif
ac1cb8d3 11470 Syntax error
a848cd7e
SC
11471_ACEOF
11472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11474 ac_status=$?
11475 grep -v '^ *+' conftest.er1 >conftest.err
11476 rm -f conftest.er1
11477 cat conftest.err >&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } >/dev/null; then
11480 if test -s conftest.err; then
11481 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11483 else
11484 ac_cpp_err=
11485 fi
11486else
11487 ac_cpp_err=yes
11488fi
11489if test -z "$ac_cpp_err"; then
11490 :
11491else
11492 echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 # Broken: fails on valid input.
11496continue
11497fi
11498rm -f conftest.err conftest.$ac_ext
11499
11500 # OK, works on sane cases. Now check whether non-existent headers
11501 # can be detected and how.
11502 cat >conftest.$ac_ext <<_ACEOF
11503/* confdefs.h. */
11504_ACEOF
11505cat confdefs.h >>conftest.$ac_ext
11506cat >>conftest.$ac_ext <<_ACEOF
11507/* end confdefs.h. */
11508#include <ac_nonexistent.h>
11509_ACEOF
11510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } >/dev/null; then
11518 if test -s conftest.err; then
11519 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11521 else
11522 ac_cpp_err=
11523 fi
11524else
11525 ac_cpp_err=yes
11526fi
11527if test -z "$ac_cpp_err"; then
11528 # Broken: success on invalid input.
11529continue
11530else
11531 echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 # Passes both tests.
11535ac_preproc_ok=:
11536break
11537fi
11538rm -f conftest.err conftest.$ac_ext
11539
11540done
11541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11542rm -f conftest.err conftest.$ac_ext
11543if $ac_preproc_ok; then
11544 :
11545else
11546 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11547See \`config.log' for more details." >&5
11548echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11549See \`config.log' for more details." >&2;}
11550 { (exit 1); exit 1; }; }
11551fi
11552
11553ac_ext=c
11554ac_cpp='$CPP $CPPFLAGS'
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558
11559
11560echo "$as_me:$LINENO: checking for egrep" >&5
11561echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11562if test "${ac_cv_prog_egrep+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11566 then ac_cv_prog_egrep='grep -E'
11567 else ac_cv_prog_egrep='egrep'
11568 fi
11569fi
11570echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11571echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11572 EGREP=$ac_cv_prog_egrep
11573
11574
11575if test $ac_cv_c_compiler_gnu = yes; then
11576 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11577echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11578if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 ac_pattern="Autoconf.*'x'"
11582 cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588#include <sgtty.h>
11589Autoconf TIOCGETP
11590_ACEOF
11591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11592 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11593 ac_cv_prog_gcc_traditional=yes
11594else
11595 ac_cv_prog_gcc_traditional=no
11596fi
11597rm -f conftest*
11598
11599
11600 if test $ac_cv_prog_gcc_traditional = no; then
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607#include <termio.h>
11608Autoconf TCGETA
11609_ACEOF
11610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11611 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11612 ac_cv_prog_gcc_traditional=yes
11613fi
11614rm -f conftest*
11615
11616 fi
11617fi
11618echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11619echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11620 if test $ac_cv_prog_gcc_traditional = yes; then
11621 CC="$CC -traditional"
11622 fi
11623fi
11624
11625
11626
11627
11628ac_ext=cc
11629ac_cpp='$CXXCPP $CPPFLAGS'
11630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11633
11634
11635CXXFLAGS=${CXXFLAGS:=}
11636ac_ext=cc
11637ac_cpp='$CXXCPP $CPPFLAGS'
11638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11641if test -n "$ac_tool_prefix"; then
11642 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11643 do
11644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11646echo "$as_me:$LINENO: checking for $ac_word" >&5
11647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11648if test "${ac_cv_prog_CXX+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 if test -n "$CXX"; then
11652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11653else
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665done
11666done
11667
11668fi
11669fi
11670CXX=$ac_cv_prog_CXX
11671if test -n "$CXX"; then
11672 echo "$as_me:$LINENO: result: $CXX" >&5
11673echo "${ECHO_T}$CXX" >&6
11674else
11675 echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6
11677fi
11678
11679 test -n "$CXX" && break
11680 done
11681fi
11682if test -z "$CXX"; then
11683 ac_ct_CXX=$CXX
11684 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11685do
11686 # Extract the first word of "$ac_prog", so it can be a program name with args.
11687set dummy $ac_prog; ac_word=$2
11688echo "$as_me:$LINENO: checking for $ac_word" >&5
11689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11690if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692else
11693 if test -n "$ac_ct_CXX"; then
11694 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703 ac_cv_prog_ac_ct_CXX="$ac_prog"
11704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708done
11709
11710fi
11711fi
11712ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11713if test -n "$ac_ct_CXX"; then
11714 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11715echo "${ECHO_T}$ac_ct_CXX" >&6
11716else
11717 echo "$as_me:$LINENO: result: no" >&5
11718echo "${ECHO_T}no" >&6
11719fi
11720
11721 test -n "$ac_ct_CXX" && break
11722done
11723test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11724
11725 CXX=$ac_ct_CXX
11726fi
11727
11728
11729# Provide some information about the compiler.
11730echo "$as_me:$LINENO:" \
11731 "checking for C++ compiler version" >&5
11732ac_compiler=`set X $ac_compile; echo $2`
11733{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11734 (eval $ac_compiler --version </dev/null >&5) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }
11738{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11739 (eval $ac_compiler -v </dev/null >&5) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }
11743{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11744 (eval $ac_compiler -V </dev/null >&5) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }
11748
11749echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11750echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11751if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760
11761int
11762main ()
11763{
11764#ifndef __GNUC__
11765 choke me
11766#endif
11767
11768 ;
11769 return 0;
11770}
11771_ACEOF
11772rm -f conftest.$ac_objext
11773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11774 (eval $ac_compile) 2>conftest.er1
a848cd7e 11775 ac_status=$?
ac1cb8d3
VS
11776 grep -v '^ *+' conftest.er1 >conftest.err
11777 rm -f conftest.er1
11778 cat conftest.err >&5
a848cd7e
SC
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
5f652d0d
VS
11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
11788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 ac_compiler_gnu=yes
11795else
11796 echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799ac_compiler_gnu=no
11800fi
ac1cb8d3 11801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11802ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11803
11804fi
11805echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11806echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11807GXX=`test $ac_compiler_gnu = yes && echo yes`
11808ac_test_CXXFLAGS=${CXXFLAGS+set}
11809ac_save_CXXFLAGS=$CXXFLAGS
11810CXXFLAGS="-g"
11811echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11812echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11813if test "${ac_cv_prog_cxx_g+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11815else
11816 cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822
11823int
11824main ()
11825{
11826
11827 ;
11828 return 0;
11829}
11830_ACEOF
11831rm -f conftest.$ac_objext
11832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11833 (eval $ac_compile) 2>conftest.er1
a848cd7e 11834 ac_status=$?
ac1cb8d3
VS
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
a848cd7e
SC
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
5f652d0d
VS
11840 { ac_try='test -z "$ac_cxx_werror_flag"
11841 || test ! -s conftest.err'
ac1cb8d3
VS
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; }; then
11853 ac_cv_prog_cxx_g=yes
11854else
11855 echo "$as_me: failed program was:" >&5
11856sed 's/^/| /' conftest.$ac_ext >&5
11857
11858ac_cv_prog_cxx_g=no
11859fi
ac1cb8d3 11860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11861fi
11862echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11863echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11864if test "$ac_test_CXXFLAGS" = set; then
11865 CXXFLAGS=$ac_save_CXXFLAGS
11866elif test $ac_cv_prog_cxx_g = yes; then
11867 if test "$GXX" = yes; then
11868 CXXFLAGS="-g -O2"
11869 else
11870 CXXFLAGS="-g"
11871 fi
11872else
11873 if test "$GXX" = yes; then
11874 CXXFLAGS="-O2"
11875 else
11876 CXXFLAGS=
11877 fi
11878fi
11879for ac_declaration in \
ac1cb8d3 11880 '' \
a848cd7e
SC
11881 'extern "C" void std::exit (int) throw (); using std::exit;' \
11882 'extern "C" void std::exit (int); using std::exit;' \
11883 'extern "C" void exit (int) throw ();' \
11884 'extern "C" void exit (int);' \
11885 'void exit (int);'
11886do
11887 cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
de59c161 11893$ac_declaration
ac1cb8d3 11894#include <stdlib.h>
a848cd7e
SC
11895int
11896main ()
11897{
11898exit (42);
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest.$ac_objext
11904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11905 (eval $ac_compile) 2>conftest.er1
a848cd7e 11906 ac_status=$?
ac1cb8d3
VS
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
a848cd7e
SC
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
5f652d0d
VS
11912 { ac_try='test -z "$ac_cxx_werror_flag"
11913 || test ! -s conftest.err'
ac1cb8d3
VS
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 :
11926else
11927 echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930continue
11931fi
ac1cb8d3 11932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11933 cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939$ac_declaration
11940int
11941main ()
11942{
11943exit (42);
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext
11949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11950 (eval $ac_compile) 2>conftest.er1
a848cd7e 11951 ac_status=$?
ac1cb8d3
VS
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
a848cd7e
SC
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
5f652d0d
VS
11957 { ac_try='test -z "$ac_cxx_werror_flag"
11958 || test ! -s conftest.err'
ac1cb8d3
VS
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; } &&
11964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
11970 break
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
11975fi
ac1cb8d3 11976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11977done
11978rm -f conftest*
11979if test -n "$ac_declaration"; then
11980 echo '#ifdef __cplusplus' >>confdefs.h
11981 echo $ac_declaration >>confdefs.h
11982 echo '#endif' >>confdefs.h
11983fi
11984
11985ac_ext=cc
11986ac_cpp='$CXXCPP $CPPFLAGS'
11987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11990
11991
11992ac_ext=c
11993ac_cpp='$CPP $CPPFLAGS'
11994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11996ac_compiler_gnu=$ac_cv_c_compiler_gnu
11997
11998
a848cd7e
SC
11999if test -n "$ac_tool_prefix"; then
12000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12001set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12002echo "$as_me:$LINENO: checking for $ac_word" >&5
12003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12004if test "${ac_cv_prog_RANLIB+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007 if test -n "$RANLIB"; then
12008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12009else
12010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011for as_dir in $PATH
12012do
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12020 fi
12021done
12022done
12023
12024fi
12025fi
12026RANLIB=$ac_cv_prog_RANLIB
12027if test -n "$RANLIB"; then
12028 echo "$as_me:$LINENO: result: $RANLIB" >&5
12029echo "${ECHO_T}$RANLIB" >&6
12030else
12031 echo "$as_me:$LINENO: result: no" >&5
12032echo "${ECHO_T}no" >&6
12033fi
12034
12035fi
12036if test -z "$ac_cv_prog_RANLIB"; then
12037 ac_ct_RANLIB=$RANLIB
12038 # Extract the first word of "ranlib", so it can be a program name with args.
12039set dummy ranlib; ac_word=$2
12040echo "$as_me:$LINENO: checking for $ac_word" >&5
12041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045 if test -n "$ac_ct_RANLIB"; then
12046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12047else
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_ac_ct_RANLIB="ranlib"
12056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059done
12060done
12061
12062 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12063fi
12064fi
12065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12066if test -n "$ac_ct_RANLIB"; then
12067 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12068echo "${ECHO_T}$ac_ct_RANLIB" >&6
12069else
12070 echo "$as_me:$LINENO: result: no" >&5
12071echo "${ECHO_T}no" >&6
12072fi
12073
12074 RANLIB=$ac_ct_RANLIB
12075else
12076 RANLIB="$ac_cv_prog_RANLIB"
12077fi
12078
12079
12080# Extract the first word of "ar", so it can be a program name with args.
12081set dummy ar; ac_word=$2
12082echo "$as_me:$LINENO: checking for $ac_word" >&5
12083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12084if test "${ac_cv_prog_AR+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 if test -n "$AR"; then
12088 ac_cv_prog_AR="$AR" # Let the user override the test.
12089else
12090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091for as_dir in $PATH
12092do
12093 IFS=$as_save_IFS
12094 test -z "$as_dir" && as_dir=.
12095 for ac_exec_ext in '' $ac_executable_extensions; do
12096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097 ac_cv_prog_AR="ar"
12098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12099 break 2
12100 fi
12101done
12102done
12103
12104fi
12105fi
12106AR=$ac_cv_prog_AR
12107if test -n "$AR"; then
12108 echo "$as_me:$LINENO: result: $AR" >&5
12109echo "${ECHO_T}$AR" >&6
12110else
12111 echo "$as_me:$LINENO: result: no" >&5
12112echo "${ECHO_T}no" >&6
12113fi
12114
12115if test "x$AR" = "x" ; then
77ffb593
JS
12116 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12117echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12118 { (exit 1); exit 1; }; }
12119fi
12120
12121# Find a good install program. We prefer a C program (faster),
12122# so one script is as good as another. But avoid the broken or
12123# incompatible versions:
12124# SysV /etc/install, /usr/sbin/install
12125# SunOS /usr/etc/install
12126# IRIX /sbin/install
12127# AIX /bin/install
12128# AmigaOS /C/install, which installs bootblocks on floppy discs
12129# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12130# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12131# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12132# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12133# ./install, which can be erroneously created by make from ./install.sh.
12134echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12135echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12136if test -z "$INSTALL"; then
12137if test "${ac_cv_path_install+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 # Account for people who put trailing slashes in PATH elements.
12146case $as_dir/ in
12147 ./ | .// | /cC/* | \
12148 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12149 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12150 /usr/ucb/* ) ;;
12151 *)
12152 # OSF1 and SCO ODT 3.0 have their own names for install.
12153 # Don't use installbsd from OSF since it installs stuff as root
12154 # by default.
12155 for ac_prog in ginstall scoinst install; do
12156 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12157 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12158 if test $ac_prog = install &&
12159 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12160 # AIX install. It has an incompatible calling convention.
12161 :
12162 elif test $ac_prog = install &&
12163 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12164 # program-specific install script used by HP pwplus--don't use.
12165 :
12166 else
12167 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12168 break 3
12169 fi
12170 fi
a848cd7e
SC
12171 done
12172 done
12173 ;;
12174esac
12175done
12176
12177
12178fi
12179 if test "${ac_cv_path_install+set}" = set; then
12180 INSTALL=$ac_cv_path_install
12181 else
12182 # As a last resort, use the slow shell script. We don't cache a
12183 # path for INSTALL within a source directory, because that will
12184 # break other packages using the cache if that directory is
12185 # removed, or if the path is relative.
12186 INSTALL=$ac_install_sh
12187 fi
12188fi
12189echo "$as_me:$LINENO: result: $INSTALL" >&5
12190echo "${ECHO_T}$INSTALL" >&6
12191
12192# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12193# It thinks the first close brace ends the variable substitution.
12194test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12195
12196test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12197
12198test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12199
12200
12201case ${INSTALL} in
12202 /* ) # Absolute
12203 ;;
12204 ?:* ) # Drive letter, considered as absolute.
12205 ;;
12206 *)
12207 INSTALL=`pwd`/${INSTALL} ;;
12208esac
12209
a848cd7e
SC
12210
12211case "${host}" in
12212
12213 powerpc-*-darwin* )
12214 INSTALL_PROGRAM="cp -fp"
12215 INSTALL_DATA="cp -fp"
12216 ;;
12217 *)
12218 ;;
12219esac
12220
12221# Extract the first word of "strip", so it can be a program name with args.
12222set dummy strip; ac_word=$2
12223echo "$as_me:$LINENO: checking for $ac_word" >&5
12224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12225if test "${ac_cv_prog_STRIP+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228 if test -n "$STRIP"; then
12229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238 ac_cv_prog_STRIP="strip"
12239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242done
12243done
12244
12245 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12246fi
12247fi
12248STRIP=$ac_cv_prog_STRIP
12249if test -n "$STRIP"; then
12250 echo "$as_me:$LINENO: result: $STRIP" >&5
12251echo "${ECHO_T}$STRIP" >&6
12252else
12253 echo "$as_me:$LINENO: result: no" >&5
12254echo "${ECHO_T}no" >&6
12255fi
12256
12257
12258echo "$as_me:$LINENO: checking if make is GNU make" >&5
12259echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12260if test "${wx_cv_prog_makeisgnu+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263
12264 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12265 egrep -s GNU > /dev/null); then
12266 wx_cv_prog_makeisgnu="yes"
12267 else
12268 wx_cv_prog_makeisgnu="no"
12269 fi
12270
12271fi
12272echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12273echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12274
12275if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12276 IF_GNU_MAKE=""
12277else
12278 IF_GNU_MAKE="#"
12279fi
12280
12281
12282
12283if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12284echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12285echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12286if test "${wx_cv_prog_makevpath+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288else
12289
12290cat - << EOF > confMake
12291check : file
12292 cp \$? \$@
12293 cp \$? final_file
12294EOF
12295
12296if test ! -d sub ; then
12297 mkdir sub
12298fi
12299echo dummy > sub/file
12300${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12301RESULT=$?
12302rm -f sub/file check final_file confMake
12303rmdir sub
12304if test "$RESULT" = 0; then
12305 wx_cv_prog_makevpath="yes"
12306else
12307 wx_cv_prog_makevpath="no"
12308fi
12309
12310fi
12311echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12312echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12313
12314if test "x$wx_cv_prog_makevpath" != "xyes"; then
12315{ { echo "$as_me:$LINENO: error:
12316You need a make-utility that is able to use the variable
12317VPATH correctly.
12318If your version of make does not support VPATH correctly,
12319please install GNU-make (possibly as gmake), and start
12320configure with the following command:
12321export MAKE=gmake; ./configure for sh-type shells
12322setenv MAKE gmake; ./configure for csh-type shells
12323Also please do remember to use gmake in this case every time
12324you are trying to compile.
12325" >&5
12326echo "$as_me: error:
12327You need a make-utility that is able to use the variable
12328VPATH correctly.
12329If your version of make does not support VPATH correctly,
12330please install GNU-make (possibly as gmake), and start
12331configure with the following command:
12332export MAKE=gmake; ./configure for sh-type shells
12333setenv MAKE gmake; ./configure for csh-type shells
12334Also please do remember to use gmake in this case every time
12335you are trying to compile.
12336" >&2;}
12337 { (exit 1); exit 1; }; }
12338fi fi
12339echo "$as_me:$LINENO: checking whether ln -s works" >&5
12340echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12341LN_S=$as_ln_s
12342if test "$LN_S" = "ln -s"; then
12343 echo "$as_me:$LINENO: result: yes" >&5
12344echo "${ECHO_T}yes" >&6
12345else
12346 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12347echo "${ECHO_T}no, using $LN_S" >&6
12348fi
12349
12350
12351
12352case "${host}" in
12353 *-pc-os2_emx | *-pc-os2-emx )
12354 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12355 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12356echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12357if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359else
12360 ac_check_lib_save_LIBS=$LIBS
12361LIBS="-lcExt $LIBS"
12362cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368
12369/* Override any gcc2 internal prototype to avoid an error. */
12370#ifdef __cplusplus
12371extern "C"
12372#endif
12373/* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12375char drand48 ();
12376int
12377main ()
12378{
12379drand48 ();
12380 ;
12381 return 0;
12382}
12383_ACEOF
12384rm -f conftest.$ac_objext conftest$ac_exeext
12385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12386 (eval $ac_link) 2>conftest.er1
a848cd7e 12387 ac_status=$?
ac1cb8d3
VS
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
a848cd7e
SC
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
5f652d0d
VS
12393 { ac_try='test -z "$ac_c_werror_flag"
12394 || test ! -s conftest.err'
ac1cb8d3
VS
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 ac_cv_lib_cExt_drand48=yes
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411ac_cv_lib_cExt_drand48=no
12412fi
ac1cb8d3
VS
12413rm -f conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12415LIBS=$ac_check_lib_save_LIBS
12416fi
12417echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12418echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12419if test $ac_cv_lib_cExt_drand48 = yes; then
12420 LIBS="$LIBS -lcExt"
12421fi
12422
12423 else
12424 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12425 fi
12426 echo "$as_me:$LINENO: checking for gcc version" >&5
12427echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12428if test "${wx_cv_gccversion+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431
12432 cat >conftest.$ac_ext <<_ACEOF
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h. */
12438
12439int
12440main ()
12441{
12442
12443 #if (__GNUC__ < 3)
12444 #error old gcc
12445 #endif
12446
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext
12452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12453 (eval $ac_compile) 2>conftest.er1
a848cd7e 12454 ac_status=$?
ac1cb8d3
VS
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
a848cd7e
SC
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
5f652d0d
VS
12460 { ac_try='test -z "$ac_c_werror_flag"
12461 || test ! -s conftest.err'
ac1cb8d3
VS
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473
12474 cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480
12481int
12482main ()
12483{
12484
12485 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12486 #error intermediate gcc
12487 #endif
12488
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext
12494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12495 (eval $ac_compile) 2>conftest.er1
a848cd7e 12496 ac_status=$?
ac1cb8d3
VS
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
a848cd7e
SC
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
5f652d0d
VS
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
ac1cb8d3
VS
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515
12516 wx_cv_gccversion=Innotek
12517
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522
12523 wx_cv_gccversion=3
12524
12525
12526fi
ac1cb8d3 12527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12528
12529else
12530 echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
12533
12534 wx_cv_gccversion=2
12535
12536
12537fi
ac1cb8d3 12538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12539
12540fi
12541echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12542echo "${ECHO_T}$wx_cv_gccversion" >&6
12543 if test "$wx_cv_gccversion" = "2"; then
12544 LIBS="$LIBS -lstdcpp"
12545 LDFLAGS="$LDFLAGS -Zsysv-signals"
12546 else
12547 if test "$wx_cv_gccversion" = "3"; then
12548 LIBS="$LIBS -lstdcxx"
12549 LDFLAGS="$LDFLAGS -Zsysv-signals"
12550 else
12551 LIBS="$LIBS -lstdc++"
12552 fi
12553 fi
12554 if test "$wxUSE_OMF" = "yes"; then
de59c161 12555 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12556 fi
12557 ;;
12558 *)
12559
12560
12561
12562 ac_ext=cc
12563ac_cpp='$CXXCPP $CPPFLAGS'
12564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567
12568
12569
12570echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12571echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12572if test "${ac_cv_string_strcasecmp+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575
12576 cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h. */
12582
12583 #include <string.h>
12584
12585int
12586main ()
12587{
12588
12589 strcasecmp("foo", "bar");
12590
12591 ;
12592 return 0;
12593}
12594_ACEOF
12595rm -f conftest.$ac_objext conftest$ac_exeext
12596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12597 (eval $ac_link) 2>conftest.er1
a848cd7e 12598 ac_status=$?
ac1cb8d3
VS
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
a848cd7e
SC
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
5f652d0d
VS
12604 { ac_try='test -z "$ac_cxx_werror_flag"
12605 || test ! -s conftest.err'
ac1cb8d3
VS
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_cv_string_strcasecmp=yes
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622ac_cv_string_strcasecmp=no
12623
12624fi
ac1cb8d3
VS
12625rm -f conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12627
12628fi
12629echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12630echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12631
12632 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12633 cat >>confdefs.h <<\_ACEOF
12634#define HAVE_STRCASECMP_IN_STRING_H 1
12635_ACEOF
12636
12637 else
12638 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12639echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12640if test "${ac_cv_strings_strcasecmp+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643
12644 cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650
12651 #include <strings.h>
12652
12653int
12654main ()
12655{
12656
12657 strcasecmp("foo", "bar");
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext conftest$ac_exeext
12664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12665 (eval $ac_link) 2>conftest.er1
a848cd7e 12666 ac_status=$?
ac1cb8d3
VS
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
a848cd7e
SC
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
5f652d0d
VS
12672 { ac_try='test -z "$ac_cxx_werror_flag"
12673 || test ! -s conftest.err'
ac1cb8d3
VS
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_strings_strcasecmp=yes
12686else
12687 echo "$as_me: failed program was:" >&5
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
12690ac_cv_strings_strcasecmp=no
12691
12692fi
ac1cb8d3
VS
12693rm -f conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12695
12696fi
12697echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12698echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12699
0c3c69fc 12700 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12701 cat >>confdefs.h <<\_ACEOF
12702#define HAVE_STRCASECMP_IN_STRINGS_H 1
12703_ACEOF
12704
12705 else
12706 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12707echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12708 { (exit 1); exit 1; }; }
12709 fi
12710 fi
12711
12712 ac_ext=c
12713ac_cpp='$CPP $CPPFLAGS'
12714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718 ;;
12719esac
12720
12721
12722echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12723echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12724if test "${ac_cv_header_stdc+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733#include <stdlib.h>
12734#include <stdarg.h>
12735#include <string.h>
12736#include <float.h>
12737
12738int
12739main ()
12740{
12741
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12748 (eval $ac_compile) 2>conftest.er1
a848cd7e 12749 ac_status=$?
ac1cb8d3
VS
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
a848cd7e
SC
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
5f652d0d
VS
12755 { ac_try='test -z "$ac_c_werror_flag"
12756 || test ! -s conftest.err'
ac1cb8d3
VS
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_header_stdc=yes
12769else
12770 echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773ac_cv_header_stdc=no
12774fi
ac1cb8d3 12775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12776
12777if test $ac_cv_header_stdc = yes; then
12778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12779 cat >conftest.$ac_ext <<_ACEOF
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
12785#include <string.h>
12786
12787_ACEOF
12788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12789 $EGREP "memchr" >/dev/null 2>&1; then
12790 :
12791else
12792 ac_cv_header_stdc=no
12793fi
12794rm -f conftest*
12795
12796fi
12797
12798if test $ac_cv_header_stdc = yes; then
12799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12800 cat >conftest.$ac_ext <<_ACEOF
12801/* confdefs.h. */
12802_ACEOF
12803cat confdefs.h >>conftest.$ac_ext
12804cat >>conftest.$ac_ext <<_ACEOF
12805/* end confdefs.h. */
12806#include <stdlib.h>
12807
12808_ACEOF
12809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810 $EGREP "free" >/dev/null 2>&1; then
12811 :
12812else
12813 ac_cv_header_stdc=no
12814fi
12815rm -f conftest*
12816
12817fi
12818
12819if test $ac_cv_header_stdc = yes; then
12820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12821 if test "$cross_compiling" = yes; then
12822 :
12823else
12824 cat >conftest.$ac_ext <<_ACEOF
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
12829/* end confdefs.h. */
12830#include <ctype.h>
12831#if ((' ' & 0x0FF) == 0x020)
12832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12834#else
12835# define ISLOWER(c) \
ac1cb8d3
VS
12836 (('a' <= (c) && (c) <= 'i') \
12837 || ('j' <= (c) && (c) <= 'r') \
12838 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12840#endif
12841
12842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12843int
12844main ()
12845{
12846 int i;
12847 for (i = 0; i < 256; i++)
12848 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12849 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12850 exit(2);
12851 exit (0);
12852}
12853_ACEOF
12854rm -f conftest$ac_exeext
12855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 :
12866else
12867 echo "$as_me: program exited with status $ac_status" >&5
12868echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871( exit $ac_status )
12872ac_cv_header_stdc=no
12873fi
ac1cb8d3 12874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12875fi
12876fi
12877fi
12878echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12879echo "${ECHO_T}$ac_cv_header_stdc" >&6
12880if test $ac_cv_header_stdc = yes; then
12881
12882cat >>confdefs.h <<\_ACEOF
12883#define STDC_HEADERS 1
12884_ACEOF
12885
12886fi
12887
12888# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12899 inttypes.h stdint.h unistd.h
a848cd7e
SC
12900do
12901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12902echo "$as_me:$LINENO: checking for $ac_header" >&5
12903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12904if eval "test \"\${$as_ac_Header+set}\" = set"; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906else
12907 cat >conftest.$ac_ext <<_ACEOF
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
12913$ac_includes_default
12914
12915#include <$ac_header>
12916_ACEOF
12917rm -f conftest.$ac_objext
12918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12919 (eval $ac_compile) 2>conftest.er1
a848cd7e 12920 ac_status=$?
ac1cb8d3
VS
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
a848cd7e
SC
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } &&
5f652d0d
VS
12926 { ac_try='test -z "$ac_c_werror_flag"
12927 || test ! -s conftest.err'
ac1cb8d3
VS
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 eval "$as_ac_Header=yes"
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944eval "$as_ac_Header=no"
12945fi
ac1cb8d3 12946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12947fi
12948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12950if test `eval echo '${'$as_ac_Header'}'` = yes; then
12951 cat >>confdefs.h <<_ACEOF
12952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12953_ACEOF
12954
12955fi
12956
12957done
12958
12959
12960
12961for ac_header in stdlib.h
12962do
12963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965 echo "$as_me:$LINENO: checking for $ac_header" >&5
12966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969fi
12970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12972else
12973 # Is the header compilable?
12974echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12976cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982$ac_includes_default
12983#include <$ac_header>
12984_ACEOF
12985rm -f conftest.$ac_objext
12986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12987 (eval $ac_compile) 2>conftest.er1
a848cd7e 12988 ac_status=$?
ac1cb8d3
VS
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
a848cd7e
SC
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
5f652d0d
VS
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
ac1cb8d3
VS
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_header_compiler=yes
13008else
13009 echo "$as_me: failed program was:" >&5
13010sed 's/^/| /' conftest.$ac_ext >&5
13011
13012ac_header_compiler=no
13013fi
ac1cb8d3 13014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13016echo "${ECHO_T}$ac_header_compiler" >&6
13017
13018# Is the header present?
13019echo "$as_me:$LINENO: checking $ac_header presence" >&5
13020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13021cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027#include <$ac_header>
13028_ACEOF
13029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } >/dev/null; then
13037 if test -s conftest.err; then
13038 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13040 else
13041 ac_cpp_err=
13042 fi
13043else
13044 ac_cpp_err=yes
13045fi
13046if test -z "$ac_cpp_err"; then
13047 ac_header_preproc=yes
13048else
13049 echo "$as_me: failed program was:" >&5
13050sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_header_preproc=no
13053fi
13054rm -f conftest.err conftest.$ac_ext
13055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13056echo "${ECHO_T}$ac_header_preproc" >&6
13057
13058# So? What about this header?
ac1cb8d3
VS
13059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13060 yes:no: )
a848cd7e
SC
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13065 ac_header_preproc=yes
a848cd7e 13066 ;;
ac1cb8d3 13067 no:yes:* )
a848cd7e
SC
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13080 (
13081 cat <<\_ASBOX
ac1cb8d3
VS
13082## ----------------------------------------- ##
13083## Report this to wx-dev@lists.wxwidgets.org ##
13084## ----------------------------------------- ##
a848cd7e
SC
13085_ASBOX
13086 ) |
13087 sed "s/^/$as_me: WARNING: /" >&2
13088 ;;
13089esac
13090echo "$as_me:$LINENO: checking for $ac_header" >&5
13091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
ac1cb8d3 13095 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13096fi
13097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13099
13100fi
13101if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102 cat >>confdefs.h <<_ACEOF
13103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13104_ACEOF
13105
13106fi
13107
13108done
13109
13110
13111for ac_header in malloc.h
13112do
13113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114if eval "test \"\${$as_ac_Header+set}\" = set"; then
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119fi
13120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13122else
13123 # Is the header compilable?
13124echo "$as_me:$LINENO: checking $ac_header usability" >&5
13125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13126cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132$ac_includes_default
13133#include <$ac_header>
13134_ACEOF
13135rm -f conftest.$ac_objext
13136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13137 (eval $ac_compile) 2>conftest.er1
a848cd7e 13138 ac_status=$?
ac1cb8d3
VS
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
a848cd7e
SC
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } &&
5f652d0d
VS
13144 { ac_try='test -z "$ac_c_werror_flag"
13145 || test ! -s conftest.err'
ac1cb8d3
VS
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_header_compiler=yes
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162ac_header_compiler=no
13163fi
ac1cb8d3 13164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13166echo "${ECHO_T}$ac_header_compiler" >&6
13167
13168# Is the header present?
13169echo "$as_me:$LINENO: checking $ac_header presence" >&5
13170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13171cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177#include <$ac_header>
13178_ACEOF
13179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } >/dev/null; then
13187 if test -s conftest.err; then
13188 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13190 else
13191 ac_cpp_err=
13192 fi
13193else
13194 ac_cpp_err=yes
13195fi
13196if test -z "$ac_cpp_err"; then
13197 ac_header_preproc=yes
13198else
13199 echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 ac_header_preproc=no
13203fi
13204rm -f conftest.err conftest.$ac_ext
13205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206echo "${ECHO_T}$ac_header_preproc" >&6
13207
13208# So? What about this header?
ac1cb8d3
VS
13209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13210 yes:no: )
a848cd7e
SC
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
a848cd7e 13216 ;;
ac1cb8d3 13217 no:yes:* )
a848cd7e
SC
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13230 (
13231 cat <<\_ASBOX
ac1cb8d3
VS
13232## ----------------------------------------- ##
13233## Report this to wx-dev@lists.wxwidgets.org ##
13234## ----------------------------------------- ##
a848cd7e
SC
13235_ASBOX
13236 ) |
13237 sed "s/^/$as_me: WARNING: /" >&2
13238 ;;
13239esac
13240echo "$as_me:$LINENO: checking for $ac_header" >&5
13241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13242if eval "test \"\${$as_ac_Header+set}\" = set"; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244else
ac1cb8d3 13245 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13246fi
13247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13249
13250fi
13251if test `eval echo '${'$as_ac_Header'}'` = yes; then
13252 cat >>confdefs.h <<_ACEOF
13253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13254_ACEOF
13255
13256fi
13257
13258done
13259
13260
13261for ac_header in unistd.h
13262do
13263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13264if eval "test \"\${$as_ac_Header+set}\" = set"; then
13265 echo "$as_me:$LINENO: checking for $ac_header" >&5
13266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13267if eval "test \"\${$as_ac_Header+set}\" = set"; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269fi
13270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13272else
13273 # Is the header compilable?
13274echo "$as_me:$LINENO: checking $ac_header usability" >&5
13275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13276cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282$ac_includes_default
13283#include <$ac_header>
13284_ACEOF
13285rm -f conftest.$ac_objext
13286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13287 (eval $ac_compile) 2>conftest.er1
a848cd7e 13288 ac_status=$?
ac1cb8d3
VS
13289 grep -v '^ *+' conftest.er1 >conftest.err
13290 rm -f conftest.er1
13291 cat conftest.err >&5
a848cd7e
SC
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
5f652d0d
VS
13294 { ac_try='test -z "$ac_c_werror_flag"
13295 || test ! -s conftest.err'
ac1cb8d3
VS
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_header_compiler=yes
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312ac_header_compiler=no
13313fi
ac1cb8d3 13314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13316echo "${ECHO_T}$ac_header_compiler" >&6
13317
13318# Is the header present?
13319echo "$as_me:$LINENO: checking $ac_header presence" >&5
13320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13321cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327#include <$ac_header>
13328_ACEOF
13329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } >/dev/null; then
13337 if test -s conftest.err; then
13338 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13340 else
13341 ac_cpp_err=
13342 fi
13343else
13344 ac_cpp_err=yes
13345fi
13346if test -z "$ac_cpp_err"; then
13347 ac_header_preproc=yes
13348else
13349 echo "$as_me: failed program was:" >&5
13350sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_header_preproc=no
13353fi
13354rm -f conftest.err conftest.$ac_ext
13355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13356echo "${ECHO_T}$ac_header_preproc" >&6
13357
13358# So? What about this header?
ac1cb8d3
VS
13359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13360 yes:no: )
a848cd7e
SC
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13365 ac_header_preproc=yes
a848cd7e 13366 ;;
ac1cb8d3 13367 no:yes:* )
a848cd7e
SC
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13380 (
13381 cat <<\_ASBOX
ac1cb8d3
VS
13382## ----------------------------------------- ##
13383## Report this to wx-dev@lists.wxwidgets.org ##
13384## ----------------------------------------- ##
a848cd7e
SC
13385_ASBOX
13386 ) |
13387 sed "s/^/$as_me: WARNING: /" >&2
13388 ;;
13389esac
13390echo "$as_me:$LINENO: checking for $ac_header" >&5
13391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13392if eval "test \"\${$as_ac_Header+set}\" = set"; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13394else
ac1cb8d3 13395 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13396fi
13397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13399
13400fi
13401if test `eval echo '${'$as_ac_Header'}'` = yes; then
13402 cat >>confdefs.h <<_ACEOF
13403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13404_ACEOF
13405
13406fi
13407
13408done
13409
13410
13411for ac_header in wchar.h
13412do
13413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13414if eval "test \"\${$as_ac_Header+set}\" = set"; then
13415 echo "$as_me:$LINENO: checking for $ac_header" >&5
13416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13417if eval "test \"\${$as_ac_Header+set}\" = set"; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419fi
13420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13422else
13423 # Is the header compilable?
13424echo "$as_me:$LINENO: checking $ac_header usability" >&5
13425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13426cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432$ac_includes_default
13433#include <$ac_header>
13434_ACEOF
13435rm -f conftest.$ac_objext
13436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13437 (eval $ac_compile) 2>conftest.er1
a848cd7e 13438 ac_status=$?
ac1cb8d3
VS
13439 grep -v '^ *+' conftest.er1 >conftest.err
13440 rm -f conftest.er1
13441 cat conftest.err >&5
a848cd7e
SC
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
5f652d0d
VS
13444 { ac_try='test -z "$ac_c_werror_flag"
13445 || test ! -s conftest.err'
ac1cb8d3
VS
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; } &&
13451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; }; then
13457 ac_header_compiler=yes
13458else
13459 echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
13462ac_header_compiler=no
13463fi
ac1cb8d3 13464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13466echo "${ECHO_T}$ac_header_compiler" >&6
13467
13468# Is the header present?
13469echo "$as_me:$LINENO: checking $ac_header presence" >&5
13470echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13471cat >conftest.$ac_ext <<_ACEOF
13472/* confdefs.h. */
13473_ACEOF
13474cat confdefs.h >>conftest.$ac_ext
13475cat >>conftest.$ac_ext <<_ACEOF
13476/* end confdefs.h. */
13477#include <$ac_header>
13478_ACEOF
13479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null; then
13487 if test -s conftest.err; then
13488 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13490 else
13491 ac_cpp_err=
13492 fi
13493else
13494 ac_cpp_err=yes
13495fi
13496if test -z "$ac_cpp_err"; then
13497 ac_header_preproc=yes
13498else
13499 echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_header_preproc=no
13503fi
13504rm -f conftest.err conftest.$ac_ext
13505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13506echo "${ECHO_T}$ac_header_preproc" >&6
13507
13508# So? What about this header?
ac1cb8d3
VS
13509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13510 yes:no: )
a848cd7e
SC
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13515 ac_header_preproc=yes
a848cd7e 13516 ;;
ac1cb8d3 13517 no:yes:* )
a848cd7e
SC
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13530 (
13531 cat <<\_ASBOX
ac1cb8d3
VS
13532## ----------------------------------------- ##
13533## Report this to wx-dev@lists.wxwidgets.org ##
13534## ----------------------------------------- ##
a848cd7e
SC
13535_ASBOX
13536 ) |
13537 sed "s/^/$as_me: WARNING: /" >&2
13538 ;;
13539esac
13540echo "$as_me:$LINENO: checking for $ac_header" >&5
13541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13542if eval "test \"\${$as_ac_Header+set}\" = set"; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
ac1cb8d3 13545 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13546fi
13547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13549
13550fi
13551if test `eval echo '${'$as_ac_Header'}'` = yes; then
13552 cat >>confdefs.h <<_ACEOF
13553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13554_ACEOF
13555
13556fi
13557
13558done
13559
13560
13561if test "$ac_cv_header_wchar_h" != "yes"; then
13562
13563for ac_header in wcstr.h
13564do
13565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13566if eval "test \"\${$as_ac_Header+set}\" = set"; then
13567 echo "$as_me:$LINENO: checking for $ac_header" >&5
13568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13569if eval "test \"\${$as_ac_Header+set}\" = set"; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571fi
13572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13574else
13575 # Is the header compilable?
13576echo "$as_me:$LINENO: checking $ac_header usability" >&5
13577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584$ac_includes_default
13585#include <$ac_header>
13586_ACEOF
13587rm -f conftest.$ac_objext
13588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13589 (eval $ac_compile) 2>conftest.er1
a848cd7e 13590 ac_status=$?
ac1cb8d3
VS
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
a848cd7e
SC
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
5f652d0d
VS
13596 { ac_try='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
ac1cb8d3
VS
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_header_compiler=yes
13610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614ac_header_compiler=no
13615fi
ac1cb8d3 13616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13618echo "${ECHO_T}$ac_header_compiler" >&6
13619
13620# Is the header present?
13621echo "$as_me:$LINENO: checking $ac_header presence" >&5
13622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13623cat >conftest.$ac_ext <<_ACEOF
13624/* confdefs.h. */
13625_ACEOF
13626cat confdefs.h >>conftest.$ac_ext
13627cat >>conftest.$ac_ext <<_ACEOF
13628/* end confdefs.h. */
13629#include <$ac_header>
13630_ACEOF
13631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13633 ac_status=$?
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } >/dev/null; then
13639 if test -s conftest.err; then
13640 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13642 else
13643 ac_cpp_err=
13644 fi
13645else
13646 ac_cpp_err=yes
13647fi
13648if test -z "$ac_cpp_err"; then
13649 ac_header_preproc=yes
13650else
13651 echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_header_preproc=no
13655fi
13656rm -f conftest.err conftest.$ac_ext
13657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13658echo "${ECHO_T}$ac_header_preproc" >&6
13659
13660# So? What about this header?
ac1cb8d3
VS
13661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13662 yes:no: )
a848cd7e
SC
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13667 ac_header_preproc=yes
a848cd7e 13668 ;;
ac1cb8d3 13669 no:yes:* )
a848cd7e
SC
13670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13682 (
13683 cat <<\_ASBOX
ac1cb8d3
VS
13684## ----------------------------------------- ##
13685## Report this to wx-dev@lists.wxwidgets.org ##
13686## ----------------------------------------- ##
a848cd7e
SC
13687_ASBOX
13688 ) |
13689 sed "s/^/$as_me: WARNING: /" >&2
13690 ;;
13691esac
13692echo "$as_me:$LINENO: checking for $ac_header" >&5
13693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13694if eval "test \"\${$as_ac_Header+set}\" = set"; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696else
ac1cb8d3 13697 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13698fi
13699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13701
13702fi
13703if test `eval echo '${'$as_ac_Header'}'` = yes; then
13704 cat >>confdefs.h <<_ACEOF
13705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13706_ACEOF
13707
13708fi
13709
13710done
13711
13712fi
13713
13714
13715for ac_header in fnmatch.h
13716do
13717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13718if eval "test \"\${$as_ac_Header+set}\" = set"; then
13719 echo "$as_me:$LINENO: checking for $ac_header" >&5
13720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13721if eval "test \"\${$as_ac_Header+set}\" = set"; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723fi
13724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13726else
13727 # Is the header compilable?
13728echo "$as_me:$LINENO: checking $ac_header usability" >&5
13729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13730cat >conftest.$ac_ext <<_ACEOF
13731/* confdefs.h. */
13732_ACEOF
13733cat confdefs.h >>conftest.$ac_ext
13734cat >>conftest.$ac_ext <<_ACEOF
13735/* end confdefs.h. */
13736$ac_includes_default
13737#include <$ac_header>
13738_ACEOF
13739rm -f conftest.$ac_objext
13740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13741 (eval $ac_compile) 2>conftest.er1
a848cd7e 13742 ac_status=$?
ac1cb8d3
VS
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
a848cd7e
SC
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
5f652d0d
VS
13748 { ac_try='test -z "$ac_c_werror_flag"
13749 || test ! -s conftest.err'
ac1cb8d3
VS
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_header_compiler=yes
13762else
13763 echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766ac_header_compiler=no
13767fi
ac1cb8d3 13768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13770echo "${ECHO_T}$ac_header_compiler" >&6
13771
13772# Is the header present?
13773echo "$as_me:$LINENO: checking $ac_header presence" >&5
13774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13775cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
13780/* end confdefs.h. */
13781#include <$ac_header>
13782_ACEOF
13783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } >/dev/null; then
13791 if test -s conftest.err; then
13792 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13794 else
13795 ac_cpp_err=
13796 fi
13797else
13798 ac_cpp_err=yes
13799fi
13800if test -z "$ac_cpp_err"; then
13801 ac_header_preproc=yes
13802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_header_preproc=no
13807fi
13808rm -f conftest.err conftest.$ac_ext
13809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13810echo "${ECHO_T}$ac_header_preproc" >&6
13811
13812# So? What about this header?
ac1cb8d3
VS
13813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13814 yes:no: )
a848cd7e
SC
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13819 ac_header_preproc=yes
a848cd7e 13820 ;;
ac1cb8d3 13821 no:yes:* )
a848cd7e
SC
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13834 (
13835 cat <<\_ASBOX
ac1cb8d3
VS
13836## ----------------------------------------- ##
13837## Report this to wx-dev@lists.wxwidgets.org ##
13838## ----------------------------------------- ##
a848cd7e
SC
13839_ASBOX
13840 ) |
13841 sed "s/^/$as_me: WARNING: /" >&2
13842 ;;
13843esac
13844echo "$as_me:$LINENO: checking for $ac_header" >&5
13845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13846if eval "test \"\${$as_ac_Header+set}\" = set"; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
ac1cb8d3 13849 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13850fi
13851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13853
13854fi
13855if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856 cat >>confdefs.h <<_ACEOF
13857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858_ACEOF
13859
13860fi
13861
13862done
13863
13864
13865if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13866
13867for ac_func in fnmatch
13868do
13869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13870echo "$as_me:$LINENO: checking for $ac_func" >&5
13871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13872if eval "test \"\${$as_ac_var+set}\" = set"; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874else
13875 cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h. */
ac1cb8d3
VS
13881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13883#define $ac_func innocuous_$ac_func
13884
a848cd7e
SC
13885/* System header to define __stub macros and hopefully few prototypes,
13886 which can conflict with char $ac_func (); below.
13887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13889
a848cd7e
SC
13890#ifdef __STDC__
13891# include <limits.h>
13892#else
13893# include <assert.h>
13894#endif
ac1cb8d3
VS
13895
13896#undef $ac_func
13897
a848cd7e
SC
13898/* Override any gcc2 internal prototype to avoid an error. */
13899#ifdef __cplusplus
13900extern "C"
13901{
13902#endif
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char $ac_func ();
13906/* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13910choke me
13911#else
13912char (*f) () = $ac_func;
13913#endif
13914#ifdef __cplusplus
13915}
13916#endif
13917
13918int
13919main ()
13920{
13921return f != $ac_func;
13922 ;
13923 return 0;
13924}
13925_ACEOF
13926rm -f conftest.$ac_objext conftest$ac_exeext
13927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13928 (eval $ac_link) 2>conftest.er1
a848cd7e 13929 ac_status=$?
ac1cb8d3
VS
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
a848cd7e
SC
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
5f652d0d
VS
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
ac1cb8d3
VS
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 eval "$as_ac_var=yes"
13949else
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953eval "$as_ac_var=no"
13954fi
ac1cb8d3
VS
13955rm -f conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13957fi
13958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13960if test `eval echo '${'$as_ac_var'}'` = yes; then
13961 cat >>confdefs.h <<_ACEOF
13962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13963_ACEOF
13964
13965fi
13966done
13967
13968fi
13969
13970
13971for ac_header in langinfo.h
13972do
13973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13974if eval "test \"\${$as_ac_Header+set}\" = set"; then
13975 echo "$as_me:$LINENO: checking for $ac_header" >&5
13976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13977if eval "test \"\${$as_ac_Header+set}\" = set"; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979fi
13980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13982else
13983 # Is the header compilable?
13984echo "$as_me:$LINENO: checking $ac_header usability" >&5
13985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13986cat >conftest.$ac_ext <<_ACEOF
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
13991/* end confdefs.h. */
13992$ac_includes_default
13993#include <$ac_header>
13994_ACEOF
13995rm -f conftest.$ac_objext
13996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13997 (eval $ac_compile) 2>conftest.er1
a848cd7e 13998 ac_status=$?
ac1cb8d3
VS
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
a848cd7e
SC
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
5f652d0d
VS
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
ac1cb8d3
VS
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_header_compiler=yes
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
14022ac_header_compiler=no
14023fi
ac1cb8d3 14024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14026echo "${ECHO_T}$ac_header_compiler" >&6
14027
14028# Is the header present?
14029echo "$as_me:$LINENO: checking $ac_header presence" >&5
14030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14031cat >conftest.$ac_ext <<_ACEOF
14032/* confdefs.h. */
14033_ACEOF
14034cat confdefs.h >>conftest.$ac_ext
14035cat >>conftest.$ac_ext <<_ACEOF
14036/* end confdefs.h. */
14037#include <$ac_header>
14038_ACEOF
14039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } >/dev/null; then
14047 if test -s conftest.err; then
14048 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14050 else
14051 ac_cpp_err=
14052 fi
14053else
14054 ac_cpp_err=yes
14055fi
14056if test -z "$ac_cpp_err"; then
14057 ac_header_preproc=yes
14058else
14059 echo "$as_me: failed program was:" >&5
14060sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_header_preproc=no
14063fi
14064rm -f conftest.err conftest.$ac_ext
14065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14066echo "${ECHO_T}$ac_header_preproc" >&6
14067
14068# So? What about this header?
ac1cb8d3
VS
14069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14070 yes:no: )
a848cd7e
SC
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14075 ac_header_preproc=yes
a848cd7e 14076 ;;
ac1cb8d3 14077 no:yes:* )
a848cd7e
SC
14078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14090 (
14091 cat <<\_ASBOX
ac1cb8d3
VS
14092## ----------------------------------------- ##
14093## Report this to wx-dev@lists.wxwidgets.org ##
14094## ----------------------------------------- ##
a848cd7e
SC
14095_ASBOX
14096 ) |
14097 sed "s/^/$as_me: WARNING: /" >&2
14098 ;;
14099esac
14100echo "$as_me:$LINENO: checking for $ac_header" >&5
14101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
ac1cb8d3 14105 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14106fi
14107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14109
14110fi
14111if test `eval echo '${'$as_ac_Header'}'` = yes; then
14112 cat >>confdefs.h <<_ACEOF
14113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14114_ACEOF
14115
14116fi
14117
14118done
14119
14120
14121case "${host}" in
14122 *-pc-os2_emx | *-pc-os2-emx )
14123 if test $ac_cv_header_langinfo_h = "yes"; then
14124 LIBS="$LIBS -lintl"
14125 fi
14126 ;;
14127esac
14128
14129if test "$wxUSE_GUI" = "yes"; then
14130 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14131
14132for ac_header in X11/Xlib.h
14133do
14134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo "$as_me:$LINENO: checking for $ac_header" >&5
14137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140fi
14141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143else
14144 # Is the header compilable?
14145echo "$as_me:$LINENO: checking $ac_header usability" >&5
14146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14147cat >conftest.$ac_ext <<_ACEOF
14148/* confdefs.h. */
14149_ACEOF
14150cat confdefs.h >>conftest.$ac_ext
14151cat >>conftest.$ac_ext <<_ACEOF
14152/* end confdefs.h. */
14153$ac_includes_default
14154#include <$ac_header>
14155_ACEOF
14156rm -f conftest.$ac_objext
14157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14158 (eval $ac_compile) 2>conftest.er1
a848cd7e 14159 ac_status=$?
ac1cb8d3
VS
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
a848cd7e
SC
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
5f652d0d
VS
14165 { ac_try='test -z "$ac_c_werror_flag"
14166 || test ! -s conftest.err'
ac1cb8d3
VS
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_header_compiler=yes
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183ac_header_compiler=no
14184fi
ac1cb8d3 14185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14187echo "${ECHO_T}$ac_header_compiler" >&6
14188
14189# Is the header present?
14190echo "$as_me:$LINENO: checking $ac_header presence" >&5
14191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14192cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198#include <$ac_header>
14199_ACEOF
14200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } >/dev/null; then
14208 if test -s conftest.err; then
14209 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14211 else
14212 ac_cpp_err=
14213 fi
14214else
14215 ac_cpp_err=yes
14216fi
14217if test -z "$ac_cpp_err"; then
14218 ac_header_preproc=yes
14219else
14220 echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_header_preproc=no
14224fi
14225rm -f conftest.err conftest.$ac_ext
14226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14227echo "${ECHO_T}$ac_header_preproc" >&6
14228
14229# So? What about this header?
ac1cb8d3
VS
14230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 yes:no: )
a848cd7e
SC
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14236 ac_header_preproc=yes
a848cd7e 14237 ;;
ac1cb8d3 14238 no:yes:* )
a848cd7e
SC
14239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14251 (
14252 cat <<\_ASBOX
ac1cb8d3
VS
14253## ----------------------------------------- ##
14254## Report this to wx-dev@lists.wxwidgets.org ##
14255## ----------------------------------------- ##
a848cd7e
SC
14256_ASBOX
14257 ) |
14258 sed "s/^/$as_me: WARNING: /" >&2
14259 ;;
14260esac
14261echo "$as_me:$LINENO: checking for $ac_header" >&5
14262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14263if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
ac1cb8d3 14266 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14267fi
14268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14270
14271fi
14272if test `eval echo '${'$as_ac_Header'}'` = yes; then
14273 cat >>confdefs.h <<_ACEOF
14274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14275_ACEOF
14276
14277fi
14278
14279done
14280
14281
14282for ac_header in X11/XKBlib.h
14283do
14284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14285echo "$as_me:$LINENO: checking for $ac_header" >&5
14286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14287if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289else
14290 cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
14296
14297 #if HAVE_X11_XLIB_H
14298 #include <X11/Xlib.h>
14299 #endif
14300
14301
14302#include <$ac_header>
14303_ACEOF
14304rm -f conftest.$ac_objext
14305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14306 (eval $ac_compile) 2>conftest.er1
a848cd7e 14307 ac_status=$?
ac1cb8d3
VS
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
a848cd7e
SC
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
5f652d0d
VS
14313 { ac_try='test -z "$ac_c_werror_flag"
14314 || test ! -s conftest.err'
ac1cb8d3
VS
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 eval "$as_ac_Header=yes"
14327else
14328 echo "$as_me: failed program was:" >&5
14329sed 's/^/| /' conftest.$ac_ext >&5
14330
14331eval "$as_ac_Header=no"
14332fi
ac1cb8d3 14333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14334fi
14335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14337if test `eval echo '${'$as_ac_Header'}'` = yes; then
14338 cat >>confdefs.h <<_ACEOF
14339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14340_ACEOF
14341
14342fi
14343
14344done
14345
14346 fi
14347fi
14348
14349
14350echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14351echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14352if test "${ac_cv_c_const+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
14355 cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361
14362int
14363main ()
14364{
14365/* FIXME: Include the comments suggested by Paul. */
14366#ifndef __cplusplus
14367 /* Ultrix mips cc rejects this. */
14368 typedef int charset[2];
14369 const charset x;
14370 /* SunOS 4.1.1 cc rejects this. */
14371 char const *const *ccp;
14372 char **p;
14373 /* NEC SVR4.0.2 mips cc rejects this. */
14374 struct point {int x, y;};
14375 static struct point const zero = {0,0};
14376 /* AIX XL C 1.02.0.0 rejects this.
14377 It does not let you subtract one const X* pointer from another in
14378 an arm of an if-expression whose if-part is not a constant
14379 expression */
14380 const char *g = "string";
14381 ccp = &g + (g ? g-g : 0);
14382 /* HPUX 7.0 cc rejects these. */
14383 ++ccp;
14384 p = (char**) ccp;
14385 ccp = (char const *const *) p;
14386 { /* SCO 3.2v4 cc rejects this. */
14387 char *t;
14388 char const *s = 0 ? (char *) 0 : (char const *) 0;
14389
14390 *t++ = 0;
14391 }
14392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14393 int x[] = {25, 17};
14394 const int *foo = &x[0];
14395 ++foo;
14396 }
14397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14398 typedef const int *iptr;
14399 iptr p = 0;
14400 ++p;
14401 }
14402 { /* AIX XL C 1.02.0.0 rejects this saying
14403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14404 struct s { int j; const int *ap[3]; };
14405 struct s *b; b->j = 5;
14406 }
14407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14408 const int foo = 10;
14409 }
14410#endif
14411
14412 ;
14413 return 0;
14414}
14415_ACEOF
14416rm -f conftest.$ac_objext
14417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14418 (eval $ac_compile) 2>conftest.er1
a848cd7e 14419 ac_status=$?
ac1cb8d3
VS
14420 grep -v '^ *+' conftest.er1 >conftest.err
14421 rm -f conftest.er1
14422 cat conftest.err >&5
a848cd7e
SC
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } &&
5f652d0d
VS
14425 { ac_try='test -z "$ac_c_werror_flag"
14426 || test ! -s conftest.err'
ac1cb8d3
VS
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 ac_cv_c_const=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443ac_cv_c_const=no
14444fi
ac1cb8d3 14445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14446fi
14447echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14448echo "${ECHO_T}$ac_cv_c_const" >&6
14449if test $ac_cv_c_const = no; then
14450
14451cat >>confdefs.h <<\_ACEOF
14452#define const
14453_ACEOF
14454
14455fi
14456
14457echo "$as_me:$LINENO: checking for inline" >&5
14458echo $ECHO_N "checking for inline... $ECHO_C" >&6
14459if test "${ac_cv_c_inline+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461else
14462 ac_cv_c_inline=no
14463for ac_kw in inline __inline__ __inline; do
14464 cat >conftest.$ac_ext <<_ACEOF
14465/* confdefs.h. */
14466_ACEOF
14467cat confdefs.h >>conftest.$ac_ext
14468cat >>conftest.$ac_ext <<_ACEOF
14469/* end confdefs.h. */
14470#ifndef __cplusplus
14471typedef int foo_t;
14472static $ac_kw foo_t static_foo () {return 0; }
14473$ac_kw foo_t foo () {return 0; }
14474#endif
14475
14476_ACEOF
14477rm -f conftest.$ac_objext
14478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14479 (eval $ac_compile) 2>conftest.er1
a848cd7e 14480 ac_status=$?
ac1cb8d3
VS
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
a848cd7e
SC
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
5f652d0d
VS
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
ac1cb8d3
VS
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_c_inline=$ac_kw; break
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504fi
ac1cb8d3 14505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14506done
14507
14508fi
14509echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14510echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14511
14512
a848cd7e
SC
14513case $ac_cv_c_inline in
14514 inline | yes) ;;
ac1cb8d3
VS
14515 *)
14516 case $ac_cv_c_inline in
14517 no) ac_val=;;
14518 *) ac_val=$ac_cv_c_inline;;
14519 esac
14520 cat >>confdefs.h <<_ACEOF
14521#ifndef __cplusplus
14522#define inline $ac_val
14523#endif
de59c161 14524_ACEOF
ac1cb8d3 14525 ;;
a848cd7e
SC
14526esac
14527
14528
14529echo "$as_me:$LINENO: checking for char" >&5
14530echo $ECHO_N "checking for char... $ECHO_C" >&6
14531if test "${ac_cv_type_char+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14533else
14534 cat >conftest.$ac_ext <<_ACEOF
14535/* confdefs.h. */
14536_ACEOF
14537cat confdefs.h >>conftest.$ac_ext
14538cat >>conftest.$ac_ext <<_ACEOF
14539/* end confdefs.h. */
14540$ac_includes_default
14541int
14542main ()
14543{
14544if ((char *) 0)
14545 return 0;
14546if (sizeof (char))
14547 return 0;
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552rm -f conftest.$ac_objext
14553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14554 (eval $ac_compile) 2>conftest.er1
a848cd7e 14555 ac_status=$?
ac1cb8d3
VS
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
a848cd7e
SC
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
5f652d0d
VS
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
ac1cb8d3
VS
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_type_char=yes
14575else
14576 echo "$as_me: failed program was:" >&5
14577sed 's/^/| /' conftest.$ac_ext >&5
14578
14579ac_cv_type_char=no
14580fi
ac1cb8d3 14581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14582fi
14583echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14584echo "${ECHO_T}$ac_cv_type_char" >&6
14585
14586echo "$as_me:$LINENO: checking size of char" >&5
14587echo $ECHO_N "checking size of char... $ECHO_C" >&6
14588if test "${ac_cv_sizeof_char+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 if test "$ac_cv_type_char" = yes; then
14592 # The cast to unsigned long works around a bug in the HP C Compiler
14593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14595 # This bug is HP SR number 8606223364.
14596 if test "$cross_compiling" = yes; then
14597 # Depending upon the size, compute the lo and hi bounds.
14598cat >conftest.$ac_ext <<_ACEOF
14599/* confdefs.h. */
14600_ACEOF
14601cat confdefs.h >>conftest.$ac_ext
14602cat >>conftest.$ac_ext <<_ACEOF
14603/* end confdefs.h. */
14604$ac_includes_default
14605int
14606main ()
14607{
14608static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14609test_array [0] = 0
14610
14611 ;
14612 return 0;
14613}
14614_ACEOF
14615rm -f conftest.$ac_objext
14616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14617 (eval $ac_compile) 2>conftest.er1
a848cd7e 14618 ac_status=$?
ac1cb8d3
VS
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
a848cd7e
SC
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
5f652d0d
VS
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
ac1cb8d3
VS
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_lo=0 ac_mid=0
14638 while :; do
14639 cat >conftest.$ac_ext <<_ACEOF
14640/* confdefs.h. */
14641_ACEOF
14642cat confdefs.h >>conftest.$ac_ext
14643cat >>conftest.$ac_ext <<_ACEOF
14644/* end confdefs.h. */
14645$ac_includes_default
14646int
14647main ()
14648{
14649static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14650test_array [0] = 0
14651
14652 ;
14653 return 0;
14654}
14655_ACEOF
14656rm -f conftest.$ac_objext
14657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14658 (eval $ac_compile) 2>conftest.er1
a848cd7e 14659 ac_status=$?
ac1cb8d3
VS
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
a848cd7e
SC
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
5f652d0d
VS
14665 { ac_try='test -z "$ac_c_werror_flag"
14666 || test ! -s conftest.err'
ac1cb8d3
VS
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }; then
14678 ac_hi=$ac_mid; break
14679else
14680 echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14684 if test $ac_lo -le $ac_mid; then
14685 ac_lo= ac_hi=
14686 break
14687 fi
14688 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14689fi
ac1cb8d3 14690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14691 done
14692else
14693 echo "$as_me: failed program was:" >&5
14694sed 's/^/| /' conftest.$ac_ext >&5
14695
14696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702$ac_includes_default
14703int
14704main ()
14705{
14706static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14707test_array [0] = 0
14708
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713rm -f conftest.$ac_objext
14714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14715 (eval $ac_compile) 2>conftest.er1
a848cd7e 14716 ac_status=$?
ac1cb8d3
VS
14717 grep -v '^ *+' conftest.er1 >conftest.err
14718 rm -f conftest.er1
14719 cat conftest.err >&5
a848cd7e
SC
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
5f652d0d
VS
14722 { ac_try='test -z "$ac_c_werror_flag"
14723 || test ! -s conftest.err'
ac1cb8d3
VS
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; } &&
14729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_hi=-1 ac_mid=-1
14736 while :; do
14737 cat >conftest.$ac_ext <<_ACEOF
14738/* confdefs.h. */
14739_ACEOF
14740cat confdefs.h >>conftest.$ac_ext
14741cat >>conftest.$ac_ext <<_ACEOF
14742/* end confdefs.h. */
14743$ac_includes_default
14744int
14745main ()
14746{
14747static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14748test_array [0] = 0
14749
14750 ;
14751 return 0;
14752}
14753_ACEOF
14754rm -f conftest.$ac_objext
14755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14756 (eval $ac_compile) 2>conftest.er1
a848cd7e 14757 ac_status=$?
ac1cb8d3
VS
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
a848cd7e
SC
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } &&
5f652d0d
VS
14763 { ac_try='test -z "$ac_c_werror_flag"
14764 || test ! -s conftest.err'
ac1cb8d3
VS
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_lo=$ac_mid; break
14777else
14778 echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
14781ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14782 if test $ac_mid -le $ac_hi; then
14783 ac_lo= ac_hi=
14784 break
14785 fi
14786 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14787fi
ac1cb8d3 14788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14789 done
14790else
14791 echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794ac_lo= ac_hi=
14795fi
ac1cb8d3 14796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14797fi
ac1cb8d3 14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14799# Binary search between lo and hi bounds.
14800while test "x$ac_lo" != "x$ac_hi"; do
14801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14802 cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808$ac_includes_default
14809int
14810main ()
14811{
14812static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14813test_array [0] = 0
14814
14815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext
14820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14821 (eval $ac_compile) 2>conftest.er1
a848cd7e 14822 ac_status=$?
ac1cb8d3
VS
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
a848cd7e
SC
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
5f652d0d
VS
14828 { ac_try='test -z "$ac_c_werror_flag"
14829 || test ! -s conftest.err'
ac1cb8d3
VS
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_hi=$ac_mid
14842else
14843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
14846ac_lo=`expr '(' $ac_mid ')' + 1`
14847fi
ac1cb8d3 14848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14849done
14850case $ac_lo in
14851?*) ac_cv_sizeof_char=$ac_lo;;
14852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14853See \`config.log' for more details." >&5
14854echo "$as_me: error: cannot compute sizeof (char), 77
14855See \`config.log' for more details." >&2;}
14856 { (exit 1); exit 1; }; } ;;
14857esac
14858else
14859 if test "$cross_compiling" = yes; then
5f652d0d
VS
14860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14861See \`config.log' for more details." >&5
14862echo "$as_me: error: cannot run test program while cross compiling
14863See \`config.log' for more details." >&2;}
a848cd7e
SC
14864 { (exit 1); exit 1; }; }
14865else
14866 cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872$ac_includes_default
14873long longval () { return (long) (sizeof (char)); }
14874unsigned long ulongval () { return (long) (sizeof (char)); }
14875#include <stdio.h>
14876#include <stdlib.h>
14877int
14878main ()
14879{
14880
14881 FILE *f = fopen ("conftest.val", "w");
14882 if (! f)
14883 exit (1);
14884 if (((long) (sizeof (char))) < 0)
14885 {
14886 long i = longval ();
14887 if (i != ((long) (sizeof (char))))
14888 exit (1);
14889 fprintf (f, "%ld\n", i);
14890 }
14891 else
14892 {
14893 unsigned long i = ulongval ();
14894 if (i != ((long) (sizeof (char))))
14895 exit (1);
14896 fprintf (f, "%lu\n", i);
14897 }
14898 exit (ferror (f) || fclose (f) != 0);
14899
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904rm -f conftest$ac_exeext
14905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 ac_cv_sizeof_char=`cat conftest.val`
14916else
14917 echo "$as_me: program exited with status $ac_status" >&5
14918echo "$as_me: failed program was:" >&5
14919sed 's/^/| /' conftest.$ac_ext >&5
14920
14921( exit $ac_status )
14922{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14923See \`config.log' for more details." >&5
14924echo "$as_me: error: cannot compute sizeof (char), 77
14925See \`config.log' for more details." >&2;}
14926 { (exit 1); exit 1; }; }
14927fi
ac1cb8d3 14928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14929fi
14930fi
14931rm -f conftest.val
14932else
14933 ac_cv_sizeof_char=0
14934fi
14935fi
14936echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14937echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14938cat >>confdefs.h <<_ACEOF
14939#define SIZEOF_CHAR $ac_cv_sizeof_char
14940_ACEOF
14941
14942
14943echo "$as_me:$LINENO: checking for short" >&5
14944echo $ECHO_N "checking for short... $ECHO_C" >&6
14945if test "${ac_cv_type_short+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947else
14948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955int
14956main ()
14957{
14958if ((short *) 0)
14959 return 0;
14960if (sizeof (short))
14961 return 0;
14962 ;
14963 return 0;
14964}
14965_ACEOF
14966rm -f conftest.$ac_objext
14967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14968 (eval $ac_compile) 2>conftest.er1
a848cd7e 14969 ac_status=$?
ac1cb8d3
VS
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
a848cd7e
SC
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
5f652d0d
VS
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
ac1cb8d3
VS
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_cv_type_short=yes
14989else
14990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993ac_cv_type_short=no
14994fi
ac1cb8d3 14995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14996fi
14997echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14998echo "${ECHO_T}$ac_cv_type_short" >&6
14999
15000echo "$as_me:$LINENO: checking size of short" >&5
15001echo $ECHO_N "checking size of short... $ECHO_C" >&6
15002if test "${ac_cv_sizeof_short+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004else
15005 if test "$ac_cv_type_short" = yes; then
15006 # The cast to unsigned long works around a bug in the HP C Compiler
15007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15009 # This bug is HP SR number 8606223364.
15010 if test "$cross_compiling" = yes; then
15011 # Depending upon the size, compute the lo and hi bounds.
15012cat >conftest.$ac_ext <<_ACEOF
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15023test_array [0] = 0
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15031 (eval $ac_compile) 2>conftest.er1
a848cd7e 15032 ac_status=$?
ac1cb8d3
VS
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
a848cd7e
SC
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
5f652d0d
VS
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
ac1cb8d3
VS
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_lo=0 ac_mid=0
15052 while :; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059$ac_includes_default
15060int
15061main ()
15062{
15063static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15064test_array [0] = 0
15065
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070rm -f conftest.$ac_objext
15071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15072 (eval $ac_compile) 2>conftest.er1
a848cd7e 15073 ac_status=$?
ac1cb8d3
VS
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
a848cd7e
SC
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
5f652d0d
VS
15079 { ac_try='test -z "$ac_c_werror_flag"
15080 || test ! -s conftest.err'
ac1cb8d3
VS
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_hi=$ac_mid; break
15093else
15094 echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15098 if test $ac_lo -le $ac_mid; then
15099 ac_lo= ac_hi=
15100 break
15101 fi
15102 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15103fi
ac1cb8d3 15104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15105 done
15106else
15107 echo "$as_me: failed program was:" >&5
15108sed 's/^/| /' conftest.$ac_ext >&5
15109
15110cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117int
15118main ()
15119{
15120static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15121test_array [0] = 0
15122
15123 ;
15124 return 0;
15125}
15126_ACEOF
15127rm -f conftest.$ac_objext
15128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15129 (eval $ac_compile) 2>conftest.er1
a848cd7e 15130 ac_status=$?
ac1cb8d3
VS
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
a848cd7e
SC
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
5f652d0d
VS
15136 { ac_try='test -z "$ac_c_werror_flag"
15137 || test ! -s conftest.err'
ac1cb8d3
VS
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_hi=-1 ac_mid=-1
15150 while :; do
15151 cat >conftest.$ac_ext <<_ACEOF
15152/* confdefs.h. */
15153_ACEOF
15154cat confdefs.h >>conftest.$ac_ext
15155cat >>conftest.$ac_ext <<_ACEOF
15156/* end confdefs.h. */
15157$ac_includes_default
15158int
15159main ()
15160{
15161static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15162test_array [0] = 0
15163
15164 ;
15165 return 0;
15166}
15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15170 (eval $ac_compile) 2>conftest.er1
a848cd7e 15171 ac_status=$?
ac1cb8d3
VS
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
a848cd7e
SC
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
5f652d0d
VS
15177 { ac_try='test -z "$ac_c_werror_flag"
15178 || test ! -s conftest.err'
ac1cb8d3
VS
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_lo=$ac_mid; break
15191else
15192 echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15196 if test $ac_mid -le $ac_hi; then
15197 ac_lo= ac_hi=
15198 break
15199 fi
15200 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15201fi
ac1cb8d3 15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15203 done
15204else
15205 echo "$as_me: failed program was:" >&5
15206sed 's/^/| /' conftest.$ac_ext >&5
15207
15208ac_lo= ac_hi=
15209fi
ac1cb8d3 15210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15211fi
ac1cb8d3 15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15213# Binary search between lo and hi bounds.
15214while test "x$ac_lo" != "x$ac_hi"; do
15215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15216 cat >conftest.$ac_ext <<_ACEOF
15217/* confdefs.h. */
15218_ACEOF
15219cat confdefs.h >>conftest.$ac_ext
15220cat >>conftest.$ac_ext <<_ACEOF
15221/* end confdefs.h. */
15222$ac_includes_default
15223int
15224main ()
15225{
15226static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15227test_array [0] = 0
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233rm -f conftest.$ac_objext
15234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15235 (eval $ac_compile) 2>conftest.er1
a848cd7e 15236 ac_status=$?
ac1cb8d3
VS
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
a848cd7e
SC
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
5f652d0d
VS
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
ac1cb8d3
VS
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_hi=$ac_mid
15256else
15257 echo "$as_me: failed program was:" >&5
15258sed 's/^/| /' conftest.$ac_ext >&5
15259
15260ac_lo=`expr '(' $ac_mid ')' + 1`
15261fi
ac1cb8d3 15262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15263done
15264case $ac_lo in
15265?*) ac_cv_sizeof_short=$ac_lo;;
15266'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15267See \`config.log' for more details." >&5
15268echo "$as_me: error: cannot compute sizeof (short), 77
15269See \`config.log' for more details." >&2;}
15270 { (exit 1); exit 1; }; } ;;
15271esac
15272else
15273 if test "$cross_compiling" = yes; then
5f652d0d
VS
15274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15275See \`config.log' for more details." >&5
15276echo "$as_me: error: cannot run test program while cross compiling
15277See \`config.log' for more details." >&2;}
a848cd7e
SC
15278 { (exit 1); exit 1; }; }
15279else
15280 cat >conftest.$ac_ext <<_ACEOF
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286$ac_includes_default
15287long longval () { return (long) (sizeof (short)); }
15288unsigned long ulongval () { return (long) (sizeof (short)); }
15289#include <stdio.h>
15290#include <stdlib.h>
15291int
15292main ()
15293{
15294
15295 FILE *f = fopen ("conftest.val", "w");
15296 if (! f)
15297 exit (1);
15298 if (((long) (sizeof (short))) < 0)
15299 {
15300 long i = longval ();
15301 if (i != ((long) (sizeof (short))))
15302 exit (1);
15303 fprintf (f, "%ld\n", i);
15304 }
15305 else
15306 {
15307 unsigned long i = ulongval ();
15308 if (i != ((long) (sizeof (short))))
15309 exit (1);
15310 fprintf (f, "%lu\n", i);
15311 }
15312 exit (ferror (f) || fclose (f) != 0);
15313
15314 ;
15315 return 0;
15316}
15317_ACEOF
15318rm -f conftest$ac_exeext
15319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_sizeof_short=`cat conftest.val`
15330else
15331 echo "$as_me: program exited with status $ac_status" >&5
15332echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335( exit $ac_status )
15336{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15337See \`config.log' for more details." >&5
15338echo "$as_me: error: cannot compute sizeof (short), 77
15339See \`config.log' for more details." >&2;}
15340 { (exit 1); exit 1; }; }
15341fi
ac1cb8d3 15342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15343fi
15344fi
15345rm -f conftest.val
15346else
15347 ac_cv_sizeof_short=0
15348fi
15349fi
15350echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15351echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15352cat >>confdefs.h <<_ACEOF
15353#define SIZEOF_SHORT $ac_cv_sizeof_short
15354_ACEOF
15355
15356
15357echo "$as_me:$LINENO: checking for void *" >&5
15358echo $ECHO_N "checking for void *... $ECHO_C" >&6
15359if test "${ac_cv_type_void_p+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361else
15362 cat >conftest.$ac_ext <<_ACEOF
15363/* confdefs.h. */
15364_ACEOF
15365cat confdefs.h >>conftest.$ac_ext
15366cat >>conftest.$ac_ext <<_ACEOF
15367/* end confdefs.h. */
15368$ac_includes_default
15369int
15370main ()
15371{
15372if ((void * *) 0)
15373 return 0;
15374if (sizeof (void *))
15375 return 0;
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext
15381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15382 (eval $ac_compile) 2>conftest.er1
a848cd7e 15383 ac_status=$?
ac1cb8d3
VS
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
a848cd7e
SC
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
5f652d0d
VS
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
ac1cb8d3
VS
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_type_void_p=yes
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407ac_cv_type_void_p=no
15408fi
ac1cb8d3 15409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15410fi
15411echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15412echo "${ECHO_T}$ac_cv_type_void_p" >&6
15413
15414echo "$as_me:$LINENO: checking size of void *" >&5
15415echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15416if test "${ac_cv_sizeof_void_p+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418else
15419 if test "$ac_cv_type_void_p" = yes; then
15420 # The cast to unsigned long works around a bug in the HP C Compiler
15421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15423 # This bug is HP SR number 8606223364.
15424 if test "$cross_compiling" = yes; then
15425 # Depending upon the size, compute the lo and hi bounds.
15426cat >conftest.$ac_ext <<_ACEOF
15427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432$ac_includes_default
15433int
15434main ()
15435{
15436static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15437test_array [0] = 0
15438
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443rm -f conftest.$ac_objext
15444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15445 (eval $ac_compile) 2>conftest.er1
a848cd7e 15446 ac_status=$?
ac1cb8d3
VS
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
a848cd7e
SC
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
5f652d0d
VS
15452 { ac_try='test -z "$ac_c_werror_flag"
15453 || test ! -s conftest.err'
ac1cb8d3
VS
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; } &&
15459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_lo=0 ac_mid=0
15466 while :; do
15467 cat >conftest.$ac_ext <<_ACEOF
15468/* confdefs.h. */
15469_ACEOF
15470cat confdefs.h >>conftest.$ac_ext
15471cat >>conftest.$ac_ext <<_ACEOF
15472/* end confdefs.h. */
15473$ac_includes_default
15474int
15475main ()
15476{
15477static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15478test_array [0] = 0
15479
15480 ;
15481 return 0;
15482}
15483_ACEOF
15484rm -f conftest.$ac_objext
15485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15486 (eval $ac_compile) 2>conftest.er1
a848cd7e 15487 ac_status=$?
ac1cb8d3
VS
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
a848cd7e
SC
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
5f652d0d
VS
15493 { ac_try='test -z "$ac_c_werror_flag"
15494 || test ! -s conftest.err'
ac1cb8d3
VS
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_hi=$ac_mid; break
15507else
15508 echo "$as_me: failed program was:" >&5
15509sed 's/^/| /' conftest.$ac_ext >&5
15510
15511ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15512 if test $ac_lo -le $ac_mid; then
15513 ac_lo= ac_hi=
15514 break
15515 fi
15516 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15517fi
ac1cb8d3 15518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15519 done
15520else
15521 echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5
15523
15524cat >conftest.$ac_ext <<_ACEOF
15525/* confdefs.h. */
15526_ACEOF
15527cat confdefs.h >>conftest.$ac_ext
15528cat >>conftest.$ac_ext <<_ACEOF
15529/* end confdefs.h. */
15530$ac_includes_default
15531int
15532main ()
15533{
15534static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15535test_array [0] = 0
15536
15537 ;
15538 return 0;
15539}
15540_ACEOF
15541rm -f conftest.$ac_objext
15542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15543 (eval $ac_compile) 2>conftest.er1
a848cd7e 15544 ac_status=$?
ac1cb8d3
VS
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
a848cd7e
SC
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
5f652d0d
VS
15550 { ac_try='test -z "$ac_c_werror_flag"
15551 || test ! -s conftest.err'
ac1cb8d3
VS
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_hi=-1 ac_mid=-1
15564 while :; do
15565 cat >conftest.$ac_ext <<_ACEOF
15566/* confdefs.h. */
15567_ACEOF
15568cat confdefs.h >>conftest.$ac_ext
15569cat >>conftest.$ac_ext <<_ACEOF
15570/* end confdefs.h. */
15571$ac_includes_default
15572int
15573main ()
15574{
15575static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15576test_array [0] = 0
15577
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582rm -f conftest.$ac_objext
15583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15584 (eval $ac_compile) 2>conftest.er1
a848cd7e 15585 ac_status=$?
ac1cb8d3
VS
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
a848cd7e
SC
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
5f652d0d
VS
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
ac1cb8d3
VS
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_lo=$ac_mid; break
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
15609ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15610 if test $ac_mid -le $ac_hi; then
15611 ac_lo= ac_hi=
15612 break
15613 fi
15614 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15615fi
ac1cb8d3 15616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15617 done
15618else
15619 echo "$as_me: failed program was:" >&5
15620sed 's/^/| /' conftest.$ac_ext >&5
15621
15622ac_lo= ac_hi=
15623fi
ac1cb8d3 15624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15625fi
ac1cb8d3 15626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15627# Binary search between lo and hi bounds.
15628while test "x$ac_lo" != "x$ac_hi"; do
15629 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15630 cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h. */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
15635/* end confdefs.h. */
15636$ac_includes_default
15637int
15638main ()
15639{
15640static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15641test_array [0] = 0
15642
15643 ;
15644 return 0;
15645}
15646_ACEOF
15647rm -f conftest.$ac_objext
15648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15649 (eval $ac_compile) 2>conftest.er1
a848cd7e 15650 ac_status=$?
ac1cb8d3
VS
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
a848cd7e
SC
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
5f652d0d
VS
15656 { ac_try='test -z "$ac_c_werror_flag"
15657 || test ! -s conftest.err'
ac1cb8d3
VS
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 ac_hi=$ac_mid
15670else
15671 echo "$as_me: failed program was:" >&5
15672sed 's/^/| /' conftest.$ac_ext >&5
15673
15674ac_lo=`expr '(' $ac_mid ')' + 1`
15675fi
ac1cb8d3 15676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15677done
15678case $ac_lo in
15679?*) ac_cv_sizeof_void_p=$ac_lo;;
15680'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15681See \`config.log' for more details." >&5
15682echo "$as_me: error: cannot compute sizeof (void *), 77
15683See \`config.log' for more details." >&2;}
15684 { (exit 1); exit 1; }; } ;;
15685esac
15686else
15687 if test "$cross_compiling" = yes; then
5f652d0d
VS
15688 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15689See \`config.log' for more details." >&5
15690echo "$as_me: error: cannot run test program while cross compiling
15691See \`config.log' for more details." >&2;}
a848cd7e
SC
15692 { (exit 1); exit 1; }; }
15693else
15694 cat >conftest.$ac_ext <<_ACEOF
15695/* confdefs.h. */
15696_ACEOF
15697cat confdefs.h >>conftest.$ac_ext
15698cat >>conftest.$ac_ext <<_ACEOF
15699/* end confdefs.h. */
15700$ac_includes_default
15701long longval () { return (long) (sizeof (void *)); }
15702unsigned long ulongval () { return (long) (sizeof (void *)); }
15703#include <stdio.h>
15704#include <stdlib.h>
15705int
15706main ()
15707{
15708
15709 FILE *f = fopen ("conftest.val", "w");
15710 if (! f)
15711 exit (1);
15712 if (((long) (sizeof (void *))) < 0)
15713 {
15714 long i = longval ();
15715 if (i != ((long) (sizeof (void *))))
15716 exit (1);
15717 fprintf (f, "%ld\n", i);
15718 }
15719 else
15720 {
15721 unsigned long i = ulongval ();
15722 if (i != ((long) (sizeof (void *))))
15723 exit (1);
15724 fprintf (f, "%lu\n", i);
15725 }
15726 exit (ferror (f) || fclose (f) != 0);
15727
15728 ;
15729 return 0;
15730}
15731_ACEOF
15732rm -f conftest$ac_exeext
15733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734 (eval $ac_link) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_sizeof_void_p=`cat conftest.val`
15744else
15745 echo "$as_me: program exited with status $ac_status" >&5
15746echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749( exit $ac_status )
15750{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15751See \`config.log' for more details." >&5
15752echo "$as_me: error: cannot compute sizeof (void *), 77
15753See \`config.log' for more details." >&2;}
15754 { (exit 1); exit 1; }; }
15755fi
ac1cb8d3 15756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15757fi
15758fi
15759rm -f conftest.val
15760else
15761 ac_cv_sizeof_void_p=0
15762fi
15763fi
15764echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15765echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15766cat >>confdefs.h <<_ACEOF
15767#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15768_ACEOF
15769
15770
15771echo "$as_me:$LINENO: checking for int" >&5
15772echo $ECHO_N "checking for int... $ECHO_C" >&6
15773if test "${ac_cv_type_int+set}" = set; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15775else
15776 cat >conftest.$ac_ext <<_ACEOF
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
15782$ac_includes_default
15783int
15784main ()
15785{
15786if ((int *) 0)
15787 return 0;
15788if (sizeof (int))
15789 return 0;
15790 ;
15791 return 0;
15792}
15793_ACEOF
15794rm -f conftest.$ac_objext
15795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15796 (eval $ac_compile) 2>conftest.er1
a848cd7e 15797 ac_status=$?
ac1cb8d3
VS
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
a848cd7e
SC
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
5f652d0d
VS
15803 { ac_try='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
ac1cb8d3
VS
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 ac_cv_type_int=yes
15817else
15818 echo "$as_me: failed program was:" >&5
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
15821ac_cv_type_int=no
15822fi
ac1cb8d3 15823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15824fi
15825echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15826echo "${ECHO_T}$ac_cv_type_int" >&6
15827
15828echo "$as_me:$LINENO: checking size of int" >&5
15829echo $ECHO_N "checking size of int... $ECHO_C" >&6
15830if test "${ac_cv_sizeof_int+set}" = set; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15832else
15833 if test "$ac_cv_type_int" = yes; then
15834 # The cast to unsigned long works around a bug in the HP C Compiler
15835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15837 # This bug is HP SR number 8606223364.
15838 if test "$cross_compiling" = yes; then
15839 # Depending upon the size, compute the lo and hi bounds.
15840cat >conftest.$ac_ext <<_ACEOF
15841/* confdefs.h. */
15842_ACEOF
15843cat confdefs.h >>conftest.$ac_ext
15844cat >>conftest.$ac_ext <<_ACEOF
15845/* end confdefs.h. */
15846$ac_includes_default
15847int
15848main ()
15849{
15850static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15851test_array [0] = 0
15852
15853 ;
15854 return 0;
15855}
15856_ACEOF
15857rm -f conftest.$ac_objext
15858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15859 (eval $ac_compile) 2>conftest.er1
a848cd7e 15860 ac_status=$?
ac1cb8d3
VS
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
a848cd7e
SC
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
5f652d0d
VS
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
ac1cb8d3
VS
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_lo=0 ac_mid=0
15880 while :; do
15881 cat >conftest.$ac_ext <<_ACEOF
15882/* confdefs.h. */
15883_ACEOF
15884cat confdefs.h >>conftest.$ac_ext
15885cat >>conftest.$ac_ext <<_ACEOF
15886/* end confdefs.h. */
15887$ac_includes_default
15888int
15889main ()
15890{
15891static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15892test_array [0] = 0
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15900 (eval $ac_compile) 2>conftest.er1
a848cd7e 15901 ac_status=$?
ac1cb8d3
VS
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
a848cd7e
SC
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
5f652d0d
VS
15907 { ac_try='test -z "$ac_c_werror_flag"
15908 || test ! -s conftest.err'
ac1cb8d3
VS
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; } &&
15914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_hi=$ac_mid; break
15921else
15922 echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15926 if test $ac_lo -le $ac_mid; then
15927 ac_lo= ac_hi=
15928 break
15929 fi
15930 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15931fi
ac1cb8d3 15932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15933 done
15934else
15935 echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938cat >conftest.$ac_ext <<_ACEOF
15939/* confdefs.h. */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h. */
15944$ac_includes_default
15945int
15946main ()
15947{
15948static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15949test_array [0] = 0
15950
15951 ;
15952 return 0;
15953}
15954_ACEOF
15955rm -f conftest.$ac_objext
15956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15957 (eval $ac_compile) 2>conftest.er1
a848cd7e 15958 ac_status=$?
ac1cb8d3
VS
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
a848cd7e
SC
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } &&
5f652d0d
VS
15964 { ac_try='test -z "$ac_c_werror_flag"
15965 || test ! -s conftest.err'
ac1cb8d3
VS
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; } &&
15971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; }; then
15977 ac_hi=-1 ac_mid=-1
15978 while :; do
15979 cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985$ac_includes_default
15986int
15987main ()
15988{
15989static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15990test_array [0] = 0
15991
15992 ;
15993 return 0;
15994}
15995_ACEOF
15996rm -f conftest.$ac_objext
15997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15998 (eval $ac_compile) 2>conftest.er1
a848cd7e 15999 ac_status=$?
ac1cb8d3
VS
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
a848cd7e
SC
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
5f652d0d
VS
16005 { ac_try='test -z "$ac_c_werror_flag"
16006 || test ! -s conftest.err'
ac1cb8d3
VS
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; } &&
16012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_lo=$ac_mid; break
16019else
16020 echo "$as_me: failed program was:" >&5
16021sed 's/^/| /' conftest.$ac_ext >&5
16022
16023ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16024 if test $ac_mid -le $ac_hi; then
16025 ac_lo= ac_hi=
16026 break
16027 fi
16028 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16029fi
ac1cb8d3 16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16031 done
16032else
16033 echo "$as_me: failed program was:" >&5
16034sed 's/^/| /' conftest.$ac_ext >&5
16035
16036ac_lo= ac_hi=
16037fi
ac1cb8d3 16038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16039fi
ac1cb8d3 16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16041# Binary search between lo and hi bounds.
16042while test "x$ac_lo" != "x$ac_hi"; do
16043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16044 cat >conftest.$ac_ext <<_ACEOF
16045/* confdefs.h. */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h. */
16050$ac_includes_default
16051int
16052main ()
16053{
16054static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16055test_array [0] = 0
16056
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext
16062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16063 (eval $ac_compile) 2>conftest.er1
a848cd7e 16064 ac_status=$?
ac1cb8d3
VS
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
a848cd7e
SC
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
5f652d0d
VS
16070 { ac_try='test -z "$ac_c_werror_flag"
16071 || test ! -s conftest.err'
ac1cb8d3
VS
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 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'
a848cd7e
SC
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
ac1cb8d3 16090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16091done
16092case $ac_lo in
16093?*) ac_cv_sizeof_int=$ac_lo;;
16094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16095See \`config.log' for more details." >&5
16096echo "$as_me: error: cannot compute sizeof (int), 77
16097See \`config.log' for more details." >&2;}
16098 { (exit 1); exit 1; }; } ;;
16099esac
16100else
16101 if test "$cross_compiling" = yes; then
5f652d0d
VS
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;}
a848cd7e
SC
16106 { (exit 1); exit 1; }; }
16107else
16108 cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114$ac_includes_default
16115long longval () { return (long) (sizeof (int)); }
16116unsigned long ulongval () { return (long) (sizeof (int)); }
16117#include <stdio.h>
16118#include <stdlib.h>
16119int
16120main ()
16121{
16122
16123 FILE *f = fopen ("conftest.val", "w");
16124 if (! f)
16125 exit (1);
16126 if (((long) (sizeof (int))) < 0)
16127 {
16128 long i = longval ();
16129 if (i != ((long) (sizeof (int))))
16130 exit (1);
16131 fprintf (f, "%ld\n", i);
16132 }
16133 else
16134 {
16135 unsigned long i = ulongval ();
16136 if (i != ((long) (sizeof (int))))
16137 exit (1);
16138 fprintf (f, "%lu\n", i);
16139 }
16140 exit (ferror (f) || fclose (f) != 0);
16141
16142 ;
16143 return 0;
16144}
16145_ACEOF
16146rm -f conftest$ac_exeext
16147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_sizeof_int=`cat conftest.val`
16158else
16159 echo "$as_me: program exited with status $ac_status" >&5
16160echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163( exit $ac_status )
16164{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16165See \`config.log' for more details." >&5
16166echo "$as_me: error: cannot compute sizeof (int), 77
16167See \`config.log' for more details." >&2;}
16168 { (exit 1); exit 1; }; }
16169fi
ac1cb8d3 16170rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16171fi
16172fi
16173rm -f conftest.val
16174else
16175 ac_cv_sizeof_int=0
16176fi
16177fi
16178echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16179echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16180cat >>confdefs.h <<_ACEOF
16181#define SIZEOF_INT $ac_cv_sizeof_int
16182_ACEOF
16183
16184
16185echo "$as_me:$LINENO: checking for long" >&5
16186echo $ECHO_N "checking for long... $ECHO_C" >&6
16187if test "${ac_cv_type_long+set}" = set; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189else
16190 cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h. */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h. */
16196$ac_includes_default
16197int
16198main ()
16199{
16200if ((long *) 0)
16201 return 0;
16202if (sizeof (long))
16203 return 0;
16204 ;
16205 return 0;
16206}
16207_ACEOF
16208rm -f conftest.$ac_objext
16209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16210 (eval $ac_compile) 2>conftest.er1
a848cd7e 16211 ac_status=$?
ac1cb8d3
VS
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
a848cd7e
SC
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
5f652d0d
VS
16217 { ac_try='test -z "$ac_c_werror_flag"
16218 || test ! -s conftest.err'
ac1cb8d3
VS
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_cv_type_long=yes
16231else
16232 echo "$as_me: failed program was:" >&5
16233sed 's/^/| /' conftest.$ac_ext >&5
16234
16235ac_cv_type_long=no
16236fi
ac1cb8d3 16237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16238fi
16239echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16240echo "${ECHO_T}$ac_cv_type_long" >&6
16241
16242echo "$as_me:$LINENO: checking size of long" >&5
16243echo $ECHO_N "checking size of long... $ECHO_C" >&6
16244if test "${ac_cv_sizeof_long+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246else
16247 if test "$ac_cv_type_long" = yes; then
16248 # The cast to unsigned long works around a bug in the HP C Compiler
16249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16251 # This bug is HP SR number 8606223364.
16252 if test "$cross_compiling" = yes; then
16253 # Depending upon the size, compute the lo and hi bounds.
16254cat >conftest.$ac_ext <<_ACEOF
16255/* confdefs.h. */
16256_ACEOF
16257cat confdefs.h >>conftest.$ac_ext
16258cat >>conftest.$ac_ext <<_ACEOF
16259/* end confdefs.h. */
16260$ac_includes_default
16261int
16262main ()
16263{
16264static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16265test_array [0] = 0
16266
16267 ;
16268 return 0;
16269}
16270_ACEOF
16271rm -f conftest.$ac_objext
16272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16273 (eval $ac_compile) 2>conftest.er1
a848cd7e 16274 ac_status=$?
ac1cb8d3
VS
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
a848cd7e
SC
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
5f652d0d
VS
16280 { ac_try='test -z "$ac_c_werror_flag"
16281 || test ! -s conftest.err'
ac1cb8d3
VS
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; } &&
16287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_lo=0 ac_mid=0
16294 while :; do
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301$ac_includes_default
16302int
16303main ()
16304{
16305static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16306test_array [0] = 0
16307
16308 ;
16309 return 0;
16310}
16311_ACEOF
16312rm -f conftest.$ac_objext
16313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16314 (eval $ac_compile) 2>conftest.er1
a848cd7e 16315 ac_status=$?
ac1cb8d3
VS
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
a848cd7e
SC
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
5f652d0d
VS
16321 { ac_try='test -z "$ac_c_werror_flag"
16322 || test ! -s conftest.err'
ac1cb8d3
VS
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }; } &&
16328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_hi=$ac_mid; break
16335else
16336 echo "$as_me: failed program was:" >&5
16337sed 's/^/| /' conftest.$ac_ext >&5
16338
16339ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16340 if test $ac_lo -le $ac_mid; then
16341 ac_lo= ac_hi=
16342 break
16343 fi
16344 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16345fi
ac1cb8d3 16346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16347 done
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352cat >conftest.$ac_ext <<_ACEOF
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358$ac_includes_default
16359int
16360main ()
16361{
16362static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16363test_array [0] = 0
16364
16365 ;
16366 return 0;
16367}
16368_ACEOF
16369rm -f conftest.$ac_objext
16370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16371 (eval $ac_compile) 2>conftest.er1
a848cd7e 16372 ac_status=$?
ac1cb8d3
VS
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
a848cd7e
SC
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
5f652d0d
VS
16378 { ac_try='test -z "$ac_c_werror_flag"
16379 || test ! -s conftest.err'
ac1cb8d3
VS
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16388 ac_status=$?
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_hi=-1 ac_mid=-1
16392 while :; do
16393 cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399$ac_includes_default
16400int
16401main ()
16402{
16403static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16404test_array [0] = 0
16405
16406 ;
16407 return 0;
16408}
16409_ACEOF
16410rm -f conftest.$ac_objext
16411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16412 (eval $ac_compile) 2>conftest.er1
a848cd7e 16413 ac_status=$?
ac1cb8d3
VS
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
a848cd7e
SC
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
5f652d0d
VS
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
ac1cb8d3
VS
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_lo=$ac_mid; break
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16438 if test $ac_mid -le $ac_hi; then
16439 ac_lo= ac_hi=
16440 break
16441 fi
16442 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16443fi
ac1cb8d3 16444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16445 done
16446else
16447 echo "$as_me: failed program was:" >&5
16448sed 's/^/| /' conftest.$ac_ext >&5
16449
16450ac_lo= ac_hi=
16451fi
ac1cb8d3 16452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16453fi
ac1cb8d3 16454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16455# Binary search between lo and hi bounds.
16456while test "x$ac_lo" != "x$ac_hi"; do
16457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16458 cat >conftest.$ac_ext <<_ACEOF
16459/* confdefs.h. */
16460_ACEOF
16461cat confdefs.h >>conftest.$ac_ext
16462cat >>conftest.$ac_ext <<_ACEOF
16463/* end confdefs.h. */
16464$ac_includes_default
16465int
16466main ()
16467{
16468static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16469test_array [0] = 0
16470
16471 ;
16472 return 0;
16473}
16474_ACEOF
16475rm -f conftest.$ac_objext
16476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16477 (eval $ac_compile) 2>conftest.er1
a848cd7e 16478 ac_status=$?
ac1cb8d3
VS
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
a848cd7e
SC
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
5f652d0d
VS
16484 { ac_try='test -z "$ac_c_werror_flag"
16485 || test ! -s conftest.err'
ac1cb8d3
VS
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_hi=$ac_mid
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502ac_lo=`expr '(' $ac_mid ')' + 1`
16503fi
ac1cb8d3 16504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16505done
16506case $ac_lo in
16507?*) ac_cv_sizeof_long=$ac_lo;;
16508'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16509See \`config.log' for more details." >&5
16510echo "$as_me: error: cannot compute sizeof (long), 77
16511See \`config.log' for more details." >&2;}
16512 { (exit 1); exit 1; }; } ;;
16513esac
16514else
16515 if test "$cross_compiling" = yes; then
5f652d0d
VS
16516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16517See \`config.log' for more details." >&5
16518echo "$as_me: error: cannot run test program while cross compiling
16519See \`config.log' for more details." >&2;}
a848cd7e
SC
16520 { (exit 1); exit 1; }; }
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529long longval () { return (long) (sizeof (long)); }
16530unsigned long ulongval () { return (long) (sizeof (long)); }
16531#include <stdio.h>
16532#include <stdlib.h>
16533int
16534main ()
16535{
16536
16537 FILE *f = fopen ("conftest.val", "w");
16538 if (! f)
16539 exit (1);
16540 if (((long) (sizeof (long))) < 0)
16541 {
16542 long i = longval ();
16543 if (i != ((long) (sizeof (long))))
16544 exit (1);
16545 fprintf (f, "%ld\n", i);
16546 }
16547 else
16548 {
16549 unsigned long i = ulongval ();
16550 if (i != ((long) (sizeof (long))))
16551 exit (1);
16552 fprintf (f, "%lu\n", i);
16553 }
16554 exit (ferror (f) || fclose (f) != 0);
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560rm -f conftest$ac_exeext
16561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_sizeof_long=`cat conftest.val`
16572else
16573 echo "$as_me: program exited with status $ac_status" >&5
16574echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577( exit $ac_status )
16578{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16579See \`config.log' for more details." >&5
16580echo "$as_me: error: cannot compute sizeof (long), 77
16581See \`config.log' for more details." >&2;}
16582 { (exit 1); exit 1; }; }
16583fi
ac1cb8d3 16584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16585fi
16586fi
16587rm -f conftest.val
16588else
16589 ac_cv_sizeof_long=0
16590fi
16591fi
16592echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16593echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16594cat >>confdefs.h <<_ACEOF
16595#define SIZEOF_LONG $ac_cv_sizeof_long
16596_ACEOF
16597
16598
16599echo "$as_me:$LINENO: checking for size_t" >&5
16600echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16601if test "${ac_cv_type_size_t+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603else
16604 cat >conftest.$ac_ext <<_ACEOF
16605/* confdefs.h. */
16606_ACEOF
16607cat confdefs.h >>conftest.$ac_ext
16608cat >>conftest.$ac_ext <<_ACEOF
16609/* end confdefs.h. */
16610$ac_includes_default
16611int
16612main ()
16613{
16614if ((size_t *) 0)
16615 return 0;
16616if (sizeof (size_t))
16617 return 0;
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext
16623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16624 (eval $ac_compile) 2>conftest.er1
a848cd7e 16625 ac_status=$?
ac1cb8d3
VS
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
a848cd7e
SC
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
5f652d0d
VS
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
ac1cb8d3
VS
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_size_t=yes
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649ac_cv_type_size_t=no
16650fi
ac1cb8d3 16651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16652fi
16653echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16654echo "${ECHO_T}$ac_cv_type_size_t" >&6
16655
16656echo "$as_me:$LINENO: checking size of size_t" >&5
16657echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16658if test "${ac_cv_sizeof_size_t+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660else
16661 if test "$ac_cv_type_size_t" = yes; then
16662 # The cast to unsigned long works around a bug in the HP C Compiler
16663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16665 # This bug is HP SR number 8606223364.
16666 if test "$cross_compiling" = yes; then
16667 # Depending upon the size, compute the lo and hi bounds.
16668cat >conftest.$ac_ext <<_ACEOF
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674$ac_includes_default
16675int
16676main ()
16677{
16678static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16679test_array [0] = 0
16680
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685rm -f conftest.$ac_objext
16686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16687 (eval $ac_compile) 2>conftest.er1
a848cd7e 16688 ac_status=$?
ac1cb8d3
VS
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
a848cd7e
SC
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
5f652d0d
VS
16694 { ac_try='test -z "$ac_c_werror_flag"
16695 || test ! -s conftest.err'
ac1cb8d3
VS
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; } &&
16701 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_lo=0 ac_mid=0
16708 while :; do
16709 cat >conftest.$ac_ext <<_ACEOF
16710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
16715$ac_includes_default
16716int
16717main ()
16718{
16719static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16720test_array [0] = 0
16721
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16728 (eval $ac_compile) 2>conftest.er1
a848cd7e 16729 ac_status=$?
ac1cb8d3
VS
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
a848cd7e
SC
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
5f652d0d
VS
16735 { ac_try='test -z "$ac_c_werror_flag"
16736 || test ! -s conftest.err'
ac1cb8d3
VS
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744 (eval $ac_try) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; }; then
16748 ac_hi=$ac_mid; break
16749else
16750 echo "$as_me: failed program was:" >&5
16751sed 's/^/| /' conftest.$ac_ext >&5
16752
16753ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16754 if test $ac_lo -le $ac_mid; then
16755 ac_lo= ac_hi=
16756 break
16757 fi
16758 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16759fi
ac1cb8d3 16760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16761 done
16762else
16763 echo "$as_me: failed program was:" >&5
16764sed 's/^/| /' conftest.$ac_ext >&5
16765
16766cat >conftest.$ac_ext <<_ACEOF
16767/* confdefs.h. */
16768_ACEOF
16769cat confdefs.h >>conftest.$ac_ext
16770cat >>conftest.$ac_ext <<_ACEOF
16771/* end confdefs.h. */
16772$ac_includes_default
16773int
16774main ()
16775{
16776static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16777test_array [0] = 0
16778
16779 ;
16780 return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext
16784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16785 (eval $ac_compile) 2>conftest.er1
a848cd7e 16786 ac_status=$?
ac1cb8d3
VS
16787 grep -v '^ *+' conftest.er1 >conftest.err
16788 rm -f conftest.er1
16789 cat conftest.err >&5
a848cd7e
SC
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
5f652d0d
VS
16792 { ac_try='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
ac1cb8d3
VS
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_hi=-1 ac_mid=-1
16806 while :; do
16807 cat >conftest.$ac_ext <<_ACEOF
16808/* confdefs.h. */
16809_ACEOF
16810cat confdefs.h >>conftest.$ac_ext
16811cat >>conftest.$ac_ext <<_ACEOF
16812/* end confdefs.h. */
16813$ac_includes_default
16814int
16815main ()
16816{
16817static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16818test_array [0] = 0
16819
16820 ;
16821 return 0;
16822}
16823_ACEOF
16824rm -f conftest.$ac_objext
16825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16826 (eval $ac_compile) 2>conftest.er1
a848cd7e 16827 ac_status=$?
ac1cb8d3
VS
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
a848cd7e
SC
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
5f652d0d
VS
16833 { ac_try='test -z "$ac_c_werror_flag"
16834 || test ! -s conftest.err'
ac1cb8d3
VS
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_lo=$ac_mid; break
16847else
16848 echo "$as_me: failed program was:" >&5
16849sed 's/^/| /' conftest.$ac_ext >&5
16850
16851ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16852 if test $ac_mid -le $ac_hi; then
16853 ac_lo= ac_hi=
16854 break
16855 fi
16856 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16857fi
ac1cb8d3 16858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16859 done
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864ac_lo= ac_hi=
16865fi
ac1cb8d3 16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16867fi
ac1cb8d3 16868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16869# Binary search between lo and hi bounds.
16870while test "x$ac_lo" != "x$ac_hi"; do
16871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16872 cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878$ac_includes_default
16879int
16880main ()
16881{
16882static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16883test_array [0] = 0
16884
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext
16890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16891 (eval $ac_compile) 2>conftest.er1
a848cd7e 16892 ac_status=$?
ac1cb8d3
VS
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
a848cd7e
SC
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
5f652d0d
VS
16898 { ac_try='test -z "$ac_c_werror_flag"
16899 || test ! -s conftest.err'
ac1cb8d3
VS
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 ac_hi=$ac_mid
16912else
16913 echo "$as_me: failed program was:" >&5
16914sed 's/^/| /' conftest.$ac_ext >&5
16915
16916ac_lo=`expr '(' $ac_mid ')' + 1`
16917fi
ac1cb8d3 16918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16919done
16920case $ac_lo in
16921?*) ac_cv_sizeof_size_t=$ac_lo;;
16922'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16923See \`config.log' for more details." >&5
16924echo "$as_me: error: cannot compute sizeof (size_t), 77
16925See \`config.log' for more details." >&2;}
16926 { (exit 1); exit 1; }; } ;;
16927esac
16928else
16929 if test "$cross_compiling" = yes; then
5f652d0d
VS
16930 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16931See \`config.log' for more details." >&5
16932echo "$as_me: error: cannot run test program while cross compiling
16933See \`config.log' for more details." >&2;}
a848cd7e
SC
16934 { (exit 1); exit 1; }; }
16935else
16936 cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943long longval () { return (long) (sizeof (size_t)); }
16944unsigned long ulongval () { return (long) (sizeof (size_t)); }
16945#include <stdio.h>
16946#include <stdlib.h>
16947int
16948main ()
16949{
16950
16951 FILE *f = fopen ("conftest.val", "w");
16952 if (! f)
16953 exit (1);
16954 if (((long) (sizeof (size_t))) < 0)
16955 {
16956 long i = longval ();
16957 if (i != ((long) (sizeof (size_t))))
16958 exit (1);
16959 fprintf (f, "%ld\n", i);
16960 }
16961 else
16962 {
16963 unsigned long i = ulongval ();
16964 if (i != ((long) (sizeof (size_t))))
16965 exit (1);
16966 fprintf (f, "%lu\n", i);
16967 }
16968 exit (ferror (f) || fclose (f) != 0);
16969
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest$ac_exeext
16975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_sizeof_size_t=`cat conftest.val`
16986else
16987 echo "$as_me: program exited with status $ac_status" >&5
16988echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991( exit $ac_status )
16992{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16993See \`config.log' for more details." >&5
16994echo "$as_me: error: cannot compute sizeof (size_t), 77
16995See \`config.log' for more details." >&2;}
16996 { (exit 1); exit 1; }; }
16997fi
ac1cb8d3 16998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16999fi
17000fi
17001rm -f conftest.val
17002else
17003 ac_cv_sizeof_size_t=0
17004fi
17005fi
17006echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17007echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17008cat >>confdefs.h <<_ACEOF
17009#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17010_ACEOF
17011
17012
17013
17014case "${host}" in
17015 arm-*-linux* )
17016 echo "$as_me:$LINENO: checking for long long" >&5
17017echo $ECHO_N "checking for long long... $ECHO_C" >&6
17018if test "${ac_cv_type_long_long+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17020else
17021 cat >conftest.$ac_ext <<_ACEOF
17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027$ac_includes_default
17028int
17029main ()
17030{
17031if ((long long *) 0)
17032 return 0;
17033if (sizeof (long long))
17034 return 0;
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext
17040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17041 (eval $ac_compile) 2>conftest.er1
a848cd7e 17042 ac_status=$?
ac1cb8d3
VS
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
a848cd7e
SC
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
5f652d0d
VS
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
ac1cb8d3
VS
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_type_long_long=yes
17062else
17063 echo "$as_me: failed program was:" >&5
17064sed 's/^/| /' conftest.$ac_ext >&5
17065
17066ac_cv_type_long_long=no
17067fi
ac1cb8d3 17068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17069fi
17070echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17071echo "${ECHO_T}$ac_cv_type_long_long" >&6
17072
17073echo "$as_me:$LINENO: checking size of long long" >&5
17074echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17075if test "${ac_cv_sizeof_long_long+set}" = set; then
17076 echo $ECHO_N "(cached) $ECHO_C" >&6
17077else
17078 if test "$ac_cv_type_long_long" = yes; then
17079 # The cast to unsigned long works around a bug in the HP C Compiler
17080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17082 # This bug is HP SR number 8606223364.
17083 if test "$cross_compiling" = yes; then
17084 # Depending upon the size, compute the lo and hi bounds.
17085cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091$ac_includes_default
17092int
17093main ()
17094{
17095static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17096test_array [0] = 0
17097
17098 ;
17099 return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext
17103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17104 (eval $ac_compile) 2>conftest.er1
a848cd7e 17105 ac_status=$?
ac1cb8d3
VS
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
a848cd7e
SC
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
5f652d0d
VS
17111 { ac_try='test -z "$ac_c_werror_flag"
17112 || test ! -s conftest.err'
ac1cb8d3
VS
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17120 (eval $ac_try) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_lo=0 ac_mid=0
17125 while :; do
17126 cat >conftest.$ac_ext <<_ACEOF
17127/* confdefs.h. */
17128_ACEOF
17129cat confdefs.h >>conftest.$ac_ext
17130cat >>conftest.$ac_ext <<_ACEOF
17131/* end confdefs.h. */
17132$ac_includes_default
17133int
17134main ()
17135{
17136static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17137test_array [0] = 0
17138
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143rm -f conftest.$ac_objext
17144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17145 (eval $ac_compile) 2>conftest.er1
a848cd7e 17146 ac_status=$?
ac1cb8d3
VS
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
a848cd7e
SC
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
5f652d0d
VS
17152 { ac_try='test -z "$ac_c_werror_flag"
17153 || test ! -s conftest.err'
ac1cb8d3
VS
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_hi=$ac_mid; break
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17171 if test $ac_lo -le $ac_mid; then
17172 ac_lo= ac_hi=
17173 break
17174 fi
17175 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17176fi
ac1cb8d3 17177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17178 done
17179else
17180 echo "$as_me: failed program was:" >&5
17181sed 's/^/| /' conftest.$ac_ext >&5
17182
17183cat >conftest.$ac_ext <<_ACEOF
17184/* confdefs.h. */
17185_ACEOF
17186cat confdefs.h >>conftest.$ac_ext
17187cat >>conftest.$ac_ext <<_ACEOF
17188/* end confdefs.h. */
17189$ac_includes_default
17190int
17191main ()
17192{
17193static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17194test_array [0] = 0
17195
17196 ;
17197 return 0;
17198}
17199_ACEOF
17200rm -f conftest.$ac_objext
17201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17202 (eval $ac_compile) 2>conftest.er1
a848cd7e 17203 ac_status=$?
ac1cb8d3
VS
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
a848cd7e
SC
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
5f652d0d
VS
17209 { ac_try='test -z "$ac_c_werror_flag"
17210 || test ! -s conftest.err'
ac1cb8d3
VS
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 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'
a848cd7e
SC
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_hi=-1 ac_mid=-1
17223 while :; do
17224 cat >conftest.$ac_ext <<_ACEOF
17225/* confdefs.h. */
17226_ACEOF
17227cat confdefs.h >>conftest.$ac_ext
17228cat >>conftest.$ac_ext <<_ACEOF
17229/* end confdefs.h. */
17230$ac_includes_default
17231int
17232main ()
17233{
17234static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17235test_array [0] = 0
17236
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext
17242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17243 (eval $ac_compile) 2>conftest.er1
a848cd7e 17244 ac_status=$?
ac1cb8d3
VS
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
a848cd7e
SC
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
5f652d0d
VS
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
ac1cb8d3
VS
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_lo=$ac_mid; break
17264else
17265 echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17269 if test $ac_mid -le $ac_hi; then
17270 ac_lo= ac_hi=
17271 break
17272 fi
17273 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17274fi
ac1cb8d3 17275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17276 done
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281ac_lo= ac_hi=
17282fi
ac1cb8d3 17283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17284fi
ac1cb8d3 17285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17286# Binary search between lo and hi bounds.
17287while test "x$ac_lo" != "x$ac_hi"; do
17288 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17289 cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295$ac_includes_default
17296int
17297main ()
17298{
17299static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17300test_array [0] = 0
17301
17302 ;
17303 return 0;
17304}
17305_ACEOF
17306rm -f conftest.$ac_objext
17307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17308 (eval $ac_compile) 2>conftest.er1
a848cd7e 17309 ac_status=$?
ac1cb8d3
VS
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
a848cd7e
SC
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
5f652d0d
VS
17315 { ac_try='test -z "$ac_c_werror_flag"
17316 || test ! -s conftest.err'
ac1cb8d3
VS
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_hi=$ac_mid
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333ac_lo=`expr '(' $ac_mid ')' + 1`
17334fi
ac1cb8d3 17335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17336done
17337case $ac_lo in
17338?*) ac_cv_sizeof_long_long=$ac_lo;;
17339'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17340See \`config.log' for more details." >&5
17341echo "$as_me: error: cannot compute sizeof (long long), 77
17342See \`config.log' for more details." >&2;}
17343 { (exit 1); exit 1; }; } ;;
17344esac
17345else
17346 if test "$cross_compiling" = yes; then
5f652d0d
VS
17347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17348See \`config.log' for more details." >&5
17349echo "$as_me: error: cannot run test program while cross compiling
17350See \`config.log' for more details." >&2;}
a848cd7e
SC
17351 { (exit 1); exit 1; }; }
17352else
17353 cat >conftest.$ac_ext <<_ACEOF
17354/* confdefs.h. */
17355_ACEOF
17356cat confdefs.h >>conftest.$ac_ext
17357cat >>conftest.$ac_ext <<_ACEOF
17358/* end confdefs.h. */
17359$ac_includes_default
17360long longval () { return (long) (sizeof (long long)); }
17361unsigned long ulongval () { return (long) (sizeof (long long)); }
17362#include <stdio.h>
17363#include <stdlib.h>
17364int
17365main ()
17366{
17367
17368 FILE *f = fopen ("conftest.val", "w");
17369 if (! f)
17370 exit (1);
17371 if (((long) (sizeof (long long))) < 0)
17372 {
17373 long i = longval ();
17374 if (i != ((long) (sizeof (long long))))
17375 exit (1);
17376 fprintf (f, "%ld\n", i);
17377 }
17378 else
17379 {
17380 unsigned long i = ulongval ();
17381 if (i != ((long) (sizeof (long long))))
17382 exit (1);
17383 fprintf (f, "%lu\n", i);
17384 }
17385 exit (ferror (f) || fclose (f) != 0);
17386
17387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest$ac_exeext
17392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393 (eval $ac_link) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_sizeof_long_long=`cat conftest.val`
17403else
17404 echo "$as_me: program exited with status $ac_status" >&5
17405echo "$as_me: failed program was:" >&5
17406sed 's/^/| /' conftest.$ac_ext >&5
17407
17408( exit $ac_status )
17409{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17410See \`config.log' for more details." >&5
17411echo "$as_me: error: cannot compute sizeof (long long), 77
17412See \`config.log' for more details." >&2;}
17413 { (exit 1); exit 1; }; }
17414fi
ac1cb8d3 17415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17416fi
17417fi
17418rm -f conftest.val
17419else
17420 ac_cv_sizeof_long_long=0
17421fi
17422fi
17423echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17424echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17425cat >>confdefs.h <<_ACEOF
17426#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17427_ACEOF
17428
17429
17430 ;;
17431 *-hp-hpux* )
17432 echo "$as_me:$LINENO: checking for long long" >&5
17433echo $ECHO_N "checking for long long... $ECHO_C" >&6
17434if test "${ac_cv_type_long_long+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436else
17437 cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443$ac_includes_default
17444int
17445main ()
17446{
17447if ((long long *) 0)
17448 return 0;
17449if (sizeof (long long))
17450 return 0;
17451 ;
17452 return 0;
17453}
17454_ACEOF
17455rm -f conftest.$ac_objext
17456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17457 (eval $ac_compile) 2>conftest.er1
a848cd7e 17458 ac_status=$?
ac1cb8d3
VS
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
a848cd7e
SC
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
5f652d0d
VS
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
ac1cb8d3
VS
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 ac_cv_type_long_long=yes
17478else
17479 echo "$as_me: failed program was:" >&5
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
17482ac_cv_type_long_long=no
17483fi
ac1cb8d3 17484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17485fi
17486echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17487echo "${ECHO_T}$ac_cv_type_long_long" >&6
17488
17489echo "$as_me:$LINENO: checking size of long long" >&5
17490echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17491if test "${ac_cv_sizeof_long_long+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 if test "$ac_cv_type_long_long" = yes; then
17495 # The cast to unsigned long works around a bug in the HP C Compiler
17496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17498 # This bug is HP SR number 8606223364.
17499 if test "$cross_compiling" = yes; then
17500 # Depending upon the size, compute the lo and hi bounds.
17501cat >conftest.$ac_ext <<_ACEOF
17502/* confdefs.h. */
17503_ACEOF
17504cat confdefs.h >>conftest.$ac_ext
17505cat >>conftest.$ac_ext <<_ACEOF
17506/* end confdefs.h. */
17507$ac_includes_default
17508int
17509main ()
17510{
17511static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17512test_array [0] = 0
17513
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext
17519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17520 (eval $ac_compile) 2>conftest.er1
a848cd7e 17521 ac_status=$?
ac1cb8d3
VS
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
a848cd7e
SC
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
5f652d0d
VS
17527 { ac_try='test -z "$ac_c_werror_flag"
17528 || test ! -s conftest.err'
ac1cb8d3
VS
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; } &&
17534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; }; then
17540 ac_lo=0 ac_mid=0
17541 while :; do
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
17549int
17550main ()
17551{
17552static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17553test_array [0] = 0
17554
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17561 (eval $ac_compile) 2>conftest.er1
a848cd7e 17562 ac_status=$?
ac1cb8d3
VS
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
a848cd7e
SC
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
5f652d0d
VS
17568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
ac1cb8d3
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_hi=$ac_mid; break
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17587 if test $ac_lo -le $ac_mid; then
17588 ac_lo= ac_hi=
17589 break
17590 fi
17591 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17592fi
ac1cb8d3 17593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17594 done
17595else
17596 echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605$ac_includes_default
17606int
17607main ()
17608{
17609static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17610test_array [0] = 0
17611
17612 ;
17613 return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext
17617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17618 (eval $ac_compile) 2>conftest.er1
a848cd7e 17619 ac_status=$?
ac1cb8d3
VS
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
a848cd7e
SC
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
5f652d0d
VS
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
ac1cb8d3
VS
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_hi=-1 ac_mid=-1
17639 while :; do
17640 cat >conftest.$ac_ext <<_ACEOF
17641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
17646$ac_includes_default
17647int
17648main ()
17649{
17650static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17651test_array [0] = 0
17652
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17659 (eval $ac_compile) 2>conftest.er1
a848cd7e 17660 ac_status=$?
ac1cb8d3
VS
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
a848cd7e
SC
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
5f652d0d
VS
17666 { ac_try='test -z "$ac_c_werror_flag"
17667 || test ! -s conftest.err'
ac1cb8d3
VS
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_lo=$ac_mid; break
17680else
17681 echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17685 if test $ac_mid -le $ac_hi; then
17686 ac_lo= ac_hi=
17687 break
17688 fi
17689 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17690fi
ac1cb8d3 17691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17692 done
17693else
17694 echo "$as_me: failed program was:" >&5
17695sed 's/^/| /' conftest.$ac_ext >&5
17696
17697ac_lo= ac_hi=
17698fi
ac1cb8d3 17699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17700fi
ac1cb8d3 17701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17702# Binary search between lo and hi bounds.
17703while test "x$ac_lo" != "x$ac_hi"; do
17704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17705 cat >conftest.$ac_ext <<_ACEOF
17706/* confdefs.h. */
17707_ACEOF
17708cat confdefs.h >>conftest.$ac_ext
17709cat >>conftest.$ac_ext <<_ACEOF
17710/* end confdefs.h. */
17711$ac_includes_default
17712int
17713main ()
17714{
17715static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17716test_array [0] = 0
17717
17718 ;
17719 return 0;
17720}
17721_ACEOF
17722rm -f conftest.$ac_objext
17723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17724 (eval $ac_compile) 2>conftest.er1
a848cd7e 17725 ac_status=$?
ac1cb8d3
VS
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
a848cd7e
SC
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
5f652d0d
VS
17731 { ac_try='test -z "$ac_c_werror_flag"
17732 || test ! -s conftest.err'
ac1cb8d3
VS
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_hi=$ac_mid
17745else
17746 echo "$as_me: failed program was:" >&5
17747sed 's/^/| /' conftest.$ac_ext >&5
17748
17749ac_lo=`expr '(' $ac_mid ')' + 1`
17750fi
ac1cb8d3 17751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17752done
17753case $ac_lo in
17754?*) ac_cv_sizeof_long_long=$ac_lo;;
17755'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17756See \`config.log' for more details." >&5
17757echo "$as_me: error: cannot compute sizeof (long long), 77
17758See \`config.log' for more details." >&2;}
17759 { (exit 1); exit 1; }; } ;;
17760esac
17761else
17762 if test "$cross_compiling" = yes; then
5f652d0d
VS
17763 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17764See \`config.log' for more details." >&5
17765echo "$as_me: error: cannot run test program while cross compiling
17766See \`config.log' for more details." >&2;}
a848cd7e
SC
17767 { (exit 1); exit 1; }; }
17768else
17769 cat >conftest.$ac_ext <<_ACEOF
17770/* confdefs.h. */
17771_ACEOF
17772cat confdefs.h >>conftest.$ac_ext
17773cat >>conftest.$ac_ext <<_ACEOF
17774/* end confdefs.h. */
17775$ac_includes_default
17776long longval () { return (long) (sizeof (long long)); }
17777unsigned long ulongval () { return (long) (sizeof (long long)); }
17778#include <stdio.h>
17779#include <stdlib.h>
17780int
17781main ()
17782{
17783
17784 FILE *f = fopen ("conftest.val", "w");
17785 if (! f)
17786 exit (1);
17787 if (((long) (sizeof (long long))) < 0)
17788 {
17789 long i = longval ();
17790 if (i != ((long) (sizeof (long long))))
17791 exit (1);
17792 fprintf (f, "%ld\n", i);
17793 }
17794 else
17795 {
17796 unsigned long i = ulongval ();
17797 if (i != ((long) (sizeof (long long))))
17798 exit (1);
17799 fprintf (f, "%lu\n", i);
17800 }
17801 exit (ferror (f) || fclose (f) != 0);
17802
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807rm -f conftest$ac_exeext
17808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809 (eval $ac_link) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_sizeof_long_long=`cat conftest.val`
17819else
17820 echo "$as_me: program exited with status $ac_status" >&5
17821echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824( exit $ac_status )
17825{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17826See \`config.log' for more details." >&5
17827echo "$as_me: error: cannot compute sizeof (long long), 77
17828See \`config.log' for more details." >&2;}
17829 { (exit 1); exit 1; }; }
17830fi
ac1cb8d3 17831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17832fi
17833fi
17834rm -f conftest.val
17835else
17836 ac_cv_sizeof_long_long=0
17837fi
17838fi
17839echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17840echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17841cat >>confdefs.h <<_ACEOF
17842#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17843_ACEOF
17844
17845
17846 if test "$ac_cv_sizeof_long_long" != "0"; then
17847 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17848 fi
17849 ;;
17850 * )
17851 echo "$as_me:$LINENO: checking for long long" >&5
17852echo $ECHO_N "checking for long long... $ECHO_C" >&6
17853if test "${ac_cv_type_long_long+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17855else
17856 cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863int
17864main ()
17865{
17866if ((long long *) 0)
17867 return 0;
17868if (sizeof (long long))
17869 return 0;
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext
17875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17876 (eval $ac_compile) 2>conftest.er1
a848cd7e 17877 ac_status=$?
ac1cb8d3
VS
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
a848cd7e
SC
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
5f652d0d
VS
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
ac1cb8d3
VS
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_type_long_long=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_cv_type_long_long=no
17902fi
ac1cb8d3 17903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17904fi
17905echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17906echo "${ECHO_T}$ac_cv_type_long_long" >&6
17907
17908echo "$as_me:$LINENO: checking size of long long" >&5
17909echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17910if test "${ac_cv_sizeof_long_long+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912else
17913 if test "$ac_cv_type_long_long" = yes; then
17914 # The cast to unsigned long works around a bug in the HP C Compiler
17915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17917 # This bug is HP SR number 8606223364.
17918 if test "$cross_compiling" = yes; then
17919 # Depending upon the size, compute the lo and hi bounds.
17920cat >conftest.$ac_ext <<_ACEOF
17921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
17926$ac_includes_default
17927int
17928main ()
17929{
17930static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17931test_array [0] = 0
17932
17933 ;
17934 return 0;
17935}
17936_ACEOF
17937rm -f conftest.$ac_objext
17938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17939 (eval $ac_compile) 2>conftest.er1
a848cd7e 17940 ac_status=$?
ac1cb8d3
VS
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
a848cd7e
SC
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
5f652d0d
VS
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
ac1cb8d3
VS
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_lo=0 ac_mid=0
17960 while :; do
17961 cat >conftest.$ac_ext <<_ACEOF
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967$ac_includes_default
17968int
17969main ()
17970{
17971static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17972test_array [0] = 0
17973
17974 ;
17975 return 0;
17976}
17977_ACEOF
17978rm -f conftest.$ac_objext
17979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17980 (eval $ac_compile) 2>conftest.er1
a848cd7e 17981 ac_status=$?
ac1cb8d3
VS
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
a848cd7e
SC
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
5f652d0d
VS
17987 { ac_try='test -z "$ac_c_werror_flag"
17988 || test ! -s conftest.err'
ac1cb8d3
VS
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; } &&
17994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; }; then
18000 ac_hi=$ac_mid; break
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18006 if test $ac_lo -le $ac_mid; then
18007 ac_lo= ac_hi=
18008 break
18009 fi
18010 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18011fi
ac1cb8d3 18012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18013 done
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018cat >conftest.$ac_ext <<_ACEOF
18019/* confdefs.h. */
18020_ACEOF
18021cat confdefs.h >>conftest.$ac_ext
18022cat >>conftest.$ac_ext <<_ACEOF
18023/* end confdefs.h. */
18024$ac_includes_default
18025int
18026main ()
18027{
18028static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18029test_array [0] = 0
18030
18031 ;
18032 return 0;
18033}
18034_ACEOF
18035rm -f conftest.$ac_objext
18036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18037 (eval $ac_compile) 2>conftest.er1
a848cd7e 18038 ac_status=$?
ac1cb8d3
VS
18039 grep -v '^ *+' conftest.er1 >conftest.err
18040 rm -f conftest.er1
18041 cat conftest.err >&5
a848cd7e
SC
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
5f652d0d
VS
18044 { ac_try='test -z "$ac_c_werror_flag"
18045 || test ! -s conftest.err'
ac1cb8d3
VS
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 ac_hi=-1 ac_mid=-1
18058 while :; do
18059 cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
18065$ac_includes_default
18066int
18067main ()
18068{
18069static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18070test_array [0] = 0
18071
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext
18077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18078 (eval $ac_compile) 2>conftest.er1
a848cd7e 18079 ac_status=$?
ac1cb8d3
VS
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
a848cd7e
SC
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
5f652d0d
VS
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
ac1cb8d3
VS
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_lo=$ac_mid; break
18099else
18100 echo "$as_me: failed program was:" >&5
18101sed 's/^/| /' conftest.$ac_ext >&5
18102
18103ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18104 if test $ac_mid -le $ac_hi; then
18105 ac_lo= ac_hi=
18106 break
18107 fi
18108 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18109fi
ac1cb8d3 18110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18111 done
18112else
18113 echo "$as_me: failed program was:" >&5
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
18116ac_lo= ac_hi=
18117fi
ac1cb8d3 18118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18119fi
ac1cb8d3 18120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18121# Binary search between lo and hi bounds.
18122while test "x$ac_lo" != "x$ac_hi"; do
18123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
18130$ac_includes_default
18131int
18132main ()
18133{
18134static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18135test_array [0] = 0
18136
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext
18142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18143 (eval $ac_compile) 2>conftest.er1
a848cd7e 18144 ac_status=$?
ac1cb8d3
VS
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
a848cd7e
SC
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
5f652d0d
VS
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
ac1cb8d3
VS
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_hi=$ac_mid
18164else
18165 echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168ac_lo=`expr '(' $ac_mid ')' + 1`
18169fi
ac1cb8d3 18170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18171done
18172case $ac_lo in
18173?*) ac_cv_sizeof_long_long=$ac_lo;;
18174'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18175See \`config.log' for more details." >&5
18176echo "$as_me: error: cannot compute sizeof (long long), 77
18177See \`config.log' for more details." >&2;}
18178 { (exit 1); exit 1; }; } ;;
18179esac
18180else
18181 if test "$cross_compiling" = yes; then
5f652d0d
VS
18182 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18183See \`config.log' for more details." >&5
18184echo "$as_me: error: cannot run test program while cross compiling
18185See \`config.log' for more details." >&2;}
a848cd7e
SC
18186 { (exit 1); exit 1; }; }
18187else
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194$ac_includes_default
18195long longval () { return (long) (sizeof (long long)); }
18196unsigned long ulongval () { return (long) (sizeof (long long)); }
18197#include <stdio.h>
18198#include <stdlib.h>
18199int
18200main ()
18201{
18202
18203 FILE *f = fopen ("conftest.val", "w");
18204 if (! f)
18205 exit (1);
18206 if (((long) (sizeof (long long))) < 0)
18207 {
18208 long i = longval ();
18209 if (i != ((long) (sizeof (long long))))
18210 exit (1);
18211 fprintf (f, "%ld\n", i);
18212 }
18213 else
18214 {
18215 unsigned long i = ulongval ();
18216 if (i != ((long) (sizeof (long long))))
18217 exit (1);
18218 fprintf (f, "%lu\n", i);
18219 }
18220 exit (ferror (f) || fclose (f) != 0);
18221
18222 ;
18223 return 0;
18224}
18225_ACEOF
18226rm -f conftest$ac_exeext
18227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228 (eval $ac_link) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_sizeof_long_long=`cat conftest.val`
18238else
18239 echo "$as_me: program exited with status $ac_status" >&5
18240echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
18243( exit $ac_status )
18244{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18245See \`config.log' for more details." >&5
18246echo "$as_me: error: cannot compute sizeof (long long), 77
18247See \`config.log' for more details." >&2;}
18248 { (exit 1); exit 1; }; }
18249fi
ac1cb8d3 18250rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18251fi
18252fi
18253rm -f conftest.val
18254else
18255 ac_cv_sizeof_long_long=0
18256fi
18257fi
18258echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18259echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18260cat >>confdefs.h <<_ACEOF
18261#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18262_ACEOF
18263
18264
18265esac
18266
18267echo "$as_me:$LINENO: checking size of wchar_t" >&5
18268echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18269if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18271else
18272
18273 if test "$cross_compiling" = yes; then
18274
18275 case "${host}" in
18276 *-pc-msdosdjgpp )
18277 wx_cv_sizeof_wchar_t=0
18278 ;;
18279 * )
18280 wx_cv_sizeof_wchar_t=4
18281 ;;
18282 esac
18283
18284
18285else
18286 cat >conftest.$ac_ext <<_ACEOF
18287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
18292
18293 /* DJGPP only has fake wchar_t: */
18294 #ifdef __DJGPP__
18295 # error "fake wchar_t"
18296 #endif
18297 #ifdef HAVE_WCHAR_H
18298 # ifdef __CYGWIN__
18299 # include <stddef.h>
18300 # endif
18301 # include <wchar.h>
18302 #endif
18303 #ifdef HAVE_STDLIB_H
18304 # include <stdlib.h>
18305 #endif
18306 #include <stdio.h>
18307 int main()
18308 {
18309 FILE *f=fopen("conftestval", "w");
18310 if (!f) exit(1);
18311 fprintf(f, "%i", sizeof(wchar_t));
18312 exit(0);
18313 }
18314
18315_ACEOF
18316rm -f conftest$ac_exeext
18317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 (eval $ac_link) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 wx_cv_sizeof_wchar_t=`cat conftestval`
18328else
18329 echo "$as_me: program exited with status $ac_status" >&5
18330echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333( exit $ac_status )
18334wx_cv_sizeof_wchar_t=0
18335fi
ac1cb8d3 18336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18337fi
18338
18339fi
18340echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18341echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18342
18343cat >>confdefs.h <<_ACEOF
18344#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18345_ACEOF
18346
18347
ba3d13e1
VZ
18348echo "$as_me:$LINENO: checking for va_copy" >&5
18349echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18350if test "${wx_cv_func_va_copy+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18352else
18353
18354 cat >conftest.$ac_ext <<_ACEOF
18355
18356 #include <stdarg.h>
18357 void foo(char *f, ...)
18358 {
18359 va_list ap1, ap2;
18360 va_start(ap1, f);
18361 va_copy(ap2, ap1);
18362 va_end(ap2);
18363 va_end(ap1);
18364 }
5886b072
VZ
18365 int main()
18366 {
18367 return foo("hi", 17);
18368 }
ba3d13e1
VZ
18369_ACEOF
18370rm -f conftest.$ac_objext conftest$ac_exeext
18371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18372 (eval $ac_link) 2>conftest.er1
18373 ac_status=$?
18374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } &&
5f652d0d
VS
18379 { ac_try='test -z "$ac_c_werror_flag"
18380 || test ! -s conftest.err'
ba3d13e1
VZ
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest$ac_exeext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 wx_cv_func_va_copy=yes
18393else
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397wx_cv_func_va_copy=no
18398
18399fi
18400rm -f conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402
18403
18404fi
18405echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18406echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18407
18408if test $wx_cv_func_va_copy = "yes"; then
18409 cat >>confdefs.h <<\_ACEOF
18410#define HAVE_VA_COPY 1
18411_ACEOF
18412
18413else
18414 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18415echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18416if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
18419
18420 if test "$cross_compiling" = yes; then
18421 wx_cv_type_va_list_lvalue=yes
18422
18423else
18424 cat >conftest.$ac_ext <<_ACEOF
18425
18426 #include <stdarg.h>
18427 int foo(char *f, ...)
18428 {
18429 va_list ap1, ap2;
18430 va_start(ap1, f);
18431 ap2 = ap1;
18432 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18433 return 1;
18434 va_end(ap2);
18435 va_end(ap1);
18436 return 0;
18437 }
18438 int main()
18439 {
18440 return foo("hi", 17);
18441 }
18442_ACEOF
18443rm -f conftest$ac_exeext
18444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18445 (eval $ac_link) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18454 wx_cv_type_va_list_lvalue=yes
18455else
18456 echo "$as_me: program exited with status $ac_status" >&5
18457echo "$as_me: failed program was:" >&5
18458sed 's/^/| /' conftest.$ac_ext >&5
18459
18460( exit $ac_status )
18461wx_cv_type_va_list_lvalue=no
18462fi
18463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18464fi
18465
18466
18467fi
18468echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18469echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18470
18471 if test $wx_cv_type_va_list_lvalue != "yes"; then
18472 cat >>confdefs.h <<\_ACEOF
18473#define VA_LIST_IS_ARRAY 1
18474_ACEOF
18475
18476 fi
18477fi
18478
a848cd7e
SC
18479# Check whether --enable-largefile or --disable-largefile was given.
18480if test "${enable_largefile+set}" = set; then
18481 enableval="$enable_largefile"
18482
18483fi;
18484if test "$enable_largefile" != no; then
18485 wx_largefile=no
18486
18487 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18488echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18489if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492
18493 cat >conftest.$ac_ext <<_ACEOF
18494/* confdefs.h. */
18495_ACEOF
18496cat confdefs.h >>conftest.$ac_ext
18497cat >>conftest.$ac_ext <<_ACEOF
18498/* end confdefs.h. */
18499#define _FILE_OFFSET_BITS 64
18500 #include <sys/types.h>
18501int
18502main ()
18503{
18504typedef struct {
18505 unsigned int field: sizeof(off_t) == 8;
18506} wxlf;
18507
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext
18513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18514 (eval $ac_compile) 2>conftest.er1
a848cd7e 18515 ac_status=$?
ac1cb8d3
VS
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
a848cd7e
SC
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
5f652d0d
VS
18521 { ac_try='test -z "$ac_c_werror_flag"
18522 || test ! -s conftest.err'
ac1cb8d3
VS
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_cv_sys_file_offset_bits=64
18535else
18536 echo "$as_me: failed program was:" >&5
18537sed 's/^/| /' conftest.$ac_ext >&5
18538
18539ac_cv_sys_file_offset_bits=no
18540fi
ac1cb8d3 18541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18542
18543
18544fi
18545echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18546echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18547
18548 if test "$ac_cv_sys_file_offset_bits" != no; then
18549 wx_largefile=yes
18550 cat >>confdefs.h <<_ACEOF
18551#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18552_ACEOF
18553
18554 fi
18555
18556 if test "x$wx_largefile" != "xyes"; then
18557
18558 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18559echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18560if test "${ac_cv_sys_large_files+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562else
18563
18564 cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570#define _LARGE_FILES 1
18571 #include <sys/types.h>
18572int
18573main ()
18574{
18575typedef struct {
18576 unsigned int field: sizeof(off_t) == 8;
18577} wxlf;
18578
18579 ;
18580 return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18585 (eval $ac_compile) 2>conftest.er1
a848cd7e 18586 ac_status=$?
ac1cb8d3
VS
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
a848cd7e
SC
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
5f652d0d
VS
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
ac1cb8d3
VS
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_sys_large_files=1
18606else
18607 echo "$as_me: failed program was:" >&5
18608sed 's/^/| /' conftest.$ac_ext >&5
18609
18610ac_cv_sys_large_files=no
18611fi
ac1cb8d3 18612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18613
18614
18615fi
18616echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18617echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18618
18619 if test "$ac_cv_sys_large_files" != no; then
18620 wx_largefile=yes
18621 cat >>confdefs.h <<_ACEOF
18622#define _LARGE_FILES $ac_cv_sys_large_files
18623_ACEOF
18624
18625 fi
18626
18627 fi
18628
18629 echo "$as_me:$LINENO: checking if large file support is available" >&5
18630echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18631 if test "x$wx_largefile" = "xyes"; then
18632 cat >>confdefs.h <<\_ACEOF
18633#define HAVE_LARGEFILE_SUPPORT 1
18634_ACEOF
18635
18636 fi
18637 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18638echo "${ECHO_T}$wx_largefile" >&6
18639fi
18640
18641
18642if test "x$wx_largefile" = "xyes"; then
18643 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18644 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18645 else
18646 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18647 fi
18648 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18649fi
18650
18651echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18652echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18653if test "${ac_cv_c_bigendian+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656 ac_cv_c_bigendian=unknown
18657# See if sys/param.h defines the BYTE_ORDER macro.
18658cat >conftest.$ac_ext <<_ACEOF
18659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
18663/* end confdefs.h. */
18664#include <sys/types.h>
18665#include <sys/param.h>
18666int
18667main ()
18668{
18669
18670#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18671 bogus endian macros
18672#endif
18673 ;
18674 return 0;
18675}
18676_ACEOF
18677rm -f conftest.$ac_objext
18678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18679 (eval $ac_compile) 2>conftest.er1
a848cd7e 18680 ac_status=$?
ac1cb8d3
VS
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
a848cd7e
SC
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
5f652d0d
VS
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
ac1cb8d3
VS
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 # It does; now see whether it defined to BIG_ENDIAN or not.
18700cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706#include <sys/types.h>
18707#include <sys/param.h>
18708int
18709main ()
18710{
18711
18712#if BYTE_ORDER != BIG_ENDIAN
18713 not big endian
18714#endif
18715 ;
18716 return 0;
18717}
18718_ACEOF
18719rm -f conftest.$ac_objext
18720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18721 (eval $ac_compile) 2>conftest.er1
a848cd7e 18722 ac_status=$?
ac1cb8d3
VS
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
a848cd7e
SC
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
5f652d0d
VS
18728 { ac_try='test -z "$ac_c_werror_flag"
18729 || test ! -s conftest.err'
ac1cb8d3
VS
18730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737 (eval $ac_try) 2>&5
18738 ac_status=$?
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; }; then
18741 ac_cv_c_bigendian=yes
18742else
18743 echo "$as_me: failed program was:" >&5
18744sed 's/^/| /' conftest.$ac_ext >&5
18745
18746ac_cv_c_bigendian=no
18747fi
ac1cb8d3 18748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18749else
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753fi
ac1cb8d3 18754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18755if test $ac_cv_c_bigendian = unknown; then
18756if test "$cross_compiling" = yes; then
18757 ac_cv_c_bigendian=unknown
18758else
18759 cat >conftest.$ac_ext <<_ACEOF
18760/* confdefs.h. */
18761_ACEOF
18762cat confdefs.h >>conftest.$ac_ext
18763cat >>conftest.$ac_ext <<_ACEOF
18764/* end confdefs.h. */
18765main () {
18766 /* Are we little or big endian? From Harbison&Steele. */
18767 union
18768 {
18769 long l;
18770 char c[sizeof (long)];
18771 } u;
18772 u.l = 1;
18773 exit (u.c[sizeof (long) - 1] == 1);
18774}
18775_ACEOF
18776rm -f conftest$ac_exeext
18777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18778 (eval $ac_link) 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787 ac_cv_c_bigendian=no
18788else
18789 echo "$as_me: program exited with status $ac_status" >&5
18790echo "$as_me: failed program was:" >&5
18791sed 's/^/| /' conftest.$ac_ext >&5
18792
18793( exit $ac_status )
18794ac_cv_c_bigendian=yes
18795fi
ac1cb8d3 18796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18797fi
18798fi
18799fi
18800echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18801echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18802if test $ac_cv_c_bigendian = unknown; then
18803 { 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
18804echo "$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;}
18805fi
18806if test $ac_cv_c_bigendian = yes; then
18807 cat >>confdefs.h <<\_ACEOF
18808#define WORDS_BIGENDIAN 1
18809_ACEOF
18810
18811fi
18812
18813
18814ac_ext=cc
18815ac_cpp='$CXXCPP $CPPFLAGS'
18816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18819echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18820echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18821if test -z "$CXXCPP"; then
18822 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18824else
18825 # Double quotes because CXXCPP needs to be expanded
18826 for CXXCPP in "$CXX -E" "/lib/cpp"
18827 do
18828 ac_preproc_ok=false
18829for ac_cxx_preproc_warn_flag in '' yes
18830do
18831 # Use a header file that comes with gcc, so configuring glibc
18832 # with a fresh cross-compiler works.
18833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18834 # <limits.h> exists even on freestanding compilers.
18835 # On the NeXT, cc -E runs the code through the compiler's parser,
18836 # not just through cpp. "Syntax error" is here to catch this case.
18837 cat >conftest.$ac_ext <<_ACEOF
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
18843#ifdef __STDC__
18844# include <limits.h>
18845#else
18846# include <assert.h>
18847#endif
ac1cb8d3 18848 Syntax error
a848cd7e
SC
18849_ACEOF
18850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } >/dev/null; then
18858 if test -s conftest.err; then
18859 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18861 else
18862 ac_cpp_err=
18863 fi
18864else
18865 ac_cpp_err=yes
18866fi
18867if test -z "$ac_cpp_err"; then
18868 :
18869else
18870 echo "$as_me: failed program was:" >&5
18871sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 # Broken: fails on valid input.
18874continue
18875fi
18876rm -f conftest.err conftest.$ac_ext
18877
18878 # OK, works on sane cases. Now check whether non-existent headers
18879 # can be detected and how.
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886#include <ac_nonexistent.h>
18887_ACEOF
18888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } >/dev/null; then
18896 if test -s conftest.err; then
18897 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18899 else
18900 ac_cpp_err=
18901 fi
18902else
18903 ac_cpp_err=yes
18904fi
18905if test -z "$ac_cpp_err"; then
18906 # Broken: success on invalid input.
18907continue
18908else
18909 echo "$as_me: failed program was:" >&5
18910sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 # Passes both tests.
18913ac_preproc_ok=:
18914break
18915fi
18916rm -f conftest.err conftest.$ac_ext
18917
18918done
18919# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18920rm -f conftest.err conftest.$ac_ext
18921if $ac_preproc_ok; then
18922 break
18923fi
18924
18925 done
18926 ac_cv_prog_CXXCPP=$CXXCPP
18927
18928fi
18929 CXXCPP=$ac_cv_prog_CXXCPP
18930else
18931 ac_cv_prog_CXXCPP=$CXXCPP
18932fi
18933echo "$as_me:$LINENO: result: $CXXCPP" >&5
18934echo "${ECHO_T}$CXXCPP" >&6
18935ac_preproc_ok=false
18936for ac_cxx_preproc_warn_flag in '' yes
18937do
18938 # Use a header file that comes with gcc, so configuring glibc
18939 # with a fresh cross-compiler works.
18940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18941 # <limits.h> exists even on freestanding compilers.
18942 # On the NeXT, cc -E runs the code through the compiler's parser,
18943 # not just through cpp. "Syntax error" is here to catch this case.
18944 cat >conftest.$ac_ext <<_ACEOF
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
18950#ifdef __STDC__
18951# include <limits.h>
18952#else
18953# include <assert.h>
18954#endif
ac1cb8d3 18955 Syntax error
a848cd7e
SC
18956_ACEOF
18957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } >/dev/null; then
18965 if test -s conftest.err; then
18966 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18968 else
18969 ac_cpp_err=
18970 fi
18971else
18972 ac_cpp_err=yes
18973fi
18974if test -z "$ac_cpp_err"; then
18975 :
18976else
18977 echo "$as_me: failed program was:" >&5
18978sed 's/^/| /' conftest.$ac_ext >&5
18979
18980 # Broken: fails on valid input.
18981continue
18982fi
18983rm -f conftest.err conftest.$ac_ext
18984
18985 # OK, works on sane cases. Now check whether non-existent headers
18986 # can be detected and how.
18987 cat >conftest.$ac_ext <<_ACEOF
18988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
18993#include <ac_nonexistent.h>
18994_ACEOF
18995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } >/dev/null; then
19003 if test -s conftest.err; then
19004 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19005 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19006 else
19007 ac_cpp_err=
19008 fi
19009else
19010 ac_cpp_err=yes
19011fi
19012if test -z "$ac_cpp_err"; then
19013 # Broken: success on invalid input.
19014continue
19015else
19016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
19019 # Passes both tests.
19020ac_preproc_ok=:
19021break
19022fi
19023rm -f conftest.err conftest.$ac_ext
19024
19025done
19026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19027rm -f conftest.err conftest.$ac_ext
19028if $ac_preproc_ok; then
19029 :
19030else
19031 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19032See \`config.log' for more details." >&5
19033echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19034See \`config.log' for more details." >&2;}
19035 { (exit 1); exit 1; }; }
19036fi
19037
19038ac_ext=cc
19039ac_cpp='$CXXCPP $CPPFLAGS'
19040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19043
19044
19045
19046
19047
19048 ac_ext=cc
19049ac_cpp='$CXXCPP $CPPFLAGS'
19050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19053
19054
19055
19056for ac_header in iostream
19057do
19058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19059if eval "test \"\${$as_ac_Header+set}\" = set"; then
19060 echo "$as_me:$LINENO: checking for $ac_header" >&5
19061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19062if eval "test \"\${$as_ac_Header+set}\" = set"; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064fi
19065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19067else
19068 # Is the header compilable?
19069echo "$as_me:$LINENO: checking $ac_header usability" >&5
19070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19071cat >conftest.$ac_ext <<_ACEOF
19072/* confdefs.h. */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h. */
19077$ac_includes_default
19078#include <$ac_header>
19079_ACEOF
19080rm -f conftest.$ac_objext
19081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19082 (eval $ac_compile) 2>conftest.er1
a848cd7e 19083 ac_status=$?
ac1cb8d3
VS
19084 grep -v '^ *+' conftest.er1 >conftest.err
19085 rm -f conftest.er1
19086 cat conftest.err >&5
a848cd7e
SC
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } &&
5f652d0d
VS
19089 { ac_try='test -z "$ac_cxx_werror_flag"
19090 || test ! -s conftest.err'
ac1cb8d3
VS
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; } &&
19096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_header_compiler=yes
19103else
19104 echo "$as_me: failed program was:" >&5
19105sed 's/^/| /' conftest.$ac_ext >&5
19106
19107ac_header_compiler=no
19108fi
ac1cb8d3 19109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19111echo "${ECHO_T}$ac_header_compiler" >&6
19112
19113# Is the header present?
19114echo "$as_me:$LINENO: checking $ac_header presence" >&5
19115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19116cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122#include <$ac_header>
19123_ACEOF
19124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } >/dev/null; then
19132 if test -s conftest.err; then
19133 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19134 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19135 else
19136 ac_cpp_err=
19137 fi
19138else
19139 ac_cpp_err=yes
19140fi
19141if test -z "$ac_cpp_err"; then
19142 ac_header_preproc=yes
19143else
19144 echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_header_preproc=no
19148fi
19149rm -f conftest.err conftest.$ac_ext
19150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19151echo "${ECHO_T}$ac_header_preproc" >&6
19152
19153# So? What about this header?
ac1cb8d3
VS
19154case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19155 yes:no: )
a848cd7e
SC
19156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19160 ac_header_preproc=yes
a848cd7e 19161 ;;
ac1cb8d3 19162 no:yes:* )
a848cd7e
SC
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19170echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19175 (
19176 cat <<\_ASBOX
ac1cb8d3
VS
19177## ----------------------------------------- ##
19178## Report this to wx-dev@lists.wxwidgets.org ##
19179## ----------------------------------------- ##
a848cd7e
SC
19180_ASBOX
19181 ) |
19182 sed "s/^/$as_me: WARNING: /" >&2
19183 ;;
19184esac
19185echo "$as_me:$LINENO: checking for $ac_header" >&5
19186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19187if eval "test \"\${$as_ac_Header+set}\" = set"; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189else
ac1cb8d3 19190 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19191fi
19192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19194
19195fi
19196if test `eval echo '${'$as_ac_Header'}'` = yes; then
19197 cat >>confdefs.h <<_ACEOF
19198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19199_ACEOF
19200
19201fi
19202
19203done
19204
19205
19206 if test "$ac_cv_header_iostream" = "yes" ; then
19207 :
19208 else
19209 cat >>confdefs.h <<\_ACEOF
19210#define wxUSE_IOSTREAMH 1
19211_ACEOF
19212
19213 fi
19214
19215 ac_ext=c
19216ac_cpp='$CPP $CPPFLAGS'
19217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219ac_compiler_gnu=$ac_cv_c_compiler_gnu
19220
19221
19222
19223
19224 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19225echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19226if test "${wx_cv_cpp_bool+set}" = set; then
19227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
19229
19230
19231
19232 ac_ext=cc
19233ac_cpp='$CXXCPP $CPPFLAGS'
19234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19237
19238
19239 cat >conftest.$ac_ext <<_ACEOF
19240/* confdefs.h. */
19241_ACEOF
19242cat confdefs.h >>conftest.$ac_ext
19243cat >>conftest.$ac_ext <<_ACEOF
19244/* end confdefs.h. */
19245
19246
19247int
19248main ()
19249{
19250
19251 bool b = true;
19252
19253 return 0;
19254
19255 ;
19256 return 0;
19257}
19258_ACEOF
19259rm -f conftest.$ac_objext
19260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19261 (eval $ac_compile) 2>conftest.er1
a848cd7e 19262 ac_status=$?
ac1cb8d3
VS
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
a848cd7e
SC
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
5f652d0d
VS
19268 { ac_try='test -z "$ac_cxx_werror_flag"
19269 || test ! -s conftest.err'
ac1cb8d3
VS
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281
19282 wx_cv_cpp_bool=yes
19283
19284else
19285 echo "$as_me: failed program was:" >&5
19286sed 's/^/| /' conftest.$ac_ext >&5
19287
19288
19289 wx_cv_cpp_bool=no
19290
19291
19292fi
ac1cb8d3 19293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19294
19295 ac_ext=c
19296ac_cpp='$CPP $CPPFLAGS'
19297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19299ac_compiler_gnu=$ac_cv_c_compiler_gnu
19300
19301
19302fi
19303echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19304echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19305
19306 if test "$wx_cv_cpp_bool" = "yes"; then
19307 cat >>confdefs.h <<\_ACEOF
19308#define HAVE_BOOL 1
19309_ACEOF
19310
19311 fi
19312
19313
19314
19315 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19316echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19317if test "${wx_cv_explicit+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19319else
19320
19321
19322
19323 ac_ext=cc
19324ac_cpp='$CXXCPP $CPPFLAGS'
19325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19328
19329
19330 cat >conftest.$ac_ext <<_ACEOF
19331/* confdefs.h. */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
19335/* end confdefs.h. */
19336
19337 class Foo { public: explicit Foo(int) {} };
19338
19339int
19340main ()
19341{
19342
19343 return 0;
19344
19345 ;
19346 return 0;
19347}
19348_ACEOF
19349rm -f conftest.$ac_objext
19350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19351 (eval $ac_compile) 2>conftest.er1
a848cd7e 19352 ac_status=$?
ac1cb8d3
VS
19353 grep -v '^ *+' conftest.er1 >conftest.err
19354 rm -f conftest.er1
19355 cat conftest.err >&5
a848cd7e
SC
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
5f652d0d
VS
19358 { ac_try='test -z "$ac_cxx_werror_flag"
19359 || test ! -s conftest.err'
ac1cb8d3
VS
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; } &&
19365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371
19372 cat >conftest.$ac_ext <<_ACEOF
19373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
19378
19379 class Foo { public: explicit Foo(int) {} };
19380 static void TakeFoo(const Foo& foo) { }
19381
19382int
19383main ()
19384{
19385
19386 TakeFoo(17);
19387 return 0;
19388
19389 ;
19390 return 0;
19391}
19392_ACEOF
19393rm -f conftest.$ac_objext
19394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19395 (eval $ac_compile) 2>conftest.er1
a848cd7e 19396 ac_status=$?
ac1cb8d3
VS
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
a848cd7e
SC
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
5f652d0d
VS
19402 { ac_try='test -z "$ac_cxx_werror_flag"
19403 || test ! -s conftest.err'
ac1cb8d3
VS
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 wx_cv_explicit=no
19416else
19417 echo "$as_me: failed program was:" >&5
19418sed 's/^/| /' conftest.$ac_ext >&5
19419
19420wx_cv_explicit=yes
19421
19422fi
ac1cb8d3 19423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19424
19425else
19426 echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
19429wx_cv_explicit=no
19430
19431fi
ac1cb8d3 19432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19433
19434 ac_ext=c
19435ac_cpp='$CPP $CPPFLAGS'
19436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19438ac_compiler_gnu=$ac_cv_c_compiler_gnu
19439
19440
19441fi
19442echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19443echo "${ECHO_T}$wx_cv_explicit" >&6
19444
19445 if test "$wx_cv_explicit" = "yes"; then
19446 cat >>confdefs.h <<\_ACEOF
19447#define HAVE_EXPLICIT 1
19448_ACEOF
19449
19450 fi
19451
19452
19453echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19454echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19455if test "${ac_cv_cxx_const_cast+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19457else
19458
19459
19460 ac_ext=cc
19461ac_cpp='$CXXCPP $CPPFLAGS'
19462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19465
19466 cat >conftest.$ac_ext <<_ACEOF
19467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
19472
19473int
19474main ()
19475{
19476int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19477 ;
19478 return 0;
19479}
19480_ACEOF
19481rm -f conftest.$ac_objext
19482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19483 (eval $ac_compile) 2>conftest.er1
a848cd7e 19484 ac_status=$?
ac1cb8d3
VS
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
a848cd7e
SC
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
5f652d0d
VS
19490 { ac_try='test -z "$ac_cxx_werror_flag"
19491 || test ! -s conftest.err'
ac1cb8d3
VS
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 ac_cv_cxx_const_cast=yes
19504else
19505 echo "$as_me: failed program was:" >&5
19506sed 's/^/| /' conftest.$ac_ext >&5
19507
19508ac_cv_cxx_const_cast=no
19509fi
ac1cb8d3 19510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19511 ac_ext=c
19512ac_cpp='$CPP $CPPFLAGS'
19513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516
19517
19518fi
19519echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19520echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19521if test "$ac_cv_cxx_const_cast" = yes; then
19522
19523cat >>confdefs.h <<\_ACEOF
19524#define HAVE_CONST_CAST
19525_ACEOF
19526
19527fi
19528
7714864e
RL
19529echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19530echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19531if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533else
19534
19535
19536 ac_ext=cc
19537ac_cpp='$CXXCPP $CPPFLAGS'
19538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19541
19542 cat >conftest.$ac_ext <<_ACEOF
19543/* confdefs.h. */
19544_ACEOF
19545cat confdefs.h >>conftest.$ac_ext
19546cat >>conftest.$ac_ext <<_ACEOF
19547/* end confdefs.h. */
19548#include <typeinfo>
19549class Base { public : Base () {} virtual void f () = 0;};
19550class Derived : public Base { public : Derived () {} virtual void f () {} };
19551class Unrelated { public : Unrelated () {} };
19552int g (Unrelated&) { return 0; }
19553int
19554main ()
19555{
19556
19557Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
5f652d0d
VS
19571 { ac_try='test -z "$ac_cxx_werror_flag"
19572 || test ! -s conftest.err'
7714864e
RL
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; } &&
19578 { ac_try='test -s conftest.$ac_objext'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; }; then
19584 ac_cv_cxx_reinterpret_cast=yes
19585else
19586 echo "$as_me: failed program was:" >&5
19587sed 's/^/| /' conftest.$ac_ext >&5
19588
19589ac_cv_cxx_reinterpret_cast=no
19590fi
19591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592 ac_ext=c
19593ac_cpp='$CPP $CPPFLAGS'
19594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19596ac_compiler_gnu=$ac_cv_c_compiler_gnu
19597
19598
19599fi
19600echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19601echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19602if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19603
19604cat >>confdefs.h <<\_ACEOF
19605#define HAVE_REINTERPRET_CAST
19606_ACEOF
19607
19608fi
19609
a848cd7e
SC
19610echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19611echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19612if test "${ac_cv_cxx_static_cast+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614else
19615
19616
19617 ac_ext=cc
19618ac_cpp='$CXXCPP $CPPFLAGS'
19619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19622
19623 cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
19629#include <typeinfo>
19630class Base { public : Base () {} virtual void f () = 0; };
19631class Derived : public Base { public : Derived () {} virtual void f () {} };
19632int g (Derived&) { return 0; }
19633int
19634main ()
19635{
19636
19637Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19638 ;
19639 return 0;
19640}
19641_ACEOF
19642rm -f conftest.$ac_objext
19643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19644 (eval $ac_compile) 2>conftest.er1
a848cd7e 19645 ac_status=$?
ac1cb8d3
VS
19646 grep -v '^ *+' conftest.er1 >conftest.err
19647 rm -f conftest.er1
19648 cat conftest.err >&5
a848cd7e
SC
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
5f652d0d
VS
19651 { ac_try='test -z "$ac_cxx_werror_flag"
19652 || test ! -s conftest.err'
ac1cb8d3
VS
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_cxx_static_cast=yes
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669ac_cv_cxx_static_cast=no
19670fi
ac1cb8d3 19671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19672 ac_ext=c
19673ac_cpp='$CPP $CPPFLAGS'
19674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677
19678
19679fi
19680echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19681echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19682if test "$ac_cv_cxx_static_cast" = yes; then
19683
19684cat >>confdefs.h <<\_ACEOF
19685#define HAVE_STATIC_CAST
19686_ACEOF
19687
19688fi
19689
19690
19691if test "$wxUSE_STL" = "yes"; then
19692 ac_ext=cc
19693ac_cpp='$CXXCPP $CPPFLAGS'
19694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19697
19698
19699 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19700echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19701 cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
19707#include <string>
19708 #include <functional>
19709 #include <algorithm>
19710 #include <vector>
19711 #include <list>
19712int
19713main ()
19714{
19715std::vector<int> moo;
19716 std::list<int> foo;
19717 std::vector<int>::iterator it =
19718 std::find_if(moo.begin(), moo.end(),
19719 std::bind2nd(std::less<int>(), 3));
19720 ;
19721 return 0;
19722}
19723_ACEOF
19724rm -f conftest.$ac_objext
19725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19726 (eval $ac_compile) 2>conftest.er1
a848cd7e 19727 ac_status=$?
ac1cb8d3
VS
19728 grep -v '^ *+' conftest.er1 >conftest.err
19729 rm -f conftest.er1
19730 cat conftest.err >&5
a848cd7e
SC
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
5f652d0d
VS
19733 { ac_try='test -z "$ac_cxx_werror_flag"
19734 || test ! -s conftest.err'
ac1cb8d3
VS
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } &&
19740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 echo "$as_me:$LINENO: result: yes" >&5
19747echo "${ECHO_T}yes" >&6
19748else
19749 echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
19752echo "$as_me:$LINENO: result: no" >&5
19753echo "${ECHO_T}no" >&6
19754 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19755echo "$as_me: error: Basic STL functionality missing" >&2;}
19756 { (exit 1); exit 1; }; }
19757fi
ac1cb8d3 19758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19759
19760 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19761echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19762 cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h. */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
19767/* end confdefs.h. */
19768#include <string>
19769int
19770main ()
19771{
19772std::wstring foo;
19773 ;
19774 return 0;
19775}
19776_ACEOF
19777rm -f conftest.$ac_objext
19778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19779 (eval $ac_compile) 2>conftest.er1
a848cd7e 19780 ac_status=$?
ac1cb8d3
VS
19781 grep -v '^ *+' conftest.er1 >conftest.err
19782 rm -f conftest.er1
19783 cat conftest.err >&5
a848cd7e
SC
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
5f652d0d
VS
19786 { ac_try='test -z "$ac_cxx_werror_flag"
19787 || test ! -s conftest.err'
ac1cb8d3
VS
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 echo "$as_me:$LINENO: result: yes" >&5
19800echo "${ECHO_T}yes" >&6
19801 cat >>confdefs.h <<\_ACEOF
19802#define HAVE_STD_WSTRING 1
19803_ACEOF
19804
19805else
19806 echo "$as_me: failed program was:" >&5
19807sed 's/^/| /' conftest.$ac_ext >&5
19808
19809echo "$as_me:$LINENO: result: no" >&5
19810echo "${ECHO_T}no" >&6
19811fi
ac1cb8d3 19812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19813
19814 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19815echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19816 cat >conftest.$ac_ext <<_ACEOF
19817/* confdefs.h. */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h. */
19822#include <string>
19823int
19824main ()
19825{
19826std::string foo, bar;
19827 foo.compare(bar);
19828 foo.compare(1, 1, bar);
19829 foo.compare(1, 1, bar, 1, 1);
19830 foo.compare("");
19831 foo.compare(1, 1, "");
19832 foo.compare(1, 1, "", 2);
19833 ;
19834 return 0;
19835}
19836_ACEOF
19837rm -f conftest.$ac_objext
19838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19839 (eval $ac_compile) 2>conftest.er1
a848cd7e 19840 ac_status=$?
ac1cb8d3
VS
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
a848cd7e
SC
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
5f652d0d
VS
19846 { ac_try='test -z "$ac_cxx_werror_flag"
19847 || test ! -s conftest.err'
ac1cb8d3
VS
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19859 echo "$as_me:$LINENO: result: yes" >&5
19860echo "${ECHO_T}yes" >&6
19861 cat >>confdefs.h <<\_ACEOF
19862#define HAVE_STD_STRING_COMPARE 1
19863_ACEOF
19864
19865else
19866 echo "$as_me: failed program was:" >&5
19867sed 's/^/| /' conftest.$ac_ext >&5
19868
19869echo "$as_me:$LINENO: result: no" >&5
19870echo "${ECHO_T}no" >&6
19871fi
ac1cb8d3 19872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19873
19874 if test "${ac_cv_header_hash_map+set}" = set; then
19875 echo "$as_me:$LINENO: checking for hash_map" >&5
19876echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19877if test "${ac_cv_header_hash_map+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879fi
19880echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19881echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19882else
19883 # Is the header compilable?
19884echo "$as_me:$LINENO: checking hash_map usability" >&5
19885echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19886cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892$ac_includes_default
19893#include <hash_map>
19894_ACEOF
19895rm -f conftest.$ac_objext
19896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19897 (eval $ac_compile) 2>conftest.er1
bdcade0a 19898 ac_status=$?
ac1cb8d3
VS
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
bdcade0a
MB
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
5f652d0d
VS
19904 { ac_try='test -z "$ac_cxx_werror_flag"
19905 || test ! -s conftest.err'
ac1cb8d3
VS
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; }; then
19917 ac_header_compiler=yes
19918else
19919 echo "$as_me: failed program was:" >&5
19920sed 's/^/| /' conftest.$ac_ext >&5
19921
19922ac_header_compiler=no
19923fi
ac1cb8d3 19924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19926echo "${ECHO_T}$ac_header_compiler" >&6
19927
19928# Is the header present?
19929echo "$as_me:$LINENO: checking hash_map presence" >&5
19930echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19931cat >conftest.$ac_ext <<_ACEOF
19932/* confdefs.h. */
19933_ACEOF
19934cat confdefs.h >>conftest.$ac_ext
19935cat >>conftest.$ac_ext <<_ACEOF
19936/* end confdefs.h. */
19937#include <hash_map>
19938_ACEOF
19939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } >/dev/null; then
19947 if test -s conftest.err; then
19948 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19950 else
19951 ac_cpp_err=
19952 fi
19953else
19954 ac_cpp_err=yes
19955fi
19956if test -z "$ac_cpp_err"; then
19957 ac_header_preproc=yes
19958else
19959 echo "$as_me: failed program was:" >&5
19960sed 's/^/| /' conftest.$ac_ext >&5
19961
19962 ac_header_preproc=no
19963fi
19964rm -f conftest.err conftest.$ac_ext
19965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19966echo "${ECHO_T}$ac_header_preproc" >&6
19967
19968# So? What about this header?
ac1cb8d3
VS
19969case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19970 yes:no: )
bdcade0a
MB
19971 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19972echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19973 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19974echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19975 ac_header_preproc=yes
bdcade0a 19976 ;;
ac1cb8d3 19977 no:yes:* )
bdcade0a
MB
19978 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19979echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19980 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19981echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19983echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19985echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19986 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19987echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19988 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19989echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19990 (
19991 cat <<\_ASBOX
ac1cb8d3
VS
19992## ----------------------------------------- ##
19993## Report this to wx-dev@lists.wxwidgets.org ##
19994## ----------------------------------------- ##
bdcade0a
MB
19995_ASBOX
19996 ) |
19997 sed "s/^/$as_me: WARNING: /" >&2
19998 ;;
19999esac
20000echo "$as_me:$LINENO: checking for hash_map" >&5
20001echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20002if test "${ac_cv_header_hash_map+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005 ac_cv_header_hash_map=$ac_header_preproc
20006fi
20007echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20008echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20009
20010fi
20011if test $ac_cv_header_hash_map = yes; then
20012 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20013echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
20020#include <hash_map>
20021 #include <hash_set>
20022int
20023main ()
20024{
20025std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20026 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20027 ;
20028 return 0;
20029}
20030_ACEOF
20031rm -f conftest.$ac_objext
20032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20033 (eval $ac_compile) 2>conftest.er1
bdcade0a 20034 ac_status=$?
ac1cb8d3
VS
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
bdcade0a
MB
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
5f652d0d
VS
20040 { ac_try='test -z "$ac_cxx_werror_flag"
20041 || test ! -s conftest.err'
ac1cb8d3
VS
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 echo "$as_me:$LINENO: result: yes" >&5
20054echo "${ECHO_T}yes" >&6
20055 cat >>confdefs.h <<\_ACEOF
20056#define HAVE_HASH_MAP 1
20057_ACEOF
20058
20059 cat >>confdefs.h <<\_ACEOF
20060#define HAVE_STD_HASH_MAP 1
20061_ACEOF
20062
20063else
20064 echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067echo "$as_me:$LINENO: result: no" >&5
20068echo "${ECHO_T}no" >&6
20069fi
ac1cb8d3 20070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20071
20072fi
20073
20074
20075
20076 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20077 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20078echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20079if test "${ac_cv_header_ext_hash_map+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081fi
20082echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20083echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20084else
20085 # Is the header compilable?
20086echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20087echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20088cat >conftest.$ac_ext <<_ACEOF
20089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
20094$ac_includes_default
20095#include <ext/hash_map>
20096_ACEOF
20097rm -f conftest.$ac_objext
20098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20099 (eval $ac_compile) 2>conftest.er1
bdcade0a 20100 ac_status=$?
ac1cb8d3
VS
20101 grep -v '^ *+' conftest.er1 >conftest.err
20102 rm -f conftest.er1
20103 cat conftest.err >&5
bdcade0a
MB
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } &&
5f652d0d
VS
20106 { ac_try='test -z "$ac_cxx_werror_flag"
20107 || test ! -s conftest.err'
ac1cb8d3
VS
20108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109 (eval $ac_try) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_header_compiler=yes
20120else
20121 echo "$as_me: failed program was:" >&5
20122sed 's/^/| /' conftest.$ac_ext >&5
20123
20124ac_header_compiler=no
20125fi
ac1cb8d3 20126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20128echo "${ECHO_T}$ac_header_compiler" >&6
20129
20130# Is the header present?
20131echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20132echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20133cat >conftest.$ac_ext <<_ACEOF
20134/* confdefs.h. */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h. */
20139#include <ext/hash_map>
20140_ACEOF
20141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } >/dev/null; then
20149 if test -s conftest.err; then
20150 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20151 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20152 else
20153 ac_cpp_err=
20154 fi
20155else
20156 ac_cpp_err=yes
20157fi
20158if test -z "$ac_cpp_err"; then
20159 ac_header_preproc=yes
20160else
20161 echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ac_header_preproc=no
20165fi
20166rm -f conftest.err conftest.$ac_ext
20167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20168echo "${ECHO_T}$ac_header_preproc" >&6
20169
20170# So? What about this header?
ac1cb8d3
VS
20171case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20172 yes:no: )
bdcade0a
MB
20173 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20174echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20175 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20176echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20177 ac_header_preproc=yes
bdcade0a 20178 ;;
ac1cb8d3 20179 no:yes:* )
bdcade0a
MB
20180 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20181echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20182 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20183echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20184 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20185echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20186 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20187echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20188 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20189echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20190 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20191echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20192 (
20193 cat <<\_ASBOX
ac1cb8d3
VS
20194## ----------------------------------------- ##
20195## Report this to wx-dev@lists.wxwidgets.org ##
20196## ----------------------------------------- ##
bdcade0a
MB
20197_ASBOX
20198 ) |
20199 sed "s/^/$as_me: WARNING: /" >&2
20200 ;;
20201esac
20202echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20203echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20204if test "${ac_cv_header_ext_hash_map+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206else
20207 ac_cv_header_ext_hash_map=$ac_header_preproc
20208fi
20209echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20210echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20211
20212fi
20213if test $ac_cv_header_ext_hash_map = yes; then
20214 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20215echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222#include <ext/hash_map>
20223 #include <ext/hash_set>
20224int
20225main ()
20226{
20227__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20228 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20235 (eval $ac_compile) 2>conftest.er1
bdcade0a 20236 ac_status=$?
ac1cb8d3
VS
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
bdcade0a
MB
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
5f652d0d
VS
20242 { ac_try='test -z "$ac_cxx_werror_flag"
20243 || test ! -s conftest.err'
ac1cb8d3
VS
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 echo "$as_me:$LINENO: result: yes" >&5
20256echo "${ECHO_T}yes" >&6
20257 cat >>confdefs.h <<\_ACEOF
20258#define HAVE_EXT_HASH_MAP 1
20259_ACEOF
20260
20261 cat >>confdefs.h <<\_ACEOF
20262#define HAVE_GNU_CXX_HASH_MAP 1
20263_ACEOF
20264
20265else
20266 echo "$as_me: failed program was:" >&5
20267sed 's/^/| /' conftest.$ac_ext >&5
20268
20269echo "$as_me:$LINENO: result: no" >&5
20270echo "${ECHO_T}no" >&6
20271fi
ac1cb8d3 20272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20273
20274fi
20275
20276
a848cd7e
SC
20277
20278 ac_ext=c
20279ac_cpp='$CPP $CPPFLAGS'
20280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284fi
20285
20286
20287SEARCH_INCLUDE="\
20288 /usr/local/include \
20289 \
20290 /usr/Motif-2.1/include \
20291 /usr/Motif-1.2/include \
20292 /usr/include/Motif1.2 \
20293 /opt/xpm/include/X11 \
20294 /opt/GBxpm/include/ \
20295 /opt/GBxpm/X11/include/ \
20296 \
20297 /usr/dt/include \
20298 /usr/openwin/include \
20299 \
20300 /usr/include/Xm \
20301 \
20302 /usr/X11R6/include \
20303 /usr/X11R6.4/include \
20304 /usr/X11R5/include \
20305 /usr/X11R4/include \
20306 \
20307 /usr/include/X11R6 \
20308 /usr/include/X11R5 \
20309 /usr/include/X11R4 \
20310 \
20311 /usr/local/X11R6/include \
20312 /usr/local/X11R5/include \
20313 /usr/local/X11R4/include \
20314 \
20315 /usr/local/include/X11R6 \
20316 /usr/local/include/X11R5 \
20317 /usr/local/include/X11R4 \
20318 \
20319 /usr/X11/include \
20320 /usr/include/X11 \
20321 /usr/local/X11/include \
20322 /usr/local/include/X11 \
20323 \
20324 /usr/X386/include \
20325 /usr/x386/include \
20326 /usr/XFree86/include/X11 \
20327 \
20328 X:/XFree86/include \
20329 X:/XFree86/include/X11 \
20330 \
20331 /usr/include/gtk \
20332 /usr/local/include/gtk \
20333 /usr/include/glib \
20334 /usr/local/include/glib \
20335 \
20336 /usr/include/qt \
20337 /usr/local/include/qt \
20338 \
20339 /usr/local/arm/3.3.2/include \
20340 \
20341 /usr/include/windows \
20342 /usr/include/wine \
20343 /usr/local/include/wine \
20344 \
20345 /usr/unsupported/include \
20346 /usr/athena/include \
20347 /usr/local/x11r5/include \
20348 /usr/lpp/Xamples/include \
20349 \
20350 /usr/openwin/share/include"
20351
20352SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20353
20354
20355cat >confcache <<\_ACEOF
20356# This file is a shell script that caches the results of configure
20357# tests run on this system so they can be shared between configure
20358# scripts and configure runs, see configure's option --config-cache.
20359# It is not useful on other systems. If it contains results you don't
20360# want to keep, you may remove or edit it.
20361#
20362# config.status only pays attention to the cache file if you give it
20363# the --recheck option to rerun configure.
20364#
20365# `ac_cv_env_foo' variables (set or unset) will be overridden when
20366# loading this file, other *unset* `ac_cv_foo' will be assigned the
20367# following values.
20368
20369_ACEOF
20370
20371# The following way of writing the cache mishandles newlines in values,
20372# but we know of no workaround that is simple, portable, and efficient.
20373# So, don't put newlines in cache variables' values.
20374# Ultrix sh set writes to stderr and can't be redirected directly,
20375# and sets the high bit in the cache file unless we assign to the vars.
20376{
20377 (set) 2>&1 |
20378 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20379 *ac_space=\ *)
20380 # `set' does not quote correctly, so add quotes (double-quote
20381 # substitution turns \\\\ into \\, and sed turns \\ into \).
20382 sed -n \
ac1cb8d3
VS
20383 "s/'/'\\\\''/g;
20384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20385 ;;
20386 *)
20387 # `set' quotes correctly as required by POSIX, so do not add quotes.
20388 sed -n \
ac1cb8d3 20389 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20390 ;;
20391 esac;
20392} |
20393 sed '
20394 t clear
20395 : clear
20396 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20397 t end
20398 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20399 : end' >>confcache
20400if diff $cache_file confcache >/dev/null 2>&1; then :; else
20401 if test -w $cache_file; then
20402 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20403 cat confcache >$cache_file
20404 else
20405 echo "not updating unwritable cache $cache_file"
20406 fi
20407fi
20408rm -f confcache
20409
20410if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20411 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20412echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20413if test "${wx_cv_lib_glibc21+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
20416
20417 cat >conftest.$ac_ext <<_ACEOF
20418/* confdefs.h. */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h. */
20423#include <features.h>
20424int
20425main ()
20426{
20427
20428 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20429 #error not glibc2.1
20430 #endif
20431
20432 ;
20433 return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20438 (eval $ac_compile) 2>conftest.er1
a848cd7e 20439 ac_status=$?
ac1cb8d3
VS
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
a848cd7e
SC
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
5f652d0d
VS
20445 { ac_try='test -z "$ac_c_werror_flag"
20446 || test ! -s conftest.err'
ac1cb8d3
VS
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20458
20459 wx_cv_lib_glibc21=yes
20460
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465
20466 wx_cv_lib_glibc21=no
20467
20468
20469fi
ac1cb8d3 20470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20471
20472fi
20473echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20474echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20475 if test "$wx_cv_lib_glibc21" = "yes"; then
20476 cat >>confdefs.h <<\_ACEOF
20477#define wxHAVE_GLIBC2 1
20478_ACEOF
20479
20480 fi
20481fi
20482
20483if test "x$wx_cv_lib_glibc21" = "xyes"; then
20484 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20485 cat >>confdefs.h <<\_ACEOF
20486#define _GNU_SOURCE 1
20487_ACEOF
20488
20489 fi
20490fi
20491
20492
20493
20494if test "$wxUSE_REGEX" != "no"; then
20495 cat >>confdefs.h <<\_ACEOF
20496#define wxUSE_REGEX 1
20497_ACEOF
20498
20499
20500 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20501 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20502echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20503 wxUSE_REGEX=builtin
20504 fi
20505
20506 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20507 if test "${ac_cv_header_regex_h+set}" = set; then
20508 echo "$as_me:$LINENO: checking for regex.h" >&5
20509echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20510if test "${ac_cv_header_regex_h+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512fi
20513echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20514echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20515else
20516 # Is the header compilable?
20517echo "$as_me:$LINENO: checking regex.h usability" >&5
20518echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20519cat >conftest.$ac_ext <<_ACEOF
20520/* confdefs.h. */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h. */
20525$ac_includes_default
20526#include <regex.h>
20527_ACEOF
20528rm -f conftest.$ac_objext
20529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20530 (eval $ac_compile) 2>conftest.er1
a848cd7e 20531 ac_status=$?
ac1cb8d3
VS
20532 grep -v '^ *+' conftest.er1 >conftest.err
20533 rm -f conftest.er1
20534 cat conftest.err >&5
a848cd7e
SC
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
5f652d0d
VS
20537 { ac_try='test -z "$ac_c_werror_flag"
20538 || test ! -s conftest.err'
ac1cb8d3
VS
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_header_compiler=yes
20551else
20552 echo "$as_me: failed program was:" >&5
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
20555ac_header_compiler=no
20556fi
ac1cb8d3 20557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20559echo "${ECHO_T}$ac_header_compiler" >&6
20560
20561# Is the header present?
20562echo "$as_me:$LINENO: checking regex.h presence" >&5
20563echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20564cat >conftest.$ac_ext <<_ACEOF
20565/* confdefs.h. */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h. */
20570#include <regex.h>
20571_ACEOF
20572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } >/dev/null; then
20580 if test -s conftest.err; then
20581 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20583 else
20584 ac_cpp_err=
20585 fi
20586else
20587 ac_cpp_err=yes
20588fi
20589if test -z "$ac_cpp_err"; then
20590 ac_header_preproc=yes
20591else
20592 echo "$as_me: failed program was:" >&5
20593sed 's/^/| /' conftest.$ac_ext >&5
20594
20595 ac_header_preproc=no
20596fi
20597rm -f conftest.err conftest.$ac_ext
20598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20599echo "${ECHO_T}$ac_header_preproc" >&6
20600
20601# So? What about this header?
ac1cb8d3
VS
20602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20603 yes:no: )
a848cd7e
SC
20604 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20605echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20606 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20607echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20608 ac_header_preproc=yes
a848cd7e 20609 ;;
ac1cb8d3 20610 no:yes:* )
a848cd7e
SC
20611 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20612echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20613 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20614echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20615 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20616echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20618echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20619 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20620echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20621 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20622echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20623 (
20624 cat <<\_ASBOX
ac1cb8d3
VS
20625## ----------------------------------------- ##
20626## Report this to wx-dev@lists.wxwidgets.org ##
20627## ----------------------------------------- ##
a848cd7e
SC
20628_ASBOX
20629 ) |
20630 sed "s/^/$as_me: WARNING: /" >&2
20631 ;;
20632esac
20633echo "$as_me:$LINENO: checking for regex.h" >&5
20634echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20635if test "${ac_cv_header_regex_h+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20637else
20638 ac_cv_header_regex_h=$ac_header_preproc
20639fi
20640echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20641echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20642
20643fi
20644if test $ac_cv_header_regex_h = yes; then
20645
20646for ac_func in regcomp
20647do
20648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20649echo "$as_me:$LINENO: checking for $ac_func" >&5
20650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20651if eval "test \"\${$as_ac_var+set}\" = set"; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653else
20654 cat >conftest.$ac_ext <<_ACEOF
20655/* confdefs.h. */
20656_ACEOF
20657cat confdefs.h >>conftest.$ac_ext
20658cat >>conftest.$ac_ext <<_ACEOF
20659/* end confdefs.h. */
ac1cb8d3
VS
20660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20662#define $ac_func innocuous_$ac_func
20663
a848cd7e
SC
20664/* System header to define __stub macros and hopefully few prototypes,
20665 which can conflict with char $ac_func (); below.
20666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20667 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20668
a848cd7e
SC
20669#ifdef __STDC__
20670# include <limits.h>
20671#else
20672# include <assert.h>
20673#endif
ac1cb8d3
VS
20674
20675#undef $ac_func
20676
a848cd7e
SC
20677/* Override any gcc2 internal prototype to avoid an error. */
20678#ifdef __cplusplus
20679extern "C"
20680{
20681#endif
20682/* We use char because int might match the return type of a gcc2
20683 builtin and then its argument prototype would still apply. */
20684char $ac_func ();
20685/* The GNU C library defines this for functions which it implements
20686 to always fail with ENOSYS. Some functions are actually named
20687 something starting with __ and the normal name is an alias. */
20688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20689choke me
20690#else
20691char (*f) () = $ac_func;
20692#endif
20693#ifdef __cplusplus
20694}
20695#endif
20696
20697int
20698main ()
20699{
20700return f != $ac_func;
20701 ;
20702 return 0;
20703}
20704_ACEOF
20705rm -f conftest.$ac_objext conftest$ac_exeext
20706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20707 (eval $ac_link) 2>conftest.er1
a848cd7e 20708 ac_status=$?
ac1cb8d3
VS
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
a848cd7e
SC
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } &&
5f652d0d
VS
20714 { ac_try='test -z "$ac_c_werror_flag"
20715 || test ! -s conftest.err'
ac1cb8d3
VS
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; } &&
20721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 eval "$as_ac_var=yes"
20728else
20729 echo "$as_me: failed program was:" >&5
20730sed 's/^/| /' conftest.$ac_ext >&5
20731
20732eval "$as_ac_var=no"
20733fi
ac1cb8d3
VS
20734rm -f conftest.err conftest.$ac_objext \
20735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20736fi
20737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20739if test `eval echo '${'$as_ac_var'}'` = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20742_ACEOF
20743
20744fi
20745done
20746
20747fi
20748
20749
20750
20751 if test "x$ac_cv_func_regcomp" != "xyes"; then
20752 if test "$wxUSE_REGEX" = "sys" ; then
20753 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20754echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20755 { (exit 1); exit 1; }; }
20756 else
20757 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20758echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20759 wxUSE_REGEX=builtin
20760 fi
20761 else
20762 wxUSE_REGEX=sys
20763 cat >>confdefs.h <<\_ACEOF
20764#define WX_NO_REGEX_ADVANCED 1
20765_ACEOF
20766
20767 fi
20768 fi
20769fi
20770
20771
20772ZLIB_LINK=
20773if test "$wxUSE_ZLIB" != "no" ; then
20774 cat >>confdefs.h <<\_ACEOF
20775#define wxUSE_ZLIB 1
20776_ACEOF
20777
20778
20779 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20780 if test "$USE_DARWIN" = 1; then
20781 system_zlib_h_ok="yes"
20782 else
20783 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20784echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20785if test "${ac_cv_header_zlib_h+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787else
20788 if test "$cross_compiling" = yes; then
20789 unset ac_cv_header_zlib_h
20790
20791else
20792 cat >conftest.$ac_ext <<_ACEOF
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798
20799 #include <zlib.h>
20800 #include <stdio.h>
20801
20802 int main()
20803 {
20804 FILE *f=fopen("conftestval", "w");
20805 if (!f) exit(1);
20806 fprintf(f, "%s",
20807 ZLIB_VERSION[0] == '1' &&
20808 (ZLIB_VERSION[2] > '1' ||
20809 (ZLIB_VERSION[2] == '1' &&
20810 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20811 exit(0);
20812 }
20813
20814_ACEOF
20815rm -f conftest$ac_exeext
20816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20817 (eval $ac_link) 2>&5
20818 ac_status=$?
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_cv_header_zlib_h=`cat conftestval`
20827else
20828 echo "$as_me: program exited with status $ac_status" >&5
20829echo "$as_me: failed program was:" >&5
20830sed 's/^/| /' conftest.$ac_ext >&5
20831
20832( exit $ac_status )
20833ac_cv_header_zlib_h=no
20834fi
ac1cb8d3 20835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20836fi
20837
20838fi
20839echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20840echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20841 if test "${ac_cv_header_zlib_h+set}" = set; then
20842 echo "$as_me:$LINENO: checking for zlib.h" >&5
20843echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20844if test "${ac_cv_header_zlib_h+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846fi
20847echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20848echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20849else
20850 # Is the header compilable?
20851echo "$as_me:$LINENO: checking zlib.h usability" >&5
20852echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20853cat >conftest.$ac_ext <<_ACEOF
20854/* confdefs.h. */
20855_ACEOF
20856cat confdefs.h >>conftest.$ac_ext
20857cat >>conftest.$ac_ext <<_ACEOF
20858/* end confdefs.h. */
20859$ac_includes_default
20860#include <zlib.h>
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20864 (eval $ac_compile) 2>conftest.er1
a848cd7e 20865 ac_status=$?
ac1cb8d3
VS
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
a848cd7e
SC
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
5f652d0d
VS
20871 { ac_try='test -z "$ac_c_werror_flag"
20872 || test ! -s conftest.err'
ac1cb8d3
VS
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20875 ac_status=$?
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; } &&
20878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20884 ac_header_compiler=yes
20885else
20886 echo "$as_me: failed program was:" >&5
20887sed 's/^/| /' conftest.$ac_ext >&5
20888
20889ac_header_compiler=no
20890fi
ac1cb8d3 20891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20893echo "${ECHO_T}$ac_header_compiler" >&6
20894
20895# Is the header present?
20896echo "$as_me:$LINENO: checking zlib.h presence" >&5
20897echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20898cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
20904#include <zlib.h>
20905_ACEOF
20906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20908 ac_status=$?
20909 grep -v '^ *+' conftest.er1 >conftest.err
20910 rm -f conftest.er1
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } >/dev/null; then
20914 if test -s conftest.err; then
20915 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20917 else
20918 ac_cpp_err=
20919 fi
20920else
20921 ac_cpp_err=yes
20922fi
20923if test -z "$ac_cpp_err"; then
20924 ac_header_preproc=yes
20925else
20926 echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_header_preproc=no
20930fi
20931rm -f conftest.err conftest.$ac_ext
20932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20933echo "${ECHO_T}$ac_header_preproc" >&6
20934
20935# So? What about this header?
ac1cb8d3
VS
20936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20937 yes:no: )
a848cd7e
SC
20938 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20939echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20940 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20941echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20942 ac_header_preproc=yes
a848cd7e 20943 ;;
ac1cb8d3 20944 no:yes:* )
a848cd7e
SC
20945 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20946echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20947 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20948echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20950echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20951 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20952echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20953 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20954echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20955 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20956echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20957 (
20958 cat <<\_ASBOX
ac1cb8d3
VS
20959## ----------------------------------------- ##
20960## Report this to wx-dev@lists.wxwidgets.org ##
20961## ----------------------------------------- ##
a848cd7e
SC
20962_ASBOX
20963 ) |
20964 sed "s/^/$as_me: WARNING: /" >&2
20965 ;;
20966esac
20967echo "$as_me:$LINENO: checking for zlib.h" >&5
20968echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20969if test "${ac_cv_header_zlib_h+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971else
20972 ac_cv_header_zlib_h=$ac_header_preproc
20973fi
20974echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20975echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20976
20977fi
20978
20979
20980
20981 system_zlib_h_ok=$ac_cv_header_zlib_h
20982 fi
20983
20984 if test "$system_zlib_h_ok" = "yes"; then
20985 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20986echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20987if test "${ac_cv_lib_z_deflate+set}" = set; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989else
20990 ac_check_lib_save_LIBS=$LIBS
20991LIBS="-lz $LIBS"
20992cat >conftest.$ac_ext <<_ACEOF
20993/* confdefs.h. */
20994_ACEOF
20995cat confdefs.h >>conftest.$ac_ext
20996cat >>conftest.$ac_ext <<_ACEOF
20997/* end confdefs.h. */
20998
20999/* Override any gcc2 internal prototype to avoid an error. */
21000#ifdef __cplusplus
21001extern "C"
21002#endif
21003/* We use char because int might match the return type of a gcc2
21004 builtin and then its argument prototype would still apply. */
21005char deflate ();
21006int
21007main ()
21008{
21009deflate ();
21010 ;
21011 return 0;
21012}
21013_ACEOF
21014rm -f conftest.$ac_objext conftest$ac_exeext
21015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21016 (eval $ac_link) 2>conftest.er1
a848cd7e 21017 ac_status=$?
ac1cb8d3
VS
21018 grep -v '^ *+' conftest.er1 >conftest.err
21019 rm -f conftest.er1
21020 cat conftest.err >&5
a848cd7e
SC
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
5f652d0d
VS
21023 { ac_try='test -z "$ac_c_werror_flag"
21024 || test ! -s conftest.err'
ac1cb8d3
VS
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; } &&
21030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 ac_cv_lib_z_deflate=yes
21037else
21038 echo "$as_me: failed program was:" >&5
21039sed 's/^/| /' conftest.$ac_ext >&5
21040
21041ac_cv_lib_z_deflate=no
21042fi
ac1cb8d3
VS
21043rm -f conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21045LIBS=$ac_check_lib_save_LIBS
21046fi
21047echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21048echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21049if test $ac_cv_lib_z_deflate = yes; then
21050 ZLIB_LINK=" -lz"
21051fi
21052
21053 fi
21054
21055 if test "x$ZLIB_LINK" = "x" ; then
21056 if test "$wxUSE_ZLIB" = "sys" ; then
21057 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21058echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21059 { (exit 1); exit 1; }; }
21060 else
21061 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21062echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21063 wxUSE_ZLIB=builtin
21064 fi
21065 else
21066 wxUSE_ZLIB=sys
21067 fi
21068 fi
21069fi
21070
21071
21072PNG_LINK=
21073if test "$wxUSE_LIBPNG" != "no" ; then
21074 cat >>confdefs.h <<\_ACEOF
21075#define wxUSE_LIBPNG 1
21076_ACEOF
21077
21078
21079 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21080 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21081echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21082 wxUSE_LIBPNG=sys
21083 fi
21084
21085 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21086 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21087echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21088 wxUSE_LIBPNG=builtin
21089 fi
21090
21091 if test "$wxUSE_MGL" != 1 ; then
21092 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21093 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21094echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21095if test "${ac_cv_header_png_h+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097else
21098 if test "$cross_compiling" = yes; then
21099 unset ac_cv_header_png_h
21100
21101else
21102 cat >conftest.$ac_ext <<_ACEOF
21103/* confdefs.h. */
21104_ACEOF
21105cat confdefs.h >>conftest.$ac_ext
21106cat >>conftest.$ac_ext <<_ACEOF
21107/* end confdefs.h. */
21108
21109 #include <png.h>
21110 #include <stdio.h>
21111
21112 int main()
21113 {
21114 FILE *f=fopen("conftestval", "w");
21115 if (!f) exit(1);
21116 fprintf(f, "%s",
21117 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21118 exit(0);
21119 }
21120
21121_ACEOF
21122rm -f conftest$ac_exeext
21123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21124 (eval $ac_link) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21130 ac_status=$?
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_cv_header_png_h=`cat conftestval`
21134else
21135 echo "$as_me: program exited with status $ac_status" >&5
21136echo "$as_me: failed program was:" >&5
21137sed 's/^/| /' conftest.$ac_ext >&5
21138
21139( exit $ac_status )
21140ac_cv_header_png_h=no
21141fi
ac1cb8d3 21142rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21143fi
21144
21145fi
21146echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21147echo "${ECHO_T}$ac_cv_header_png_h" >&6
21148 if test "${ac_cv_header_png_h+set}" = set; then
21149 echo "$as_me:$LINENO: checking for png.h" >&5
21150echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21151if test "${ac_cv_header_png_h+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153fi
21154echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21155echo "${ECHO_T}$ac_cv_header_png_h" >&6
21156else
21157 # Is the header compilable?
21158echo "$as_me:$LINENO: checking png.h usability" >&5
21159echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21160cat >conftest.$ac_ext <<_ACEOF
21161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
21166$ac_includes_default
21167#include <png.h>
21168_ACEOF
21169rm -f conftest.$ac_objext
21170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21171 (eval $ac_compile) 2>conftest.er1
a848cd7e 21172 ac_status=$?
ac1cb8d3
VS
21173 grep -v '^ *+' conftest.er1 >conftest.err
21174 rm -f conftest.er1
21175 cat conftest.err >&5
a848cd7e
SC
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
5f652d0d
VS
21178 { ac_try='test -z "$ac_c_werror_flag"
21179 || test ! -s conftest.err'
ac1cb8d3
VS
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; } &&
21185 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_header_compiler=yes
21192else
21193 echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196ac_header_compiler=no
21197fi
ac1cb8d3 21198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21200echo "${ECHO_T}$ac_header_compiler" >&6
21201
21202# Is the header present?
21203echo "$as_me:$LINENO: checking png.h presence" >&5
21204echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21205cat >conftest.$ac_ext <<_ACEOF
21206/* confdefs.h. */
21207_ACEOF
21208cat confdefs.h >>conftest.$ac_ext
21209cat >>conftest.$ac_ext <<_ACEOF
21210/* end confdefs.h. */
21211#include <png.h>
21212_ACEOF
21213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } >/dev/null; then
21221 if test -s conftest.err; then
21222 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21224 else
21225 ac_cpp_err=
21226 fi
21227else
21228 ac_cpp_err=yes
21229fi
21230if test -z "$ac_cpp_err"; then
21231 ac_header_preproc=yes
21232else
21233 echo "$as_me: failed program was:" >&5
21234sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ac_header_preproc=no
21237fi
21238rm -f conftest.err conftest.$ac_ext
21239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21240echo "${ECHO_T}$ac_header_preproc" >&6
21241
21242# So? What about this header?
ac1cb8d3
VS
21243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21244 yes:no: )
a848cd7e
SC
21245 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21246echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21247 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21248echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21249 ac_header_preproc=yes
a848cd7e 21250 ;;
ac1cb8d3 21251 no:yes:* )
a848cd7e
SC
21252 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21253echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21254 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21255echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21257echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21259echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21260 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21261echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21262 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21263echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21264 (
21265 cat <<\_ASBOX
ac1cb8d3
VS
21266## ----------------------------------------- ##
21267## Report this to wx-dev@lists.wxwidgets.org ##
21268## ----------------------------------------- ##
a848cd7e
SC
21269_ASBOX
21270 ) |
21271 sed "s/^/$as_me: WARNING: /" >&2
21272 ;;
21273esac
21274echo "$as_me:$LINENO: checking for png.h" >&5
21275echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21276if test "${ac_cv_header_png_h+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278else
21279 ac_cv_header_png_h=$ac_header_preproc
21280fi
21281echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21282echo "${ECHO_T}$ac_cv_header_png_h" >&6
21283
21284fi
21285
21286
21287
21288 if test "$ac_cv_header_png_h" = "yes"; then
21289 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21290echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21291if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21293else
21294 ac_check_lib_save_LIBS=$LIBS
21295LIBS="-lpng -lz -lm $LIBS"
21296cat >conftest.$ac_ext <<_ACEOF
21297/* confdefs.h. */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h. */
21302
21303/* Override any gcc2 internal prototype to avoid an error. */
21304#ifdef __cplusplus
21305extern "C"
21306#endif
21307/* We use char because int might match the return type of a gcc2
21308 builtin and then its argument prototype would still apply. */
21309char png_check_sig ();
21310int
21311main ()
21312{
21313png_check_sig ();
21314 ;
21315 return 0;
21316}
21317_ACEOF
21318rm -f conftest.$ac_objext conftest$ac_exeext
21319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21320 (eval $ac_link) 2>conftest.er1
a848cd7e 21321 ac_status=$?
ac1cb8d3
VS
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
a848cd7e
SC
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } &&
5f652d0d
VS
21327 { ac_try='test -z "$ac_c_werror_flag"
21328 || test ! -s conftest.err'
ac1cb8d3
VS
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; } &&
21334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21337 ac_status=$?
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 ac_cv_lib_png_png_check_sig=yes
21341else
21342 echo "$as_me: failed program was:" >&5
21343sed 's/^/| /' conftest.$ac_ext >&5
21344
21345ac_cv_lib_png_png_check_sig=no
21346fi
ac1cb8d3
VS
21347rm -f conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21349LIBS=$ac_check_lib_save_LIBS
21350fi
21351echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21352echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21353if test $ac_cv_lib_png_png_check_sig = yes; then
21354 PNG_LINK=" -lpng -lz"
21355fi
21356
21357 fi
21358
21359 if test "x$PNG_LINK" = "x" ; then
21360 if test "$wxUSE_LIBPNG" = "sys" ; then
21361 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21362echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21363 { (exit 1); exit 1; }; }
21364 else
21365 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21366echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21367 wxUSE_LIBPNG=builtin
21368 fi
21369 else
21370 wxUSE_LIBPNG=sys
21371 fi
21372 fi
21373 fi
21374
21375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21376fi
21377
21378
21379JPEG_LINK=
21380if test "$wxUSE_LIBJPEG" != "no" ; then
21381 cat >>confdefs.h <<\_ACEOF
21382#define wxUSE_LIBJPEG 1
21383_ACEOF
21384
21385
21386 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21387 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21388echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21389 wxUSE_LIBJPEG=sys
21390 fi
21391
21392 if test "$wxUSE_MGL" != 1 ; then
21393 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21394 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21395echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21396 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398else
21399 cat >conftest.$ac_ext <<_ACEOF
21400/* confdefs.h. */
21401_ACEOF
21402cat confdefs.h >>conftest.$ac_ext
21403cat >>conftest.$ac_ext <<_ACEOF
21404/* end confdefs.h. */
21405
21406 #undef HAVE_STDLIB_H
21407 #include <stdio.h>
21408 #include <jpeglib.h>
21409
21410int
21411main ()
21412{
21413
21414
21415 ;
21416 return 0;
21417}
21418_ACEOF
21419rm -f conftest.$ac_objext
21420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21421 (eval $ac_compile) 2>conftest.er1
a848cd7e 21422 ac_status=$?
ac1cb8d3
VS
21423 grep -v '^ *+' conftest.er1 >conftest.err
21424 rm -f conftest.er1
21425 cat conftest.err >&5
a848cd7e
SC
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } &&
5f652d0d
VS
21428 { ac_try='test -z "$ac_c_werror_flag"
21429 || test ! -s conftest.err'
ac1cb8d3
VS
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; } &&
21435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437 (eval $ac_try) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); }; }; then
21441 ac_cv_header_jpeglib_h=yes
21442else
21443 echo "$as_me: failed program was:" >&5
21444sed 's/^/| /' conftest.$ac_ext >&5
21445
21446ac_cv_header_jpeglib_h=no
21447
21448fi
ac1cb8d3 21449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21450
21451fi
21452
21453 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21454echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21455
21456 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21457 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21458echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21459if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461else
21462 ac_check_lib_save_LIBS=$LIBS
21463LIBS="-ljpeg $LIBS"
21464cat >conftest.$ac_ext <<_ACEOF
21465/* confdefs.h. */
21466_ACEOF
21467cat confdefs.h >>conftest.$ac_ext
21468cat >>conftest.$ac_ext <<_ACEOF
21469/* end confdefs.h. */
21470
21471/* Override any gcc2 internal prototype to avoid an error. */
21472#ifdef __cplusplus
21473extern "C"
21474#endif
21475/* We use char because int might match the return type of a gcc2
21476 builtin and then its argument prototype would still apply. */
21477char jpeg_read_header ();
21478int
21479main ()
21480{
21481jpeg_read_header ();
21482 ;
21483 return 0;
21484}
21485_ACEOF
21486rm -f conftest.$ac_objext conftest$ac_exeext
21487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21488 (eval $ac_link) 2>conftest.er1
a848cd7e 21489 ac_status=$?
ac1cb8d3
VS
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
a848cd7e
SC
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } &&
5f652d0d
VS
21495 { ac_try='test -z "$ac_c_werror_flag"
21496 || test ! -s conftest.err'
ac1cb8d3
VS
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; } &&
21502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504 (eval $ac_try) 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); }; }; then
21508 ac_cv_lib_jpeg_jpeg_read_header=yes
21509else
21510 echo "$as_me: failed program was:" >&5
21511sed 's/^/| /' conftest.$ac_ext >&5
21512
21513ac_cv_lib_jpeg_jpeg_read_header=no
21514fi
ac1cb8d3
VS
21515rm -f conftest.err conftest.$ac_objext \
21516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21517LIBS=$ac_check_lib_save_LIBS
21518fi
21519echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21520echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21521if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21522 JPEG_LINK=" -ljpeg"
21523fi
21524
21525 fi
21526
21527 if test "x$JPEG_LINK" = "x" ; then
21528 if test "$wxUSE_LIBJPEG" = "sys" ; then
21529 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21530echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21531 { (exit 1); exit 1; }; }
21532 else
21533 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21534echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21535 wxUSE_LIBJPEG=builtin
21536 fi
21537 else
21538 wxUSE_LIBJPEG=sys
21539 fi
21540 fi
21541 fi
21542fi
21543
21544
21545TIFF_LINK=
21546TIFF_PREREQ_LINKS=-lm
21547if test "$wxUSE_LIBTIFF" != "no" ; then
21548 cat >>confdefs.h <<\_ACEOF
21549#define wxUSE_LIBTIFF 1
21550_ACEOF
21551
21552
21553 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21554 if test "$wxUSE_LIBJPEG" = "sys"; then
21555 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21556 fi
21557 if test "$wxUSE_ZLIB" = "sys"; then
21558 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21559 fi
21560 if test "${ac_cv_header_tiffio_h+set}" = set; then
21561 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21562echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21563if test "${ac_cv_header_tiffio_h+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21565fi
21566echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21567echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21568else
21569 # Is the header compilable?
21570echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21571echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21572cat >conftest.$ac_ext <<_ACEOF
21573/* confdefs.h. */
21574_ACEOF
21575cat confdefs.h >>conftest.$ac_ext
21576cat >>conftest.$ac_ext <<_ACEOF
21577/* end confdefs.h. */
21578$ac_includes_default
21579#include <tiffio.h>
21580_ACEOF
21581rm -f conftest.$ac_objext
21582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21583 (eval $ac_compile) 2>conftest.er1
a848cd7e 21584 ac_status=$?
ac1cb8d3
VS
21585 grep -v '^ *+' conftest.er1 >conftest.err
21586 rm -f conftest.er1
21587 cat conftest.err >&5
a848cd7e
SC
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); } &&
5f652d0d
VS
21590 { ac_try='test -z "$ac_c_werror_flag"
21591 || test ! -s conftest.err'
ac1cb8d3
VS
21592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593 (eval $ac_try) 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; } &&
21597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 ac_header_compiler=yes
21604else
21605 echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
21608ac_header_compiler=no
21609fi
ac1cb8d3 21610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21612echo "${ECHO_T}$ac_header_compiler" >&6
21613
21614# Is the header present?
21615echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21616echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21617cat >conftest.$ac_ext <<_ACEOF
21618/* confdefs.h. */
21619_ACEOF
21620cat confdefs.h >>conftest.$ac_ext
21621cat >>conftest.$ac_ext <<_ACEOF
21622/* end confdefs.h. */
21623#include <tiffio.h>
21624_ACEOF
21625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } >/dev/null; then
21633 if test -s conftest.err; then
21634 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21636 else
21637 ac_cpp_err=
21638 fi
21639else
21640 ac_cpp_err=yes
21641fi
21642if test -z "$ac_cpp_err"; then
21643 ac_header_preproc=yes
21644else
21645 echo "$as_me: failed program was:" >&5
21646sed 's/^/| /' conftest.$ac_ext >&5
21647
21648 ac_header_preproc=no
21649fi
21650rm -f conftest.err conftest.$ac_ext
21651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652echo "${ECHO_T}$ac_header_preproc" >&6
21653
21654# So? What about this header?
ac1cb8d3
VS
21655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21656 yes:no: )
a848cd7e
SC
21657 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21658echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21659 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21660echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21661 ac_header_preproc=yes
a848cd7e 21662 ;;
ac1cb8d3 21663 no:yes:* )
a848cd7e
SC
21664 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21665echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21666 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21667echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21669echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21671echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21672 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21673echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21674 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21675echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21676 (
21677 cat <<\_ASBOX
ac1cb8d3
VS
21678## ----------------------------------------- ##
21679## Report this to wx-dev@lists.wxwidgets.org ##
21680## ----------------------------------------- ##
a848cd7e
SC
21681_ASBOX
21682 ) |
21683 sed "s/^/$as_me: WARNING: /" >&2
21684 ;;
21685esac
21686echo "$as_me:$LINENO: checking for tiffio.h" >&5
21687echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21688if test "${ac_cv_header_tiffio_h+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21690else
21691 ac_cv_header_tiffio_h=$ac_header_preproc
21692fi
21693echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21694echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21695
21696fi
21697if test $ac_cv_header_tiffio_h = yes; then
21698
21699 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21700echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21701if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21703else
21704 ac_check_lib_save_LIBS=$LIBS
21705LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21706cat >conftest.$ac_ext <<_ACEOF
21707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
21712
21713/* Override any gcc2 internal prototype to avoid an error. */
21714#ifdef __cplusplus
21715extern "C"
21716#endif
21717/* We use char because int might match the return type of a gcc2
21718 builtin and then its argument prototype would still apply. */
21719char TIFFError ();
21720int
21721main ()
21722{
21723TIFFError ();
21724 ;
21725 return 0;
21726}
21727_ACEOF
21728rm -f conftest.$ac_objext conftest$ac_exeext
21729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21730 (eval $ac_link) 2>conftest.er1
a848cd7e 21731 ac_status=$?
ac1cb8d3
VS
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
a848cd7e
SC
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
5f652d0d
VS
21737 { ac_try='test -z "$ac_c_werror_flag"
21738 || test ! -s conftest.err'
ac1cb8d3
VS
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21747 ac_status=$?
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_lib_tiff_TIFFError=yes
21751else
21752 echo "$as_me: failed program was:" >&5
21753sed 's/^/| /' conftest.$ac_ext >&5
21754
21755ac_cv_lib_tiff_TIFFError=no
21756fi
ac1cb8d3
VS
21757rm -f conftest.err conftest.$ac_objext \
21758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21759LIBS=$ac_check_lib_save_LIBS
21760fi
21761echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21762echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21763if test $ac_cv_lib_tiff_TIFFError = yes; then
21764 TIFF_LINK=" -ltiff"
21765fi
21766
21767
21768
21769fi
21770
21771
21772
21773 if test "x$TIFF_LINK" = "x" ; then
21774 if test "$wxUSE_LIBTIFF" = "sys" ; then
21775 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21776echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21777 { (exit 1); exit 1; }; }
21778 else
21779 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21780echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21781 wxUSE_LIBTIFF=builtin
21782 fi
21783 else
21784 wxUSE_LIBTIFF=sys
21785 fi
21786 fi
21787fi
21788
21789
21790if test "$wxUSE_EXPAT" != "no"; then
21791 wxUSE_XML=yes
21792 cat >>confdefs.h <<\_ACEOF
21793#define wxUSE_EXPAT 1
21794_ACEOF
21795
21796 cat >>confdefs.h <<\_ACEOF
21797#define wxUSE_XML 1
21798_ACEOF
21799
21800
21801 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21802 if test "${ac_cv_header_expat_h+set}" = set; then
21803 echo "$as_me:$LINENO: checking for expat.h" >&5
21804echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21805if test "${ac_cv_header_expat_h+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807fi
21808echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21809echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21810else
21811 # Is the header compilable?
21812echo "$as_me:$LINENO: checking expat.h usability" >&5
21813echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820$ac_includes_default
21821#include <expat.h>
21822_ACEOF
21823rm -f conftest.$ac_objext
21824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21825 (eval $ac_compile) 2>conftest.er1
a848cd7e 21826 ac_status=$?
ac1cb8d3
VS
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
a848cd7e
SC
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
5f652d0d
VS
21832 { ac_try='test -z "$ac_c_werror_flag"
21833 || test ! -s conftest.err'
ac1cb8d3
VS
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; } &&
21839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_header_compiler=yes
21846else
21847 echo "$as_me: failed program was:" >&5
21848sed 's/^/| /' conftest.$ac_ext >&5
21849
21850ac_header_compiler=no
21851fi
ac1cb8d3 21852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854echo "${ECHO_T}$ac_header_compiler" >&6
21855
21856# Is the header present?
21857echo "$as_me:$LINENO: checking expat.h presence" >&5
21858echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21859cat >conftest.$ac_ext <<_ACEOF
21860/* confdefs.h. */
21861_ACEOF
21862cat confdefs.h >>conftest.$ac_ext
21863cat >>conftest.$ac_ext <<_ACEOF
21864/* end confdefs.h. */
21865#include <expat.h>
21866_ACEOF
21867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21869 ac_status=$?
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } >/dev/null; then
21875 if test -s conftest.err; then
21876 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21878 else
21879 ac_cpp_err=
21880 fi
21881else
21882 ac_cpp_err=yes
21883fi
21884if test -z "$ac_cpp_err"; then
21885 ac_header_preproc=yes
21886else
21887 echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890 ac_header_preproc=no
21891fi
21892rm -f conftest.err conftest.$ac_ext
21893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894echo "${ECHO_T}$ac_header_preproc" >&6
21895
21896# So? What about this header?
ac1cb8d3
VS
21897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 yes:no: )
a848cd7e
SC
21899 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21900echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21901 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21902echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21903 ac_header_preproc=yes
a848cd7e 21904 ;;
ac1cb8d3 21905 no:yes:* )
a848cd7e
SC
21906 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21907echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21908 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21909echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21911echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21913echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21914 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21915echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21916 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21917echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21918 (
21919 cat <<\_ASBOX
ac1cb8d3
VS
21920## ----------------------------------------- ##
21921## Report this to wx-dev@lists.wxwidgets.org ##
21922## ----------------------------------------- ##
a848cd7e
SC
21923_ASBOX
21924 ) |
21925 sed "s/^/$as_me: WARNING: /" >&2
21926 ;;
21927esac
21928echo "$as_me:$LINENO: checking for expat.h" >&5
21929echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21930if test "${ac_cv_header_expat_h+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932else
21933 ac_cv_header_expat_h=$ac_header_preproc
21934fi
21935echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21936echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21937
21938fi
21939if test $ac_cv_header_expat_h = yes; then
21940 found_expat_h=1
21941fi
21942
21943
21944 if test "x$found_expat_h" = "x1"; then
21945 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21946echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21947if test "${wx_cv_expat_is_not_broken+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21949else
21950
21951
21952
21953 ac_ext=cc
21954ac_cpp='$CXXCPP $CPPFLAGS'
21955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21958
21959 cat >conftest.$ac_ext <<_ACEOF
21960/* confdefs.h. */
21961_ACEOF
21962cat confdefs.h >>conftest.$ac_ext
21963cat >>conftest.$ac_ext <<_ACEOF
21964/* end confdefs.h. */
21965#include <expat.h>
21966int
21967main ()
21968{
21969
21970 ;
21971 return 0;
21972}
21973_ACEOF
21974rm -f conftest.$ac_objext
21975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21976 (eval $ac_compile) 2>conftest.er1
a848cd7e 21977 ac_status=$?
ac1cb8d3
VS
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
a848cd7e
SC
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
5f652d0d
VS
21983 { ac_try='test -z "$ac_cxx_werror_flag"
21984 || test ! -s conftest.err'
ac1cb8d3
VS
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 wx_cv_expat_is_not_broken=yes
21997else
21998 echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001wx_cv_expat_is_not_broken=no
22002
22003fi
ac1cb8d3 22004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22005 ac_ext=c
22006ac_cpp='$CPP $CPPFLAGS'
22007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22009ac_compiler_gnu=$ac_cv_c_compiler_gnu
22010
22011
22012
22013fi
22014echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22015echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22016 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22017 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22018echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22019if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021else
22022 ac_check_lib_save_LIBS=$LIBS
22023LIBS="-lexpat $LIBS"
22024cat >conftest.$ac_ext <<_ACEOF
22025/* confdefs.h. */
22026_ACEOF
22027cat confdefs.h >>conftest.$ac_ext
22028cat >>conftest.$ac_ext <<_ACEOF
22029/* end confdefs.h. */
22030
22031/* Override any gcc2 internal prototype to avoid an error. */
22032#ifdef __cplusplus
22033extern "C"
22034#endif
22035/* We use char because int might match the return type of a gcc2
22036 builtin and then its argument prototype would still apply. */
22037char XML_ParserCreate ();
22038int
22039main ()
22040{
22041XML_ParserCreate ();
22042 ;
22043 return 0;
22044}
22045_ACEOF
22046rm -f conftest.$ac_objext conftest$ac_exeext
22047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22048 (eval $ac_link) 2>conftest.er1
a848cd7e 22049 ac_status=$?
ac1cb8d3
VS
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
a848cd7e
SC
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
5f652d0d
VS
22055 { ac_try='test -z "$ac_c_werror_flag"
22056 || test ! -s conftest.err'
ac1cb8d3
VS
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_cv_lib_expat_XML_ParserCreate=yes
22069else
22070 echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073ac_cv_lib_expat_XML_ParserCreate=no
22074fi
ac1cb8d3
VS
22075rm -f conftest.err conftest.$ac_objext \
22076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22077LIBS=$ac_check_lib_save_LIBS
22078fi
22079echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22080echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22081if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22082 EXPAT_LINK=" -lexpat"
22083fi
22084
22085 fi
22086 fi
22087 if test "x$EXPAT_LINK" = "x" ; then
22088 if test "$wxUSE_EXPAT" = "sys" ; then
22089 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22090echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22091 { (exit 1); exit 1; }; }
22092 else
22093 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22094echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22095 wxUSE_EXPAT=builtin
22096 fi
22097 else
22098 wxUSE_EXPAT=sys
22099 fi
22100 fi
22101 if test "$wxUSE_EXPAT" = "builtin" ; then
22102
22103
22104subdirs="$subdirs src/expat"
22105
22106 fi
22107fi
22108
22109
22110
22111if test "$wxUSE_LIBMSPACK" != "no"; then
22112
22113 if test "${ac_cv_header_mspack_h+set}" = set; then
22114 echo "$as_me:$LINENO: checking for mspack.h" >&5
22115echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22116if test "${ac_cv_header_mspack_h+set}" = set; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22118fi
22119echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22120echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22121else
22122 # Is the header compilable?
22123echo "$as_me:$LINENO: checking mspack.h usability" >&5
22124echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22125cat >conftest.$ac_ext <<_ACEOF
22126/* confdefs.h. */
22127_ACEOF
22128cat confdefs.h >>conftest.$ac_ext
22129cat >>conftest.$ac_ext <<_ACEOF
22130/* end confdefs.h. */
22131$ac_includes_default
22132#include <mspack.h>
22133_ACEOF
22134rm -f conftest.$ac_objext
22135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22136 (eval $ac_compile) 2>conftest.er1
a848cd7e 22137 ac_status=$?
ac1cb8d3
VS
22138 grep -v '^ *+' conftest.er1 >conftest.err
22139 rm -f conftest.er1
22140 cat conftest.err >&5
a848cd7e
SC
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } &&
5f652d0d
VS
22143 { ac_try='test -z "$ac_c_werror_flag"
22144 || test ! -s conftest.err'
ac1cb8d3
VS
22145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22146 (eval $ac_try) 2>&5
22147 ac_status=$?
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); }; } &&
22150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22153 ac_status=$?
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; }; then
22156 ac_header_compiler=yes
22157else
22158 echo "$as_me: failed program was:" >&5
22159sed 's/^/| /' conftest.$ac_ext >&5
22160
22161ac_header_compiler=no
22162fi
ac1cb8d3 22163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22164echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22165echo "${ECHO_T}$ac_header_compiler" >&6
22166
22167# Is the header present?
22168echo "$as_me:$LINENO: checking mspack.h presence" >&5
22169echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22170cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h. */
22176#include <mspack.h>
22177_ACEOF
22178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22180 ac_status=$?
22181 grep -v '^ *+' conftest.er1 >conftest.err
22182 rm -f conftest.er1
22183 cat conftest.err >&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } >/dev/null; then
22186 if test -s conftest.err; then
22187 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22189 else
22190 ac_cpp_err=
22191 fi
22192else
22193 ac_cpp_err=yes
22194fi
22195if test -z "$ac_cpp_err"; then
22196 ac_header_preproc=yes
22197else
22198 echo "$as_me: failed program was:" >&5
22199sed 's/^/| /' conftest.$ac_ext >&5
22200
22201 ac_header_preproc=no
22202fi
22203rm -f conftest.err conftest.$ac_ext
22204echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22205echo "${ECHO_T}$ac_header_preproc" >&6
22206
22207# So? What about this header?
ac1cb8d3
VS
22208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22209 yes:no: )
a848cd7e
SC
22210 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22211echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22212 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22213echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22214 ac_header_preproc=yes
a848cd7e 22215 ;;
ac1cb8d3 22216 no:yes:* )
a848cd7e
SC
22217 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22218echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22219 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22220echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22222echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22224echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22225 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22226echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22227 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22228echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22229 (
22230 cat <<\_ASBOX
ac1cb8d3
VS
22231## ----------------------------------------- ##
22232## Report this to wx-dev@lists.wxwidgets.org ##
22233## ----------------------------------------- ##
a848cd7e
SC
22234_ASBOX
22235 ) |
22236 sed "s/^/$as_me: WARNING: /" >&2
22237 ;;
22238esac
22239echo "$as_me:$LINENO: checking for mspack.h" >&5
22240echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22241if test "${ac_cv_header_mspack_h+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22243else
22244 ac_cv_header_mspack_h=$ac_header_preproc
22245fi
22246echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22247echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22248
22249fi
22250if test $ac_cv_header_mspack_h = yes; then
22251 found_mspack_h=1
22252fi
22253
22254
22255 if test "x$found_mspack_h" = "x1"; then
22256 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22257echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22258if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22260else
22261 ac_check_lib_save_LIBS=$LIBS
22262LIBS="-lmspack $LIBS"
22263cat >conftest.$ac_ext <<_ACEOF
22264/* confdefs.h. */
22265_ACEOF
22266cat confdefs.h >>conftest.$ac_ext
22267cat >>conftest.$ac_ext <<_ACEOF
22268/* end confdefs.h. */
22269
22270/* Override any gcc2 internal prototype to avoid an error. */
22271#ifdef __cplusplus
22272extern "C"
22273#endif
22274/* We use char because int might match the return type of a gcc2
22275 builtin and then its argument prototype would still apply. */
22276char mspack_create_chm_decompressor ();
22277int
22278main ()
22279{
22280mspack_create_chm_decompressor ();
22281 ;
22282 return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext conftest$ac_exeext
22286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22287 (eval $ac_link) 2>conftest.er1
a848cd7e 22288 ac_status=$?
ac1cb8d3
VS
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
a848cd7e
SC
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } &&
5f652d0d
VS
22294 { ac_try='test -z "$ac_c_werror_flag"
22295 || test ! -s conftest.err'
ac1cb8d3
VS
22296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22297 (eval $ac_try) 2>&5
22298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; } &&
22301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303 (eval $ac_try) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; }; then
22307 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22308else
22309 echo "$as_me: failed program was:" >&5
22310sed 's/^/| /' conftest.$ac_ext >&5
22311
22312ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22313fi
ac1cb8d3
VS
22314rm -f conftest.err conftest.$ac_objext \
22315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22316LIBS=$ac_check_lib_save_LIBS
22317fi
22318echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22319echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22320if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22321 MSPACK_LINK=" -lmspack"
22322fi
22323
22324 fi
22325 if test "x$MSPACK_LINK" = "x" ; then
22326 wxUSE_LIBMSPACK=no
22327 else
22328 cat >>confdefs.h <<\_ACEOF
22329#define wxUSE_LIBMSPACK 1
22330_ACEOF
22331
22332 fi
22333fi
22334
22335
22336
22337AFMINSTALL=
22338WIN32INSTALL=
22339
22340TOOLKIT=
22341TOOLKIT_INCLUDE=
22342WIDGET_SET=
22343
22344if test "$USE_WIN32" = 1 ; then
22345
22346for ac_header in w32api.h
22347do
22348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22349if eval "test \"\${$as_ac_Header+set}\" = set"; then
22350 echo "$as_me:$LINENO: checking for $ac_header" >&5
22351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22352if eval "test \"\${$as_ac_Header+set}\" = set"; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354fi
22355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22357else
22358 # Is the header compilable?
22359echo "$as_me:$LINENO: checking $ac_header usability" >&5
22360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22361cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
22367$ac_includes_default
22368#include <$ac_header>
22369_ACEOF
22370rm -f conftest.$ac_objext
22371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22372 (eval $ac_compile) 2>conftest.er1
a848cd7e 22373 ac_status=$?
ac1cb8d3
VS
22374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
a848cd7e
SC
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
5f652d0d
VS
22379 { ac_try='test -z "$ac_c_werror_flag"
22380 || test ! -s conftest.err'
ac1cb8d3
VS
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } &&
22386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 ac_header_compiler=yes
22393else
22394 echo "$as_me: failed program was:" >&5
22395sed 's/^/| /' conftest.$ac_ext >&5
22396
22397ac_header_compiler=no
22398fi
ac1cb8d3 22399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22401echo "${ECHO_T}$ac_header_compiler" >&6
22402
22403# Is the header present?
22404echo "$as_me:$LINENO: checking $ac_header presence" >&5
22405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22406cat >conftest.$ac_ext <<_ACEOF
22407/* confdefs.h. */
22408_ACEOF
22409cat confdefs.h >>conftest.$ac_ext
22410cat >>conftest.$ac_ext <<_ACEOF
22411/* end confdefs.h. */
22412#include <$ac_header>
22413_ACEOF
22414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } >/dev/null; then
22422 if test -s conftest.err; then
22423 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22425 else
22426 ac_cpp_err=
22427 fi
22428else
22429 ac_cpp_err=yes
22430fi
22431if test -z "$ac_cpp_err"; then
22432 ac_header_preproc=yes
22433else
22434 echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437 ac_header_preproc=no
22438fi
22439rm -f conftest.err conftest.$ac_ext
22440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22441echo "${ECHO_T}$ac_header_preproc" >&6
22442
22443# So? What about this header?
ac1cb8d3
VS
22444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22445 yes:no: )
a848cd7e
SC
22446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22450 ac_header_preproc=yes
a848cd7e 22451 ;;
ac1cb8d3 22452 no:yes:* )
a848cd7e
SC
22453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22465 (
22466 cat <<\_ASBOX
ac1cb8d3
VS
22467## ----------------------------------------- ##
22468## Report this to wx-dev@lists.wxwidgets.org ##
22469## ----------------------------------------- ##
a848cd7e
SC
22470_ASBOX
22471 ) |
22472 sed "s/^/$as_me: WARNING: /" >&2
22473 ;;
22474esac
22475echo "$as_me:$LINENO: checking for $ac_header" >&5
22476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22477if eval "test \"\${$as_ac_Header+set}\" = set"; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22479else
ac1cb8d3 22480 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22481fi
22482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22484
22485fi
22486if test `eval echo '${'$as_ac_Header'}'` = yes; then
22487 cat >>confdefs.h <<_ACEOF
22488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22489_ACEOF
22490
22491fi
22492
22493done
22494
22495 if test "${ac_cv_header_windows_h+set}" = set; then
22496 echo "$as_me:$LINENO: checking for windows.h" >&5
22497echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22498if test "${ac_cv_header_windows_h+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22500fi
22501echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22502echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22503else
22504 # Is the header compilable?
22505echo "$as_me:$LINENO: checking windows.h usability" >&5
22506echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22507cat >conftest.$ac_ext <<_ACEOF
22508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
22512/* end confdefs.h. */
22513$ac_includes_default
22514#include <windows.h>
22515_ACEOF
22516rm -f conftest.$ac_objext
22517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22518 (eval $ac_compile) 2>conftest.er1
a848cd7e 22519 ac_status=$?
ac1cb8d3
VS
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
a848cd7e
SC
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
5f652d0d
VS
22525 { ac_try='test -z "$ac_c_werror_flag"
22526 || test ! -s conftest.err'
ac1cb8d3
VS
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_header_compiler=yes
22539else
22540 echo "$as_me: failed program was:" >&5
22541sed 's/^/| /' conftest.$ac_ext >&5
22542
22543ac_header_compiler=no
22544fi
ac1cb8d3 22545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22547echo "${ECHO_T}$ac_header_compiler" >&6
22548
22549# Is the header present?
22550echo "$as_me:$LINENO: checking windows.h presence" >&5
22551echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22552cat >conftest.$ac_ext <<_ACEOF
22553/* confdefs.h. */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h. */
22558#include <windows.h>
22559_ACEOF
22560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22562 ac_status=$?
22563 grep -v '^ *+' conftest.er1 >conftest.err
22564 rm -f conftest.er1
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } >/dev/null; then
22568 if test -s conftest.err; then
22569 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22571 else
22572 ac_cpp_err=
22573 fi
22574else
22575 ac_cpp_err=yes
22576fi
22577if test -z "$ac_cpp_err"; then
22578 ac_header_preproc=yes
22579else
22580 echo "$as_me: failed program was:" >&5
22581sed 's/^/| /' conftest.$ac_ext >&5
22582
22583 ac_header_preproc=no
22584fi
22585rm -f conftest.err conftest.$ac_ext
22586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22587echo "${ECHO_T}$ac_header_preproc" >&6
22588
22589# So? What about this header?
ac1cb8d3
VS
22590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22591 yes:no: )
a848cd7e
SC
22592 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22593echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22594 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22595echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22596 ac_header_preproc=yes
a848cd7e 22597 ;;
ac1cb8d3 22598 no:yes:* )
a848cd7e
SC
22599 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22600echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22601 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22602echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22603 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22604echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22606echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22607 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22608echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22609 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22610echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22611 (
22612 cat <<\_ASBOX
ac1cb8d3
VS
22613## ----------------------------------------- ##
22614## Report this to wx-dev@lists.wxwidgets.org ##
22615## ----------------------------------------- ##
a848cd7e
SC
22616_ASBOX
22617 ) |
22618 sed "s/^/$as_me: WARNING: /" >&2
22619 ;;
22620esac
22621echo "$as_me:$LINENO: checking for windows.h" >&5
22622echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22623if test "${ac_cv_header_windows_h+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22625else
22626 ac_cv_header_windows_h=$ac_header_preproc
22627fi
22628echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22629echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22630
22631fi
22632if test $ac_cv_header_windows_h = yes; then
22633 :
22634else
22635
22636 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22637echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22638 { (exit 1); exit 1; }; }
22639
22640fi
22641
22642
22643
22644 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22645
22646 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22647 LIBS="$LIBS -loleacc"
22648 fi
22649
22650 case "${host}" in
22651 *-*-cygwin* )
22652 LIBS="$LIBS -lkernel32 -luser32"
22653 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22654 esac
22655
22656 if test "$wxUSE_ODBC" = "sys" ; then
22657 wxUSE_ODBC = "yes"
22658 fi
22659 if test "$wxUSE_ODBC" = "yes" ; then
22660 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22661 cat >>confdefs.h <<\_ACEOF
22662#define wxUSE_ODBC 1
22663_ACEOF
22664
22665 fi
22666
22667 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22668 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22669
22670 WIN32INSTALL=win32install
22671fi
22672
22673if test "$wxUSE_GUI" = "yes"; then
22674 USE_GUI=1
22675
22676 GUI_TK_LIBRARY=
22677
22678 WXGTK12=
22679 WXGTK127=
22680 WXGTK20=
22681 WXGPE=
22682
207bc66c
RN
22683 if test "$wxUSE_COCOA" = 1 ; then
22684 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22685 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22686echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22687 wxUSE_PRINTING_ARCHITECTURE=no
22688 fi
22689 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22690 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22691echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22692 wxUSE_DRAG_AND_DROP=no
22693 fi
22694 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22695 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22696echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22697 wxUSE_DRAGIMAGE=no
22698 fi
22699 fi
22700
a848cd7e
SC
22701 if test "$wxUSE_MSW" = 1 ; then
22702 TOOLKIT=MSW
22703 GUIDIST=MSW_DIST
22704
ceec2216 22705 case "${host}" in
a848cd7e
SC
22706 *-*-mingw32* )
22707 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22708 esac
22709 fi
22710
22711 if test "$wxUSE_GTK" = 1; then
22712 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22713echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22714
22715 gtk_version_cached=1
22716 if test "${wx_cv_lib_gtk+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718else
22719
22720 gtk_version_cached=0
22721 echo "$as_me:$LINENO: result: " >&5
22722echo "${ECHO_T}" >&6
22723
22724 GTK_MODULES=
22725 if test "$wxUSE_THREADS" = "yes"; then
22726 GTK_MODULES=gthread
22727 fi
22728
22729 wx_cv_lib_gtk=
22730 if test "x$wxUSE_GTK2" = "xyes"; then
22731 # Check whether --enable-gtktest or --disable-gtktest was given.
22732if test "${enable_gtktest+set}" = set; then
22733 enableval="$enable_gtktest"
22734
22735else
22736 enable_gtktest=yes
22737fi;
22738
22739 pkg_config_args=gtk+-2.0
22740 for module in . $GTK_MODULES
22741 do
22742 case "$module" in
22743 gthread)
22744 pkg_config_args="$pkg_config_args gthread-2.0"
22745 ;;
22746 esac
22747 done
22748
22749 no_gtk=""
22750
22751 # Extract the first word of "pkg-config", so it can be a program name with args.
22752set dummy pkg-config; ac_word=$2
22753echo "$as_me:$LINENO: checking for $ac_word" >&5
22754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22755if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22756 echo $ECHO_N "(cached) $ECHO_C" >&6
22757else
22758 case $PKG_CONFIG in
22759 [\\/]* | ?:[\\/]*)
22760 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22761 ;;
22762 *)
22763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22764for as_dir in $PATH
22765do
22766 IFS=$as_save_IFS
22767 test -z "$as_dir" && as_dir=.
22768 for ac_exec_ext in '' $ac_executable_extensions; do
22769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22770 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22772 break 2
22773 fi
22774done
22775done
22776
22777 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22778 ;;
22779esac
22780fi
22781PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22782
22783if test -n "$PKG_CONFIG"; then
22784 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22785echo "${ECHO_T}$PKG_CONFIG" >&6
22786else
22787 echo "$as_me:$LINENO: result: no" >&5
22788echo "${ECHO_T}no" >&6
22789fi
22790
22791
22792 if test x$PKG_CONFIG != xno ; then
22793 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22794 :
22795 else
c2218763 22796 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22797 no_gtk=yes
22798 PKG_CONFIG=no
22799 fi
22800 else
22801 no_gtk=yes
22802 fi
22803
22804 min_gtk_version=2.0.0
22805 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22806echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22807
22808 if test x$PKG_CONFIG != xno ; then
22809 ## don't try to run the test against uninstalled libtool libs
22810 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22811 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22812 enable_gtktest=no
22813 fi
22814
22815 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22816 :
22817 else
22818 no_gtk=yes
22819 fi
22820 fi
22821
22822 if test x"$no_gtk" = x ; then
22823 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22824 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22825 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22826 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22827 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22828 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22829 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22830 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22831 if test "x$enable_gtktest" = "xyes" ; then
22832 ac_save_CFLAGS="$CFLAGS"
22833 ac_save_LIBS="$LIBS"
22834 CFLAGS="$CFLAGS $GTK_CFLAGS"
22835 LIBS="$GTK_LIBS $LIBS"
22836 rm -f conf.gtktest
22837 if test "$cross_compiling" = yes; then
22838 echo $ac_n "cross compiling; assumed OK... $ac_c"
22839else
22840 cat >conftest.$ac_ext <<_ACEOF
22841/* confdefs.h. */
22842_ACEOF
22843cat confdefs.h >>conftest.$ac_ext
22844cat >>conftest.$ac_ext <<_ACEOF
22845/* end confdefs.h. */
22846
22847#include <gtk/gtk.h>
22848#include <stdio.h>
22849#include <stdlib.h>
22850
22851int
22852main ()
22853{
22854 int major, minor, micro;
22855 char *tmp_version;
22856
22857 system ("touch conf.gtktest");
22858
22859 /* HP/UX 9 (%@#!) writes to sscanf strings */
22860 tmp_version = g_strdup("$min_gtk_version");
22861 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22862 printf("%s, bad version string\n", "$min_gtk_version");
22863 exit(1);
22864 }
22865
22866 if ((gtk_major_version != $gtk_config_major_version) ||
22867 (gtk_minor_version != $gtk_config_minor_version) ||
22868 (gtk_micro_version != $gtk_config_micro_version))
22869 {
22870 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22871 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22872 gtk_major_version, gtk_minor_version, gtk_micro_version);
22873 printf ("*** was found! If pkg-config was correct, then it is best\n");
22874 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22875 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22876 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22877 printf("*** required on your system.\n");
22878 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22879 printf("*** to point to the correct configuration files\n");
22880 }
22881 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22882 (gtk_minor_version != GTK_MINOR_VERSION) ||
22883 (gtk_micro_version != GTK_MICRO_VERSION))
22884 {
22885 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22886 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22887 printf("*** library (version %d.%d.%d)\n",
22888 gtk_major_version, gtk_minor_version, gtk_micro_version);
22889 }
22890 else
22891 {
22892 if ((gtk_major_version > major) ||
22893 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22894 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22895 {
22896 return 0;
22897 }
22898 else
22899 {
22900 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22901 gtk_major_version, gtk_minor_version, gtk_micro_version);
22902 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22903 major, minor, micro);
22904 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22905 printf("***\n");
22906 printf("*** If you have already installed a sufficiently new version, this error\n");
22907 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22908 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22909 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22910 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22911 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22912 printf("*** so that the correct libraries are found at run-time))\n");
22913 }
22914 }
22915 return 1;
22916}
22917
22918_ACEOF
22919rm -f conftest$ac_exeext
22920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22921 (eval $ac_link) 2>&5
22922 ac_status=$?
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 :
22931else
22932 echo "$as_me: program exited with status $ac_status" >&5
22933echo "$as_me: failed program was:" >&5
22934sed 's/^/| /' conftest.$ac_ext >&5
22935
22936( exit $ac_status )
22937no_gtk=yes
22938fi
ac1cb8d3 22939rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22940fi
22941 CFLAGS="$ac_save_CFLAGS"
22942 LIBS="$ac_save_LIBS"
22943 fi
22944 fi
22945 if test "x$no_gtk" = x ; then
22946 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22947echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22948 wx_cv_lib_gtk=2.0
22949 else
22950 echo "$as_me:$LINENO: result: no" >&5
22951echo "${ECHO_T}no" >&6
22952 if test "$PKG_CONFIG" = "no" ; then
22953 echo "*** A new enough version of pkg-config was not found."
22954 echo "*** See http://pkgconfig.sourceforge.net"
22955 else
22956 if test -f conf.gtktest ; then
22957 :
22958 else
22959 echo "*** Could not run GTK+ test program, checking why..."
22960 ac_save_CFLAGS="$CFLAGS"
22961 ac_save_LIBS="$LIBS"
22962 CFLAGS="$CFLAGS $GTK_CFLAGS"
22963 LIBS="$LIBS $GTK_LIBS"
22964 cat >conftest.$ac_ext <<_ACEOF
22965/* confdefs.h. */
22966_ACEOF
22967cat confdefs.h >>conftest.$ac_ext
22968cat >>conftest.$ac_ext <<_ACEOF
22969/* end confdefs.h. */
22970
22971#include <gtk/gtk.h>
22972#include <stdio.h>
22973
22974int
22975main ()
22976{
22977 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22978 ;
22979 return 0;
22980}
22981_ACEOF
22982rm -f conftest.$ac_objext conftest$ac_exeext
22983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22984 (eval $ac_link) 2>conftest.er1
a848cd7e 22985 ac_status=$?
ac1cb8d3
VS
22986 grep -v '^ *+' conftest.er1 >conftest.err
22987 rm -f conftest.er1
22988 cat conftest.err >&5
a848cd7e
SC
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); } &&
5f652d0d
VS
22991 { ac_try='test -z "$ac_c_werror_flag"
22992 || test ! -s conftest.err'
ac1cb8d3
VS
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; } &&
22998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; }; then
23004 echo "*** The test program compiled, but did not run. This usually means"
23005 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23006 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23007 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23008 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23009 echo "*** is required on your system"
23010 echo "***"
23011 echo "*** If you have an old version installed, it is best to remove it, although"
23012 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23013else
23014 echo "$as_me: failed program was:" >&5
23015sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 echo "*** The test program failed to compile or link. See the file config.log for the"
23018 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23019fi
ac1cb8d3
VS
23020rm -f conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23022 CFLAGS="$ac_save_CFLAGS"
23023 LIBS="$ac_save_LIBS"
23024 fi
23025 fi
23026 GTK_CFLAGS=""
23027 GTK_LIBS=""
23028 :
23029 fi
23030
23031
23032 rm -f conf.gtktest
23033
23034 else
23035
23036# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23037if test "${with_gtk_prefix+set}" = set; then
23038 withval="$with_gtk_prefix"
23039 gtk_config_prefix="$withval"
23040else
23041 gtk_config_prefix=""
23042fi;
23043
23044# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23045if test "${with_gtk_exec_prefix+set}" = set; then
23046 withval="$with_gtk_exec_prefix"
23047 gtk_config_exec_prefix="$withval"
23048else
23049 gtk_config_exec_prefix=""
23050fi;
23051# Check whether --enable-gtktest or --disable-gtktest was given.
23052if test "${enable_gtktest+set}" = set; then
23053 enableval="$enable_gtktest"
23054
23055else
23056 enable_gtktest=yes
23057fi;
23058
23059 for module in . $GTK_MODULES
23060 do
23061 case "$module" in
23062 gthread)
23063 gtk_config_args="$gtk_config_args gthread"
23064 ;;
23065 esac
23066 done
23067
23068 if test x$gtk_config_exec_prefix != x ; then
23069 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23070 if test x${GTK_CONFIG+set} != xset ; then
23071 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23072 fi
23073 fi
23074 if test x$gtk_config_prefix != x ; then
23075 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23076 if test x${GTK_CONFIG+set} != xset ; then
23077 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23078 fi
23079 fi
23080
23081 # Extract the first word of "gtk-config", so it can be a program name with args.
23082set dummy gtk-config; ac_word=$2
23083echo "$as_me:$LINENO: checking for $ac_word" >&5
23084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23085if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23087else
23088 case $GTK_CONFIG in
23089 [\\/]* | ?:[\\/]*)
23090 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23091 ;;
23092 *)
23093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23094for as_dir in $PATH
23095do
23096 IFS=$as_save_IFS
23097 test -z "$as_dir" && as_dir=.
23098 for ac_exec_ext in '' $ac_executable_extensions; do
23099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23100 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23102 break 2
23103 fi
23104done
23105done
23106
23107 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23108 ;;
23109esac
23110fi
23111GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23112
23113if test -n "$GTK_CONFIG"; then
23114 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23115echo "${ECHO_T}$GTK_CONFIG" >&6
23116else
23117 echo "$as_me:$LINENO: result: no" >&5
23118echo "${ECHO_T}no" >&6
23119fi
23120
23121 min_gtk_version=1.2.7
23122 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23123echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23124 no_gtk=""
23125 if test "$GTK_CONFIG" = "no" ; then
23126 no_gtk=yes
23127 else
23128 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23129 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23130 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23132 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23134 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23136 if test "x$enable_gtktest" = "xyes" ; then
23137 ac_save_CFLAGS="$CFLAGS"
23138 ac_save_LIBS="$LIBS"
23139 CFLAGS="$CFLAGS $GTK_CFLAGS"
23140 LIBS="$GTK_LIBS $LIBS"
23141 rm -f conf.gtktest
23142 if test "$cross_compiling" = yes; then
23143 echo $ac_n "cross compiling; assumed OK... $ac_c"
23144else
23145 cat >conftest.$ac_ext <<_ACEOF
23146/* confdefs.h. */
23147_ACEOF
23148cat confdefs.h >>conftest.$ac_ext
23149cat >>conftest.$ac_ext <<_ACEOF
23150/* end confdefs.h. */
23151
23152#include <gtk/gtk.h>
23153#include <stdio.h>
23154#include <stdlib.h>
23155
23156int
23157main ()
23158{
23159 int major, minor, micro;
23160 char *tmp_version;
23161
23162 system ("touch conf.gtktest");
23163
23164 /* HP/UX 9 (%@#!) writes to sscanf strings */
23165 tmp_version = g_strdup("$min_gtk_version");
23166 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23167 printf("%s, bad version string\n", "$min_gtk_version");
23168 exit(1);
23169 }
23170
23171 if ((gtk_major_version != $gtk_config_major_version) ||
23172 (gtk_minor_version != $gtk_config_minor_version) ||
23173 (gtk_micro_version != $gtk_config_micro_version))
23174 {
23175 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23176 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23177 gtk_major_version, gtk_minor_version, gtk_micro_version);
23178 printf ("*** was found! If gtk-config was correct, then it is best\n");
23179 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23180 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23181 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23182 printf("*** required on your system.\n");
23183 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23184 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23185 printf("*** before re-running configure\n");
23186 }
23187#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23188 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23189 (gtk_minor_version != GTK_MINOR_VERSION) ||
23190 (gtk_micro_version != GTK_MICRO_VERSION))
23191 {
23192 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23193 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23194 printf("*** library (version %d.%d.%d)\n",
23195 gtk_major_version, gtk_minor_version, gtk_micro_version);
23196 }
23197#endif /* defined (GTK_MAJOR_VERSION) ... */
23198 else
23199 {
23200 if ((gtk_major_version > major) ||
23201 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23202 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23203 {
23204 return 0;
23205 }
23206 else
23207 {
23208 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23209 gtk_major_version, gtk_minor_version, gtk_micro_version);
23210 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23211 major, minor, micro);
23212 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23213 printf("***\n");
23214 printf("*** If you have already installed a sufficiently new version, this error\n");
23215 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23216 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23217 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23218 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23219 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23220 printf("*** so that the correct libraries are found at run-time))\n");
23221 }
23222 }
23223 return 1;
23224}
23225
23226_ACEOF
23227rm -f conftest$ac_exeext
23228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23229 (eval $ac_link) 2>&5
23230 ac_status=$?
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23235 ac_status=$?
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; }; then
23238 :
23239else
23240 echo "$as_me: program exited with status $ac_status" >&5
23241echo "$as_me: failed program was:" >&5
23242sed 's/^/| /' conftest.$ac_ext >&5
23243
23244( exit $ac_status )
23245no_gtk=yes
23246fi
ac1cb8d3 23247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23248fi
23249 CFLAGS="$ac_save_CFLAGS"
23250 LIBS="$ac_save_LIBS"
23251 fi
23252 fi
23253 if test "x$no_gtk" = x ; then
23254 echo "$as_me:$LINENO: result: yes" >&5
23255echo "${ECHO_T}yes" >&6
23256 wx_cv_lib_gtk=1.2.7
23257 else
23258 echo "$as_me:$LINENO: result: no" >&5
23259echo "${ECHO_T}no" >&6
23260 if test "$GTK_CONFIG" = "no" ; then
23261 echo "*** The gtk-config script installed by GTK could not be found"
23262 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23263 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23264 echo "*** full path to gtk-config."
23265 else
23266 if test -f conf.gtktest ; then
23267 :
23268 else
23269 echo "*** Could not run GTK test program, checking why..."
23270 CFLAGS="$CFLAGS $GTK_CFLAGS"
23271 LIBS="$LIBS $GTK_LIBS"
23272 cat >conftest.$ac_ext <<_ACEOF
23273/* confdefs.h. */
23274_ACEOF
23275cat confdefs.h >>conftest.$ac_ext
23276cat >>conftest.$ac_ext <<_ACEOF
23277/* end confdefs.h. */
23278
23279#include <gtk/gtk.h>
23280#include <stdio.h>
23281
23282int
23283main ()
23284{
23285 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23286 ;
23287 return 0;
23288}
23289_ACEOF
23290rm -f conftest.$ac_objext conftest$ac_exeext
23291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23292 (eval $ac_link) 2>conftest.er1
a848cd7e 23293 ac_status=$?
ac1cb8d3
VS
23294 grep -v '^ *+' conftest.er1 >conftest.err
23295 rm -f conftest.er1
23296 cat conftest.err >&5
a848cd7e
SC
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); } &&
5f652d0d
VS
23299 { ac_try='test -z "$ac_c_werror_flag"
23300 || test ! -s conftest.err'
ac1cb8d3
VS
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; } &&
23306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 echo "*** The test program compiled, but did not run. This usually means"
23313 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23314 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23315 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23316 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23317 echo "*** is required on your system"
23318 echo "***"
23319 echo "*** If you have an old version installed, it is best to remove it, although"
23320 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23321 echo "***"
23322 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23323 echo "*** came with the system with the command"
23324 echo "***"
23325 echo "*** rpm --erase --nodeps gtk gtk-devel"
23326else
23327 echo "$as_me: failed program was:" >&5
23328sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 echo "*** The test program failed to compile or link. See the file config.log for the"
23331 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23332 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23333 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23334fi
ac1cb8d3
VS
23335rm -f conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23337 CFLAGS="$ac_save_CFLAGS"
23338 LIBS="$ac_save_LIBS"
23339 fi
23340 fi
23341 GTK_CFLAGS=""
23342 GTK_LIBS=""
23343 :
23344 fi
23345
23346
23347 rm -f conf.gtktest
23348
23349
23350 if test -z "$wx_cv_lib_gtk"; then
23351
23352# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23353if test "${with_gtk_prefix+set}" = set; then
23354 withval="$with_gtk_prefix"
23355 gtk_config_prefix="$withval"
23356else
23357 gtk_config_prefix=""
23358fi;
23359
23360# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23361if test "${with_gtk_exec_prefix+set}" = set; then
23362 withval="$with_gtk_exec_prefix"
23363 gtk_config_exec_prefix="$withval"
23364else
23365 gtk_config_exec_prefix=""
23366fi;
23367# Check whether --enable-gtktest or --disable-gtktest was given.
23368if test "${enable_gtktest+set}" = set; then
23369 enableval="$enable_gtktest"
23370
23371else
23372 enable_gtktest=yes
23373fi;
23374
23375 for module in . $GTK_MODULES
23376 do
23377 case "$module" in
23378 gthread)
23379 gtk_config_args="$gtk_config_args gthread"
23380 ;;
23381 esac
23382 done
23383
23384 if test x$gtk_config_exec_prefix != x ; then
23385 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23386 if test x${GTK_CONFIG+set} != xset ; then
23387 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23388 fi
23389 fi
23390 if test x$gtk_config_prefix != x ; then
23391 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23392 if test x${GTK_CONFIG+set} != xset ; then
23393 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23394 fi
23395 fi
23396
23397 # Extract the first word of "gtk-config", so it can be a program name with args.
23398set dummy gtk-config; ac_word=$2
23399echo "$as_me:$LINENO: checking for $ac_word" >&5
23400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23401if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23402 echo $ECHO_N "(cached) $ECHO_C" >&6
23403else
23404 case $GTK_CONFIG in
23405 [\\/]* | ?:[\\/]*)
23406 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23407 ;;
23408 *)
23409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23410for as_dir in $PATH
23411do
23412 IFS=$as_save_IFS
23413 test -z "$as_dir" && as_dir=.
23414 for ac_exec_ext in '' $ac_executable_extensions; do
23415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23416 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23418 break 2
23419 fi
23420done
23421done
23422
23423 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23424 ;;
23425esac
23426fi
23427GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23428
23429if test -n "$GTK_CONFIG"; then
23430 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23431echo "${ECHO_T}$GTK_CONFIG" >&6
23432else
23433 echo "$as_me:$LINENO: result: no" >&5
23434echo "${ECHO_T}no" >&6
23435fi
23436
23437 min_gtk_version=1.2.3
23438 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23439echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23440 no_gtk=""
23441 if test "$GTK_CONFIG" = "no" ; then
23442 no_gtk=yes
23443 else
23444 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23445 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23446 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23447 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23448 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23449 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23450 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23451 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23452 if test "x$enable_gtktest" = "xyes" ; then
23453 ac_save_CFLAGS="$CFLAGS"
23454 ac_save_LIBS="$LIBS"
23455 CFLAGS="$CFLAGS $GTK_CFLAGS"
23456 LIBS="$GTK_LIBS $LIBS"
23457 rm -f conf.gtktest
23458 if test "$cross_compiling" = yes; then
23459 echo $ac_n "cross compiling; assumed OK... $ac_c"
23460else
23461 cat >conftest.$ac_ext <<_ACEOF
23462/* confdefs.h. */
23463_ACEOF
23464cat confdefs.h >>conftest.$ac_ext
23465cat >>conftest.$ac_ext <<_ACEOF
23466/* end confdefs.h. */
23467
23468#include <gtk/gtk.h>
23469#include <stdio.h>
23470#include <stdlib.h>
23471
23472int
23473main ()
23474{
23475 int major, minor, micro;
23476 char *tmp_version;
23477
23478 system ("touch conf.gtktest");
23479
23480 /* HP/UX 9 (%@#!) writes to sscanf strings */
23481 tmp_version = g_strdup("$min_gtk_version");
23482 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23483 printf("%s, bad version string\n", "$min_gtk_version");
23484 exit(1);
23485 }
23486
23487 if ((gtk_major_version != $gtk_config_major_version) ||
23488 (gtk_minor_version != $gtk_config_minor_version) ||
23489 (gtk_micro_version != $gtk_config_micro_version))
23490 {
23491 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23492 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23493 gtk_major_version, gtk_minor_version, gtk_micro_version);
23494 printf ("*** was found! If gtk-config was correct, then it is best\n");
23495 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23496 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23497 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23498 printf("*** required on your system.\n");
23499 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23500 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23501 printf("*** before re-running configure\n");
23502 }
23503#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23504 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23505 (gtk_minor_version != GTK_MINOR_VERSION) ||
23506 (gtk_micro_version != GTK_MICRO_VERSION))
23507 {
23508 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23509 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23510 printf("*** library (version %d.%d.%d)\n",
23511 gtk_major_version, gtk_minor_version, gtk_micro_version);
23512 }
23513#endif /* defined (GTK_MAJOR_VERSION) ... */
23514 else
23515 {
23516 if ((gtk_major_version > major) ||
23517 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23518 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23519 {
23520 return 0;
23521 }
23522 else
23523 {
23524 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23525 gtk_major_version, gtk_minor_version, gtk_micro_version);
23526 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23527 major, minor, micro);
23528 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23529 printf("***\n");
23530 printf("*** If you have already installed a sufficiently new version, this error\n");
23531 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23532 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23533 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23534 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23535 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23536 printf("*** so that the correct libraries are found at run-time))\n");
23537 }
23538 }
23539 return 1;
23540}
23541
23542_ACEOF
23543rm -f conftest$ac_exeext
23544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550 (eval $ac_try) 2>&5
23551 ac_status=$?
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; }; then
23554 :
23555else
23556 echo "$as_me: program exited with status $ac_status" >&5
23557echo "$as_me: failed program was:" >&5
23558sed 's/^/| /' conftest.$ac_ext >&5
23559
23560( exit $ac_status )
23561no_gtk=yes
23562fi
ac1cb8d3 23563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23564fi
23565 CFLAGS="$ac_save_CFLAGS"
23566 LIBS="$ac_save_LIBS"
23567 fi
23568 fi
23569 if test "x$no_gtk" = x ; then
23570 echo "$as_me:$LINENO: result: yes" >&5
23571echo "${ECHO_T}yes" >&6
23572 wx_cv_lib_gtk=1.2.3
23573 else
23574 echo "$as_me:$LINENO: result: no" >&5
23575echo "${ECHO_T}no" >&6
23576 if test "$GTK_CONFIG" = "no" ; then
23577 echo "*** The gtk-config script installed by GTK could not be found"
23578 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23579 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23580 echo "*** full path to gtk-config."
23581 else
23582 if test -f conf.gtktest ; then
23583 :
23584 else
23585 echo "*** Could not run GTK test program, checking why..."
23586 CFLAGS="$CFLAGS $GTK_CFLAGS"
23587 LIBS="$LIBS $GTK_LIBS"
23588 cat >conftest.$ac_ext <<_ACEOF
23589/* confdefs.h. */
23590_ACEOF
23591cat confdefs.h >>conftest.$ac_ext
23592cat >>conftest.$ac_ext <<_ACEOF
23593/* end confdefs.h. */
23594
23595#include <gtk/gtk.h>
23596#include <stdio.h>
23597
23598int
23599main ()
23600{
23601 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23602 ;
23603 return 0;
23604}
23605_ACEOF
23606rm -f conftest.$ac_objext conftest$ac_exeext
23607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23608 (eval $ac_link) 2>conftest.er1
a848cd7e 23609 ac_status=$?
ac1cb8d3
VS
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
a848cd7e
SC
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } &&
5f652d0d
VS
23615 { ac_try='test -z "$ac_c_werror_flag"
23616 || test ! -s conftest.err'
ac1cb8d3
VS
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; } &&
23622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 echo "*** The test program compiled, but did not run. This usually means"
23629 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23630 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23631 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23632 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23633 echo "*** is required on your system"
23634 echo "***"
23635 echo "*** If you have an old version installed, it is best to remove it, although"
23636 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23637 echo "***"
23638 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23639 echo "*** came with the system with the command"
23640 echo "***"
23641 echo "*** rpm --erase --nodeps gtk gtk-devel"
23642else
23643 echo "$as_me: failed program was:" >&5
23644sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 echo "*** The test program failed to compile or link. See the file config.log for the"
23647 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23648 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23649 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23650fi
ac1cb8d3
VS
23651rm -f conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23653 CFLAGS="$ac_save_CFLAGS"
23654 LIBS="$ac_save_LIBS"
23655 fi
23656 fi
23657 GTK_CFLAGS=""
23658 GTK_LIBS=""
23659 :
23660 fi
23661
23662
23663 rm -f conf.gtktest
23664
23665 fi
23666 fi
23667
23668 if test -z "$wx_cv_lib_gtk"; then
23669 wx_cv_lib_gtk=none
23670 else
23671 wx_cv_cflags_gtk=$GTK_CFLAGS
23672 wx_cv_libs_gtk=$GTK_LIBS
23673 fi
23674
23675
23676fi
23677
23678
23679 if test "$gtk_version_cached" = 1; then
23680 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23681echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23682 fi
23683
23684 case "$wx_cv_lib_gtk" in
23685 2.0) WXGTK20=1
23686 TOOLKIT_VERSION=2
23687 ;;
23688 1.2.7) WXGTK127=1
23689 WXGTK12=1
23690 ;;
23691 1.2.3) WXGTK12=1
23692 ;;
23693 *) { { echo "$as_me:$LINENO: error:
23694Please check that gtk-config is in path, the directory
23695where GTK+ libraries are installed (returned by
23696'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23697equivalent variable and GTK+ is version 1.2.3 or above.
23698 " >&5
23699echo "$as_me: error:
23700Please check that gtk-config is in path, the directory
23701where GTK+ libraries are installed (returned by
23702'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23703equivalent variable and GTK+ is version 1.2.3 or above.
23704 " >&2;}
23705 { (exit 1); exit 1; }; }
23706 ;;
23707 esac
23708
23709 if test "$WXGTK20" = 1; then
304205f1
VS
23710 save_CFLAGS="$CFLAGS"
23711 save_LIBS="$LIBS"
23712 CFLAGS="$CFLAGS $GTK_CFLAGS"
23713 LIBS="$LIBS $GTK_LIBS"
23714
9755e73b 23715
304205f1
VS
23716for ac_func in pango_font_family_is_monospace
23717do
23718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23719echo "$as_me:$LINENO: checking for $ac_func" >&5
23720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23721if eval "test \"\${$as_ac_var+set}\" = set"; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23723else
23724 cat >conftest.$ac_ext <<_ACEOF
23725/* confdefs.h. */
23726_ACEOF
23727cat confdefs.h >>conftest.$ac_ext
23728cat >>conftest.$ac_ext <<_ACEOF
23729/* end confdefs.h. */
23730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23732#define $ac_func innocuous_$ac_func
23733
23734/* System header to define __stub macros and hopefully few prototypes,
23735 which can conflict with char $ac_func (); below.
23736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23737 <limits.h> exists even on freestanding compilers. */
23738
23739#ifdef __STDC__
23740# include <limits.h>
23741#else
23742# include <assert.h>
23743#endif
23744
23745#undef $ac_func
23746
23747/* Override any gcc2 internal prototype to avoid an error. */
23748#ifdef __cplusplus
23749extern "C"
23750{
23751#endif
23752/* We use char because int might match the return type of a gcc2
23753 builtin and then its argument prototype would still apply. */
23754char $ac_func ();
23755/* The GNU C library defines this for functions which it implements
23756 to always fail with ENOSYS. Some functions are actually named
23757 something starting with __ and the normal name is an alias. */
23758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23759choke me
23760#else
23761char (*f) () = $ac_func;
23762#endif
23763#ifdef __cplusplus
23764}
23765#endif
23766
23767int
23768main ()
23769{
23770return f != $ac_func;
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext conftest$ac_exeext
23776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23777 (eval $ac_link) 2>conftest.er1
23778 ac_status=$?
23779 grep -v '^ *+' conftest.er1 >conftest.err
23780 rm -f conftest.er1
23781 cat conftest.err >&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } &&
5f652d0d
VS
23784 { ac_try='test -z "$ac_c_werror_flag"
23785 || test ! -s conftest.err'
304205f1
VS
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; } &&
23791 { ac_try='test -s conftest$ac_exeext'
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 eval "$as_ac_var=yes"
23798else
23799 echo "$as_me: failed program was:" >&5
23800sed 's/^/| /' conftest.$ac_ext >&5
23801
23802eval "$as_ac_var=no"
23803fi
23804rm -f conftest.err conftest.$ac_objext \
23805 conftest$ac_exeext conftest.$ac_ext
23806fi
23807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23809if test `eval echo '${'$as_ac_var'}'` = yes; then
23810 cat >>confdefs.h <<_ACEOF
23811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23812_ACEOF
23813
23814fi
23815done
23816
9755e73b
VS
23817
23818 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
23819echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
23820 cat >conftest.$ac_ext <<_ACEOF
23821/* confdefs.h. */
23822_ACEOF
23823cat confdefs.h >>conftest.$ac_ext
23824cat >>conftest.$ac_ext <<_ACEOF
23825/* end confdefs.h. */
23826
23827 #include <gtk/gtk.h>
23828
23829int
23830main ()
23831{
23832
23833 #if !GTK_CHECK_VERSION(2,4,0)
23834 #error "Not GTK+ 2.4"
23835 #endif
23836
23837 ;
23838 return 0;
23839}
23840_ACEOF
23841rm -f conftest.$ac_objext
23842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843 (eval $ac_compile) 2>conftest.er1
23844 ac_status=$?
23845 grep -v '^ *+' conftest.er1 >conftest.err
23846 rm -f conftest.er1
23847 cat conftest.err >&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); } &&
5f652d0d
VS
23850 { ac_try='test -z "$ac_c_werror_flag"
23851 || test ! -s conftest.err'
9755e73b
VS
23852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856 (exit $ac_status); }; } &&
23857 { ac_try='test -s conftest.$ac_objext'
23858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; }; then
23863
23864 cat >>confdefs.h <<\_ACEOF
23865#define __WXGTK24__ 1
23866_ACEOF
23867
23868 echo "$as_me:$LINENO: result: yes" >&5
23869echo "${ECHO_T}yes" >&6
23870
23871else
23872 echo "$as_me: failed program was:" >&5
23873sed 's/^/| /' conftest.$ac_ext >&5
23874
23875
23876 echo "$as_me:$LINENO: result: no" >&5
23877echo "${ECHO_T}no" >&6
23878
23879fi
23880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23881
304205f1
VS
23882 CFLAGS="$save_CFLAGS"
23883 LIBS="$save_LIBS"
a848cd7e
SC
23884 else
23885 if test "$wxUSE_UNICODE" = "yes"; then
23886 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23887echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23888 wxUSE_UNICODE=no
23889 fi
23890 fi
23891
23892 if test "$USE_DARWIN" != 1; then
23893
23894for ac_func in poll
23895do
23896as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23897echo "$as_me:$LINENO: checking for $ac_func" >&5
23898echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23899if eval "test \"\${$as_ac_var+set}\" = set"; then
23900 echo $ECHO_N "(cached) $ECHO_C" >&6
23901else
23902 cat >conftest.$ac_ext <<_ACEOF
23903/* confdefs.h. */
23904_ACEOF
23905cat confdefs.h >>conftest.$ac_ext
23906cat >>conftest.$ac_ext <<_ACEOF
23907/* end confdefs.h. */
ac1cb8d3
VS
23908/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23910#define $ac_func innocuous_$ac_func
23911
a848cd7e
SC
23912/* System header to define __stub macros and hopefully few prototypes,
23913 which can conflict with char $ac_func (); below.
23914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23915 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23916
a848cd7e
SC
23917#ifdef __STDC__
23918# include <limits.h>
23919#else
23920# include <assert.h>
23921#endif
ac1cb8d3
VS
23922
23923#undef $ac_func
23924
a848cd7e
SC
23925/* Override any gcc2 internal prototype to avoid an error. */
23926#ifdef __cplusplus
23927extern "C"
23928{
23929#endif
23930/* We use char because int might match the return type of a gcc2
23931 builtin and then its argument prototype would still apply. */
23932char $ac_func ();
23933/* The GNU C library defines this for functions which it implements
23934 to always fail with ENOSYS. Some functions are actually named
23935 something starting with __ and the normal name is an alias. */
23936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23937choke me
23938#else
23939char (*f) () = $ac_func;
23940#endif
23941#ifdef __cplusplus
23942}
23943#endif
23944
23945int
23946main ()
23947{
23948return f != $ac_func;
23949 ;
23950 return 0;
23951}
23952_ACEOF
23953rm -f conftest.$ac_objext conftest$ac_exeext
23954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23955 (eval $ac_link) 2>conftest.er1
a848cd7e 23956 ac_status=$?
ac1cb8d3
VS
23957 grep -v '^ *+' conftest.er1 >conftest.err
23958 rm -f conftest.er1
23959 cat conftest.err >&5
a848cd7e
SC
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
5f652d0d
VS
23962 { ac_try='test -z "$ac_c_werror_flag"
23963 || test ! -s conftest.err'
ac1cb8d3
VS
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; } &&
23969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23975 eval "$as_ac_var=yes"
23976else
23977 echo "$as_me: failed program was:" >&5
23978sed 's/^/| /' conftest.$ac_ext >&5
23979
23980eval "$as_ac_var=no"
23981fi
ac1cb8d3
VS
23982rm -f conftest.err conftest.$ac_objext \
23983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23984fi
23985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23987if test `eval echo '${'$as_ac_var'}'` = yes; then
23988 cat >>confdefs.h <<_ACEOF
23989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23990_ACEOF
23991
23992fi
23993done
23994
23995 fi
23996
23997 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23998 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23999
24000 AFMINSTALL=afminstall
24001 TOOLKIT=GTK
24002 GUIDIST=GTK_DIST
24003
24004 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24005echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24006if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24007 echo $ECHO_N "(cached) $ECHO_C" >&6
24008else
24009 ac_check_lib_save_LIBS=$LIBS
24010LIBS="-lgdk $LIBS"
24011cat >conftest.$ac_ext <<_ACEOF
24012/* confdefs.h. */
24013_ACEOF
24014cat confdefs.h >>conftest.$ac_ext
24015cat >>conftest.$ac_ext <<_ACEOF
24016/* end confdefs.h. */
24017
24018/* Override any gcc2 internal prototype to avoid an error. */
24019#ifdef __cplusplus
24020extern "C"
24021#endif
24022/* We use char because int might match the return type of a gcc2
24023 builtin and then its argument prototype would still apply. */
24024char gdk_im_open ();
24025int
24026main ()
24027{
24028gdk_im_open ();
24029 ;
24030 return 0;
24031}
24032_ACEOF
24033rm -f conftest.$ac_objext conftest$ac_exeext
24034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24035 (eval $ac_link) 2>conftest.er1
a848cd7e 24036 ac_status=$?
ac1cb8d3
VS
24037 grep -v '^ *+' conftest.er1 >conftest.err
24038 rm -f conftest.er1
24039 cat conftest.err >&5
a848cd7e
SC
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } &&
5f652d0d
VS
24042 { ac_try='test -z "$ac_c_werror_flag"
24043 || test ! -s conftest.err'
ac1cb8d3
VS
24044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); }; } &&
24049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 ac_cv_lib_gdk_gdk_im_open=yes
24056else
24057 echo "$as_me: failed program was:" >&5
24058sed 's/^/| /' conftest.$ac_ext >&5
24059
24060ac_cv_lib_gdk_gdk_im_open=no
24061fi
ac1cb8d3
VS
24062rm -f conftest.err conftest.$ac_objext \
24063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24064LIBS=$ac_check_lib_save_LIBS
24065fi
24066echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24067echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24068if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24069 cat >>confdefs.h <<\_ACEOF
24070#define HAVE_XIM 1
24071_ACEOF
24072
24073fi
24074
24075
24076
24077 if test "$wxUSE_GPE" = "yes"; then
24078 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24079echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24080
24081ac_find_libraries=
24082for ac_dir in $SEARCH_LIB /usr/lib;
24083 do
24084 for ac_extension in a so sl dylib; do
24085 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24086 ac_find_libraries=$ac_dir
24087 break 2
24088 fi
24089 done
24090 done
24091
24092 if test "$ac_find_libraries" != "" ; then
24093
24094 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24095 result=$?
24096 if test $result = 0; then
24097 ac_path_to_link=""
24098 else
24099 ac_path_to_link=" -L$ac_find_libraries"
24100 fi
24101
24102 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24103 WXGPE=1
24104 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24105echo "${ECHO_T}found at $ac_find_libraries" >&6
24106 else
24107 echo "$as_me:$LINENO: result: not found" >&5
24108echo "${ECHO_T}not found" >&6
24109 fi
24110
24111 fi
24112 fi
24113
24114 if test "$wxUSE_MGL" = 1; then
24115 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24116echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24117 if test "x$MGL_ROOT" = x ; then
24118 echo "$as_me:$LINENO: result: not found" >&5
24119echo "${ECHO_T}not found" >&6
24120 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24121echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24122 { (exit 1); exit 1; }; }
24123 else
24124 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24125echo "${ECHO_T}$MGL_ROOT" >&6
24126 fi
24127
24128 echo "$as_me:$LINENO: checking for libmgl location" >&5
24129echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24130 case "${host}" in
24131 *-*-linux* )
24132 if test "x$wxUSE_SHARED" = xyes ; then
24133 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24134 else
24135 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24136 fi
24137 ;;
24138 *-pc-msdosdjgpp )
24139 mgl_os_candidates="dos32/dj2"
24140 ;;
24141 *)
24142 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24143echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24144 { (exit 1); exit 1; }; }
24145 esac
24146
24147 mgl_lib_type=""
24148 mgl_os=""
24149
24150 for mgl_os_i in $mgl_os_candidates ; do
24151 if test "x$mgl_os" = x ; then
24152 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24153 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24154 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24155 mgl_lib_type=debug
24156 mgl_os=$mgl_os_i
24157 fi
24158 fi
24159 if test "x$mgl_lib_type" = x ; then
24160 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24161 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24162 mgl_lib_type=release
24163 mgl_os=$mgl_os_i
24164 fi
24165 fi
24166 fi
24167 done
24168
24169 if test "x$mgl_os" = x ; then
24170 echo "$as_me:$LINENO: result: not found" >&5
24171echo "${ECHO_T}not found" >&6
24172 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24173echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24174 { (exit 1); exit 1; }; }
24175 fi
24176 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24177echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24178
24179 wxUSE_UNIVERSAL="yes"
24180
24181 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24182 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24183
24184 AFMINSTALL=afminstall
24185 TOOLKIT=MGL
24186 GUIDIST=MGL_DIST
24187 fi
24188
24189 if test "$wxUSE_MICROWIN" = 1; then
24190 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24191echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24192 if test "x$MICROWINDOWS" = x ; then
24193 echo "$as_me:$LINENO: result: not found" >&5
24194echo "${ECHO_T}not found" >&6
24195 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24196echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24197 { (exit 1); exit 1; }; }
24198 else
24199 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24200echo "${ECHO_T}$MICROWINDOWS" >&6
24201 fi
24202
24203 if test -f $MICROWINDOWS/lib/libmwin.a; then
24204 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24205echo "${ECHO_T}MicroWindows' libraries found." >&6
24206 else
24207 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24208echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24209 { (exit 1); exit 1; }; }
24210 fi
24211
24212 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24213 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24214
24215 wxUSE_UNIVERSAL="yes"
24216
24217 AFMINSTALL=afminstall
24218 TOOLKIT=MICROWIN
24219 GUIDIST=MICROWIN_DIST
24220
24221 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24222 fi
24223
74b84332 24224 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5f652d0d 24225 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24226echo $ECHO_N "checking for X... $ECHO_C" >&6
24227
24228
24229# Check whether --with-x or --without-x was given.
24230if test "${with_x+set}" = set; then
24231 withval="$with_x"
24232
24233fi;
24234# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24235if test "x$with_x" = xno; then
24236 # The user explicitly disabled X.
24237 have_x=disabled
24238else
24239 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24240 # Both variables are already set.
24241 have_x=yes
24242 else
24243 if test "${ac_cv_have_x+set}" = set; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24245else
24246 # One or both of the vars are not set, and there is no cached value.
24247ac_x_includes=no ac_x_libraries=no
24248rm -fr conftest.dir
24249if mkdir conftest.dir; then
24250 cd conftest.dir
24251 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24252 cat >Imakefile <<'_ACEOF'
24253acfindx:
24254 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24255_ACEOF
24256 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24258 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24259 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24260 for ac_extension in a so sl; do
24261 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24262 test -f $ac_im_libdir/libX11.$ac_extension; then
24263 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24264 fi
24265 done
24266 # Screen out bogus values from the imake configuration. They are
24267 # bogus both because they are the default anyway, and because
24268 # using them would break gcc on systems where it needs fixed includes.
24269 case $ac_im_incroot in
24270 /usr/include) ;;
24271 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24272 esac
24273 case $ac_im_usrlibdir in
24274 /usr/lib | /lib) ;;
24275 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24276 esac
24277 fi
24278 cd ..
24279 rm -fr conftest.dir
24280fi
24281
24282# Standard set of common directories for X headers.
24283# Check X11 before X11Rn because it is often a symlink to the current release.
24284ac_x_header_dirs='
24285/usr/X11/include
24286/usr/X11R6/include
24287/usr/X11R5/include
24288/usr/X11R4/include
24289
24290/usr/include/X11
24291/usr/include/X11R6
24292/usr/include/X11R5
24293/usr/include/X11R4
24294
24295/usr/local/X11/include
24296/usr/local/X11R6/include
24297/usr/local/X11R5/include
24298/usr/local/X11R4/include
24299
24300/usr/local/include/X11
24301/usr/local/include/X11R6
24302/usr/local/include/X11R5
24303/usr/local/include/X11R4
24304
24305/usr/X386/include
24306/usr/x386/include
24307/usr/XFree86/include/X11
24308
24309/usr/include
24310/usr/local/include
24311/usr/unsupported/include
24312/usr/athena/include
24313/usr/local/x11r5/include
24314/usr/lpp/Xamples/include
24315
24316/usr/openwin/include
24317/usr/openwin/share/include'
24318
24319if test "$ac_x_includes" = no; then
5f652d0d 24320 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24321 # First, try using that file with no special directory specified.
24322 cat >conftest.$ac_ext <<_ACEOF
24323/* confdefs.h. */
24324_ACEOF
24325cat confdefs.h >>conftest.$ac_ext
24326cat >>conftest.$ac_ext <<_ACEOF
24327/* end confdefs.h. */
24328#include <X11/Intrinsic.h>
24329_ACEOF
24330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24332 ac_status=$?
24333 grep -v '^ *+' conftest.er1 >conftest.err
24334 rm -f conftest.er1
24335 cat conftest.err >&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } >/dev/null; then
24338 if test -s conftest.err; then
24339 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24341 else
24342 ac_cpp_err=
24343 fi
24344else
24345 ac_cpp_err=yes
24346fi
24347if test -z "$ac_cpp_err"; then
24348 # We can compile using X headers with no special include directory.
24349ac_x_includes=
24350else
24351 echo "$as_me: failed program was:" >&5
24352sed 's/^/| /' conftest.$ac_ext >&5
24353
24354 for ac_dir in $ac_x_header_dirs; do
24355 if test -r "$ac_dir/X11/Intrinsic.h"; then
24356 ac_x_includes=$ac_dir
24357 break
24358 fi
24359done
24360fi
24361rm -f conftest.err conftest.$ac_ext
24362fi # $ac_x_includes = no
24363
24364if test "$ac_x_libraries" = no; then
24365 # Check for the libraries.
24366 # See if we find them without any special options.
24367 # Don't add to $LIBS permanently.
24368 ac_save_LIBS=$LIBS
24369 LIBS="-lXt $LIBS"
24370 cat >conftest.$ac_ext <<_ACEOF
24371/* confdefs.h. */
24372_ACEOF
24373cat confdefs.h >>conftest.$ac_ext
24374cat >>conftest.$ac_ext <<_ACEOF
24375/* end confdefs.h. */
24376#include <X11/Intrinsic.h>
24377int
24378main ()
24379{
24380XtMalloc (0)
24381 ;
24382 return 0;
24383}
24384_ACEOF
24385rm -f conftest.$ac_objext conftest$ac_exeext
24386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24387 (eval $ac_link) 2>conftest.er1
a848cd7e 24388 ac_status=$?
ac1cb8d3
VS
24389 grep -v '^ *+' conftest.er1 >conftest.err
24390 rm -f conftest.er1
24391 cat conftest.err >&5
a848cd7e
SC
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } &&
5f652d0d
VS
24394 { ac_try='test -z "$ac_c_werror_flag"
24395 || test ! -s conftest.err'
ac1cb8d3
VS
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24398 ac_status=$?
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; } &&
24401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; }; then
24407 LIBS=$ac_save_LIBS
24408# We can link X programs with no special library path.
24409ac_x_libraries=
24410else
24411 echo "$as_me: failed program was:" >&5
24412sed 's/^/| /' conftest.$ac_ext >&5
24413
24414LIBS=$ac_save_LIBS
24415for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24416do
24417 # Don't even attempt the hair of trying to link an X program!
24418 for ac_extension in a so sl; do
24419 if test -r $ac_dir/libXt.$ac_extension; then
24420 ac_x_libraries=$ac_dir
24421 break 2
24422 fi
24423 done
24424done
24425fi
ac1cb8d3
VS
24426rm -f conftest.err conftest.$ac_objext \
24427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24428fi # $ac_x_libraries = no
24429
24430if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24431 # Didn't find X anywhere. Cache the known absence of X.
24432 ac_cv_have_x="have_x=no"
24433else
24434 # Record where we found X for the cache.
24435 ac_cv_have_x="have_x=yes \
ac1cb8d3 24436 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24437fi
24438fi
24439
24440 fi
24441 eval "$ac_cv_have_x"
24442fi # $with_x != no
24443
24444if test "$have_x" != yes; then
24445 echo "$as_me:$LINENO: result: $have_x" >&5
24446echo "${ECHO_T}$have_x" >&6
24447 no_x=yes
24448else
24449 # If each of the values was on the command line, it overrides each guess.
24450 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24451 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24452 # Update the cache value to reflect the command line values.
24453 ac_cv_have_x="have_x=yes \
24454 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5f652d0d
VS
24455 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24456echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24457fi
24458
24459if test "$no_x" = yes; then
24460 # Not all programs may use this symbol, but it does not hurt to define it.
24461
24462cat >>confdefs.h <<\_ACEOF
24463#define X_DISPLAY_MISSING 1
24464_ACEOF
24465
24466 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24467else
24468 if test -n "$x_includes"; then
24469 X_CFLAGS="$X_CFLAGS -I$x_includes"
24470 fi
24471
24472 # It would also be nice to do this for all -L options, not just this one.
24473 if test -n "$x_libraries"; then
24474 X_LIBS="$X_LIBS -L$x_libraries"
24475 # For Solaris; some versions of Sun CC require a space after -R and
24476 # others require no space. Words are not sufficient . . . .
24477 case `(uname -sr) 2>/dev/null` in
24478 "SunOS 5"*)
24479 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24480echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24481 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24482 cat >conftest.$ac_ext <<_ACEOF
24483/* confdefs.h. */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
24487/* end confdefs.h. */
24488
24489int
24490main ()
24491{
24492
24493 ;
24494 return 0;
24495}
24496_ACEOF
24497rm -f conftest.$ac_objext conftest$ac_exeext
24498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24499 (eval $ac_link) 2>conftest.er1
a848cd7e 24500 ac_status=$?
ac1cb8d3
VS
24501 grep -v '^ *+' conftest.er1 >conftest.err
24502 rm -f conftest.er1
24503 cat conftest.err >&5
a848cd7e
SC
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } &&
5f652d0d
VS
24506 { ac_try='test -z "$ac_c_werror_flag"
24507 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
24513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; }; then
24519 ac_R_nospace=yes
24520else
24521 echo "$as_me: failed program was:" >&5
24522sed 's/^/| /' conftest.$ac_ext >&5
24523
24524ac_R_nospace=no
24525fi
ac1cb8d3
VS
24526rm -f conftest.err conftest.$ac_objext \
24527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24528 if test $ac_R_nospace = yes; then
24529 echo "$as_me:$LINENO: result: no" >&5
24530echo "${ECHO_T}no" >&6
24531 X_LIBS="$X_LIBS -R$x_libraries"
24532 else
24533 LIBS="$ac_xsave_LIBS -R $x_libraries"
24534 cat >conftest.$ac_ext <<_ACEOF
24535/* confdefs.h. */
24536_ACEOF
24537cat confdefs.h >>conftest.$ac_ext
24538cat >>conftest.$ac_ext <<_ACEOF
24539/* end confdefs.h. */
24540
24541int
24542main ()
24543{
24544
24545 ;
24546 return 0;
24547}
24548_ACEOF
24549rm -f conftest.$ac_objext conftest$ac_exeext
24550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24551 (eval $ac_link) 2>conftest.er1
a848cd7e 24552 ac_status=$?
ac1cb8d3
VS
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
a848cd7e
SC
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } &&
5f652d0d
VS
24558 { ac_try='test -z "$ac_c_werror_flag"
24559 || test ! -s conftest.err'
ac1cb8d3
VS
24560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24561 (eval $ac_try) 2>&5
24562 ac_status=$?
24563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); }; } &&
24565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
24571 ac_R_space=yes
24572else
24573 echo "$as_me: failed program was:" >&5
24574sed 's/^/| /' conftest.$ac_ext >&5
24575
24576ac_R_space=no
24577fi
ac1cb8d3
VS
24578rm -f conftest.err conftest.$ac_objext \
24579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24580 if test $ac_R_space = yes; then
24581 echo "$as_me:$LINENO: result: yes" >&5
24582echo "${ECHO_T}yes" >&6
24583 X_LIBS="$X_LIBS -R $x_libraries"
24584 else
24585 echo "$as_me:$LINENO: result: neither works" >&5
24586echo "${ECHO_T}neither works" >&6
24587 fi
24588 fi
24589 LIBS=$ac_xsave_LIBS
24590 esac
24591 fi
24592
24593 # Check for system-dependent libraries X programs must link with.
24594 # Do this before checking for the system-independent R6 libraries
24595 # (-lICE), since we may need -lsocket or whatever for X linking.
24596
24597 if test "$ISC" = yes; then
24598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24599 else
24600 # Martyn Johnson says this is needed for Ultrix, if the X
24601 # libraries were built with DECnet support. And Karl Berry says
24602 # the Alpha needs dnet_stub (dnet does not exist).
24603 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24604 cat >conftest.$ac_ext <<_ACEOF
24605/* confdefs.h. */
24606_ACEOF
24607cat confdefs.h >>conftest.$ac_ext
24608cat >>conftest.$ac_ext <<_ACEOF
24609/* end confdefs.h. */
24610
24611/* Override any gcc2 internal prototype to avoid an error. */
24612#ifdef __cplusplus
24613extern "C"
24614#endif
24615/* We use char because int might match the return type of a gcc2
24616 builtin and then its argument prototype would still apply. */
24617char XOpenDisplay ();
24618int
24619main ()
24620{
24621XOpenDisplay ();
24622 ;
24623 return 0;
24624}
24625_ACEOF
24626rm -f conftest.$ac_objext conftest$ac_exeext
24627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24628 (eval $ac_link) 2>conftest.er1
a848cd7e 24629 ac_status=$?
ac1cb8d3
VS
24630 grep -v '^ *+' conftest.er1 >conftest.err
24631 rm -f conftest.er1
24632 cat conftest.err >&5
a848cd7e
SC
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } &&
5f652d0d
VS
24635 { ac_try='test -z "$ac_c_werror_flag"
24636 || test ! -s conftest.err'
ac1cb8d3
VS
24637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24638 (eval $ac_try) 2>&5
24639 ac_status=$?
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); }; } &&
24642 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644 (eval $ac_try) 2>&5
24645 ac_status=$?
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); }; }; then
24648 :
24649else
24650 echo "$as_me: failed program was:" >&5
24651sed 's/^/| /' conftest.$ac_ext >&5
24652
24653echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24654echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24655if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24657else
24658 ac_check_lib_save_LIBS=$LIBS
24659LIBS="-ldnet $LIBS"
24660cat >conftest.$ac_ext <<_ACEOF
24661/* confdefs.h. */
24662_ACEOF
24663cat confdefs.h >>conftest.$ac_ext
24664cat >>conftest.$ac_ext <<_ACEOF
24665/* end confdefs.h. */
24666
24667/* Override any gcc2 internal prototype to avoid an error. */
24668#ifdef __cplusplus
24669extern "C"
24670#endif
24671/* We use char because int might match the return type of a gcc2
24672 builtin and then its argument prototype would still apply. */
24673char dnet_ntoa ();
24674int
24675main ()
24676{
24677dnet_ntoa ();
24678 ;
24679 return 0;
24680}
24681_ACEOF
24682rm -f conftest.$ac_objext conftest$ac_exeext
24683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24684 (eval $ac_link) 2>conftest.er1
a848cd7e 24685 ac_status=$?
ac1cb8d3
VS
24686 grep -v '^ *+' conftest.er1 >conftest.err
24687 rm -f conftest.er1
24688 cat conftest.err >&5
a848cd7e
SC
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } &&
5f652d0d
VS
24691 { ac_try='test -z "$ac_c_werror_flag"
24692 || test ! -s conftest.err'
ac1cb8d3
VS
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; } &&
24698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24700 (eval $ac_try) 2>&5
24701 ac_status=$?
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); }; }; then
24704 ac_cv_lib_dnet_dnet_ntoa=yes
24705else
24706 echo "$as_me: failed program was:" >&5
24707sed 's/^/| /' conftest.$ac_ext >&5
24708
24709ac_cv_lib_dnet_dnet_ntoa=no
24710fi
ac1cb8d3
VS
24711rm -f conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24713LIBS=$ac_check_lib_save_LIBS
24714fi
24715echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24716echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24717if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24718 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24719fi
24720
24721 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24722 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24723echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24724if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24726else
24727 ac_check_lib_save_LIBS=$LIBS
24728LIBS="-ldnet_stub $LIBS"
24729cat >conftest.$ac_ext <<_ACEOF
24730/* confdefs.h. */
24731_ACEOF
24732cat confdefs.h >>conftest.$ac_ext
24733cat >>conftest.$ac_ext <<_ACEOF
24734/* end confdefs.h. */
24735
24736/* Override any gcc2 internal prototype to avoid an error. */
24737#ifdef __cplusplus
24738extern "C"
24739#endif
24740/* We use char because int might match the return type of a gcc2
24741 builtin and then its argument prototype would still apply. */
24742char dnet_ntoa ();
24743int
24744main ()
24745{
24746dnet_ntoa ();
24747 ;
24748 return 0;
24749}
24750_ACEOF
24751rm -f conftest.$ac_objext conftest$ac_exeext
24752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24753 (eval $ac_link) 2>conftest.er1
a848cd7e 24754 ac_status=$?
ac1cb8d3
VS
24755 grep -v '^ *+' conftest.er1 >conftest.err
24756 rm -f conftest.er1
24757 cat conftest.err >&5
a848cd7e
SC
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
5f652d0d
VS
24760 { ac_try='test -z "$ac_c_werror_flag"
24761 || test ! -s conftest.err'
ac1cb8d3
VS
24762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; } &&
24767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; }; then
24773 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24774else
24775 echo "$as_me: failed program was:" >&5
24776sed 's/^/| /' conftest.$ac_ext >&5
24777
24778ac_cv_lib_dnet_stub_dnet_ntoa=no
24779fi
ac1cb8d3
VS
24780rm -f conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24782LIBS=$ac_check_lib_save_LIBS
24783fi
24784echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24785echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24786if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24787 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24788fi
24789
24790 fi
24791fi
ac1cb8d3
VS
24792rm -f conftest.err conftest.$ac_objext \
24793 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24794 LIBS="$ac_xsave_LIBS"
24795
24796 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24797 # to get the SysV transport functions.
24798 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24799 # needs -lnsl.
24800 # The nsl library prevents programs from opening the X display
24801 # on Irix 5.2, according to T.E. Dickey.
24802 # The functions gethostbyname, getservbyname, and inet_addr are
24803 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24804 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24805echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24806if test "${ac_cv_func_gethostbyname+set}" = set; then
24807 echo $ECHO_N "(cached) $ECHO_C" >&6
24808else
24809 cat >conftest.$ac_ext <<_ACEOF
24810/* confdefs.h. */
24811_ACEOF
24812cat confdefs.h >>conftest.$ac_ext
24813cat >>conftest.$ac_ext <<_ACEOF
24814/* end confdefs.h. */
ac1cb8d3
VS
24815/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24817#define gethostbyname innocuous_gethostbyname
24818
a848cd7e
SC
24819/* System header to define __stub macros and hopefully few prototypes,
24820 which can conflict with char gethostbyname (); below.
24821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24822 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24823
a848cd7e
SC
24824#ifdef __STDC__
24825# include <limits.h>
24826#else
24827# include <assert.h>
24828#endif
ac1cb8d3
VS
24829
24830#undef gethostbyname
24831
a848cd7e
SC
24832/* Override any gcc2 internal prototype to avoid an error. */
24833#ifdef __cplusplus
24834extern "C"
24835{
24836#endif
24837/* We use char because int might match the return type of a gcc2
24838 builtin and then its argument prototype would still apply. */
24839char gethostbyname ();
24840/* The GNU C library defines this for functions which it implements
24841 to always fail with ENOSYS. Some functions are actually named
24842 something starting with __ and the normal name is an alias. */
24843#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24844choke me
24845#else
24846char (*f) () = gethostbyname;
24847#endif
24848#ifdef __cplusplus
24849}
24850#endif
24851
24852int
24853main ()
24854{
24855return f != gethostbyname;
24856 ;
24857 return 0;
24858}
24859_ACEOF
24860rm -f conftest.$ac_objext conftest$ac_exeext
24861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24862 (eval $ac_link) 2>conftest.er1
a848cd7e 24863 ac_status=$?
ac1cb8d3
VS
24864 grep -v '^ *+' conftest.er1 >conftest.err
24865 rm -f conftest.er1
24866 cat conftest.err >&5
a848cd7e
SC
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); } &&
5f652d0d
VS
24869 { ac_try='test -z "$ac_c_werror_flag"
24870 || test ! -s conftest.err'
ac1cb8d3
VS
24871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24872 (eval $ac_try) 2>&5
24873 ac_status=$?
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); }; } &&
24876 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); }; }; then
24882 ac_cv_func_gethostbyname=yes
24883else
24884 echo "$as_me: failed program was:" >&5
24885sed 's/^/| /' conftest.$ac_ext >&5
24886
24887ac_cv_func_gethostbyname=no
24888fi
ac1cb8d3
VS
24889rm -f conftest.err conftest.$ac_objext \
24890 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24891fi
24892echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24893echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24894
24895 if test $ac_cv_func_gethostbyname = no; then
24896 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24897echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24898if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24899 echo $ECHO_N "(cached) $ECHO_C" >&6
24900else
24901 ac_check_lib_save_LIBS=$LIBS
24902LIBS="-lnsl $LIBS"
24903cat >conftest.$ac_ext <<_ACEOF
24904/* confdefs.h. */
24905_ACEOF
24906cat confdefs.h >>conftest.$ac_ext
24907cat >>conftest.$ac_ext <<_ACEOF
24908/* end confdefs.h. */
24909
24910/* Override any gcc2 internal prototype to avoid an error. */
24911#ifdef __cplusplus
24912extern "C"
24913#endif
24914/* We use char because int might match the return type of a gcc2
24915 builtin and then its argument prototype would still apply. */
24916char gethostbyname ();
24917int
24918main ()
24919{
24920gethostbyname ();
24921 ;
24922 return 0;
24923}
24924_ACEOF
24925rm -f conftest.$ac_objext conftest$ac_exeext
24926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24927 (eval $ac_link) 2>conftest.er1
24928 ac_status=$?
24929 grep -v '^ *+' conftest.er1 >conftest.err
24930 rm -f conftest.er1
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } &&
5f652d0d
VS
24934 { ac_try='test -z "$ac_c_werror_flag"
24935 || test ! -s conftest.err'
ac1cb8d3
VS
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest$ac_exeext'
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24944 ac_status=$?
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; }; then
24947 ac_cv_lib_nsl_gethostbyname=yes
24948else
24949 echo "$as_me: failed program was:" >&5
24950sed 's/^/| /' conftest.$ac_ext >&5
24951
24952ac_cv_lib_nsl_gethostbyname=no
24953fi
24954rm -f conftest.err conftest.$ac_objext \
24955 conftest$ac_exeext conftest.$ac_ext
24956LIBS=$ac_check_lib_save_LIBS
24957fi
24958echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24959echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24960if test $ac_cv_lib_nsl_gethostbyname = yes; then
24961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24962fi
24963
24964 if test $ac_cv_lib_nsl_gethostbyname = no; then
24965 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24966echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24967if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24968 echo $ECHO_N "(cached) $ECHO_C" >&6
24969else
24970 ac_check_lib_save_LIBS=$LIBS
24971LIBS="-lbsd $LIBS"
24972cat >conftest.$ac_ext <<_ACEOF
24973/* confdefs.h. */
24974_ACEOF
24975cat confdefs.h >>conftest.$ac_ext
24976cat >>conftest.$ac_ext <<_ACEOF
24977/* end confdefs.h. */
24978
24979/* Override any gcc2 internal prototype to avoid an error. */
24980#ifdef __cplusplus
24981extern "C"
24982#endif
24983/* We use char because int might match the return type of a gcc2
24984 builtin and then its argument prototype would still apply. */
24985char gethostbyname ();
24986int
24987main ()
24988{
24989gethostbyname ();
24990 ;
24991 return 0;
24992}
24993_ACEOF
24994rm -f conftest.$ac_objext conftest$ac_exeext
24995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24996 (eval $ac_link) 2>conftest.er1
a848cd7e 24997 ac_status=$?
ac1cb8d3
VS
24998 grep -v '^ *+' conftest.er1 >conftest.err
24999 rm -f conftest.er1
25000 cat conftest.err >&5
a848cd7e
SC
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } &&
5f652d0d
VS
25003 { ac_try='test -z "$ac_c_werror_flag"
25004 || test ! -s conftest.err'
a848cd7e
SC
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 ac_cv_lib_bsd_gethostbyname=yes
25017else
25018 echo "$as_me: failed program was:" >&5
25019sed 's/^/| /' conftest.$ac_ext >&5
25020
25021ac_cv_lib_bsd_gethostbyname=no
25022fi
ac1cb8d3
VS
25023rm -f conftest.err conftest.$ac_objext \
25024 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25025LIBS=$ac_check_lib_save_LIBS
25026fi
25027echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25028echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25029if test $ac_cv_lib_bsd_gethostbyname = yes; then
25030 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25031fi
25032
25033 fi
25034 fi
25035
25036 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25037 # socket/setsockopt and other routines are undefined under SCO ODT
25038 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25039 # on later versions), says Simon Leinen: it contains gethostby*
25040 # variants that don't use the name server (or something). -lsocket
25041 # must be given before -lnsl if both are needed. We assume that
25042 # if connect needs -lnsl, so does gethostbyname.
25043 echo "$as_me:$LINENO: checking for connect" >&5
25044echo $ECHO_N "checking for connect... $ECHO_C" >&6
25045if test "${ac_cv_func_connect+set}" = set; then
25046 echo $ECHO_N "(cached) $ECHO_C" >&6
25047else
25048 cat >conftest.$ac_ext <<_ACEOF
25049/* confdefs.h. */
25050_ACEOF
25051cat confdefs.h >>conftest.$ac_ext
25052cat >>conftest.$ac_ext <<_ACEOF
25053/* end confdefs.h. */
ac1cb8d3
VS
25054/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25056#define connect innocuous_connect
25057
a848cd7e
SC
25058/* System header to define __stub macros and hopefully few prototypes,
25059 which can conflict with char connect (); below.
25060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25062
a848cd7e
SC
25063#ifdef __STDC__
25064# include <limits.h>
25065#else
25066# include <assert.h>
25067#endif
ac1cb8d3
VS
25068
25069#undef connect
25070
a848cd7e
SC
25071/* Override any gcc2 internal prototype to avoid an error. */
25072#ifdef __cplusplus
25073extern "C"
25074{
25075#endif
25076/* We use char because int might match the return type of a gcc2
25077 builtin and then its argument prototype would still apply. */
25078char connect ();
25079/* The GNU C library defines this for functions which it implements
25080 to always fail with ENOSYS. Some functions are actually named
25081 something starting with __ and the normal name is an alias. */
25082#if defined (__stub_connect) || defined (__stub___connect)
25083choke me
25084#else
25085char (*f) () = connect;
25086#endif
25087#ifdef __cplusplus
25088}
25089#endif
25090
25091int
25092main ()
25093{
25094return f != connect;
25095 ;
25096 return 0;
25097}
25098_ACEOF
25099rm -f conftest.$ac_objext conftest$ac_exeext
25100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25101 (eval $ac_link) 2>conftest.er1
a848cd7e 25102 ac_status=$?
ac1cb8d3
VS
25103 grep -v '^ *+' conftest.er1 >conftest.err
25104 rm -f conftest.er1
25105 cat conftest.err >&5
a848cd7e
SC
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } &&
5f652d0d
VS
25108 { ac_try='test -z "$ac_c_werror_flag"
25109 || test ! -s conftest.err'
ac1cb8d3
VS
25110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; } &&
25115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117 (eval $ac_try) 2>&5
25118 ac_status=$?
25119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120 (exit $ac_status); }; }; then
25121 ac_cv_func_connect=yes
25122else
25123 echo "$as_me: failed program was:" >&5
25124sed 's/^/| /' conftest.$ac_ext >&5
25125
25126ac_cv_func_connect=no
25127fi
ac1cb8d3
VS
25128rm -f conftest.err conftest.$ac_objext \
25129 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25130fi
25131echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25132echo "${ECHO_T}$ac_cv_func_connect" >&6
25133
25134 if test $ac_cv_func_connect = no; then
25135 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25136echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25137if test "${ac_cv_lib_socket_connect+set}" = set; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25139else
25140 ac_check_lib_save_LIBS=$LIBS
25141LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25142cat >conftest.$ac_ext <<_ACEOF
25143/* confdefs.h. */
25144_ACEOF
25145cat confdefs.h >>conftest.$ac_ext
25146cat >>conftest.$ac_ext <<_ACEOF
25147/* end confdefs.h. */
25148
25149/* Override any gcc2 internal prototype to avoid an error. */
25150#ifdef __cplusplus
25151extern "C"
25152#endif
25153/* We use char because int might match the return type of a gcc2
25154 builtin and then its argument prototype would still apply. */
25155char connect ();
25156int
25157main ()
25158{
25159connect ();
25160 ;
25161 return 0;
25162}
25163_ACEOF
25164rm -f conftest.$ac_objext conftest$ac_exeext
25165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25166 (eval $ac_link) 2>conftest.er1
a848cd7e 25167 ac_status=$?
ac1cb8d3
VS
25168 grep -v '^ *+' conftest.er1 >conftest.err
25169 rm -f conftest.er1
25170 cat conftest.err >&5
a848cd7e
SC
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } &&
5f652d0d
VS
25173 { ac_try='test -z "$ac_c_werror_flag"
25174 || test ! -s conftest.err'
ac1cb8d3
VS
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; } &&
25180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182 (eval $ac_try) 2>&5
25183 ac_status=$?
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); }; }; then
25186 ac_cv_lib_socket_connect=yes
25187else
25188 echo "$as_me: failed program was:" >&5
25189sed 's/^/| /' conftest.$ac_ext >&5
25190
25191ac_cv_lib_socket_connect=no
25192fi
ac1cb8d3
VS
25193rm -f conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25195LIBS=$ac_check_lib_save_LIBS
25196fi
25197echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25198echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25199if test $ac_cv_lib_socket_connect = yes; then
25200 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25201fi
25202
25203 fi
25204
25205 # Guillermo Gomez says -lposix is necessary on A/UX.
25206 echo "$as_me:$LINENO: checking for remove" >&5
25207echo $ECHO_N "checking for remove... $ECHO_C" >&6
25208if test "${ac_cv_func_remove+set}" = set; then
25209 echo $ECHO_N "(cached) $ECHO_C" >&6
25210else
25211 cat >conftest.$ac_ext <<_ACEOF
25212/* confdefs.h. */
25213_ACEOF
25214cat confdefs.h >>conftest.$ac_ext
25215cat >>conftest.$ac_ext <<_ACEOF
25216/* end confdefs.h. */
ac1cb8d3
VS
25217/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25219#define remove innocuous_remove
25220
a848cd7e
SC
25221/* System header to define __stub macros and hopefully few prototypes,
25222 which can conflict with char remove (); below.
25223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25224 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25225
a848cd7e
SC
25226#ifdef __STDC__
25227# include <limits.h>
25228#else
25229# include <assert.h>
25230#endif
ac1cb8d3
VS
25231
25232#undef remove
25233
a848cd7e
SC
25234/* Override any gcc2 internal prototype to avoid an error. */
25235#ifdef __cplusplus
25236extern "C"
25237{
25238#endif
25239/* We use char because int might match the return type of a gcc2
25240 builtin and then its argument prototype would still apply. */
25241char remove ();
25242/* The GNU C library defines this for functions which it implements
25243 to always fail with ENOSYS. Some functions are actually named
25244 something starting with __ and the normal name is an alias. */
25245#if defined (__stub_remove) || defined (__stub___remove)
25246choke me
25247#else
25248char (*f) () = remove;
25249#endif
25250#ifdef __cplusplus
25251}
25252#endif
25253
25254int
25255main ()
25256{
25257return f != remove;
25258 ;
25259 return 0;
25260}
25261_ACEOF
25262rm -f conftest.$ac_objext conftest$ac_exeext
25263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25264 (eval $ac_link) 2>conftest.er1
a848cd7e 25265 ac_status=$?
ac1cb8d3
VS
25266 grep -v '^ *+' conftest.er1 >conftest.err
25267 rm -f conftest.er1
25268 cat conftest.err >&5
a848cd7e
SC
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } &&
5f652d0d
VS
25271 { ac_try='test -z "$ac_c_werror_flag"
25272 || test ! -s conftest.err'
ac1cb8d3
VS
25273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25274 (eval $ac_try) 2>&5
25275 ac_status=$?
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); }; } &&
25278 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25284 ac_cv_func_remove=yes
25285else
25286 echo "$as_me: failed program was:" >&5
25287sed 's/^/| /' conftest.$ac_ext >&5
25288
25289ac_cv_func_remove=no
25290fi
ac1cb8d3
VS
25291rm -f conftest.err conftest.$ac_objext \
25292 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25293fi
25294echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25295echo "${ECHO_T}$ac_cv_func_remove" >&6
25296
25297 if test $ac_cv_func_remove = no; then
25298 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25299echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25300if test "${ac_cv_lib_posix_remove+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25302else
25303 ac_check_lib_save_LIBS=$LIBS
25304LIBS="-lposix $LIBS"
25305cat >conftest.$ac_ext <<_ACEOF
25306/* confdefs.h. */
25307_ACEOF
25308cat confdefs.h >>conftest.$ac_ext
25309cat >>conftest.$ac_ext <<_ACEOF
25310/* end confdefs.h. */
25311
25312/* Override any gcc2 internal prototype to avoid an error. */
25313#ifdef __cplusplus
25314extern "C"
25315#endif
25316/* We use char because int might match the return type of a gcc2
25317 builtin and then its argument prototype would still apply. */
25318char remove ();
25319int
25320main ()
25321{
25322remove ();
25323 ;
25324 return 0;
25325}
25326_ACEOF
25327rm -f conftest.$ac_objext conftest$ac_exeext
25328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25329 (eval $ac_link) 2>conftest.er1
a848cd7e 25330 ac_status=$?
ac1cb8d3
VS
25331 grep -v '^ *+' conftest.er1 >conftest.err
25332 rm -f conftest.er1
25333 cat conftest.err >&5
a848cd7e
SC
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); } &&
5f652d0d
VS
25336 { ac_try='test -z "$ac_c_werror_flag"
25337 || test ! -s conftest.err'
ac1cb8d3
VS
25338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25339 (eval $ac_try) 2>&5
25340 ac_status=$?
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; }; then
25349 ac_cv_lib_posix_remove=yes
25350else
25351 echo "$as_me: failed program was:" >&5
25352sed 's/^/| /' conftest.$ac_ext >&5
25353
25354ac_cv_lib_posix_remove=no
25355fi
ac1cb8d3
VS
25356rm -f conftest.err conftest.$ac_objext \
25357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25358LIBS=$ac_check_lib_save_LIBS
25359fi
25360echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25361echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25362if test $ac_cv_lib_posix_remove = yes; then
25363 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25364fi
25365
25366 fi
25367
25368 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25369 echo "$as_me:$LINENO: checking for shmat" >&5
25370echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25371if test "${ac_cv_func_shmat+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25373else
25374 cat >conftest.$ac_ext <<_ACEOF
25375/* confdefs.h. */
25376_ACEOF
25377cat confdefs.h >>conftest.$ac_ext
25378cat >>conftest.$ac_ext <<_ACEOF
25379/* end confdefs.h. */
ac1cb8d3
VS
25380/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25382#define shmat innocuous_shmat
25383
a848cd7e
SC
25384/* System header to define __stub macros and hopefully few prototypes,
25385 which can conflict with char shmat (); below.
25386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25387 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25388
a848cd7e
SC
25389#ifdef __STDC__
25390# include <limits.h>
25391#else
25392# include <assert.h>
25393#endif
ac1cb8d3
VS
25394
25395#undef shmat
25396
a848cd7e
SC
25397/* Override any gcc2 internal prototype to avoid an error. */
25398#ifdef __cplusplus
25399extern "C"
25400{
25401#endif
25402/* We use char because int might match the return type of a gcc2
25403 builtin and then its argument prototype would still apply. */
25404char shmat ();
25405/* The GNU C library defines this for functions which it implements
25406 to always fail with ENOSYS. Some functions are actually named
25407 something starting with __ and the normal name is an alias. */
25408#if defined (__stub_shmat) || defined (__stub___shmat)
25409choke me
25410#else
25411char (*f) () = shmat;
25412#endif
25413#ifdef __cplusplus
25414}
25415#endif
25416
25417int
25418main ()
25419{
25420return f != shmat;
25421 ;
25422 return 0;
25423}
25424_ACEOF
25425rm -f conftest.$ac_objext conftest$ac_exeext
25426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25427 (eval $ac_link) 2>conftest.er1
a848cd7e 25428 ac_status=$?
ac1cb8d3
VS
25429 grep -v '^ *+' conftest.er1 >conftest.err
25430 rm -f conftest.er1
25431 cat conftest.err >&5
a848cd7e
SC
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } &&
5f652d0d
VS
25434 { ac_try='test -z "$ac_c_werror_flag"
25435 || test ! -s conftest.err'
ac1cb8d3
VS
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; } &&
25441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446 (exit $ac_status); }; }; then
25447 ac_cv_func_shmat=yes
25448else
25449 echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452ac_cv_func_shmat=no
25453fi
ac1cb8d3
VS
25454rm -f conftest.err conftest.$ac_objext \
25455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25456fi
25457echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25458echo "${ECHO_T}$ac_cv_func_shmat" >&6
25459
25460 if test $ac_cv_func_shmat = no; then
25461 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25462echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25463if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25464 echo $ECHO_N "(cached) $ECHO_C" >&6
25465else
25466 ac_check_lib_save_LIBS=$LIBS
25467LIBS="-lipc $LIBS"
25468cat >conftest.$ac_ext <<_ACEOF
25469/* confdefs.h. */
25470_ACEOF
25471cat confdefs.h >>conftest.$ac_ext
25472cat >>conftest.$ac_ext <<_ACEOF
25473/* end confdefs.h. */
25474
25475/* Override any gcc2 internal prototype to avoid an error. */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479/* We use char because int might match the return type of a gcc2
25480 builtin and then its argument prototype would still apply. */
25481char shmat ();
25482int
25483main ()
25484{
25485shmat ();
25486 ;
25487 return 0;
25488}
25489_ACEOF
25490rm -f conftest.$ac_objext conftest$ac_exeext
25491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25492 (eval $ac_link) 2>conftest.er1
a848cd7e 25493 ac_status=$?
ac1cb8d3
VS
25494 grep -v '^ *+' conftest.er1 >conftest.err
25495 rm -f conftest.er1
25496 cat conftest.err >&5
a848cd7e
SC
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); } &&
5f652d0d
VS
25499 { ac_try='test -z "$ac_c_werror_flag"
25500 || test ! -s conftest.err'
ac1cb8d3
VS
25501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505 (exit $ac_status); }; } &&
25506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 ac_cv_lib_ipc_shmat=yes
25513else
25514 echo "$as_me: failed program was:" >&5
25515sed 's/^/| /' conftest.$ac_ext >&5
25516
25517ac_cv_lib_ipc_shmat=no
25518fi
ac1cb8d3
VS
25519rm -f conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25521LIBS=$ac_check_lib_save_LIBS
25522fi
25523echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25524echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25525if test $ac_cv_lib_ipc_shmat = yes; then
25526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25527fi
25528
25529 fi
25530 fi
25531
25532 # Check for libraries that X11R6 Xt/Xaw programs need.
25533 ac_save_LDFLAGS=$LDFLAGS
25534 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25535 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25536 # check for ICE first), but we must link in the order -lSM -lICE or
25537 # we get undefined symbols. So assume we have SM if we have ICE.
25538 # These have to be linked with before -lX11, unlike the other
25539 # libraries we check for below, so use a different variable.
25540 # John Interrante, Karl Berry
25541 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25542echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25543if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25544 echo $ECHO_N "(cached) $ECHO_C" >&6
25545else
25546 ac_check_lib_save_LIBS=$LIBS
25547LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25548cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h. */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h. */
25554
25555/* Override any gcc2 internal prototype to avoid an error. */
25556#ifdef __cplusplus
25557extern "C"
25558#endif
25559/* We use char because int might match the return type of a gcc2
25560 builtin and then its argument prototype would still apply. */
25561char IceConnectionNumber ();
25562int
25563main ()
25564{
25565IceConnectionNumber ();
25566 ;
25567 return 0;
25568}
25569_ACEOF
25570rm -f conftest.$ac_objext conftest$ac_exeext
25571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25572 (eval $ac_link) 2>conftest.er1
a848cd7e 25573 ac_status=$?
ac1cb8d3
VS
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
a848cd7e
SC
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } &&
5f652d0d
VS
25579 { ac_try='test -z "$ac_c_werror_flag"
25580 || test ! -s conftest.err'
ac1cb8d3
VS
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; } &&
25586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
25592 ac_cv_lib_ICE_IceConnectionNumber=yes
25593else
25594 echo "$as_me: failed program was:" >&5
25595sed 's/^/| /' conftest.$ac_ext >&5
25596
25597ac_cv_lib_ICE_IceConnectionNumber=no
25598fi
ac1cb8d3
VS
25599rm -f conftest.err conftest.$ac_objext \
25600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25601LIBS=$ac_check_lib_save_LIBS
25602fi
25603echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25604echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25605if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25606 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25607fi
25608
25609 LDFLAGS=$ac_save_LDFLAGS
25610
25611fi
25612
25613
25614 if test "$no_x" = "yes"; then
25615 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25616echo "$as_me: error: X11 not found" >&2;}
25617 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25618 fi
25619
74b84332
VS
25620 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25621 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25622 AFMINSTALL=afminstall
25623 COMPILED_X_PROGRAM=0
25624
74b84332
VS
25625 fi
25626
25627 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25628 if test "$wxUSE_NANOX" = "yes"; then
25629 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25630echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25631 if test "x$MICROWIN" = x ; then
25632 echo "$as_me:$LINENO: result: not found" >&5
25633echo "${ECHO_T}not found" >&6
25634 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25635echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25636 { (exit 1); exit 1; }; }
25637 else
25638 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25639echo "${ECHO_T}$MICROWIN" >&6
25640 cat >>confdefs.h <<\_ACEOF
25641#define wxUSE_NANOX 1
25642_ACEOF
25643
25644 fi
25645 fi
25646
25647 if test "$wxUSE_UNICODE" = "yes"; then
25648
25649 succeeded=no
25650
25651 if test -z "$PKG_CONFIG"; then
25652 # Extract the first word of "pkg-config", so it can be a program name with args.
25653set dummy pkg-config; ac_word=$2
25654echo "$as_me:$LINENO: checking for $ac_word" >&5
25655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25656if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25657 echo $ECHO_N "(cached) $ECHO_C" >&6
25658else
25659 case $PKG_CONFIG in
25660 [\\/]* | ?:[\\/]*)
25661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25662 ;;
25663 *)
25664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25665for as_dir in $PATH
25666do
25667 IFS=$as_save_IFS
25668 test -z "$as_dir" && as_dir=.
25669 for ac_exec_ext in '' $ac_executable_extensions; do
25670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25673 break 2
25674 fi
25675done
25676done
25677
25678 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25679 ;;
25680esac
25681fi
25682PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25683
25684if test -n "$PKG_CONFIG"; then
25685 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25686echo "${ECHO_T}$PKG_CONFIG" >&6
25687else
25688 echo "$as_me:$LINENO: result: no" >&5
25689echo "${ECHO_T}no" >&6
25690fi
25691
25692 fi
25693
25694 if test "$PKG_CONFIG" = "no" ; then
25695 echo "*** The pkg-config script could not be found. Make sure it is"
25696 echo "*** in your path, or set the PKG_CONFIG environment variable"
25697 echo "*** to the full path to pkg-config."
25698 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25699 else
25700 PKG_CONFIG_MIN_VERSION=0.9.0
25701 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25702 echo "$as_me:$LINENO: checking for pangox" >&5
25703echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25704
25705 if $PKG_CONFIG --exists "pangox" ; then
25706 echo "$as_me:$LINENO: result: yes" >&5
25707echo "${ECHO_T}yes" >&6
25708 succeeded=yes
25709
25710 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25711echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25712 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25713 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25714echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25715
25716 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25717echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25718 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25719 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25720echo "${ECHO_T}$PANGOX_LIBS" >&6
25721 else
25722 PANGOX_CFLAGS=""
25723 PANGOX_LIBS=""
25724 ## If we have a custom action on failure, don't print errors, but
25725 ## do set a variable so people can do so.
25726 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25727
25728 fi
25729
25730
25731
25732 else
25733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25735 fi
25736 fi
25737
25738 if test $succeeded = yes; then
25739
25740 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25741 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25742
25743 else
25744
25745 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25746echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25747 { (exit 1); exit 1; }; }
25748
25749
25750 fi
25751
25752
25753 succeeded=no
25754
25755 if test -z "$PKG_CONFIG"; then
25756 # Extract the first word of "pkg-config", so it can be a program name with args.
25757set dummy pkg-config; ac_word=$2
25758echo "$as_me:$LINENO: checking for $ac_word" >&5
25759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25760if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762else
25763 case $PKG_CONFIG in
25764 [\\/]* | ?:[\\/]*)
25765 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25766 ;;
25767 *)
25768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25769for as_dir in $PATH
25770do
25771 IFS=$as_save_IFS
25772 test -z "$as_dir" && as_dir=.
25773 for ac_exec_ext in '' $ac_executable_extensions; do
25774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25775 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25777 break 2
25778 fi
25779done
25780done
25781
25782 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25783 ;;
25784esac
25785fi
25786PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25787
25788if test -n "$PKG_CONFIG"; then
25789 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25790echo "${ECHO_T}$PKG_CONFIG" >&6
25791else
25792 echo "$as_me:$LINENO: result: no" >&5
25793echo "${ECHO_T}no" >&6
25794fi
25795
25796 fi
25797
25798 if test "$PKG_CONFIG" = "no" ; then
25799 echo "*** The pkg-config script could not be found. Make sure it is"
25800 echo "*** in your path, or set the PKG_CONFIG environment variable"
25801 echo "*** to the full path to pkg-config."
25802 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25803 else
25804 PKG_CONFIG_MIN_VERSION=0.9.0
25805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25806 echo "$as_me:$LINENO: checking for pangoft2" >&5
25807echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25808
25809 if $PKG_CONFIG --exists "pangoft2" ; then
25810 echo "$as_me:$LINENO: result: yes" >&5
25811echo "${ECHO_T}yes" >&6
25812 succeeded=yes
25813
25814 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25815echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25816 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25817 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25818echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25819
25820 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25821echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25822 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25823 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25824echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25825 else
25826 PANGOFT2_CFLAGS=""
25827 PANGOFT2_LIBS=""
25828 ## If we have a custom action on failure, don't print errors, but
25829 ## do set a variable so people can do so.
25830 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25831
25832 fi
25833
25834
25835
25836 else
25837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25839 fi
25840 fi
25841
25842 if test $succeeded = yes; then
25843
25844 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25845 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25846
25847 else
25848
25849 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25850echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25851 wxUSE_PRINTING_ARCHITECTURE="no"
25852
25853
25854 fi
25855
25856
25857 succeeded=no
25858
25859 if test -z "$PKG_CONFIG"; then
25860 # Extract the first word of "pkg-config", so it can be a program name with args.
25861set dummy pkg-config; ac_word=$2
25862echo "$as_me:$LINENO: checking for $ac_word" >&5
25863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25864if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25866else
25867 case $PKG_CONFIG in
25868 [\\/]* | ?:[\\/]*)
25869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25870 ;;
25871 *)
25872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25873for as_dir in $PATH
25874do
25875 IFS=$as_save_IFS
25876 test -z "$as_dir" && as_dir=.
25877 for ac_exec_ext in '' $ac_executable_extensions; do
25878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25881 break 2
25882 fi
25883done
25884done
25885
25886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25887 ;;
25888esac
25889fi
25890PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25891
25892if test -n "$PKG_CONFIG"; then
25893 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25894echo "${ECHO_T}$PKG_CONFIG" >&6
25895else
25896 echo "$as_me:$LINENO: result: no" >&5
25897echo "${ECHO_T}no" >&6
25898fi
25899
25900 fi
25901
25902 if test "$PKG_CONFIG" = "no" ; then
25903 echo "*** The pkg-config script could not be found. Make sure it is"
25904 echo "*** in your path, or set the PKG_CONFIG environment variable"
25905 echo "*** to the full path to pkg-config."
25906 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25907 else
25908 PKG_CONFIG_MIN_VERSION=0.9.0
25909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25910 echo "$as_me:$LINENO: checking for pangoxft" >&5
25911echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25912
25913 if $PKG_CONFIG --exists "pangoxft" ; then
25914 echo "$as_me:$LINENO: result: yes" >&5
25915echo "${ECHO_T}yes" >&6
25916 succeeded=yes
25917
25918 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25919echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25920 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25921 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25922echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25923
25924 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25925echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25926 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25927 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25928echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25929 else
25930 PANGOXFT_CFLAGS=""
25931 PANGOXFT_LIBS=""
25932 ## If we have a custom action on failure, don't print errors, but
25933 ## do set a variable so people can do so.
25934 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25935
25936 fi
25937
25938
25939
25940 else
25941 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25942 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25943 fi
25944 fi
25945
25946 if test $succeeded = yes; then
25947
25948 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25949 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25950
25951 else
25952
25953 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25954echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25955
25956
25957 fi
25958
304205f1
VS
25959 save_CFLAGS="$CFLAGS"
25960 save_LIBS="$LIBS"
25961 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25962 LIBS="$LIBS $PANGOX_LIBS"
25963
25964for ac_func in pango_font_family_is_monospace
25965do
25966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25967echo "$as_me:$LINENO: checking for $ac_func" >&5
25968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25969if eval "test \"\${$as_ac_var+set}\" = set"; then
25970 echo $ECHO_N "(cached) $ECHO_C" >&6
25971else
25972 cat >conftest.$ac_ext <<_ACEOF
25973/* confdefs.h. */
25974_ACEOF
25975cat confdefs.h >>conftest.$ac_ext
25976cat >>conftest.$ac_ext <<_ACEOF
25977/* end confdefs.h. */
25978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25980#define $ac_func innocuous_$ac_func
25981
25982/* System header to define __stub macros and hopefully few prototypes,
25983 which can conflict with char $ac_func (); below.
25984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25985 <limits.h> exists even on freestanding compilers. */
25986
25987#ifdef __STDC__
25988# include <limits.h>
25989#else
25990# include <assert.h>
25991#endif
25992
25993#undef $ac_func
25994
25995/* Override any gcc2 internal prototype to avoid an error. */
25996#ifdef __cplusplus
25997extern "C"
25998{
25999#endif
26000/* We use char because int might match the return type of a gcc2
26001 builtin and then its argument prototype would still apply. */
26002char $ac_func ();
26003/* The GNU C library defines this for functions which it implements
26004 to always fail with ENOSYS. Some functions are actually named
26005 something starting with __ and the normal name is an alias. */
26006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26007choke me
26008#else
26009char (*f) () = $ac_func;
26010#endif
26011#ifdef __cplusplus
26012}
26013#endif
26014
26015int
26016main ()
26017{
26018return f != $ac_func;
26019 ;
26020 return 0;
26021}
26022_ACEOF
26023rm -f conftest.$ac_objext conftest$ac_exeext
26024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26025 (eval $ac_link) 2>conftest.er1
26026 ac_status=$?
26027 grep -v '^ *+' conftest.er1 >conftest.err
26028 rm -f conftest.er1
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
5f652d0d
VS
26032 { ac_try='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
304205f1
VS
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try='test -s conftest$ac_exeext'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26042 ac_status=$?
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 eval "$as_ac_var=yes"
26046else
26047 echo "$as_me: failed program was:" >&5
26048sed 's/^/| /' conftest.$ac_ext >&5
26049
26050eval "$as_ac_var=no"
26051fi
26052rm -f conftest.err conftest.$ac_objext \
26053 conftest$ac_exeext conftest.$ac_ext
26054fi
26055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26057if test `eval echo '${'$as_ac_var'}'` = yes; then
26058 cat >>confdefs.h <<_ACEOF
26059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26060_ACEOF
26061
26062fi
26063done
26064
26065 CFLAGS="$save_CFLAGS"
26066 LIBS="$save_LIBS"
a848cd7e
SC
26067 fi
26068
26069 wxUSE_UNIVERSAL="yes"
26070
26071 if test "$wxUSE_NANOX" = "yes"; then
26072 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26073 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"
26074 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26075 else
26076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26077 fi
26078
a848cd7e
SC
26079 TOOLKIT=X11
26080 GUIDIST=X11_DIST
26081 fi
26082
26083 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26084 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26085echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26086
74b84332
VS
26087ac_find_includes=
26088for ac_dir in $SEARCH_INCLUDE /usr/include;
26089 do
26090 if test -f "$ac_dir/Xm/Xm.h"; then
26091 ac_find_includes=$ac_dir
26092 break
26093 fi
26094 done
a848cd7e 26095
74b84332
VS
26096 if test "$ac_find_includes" != "" ; then
26097 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26098echo "${ECHO_T}found in $ac_find_includes" >&6
26099
26100 if test "x$ac_find_includes" = "x/usr/include"; then
26101 ac_path_to_include=""
26102 else
26103 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26104 result=$?
26105 if test $result = 0; then
26106 ac_path_to_include=""
26107 else
26108 ac_path_to_include=" -I$ac_find_includes"
26109 fi
a848cd7e
SC
26110 fi
26111
74b84332
VS
26112 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26113 else
26114 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
26120
74b84332
VS
26121 #include <Xm/Xm.h>
26122
a848cd7e
SC
26123int
26124main ()
26125{
26126
74b84332
VS
26127 int version;
26128 version = xmUseVersion;
26129
a848cd7e
SC
26130 ;
26131 return 0;
26132}
26133_ACEOF
74b84332
VS
26134rm -f conftest.$ac_objext
26135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26136 (eval $ac_compile) 2>conftest.er1
a848cd7e 26137 ac_status=$?
ac1cb8d3
VS
26138 grep -v '^ *+' conftest.er1 >conftest.err
26139 rm -f conftest.er1
26140 cat conftest.err >&5
a848cd7e
SC
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); } &&
5f652d0d
VS
26143 { ac_try='test -z "$ac_c_werror_flag"
26144 || test ! -s conftest.err'
ac1cb8d3
VS
26145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; } &&
74b84332 26150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; }; then
74b84332
VS
26156
26157 echo "$as_me:$LINENO: result: found in default search path" >&5
26158echo "${ECHO_T}found in default search path" >&6
26159 COMPILED_X_PROGRAM=1
26160
a848cd7e
SC
26161else
26162 echo "$as_me: failed program was:" >&5
26163sed 's/^/| /' conftest.$ac_ext >&5
26164
a848cd7e 26165
74b84332
VS
26166 echo "$as_me:$LINENO: result: no" >&5
26167echo "${ECHO_T}no" >&6
26168 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26169echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26170 { (exit 1); exit 1; }; }
a848cd7e 26171
a848cd7e 26172
a848cd7e 26173fi
74b84332
VS
26174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26175 fi
26176
26177 if test "$COMPILED_X_PROGRAM" = 0; then
26178 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26179echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26180
26181ac_find_libraries=
26182for ac_dir in $SEARCH_LIB /usr/lib;
26183 do
26184 for ac_extension in a so sl dylib; do
26185 if test -f "$ac_dir/libXm.$ac_extension"; then
26186 ac_find_libraries=$ac_dir
26187 break 2
a848cd7e 26188 fi
74b84332
VS
26189 done
26190 done
a848cd7e 26191
74b84332
VS
26192 if test "$ac_find_libraries" != "" ; then
26193 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26194echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26195
74b84332
VS
26196
26197 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26198 result=$?
26199 if test $result = 0; then
26200 ac_path_to_link=""
a848cd7e 26201 else
74b84332
VS
26202 ac_path_to_link=" -L$ac_find_libraries"
26203 fi
26204
26205 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26206 else
26207 save_CFLAGS=$CFLAGS
26208 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26209
26210 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26211/* confdefs.h. */
26212_ACEOF
26213cat confdefs.h >>conftest.$ac_ext
26214cat >>conftest.$ac_ext <<_ACEOF
26215/* end confdefs.h. */
26216
74b84332
VS
26217 #include <Xm/Xm.h>
26218
a848cd7e
SC
26219int
26220main ()
26221{
74b84332
VS
26222
26223 int version;
26224 version = xmUseVersion;
26225
a848cd7e
SC
26226 ;
26227 return 0;
26228}
26229_ACEOF
74b84332
VS
26230rm -f conftest.$ac_objext
26231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26232 (eval $ac_compile) 2>conftest.er1
a848cd7e 26233 ac_status=$?
ac1cb8d3
VS
26234 grep -v '^ *+' conftest.er1 >conftest.err
26235 rm -f conftest.er1
26236 cat conftest.err >&5
a848cd7e
SC
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
5f652d0d
VS
26239 { ac_try='test -z "$ac_c_werror_flag"
26240 || test ! -s conftest.err'
ac1cb8d3
VS
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
74b84332 26246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
74b84332
VS
26252
26253 echo "$as_me:$LINENO: result: found in default search path" >&5
26254echo "${ECHO_T}found in default search path" >&6
26255 COMPILED_X_PROGRAM=1
26256
a848cd7e
SC
26257else
26258 echo "$as_me: failed program was:" >&5
26259sed 's/^/| /' conftest.$ac_ext >&5
26260
74b84332
VS
26261
26262 echo "$as_me:$LINENO: result: no" >&5
26263echo "${ECHO_T}no" >&6
26264 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26265echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26266 { (exit 1); exit 1; }; }
26267
26268
26269fi
26270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26271
26272 CFLAGS=$save_CFLAGS
26273 fi
26274 fi
26275
26276 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26277echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26278 libp_link=""
26279 libsm_ice_link=""
26280 libs_found=0
26281 for libp in "" " -lXp"; do
26282 if test "$libs_found" = "0"; then
26283 for libsm_ice in "" " -lSM -lICE"; do
26284 if test "$libs_found" = "0"; then
26285 save_LIBS="$LIBS"
26286 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26287 save_CFLAGS=$CFLAGS
26288 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26289
26290 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26291/* confdefs.h. */
26292_ACEOF
26293cat confdefs.h >>conftest.$ac_ext
26294cat >>conftest.$ac_ext <<_ACEOF
26295/* end confdefs.h. */
26296
74b84332
VS
26297 #include <Xm/Xm.h>
26298 #include <Xm/List.h>
26299
a848cd7e
SC
26300int
26301main ()
26302{
74b84332
VS
26303
26304 XmString string = NULL;
26305 Widget w = NULL;
26306 int position = 0;
26307 XmListAddItem(w, string, position);
26308
a848cd7e
SC
26309 ;
26310 return 0;
26311}
26312_ACEOF
26313rm -f conftest.$ac_objext conftest$ac_exeext
26314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26315 (eval $ac_link) 2>conftest.er1
a848cd7e 26316 ac_status=$?
ac1cb8d3
VS
26317 grep -v '^ *+' conftest.er1 >conftest.err
26318 rm -f conftest.er1
26319 cat conftest.err >&5
a848cd7e
SC
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } &&
5f652d0d
VS
26322 { ac_try='test -z "$ac_c_werror_flag"
26323 || test ! -s conftest.err'
ac1cb8d3
VS
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; } &&
26329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331 (eval $ac_try) 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); }; }; then
26335
26336 libp_link="$libp"
26337 libsm_ice_link="$libsm_ice"
26338 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26339echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26340 libs_found=1
26341
26342else
26343 echo "$as_me: failed program was:" >&5
26344sed 's/^/| /' conftest.$ac_ext >&5
26345
26346
26347
26348fi
ac1cb8d3
VS
26349rm -f conftest.err conftest.$ac_objext \
26350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26351
26352 LIBS="$save_LIBS"
26353 CFLAGS=$save_CFLAGS
26354 fi
26355 done
26356 fi
26357 done
26358
26359 if test "$libs_found" = "0"; then
26360 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26361echo "${ECHO_T}can't find the right libraries" >&6
26362 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26363echo "$as_me: error: can't link a simple motif program" >&2;}
26364 { (exit 1); exit 1; }; }
26365 fi
26366
26367 save_CFLAGS=$CFLAGS
26368 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26369 echo "$as_me:$LINENO: checking for Motif 2" >&5
26370echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26371 cat >conftest.$ac_ext <<_ACEOF
26372/* confdefs.h. */
26373_ACEOF
26374cat confdefs.h >>conftest.$ac_ext
26375cat >>conftest.$ac_ext <<_ACEOF
26376/* end confdefs.h. */
26377
26378 #include <Xm/Xm.h>
26379
26380int
26381main ()
26382{
26383
26384 #if XmVersion < 2000
26385 #error "Not Motif 2"
26386 #endif
26387
26388 ;
26389 return 0;
26390}
26391_ACEOF
26392rm -f conftest.$ac_objext
26393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26394 (eval $ac_compile) 2>conftest.er1
a848cd7e 26395 ac_status=$?
ac1cb8d3
VS
26396 grep -v '^ *+' conftest.er1 >conftest.err
26397 rm -f conftest.er1
26398 cat conftest.err >&5
a848cd7e
SC
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } &&
5f652d0d
VS
26401 { ac_try='test -z "$ac_c_werror_flag"
26402 || test ! -s conftest.err'
ac1cb8d3
VS
26403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404 (eval $ac_try) 2>&5
26405 ac_status=$?
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); }; } &&
26408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); }; }; then
26414
26415 cat >>confdefs.h <<\_ACEOF
26416#define __WXMOTIF20__ 1
26417_ACEOF
26418
26419 echo "$as_me:$LINENO: result: found" >&5
26420echo "${ECHO_T}found" >&6
26421
26422else
26423 echo "$as_me: failed program was:" >&5
26424sed 's/^/| /' conftest.$ac_ext >&5
26425
26426
26427 cat >>confdefs.h <<\_ACEOF
26428#define __WXMOTIF20__ 0
26429_ACEOF
26430
26431 echo "$as_me:$LINENO: result: not found" >&5
26432echo "${ECHO_T}not found" >&6
26433
26434fi
ac1cb8d3 26435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26436 CFLAGS=$save_CFLAGS
26437
26438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26439 TOOLKIT=MOTIF
26440 GUIDIST=MOTIF_DIST
26441 fi
26442
74b84332 26443 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26444 if test "$wxUSE_LIBXPM" = "sys"; then
26445 echo "$as_me:$LINENO: checking for Xpm library" >&5
26446echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26447
26448ac_find_libraries=
26449for ac_dir in $SEARCH_LIB /usr/lib;
26450 do
26451 for ac_extension in a so sl dylib; do
26452 if test -f "$ac_dir/libXpm.$ac_extension"; then
26453 ac_find_libraries=$ac_dir
26454 break 2
26455 fi
26456 done
26457 done
26458
26459 if test "$ac_find_libraries" != "" ; then
26460
26461 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26462 result=$?
26463 if test $result = 0; then
26464 ac_path_to_link=""
26465 else
26466 ac_path_to_link=" -L$ac_find_libraries"
26467 fi
26468
26469 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26470 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26471echo "${ECHO_T}found at $ac_find_libraries" >&6
26472
26473 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26474echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26475if test "${wx_cv_x11_xpm_h+set}" = set; then
26476 echo $ECHO_N "(cached) $ECHO_C" >&6
26477else
26478
26479 save_CFLAGS=$CFLAGS
26480 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26481
26482 cat >conftest.$ac_ext <<_ACEOF
26483/* confdefs.h. */
26484_ACEOF
26485cat confdefs.h >>conftest.$ac_ext
26486cat >>conftest.$ac_ext <<_ACEOF
26487/* end confdefs.h. */
26488
26489 #include <X11/xpm.h>
26490
26491int
26492main ()
26493{
26494
26495 int version;
26496 version = XpmLibraryVersion();
26497
26498 ;
26499 return 0;
26500}
26501_ACEOF
26502rm -f conftest.$ac_objext
26503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26504 (eval $ac_compile) 2>conftest.er1
a848cd7e 26505 ac_status=$?
ac1cb8d3
VS
26506 grep -v '^ *+' conftest.er1 >conftest.err
26507 rm -f conftest.er1
26508 cat conftest.err >&5
a848cd7e
SC
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); } &&
5f652d0d
VS
26511 { ac_try='test -z "$ac_c_werror_flag"
26512 || test ! -s conftest.err'
ac1cb8d3
VS
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; } &&
26518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26520 (eval $ac_try) 2>&5
26521 ac_status=$?
26522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523 (exit $ac_status); }; }; then
26524 wx_cv_x11_xpm_h=yes
26525else
26526 echo "$as_me: failed program was:" >&5
26527sed 's/^/| /' conftest.$ac_ext >&5
26528
26529wx_cv_x11_xpm_h=no
26530
26531fi
ac1cb8d3 26532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26533
26534 CFLAGS=$save_CFLAGS
26535
26536
26537fi
26538echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26539echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26540
26541 if test $wx_cv_x11_xpm_h = "yes"; then
26542 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26543 cat >>confdefs.h <<\_ACEOF
26544#define wxHAVE_LIB_XPM 1
26545_ACEOF
26546
26547 else
26548 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26549echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26550 fi
26551 fi
26552
26553 fi
26554
26555 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26556echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26557if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26558 echo $ECHO_N "(cached) $ECHO_C" >&6
26559else
26560 ac_check_lib_save_LIBS=$LIBS
26561LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26562cat >conftest.$ac_ext <<_ACEOF
26563/* confdefs.h. */
26564_ACEOF
26565cat confdefs.h >>conftest.$ac_ext
26566cat >>conftest.$ac_ext <<_ACEOF
26567/* end confdefs.h. */
26568
26569/* Override any gcc2 internal prototype to avoid an error. */
26570#ifdef __cplusplus
26571extern "C"
26572#endif
26573/* We use char because int might match the return type of a gcc2
26574 builtin and then its argument prototype would still apply. */
26575char XShapeQueryExtension ();
26576int
26577main ()
26578{
26579XShapeQueryExtension ();
26580 ;
26581 return 0;
26582}
26583_ACEOF
26584rm -f conftest.$ac_objext conftest$ac_exeext
26585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26586 (eval $ac_link) 2>conftest.er1
a848cd7e 26587 ac_status=$?
ac1cb8d3
VS
26588 grep -v '^ *+' conftest.er1 >conftest.err
26589 rm -f conftest.er1
26590 cat conftest.err >&5
a848cd7e
SC
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } &&
5f652d0d
VS
26593 { ac_try='test -z "$ac_c_werror_flag"
26594 || test ! -s conftest.err'
ac1cb8d3
VS
26595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26596 (eval $ac_try) 2>&5
26597 ac_status=$?
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); }; } &&
26600 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602 (eval $ac_try) 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 ac_cv_lib_Xext_XShapeQueryExtension=yes
26607else
26608 echo "$as_me: failed program was:" >&5
26609sed 's/^/| /' conftest.$ac_ext >&5
26610
26611ac_cv_lib_Xext_XShapeQueryExtension=no
26612fi
ac1cb8d3
VS
26613rm -f conftest.err conftest.$ac_objext \
26614 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26615LIBS=$ac_check_lib_save_LIBS
26616fi
26617echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26618echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26619if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26620
26621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26622 wxHAVE_XEXT_LIB=1
26623
26624fi
26625
26626
26627 if test "$wxHAVE_XEXT_LIB" = 1; then
26628 save_CFLAGS="$CFLAGS"
26629 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26630
26631 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26632echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26633 cat >conftest.$ac_ext <<_ACEOF
26634/* confdefs.h. */
26635_ACEOF
26636cat confdefs.h >>conftest.$ac_ext
26637cat >>conftest.$ac_ext <<_ACEOF
26638/* end confdefs.h. */
26639
26640 #include <X11/Xlib.h>
26641 #include <X11/extensions/shape.h>
26642
26643int
26644main ()
26645{
26646
26647 int dummy1, dummy2;
26648 XShapeQueryExtension((Display*)NULL,
26649 (int*)NULL, (int*)NULL);
26650
26651 ;
26652 return 0;
26653}
26654_ACEOF
26655rm -f conftest.$ac_objext
26656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26657 (eval $ac_compile) 2>conftest.er1
a848cd7e 26658 ac_status=$?
ac1cb8d3
VS
26659 grep -v '^ *+' conftest.er1 >conftest.err
26660 rm -f conftest.er1
26661 cat conftest.err >&5
a848cd7e
SC
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } &&
5f652d0d
VS
26664 { ac_try='test -z "$ac_c_werror_flag"
26665 || test ! -s conftest.err'
ac1cb8d3
VS
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; } &&
26671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26673 (eval $ac_try) 2>&5
26674 ac_status=$?
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); }; }; then
26677
26678 cat >>confdefs.h <<\_ACEOF
26679#define HAVE_XSHAPE 1
26680_ACEOF
26681
26682 echo "$as_me:$LINENO: result: found" >&5
26683echo "${ECHO_T}found" >&6
26684
26685else
26686 echo "$as_me: failed program was:" >&5
26687sed 's/^/| /' conftest.$ac_ext >&5
26688
26689
26690 echo "$as_me:$LINENO: result: not found" >&5
26691echo "${ECHO_T}not found" >&6
26692
26693fi
ac1cb8d3 26694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26695 CFLAGS="$save_CFLAGS"
26696
26697 fi
26698 fi
26699
26700 if test "$wxUSE_MAC" = 1; then
26701 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26702echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26703 if test "$GCC" = yes; then
26704 echo "$as_me:$LINENO: result: gcc" >&5
26705echo "${ECHO_T}gcc" >&6
26706 CPPFLAGS_PASCAL="-fpascal-strings"
26707 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26708 echo "$as_me:$LINENO: result: xlc" >&5
26709echo "${ECHO_T}xlc" >&6
26710 CPPFLAGS_PASCAL="-qmacpstr"
26711 else
26712 echo "$as_me:$LINENO: result: none" >&5
26713echo "${ECHO_T}none" >&6
26714 fi
26715
1e9e8aba
DE
26716 if test "x$wxUSE_UNIX" = "xyes"; then
26717 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26718 else
26719 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26720 fi
a848cd7e 26721
a848cd7e
SC
26722 TOOLKIT=MAC
26723 GUIDIST=MACX_DIST
dd21ced8 26724 WXBASEPORT="_carbon"
a848cd7e
SC
26725 fi
26726
26727 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26728 TOOLKIT=COCOA
26729 GUIDIST=COCOA_DIST
26730 fi
26731
26732 if test "$wxUSE_PM" = 1; then
26733 TOOLKIT=PM
de59c161
RD
26734 GUIDIST=PM_DIST
26735 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26736echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26737if test "${wx_cv_spbcdata+set}" = set; then
26738 echo $ECHO_N "(cached) $ECHO_C" >&6
26739else
26740
26741 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26742/* confdefs.h. */
26743_ACEOF
26744cat confdefs.h >>conftest.$ac_ext
26745cat >>conftest.$ac_ext <<_ACEOF
26746/* end confdefs.h. */
26747
26748 #define INCL_PM
26749 #include <os2.h>
26750
26751int
26752main ()
26753{
26754
26755 SPBCDATA test;
26756
26757 ;
26758 return 0;
26759}
26760_ACEOF
26761rm -f conftest.$ac_objext
26762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26763 (eval $ac_compile) 2>conftest.er1
de59c161 26764 ac_status=$?
ac1cb8d3
VS
26765 grep -v '^ *+' conftest.er1 >conftest.err
26766 rm -f conftest.er1
26767 cat conftest.err >&5
de59c161
RD
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
5f652d0d
VS
26770 { ac_try='test -z "$ac_c_werror_flag"
26771 || test ! -s conftest.err'
ac1cb8d3
VS
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } &&
26777 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; }; then
26783 wx_cv_spbcdata=yes
26784else
26785 echo "$as_me: failed program was:" >&5
26786sed 's/^/| /' conftest.$ac_ext >&5
26787
26788wx_cv_spbcdata=no
26789
26790fi
ac1cb8d3 26791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26792
26793
26794fi
26795echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26796echo "${ECHO_T}$wx_cv_spbcdata" >&6
26797
26798 if test $wx_cv_spbcdata = "yes"; then
26799 cat >>confdefs.h <<\_ACEOF
26800#define HAVE_SPBCDATA 1
26801_ACEOF
26802
26803 fi
a848cd7e
SC
26804 fi
26805
26806 if test "$TOOLKIT" = "PM" ; then
26807 TOOLKIT_DIR="os2"
26808 else
26809 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26810 fi
26811
a848cd7e 26812 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26813 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26814 WIDGET_SET=univ
a848cd7e
SC
26815 fi
26816
26817 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26818 DISTDIR="wx\$(TOOLKIT)"
26819else
26820 USE_GUI=0
26821
26822 TOOLKIT_DIR="base"
26823
26824 if test "$USE_WIN32" = 1 ; then
a848cd7e 26825 TOOLKIT="MSW"
a848cd7e
SC
26826 fi
26827
a848cd7e
SC
26828 GUIDIST="BASE_DIST"
26829 DISTDIR="wxBase"
26830fi
26831
26832
26833
26834
26835IODBC_C_SRC=""
26836
26837
26838if test "$TOOLKIT" != "MSW" ; then
26839
26840 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26841
26842 if test "${ac_cv_header_sql_h+set}" = set; then
26843 echo "$as_me:$LINENO: checking for sql.h" >&5
26844echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26845if test "${ac_cv_header_sql_h+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26847fi
26848echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26849echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26850else
26851 # Is the header compilable?
26852echo "$as_me:$LINENO: checking sql.h usability" >&5
26853echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26854cat >conftest.$ac_ext <<_ACEOF
26855/* confdefs.h. */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h. */
26860$ac_includes_default
26861#include <sql.h>
26862_ACEOF
26863rm -f conftest.$ac_objext
26864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26865 (eval $ac_compile) 2>conftest.er1
a848cd7e 26866 ac_status=$?
ac1cb8d3
VS
26867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
a848cd7e
SC
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
5f652d0d
VS
26872 { ac_try='test -z "$ac_c_werror_flag"
26873 || test ! -s conftest.err'
ac1cb8d3
VS
26874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26875 (eval $ac_try) 2>&5
26876 ac_status=$?
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; } &&
26879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); }; }; then
26885 ac_header_compiler=yes
26886else
26887 echo "$as_me: failed program was:" >&5
26888sed 's/^/| /' conftest.$ac_ext >&5
26889
26890ac_header_compiler=no
26891fi
ac1cb8d3 26892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26894echo "${ECHO_T}$ac_header_compiler" >&6
26895
26896# Is the header present?
26897echo "$as_me:$LINENO: checking sql.h presence" >&5
26898echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26899cat >conftest.$ac_ext <<_ACEOF
26900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
26905#include <sql.h>
26906_ACEOF
26907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26909 ac_status=$?
26910 grep -v '^ *+' conftest.er1 >conftest.err
26911 rm -f conftest.er1
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } >/dev/null; then
26915 if test -s conftest.err; then
26916 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26918 else
26919 ac_cpp_err=
26920 fi
26921else
26922 ac_cpp_err=yes
26923fi
26924if test -z "$ac_cpp_err"; then
26925 ac_header_preproc=yes
26926else
26927 echo "$as_me: failed program was:" >&5
26928sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 ac_header_preproc=no
26931fi
26932rm -f conftest.err conftest.$ac_ext
26933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26934echo "${ECHO_T}$ac_header_preproc" >&6
26935
26936# So? What about this header?
ac1cb8d3
VS
26937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26938 yes:no: )
a848cd7e
SC
26939 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26940echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26941 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26942echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26943 ac_header_preproc=yes
a848cd7e 26944 ;;
ac1cb8d3 26945 no:yes:* )
a848cd7e
SC
26946 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26947echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26948 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26949echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26951echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26953echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26954 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26955echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26956 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26957echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26958 (
26959 cat <<\_ASBOX
ac1cb8d3
VS
26960## ----------------------------------------- ##
26961## Report this to wx-dev@lists.wxwidgets.org ##
26962## ----------------------------------------- ##
a848cd7e
SC
26963_ASBOX
26964 ) |
26965 sed "s/^/$as_me: WARNING: /" >&2
26966 ;;
26967esac
26968echo "$as_me:$LINENO: checking for sql.h" >&5
26969echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26970if test "${ac_cv_header_sql_h+set}" = set; then
26971 echo $ECHO_N "(cached) $ECHO_C" >&6
26972else
26973 ac_cv_header_sql_h=$ac_header_preproc
26974fi
26975echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26976echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26977
26978fi
26979if test $ac_cv_header_sql_h = yes; then
26980 found_sql_h=1
26981fi
26982
26983
26984 if test "x$found_sql_h" = "x1" ; then
26985 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26986echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26987if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26989else
26990 ac_check_lib_save_LIBS=$LIBS
26991LIBS="-liodbc $LIBS"
26992cat >conftest.$ac_ext <<_ACEOF
26993/* confdefs.h. */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h. */
26998
26999/* Override any gcc2 internal prototype to avoid an error. */
27000#ifdef __cplusplus
27001extern "C"
27002#endif
27003/* We use char because int might match the return type of a gcc2
27004 builtin and then its argument prototype would still apply. */
27005char SQLAllocEnv ();
27006int
27007main ()
27008{
27009SQLAllocEnv ();
27010 ;
27011 return 0;
27012}
27013_ACEOF
27014rm -f conftest.$ac_objext conftest$ac_exeext
27015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27016 (eval $ac_link) 2>conftest.er1
a848cd7e 27017 ac_status=$?
ac1cb8d3
VS
27018 grep -v '^ *+' conftest.er1 >conftest.err
27019 rm -f conftest.er1
27020 cat conftest.err >&5
a848cd7e
SC
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } &&
5f652d0d
VS
27023 { ac_try='test -z "$ac_c_werror_flag"
27024 || test ! -s conftest.err'
ac1cb8d3
VS
27025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27036 ac_cv_lib_iodbc_SQLAllocEnv=yes
27037else
27038 echo "$as_me: failed program was:" >&5
27039sed 's/^/| /' conftest.$ac_ext >&5
27040
27041ac_cv_lib_iodbc_SQLAllocEnv=no
27042fi
ac1cb8d3
VS
27043rm -f conftest.err conftest.$ac_objext \
27044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27045LIBS=$ac_check_lib_save_LIBS
27046fi
27047echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27048echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27049if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27050 ODBC_LINK=" -liodbc"
27051else
27052
27053 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27054echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27055if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27057else
27058 ac_check_lib_save_LIBS=$LIBS
27059LIBS="-lunixodbc $LIBS"
27060cat >conftest.$ac_ext <<_ACEOF
27061/* confdefs.h. */
27062_ACEOF
27063cat confdefs.h >>conftest.$ac_ext
27064cat >>conftest.$ac_ext <<_ACEOF
27065/* end confdefs.h. */
27066
27067/* Override any gcc2 internal prototype to avoid an error. */
27068#ifdef __cplusplus
27069extern "C"
27070#endif
27071/* We use char because int might match the return type of a gcc2
27072 builtin and then its argument prototype would still apply. */
27073char SQLAllocEnv ();
27074int
27075main ()
27076{
27077SQLAllocEnv ();
27078 ;
27079 return 0;
27080}
27081_ACEOF
27082rm -f conftest.$ac_objext conftest$ac_exeext
27083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27084 (eval $ac_link) 2>conftest.er1
a848cd7e 27085 ac_status=$?
ac1cb8d3
VS
27086 grep -v '^ *+' conftest.er1 >conftest.err
27087 rm -f conftest.er1
27088 cat conftest.err >&5
a848cd7e
SC
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } &&
5f652d0d
VS
27091 { ac_try='test -z "$ac_c_werror_flag"
27092 || test ! -s conftest.err'
ac1cb8d3
VS
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; } &&
27098 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100 (eval $ac_try) 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; }; then
27104 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27105else
27106 echo "$as_me: failed program was:" >&5
27107sed 's/^/| /' conftest.$ac_ext >&5
27108
27109ac_cv_lib_unixodbc_SQLAllocEnv=no
27110fi
ac1cb8d3
VS
27111rm -f conftest.err conftest.$ac_objext \
27112 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27113LIBS=$ac_check_lib_save_LIBS
27114fi
27115echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27116echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27117if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27118 ODBC_LINK=" -lunixodbc"
27119else
27120
27121 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27122echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27123if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27124 echo $ECHO_N "(cached) $ECHO_C" >&6
27125else
27126 ac_check_lib_save_LIBS=$LIBS
27127LIBS="-lodbc $LIBS"
27128cat >conftest.$ac_ext <<_ACEOF
27129/* confdefs.h. */
27130_ACEOF
27131cat confdefs.h >>conftest.$ac_ext
27132cat >>conftest.$ac_ext <<_ACEOF
27133/* end confdefs.h. */
27134
27135/* Override any gcc2 internal prototype to avoid an error. */
27136#ifdef __cplusplus
27137extern "C"
27138#endif
27139/* We use char because int might match the return type of a gcc2
27140 builtin and then its argument prototype would still apply. */
27141char SQLAllocEnv ();
27142int
27143main ()
27144{
27145SQLAllocEnv ();
27146 ;
27147 return 0;
27148}
27149_ACEOF
27150rm -f conftest.$ac_objext conftest$ac_exeext
27151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27152 (eval $ac_link) 2>conftest.er1
a848cd7e 27153 ac_status=$?
ac1cb8d3
VS
27154 grep -v '^ *+' conftest.er1 >conftest.err
27155 rm -f conftest.er1
27156 cat conftest.err >&5
a848cd7e
SC
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } &&
5f652d0d
VS
27159 { ac_try='test -z "$ac_c_werror_flag"
27160 || test ! -s conftest.err'
ac1cb8d3
VS
27161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27162 (eval $ac_try) 2>&5
27163 ac_status=$?
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); }; } &&
27166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27168 (eval $ac_try) 2>&5
27169 ac_status=$?
27170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171 (exit $ac_status); }; }; then
27172 ac_cv_lib_odbc_SQLAllocEnv=yes
27173else
27174 echo "$as_me: failed program was:" >&5
27175sed 's/^/| /' conftest.$ac_ext >&5
27176
27177ac_cv_lib_odbc_SQLAllocEnv=no
27178fi
ac1cb8d3
VS
27179rm -f conftest.err conftest.$ac_objext \
27180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27181LIBS=$ac_check_lib_save_LIBS
27182fi
27183echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27184echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27185if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27186 ODBC_LINK=" -lodbc"
27187fi
27188
27189
27190fi
27191
27192
27193fi
27194
27195 fi
27196 if test "x$ODBC_LINK" = "x" ; then
27197 if test "$wxUSE_ODBC" = "sys" ; then
27198 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27199echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27200 { (exit 1); exit 1; }; }
27201 else
27202 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27203echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27204 wxUSE_ODBC=builtin
27205 fi
27206 else
27207 wxUSE_ODBC=sys
27208 fi
27209 fi
27210 if test "$wxUSE_ODBC" != "no" ; then
27211 cat >>confdefs.h <<\_ACEOF
27212#define wxUSE_ODBC 1
27213_ACEOF
27214
27215 if test "$wxUSE_ODBC" = "builtin" ; then
27216 cat >>confdefs.h <<\_ACEOF
27217#define wxUSE_BUILTIN_IODBC 1
27218_ACEOF
27219
27220 fi
27221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27222
27223 WXODBCFLAG="-D_IODBC_"
27224 fi
27225fi
27226
a848cd7e 27227
01cb68df 27228
a848cd7e 27229if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27230 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27231 echo "$as_me:$LINENO: checking for Xinerama" >&5
27232echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27233
27234ac_find_libraries=
27235for ac_dir in $SEARCH_LIB /usr/lib;
27236 do
27237 for ac_extension in a so sl dylib; do
27238 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27239 ac_find_libraries=$ac_dir
27240 break 2
27241 fi
27242 done
27243 done
27244
27245 if test "$ac_find_libraries" != "" ; then
27246
27247 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27248 result=$?
27249 if test $result = 0; then
27250 ac_path_to_link=""
27251 else
27252 ac_path_to_link=" -L$ac_find_libraries"
27253 fi
27254
27255 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27256 LDFLAGS="$LDFLAGS $ac_path_to_link"
27257 fi
27258 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27259 echo "$as_me:$LINENO: result: yes" >&5
27260echo "${ECHO_T}yes" >&6
27261
27262 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27263echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27264
27265ac_find_libraries=
27266for ac_dir in $SEARCH_LIB /usr/lib;
27267 do
27268 for ac_extension in a so sl dylib; do
27269 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27270 ac_find_libraries=$ac_dir
27271 break 2
27272 fi
27273 done
27274 done
27275
27276 if test "$ac_find_libraries" != "" ; then
27277 echo "$as_me:$LINENO: result: yes" >&5
27278echo "${ECHO_T}yes" >&6
27279
27280for ac_header in X11/extensions/xf86vmode.h
27281do
27282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27283echo "$as_me:$LINENO: checking for $ac_header" >&5
27284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27285if eval "test \"\${$as_ac_Header+set}\" = set"; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27287else
27288 cat >conftest.$ac_ext <<_ACEOF
27289/* confdefs.h. */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h. */
27294
27295 #if HAVE_X11_XLIB_H
27296 #include <X11/Xlib.h>
27297 #endif
27298
27299
27300#include <$ac_header>
27301_ACEOF
27302rm -f conftest.$ac_objext
27303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27304 (eval $ac_compile) 2>conftest.er1
a848cd7e 27305 ac_status=$?
ac1cb8d3
VS
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
a848cd7e
SC
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
5f652d0d
VS
27311 { ac_try='test -z "$ac_c_werror_flag"
27312 || test ! -s conftest.err'
ac1cb8d3
VS
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; } &&
27318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27321 ac_status=$?
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
27324 eval "$as_ac_Header=yes"
27325else
27326 echo "$as_me: failed program was:" >&5
27327sed 's/^/| /' conftest.$ac_ext >&5
27328
27329eval "$as_ac_Header=no"
27330fi
ac1cb8d3 27331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27332fi
27333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27335if test `eval echo '${'$as_ac_Header'}'` = yes; then
27336 cat >>confdefs.h <<_ACEOF
27337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27338_ACEOF
27339
27340 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27341
27342fi
27343
27344done
27345
27346 else
27347 echo "$as_me:$LINENO: result: no" >&5
27348echo "${ECHO_T}no" >&6
27349 fi
27350
27351 else
27352 echo "$as_me:$LINENO: result: no" >&5
27353echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27354 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27355echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27356 wxUSE_DISPLAY="no"
27357 fi
01cb68df
RG
27358 elif test "$wxUSE_MSW" = 1; then
27359
27360
27361for ac_header in multimon.h ddraw.h
27362do
27363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27364if eval "test \"\${$as_ac_Header+set}\" = set"; then
27365 echo "$as_me:$LINENO: checking for $ac_header" >&5
27366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27367if eval "test \"\${$as_ac_Header+set}\" = set"; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27369fi
27370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27372else
27373 # Is the header compilable?
27374echo "$as_me:$LINENO: checking $ac_header usability" >&5
27375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27376cat >conftest.$ac_ext <<_ACEOF
27377/* confdefs.h. */
27378_ACEOF
27379cat confdefs.h >>conftest.$ac_ext
27380cat >>conftest.$ac_ext <<_ACEOF
27381/* end confdefs.h. */
27382$ac_includes_default
27383#include <$ac_header>
27384_ACEOF
27385rm -f conftest.$ac_objext
27386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27387 (eval $ac_compile) 2>conftest.er1
01cb68df 27388 ac_status=$?
ac1cb8d3
VS
27389 grep -v '^ *+' conftest.er1 >conftest.err
27390 rm -f conftest.er1
27391 cat conftest.err >&5
01cb68df
RG
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); } &&
5f652d0d
VS
27394 { ac_try='test -z "$ac_c_werror_flag"
27395 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
27401 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403 (eval $ac_try) 2>&5
27404 ac_status=$?
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); }; }; then
27407 ac_header_compiler=yes
27408else
27409 echo "$as_me: failed program was:" >&5
27410sed 's/^/| /' conftest.$ac_ext >&5
27411
27412ac_header_compiler=no
27413fi
ac1cb8d3 27414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27416echo "${ECHO_T}$ac_header_compiler" >&6
27417
27418# Is the header present?
27419echo "$as_me:$LINENO: checking $ac_header presence" >&5
27420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27421cat >conftest.$ac_ext <<_ACEOF
27422/* confdefs.h. */
27423_ACEOF
27424cat confdefs.h >>conftest.$ac_ext
27425cat >>conftest.$ac_ext <<_ACEOF
27426/* end confdefs.h. */
27427#include <$ac_header>
27428_ACEOF
27429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27431 ac_status=$?
27432 grep -v '^ *+' conftest.er1 >conftest.err
27433 rm -f conftest.er1
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } >/dev/null; then
27437 if test -s conftest.err; then
27438 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27440 else
27441 ac_cpp_err=
27442 fi
27443else
27444 ac_cpp_err=yes
27445fi
27446if test -z "$ac_cpp_err"; then
27447 ac_header_preproc=yes
27448else
27449 echo "$as_me: failed program was:" >&5
27450sed 's/^/| /' conftest.$ac_ext >&5
27451
27452 ac_header_preproc=no
27453fi
27454rm -f conftest.err conftest.$ac_ext
27455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27456echo "${ECHO_T}$ac_header_preproc" >&6
27457
27458# So? What about this header?
ac1cb8d3
VS
27459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27460 yes:no: )
01cb68df
RG
27461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27465 ac_header_preproc=yes
01cb68df 27466 ;;
ac1cb8d3 27467 no:yes:* )
01cb68df
RG
27468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27480 (
27481 cat <<\_ASBOX
ac1cb8d3
VS
27482## ----------------------------------------- ##
27483## Report this to wx-dev@lists.wxwidgets.org ##
27484## ----------------------------------------- ##
01cb68df
RG
27485_ASBOX
27486 ) |
27487 sed "s/^/$as_me: WARNING: /" >&2
27488 ;;
27489esac
27490echo "$as_me:$LINENO: checking for $ac_header" >&5
27491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27492if eval "test \"\${$as_ac_Header+set}\" = set"; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27494else
ac1cb8d3 27495 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27496fi
27497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27499
27500fi
27501if test `eval echo '${'$as_ac_Header'}'` = yes; then
27502 cat >>confdefs.h <<_ACEOF
27503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27504_ACEOF
27505
27506else
27507
27508 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27509 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27510echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27511
27512fi
27513
27514done
27515
a848cd7e
SC
27516 fi
27517fi
27518
27519
3b57de8b
RL
27520if test "$wxUSE_MEDIACTRL" = "yes"; then
27521 if test "$wxUSE_MSW" = 1; then
27522 wxUSE_DIRECTSHOW="yes"
27523
27524for ac_header in dshow.h
27525do
27526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27527if eval "test \"\${$as_ac_Header+set}\" = set"; then
27528 echo "$as_me:$LINENO: checking for $ac_header" >&5
27529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27530if eval "test \"\${$as_ac_Header+set}\" = set"; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532fi
27533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27535else
27536 # Is the header compilable?
27537echo "$as_me:$LINENO: checking $ac_header usability" >&5
27538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27539cat >conftest.$ac_ext <<_ACEOF
27540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
27545$ac_includes_default
27546#include <$ac_header>
27547_ACEOF
27548rm -f conftest.$ac_objext
27549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27550 (eval $ac_compile) 2>conftest.er1
27551 ac_status=$?
27552 grep -v '^ *+' conftest.er1 >conftest.err
27553 rm -f conftest.er1
27554 cat conftest.err >&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); } &&
5f652d0d
VS
27557 { ac_try='test -z "$ac_c_werror_flag"
27558 || test ! -s conftest.err'
3b57de8b
RL
27559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560 (eval $ac_try) 2>&5
27561 ac_status=$?
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); }; } &&
27564 { ac_try='test -s conftest.$ac_objext'
27565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566 (eval $ac_try) 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; }; then
27570 ac_header_compiler=yes
27571else
27572 echo "$as_me: failed program was:" >&5
27573sed 's/^/| /' conftest.$ac_ext >&5
27574
27575ac_header_compiler=no
27576fi
27577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27579echo "${ECHO_T}$ac_header_compiler" >&6
27580
27581# Is the header present?
27582echo "$as_me:$LINENO: checking $ac_header presence" >&5
27583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27584cat >conftest.$ac_ext <<_ACEOF
27585/* confdefs.h. */
27586_ACEOF
27587cat confdefs.h >>conftest.$ac_ext
27588cat >>conftest.$ac_ext <<_ACEOF
27589/* end confdefs.h. */
27590#include <$ac_header>
27591_ACEOF
27592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27594 ac_status=$?
27595 grep -v '^ *+' conftest.er1 >conftest.err
27596 rm -f conftest.er1
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } >/dev/null; then
27600 if test -s conftest.err; then
27601 ac_cpp_err=$ac_c_preproc_warn_flag
27602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27603 else
27604 ac_cpp_err=
27605 fi
27606else
27607 ac_cpp_err=yes
27608fi
27609if test -z "$ac_cpp_err"; then
27610 ac_header_preproc=yes
27611else
27612 echo "$as_me: failed program was:" >&5
27613sed 's/^/| /' conftest.$ac_ext >&5
27614
27615 ac_header_preproc=no
27616fi
27617rm -f conftest.err conftest.$ac_ext
27618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27619echo "${ECHO_T}$ac_header_preproc" >&6
27620
27621# So? What about this header?
27622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27623 yes:no: )
27624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27628 ac_header_preproc=yes
27629 ;;
27630 no:yes:* )
27631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27643 (
27644 cat <<\_ASBOX
27645## ----------------------------------------- ##
27646## Report this to wx-dev@lists.wxwidgets.org ##
27647## ----------------------------------------- ##
27648_ASBOX
27649 ) |
27650 sed "s/^/$as_me: WARNING: /" >&2
27651 ;;
27652esac
27653echo "$as_me:$LINENO: checking for $ac_header" >&5
27654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27655if eval "test \"\${$as_ac_Header+set}\" = set"; then
27656 echo $ECHO_N "(cached) $ECHO_C" >&6
27657else
27658 eval "$as_ac_Header=\$ac_header_preproc"
27659fi
27660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27662
27663fi
27664if test `eval echo '${'$as_ac_Header'}'` = yes; then
27665 cat >>confdefs.h <<_ACEOF
27666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27667_ACEOF
27668
27669else
27670
27671 wxUSE_DIRECTSHOW="no"
27672 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
27673echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27674
27675fi
27676
27677done
27678
27679
27680 if test "$wxUSE_DIRECTSHOW" = "yes"; then
27681 cat >>confdefs.h <<\_ACEOF
27682#define wxUSE_DIRECTSHOW 1
27683_ACEOF
27684
27685 LIBS="$LIBS -lstrmiids"
a98bf0c0 27686 fi
3b57de8b 27687 fi
7e4a1c28 27688
fa9ad408 27689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27690 cat >>confdefs.h <<\_ACEOF
27691#define wxUSE_MEDIACTRL 1
27692_ACEOF
27693
3b57de8b
RL
27694fi
27695
27696
a848cd7e
SC
27697USE_OPENGL=0
27698if test "$wxUSE_OPENGL" = "yes"; then
27699 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27700 OPENGL_LIBS="-framework OpenGL -framework AGL"
27701 elif test "$wxUSE_MSW" = 1; then
27702 OPENGL_LIBS="-lopengl32 -lglu32"
27703 else
27704
27705
27706ac_find_includes=
27707for ac_dir in $SEARCH_INCLUDE /usr/include;
27708 do
27709 if test -f "$ac_dir/GL/gl.h"; then
27710 ac_find_includes=$ac_dir
27711 break
27712 fi
27713 done
27714
27715 if test "$ac_find_includes" != "" ; then
27716 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27717echo "${ECHO_T}found in $ac_find_includes" >&6
27718
27719 if test "x$ac_find_includes" = "x/usr/include"; then
27720 ac_path_to_include=""
27721 else
27722 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27723 result=$?
27724 if test $result = 0; then
27725 ac_path_to_include=""
27726 else
27727 ac_path_to_include=" -I$ac_find_includes"
27728 fi
27729 fi
27730
27731 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27732 fi
27733
27734 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27735 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27736echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27737if test "${ac_cv_header_GL_gl_h+set}" = set; then
27738 echo $ECHO_N "(cached) $ECHO_C" >&6
27739fi
27740echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27741echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27742else
27743 # Is the header compilable?
27744echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27745echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27746cat >conftest.$ac_ext <<_ACEOF
27747/* confdefs.h. */
27748_ACEOF
27749cat confdefs.h >>conftest.$ac_ext
27750cat >>conftest.$ac_ext <<_ACEOF
27751/* end confdefs.h. */
27752$ac_includes_default
27753#include <GL/gl.h>
27754_ACEOF
27755rm -f conftest.$ac_objext
27756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27757 (eval $ac_compile) 2>conftest.er1
a848cd7e 27758 ac_status=$?
ac1cb8d3
VS
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
a848cd7e
SC
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } &&
5f652d0d
VS
27764 { ac_try='test -z "$ac_c_werror_flag"
27765 || test ! -s conftest.err'
ac1cb8d3
VS
27766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27767 (eval $ac_try) 2>&5
27768 ac_status=$?
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; } &&
27771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; }; then
27777 ac_header_compiler=yes
27778else
27779 echo "$as_me: failed program was:" >&5
27780sed 's/^/| /' conftest.$ac_ext >&5
27781
27782ac_header_compiler=no
27783fi
ac1cb8d3 27784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27786echo "${ECHO_T}$ac_header_compiler" >&6
27787
27788# Is the header present?
27789echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27790echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27791cat >conftest.$ac_ext <<_ACEOF
27792/* confdefs.h. */
27793_ACEOF
27794cat confdefs.h >>conftest.$ac_ext
27795cat >>conftest.$ac_ext <<_ACEOF
27796/* end confdefs.h. */
27797#include <GL/gl.h>
27798_ACEOF
27799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27801 ac_status=$?
27802 grep -v '^ *+' conftest.er1 >conftest.err
27803 rm -f conftest.er1
27804 cat conftest.err >&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); } >/dev/null; then
27807 if test -s conftest.err; then
27808 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27810 else
27811 ac_cpp_err=
27812 fi
27813else
27814 ac_cpp_err=yes
27815fi
27816if test -z "$ac_cpp_err"; then
27817 ac_header_preproc=yes
27818else
27819 echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822 ac_header_preproc=no
27823fi
27824rm -f conftest.err conftest.$ac_ext
27825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27826echo "${ECHO_T}$ac_header_preproc" >&6
27827
27828# So? What about this header?
ac1cb8d3
VS
27829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27830 yes:no: )
a848cd7e
SC
27831 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27832echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27833 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27834echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27835 ac_header_preproc=yes
a848cd7e 27836 ;;
ac1cb8d3 27837 no:yes:* )
a848cd7e
SC
27838 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27839echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27840 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27841echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27842 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27843echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27844 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27845echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27846 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27847echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27848 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27849echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27850 (
27851 cat <<\_ASBOX
ac1cb8d3
VS
27852## ----------------------------------------- ##
27853## Report this to wx-dev@lists.wxwidgets.org ##
27854## ----------------------------------------- ##
a848cd7e
SC
27855_ASBOX
27856 ) |
27857 sed "s/^/$as_me: WARNING: /" >&2
27858 ;;
27859esac
27860echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27861echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27862if test "${ac_cv_header_GL_gl_h+set}" = set; then
27863 echo $ECHO_N "(cached) $ECHO_C" >&6
27864else
27865 ac_cv_header_GL_gl_h=$ac_header_preproc
27866fi
27867echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27868echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27869
27870fi
27871if test $ac_cv_header_GL_gl_h = yes; then
27872
27873 found_gl=0
27874
27875 echo "$as_me:$LINENO: checking for -lGL" >&5
27876echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27877
27878ac_find_libraries=
27879for ac_dir in $SEARCH_LIB /usr/lib;
27880 do
27881 for ac_extension in a so sl dylib; do
27882 if test -f "$ac_dir/libGL.$ac_extension"; then
27883 ac_find_libraries=$ac_dir
27884 break 2
27885 fi
27886 done
27887 done
27888
27889 if test "$ac_find_libraries" != "" ; then
27890
27891 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27892 result=$?
27893 if test $result = 0; then
27894 ac_path_to_link=""
27895 else
27896 ac_path_to_link=" -L$ac_find_libraries"
27897 fi
27898
27899 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27900 LDFLAGS_GL="$ac_path_to_link"
27901 fi
27902
27903
27904ac_find_libraries=
27905for ac_dir in $SEARCH_LIB /usr/lib;
27906 do
27907 for ac_extension in a so sl dylib; do
27908 if test -f "$ac_dir/libGLU.$ac_extension"; then
27909 ac_find_libraries=$ac_dir
27910 break 2
27911 fi
27912 done
27913 done
27914
27915 if test "$ac_find_libraries" != "" ; then
27916
27917 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27918 result=$?
27919 if test $result = 0; then
27920 ac_path_to_link=""
27921 else
27922 ac_path_to_link=" -L$ac_find_libraries"
27923 fi
27924
27925 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27926 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27927 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27928 fi
27929
27930 found_gl=1
27931 OPENGL_LIBS="-lGL -lGLU"
27932 echo "$as_me:$LINENO: result: yes" >&5
27933echo "${ECHO_T}yes" >&6
27934 fi
27935 fi
27936
27937 if test "$found_gl" != 1; then
27938 echo "$as_me:$LINENO: result: no" >&5
27939echo "${ECHO_T}no" >&6
27940 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27941echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27942
27943ac_find_libraries=
27944for ac_dir in $SEARCH_LIB /usr/lib;
27945 do
27946 for ac_extension in a so sl dylib; do
27947 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27948 ac_find_libraries=$ac_dir
27949 break 2
27950 fi
27951 done
27952 done
27953
27954 if test "$ac_find_libraries" != "" ; then
27955
27956 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27957 result=$?
27958 if test $result = 0; then
27959 ac_path_to_link=""
27960 else
27961 ac_path_to_link=" -L$ac_find_libraries"
27962 fi
27963
27964 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27965 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27966 echo "$as_me:$LINENO: result: yes" >&5
27967echo "${ECHO_T}yes" >&6
27968 else
27969 echo "$as_me:$LINENO: result: no" >&5
27970echo "${ECHO_T}no" >&6
27971 fi
27972 fi
27973
27974fi
27975
27976
27977
27978 if test "x$OPENGL_LIBS" = "x"; then
27979 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27980echo "$as_me: error: OpenGL libraries not available" >&2;}
27981 { (exit 1); exit 1; }; }
27982 fi
27983 fi
27984
27985 if test "$wxUSE_OPENGL" = "yes"; then
27986 USE_OPENGL=1
27987 cat >>confdefs.h <<\_ACEOF
27988#define wxUSE_OPENGL 1
27989_ACEOF
27990
27991 cat >>confdefs.h <<\_ACEOF
27992#define wxUSE_GLCANVAS 1
27993_ACEOF
27994
27995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27996 fi
27997fi
27998
a848cd7e
SC
27999
28000if test -n "$TOOLKIT" ; then
28001 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28002fi
28003
a848cd7e
SC
28004
28005
28006if test "$wxUSE_SHARED" = "yes"; then
28007 case "${host}" in
28008 *-pc-msdosdjgpp )
28009 wxUSE_SHARED=no
28010 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28011echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28012 ;;
28013 esac
28014fi
28015
a848cd7e 28016if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28017
28018
28019 found_versioning=no
28020
28021
28022 if test $found_versioning = no ; then
28023 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28024echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28025if test "${wx_cv_version_script+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028
28029 echo "VER_1 { *; };" >conftest.sym
28030 echo "int main() { return 0; }" >conftest.cpp
28031
28032 if { ac_try='
28033 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28034 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28036 (eval $ac_try) 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; } ; then
28040 if test -s conftest.stderr ; then
28041 wx_cv_version_script=no
28042 else
28043 wx_cv_version_script=yes
28044 fi
28045 else
28046 wx_cv_version_script=no
28047 fi
28048 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28049
28050fi
28051echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28052echo "${ECHO_T}$wx_cv_version_script" >&6
28053 if test $wx_cv_version_script = yes ; then
28054 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28055 fi
28056 fi
28057
28058
28059 case "${host}" in
28060 *-*-linux* | *-*-gnu* )
28061 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28062 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28063 ;;
28064
28065 *-*-solaris2* )
28066 if test "$GCC" = yes ; then
28067 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28068
28069 saveLdflags="$LDFLAGS"
28070 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28071 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28072echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28073 cat >conftest.$ac_ext <<_ACEOF
28074/* confdefs.h. */
28075_ACEOF
28076cat confdefs.h >>conftest.$ac_ext
28077cat >>conftest.$ac_ext <<_ACEOF
28078/* end confdefs.h. */
28079
28080int
28081main ()
28082{
28083
28084 ;
28085 return 0;
28086}
28087_ACEOF
28088rm -f conftest.$ac_objext conftest$ac_exeext
28089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28090 (eval $ac_link) 2>conftest.er1
a848cd7e 28091 ac_status=$?
ac1cb8d3
VS
28092 grep -v '^ *+' conftest.er1 >conftest.err
28093 rm -f conftest.er1
28094 cat conftest.err >&5
a848cd7e
SC
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); } &&
5f652d0d
VS
28097 { ac_try='test -z "$ac_c_werror_flag"
28098 || test ! -s conftest.err'
ac1cb8d3
VS
28099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28100 (eval $ac_try) 2>&5
28101 ac_status=$?
28102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); }; } &&
28104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106 (eval $ac_try) 2>&5
28107 ac_status=$?
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; }; then
28110
28111 echo "$as_me:$LINENO: result: yes" >&5
28112echo "${ECHO_T}yes" >&6
28113 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28114 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28115
28116else
28117 echo "$as_me: failed program was:" >&5
28118sed 's/^/| /' conftest.$ac_ext >&5
28119
28120
28121 echo "$as_me:$LINENO: result: no" >&5
28122echo "${ECHO_T}no" >&6
28123 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28124echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28125 LDFLAGS="$saveLdflags -Wl,-R,/"
28126 cat >conftest.$ac_ext <<_ACEOF
28127/* confdefs.h. */
28128_ACEOF
28129cat confdefs.h >>conftest.$ac_ext
28130cat >>conftest.$ac_ext <<_ACEOF
28131/* end confdefs.h. */
28132
28133int
28134main ()
28135{
28136
28137 ;
28138 return 0;
28139}
28140_ACEOF
28141rm -f conftest.$ac_objext conftest$ac_exeext
28142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28143 (eval $ac_link) 2>conftest.er1
a848cd7e 28144 ac_status=$?
ac1cb8d3
VS
28145 grep -v '^ *+' conftest.er1 >conftest.err
28146 rm -f conftest.er1
28147 cat conftest.err >&5
a848cd7e
SC
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } &&
5f652d0d
VS
28150 { ac_try='test -z "$ac_c_werror_flag"
28151 || test ! -s conftest.err'
ac1cb8d3
VS
28152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28154 ac_status=$?
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; } &&
28157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159 (eval $ac_try) 2>&5
28160 ac_status=$?
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; }; then
28163
ffa0583f 28164 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28165echo "${ECHO_T}yes" >&6
ffa0583f
RL
28166 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28167 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28168
a848cd7e
SC
28169else
28170 echo "$as_me: failed program was:" >&5
28171sed 's/^/| /' conftest.$ac_ext >&5
28172
28173
28174 echo "$as_me:$LINENO: result: no" >&5
28175echo "${ECHO_T}no" >&6
28176
28177fi
ac1cb8d3
VS
28178rm -f conftest.err conftest.$ac_objext \
28179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28180
28181fi
ac1cb8d3
VS
28182rm -f conftest.err conftest.$ac_objext \
28183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28184 LDFLAGS="$saveLdflags"
28185 else
a848cd7e 28186 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28187 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28188 fi
28189 ;;
28190
28191 powerpc-*-darwin* )
28192 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28193 cat <<EOF >change-install-names
28194#!/bin/sh
28195libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28196inst_cmd="install_name_tool "
28197for i in \${libnames} ; do
28198 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28199done
28200\${inst_cmd} \${3}
28201EOF
28202 chmod +x change-install-names
28203 ;;
28204
28205 *-*-cygwin* | *-*-mingw32* )
28206 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28207 ;;
28208
28209 esac
ceec2216 28210
ffa0583f
RL
28211 if test $wxUSE_RPATH = "no"; then
28212 SAMPLES_RPATH_FLAG=''
28213 SAMPLES_RPATH_POSTLINK=''
28214 WXCONFIG_RPATH=''
28215 fi
28216
28217 SHARED=1
28218
28219else
28220
ceec2216
RL
28221 config_linkage_component="-static"
28222 SHARED=0
ffa0583f 28223
ceec2216 28224fi
a848cd7e 28225
a848cd7e 28226
ceec2216
RL
28227UNICODE=0
28228lib_unicode_suffix=
28229WX_CHARTYPE="ansi"
28230if test "$wxUSE_UNICODE" = "yes"; then
28231 lib_unicode_suffix=u
28232 WX_CHARTYPE="unicode"
28233 UNICODE=1
a848cd7e
SC
28234fi
28235
ceec2216
RL
28236lib_debug_suffix=
28237WX_DEBUGTYPE="release"
28238DEBUG_FLAG=0
28239if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28240 lib_debug_suffix=d
28241 WX_DEBUGTYPE="debug"
28242 DEBUG_FLAG=1
28243fi
a848cd7e 28244
ceec2216
RL
28245WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28246WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28247
ceec2216
RL
28248DEBUG_INFO=0
28249if test "$wxUSE_DEBUG_INFO" = "yes"; then
28250 DEBUG_INFO=1
28251fi
a848cd7e 28252
ceec2216 28253WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28254
ceec2216 28255TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28256
ceec2216 28257TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28258
ceec2216
RL
28259if test "$cross_compiling" = "yes"; then
28260 HOST_SUFFIX="-$host_alias"
28261 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28262 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28263fi
28264
dd21ced8 28265WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28266WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28267
28268
28269
a848cd7e 28270if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28271 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28272 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28273
a848cd7e 28274 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28275
28276 # Extract the first word of "Rez", so it can be a program name with args.
28277set dummy Rez; ac_word=$2
28278echo "$as_me:$LINENO: checking for $ac_word" >&5
28279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28280if test "${ac_cv_prog_RESCOMP+set}" = set; then
28281 echo $ECHO_N "(cached) $ECHO_C" >&6
28282else
28283 if test -n "$RESCOMP"; then
28284 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28285else
28286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28287for as_dir in $PATH
28288do
28289 IFS=$as_save_IFS
28290 test -z "$as_dir" && as_dir=.
28291 for ac_exec_ext in '' $ac_executable_extensions; do
28292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28293 ac_cv_prog_RESCOMP="Rez"
28294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28295 break 2
28296 fi
28297done
28298done
28299
28300 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28301fi
28302fi
28303RESCOMP=$ac_cv_prog_RESCOMP
28304if test -n "$RESCOMP"; then
28305 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28306echo "${ECHO_T}$RESCOMP" >&6
28307else
28308 echo "$as_me:$LINENO: result: no" >&5
28309echo "${ECHO_T}no" >&6
28310fi
28311
28312 # Extract the first word of "DeRez", so it can be a program name with args.
28313set dummy DeRez; ac_word=$2
28314echo "$as_me:$LINENO: checking for $ac_word" >&5
28315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28316if test "${ac_cv_prog_DEREZ+set}" = set; then
28317 echo $ECHO_N "(cached) $ECHO_C" >&6
28318else
28319 if test -n "$DEREZ"; then
28320 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28321else
28322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28323for as_dir in $PATH
28324do
28325 IFS=$as_save_IFS
28326 test -z "$as_dir" && as_dir=.
28327 for ac_exec_ext in '' $ac_executable_extensions; do
28328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28329 ac_cv_prog_DEREZ="DeRez"
28330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28331 break 2
28332 fi
28333done
28334done
28335
28336 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28337fi
28338fi
28339DEREZ=$ac_cv_prog_DEREZ
28340if test -n "$DEREZ"; then
28341 echo "$as_me:$LINENO: result: $DEREZ" >&5
28342echo "${ECHO_T}$DEREZ" >&6
28343else
28344 echo "$as_me:$LINENO: result: no" >&5
28345echo "${ECHO_T}no" >&6
28346fi
28347
28348 # Extract the first word of "SetFile", so it can be a program name with args.
28349set dummy SetFile; ac_word=$2
28350echo "$as_me:$LINENO: checking for $ac_word" >&5
28351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28352if test "${ac_cv_prog_SETFILE+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28354else
28355 if test -n "$SETFILE"; then
28356 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28357else
28358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28359for as_dir in $PATH
28360do
28361 IFS=$as_save_IFS
28362 test -z "$as_dir" && as_dir=.
28363 for ac_exec_ext in '' $ac_executable_extensions; do
28364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28365 ac_cv_prog_SETFILE="SetFile"
28366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28367 break 2
28368 fi
28369done
28370done
28371
28372 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28373fi
28374fi
28375SETFILE=$ac_cv_prog_SETFILE
28376if test -n "$SETFILE"; then
28377 echo "$as_me:$LINENO: result: $SETFILE" >&5
28378echo "${ECHO_T}$SETFILE" >&6
28379else
28380 echo "$as_me:$LINENO: result: no" >&5
28381echo "${ECHO_T}no" >&6
28382fi
28383
28384
28385 MACSETFILE="\$(SETFILE)"
28386
28387 if test "$wxUSE_MAC" = 1; then
28388 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28389
28390 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28391 else
28392 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28393 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28394 fi
28395else
ffa0583f
RL
28396 MACSETFILE="@true"
28397 MACRESWXCONFIG="@true"
a848cd7e
SC
28398
28399 if test "$wxUSE_PM" = 1; then
28400 MACRESCOMP="emxbind -ep"
28401 else
ffa0583f 28402 MACRESCOMP="@true"
a848cd7e
SC
28403 fi
28404fi
28405
28406
28407
28408echo "$as_me:$LINENO: checking for mode_t" >&5
28409echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28410if test "${ac_cv_type_mode_t+set}" = set; then
28411 echo $ECHO_N "(cached) $ECHO_C" >&6
28412else
28413 cat >conftest.$ac_ext <<_ACEOF
28414/* confdefs.h. */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h. */
28419$ac_includes_default
28420int
28421main ()
28422{
28423if ((mode_t *) 0)
28424 return 0;
28425if (sizeof (mode_t))
28426 return 0;
28427 ;
28428 return 0;
28429}
28430_ACEOF
28431rm -f conftest.$ac_objext
28432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28433 (eval $ac_compile) 2>conftest.er1
a848cd7e 28434 ac_status=$?
ac1cb8d3
VS
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
a848cd7e
SC
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
5f652d0d
VS
28440 { ac_try='test -z "$ac_c_werror_flag"
28441 || test ! -s conftest.err'
ac1cb8d3
VS
28442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443 (eval $ac_try) 2>&5
28444 ac_status=$?
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; }; then
28453 ac_cv_type_mode_t=yes
28454else
28455 echo "$as_me: failed program was:" >&5
28456sed 's/^/| /' conftest.$ac_ext >&5
28457
28458ac_cv_type_mode_t=no
28459fi
ac1cb8d3 28460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28461fi
28462echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28463echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28464if test $ac_cv_type_mode_t = yes; then
28465 :
28466else
28467
28468cat >>confdefs.h <<_ACEOF
28469#define mode_t int
28470_ACEOF
28471
28472fi
28473
28474echo "$as_me:$LINENO: checking for off_t" >&5
28475echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28476if test "${ac_cv_type_off_t+set}" = set; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28478else
28479 cat >conftest.$ac_ext <<_ACEOF
28480/* confdefs.h. */
28481_ACEOF
28482cat confdefs.h >>conftest.$ac_ext
28483cat >>conftest.$ac_ext <<_ACEOF
28484/* end confdefs.h. */
28485$ac_includes_default
28486int
28487main ()
28488{
28489if ((off_t *) 0)
28490 return 0;
28491if (sizeof (off_t))
28492 return 0;
28493 ;
28494 return 0;
28495}
28496_ACEOF
28497rm -f conftest.$ac_objext
28498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28499 (eval $ac_compile) 2>conftest.er1
a848cd7e 28500 ac_status=$?
ac1cb8d3
VS
28501 grep -v '^ *+' conftest.er1 >conftest.err
28502 rm -f conftest.er1
28503 cat conftest.err >&5
a848cd7e
SC
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } &&
5f652d0d
VS
28506 { ac_try='test -z "$ac_c_werror_flag"
28507 || test ! -s conftest.err'
ac1cb8d3
VS
28508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509 (eval $ac_try) 2>&5
28510 ac_status=$?
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; } &&
28513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_type_off_t=yes
28520else
28521 echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524ac_cv_type_off_t=no
28525fi
ac1cb8d3 28526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28527fi
28528echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28529echo "${ECHO_T}$ac_cv_type_off_t" >&6
28530if test $ac_cv_type_off_t = yes; then
28531 :
28532else
28533
28534cat >>confdefs.h <<_ACEOF
28535#define off_t long
28536_ACEOF
28537
28538fi
28539
28540echo "$as_me:$LINENO: checking for pid_t" >&5
28541echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28542if test "${ac_cv_type_pid_t+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544else
28545 cat >conftest.$ac_ext <<_ACEOF
28546/* confdefs.h. */
28547_ACEOF
28548cat confdefs.h >>conftest.$ac_ext
28549cat >>conftest.$ac_ext <<_ACEOF
28550/* end confdefs.h. */
28551$ac_includes_default
28552int
28553main ()
28554{
28555if ((pid_t *) 0)
28556 return 0;
28557if (sizeof (pid_t))
28558 return 0;
28559 ;
28560 return 0;
28561}
28562_ACEOF
28563rm -f conftest.$ac_objext
28564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28565 (eval $ac_compile) 2>conftest.er1
a848cd7e 28566 ac_status=$?
ac1cb8d3
VS
28567 grep -v '^ *+' conftest.er1 >conftest.err
28568 rm -f conftest.er1
28569 cat conftest.err >&5
a848cd7e
SC
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); } &&
5f652d0d
VS
28572 { ac_try='test -z "$ac_c_werror_flag"
28573 || test ! -s conftest.err'
ac1cb8d3
VS
28574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575 (eval $ac_try) 2>&5
28576 ac_status=$?
28577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); }; } &&
28579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; }; then
28585 ac_cv_type_pid_t=yes
28586else
28587 echo "$as_me: failed program was:" >&5
28588sed 's/^/| /' conftest.$ac_ext >&5
28589
28590ac_cv_type_pid_t=no
28591fi
ac1cb8d3 28592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28593fi
28594echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28595echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28596if test $ac_cv_type_pid_t = yes; then
28597 :
28598else
28599
28600cat >>confdefs.h <<_ACEOF
28601#define pid_t int
28602_ACEOF
28603
28604fi
28605
28606echo "$as_me:$LINENO: checking for size_t" >&5
28607echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28608if test "${ac_cv_type_size_t+set}" = set; then
28609 echo $ECHO_N "(cached) $ECHO_C" >&6
28610else
28611 cat >conftest.$ac_ext <<_ACEOF
28612/* confdefs.h. */
28613_ACEOF
28614cat confdefs.h >>conftest.$ac_ext
28615cat >>conftest.$ac_ext <<_ACEOF
28616/* end confdefs.h. */
28617$ac_includes_default
28618int
28619main ()
28620{
28621if ((size_t *) 0)
28622 return 0;
28623if (sizeof (size_t))
28624 return 0;
28625 ;
28626 return 0;
28627}
28628_ACEOF
28629rm -f conftest.$ac_objext
28630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28631 (eval $ac_compile) 2>conftest.er1
a848cd7e 28632 ac_status=$?
ac1cb8d3
VS
28633 grep -v '^ *+' conftest.er1 >conftest.err
28634 rm -f conftest.er1
28635 cat conftest.err >&5
a848cd7e
SC
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); } &&
5f652d0d
VS
28638 { ac_try='test -z "$ac_c_werror_flag"
28639 || test ! -s conftest.err'
ac1cb8d3
VS
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; } &&
28645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647 (eval $ac_try) 2>&5
28648 ac_status=$?
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); }; }; then
28651 ac_cv_type_size_t=yes
28652else
28653 echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656ac_cv_type_size_t=no
28657fi
ac1cb8d3 28658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28659fi
28660echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28661echo "${ECHO_T}$ac_cv_type_size_t" >&6
28662if test $ac_cv_type_size_t = yes; then
28663 :
28664else
28665
28666cat >>confdefs.h <<_ACEOF
28667#define size_t unsigned
28668_ACEOF
28669
28670fi
28671
28672echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28673echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28674if test "${ac_cv_type_uid_t+set}" = set; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28676else
28677 cat >conftest.$ac_ext <<_ACEOF
28678/* confdefs.h. */
28679_ACEOF
28680cat confdefs.h >>conftest.$ac_ext
28681cat >>conftest.$ac_ext <<_ACEOF
28682/* end confdefs.h. */
28683#include <sys/types.h>
28684
28685_ACEOF
28686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28687 $EGREP "uid_t" >/dev/null 2>&1; then
28688 ac_cv_type_uid_t=yes
28689else
28690 ac_cv_type_uid_t=no
28691fi
28692rm -f conftest*
28693
28694fi
28695echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28696echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28697if test $ac_cv_type_uid_t = no; then
28698
28699cat >>confdefs.h <<\_ACEOF
28700#define uid_t int
28701_ACEOF
28702
28703
28704cat >>confdefs.h <<\_ACEOF
28705#define gid_t int
28706_ACEOF
28707
28708fi
28709
28710
d51253e8
RL
28711echo "$as_me:$LINENO: checking for ssize_t" >&5
28712echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28713if test "${ac_cv_type_ssize_t+set}" = set; then
28714 echo $ECHO_N "(cached) $ECHO_C" >&6
28715else
28716 cat >conftest.$ac_ext <<_ACEOF
28717/* confdefs.h. */
28718_ACEOF
28719cat confdefs.h >>conftest.$ac_ext
28720cat >>conftest.$ac_ext <<_ACEOF
28721/* end confdefs.h. */
28722$ac_includes_default
28723int
28724main ()
28725{
28726if ((ssize_t *) 0)
28727 return 0;
28728if (sizeof (ssize_t))
28729 return 0;
28730 ;
28731 return 0;
28732}
28733_ACEOF
28734rm -f conftest.$ac_objext
28735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28736 (eval $ac_compile) 2>conftest.er1
28737 ac_status=$?
28738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } &&
5f652d0d
VS
28743 { ac_try='test -z "$ac_c_werror_flag"
28744 || test ! -s conftest.err'
d51253e8
RL
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28753 ac_status=$?
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_cv_type_ssize_t=yes
28757else
28758 echo "$as_me: failed program was:" >&5
28759sed 's/^/| /' conftest.$ac_ext >&5
28760
28761ac_cv_type_ssize_t=no
28762fi
28763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28764fi
28765echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28766echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28767if test $ac_cv_type_ssize_t = yes; then
28768
28769cat >>confdefs.h <<_ACEOF
28770#define HAVE_SSIZE_T 1
28771_ACEOF
28772
28773
28774fi
28775
28776
a848cd7e
SC
28777
28778
28779ac_ext=cc
28780ac_cpp='$CXXCPP $CPPFLAGS'
28781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28784
28785echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28786echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28787if test "${wx_cv_size_t_is_uint+set}" = set; then
28788 echo $ECHO_N "(cached) $ECHO_C" >&6
28789else
28790
28791 cat >conftest.$ac_ext <<_ACEOF
28792/* confdefs.h. */
28793_ACEOF
28794cat confdefs.h >>conftest.$ac_ext
28795cat >>conftest.$ac_ext <<_ACEOF
28796/* end confdefs.h. */
28797#include <stddef.h>
28798int
28799main ()
28800{
28801
28802 return 0; }
28803
28804 struct Foo { void foo(size_t); void foo(unsigned int); };
28805
28806 int bar() {
28807
28808 ;
28809 return 0;
28810}
28811_ACEOF
28812rm -f conftest.$ac_objext
28813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28814 (eval $ac_compile) 2>conftest.er1
a848cd7e 28815 ac_status=$?
ac1cb8d3
VS
28816 grep -v '^ *+' conftest.er1 >conftest.err
28817 rm -f conftest.er1
28818 cat conftest.err >&5
a848cd7e
SC
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); } &&
5f652d0d
VS
28821 { ac_try='test -z "$ac_cxx_werror_flag"
28822 || test ! -s conftest.err'
ac1cb8d3
VS
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; } &&
28828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830 (eval $ac_try) 2>&5
28831 ac_status=$?
28832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); }; }; then
28834 wx_cv_size_t_is_uint=no
28835else
28836 echo "$as_me: failed program was:" >&5
28837sed 's/^/| /' conftest.$ac_ext >&5
28838
28839wx_cv_size_t_is_uint=yes
28840
28841fi
ac1cb8d3 28842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28843
28844
28845fi
28846echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28847echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28848
28849if test "$wx_cv_size_t_is_uint" = "yes"; then
28850 cat >>confdefs.h <<\_ACEOF
28851#define wxSIZE_T_IS_UINT 1
28852_ACEOF
28853
28854else
28855 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28856echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28857if test "${wx_cv_size_t_is_ulong+set}" = set; then
28858 echo $ECHO_N "(cached) $ECHO_C" >&6
28859else
28860 cat >conftest.$ac_ext <<_ACEOF
28861/* confdefs.h. */
28862_ACEOF
28863cat confdefs.h >>conftest.$ac_ext
28864cat >>conftest.$ac_ext <<_ACEOF
28865/* end confdefs.h. */
28866#include <stddef.h>
28867int
28868main ()
28869{
28870
28871 return 0; }
28872
28873 struct Foo { void foo(size_t); void foo(unsigned long); };
28874
28875 int bar() {
28876
28877 ;
28878 return 0;
28879}
28880_ACEOF
28881rm -f conftest.$ac_objext
28882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28883 (eval $ac_compile) 2>conftest.er1
a848cd7e 28884 ac_status=$?
ac1cb8d3
VS
28885 grep -v '^ *+' conftest.er1 >conftest.err
28886 rm -f conftest.er1
28887 cat conftest.err >&5
a848cd7e
SC
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); } &&
5f652d0d
VS
28890 { ac_try='test -z "$ac_cxx_werror_flag"
28891 || test ! -s conftest.err'
ac1cb8d3
VS
28892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893 (eval $ac_try) 2>&5
28894 ac_status=$?
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; } &&
28897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
28903 wx_cv_size_t_is_ulong=no
28904else
28905 echo "$as_me: failed program was:" >&5
28906sed 's/^/| /' conftest.$ac_ext >&5
28907
28908wx_cv_size_t_is_ulong=yes
28909
28910fi
ac1cb8d3 28911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28912
28913fi
28914echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28915echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28916
28917 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28918 cat >>confdefs.h <<\_ACEOF
28919#define wxSIZE_T_IS_ULONG 1
28920_ACEOF
28921
28922 fi
28923fi
28924
28925ac_ext=c
28926ac_cpp='$CPP $CPPFLAGS'
28927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28929ac_compiler_gnu=$ac_cv_c_compiler_gnu
28930
28931
28932
28933echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28934echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28935if test "${wx_cv_struct_pw_gecos+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28937else
28938
28939 cat >conftest.$ac_ext <<_ACEOF
28940/* confdefs.h. */
28941_ACEOF
28942cat confdefs.h >>conftest.$ac_ext
28943cat >>conftest.$ac_ext <<_ACEOF
28944/* end confdefs.h. */
28945#include <pwd.h>
28946int
28947main ()
28948{
28949
28950 char *p;
28951 struct passwd *pw;
28952 p = pw->pw_gecos;
28953
28954 ;
28955 return 0;
28956}
28957_ACEOF
28958rm -f conftest.$ac_objext
28959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28960 (eval $ac_compile) 2>conftest.er1
a848cd7e 28961 ac_status=$?
ac1cb8d3
VS
28962 grep -v '^ *+' conftest.er1 >conftest.err
28963 rm -f conftest.er1
28964 cat conftest.err >&5
a848cd7e
SC
28965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966 (exit $ac_status); } &&
5f652d0d
VS
28967 { ac_try='test -z "$ac_c_werror_flag"
28968 || test ! -s conftest.err'
ac1cb8d3
VS
28969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); }; } &&
28974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980
28981 wx_cv_struct_pw_gecos=yes
28982
28983else
28984 echo "$as_me: failed program was:" >&5
28985sed 's/^/| /' conftest.$ac_ext >&5
28986
28987
28988 wx_cv_struct_pw_gecos=no
28989
28990
28991fi
ac1cb8d3 28992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28993
28994
28995fi
28996echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28997echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28998
28999if test "$wx_cv_struct_pw_gecos" = "yes"; then
29000 cat >>confdefs.h <<\_ACEOF
29001#define HAVE_PW_GECOS 1
29002_ACEOF
29003
29004fi
29005
29006
29007if test "$wx_cv_sizeof_wchar_t" != "0"; then
29008 cat >>confdefs.h <<\_ACEOF
29009#define wxUSE_WCHAR_T 1
29010_ACEOF
29011
29012
29013 WCSLEN_FOUND=0
29014 WCHAR_LINK=
29015
29016for ac_func in wcslen
29017do
29018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29019echo "$as_me:$LINENO: checking for $ac_func" >&5
29020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29021if eval "test \"\${$as_ac_var+set}\" = set"; then
29022 echo $ECHO_N "(cached) $ECHO_C" >&6
29023else
29024 cat >conftest.$ac_ext <<_ACEOF
29025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
ac1cb8d3
VS
29030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29032#define $ac_func innocuous_$ac_func
29033
a848cd7e
SC
29034/* System header to define __stub macros and hopefully few prototypes,
29035 which can conflict with char $ac_func (); below.
29036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29037 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29038
a848cd7e
SC
29039#ifdef __STDC__
29040# include <limits.h>
29041#else
29042# include <assert.h>
29043#endif
ac1cb8d3
VS
29044
29045#undef $ac_func
29046
a848cd7e
SC
29047/* Override any gcc2 internal prototype to avoid an error. */
29048#ifdef __cplusplus
29049extern "C"
29050{
29051#endif
29052/* We use char because int might match the return type of a gcc2
29053 builtin and then its argument prototype would still apply. */
29054char $ac_func ();
29055/* The GNU C library defines this for functions which it implements
29056 to always fail with ENOSYS. Some functions are actually named
29057 something starting with __ and the normal name is an alias. */
29058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29059choke me
29060#else
29061char (*f) () = $ac_func;
29062#endif
29063#ifdef __cplusplus
29064}
29065#endif
29066
29067int
29068main ()
29069{
29070return f != $ac_func;
29071 ;
29072 return 0;
29073}
29074_ACEOF
29075rm -f conftest.$ac_objext conftest$ac_exeext
29076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29077 (eval $ac_link) 2>conftest.er1
a848cd7e 29078 ac_status=$?
ac1cb8d3
VS
29079 grep -v '^ *+' conftest.er1 >conftest.err
29080 rm -f conftest.er1
29081 cat conftest.err >&5
a848cd7e
SC
29082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083 (exit $ac_status); } &&
5f652d0d
VS
29084 { ac_try='test -z "$ac_c_werror_flag"
29085 || test ! -s conftest.err'
ac1cb8d3
VS
29086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29087 (eval $ac_try) 2>&5
29088 ac_status=$?
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; } &&
29091 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093 (eval $ac_try) 2>&5
29094 ac_status=$?
29095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096 (exit $ac_status); }; }; then
29097 eval "$as_ac_var=yes"
29098else
29099 echo "$as_me: failed program was:" >&5
29100sed 's/^/| /' conftest.$ac_ext >&5
29101
29102eval "$as_ac_var=no"
29103fi
ac1cb8d3
VS
29104rm -f conftest.err conftest.$ac_objext \
29105 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29106fi
29107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29109if test `eval echo '${'$as_ac_var'}'` = yes; then
29110 cat >>confdefs.h <<_ACEOF
29111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29112_ACEOF
29113 WCSLEN_FOUND=1
29114fi
29115done
29116
29117
29118 if test "$WCSLEN_FOUND" = 0; then
29119 if test "$TOOLKIT" = "MSW"; then
29120 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29121echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29122if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29124else
29125 ac_check_lib_save_LIBS=$LIBS
29126LIBS="-lmsvcrt $LIBS"
29127cat >conftest.$ac_ext <<_ACEOF
29128/* confdefs.h. */
29129_ACEOF
29130cat confdefs.h >>conftest.$ac_ext
29131cat >>conftest.$ac_ext <<_ACEOF
29132/* end confdefs.h. */
29133
29134/* Override any gcc2 internal prototype to avoid an error. */
29135#ifdef __cplusplus
29136extern "C"
29137#endif
29138/* We use char because int might match the return type of a gcc2
29139 builtin and then its argument prototype would still apply. */
29140char wcslen ();
29141int
29142main ()
29143{
29144wcslen ();
29145 ;
29146 return 0;
29147}
29148_ACEOF
29149rm -f conftest.$ac_objext conftest$ac_exeext
29150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29151 (eval $ac_link) 2>conftest.er1
a848cd7e 29152 ac_status=$?
ac1cb8d3
VS
29153 grep -v '^ *+' conftest.er1 >conftest.err
29154 rm -f conftest.er1
29155 cat conftest.err >&5
a848cd7e
SC
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
5f652d0d
VS
29158 { ac_try='test -z "$ac_c_werror_flag"
29159 || test ! -s conftest.err'
ac1cb8d3
VS
29160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29162 ac_status=$?
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; } &&
29165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29167 (eval $ac_try) 2>&5
29168 ac_status=$?
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); }; }; then
29171 ac_cv_lib_msvcrt_wcslen=yes
29172else
29173 echo "$as_me: failed program was:" >&5
29174sed 's/^/| /' conftest.$ac_ext >&5
29175
29176ac_cv_lib_msvcrt_wcslen=no
29177fi
ac1cb8d3
VS
29178rm -f conftest.err conftest.$ac_objext \
29179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29180LIBS=$ac_check_lib_save_LIBS
29181fi
29182echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29183echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29184if test $ac_cv_lib_msvcrt_wcslen = yes; then
29185 WCHAR_OK=1
29186fi
29187
29188 else
29189 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29190echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29191if test "${ac_cv_lib_w_wcslen+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29193else
29194 ac_check_lib_save_LIBS=$LIBS
29195LIBS="-lw $LIBS"
29196cat >conftest.$ac_ext <<_ACEOF
29197/* confdefs.h. */
29198_ACEOF
29199cat confdefs.h >>conftest.$ac_ext
29200cat >>conftest.$ac_ext <<_ACEOF
29201/* end confdefs.h. */
29202
29203/* Override any gcc2 internal prototype to avoid an error. */
29204#ifdef __cplusplus
29205extern "C"
29206#endif
29207/* We use char because int might match the return type of a gcc2
29208 builtin and then its argument prototype would still apply. */
29209char wcslen ();
29210int
29211main ()
29212{
29213wcslen ();
29214 ;
29215 return 0;
29216}
29217_ACEOF
29218rm -f conftest.$ac_objext conftest$ac_exeext
29219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29220 (eval $ac_link) 2>conftest.er1
a848cd7e 29221 ac_status=$?
ac1cb8d3
VS
29222 grep -v '^ *+' conftest.er1 >conftest.err
29223 rm -f conftest.er1
29224 cat conftest.err >&5
a848cd7e
SC
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } &&
5f652d0d
VS
29227 { ac_try='test -z "$ac_c_werror_flag"
29228 || test ! -s conftest.err'
ac1cb8d3
VS
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; } &&
29234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236 (eval $ac_try) 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; }; then
29240 ac_cv_lib_w_wcslen=yes
29241else
29242 echo "$as_me: failed program was:" >&5
29243sed 's/^/| /' conftest.$ac_ext >&5
29244
29245ac_cv_lib_w_wcslen=no
29246fi
ac1cb8d3
VS
29247rm -f conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29249LIBS=$ac_check_lib_save_LIBS
29250fi
29251echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29252echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29253if test $ac_cv_lib_w_wcslen = yes; then
29254
29255 WCHAR_LINK=" -lw"
29256 WCSLEN_FOUND=1
29257
29258fi
29259
29260 fi
29261 fi
29262
29263 if test "$WCSLEN_FOUND" = 1; then
29264 cat >>confdefs.h <<\_ACEOF
29265#define HAVE_WCSLEN 1
29266_ACEOF
29267
29268 fi
29269
473276a9
VS
29270 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29271 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29272 fi
29273
a848cd7e
SC
29274
29275for ac_func in wcsrtombs
29276do
29277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29278echo "$as_me:$LINENO: checking for $ac_func" >&5
29279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29280if eval "test \"\${$as_ac_var+set}\" = set"; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
29283 cat >conftest.$ac_ext <<_ACEOF
29284/* confdefs.h. */
29285_ACEOF
29286cat confdefs.h >>conftest.$ac_ext
29287cat >>conftest.$ac_ext <<_ACEOF
29288/* end confdefs.h. */
ac1cb8d3
VS
29289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29291#define $ac_func innocuous_$ac_func
29292
a848cd7e
SC
29293/* System header to define __stub macros and hopefully few prototypes,
29294 which can conflict with char $ac_func (); below.
29295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29297
a848cd7e
SC
29298#ifdef __STDC__
29299# include <limits.h>
29300#else
29301# include <assert.h>
29302#endif
ac1cb8d3
VS
29303
29304#undef $ac_func
29305
a848cd7e
SC
29306/* Override any gcc2 internal prototype to avoid an error. */
29307#ifdef __cplusplus
29308extern "C"
29309{
29310#endif
29311/* We use char because int might match the return type of a gcc2
29312 builtin and then its argument prototype would still apply. */
29313char $ac_func ();
29314/* The GNU C library defines this for functions which it implements
29315 to always fail with ENOSYS. Some functions are actually named
29316 something starting with __ and the normal name is an alias. */
29317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29318choke me
29319#else
29320char (*f) () = $ac_func;
29321#endif
29322#ifdef __cplusplus
29323}
29324#endif
29325
29326int
29327main ()
29328{
29329return f != $ac_func;
29330 ;
29331 return 0;
29332}
29333_ACEOF
29334rm -f conftest.$ac_objext conftest$ac_exeext
29335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29336 (eval $ac_link) 2>conftest.er1
a848cd7e 29337 ac_status=$?
ac1cb8d3
VS
29338 grep -v '^ *+' conftest.er1 >conftest.err
29339 rm -f conftest.er1
29340 cat conftest.err >&5
a848cd7e
SC
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } &&
5f652d0d
VS
29343 { ac_try='test -z "$ac_c_werror_flag"
29344 || test ! -s conftest.err'
ac1cb8d3
VS
29345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29346 (eval $ac_try) 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; } &&
29350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352 (eval $ac_try) 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
29356 eval "$as_ac_var=yes"
29357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
29361eval "$as_ac_var=no"
29362fi
ac1cb8d3
VS
29363rm -f conftest.err conftest.$ac_objext \
29364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29365fi
29366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29368if test `eval echo '${'$as_ac_var'}'` = yes; then
29369 cat >>confdefs.h <<_ACEOF
29370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29371_ACEOF
29372
29373fi
29374done
29375
29376else
29377 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29378echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29379fi
29380
29381
29382
29383ac_ext=cc
29384ac_cpp='$CXXCPP $CPPFLAGS'
29385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29388
29389
29390
29391for ac_func in vsnprintf
29392do
29393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29394echo "$as_me:$LINENO: checking for $ac_func" >&5
29395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29396if eval "test \"\${$as_ac_var+set}\" = set"; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399 cat >conftest.$ac_ext <<_ACEOF
29400/* confdefs.h. */
29401_ACEOF
29402cat confdefs.h >>conftest.$ac_ext
29403cat >>conftest.$ac_ext <<_ACEOF
29404/* end confdefs.h. */
ac1cb8d3
VS
29405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29407#define $ac_func innocuous_$ac_func
29408
a848cd7e
SC
29409/* System header to define __stub macros and hopefully few prototypes,
29410 which can conflict with char $ac_func (); below.
29411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29412 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29413
a848cd7e
SC
29414#ifdef __STDC__
29415# include <limits.h>
29416#else
29417# include <assert.h>
29418#endif
ac1cb8d3
VS
29419
29420#undef $ac_func
29421
a848cd7e
SC
29422/* Override any gcc2 internal prototype to avoid an error. */
29423#ifdef __cplusplus
29424extern "C"
29425{
29426#endif
29427/* We use char because int might match the return type of a gcc2
29428 builtin and then its argument prototype would still apply. */
29429char $ac_func ();
29430/* The GNU C library defines this for functions which it implements
29431 to always fail with ENOSYS. Some functions are actually named
29432 something starting with __ and the normal name is an alias. */
29433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29434choke me
29435#else
29436char (*f) () = $ac_func;
29437#endif
29438#ifdef __cplusplus
29439}
29440#endif
29441
29442int
29443main ()
29444{
29445return f != $ac_func;
29446 ;
29447 return 0;
29448}
29449_ACEOF
29450rm -f conftest.$ac_objext conftest$ac_exeext
29451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29452 (eval $ac_link) 2>conftest.er1
a848cd7e 29453 ac_status=$?
ac1cb8d3
VS
29454 grep -v '^ *+' conftest.er1 >conftest.err
29455 rm -f conftest.er1
29456 cat conftest.err >&5
a848cd7e
SC
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } &&
5f652d0d
VS
29459 { ac_try='test -z "$ac_cxx_werror_flag"
29460 || test ! -s conftest.err'
ac1cb8d3
VS
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29463 ac_status=$?
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; }; then
29472 eval "$as_ac_var=yes"
29473else
29474 echo "$as_me: failed program was:" >&5
29475sed 's/^/| /' conftest.$ac_ext >&5
29476
29477eval "$as_ac_var=no"
29478fi
ac1cb8d3
VS
29479rm -f conftest.err conftest.$ac_objext \
29480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29481fi
29482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29483echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29484if test `eval echo '${'$as_ac_var'}'` = yes; then
29485 cat >>confdefs.h <<_ACEOF
29486#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29487_ACEOF
29488
29489fi
29490done
29491
29492
29493if test "$ac_cv_func_vsnprintf" = "yes"; then
29494 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29495echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29496if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29498else
29499
29500 cat >conftest.$ac_ext <<_ACEOF
29501/* confdefs.h. */
29502_ACEOF
29503cat confdefs.h >>conftest.$ac_ext
29504cat >>conftest.$ac_ext <<_ACEOF
29505/* end confdefs.h. */
29506
29507 #include <stdio.h>
29508 #include <stdarg.h>
29509
29510int
29511main ()
29512{
29513
29514 char *buf;
29515 va_list ap;
29516 vsnprintf(buf, 10u, "%s", ap);
29517
29518 ;
29519 return 0;
29520}
29521_ACEOF
29522rm -f conftest.$ac_objext
29523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29524 (eval $ac_compile) 2>conftest.er1
a848cd7e 29525 ac_status=$?
ac1cb8d3
VS
29526 grep -v '^ *+' conftest.er1 >conftest.err
29527 rm -f conftest.er1
29528 cat conftest.err >&5
a848cd7e
SC
29529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); } &&
5f652d0d
VS
29531 { ac_try='test -z "$ac_cxx_werror_flag"
29532 || test ! -s conftest.err'
ac1cb8d3
VS
29533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29534 (eval $ac_try) 2>&5
29535 ac_status=$?
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); }; } &&
29538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540 (eval $ac_try) 2>&5
29541 ac_status=$?
29542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543 (exit $ac_status); }; }; then
29544 wx_cv_func_vsnprintf_decl=yes
29545else
29546 echo "$as_me: failed program was:" >&5
29547sed 's/^/| /' conftest.$ac_ext >&5
29548
29549wx_cv_func_vsnprintf_decl=no
29550
29551fi
ac1cb8d3 29552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29553
29554
29555fi
29556echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29557echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29558
29559 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29560 cat >>confdefs.h <<\_ACEOF
29561#define HAVE_VSNPRINTF_DECL 1
29562_ACEOF
29563
29564 fi
29565fi
29566
29567if test "$wxUSE_UNICODE" = yes; then
29568
29569
29570
fbe47c7b
VS
29571
29572
29573
29574for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29575do
29576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29577echo "$as_me:$LINENO: checking for $ac_func" >&5
29578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29579if eval "test \"\${$as_ac_var+set}\" = set"; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29581else
29582 cat >conftest.$ac_ext <<_ACEOF
29583/* confdefs.h. */
29584_ACEOF
29585cat confdefs.h >>conftest.$ac_ext
29586cat >>conftest.$ac_ext <<_ACEOF
29587/* end confdefs.h. */
ac1cb8d3
VS
29588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29590#define $ac_func innocuous_$ac_func
29591
a848cd7e
SC
29592/* System header to define __stub macros and hopefully few prototypes,
29593 which can conflict with char $ac_func (); below.
29594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29595 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29596
a848cd7e
SC
29597#ifdef __STDC__
29598# include <limits.h>
29599#else
29600# include <assert.h>
29601#endif
ac1cb8d3
VS
29602
29603#undef $ac_func
29604
a848cd7e
SC
29605/* Override any gcc2 internal prototype to avoid an error. */
29606#ifdef __cplusplus
29607extern "C"
29608{
29609#endif
29610/* We use char because int might match the return type of a gcc2
29611 builtin and then its argument prototype would still apply. */
29612char $ac_func ();
29613/* The GNU C library defines this for functions which it implements
29614 to always fail with ENOSYS. Some functions are actually named
29615 something starting with __ and the normal name is an alias. */
29616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29617choke me
29618#else
29619char (*f) () = $ac_func;
29620#endif
29621#ifdef __cplusplus
29622}
29623#endif
29624
29625int
29626main ()
29627{
29628return f != $ac_func;
29629 ;
29630 return 0;
29631}
29632_ACEOF
29633rm -f conftest.$ac_objext conftest$ac_exeext
29634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29635 (eval $ac_link) 2>conftest.er1
a848cd7e 29636 ac_status=$?
ac1cb8d3
VS
29637 grep -v '^ *+' conftest.er1 >conftest.err
29638 rm -f conftest.er1
29639 cat conftest.err >&5
a848cd7e
SC
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); } &&
5f652d0d
VS
29642 { ac_try='test -z "$ac_cxx_werror_flag"
29643 || test ! -s conftest.err'
ac1cb8d3
VS
29644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29645 (eval $ac_try) 2>&5
29646 ac_status=$?
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); }; } &&
29649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29651 (eval $ac_try) 2>&5
29652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
29655 eval "$as_ac_var=yes"
29656else
29657 echo "$as_me: failed program was:" >&5
29658sed 's/^/| /' conftest.$ac_ext >&5
29659
29660eval "$as_ac_var=no"
29661fi
ac1cb8d3
VS
29662rm -f conftest.err conftest.$ac_objext \
29663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29664fi
29665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29666echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29667if test `eval echo '${'$as_ac_var'}'` = yes; then
29668 cat >>confdefs.h <<_ACEOF
29669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29670_ACEOF
29671
29672fi
29673done
29674
29675
29676 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29677echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29678 cat >conftest.$ac_ext <<_ACEOF
29679/* confdefs.h. */
29680_ACEOF
29681cat confdefs.h >>conftest.$ac_ext
29682cat >>conftest.$ac_ext <<_ACEOF
29683/* end confdefs.h. */
29684#include <wchar.h>
29685int
29686main ()
29687{
29688&_vsnwprintf;
29689 ;
29690 return 0;
29691}
29692_ACEOF
29693rm -f conftest.$ac_objext
29694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29695 (eval $ac_compile) 2>conftest.er1
a848cd7e 29696 ac_status=$?
ac1cb8d3
VS
29697 grep -v '^ *+' conftest.er1 >conftest.err
29698 rm -f conftest.er1
29699 cat conftest.err >&5
a848cd7e
SC
29700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29701 (exit $ac_status); } &&
5f652d0d
VS
29702 { ac_try='test -z "$ac_cxx_werror_flag"
29703 || test ! -s conftest.err'
ac1cb8d3
VS
29704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29705 (eval $ac_try) 2>&5
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; } &&
29709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711 (eval $ac_try) 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; }; then
29715 echo "$as_me:$LINENO: result: yes" >&5
29716echo "${ECHO_T}yes" >&6
29717 cat >>confdefs.h <<\_ACEOF
29718#define HAVE__VSNWPRINTF 1
29719_ACEOF
29720
29721else
29722 echo "$as_me: failed program was:" >&5
29723sed 's/^/| /' conftest.$ac_ext >&5
29724
29725echo "$as_me:$LINENO: result: no" >&5
29726echo "${ECHO_T}no" >&6
29727fi
ac1cb8d3 29728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29729fi
29730
29731ac_ext=c
29732ac_cpp='$CPP $CPPFLAGS'
29733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29735ac_compiler_gnu=$ac_cv_c_compiler_gnu
29736
29737
29738
29739
29740if test "$TOOLKIT" != "MSW"; then
29741
29742
29743
29744
29745ac_ext=cc
29746ac_cpp='$CXXCPP $CPPFLAGS'
29747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29750
29751
29752
29753
29754# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29755if test "${with_libiconv_prefix+set}" = set; then
29756 withval="$with_libiconv_prefix"
29757
29758 for dir in `echo "$withval" | tr : ' '`; do
29759 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29760 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29761 done
29762
29763fi;
29764
29765 echo "$as_me:$LINENO: checking for iconv" >&5
29766echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29767if test "${am_cv_func_iconv+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29769else
29770
29771 am_cv_func_iconv="no, consider installing GNU libiconv"
29772 am_cv_lib_iconv=no
29773 cat >conftest.$ac_ext <<_ACEOF
29774/* confdefs.h. */
29775_ACEOF
29776cat confdefs.h >>conftest.$ac_ext
29777cat >>conftest.$ac_ext <<_ACEOF
29778/* end confdefs.h. */
29779#include <stdlib.h>
29780#include <iconv.h>
29781int
29782main ()
29783{
29784iconv_t cd = iconv_open("","");
29785 iconv(cd,NULL,NULL,NULL,NULL);
29786 iconv_close(cd);
29787 ;
29788 return 0;
29789}
29790_ACEOF
29791rm -f conftest.$ac_objext conftest$ac_exeext
29792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29793 (eval $ac_link) 2>conftest.er1
a848cd7e 29794 ac_status=$?
ac1cb8d3
VS
29795 grep -v '^ *+' conftest.er1 >conftest.err
29796 rm -f conftest.er1
29797 cat conftest.err >&5
a848cd7e
SC
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); } &&
5f652d0d
VS
29800 { ac_try='test -z "$ac_cxx_werror_flag"
29801 || test ! -s conftest.err'
ac1cb8d3
VS
29802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29803 (eval $ac_try) 2>&5
29804 ac_status=$?
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); }; } &&
29807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29809 (eval $ac_try) 2>&5
29810 ac_status=$?
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); }; }; then
29813 am_cv_func_iconv=yes
29814else
29815 echo "$as_me: failed program was:" >&5
29816sed 's/^/| /' conftest.$ac_ext >&5
29817
29818fi
ac1cb8d3
VS
29819rm -f conftest.err conftest.$ac_objext \
29820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29821 if test "$am_cv_func_iconv" != yes; then
29822 am_save_LIBS="$LIBS"
29823 LIBS="$LIBS -liconv"
29824 cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830#include <stdlib.h>
29831#include <iconv.h>
29832int
29833main ()
29834{
29835iconv_t cd = iconv_open("","");
29836 iconv(cd,NULL,NULL,NULL,NULL);
29837 iconv_close(cd);
29838 ;
29839 return 0;
29840}
29841_ACEOF
29842rm -f conftest.$ac_objext conftest$ac_exeext
29843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29844 (eval $ac_link) 2>conftest.er1
a848cd7e 29845 ac_status=$?
ac1cb8d3
VS
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
a848cd7e
SC
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
5f652d0d
VS
29851 { ac_try='test -z "$ac_cxx_werror_flag"
29852 || test ! -s conftest.err'
ac1cb8d3
VS
29853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854 (eval $ac_try) 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29860 (eval $ac_try) 2>&5
29861 ac_status=$?
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); }; }; then
29864 am_cv_lib_iconv=yes
29865 am_cv_func_iconv=yes
29866else
29867 echo "$as_me: failed program was:" >&5
29868sed 's/^/| /' conftest.$ac_ext >&5
29869
29870fi
ac1cb8d3
VS
29871rm -f conftest.err conftest.$ac_objext \
29872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29873 LIBS="$am_save_LIBS"
29874 fi
29875
29876fi
29877echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29878echo "${ECHO_T}$am_cv_func_iconv" >&6
29879 if test "$am_cv_func_iconv" = yes; then
29880
29881cat >>confdefs.h <<\_ACEOF
29882#define HAVE_ICONV 1
29883_ACEOF
29884
29885 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29886echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29887if test "${wx_cv_func_iconv_const+set}" = set; then
29888 echo $ECHO_N "(cached) $ECHO_C" >&6
29889else
29890 cat >conftest.$ac_ext <<_ACEOF
29891/* confdefs.h. */
29892_ACEOF
29893cat confdefs.h >>conftest.$ac_ext
29894cat >>conftest.$ac_ext <<_ACEOF
29895/* end confdefs.h. */
29896
29897#include <stdlib.h>
29898#include <iconv.h>
29899extern
29900#ifdef __cplusplus
29901"C"
29902#endif
29903#if defined(__STDC__) || defined(__cplusplus)
29904size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29905#else
29906size_t iconv();
29907#endif
29908
29909int
29910main ()
29911{
29912
29913 ;
29914 return 0;
29915}
29916_ACEOF
29917rm -f conftest.$ac_objext
29918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29919 (eval $ac_compile) 2>conftest.er1
a848cd7e 29920 ac_status=$?
ac1cb8d3
VS
29921 grep -v '^ *+' conftest.er1 >conftest.err
29922 rm -f conftest.er1
29923 cat conftest.err >&5
a848cd7e
SC
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
5f652d0d
VS
29926 { ac_try='test -z "$ac_cxx_werror_flag"
29927 || test ! -s conftest.err'
ac1cb8d3
VS
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29930 ac_status=$?
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; } &&
29933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29936 ac_status=$?
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; }; then
29939 wx_cv_func_iconv_const="no"
29940else
29941 echo "$as_me: failed program was:" >&5
29942sed 's/^/| /' conftest.$ac_ext >&5
29943
29944wx_cv_func_iconv_const="yes"
29945
29946fi
ac1cb8d3 29947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29948
29949fi
29950echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29951echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29952
29953 iconv_const=
29954 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29955 iconv_const="const"
29956 fi
29957
29958
29959cat >>confdefs.h <<_ACEOF
29960#define ICONV_CONST $iconv_const
29961_ACEOF
29962
29963 fi
29964 LIBICONV=
29965 if test "$am_cv_lib_iconv" = yes; then
29966 LIBICONV="-liconv"
29967 fi
29968
29969
29970LIBS="$LIBICONV $LIBS"
29971ac_ext=c
29972ac_cpp='$CPP $CPPFLAGS'
29973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29975ac_compiler_gnu=$ac_cv_c_compiler_gnu
29976
29977
29978if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29979
29980for ac_func in sigaction
29981do
29982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29983echo "$as_me:$LINENO: checking for $ac_func" >&5
29984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29985if eval "test \"\${$as_ac_var+set}\" = set"; then
29986 echo $ECHO_N "(cached) $ECHO_C" >&6
29987else
29988 cat >conftest.$ac_ext <<_ACEOF
29989/* confdefs.h. */
29990_ACEOF
29991cat confdefs.h >>conftest.$ac_ext
29992cat >>conftest.$ac_ext <<_ACEOF
29993/* end confdefs.h. */
ac1cb8d3
VS
29994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29996#define $ac_func innocuous_$ac_func
29997
a848cd7e
SC
29998/* System header to define __stub macros and hopefully few prototypes,
29999 which can conflict with char $ac_func (); below.
30000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30001 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30002
a848cd7e
SC
30003#ifdef __STDC__
30004# include <limits.h>
30005#else
30006# include <assert.h>
30007#endif
ac1cb8d3
VS
30008
30009#undef $ac_func
30010
a848cd7e
SC
30011/* Override any gcc2 internal prototype to avoid an error. */
30012#ifdef __cplusplus
30013extern "C"
30014{
30015#endif
30016/* We use char because int might match the return type of a gcc2
30017 builtin and then its argument prototype would still apply. */
30018char $ac_func ();
30019/* The GNU C library defines this for functions which it implements
30020 to always fail with ENOSYS. Some functions are actually named
30021 something starting with __ and the normal name is an alias. */
30022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30023choke me
30024#else
30025char (*f) () = $ac_func;
30026#endif
30027#ifdef __cplusplus
30028}
30029#endif
30030
30031int
30032main ()
30033{
30034return f != $ac_func;
30035 ;
30036 return 0;
30037}
30038_ACEOF
30039rm -f conftest.$ac_objext conftest$ac_exeext
30040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30041 (eval $ac_link) 2>conftest.er1
a848cd7e 30042 ac_status=$?
ac1cb8d3
VS
30043 grep -v '^ *+' conftest.er1 >conftest.err
30044 rm -f conftest.er1
30045 cat conftest.err >&5
a848cd7e
SC
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } &&
5f652d0d
VS
30048 { ac_try='test -z "$ac_c_werror_flag"
30049 || test ! -s conftest.err'
ac1cb8d3
VS
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; } &&
30055 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 eval "$as_ac_var=yes"
30062else
30063 echo "$as_me: failed program was:" >&5
30064sed 's/^/| /' conftest.$ac_ext >&5
30065
30066eval "$as_ac_var=no"
30067fi
ac1cb8d3
VS
30068rm -f conftest.err conftest.$ac_objext \
30069 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30070fi
30071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30073if test `eval echo '${'$as_ac_var'}'` = yes; then
30074 cat >>confdefs.h <<_ACEOF
30075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30076_ACEOF
30077
30078fi
30079done
30080
30081
30082 if test "$ac_cv_func_sigaction" = "no"; then
30083 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30084echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30085 wxUSE_ON_FATAL_EXCEPTION=no
30086 fi
30087
30088 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30089
30090
30091 ac_ext=cc
30092ac_cpp='$CXXCPP $CPPFLAGS'
30093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30096
30097
30098 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30099echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30100if test "${wx_cv_type_sa_handler+set}" = set; then
30101 echo $ECHO_N "(cached) $ECHO_C" >&6
30102else
30103
30104 cat >conftest.$ac_ext <<_ACEOF
30105/* confdefs.h. */
30106_ACEOF
30107cat confdefs.h >>conftest.$ac_ext
30108cat >>conftest.$ac_ext <<_ACEOF
30109/* end confdefs.h. */
30110#include <signal.h>
30111int
30112main ()
30113{
30114
30115 extern void testSigHandler(int);
30116
30117 struct sigaction sa;
30118 sa.sa_handler = testSigHandler;
30119
30120 ;
30121 return 0;
30122}
30123_ACEOF
30124rm -f conftest.$ac_objext
30125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30126 (eval $ac_compile) 2>conftest.er1
a848cd7e 30127 ac_status=$?
ac1cb8d3
VS
30128 grep -v '^ *+' conftest.er1 >conftest.err
30129 rm -f conftest.er1
30130 cat conftest.err >&5
a848cd7e
SC
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); } &&
5f652d0d
VS
30133 { ac_try='test -z "$ac_cxx_werror_flag"
30134 || test ! -s conftest.err'
ac1cb8d3
VS
30135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136 (eval $ac_try) 2>&5
30137 ac_status=$?
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; } &&
30140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30143 ac_status=$?
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; }; then
30146
30147 wx_cv_type_sa_handler=int
30148
30149else
30150 echo "$as_me: failed program was:" >&5
30151sed 's/^/| /' conftest.$ac_ext >&5
30152
30153
30154 wx_cv_type_sa_handler=void
30155
30156fi
ac1cb8d3 30157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30158
30159fi
30160echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30161echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30162
30163 ac_ext=c
30164ac_cpp='$CPP $CPPFLAGS'
30165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30167ac_compiler_gnu=$ac_cv_c_compiler_gnu
30168
30169
30170 cat >>confdefs.h <<_ACEOF
30171#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30172_ACEOF
30173
30174 fi
30175fi
30176
30177
30178
30179for ac_func in mkstemp mktemp
30180do
30181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30182echo "$as_me:$LINENO: checking for $ac_func" >&5
30183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30184if eval "test \"\${$as_ac_var+set}\" = set"; then
30185 echo $ECHO_N "(cached) $ECHO_C" >&6
30186else
30187 cat >conftest.$ac_ext <<_ACEOF
30188/* confdefs.h. */
30189_ACEOF
30190cat confdefs.h >>conftest.$ac_ext
30191cat >>conftest.$ac_ext <<_ACEOF
30192/* end confdefs.h. */
ac1cb8d3
VS
30193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30195#define $ac_func innocuous_$ac_func
30196
a848cd7e
SC
30197/* System header to define __stub macros and hopefully few prototypes,
30198 which can conflict with char $ac_func (); below.
30199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30200 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30201
a848cd7e
SC
30202#ifdef __STDC__
30203# include <limits.h>
30204#else
30205# include <assert.h>
30206#endif
ac1cb8d3
VS
30207
30208#undef $ac_func
30209
a848cd7e
SC
30210/* Override any gcc2 internal prototype to avoid an error. */
30211#ifdef __cplusplus
30212extern "C"
30213{
30214#endif
30215/* We use char because int might match the return type of a gcc2
30216 builtin and then its argument prototype would still apply. */
30217char $ac_func ();
30218/* The GNU C library defines this for functions which it implements
30219 to always fail with ENOSYS. Some functions are actually named
30220 something starting with __ and the normal name is an alias. */
30221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30222choke me
30223#else
30224char (*f) () = $ac_func;
30225#endif
30226#ifdef __cplusplus
30227}
30228#endif
30229
30230int
30231main ()
30232{
30233return f != $ac_func;
30234 ;
30235 return 0;
30236}
30237_ACEOF
30238rm -f conftest.$ac_objext conftest$ac_exeext
30239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30240 (eval $ac_link) 2>conftest.er1
a848cd7e 30241 ac_status=$?
ac1cb8d3
VS
30242 grep -v '^ *+' conftest.er1 >conftest.err
30243 rm -f conftest.er1
30244 cat conftest.err >&5
a848cd7e
SC
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); } &&
5f652d0d
VS
30247 { ac_try='test -z "$ac_c_werror_flag"
30248 || test ! -s conftest.err'
ac1cb8d3
VS
30249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30250 (eval $ac_try) 2>&5
30251 ac_status=$?
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); }; } &&
30254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30256 (eval $ac_try) 2>&5
30257 ac_status=$?
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); }; }; then
30260 eval "$as_ac_var=yes"
30261else
30262 echo "$as_me: failed program was:" >&5
30263sed 's/^/| /' conftest.$ac_ext >&5
30264
30265eval "$as_ac_var=no"
30266fi
ac1cb8d3
VS
30267rm -f conftest.err conftest.$ac_objext \
30268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30269fi
30270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30272if test `eval echo '${'$as_ac_var'}'` = yes; then
30273 cat >>confdefs.h <<_ACEOF
30274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30275_ACEOF
30276 break
30277fi
30278done
30279
30280
30281echo "$as_me:$LINENO: checking for statfs" >&5
30282echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30283if test "${wx_cv_func_statfs+set}" = set; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285else
30286 cat >conftest.$ac_ext <<_ACEOF
30287/* confdefs.h. */
30288_ACEOF
30289cat confdefs.h >>conftest.$ac_ext
30290cat >>conftest.$ac_ext <<_ACEOF
30291/* end confdefs.h. */
30292
30293 #if defined(__BSD__)
30294 #include <sys/param.h>
30295 #include <sys/mount.h>
30296 #else
30297 #include <sys/vfs.h>
30298 #endif
30299
30300int
30301main ()
30302{
30303
30304 long l;
30305 struct statfs fs;
30306 statfs("/", &fs);
30307 l = fs.f_bsize;
30308 l += fs.f_blocks;
30309 l += fs.f_bavail;
30310
30311 ;
30312 return 0;
30313}
30314_ACEOF
30315rm -f conftest.$ac_objext
30316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30317 (eval $ac_compile) 2>conftest.er1
a848cd7e 30318 ac_status=$?
ac1cb8d3
VS
30319 grep -v '^ *+' conftest.er1 >conftest.err
30320 rm -f conftest.er1
30321 cat conftest.err >&5
a848cd7e
SC
30322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323 (exit $ac_status); } &&
5f652d0d
VS
30324 { ac_try='test -z "$ac_c_werror_flag"
30325 || test ! -s conftest.err'
ac1cb8d3
VS
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30328 ac_status=$?
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; } &&
30331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333 (eval $ac_try) 2>&5
30334 ac_status=$?
30335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336 (exit $ac_status); }; }; then
30337
30338 wx_cv_func_statfs=yes
30339
30340else
30341 echo "$as_me: failed program was:" >&5
30342sed 's/^/| /' conftest.$ac_ext >&5
30343
30344
30345 wx_cv_func_statfs=no
30346
30347
30348fi
ac1cb8d3 30349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30350
30351fi
30352echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30353echo "${ECHO_T}$wx_cv_func_statfs" >&6
30354
30355if test "$wx_cv_func_statfs" = "yes"; then
30356 wx_cv_type_statvfs_t="struct statfs"
30357 cat >>confdefs.h <<\_ACEOF
30358#define HAVE_STATFS 1
30359_ACEOF
30360
30361else
30362 echo "$as_me:$LINENO: checking for statvfs" >&5
30363echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30364if test "${wx_cv_func_statvfs+set}" = set; then
30365 echo $ECHO_N "(cached) $ECHO_C" >&6
30366else
30367 cat >conftest.$ac_ext <<_ACEOF
30368/* confdefs.h. */
30369_ACEOF
30370cat confdefs.h >>conftest.$ac_ext
30371cat >>conftest.$ac_ext <<_ACEOF
30372/* end confdefs.h. */
30373
30374 #include <stddef.h>
30375 #include <sys/statvfs.h>
30376
30377int
30378main ()
30379{
30380
30381 statvfs("/", NULL);
30382
30383 ;
30384 return 0;
30385}
30386_ACEOF
30387rm -f conftest.$ac_objext
30388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30389 (eval $ac_compile) 2>conftest.er1
a848cd7e 30390 ac_status=$?
ac1cb8d3
VS
30391 grep -v '^ *+' conftest.er1 >conftest.err
30392 rm -f conftest.er1
30393 cat conftest.err >&5
a848cd7e
SC
30394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395 (exit $ac_status); } &&
5f652d0d
VS
30396 { ac_try='test -z "$ac_c_werror_flag"
30397 || test ! -s conftest.err'
ac1cb8d3
VS
30398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30399 (eval $ac_try) 2>&5
30400 ac_status=$?
30401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402 (exit $ac_status); }; } &&
30403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405 (eval $ac_try) 2>&5
30406 ac_status=$?
30407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408 (exit $ac_status); }; }; then
30409 wx_cv_func_statvfs=yes
30410else
30411 echo "$as_me: failed program was:" >&5
30412sed 's/^/| /' conftest.$ac_ext >&5
30413
30414wx_cv_func_statvfs=no
30415
30416fi
ac1cb8d3 30417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30418
30419fi
30420echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30421echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30422
30423 if test "$wx_cv_func_statvfs" = "yes"; then
30424
30425
30426 ac_ext=cc
30427ac_cpp='$CXXCPP $CPPFLAGS'
30428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30431
30432
30433 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30434echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30435if test "${wx_cv_type_statvfs_t+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30437else
30438 cat >conftest.$ac_ext <<_ACEOF
30439/* confdefs.h. */
30440_ACEOF
30441cat confdefs.h >>conftest.$ac_ext
30442cat >>conftest.$ac_ext <<_ACEOF
30443/* end confdefs.h. */
30444
30445 #include <sys/statvfs.h>
30446
30447int
30448main ()
30449{
30450
30451 long l;
30452 statvfs_t fs;
30453 statvfs("/", &fs);
30454 l = fs.f_bsize;
30455 l += fs.f_blocks;
30456 l += fs.f_bavail;
30457
30458 ;
30459 return 0;
30460}
30461_ACEOF
30462rm -f conftest.$ac_objext
30463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30464 (eval $ac_compile) 2>conftest.er1
a848cd7e 30465 ac_status=$?
ac1cb8d3
VS
30466 grep -v '^ *+' conftest.er1 >conftest.err
30467 rm -f conftest.er1
30468 cat conftest.err >&5
a848cd7e
SC
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } &&
5f652d0d
VS
30471 { ac_try='test -z "$ac_cxx_werror_flag"
30472 || test ! -s conftest.err'
ac1cb8d3
VS
30473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474 (eval $ac_try) 2>&5
30475 ac_status=$?
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); }; } &&
30478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480 (eval $ac_try) 2>&5
30481 ac_status=$?
30482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483 (exit $ac_status); }; }; then
30484 wx_cv_type_statvfs_t=statvfs_t
30485else
30486 echo "$as_me: failed program was:" >&5
30487sed 's/^/| /' conftest.$ac_ext >&5
30488
30489
30490 cat >conftest.$ac_ext <<_ACEOF
30491/* confdefs.h. */
30492_ACEOF
30493cat confdefs.h >>conftest.$ac_ext
30494cat >>conftest.$ac_ext <<_ACEOF
30495/* end confdefs.h. */
30496
30497 #include <sys/statvfs.h>
30498
30499int
30500main ()
30501{
30502
30503 long l;
30504 struct statvfs fs;
30505 statvfs("/", &fs);
30506 l = fs.f_bsize;
30507 l += fs.f_blocks;
30508 l += fs.f_bavail;
30509
30510 ;
30511 return 0;
30512}
30513_ACEOF
30514rm -f conftest.$ac_objext
30515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30516 (eval $ac_compile) 2>conftest.er1
a848cd7e 30517 ac_status=$?
ac1cb8d3
VS
30518 grep -v '^ *+' conftest.er1 >conftest.err
30519 rm -f conftest.er1
30520 cat conftest.err >&5
a848cd7e
SC
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); } &&
5f652d0d
VS
30523 { ac_try='test -z "$ac_cxx_werror_flag"
30524 || test ! -s conftest.err'
ac1cb8d3
VS
30525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526 (eval $ac_try) 2>&5
30527 ac_status=$?
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; } &&
30530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532 (eval $ac_try) 2>&5
30533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; }; then
30536 wx_cv_type_statvfs_t="struct statvfs"
30537else
30538 echo "$as_me: failed program was:" >&5
30539sed 's/^/| /' conftest.$ac_ext >&5
30540
30541wx_cv_type_statvfs_t="unknown"
30542
30543fi
ac1cb8d3 30544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30545
30546
30547fi
ac1cb8d3 30548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30549
30550fi
30551echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30552echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30553
30554 ac_ext=c
30555ac_cpp='$CPP $CPPFLAGS'
30556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30558ac_compiler_gnu=$ac_cv_c_compiler_gnu
30559
30560
30561 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30562 cat >>confdefs.h <<\_ACEOF
30563#define HAVE_STATVFS 1
30564_ACEOF
30565
30566 fi
30567 else
30568 wx_cv_type_statvfs_t="unknown"
30569 fi
30570fi
30571
30572if test "$wx_cv_type_statvfs_t" != "unknown"; then
30573 cat >>confdefs.h <<_ACEOF
30574#define WX_STATFS_T $wx_cv_type_statvfs_t
30575_ACEOF
30576
30577else
30578 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30579echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30580fi
30581
30582if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30583
30584
30585for ac_func in fcntl flock
30586do
30587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30588echo "$as_me:$LINENO: checking for $ac_func" >&5
30589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30590if eval "test \"\${$as_ac_var+set}\" = set"; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
30592else
30593 cat >conftest.$ac_ext <<_ACEOF
30594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
ac1cb8d3
VS
30599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30601#define $ac_func innocuous_$ac_func
30602
a848cd7e
SC
30603/* System header to define __stub macros and hopefully few prototypes,
30604 which can conflict with char $ac_func (); below.
30605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30606 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30607
a848cd7e
SC
30608#ifdef __STDC__
30609# include <limits.h>
30610#else
30611# include <assert.h>
30612#endif
ac1cb8d3
VS
30613
30614#undef $ac_func
30615
a848cd7e
SC
30616/* Override any gcc2 internal prototype to avoid an error. */
30617#ifdef __cplusplus
30618extern "C"
30619{
30620#endif
30621/* We use char because int might match the return type of a gcc2
30622 builtin and then its argument prototype would still apply. */
30623char $ac_func ();
30624/* The GNU C library defines this for functions which it implements
30625 to always fail with ENOSYS. Some functions are actually named
30626 something starting with __ and the normal name is an alias. */
30627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30628choke me
30629#else
30630char (*f) () = $ac_func;
30631#endif
30632#ifdef __cplusplus
30633}
30634#endif
30635
30636int
30637main ()
30638{
30639return f != $ac_func;
30640 ;
30641 return 0;
30642}
30643_ACEOF
30644rm -f conftest.$ac_objext conftest$ac_exeext
30645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30646 (eval $ac_link) 2>conftest.er1
a848cd7e 30647 ac_status=$?
ac1cb8d3
VS
30648 grep -v '^ *+' conftest.er1 >conftest.err
30649 rm -f conftest.er1
30650 cat conftest.err >&5
a848cd7e
SC
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); } &&
5f652d0d
VS
30653 { ac_try='test -z "$ac_c_werror_flag"
30654 || test ! -s conftest.err'
ac1cb8d3
VS
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30662 (eval $ac_try) 2>&5
30663 ac_status=$?
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 eval "$as_ac_var=yes"
30667else
30668 echo "$as_me: failed program was:" >&5
30669sed 's/^/| /' conftest.$ac_ext >&5
30670
30671eval "$as_ac_var=no"
30672fi
ac1cb8d3
VS
30673rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30675fi
30676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30678if test `eval echo '${'$as_ac_var'}'` = yes; then
30679 cat >>confdefs.h <<_ACEOF
30680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681_ACEOF
30682 break
30683fi
30684done
30685
30686
30687 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30688 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30689echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30690 wxUSE_SNGLINST_CHECKER=no
30691 fi
30692fi
30693
30694
30695for ac_func in timegm
30696do
30697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30698echo "$as_me:$LINENO: checking for $ac_func" >&5
30699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30700if eval "test \"\${$as_ac_var+set}\" = set"; then
30701 echo $ECHO_N "(cached) $ECHO_C" >&6
30702else
30703 cat >conftest.$ac_ext <<_ACEOF
30704/* confdefs.h. */
30705_ACEOF
30706cat confdefs.h >>conftest.$ac_ext
30707cat >>conftest.$ac_ext <<_ACEOF
30708/* end confdefs.h. */
ac1cb8d3
VS
30709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30711#define $ac_func innocuous_$ac_func
30712
a848cd7e
SC
30713/* System header to define __stub macros and hopefully few prototypes,
30714 which can conflict with char $ac_func (); below.
30715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30716 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30717
a848cd7e
SC
30718#ifdef __STDC__
30719# include <limits.h>
30720#else
30721# include <assert.h>
30722#endif
ac1cb8d3
VS
30723
30724#undef $ac_func
30725
a848cd7e
SC
30726/* Override any gcc2 internal prototype to avoid an error. */
30727#ifdef __cplusplus
30728extern "C"
30729{
30730#endif
30731/* We use char because int might match the return type of a gcc2
30732 builtin and then its argument prototype would still apply. */
30733char $ac_func ();
30734/* The GNU C library defines this for functions which it implements
30735 to always fail with ENOSYS. Some functions are actually named
30736 something starting with __ and the normal name is an alias. */
30737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30738choke me
30739#else
30740char (*f) () = $ac_func;
30741#endif
30742#ifdef __cplusplus
30743}
30744#endif
30745
30746int
30747main ()
30748{
30749return f != $ac_func;
30750 ;
30751 return 0;
30752}
30753_ACEOF
30754rm -f conftest.$ac_objext conftest$ac_exeext
30755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30756 (eval $ac_link) 2>conftest.er1
a848cd7e 30757 ac_status=$?
ac1cb8d3
VS
30758 grep -v '^ *+' conftest.er1 >conftest.err
30759 rm -f conftest.er1
30760 cat conftest.err >&5
a848cd7e
SC
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } &&
5f652d0d
VS
30763 { ac_try='test -z "$ac_c_werror_flag"
30764 || test ! -s conftest.err'
ac1cb8d3
VS
30765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30766 (eval $ac_try) 2>&5
30767 ac_status=$?
30768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30769 (exit $ac_status); }; } &&
30770 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30772 (eval $ac_try) 2>&5
30773 ac_status=$?
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775 (exit $ac_status); }; }; then
30776 eval "$as_ac_var=yes"
30777else
30778 echo "$as_me: failed program was:" >&5
30779sed 's/^/| /' conftest.$ac_ext >&5
30780
30781eval "$as_ac_var=no"
30782fi
ac1cb8d3
VS
30783rm -f conftest.err conftest.$ac_objext \
30784 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30785fi
30786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30787echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30788if test `eval echo '${'$as_ac_var'}'` = yes; then
30789 cat >>confdefs.h <<_ACEOF
30790#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30791_ACEOF
30792
30793fi
30794done
30795
30796
30797
30798
30799for ac_func in putenv setenv
30800do
30801as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30802echo "$as_me:$LINENO: checking for $ac_func" >&5
30803echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30804if eval "test \"\${$as_ac_var+set}\" = set"; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30806else
30807 cat >conftest.$ac_ext <<_ACEOF
30808/* confdefs.h. */
30809_ACEOF
30810cat confdefs.h >>conftest.$ac_ext
30811cat >>conftest.$ac_ext <<_ACEOF
30812/* end confdefs.h. */
ac1cb8d3
VS
30813/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30815#define $ac_func innocuous_$ac_func
30816
a848cd7e
SC
30817/* System header to define __stub macros and hopefully few prototypes,
30818 which can conflict with char $ac_func (); below.
30819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30820 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30821
a848cd7e
SC
30822#ifdef __STDC__
30823# include <limits.h>
30824#else
30825# include <assert.h>
30826#endif
ac1cb8d3
VS
30827
30828#undef $ac_func
30829
a848cd7e
SC
30830/* Override any gcc2 internal prototype to avoid an error. */
30831#ifdef __cplusplus
30832extern "C"
30833{
30834#endif
30835/* We use char because int might match the return type of a gcc2
30836 builtin and then its argument prototype would still apply. */
30837char $ac_func ();
30838/* The GNU C library defines this for functions which it implements
30839 to always fail with ENOSYS. Some functions are actually named
30840 something starting with __ and the normal name is an alias. */
30841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30842choke me
30843#else
30844char (*f) () = $ac_func;
30845#endif
30846#ifdef __cplusplus
30847}
30848#endif
30849
30850int
30851main ()
30852{
30853return f != $ac_func;
30854 ;
30855 return 0;
30856}
30857_ACEOF
30858rm -f conftest.$ac_objext conftest$ac_exeext
30859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30860 (eval $ac_link) 2>conftest.er1
a848cd7e 30861 ac_status=$?
ac1cb8d3
VS
30862 grep -v '^ *+' conftest.er1 >conftest.err
30863 rm -f conftest.er1
30864 cat conftest.err >&5
a848cd7e
SC
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); } &&
5f652d0d
VS
30867 { ac_try='test -z "$ac_c_werror_flag"
30868 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876 (eval $ac_try) 2>&5
30877 ac_status=$?
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); }; }; then
30880 eval "$as_ac_var=yes"
30881else
30882 echo "$as_me: failed program was:" >&5
30883sed 's/^/| /' conftest.$ac_ext >&5
30884
30885eval "$as_ac_var=no"
30886fi
ac1cb8d3
VS
30887rm -f conftest.err conftest.$ac_objext \
30888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30889fi
30890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30892if test `eval echo '${'$as_ac_var'}'` = yes; then
30893 cat >>confdefs.h <<_ACEOF
30894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30895_ACEOF
30896 break
30897fi
30898done
30899
30900
30901HAVE_SOME_SLEEP_FUNC=0
30902if test "$USE_BEOS" = 1; then
30903 cat >>confdefs.h <<\_ACEOF
30904#define HAVE_SLEEP 1
30905_ACEOF
30906
30907 HAVE_SOME_SLEEP_FUNC=1
30908fi
30909
30910if test "$USE_DARWIN" = 1; then
30911 cat >>confdefs.h <<\_ACEOF
30912#define HAVE_USLEEP 1
30913_ACEOF
30914
30915 HAVE_SOME_SLEEP_FUNC=1
30916fi
30917
30918if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30919 POSIX4_LINK=
30920
30921for ac_func in nanosleep
30922do
30923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30924echo "$as_me:$LINENO: checking for $ac_func" >&5
30925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30926if eval "test \"\${$as_ac_var+set}\" = set"; then
30927 echo $ECHO_N "(cached) $ECHO_C" >&6
30928else
30929 cat >conftest.$ac_ext <<_ACEOF
30930/* confdefs.h. */
30931_ACEOF
30932cat confdefs.h >>conftest.$ac_ext
30933cat >>conftest.$ac_ext <<_ACEOF
30934/* end confdefs.h. */
ac1cb8d3
VS
30935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30937#define $ac_func innocuous_$ac_func
30938
a848cd7e
SC
30939/* System header to define __stub macros and hopefully few prototypes,
30940 which can conflict with char $ac_func (); below.
30941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30942 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30943
a848cd7e
SC
30944#ifdef __STDC__
30945# include <limits.h>
30946#else
30947# include <assert.h>
30948#endif
ac1cb8d3
VS
30949
30950#undef $ac_func
30951
a848cd7e
SC
30952/* Override any gcc2 internal prototype to avoid an error. */
30953#ifdef __cplusplus
30954extern "C"
30955{
30956#endif
30957/* We use char because int might match the return type of a gcc2
30958 builtin and then its argument prototype would still apply. */
30959char $ac_func ();
30960/* The GNU C library defines this for functions which it implements
30961 to always fail with ENOSYS. Some functions are actually named
30962 something starting with __ and the normal name is an alias. */
30963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30964choke me
30965#else
30966char (*f) () = $ac_func;
30967#endif
30968#ifdef __cplusplus
30969}
30970#endif
30971
30972int
30973main ()
30974{
30975return f != $ac_func;
30976 ;
30977 return 0;
30978}
30979_ACEOF
30980rm -f conftest.$ac_objext conftest$ac_exeext
30981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30982 (eval $ac_link) 2>conftest.er1
a848cd7e 30983 ac_status=$?
ac1cb8d3
VS
30984 grep -v '^ *+' conftest.er1 >conftest.err
30985 rm -f conftest.er1
30986 cat conftest.err >&5
a848cd7e
SC
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); } &&
5f652d0d
VS
30989 { ac_try='test -z "$ac_c_werror_flag"
30990 || test ! -s conftest.err'
ac1cb8d3
VS
30991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992 (eval $ac_try) 2>&5
30993 ac_status=$?
30994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995 (exit $ac_status); }; } &&
30996 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998 (eval $ac_try) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
31002 eval "$as_ac_var=yes"
31003else
31004 echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
31007eval "$as_ac_var=no"
31008fi
ac1cb8d3
VS
31009rm -f conftest.err conftest.$ac_objext \
31010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31011fi
31012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31014if test `eval echo '${'$as_ac_var'}'` = yes; then
31015 cat >>confdefs.h <<_ACEOF
31016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31017_ACEOF
31018 cat >>confdefs.h <<\_ACEOF
31019#define HAVE_NANOSLEEP 1
31020_ACEOF
31021
31022else
31023
31024 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31025echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31026if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31027 echo $ECHO_N "(cached) $ECHO_C" >&6
31028else
31029 ac_check_lib_save_LIBS=$LIBS
31030LIBS="-lposix4 $LIBS"
31031cat >conftest.$ac_ext <<_ACEOF
31032/* confdefs.h. */
31033_ACEOF
31034cat confdefs.h >>conftest.$ac_ext
31035cat >>conftest.$ac_ext <<_ACEOF
31036/* end confdefs.h. */
31037
31038/* Override any gcc2 internal prototype to avoid an error. */
31039#ifdef __cplusplus
31040extern "C"
31041#endif
31042/* We use char because int might match the return type of a gcc2
31043 builtin and then its argument prototype would still apply. */
31044char nanosleep ();
31045int
31046main ()
31047{
31048nanosleep ();
31049 ;
31050 return 0;
31051}
31052_ACEOF
31053rm -f conftest.$ac_objext conftest$ac_exeext
31054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31055 (eval $ac_link) 2>conftest.er1
a848cd7e 31056 ac_status=$?
ac1cb8d3
VS
31057 grep -v '^ *+' conftest.er1 >conftest.err
31058 rm -f conftest.er1
31059 cat conftest.err >&5
a848cd7e
SC
31060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31061 (exit $ac_status); } &&
5f652d0d
VS
31062 { ac_try='test -z "$ac_c_werror_flag"
31063 || test ! -s conftest.err'
ac1cb8d3
VS
31064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31065 (eval $ac_try) 2>&5
31066 ac_status=$?
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; } &&
31069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071 (eval $ac_try) 2>&5
31072 ac_status=$?
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
31075 ac_cv_lib_posix4_nanosleep=yes
31076else
31077 echo "$as_me: failed program was:" >&5
31078sed 's/^/| /' conftest.$ac_ext >&5
31079
31080ac_cv_lib_posix4_nanosleep=no
31081fi
ac1cb8d3
VS
31082rm -f conftest.err conftest.$ac_objext \
31083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31084LIBS=$ac_check_lib_save_LIBS
31085fi
31086echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31087echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31088if test $ac_cv_lib_posix4_nanosleep = yes; then
31089
31090 cat >>confdefs.h <<\_ACEOF
31091#define HAVE_NANOSLEEP 1
31092_ACEOF
31093
31094 POSIX4_LINK=" -lposix4"
31095
31096else
31097
31098
31099for ac_func in usleep
31100do
31101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31102echo "$as_me:$LINENO: checking for $ac_func" >&5
31103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31104if eval "test \"\${$as_ac_var+set}\" = set"; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31106else
31107 cat >conftest.$ac_ext <<_ACEOF
31108/* confdefs.h. */
31109_ACEOF
31110cat confdefs.h >>conftest.$ac_ext
31111cat >>conftest.$ac_ext <<_ACEOF
31112/* end confdefs.h. */
ac1cb8d3
VS
31113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31115#define $ac_func innocuous_$ac_func
31116
a848cd7e
SC
31117/* System header to define __stub macros and hopefully few prototypes,
31118 which can conflict with char $ac_func (); below.
31119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31120 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31121
a848cd7e
SC
31122#ifdef __STDC__
31123# include <limits.h>
31124#else
31125# include <assert.h>
31126#endif
ac1cb8d3
VS
31127
31128#undef $ac_func
31129
a848cd7e
SC
31130/* Override any gcc2 internal prototype to avoid an error. */
31131#ifdef __cplusplus
31132extern "C"
31133{
31134#endif
31135/* We use char because int might match the return type of a gcc2
31136 builtin and then its argument prototype would still apply. */
31137char $ac_func ();
31138/* The GNU C library defines this for functions which it implements
31139 to always fail with ENOSYS. Some functions are actually named
31140 something starting with __ and the normal name is an alias. */
31141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31142choke me
31143#else
31144char (*f) () = $ac_func;
31145#endif
31146#ifdef __cplusplus
31147}
31148#endif
31149
31150int
31151main ()
31152{
31153return f != $ac_func;
31154 ;
31155 return 0;
31156}
31157_ACEOF
31158rm -f conftest.$ac_objext conftest$ac_exeext
31159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31160 (eval $ac_link) 2>conftest.er1
a848cd7e 31161 ac_status=$?
ac1cb8d3
VS
31162 grep -v '^ *+' conftest.er1 >conftest.err
31163 rm -f conftest.er1
31164 cat conftest.err >&5
a848cd7e
SC
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } &&
5f652d0d
VS
31167 { ac_try='test -z "$ac_c_werror_flag"
31168 || test ! -s conftest.err'
ac1cb8d3
VS
31169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31170 (eval $ac_try) 2>&5
31171 ac_status=$?
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31176 (eval $ac_try) 2>&5
31177 ac_status=$?
31178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179 (exit $ac_status); }; }; then
31180 eval "$as_ac_var=yes"
31181else
31182 echo "$as_me: failed program was:" >&5
31183sed 's/^/| /' conftest.$ac_ext >&5
31184
31185eval "$as_ac_var=no"
31186fi
ac1cb8d3
VS
31187rm -f conftest.err conftest.$ac_objext \
31188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31189fi
31190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31192if test `eval echo '${'$as_ac_var'}'` = yes; then
31193 cat >>confdefs.h <<_ACEOF
31194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31195_ACEOF
31196 cat >>confdefs.h <<\_ACEOF
31197#define HAVE_USLEEP 1
31198_ACEOF
31199
31200else
31201 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31202echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31203
31204fi
31205done
31206
31207
31208
31209fi
31210
31211
31212
31213fi
31214done
31215
31216fi
31217
31218
31219
31220for ac_func in uname gethostname
31221do
31222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31223echo "$as_me:$LINENO: checking for $ac_func" >&5
31224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31225if eval "test \"\${$as_ac_var+set}\" = set"; then
31226 echo $ECHO_N "(cached) $ECHO_C" >&6
31227else
31228 cat >conftest.$ac_ext <<_ACEOF
31229/* confdefs.h. */
31230_ACEOF
31231cat confdefs.h >>conftest.$ac_ext
31232cat >>conftest.$ac_ext <<_ACEOF
31233/* end confdefs.h. */
ac1cb8d3
VS
31234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31236#define $ac_func innocuous_$ac_func
31237
a848cd7e
SC
31238/* System header to define __stub macros and hopefully few prototypes,
31239 which can conflict with char $ac_func (); below.
31240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31241 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31242
a848cd7e
SC
31243#ifdef __STDC__
31244# include <limits.h>
31245#else
31246# include <assert.h>
31247#endif
ac1cb8d3
VS
31248
31249#undef $ac_func
31250
a848cd7e
SC
31251/* Override any gcc2 internal prototype to avoid an error. */
31252#ifdef __cplusplus
31253extern "C"
31254{
31255#endif
31256/* We use char because int might match the return type of a gcc2
31257 builtin and then its argument prototype would still apply. */
31258char $ac_func ();
31259/* The GNU C library defines this for functions which it implements
31260 to always fail with ENOSYS. Some functions are actually named
31261 something starting with __ and the normal name is an alias. */
31262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31263choke me
31264#else
31265char (*f) () = $ac_func;
31266#endif
31267#ifdef __cplusplus
31268}
31269#endif
31270
31271int
31272main ()
31273{
31274return f != $ac_func;
31275 ;
31276 return 0;
31277}
31278_ACEOF
31279rm -f conftest.$ac_objext conftest$ac_exeext
31280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31281 (eval $ac_link) 2>conftest.er1
a848cd7e 31282 ac_status=$?
ac1cb8d3
VS
31283 grep -v '^ *+' conftest.er1 >conftest.err
31284 rm -f conftest.er1
31285 cat conftest.err >&5
a848cd7e
SC
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); } &&
5f652d0d
VS
31288 { ac_try='test -z "$ac_c_werror_flag"
31289 || test ! -s conftest.err'
ac1cb8d3
VS
31290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31291 (eval $ac_try) 2>&5
31292 ac_status=$?
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); }; } &&
31295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297 (eval $ac_try) 2>&5
31298 ac_status=$?
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); }; }; then
31301 eval "$as_ac_var=yes"
31302else
31303 echo "$as_me: failed program was:" >&5
31304sed 's/^/| /' conftest.$ac_ext >&5
31305
31306eval "$as_ac_var=no"
31307fi
ac1cb8d3
VS
31308rm -f conftest.err conftest.$ac_objext \
31309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31310fi
31311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31313if test `eval echo '${'$as_ac_var'}'` = yes; then
31314 cat >>confdefs.h <<_ACEOF
31315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31316_ACEOF
31317 break
31318fi
31319done
31320
31321
31322
31323
31324ac_ext=cc
31325ac_cpp='$CXXCPP $CPPFLAGS'
31326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31329
31330
31331
31332for ac_func in strtok_r
31333do
31334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31335echo "$as_me:$LINENO: checking for $ac_func" >&5
31336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31337if eval "test \"\${$as_ac_var+set}\" = set"; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31339else
31340 cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h. */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h. */
ac1cb8d3
VS
31346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31348#define $ac_func innocuous_$ac_func
31349
a848cd7e
SC
31350/* System header to define __stub macros and hopefully few prototypes,
31351 which can conflict with char $ac_func (); below.
31352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31354
a848cd7e
SC
31355#ifdef __STDC__
31356# include <limits.h>
31357#else
31358# include <assert.h>
31359#endif
ac1cb8d3
VS
31360
31361#undef $ac_func
31362
a848cd7e
SC
31363/* Override any gcc2 internal prototype to avoid an error. */
31364#ifdef __cplusplus
31365extern "C"
31366{
31367#endif
31368/* We use char because int might match the return type of a gcc2
31369 builtin and then its argument prototype would still apply. */
31370char $ac_func ();
31371/* The GNU C library defines this for functions which it implements
31372 to always fail with ENOSYS. Some functions are actually named
31373 something starting with __ and the normal name is an alias. */
31374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31375choke me
31376#else
31377char (*f) () = $ac_func;
31378#endif
31379#ifdef __cplusplus
31380}
31381#endif
31382
31383int
31384main ()
31385{
31386return f != $ac_func;
31387 ;
31388 return 0;
31389}
31390_ACEOF
31391rm -f conftest.$ac_objext conftest$ac_exeext
31392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31393 (eval $ac_link) 2>conftest.er1
a848cd7e 31394 ac_status=$?
ac1cb8d3
VS
31395 grep -v '^ *+' conftest.er1 >conftest.err
31396 rm -f conftest.er1
31397 cat conftest.err >&5
a848cd7e
SC
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); } &&
5f652d0d
VS
31400 { ac_try='test -z "$ac_cxx_werror_flag"
31401 || test ! -s conftest.err'
ac1cb8d3
VS
31402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31403 (eval $ac_try) 2>&5
31404 ac_status=$?
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); }; } &&
31407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31409 (eval $ac_try) 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; }; then
31413 eval "$as_ac_var=yes"
31414else
31415 echo "$as_me: failed program was:" >&5
31416sed 's/^/| /' conftest.$ac_ext >&5
31417
31418eval "$as_ac_var=no"
31419fi
ac1cb8d3
VS
31420rm -f conftest.err conftest.$ac_objext \
31421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31422fi
31423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31425if test `eval echo '${'$as_ac_var'}'` = yes; then
31426 cat >>confdefs.h <<_ACEOF
31427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31428_ACEOF
31429
31430fi
31431done
31432
31433
31434ac_ext=c
31435ac_cpp='$CPP $CPPFLAGS'
31436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31438ac_compiler_gnu=$ac_cv_c_compiler_gnu
31439
31440
31441INET_LINK=
31442
31443for ac_func in inet_addr
31444do
31445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31446echo "$as_me:$LINENO: checking for $ac_func" >&5
31447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31448if eval "test \"\${$as_ac_var+set}\" = set"; then
31449 echo $ECHO_N "(cached) $ECHO_C" >&6
31450else
31451 cat >conftest.$ac_ext <<_ACEOF
31452/* confdefs.h. */
31453_ACEOF
31454cat confdefs.h >>conftest.$ac_ext
31455cat >>conftest.$ac_ext <<_ACEOF
31456/* end confdefs.h. */
ac1cb8d3
VS
31457/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31459#define $ac_func innocuous_$ac_func
31460
a848cd7e
SC
31461/* System header to define __stub macros and hopefully few prototypes,
31462 which can conflict with char $ac_func (); below.
31463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31464 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31465
a848cd7e
SC
31466#ifdef __STDC__
31467# include <limits.h>
31468#else
31469# include <assert.h>
31470#endif
ac1cb8d3
VS
31471
31472#undef $ac_func
31473
a848cd7e
SC
31474/* Override any gcc2 internal prototype to avoid an error. */
31475#ifdef __cplusplus
31476extern "C"
31477{
31478#endif
31479/* We use char because int might match the return type of a gcc2
31480 builtin and then its argument prototype would still apply. */
31481char $ac_func ();
31482/* The GNU C library defines this for functions which it implements
31483 to always fail with ENOSYS. Some functions are actually named
31484 something starting with __ and the normal name is an alias. */
31485#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31486choke me
31487#else
31488char (*f) () = $ac_func;
31489#endif
31490#ifdef __cplusplus
31491}
31492#endif
31493
31494int
31495main ()
31496{
31497return f != $ac_func;
31498 ;
31499 return 0;
31500}
31501_ACEOF
31502rm -f conftest.$ac_objext conftest$ac_exeext
31503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31504 (eval $ac_link) 2>conftest.er1
a848cd7e 31505 ac_status=$?
ac1cb8d3
VS
31506 grep -v '^ *+' conftest.er1 >conftest.err
31507 rm -f conftest.er1
31508 cat conftest.err >&5
a848cd7e
SC
31509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31510 (exit $ac_status); } &&
5f652d0d
VS
31511 { ac_try='test -z "$ac_c_werror_flag"
31512 || test ! -s conftest.err'
ac1cb8d3
VS
31513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31514 (eval $ac_try) 2>&5
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520 (eval $ac_try) 2>&5
31521 ac_status=$?
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); }; }; then
31524 eval "$as_ac_var=yes"
31525else
31526 echo "$as_me: failed program was:" >&5
31527sed 's/^/| /' conftest.$ac_ext >&5
31528
31529eval "$as_ac_var=no"
31530fi
ac1cb8d3
VS
31531rm -f conftest.err conftest.$ac_objext \
31532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31533fi
31534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31535echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31536if test `eval echo '${'$as_ac_var'}'` = yes; then
31537 cat >>confdefs.h <<_ACEOF
31538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31539_ACEOF
31540 cat >>confdefs.h <<\_ACEOF
31541#define HAVE_INET_ADDR 1
31542_ACEOF
31543
31544else
31545
31546 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31547echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31548if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31549 echo $ECHO_N "(cached) $ECHO_C" >&6
31550else
31551 ac_check_lib_save_LIBS=$LIBS
31552LIBS="-lnsl $LIBS"
31553cat >conftest.$ac_ext <<_ACEOF
31554/* confdefs.h. */
31555_ACEOF
31556cat confdefs.h >>conftest.$ac_ext
31557cat >>conftest.$ac_ext <<_ACEOF
31558/* end confdefs.h. */
31559
31560/* Override any gcc2 internal prototype to avoid an error. */
31561#ifdef __cplusplus
31562extern "C"
31563#endif
31564/* We use char because int might match the return type of a gcc2
31565 builtin and then its argument prototype would still apply. */
31566char inet_addr ();
31567int
31568main ()
31569{
31570inet_addr ();
31571 ;
31572 return 0;
31573}
31574_ACEOF
31575rm -f conftest.$ac_objext conftest$ac_exeext
31576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31577 (eval $ac_link) 2>conftest.er1
a848cd7e 31578 ac_status=$?
ac1cb8d3
VS
31579 grep -v '^ *+' conftest.er1 >conftest.err
31580 rm -f conftest.er1
31581 cat conftest.err >&5
a848cd7e
SC
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); } &&
5f652d0d
VS
31584 { ac_try='test -z "$ac_c_werror_flag"
31585 || test ! -s conftest.err'
ac1cb8d3
VS
31586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31587 (eval $ac_try) 2>&5
31588 ac_status=$?
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); }; } &&
31591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31593 (eval $ac_try) 2>&5
31594 ac_status=$?
31595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31596 (exit $ac_status); }; }; then
31597 ac_cv_lib_nsl_inet_addr=yes
31598else
31599 echo "$as_me: failed program was:" >&5
31600sed 's/^/| /' conftest.$ac_ext >&5
31601
31602ac_cv_lib_nsl_inet_addr=no
31603fi
ac1cb8d3
VS
31604rm -f conftest.err conftest.$ac_objext \
31605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31606LIBS=$ac_check_lib_save_LIBS
31607fi
31608echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31609echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31610if test $ac_cv_lib_nsl_inet_addr = yes; then
31611 INET_LINK="nsl"
31612else
31613
31614 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31615echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31616if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31617 echo $ECHO_N "(cached) $ECHO_C" >&6
31618else
31619 ac_check_lib_save_LIBS=$LIBS
31620LIBS="-lresolv $LIBS"
31621cat >conftest.$ac_ext <<_ACEOF
31622/* confdefs.h. */
31623_ACEOF
31624cat confdefs.h >>conftest.$ac_ext
31625cat >>conftest.$ac_ext <<_ACEOF
31626/* end confdefs.h. */
31627
31628/* Override any gcc2 internal prototype to avoid an error. */
31629#ifdef __cplusplus
31630extern "C"
31631#endif
31632/* We use char because int might match the return type of a gcc2
31633 builtin and then its argument prototype would still apply. */
31634char inet_addr ();
31635int
31636main ()
31637{
31638inet_addr ();
31639 ;
31640 return 0;
31641}
31642_ACEOF
31643rm -f conftest.$ac_objext conftest$ac_exeext
31644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31645 (eval $ac_link) 2>conftest.er1
a848cd7e 31646 ac_status=$?
ac1cb8d3
VS
31647 grep -v '^ *+' conftest.er1 >conftest.err
31648 rm -f conftest.er1
31649 cat conftest.err >&5
a848cd7e
SC
31650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651 (exit $ac_status); } &&
5f652d0d
VS
31652 { ac_try='test -z "$ac_c_werror_flag"
31653 || test ! -s conftest.err'
ac1cb8d3
VS
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; } &&
31659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661 (eval $ac_try) 2>&5
31662 ac_status=$?
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; }; then
31665 ac_cv_lib_resolv_inet_addr=yes
31666else
31667 echo "$as_me: failed program was:" >&5
31668sed 's/^/| /' conftest.$ac_ext >&5
31669
31670ac_cv_lib_resolv_inet_addr=no
31671fi
ac1cb8d3
VS
31672rm -f conftest.err conftest.$ac_objext \
31673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31674LIBS=$ac_check_lib_save_LIBS
31675fi
31676echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31677echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31678if test $ac_cv_lib_resolv_inet_addr = yes; then
31679 INET_LINK="resolv"
31680else
31681
31682 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31683echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31684if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31685 echo $ECHO_N "(cached) $ECHO_C" >&6
31686else
31687 ac_check_lib_save_LIBS=$LIBS
31688LIBS="-lsocket $LIBS"
31689cat >conftest.$ac_ext <<_ACEOF
31690/* confdefs.h. */
31691_ACEOF
31692cat confdefs.h >>conftest.$ac_ext
31693cat >>conftest.$ac_ext <<_ACEOF
31694/* end confdefs.h. */
31695
31696/* Override any gcc2 internal prototype to avoid an error. */
31697#ifdef __cplusplus
31698extern "C"
31699#endif
31700/* We use char because int might match the return type of a gcc2
31701 builtin and then its argument prototype would still apply. */
31702char inet_addr ();
31703int
31704main ()
31705{
31706inet_addr ();
31707 ;
31708 return 0;
31709}
31710_ACEOF
31711rm -f conftest.$ac_objext conftest$ac_exeext
31712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31713 (eval $ac_link) 2>conftest.er1
a848cd7e 31714 ac_status=$?
ac1cb8d3
VS
31715 grep -v '^ *+' conftest.er1 >conftest.err
31716 rm -f conftest.er1
31717 cat conftest.err >&5
a848cd7e
SC
31718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719 (exit $ac_status); } &&
5f652d0d
VS
31720 { ac_try='test -z "$ac_c_werror_flag"
31721 || test ! -s conftest.err'
ac1cb8d3
VS
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31724 ac_status=$?
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; } &&
31727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31729 (eval $ac_try) 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; }; then
31733 ac_cv_lib_socket_inet_addr=yes
31734else
31735 echo "$as_me: failed program was:" >&5
31736sed 's/^/| /' conftest.$ac_ext >&5
31737
31738ac_cv_lib_socket_inet_addr=no
31739fi
ac1cb8d3
VS
31740rm -f conftest.err conftest.$ac_objext \
31741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31742LIBS=$ac_check_lib_save_LIBS
31743fi
31744echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31745echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31746if test $ac_cv_lib_socket_inet_addr = yes; then
31747 INET_LINK="socket"
31748
31749fi
31750
31751
31752
31753fi
31754
31755
31756
31757fi
31758
31759
31760
31761fi
31762done
31763
31764
31765
31766for ac_func in inet_aton
31767do
31768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31769echo "$as_me:$LINENO: checking for $ac_func" >&5
31770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31771if eval "test \"\${$as_ac_var+set}\" = set"; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31773else
31774 cat >conftest.$ac_ext <<_ACEOF
31775/* confdefs.h. */
31776_ACEOF
31777cat confdefs.h >>conftest.$ac_ext
31778cat >>conftest.$ac_ext <<_ACEOF
31779/* end confdefs.h. */
ac1cb8d3
VS
31780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31782#define $ac_func innocuous_$ac_func
31783
a848cd7e
SC
31784/* System header to define __stub macros and hopefully few prototypes,
31785 which can conflict with char $ac_func (); below.
31786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31787 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31788
a848cd7e
SC
31789#ifdef __STDC__
31790# include <limits.h>
31791#else
31792# include <assert.h>
31793#endif
ac1cb8d3
VS
31794
31795#undef $ac_func
31796
a848cd7e
SC
31797/* Override any gcc2 internal prototype to avoid an error. */
31798#ifdef __cplusplus
31799extern "C"
31800{
31801#endif
31802/* We use char because int might match the return type of a gcc2
31803 builtin and then its argument prototype would still apply. */
31804char $ac_func ();
31805/* The GNU C library defines this for functions which it implements
31806 to always fail with ENOSYS. Some functions are actually named
31807 something starting with __ and the normal name is an alias. */
31808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31809choke me
31810#else
31811char (*f) () = $ac_func;
31812#endif
31813#ifdef __cplusplus
31814}
31815#endif
31816
31817int
31818main ()
31819{
31820return f != $ac_func;
31821 ;
31822 return 0;
31823}
31824_ACEOF
31825rm -f conftest.$ac_objext conftest$ac_exeext
31826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31827 (eval $ac_link) 2>conftest.er1
a848cd7e 31828 ac_status=$?
ac1cb8d3
VS
31829 grep -v '^ *+' conftest.er1 >conftest.err
31830 rm -f conftest.er1
31831 cat conftest.err >&5
a848cd7e
SC
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); } &&
5f652d0d
VS
31834 { ac_try='test -z "$ac_c_werror_flag"
31835 || test ! -s conftest.err'
ac1cb8d3
VS
31836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31837 (eval $ac_try) 2>&5
31838 ac_status=$?
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; } &&
31841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31843 (eval $ac_try) 2>&5
31844 ac_status=$?
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); }; }; then
31847 eval "$as_ac_var=yes"
31848else
31849 echo "$as_me: failed program was:" >&5
31850sed 's/^/| /' conftest.$ac_ext >&5
31851
31852eval "$as_ac_var=no"
31853fi
ac1cb8d3
VS
31854rm -f conftest.err conftest.$ac_objext \
31855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31856fi
31857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31859if test `eval echo '${'$as_ac_var'}'` = yes; then
31860 cat >>confdefs.h <<_ACEOF
31861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31862_ACEOF
31863 cat >>confdefs.h <<\_ACEOF
31864#define HAVE_INET_ATON 1
31865_ACEOF
31866
31867else
31868
31869 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31870echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31871echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31872if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31874else
31875 ac_check_lib_save_LIBS=$LIBS
31876LIBS="-l$INET_LINK $LIBS"
31877cat >conftest.$ac_ext <<_ACEOF
31878/* confdefs.h. */
31879_ACEOF
31880cat confdefs.h >>conftest.$ac_ext
31881cat >>conftest.$ac_ext <<_ACEOF
31882/* end confdefs.h. */
31883
31884/* Override any gcc2 internal prototype to avoid an error. */
31885#ifdef __cplusplus
31886extern "C"
31887#endif
31888/* We use char because int might match the return type of a gcc2
31889 builtin and then its argument prototype would still apply. */
31890char inet_aton ();
31891int
31892main ()
31893{
31894inet_aton ();
31895 ;
31896 return 0;
31897}
31898_ACEOF
31899rm -f conftest.$ac_objext conftest$ac_exeext
31900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31901 (eval $ac_link) 2>conftest.er1
a848cd7e 31902 ac_status=$?
ac1cb8d3
VS
31903 grep -v '^ *+' conftest.er1 >conftest.err
31904 rm -f conftest.er1
31905 cat conftest.err >&5
a848cd7e
SC
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } &&
5f652d0d
VS
31908 { ac_try='test -z "$ac_c_werror_flag"
31909 || test ! -s conftest.err'
ac1cb8d3
VS
31910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911 (eval $ac_try) 2>&5
31912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; } &&
31915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917 (eval $ac_try) 2>&5
31918 ac_status=$?
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
31921 eval "$as_ac_Lib=yes"
31922else
31923 echo "$as_me: failed program was:" >&5
31924sed 's/^/| /' conftest.$ac_ext >&5
31925
31926eval "$as_ac_Lib=no"
31927fi
ac1cb8d3
VS
31928rm -f conftest.err conftest.$ac_objext \
31929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31930LIBS=$ac_check_lib_save_LIBS
31931fi
31932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31933echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31934if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31935 cat >>confdefs.h <<\_ACEOF
31936#define HAVE_INET_ATON 1
31937_ACEOF
31938
31939fi
31940
31941
31942fi
31943done
31944
31945
31946if test "x$INET_LINK" != "x"; then
31947 cat >>confdefs.h <<\_ACEOF
31948#define HAVE_INET_ADDR 1
31949_ACEOF
31950
31951 INET_LINK=" -l$INET_LINK"
31952fi
31953
31954fi
31955
31956
31957
31958EXTRALIBS_ESD=
31959echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31960echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31961if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31962 echo $ECHO_N "(cached) $ECHO_C" >&6
31963else
31964 ac_check_lib_save_LIBS=$LIBS
31965LIBS="-lesd $LIBS"
31966cat >conftest.$ac_ext <<_ACEOF
31967/* confdefs.h. */
31968_ACEOF
31969cat confdefs.h >>conftest.$ac_ext
31970cat >>conftest.$ac_ext <<_ACEOF
31971/* end confdefs.h. */
31972
31973/* Override any gcc2 internal prototype to avoid an error. */
31974#ifdef __cplusplus
31975extern "C"
31976#endif
31977/* We use char because int might match the return type of a gcc2
31978 builtin and then its argument prototype would still apply. */
31979char esd_close ();
31980int
31981main ()
31982{
31983esd_close ();
31984 ;
31985 return 0;
31986}
31987_ACEOF
31988rm -f conftest.$ac_objext conftest$ac_exeext
31989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31990 (eval $ac_link) 2>conftest.er1
a848cd7e 31991 ac_status=$?
ac1cb8d3
VS
31992 grep -v '^ *+' conftest.er1 >conftest.err
31993 rm -f conftest.er1
31994 cat conftest.err >&5
a848cd7e
SC
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); } &&
5f652d0d
VS
31997 { ac_try='test -z "$ac_c_werror_flag"
31998 || test ! -s conftest.err'
ac1cb8d3
VS
31999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32000 (eval $ac_try) 2>&5
32001 ac_status=$?
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); }; } &&
32004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32006 (eval $ac_try) 2>&5
32007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; }; then
32010 ac_cv_lib_esd_esd_close=yes
32011else
32012 echo "$as_me: failed program was:" >&5
32013sed 's/^/| /' conftest.$ac_ext >&5
32014
32015ac_cv_lib_esd_esd_close=no
32016fi
ac1cb8d3
VS
32017rm -f conftest.err conftest.$ac_objext \
32018 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32019LIBS=$ac_check_lib_save_LIBS
32020fi
32021echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32022echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32023if test $ac_cv_lib_esd_esd_close = yes; then
32024
32025
32026for ac_header in esd.h
32027do
32028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32029if eval "test \"\${$as_ac_Header+set}\" = set"; then
32030 echo "$as_me:$LINENO: checking for $ac_header" >&5
32031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32032if eval "test \"\${$as_ac_Header+set}\" = set"; then
32033 echo $ECHO_N "(cached) $ECHO_C" >&6
32034fi
32035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32037else
32038 # Is the header compilable?
32039echo "$as_me:$LINENO: checking $ac_header usability" >&5
32040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32041cat >conftest.$ac_ext <<_ACEOF
32042/* confdefs.h. */
32043_ACEOF
32044cat confdefs.h >>conftest.$ac_ext
32045cat >>conftest.$ac_ext <<_ACEOF
32046/* end confdefs.h. */
32047$ac_includes_default
32048#include <$ac_header>
32049_ACEOF
32050rm -f conftest.$ac_objext
32051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32052 (eval $ac_compile) 2>conftest.er1
a848cd7e 32053 ac_status=$?
ac1cb8d3
VS
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
a848cd7e
SC
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
5f652d0d
VS
32059 { ac_try='test -z "$ac_c_werror_flag"
32060 || test ! -s conftest.err'
ac1cb8d3
VS
32061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062 (eval $ac_try) 2>&5
32063 ac_status=$?
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); }; } &&
32066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32068 (eval $ac_try) 2>&5
32069 ac_status=$?
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 ac_header_compiler=yes
32073else
32074 echo "$as_me: failed program was:" >&5
32075sed 's/^/| /' conftest.$ac_ext >&5
32076
32077ac_header_compiler=no
32078fi
ac1cb8d3 32079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32081echo "${ECHO_T}$ac_header_compiler" >&6
32082
32083# Is the header present?
32084echo "$as_me:$LINENO: checking $ac_header presence" >&5
32085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32086cat >conftest.$ac_ext <<_ACEOF
32087/* confdefs.h. */
32088_ACEOF
32089cat confdefs.h >>conftest.$ac_ext
32090cat >>conftest.$ac_ext <<_ACEOF
32091/* end confdefs.h. */
32092#include <$ac_header>
32093_ACEOF
32094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32096 ac_status=$?
32097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } >/dev/null; then
32102 if test -s conftest.err; then
32103 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32105 else
32106 ac_cpp_err=
32107 fi
32108else
32109 ac_cpp_err=yes
32110fi
32111if test -z "$ac_cpp_err"; then
32112 ac_header_preproc=yes
32113else
32114 echo "$as_me: failed program was:" >&5
32115sed 's/^/| /' conftest.$ac_ext >&5
32116
32117 ac_header_preproc=no
32118fi
32119rm -f conftest.err conftest.$ac_ext
32120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32121echo "${ECHO_T}$ac_header_preproc" >&6
32122
32123# So? What about this header?
ac1cb8d3
VS
32124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32125 yes:no: )
a848cd7e
SC
32126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32130 ac_header_preproc=yes
a848cd7e 32131 ;;
ac1cb8d3 32132 no:yes:* )
a848cd7e
SC
32133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32145 (
32146 cat <<\_ASBOX
ac1cb8d3
VS
32147## ----------------------------------------- ##
32148## Report this to wx-dev@lists.wxwidgets.org ##
32149## ----------------------------------------- ##
a848cd7e
SC
32150_ASBOX
32151 ) |
32152 sed "s/^/$as_me: WARNING: /" >&2
32153 ;;
32154esac
32155echo "$as_me:$LINENO: checking for $ac_header" >&5
32156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32157if eval "test \"\${$as_ac_Header+set}\" = set"; then
32158 echo $ECHO_N "(cached) $ECHO_C" >&6
32159else
ac1cb8d3 32160 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32161fi
32162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32164
32165fi
32166if test `eval echo '${'$as_ac_Header'}'` = yes; then
32167 cat >>confdefs.h <<_ACEOF
32168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32169_ACEOF
32170
32171 EXTRALIBS_ESD="-lesd"
32172
32173fi
32174
32175done
32176
32177
32178fi
32179
32180
32181
32182echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32183echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32184cat >conftest.$ac_ext <<_ACEOF
32185/* confdefs.h. */
32186_ACEOF
32187cat confdefs.h >>conftest.$ac_ext
32188cat >>conftest.$ac_ext <<_ACEOF
32189/* end confdefs.h. */
32190#ifdef __linux__
32191 #include <linux/cdrom.h>
32192 #else
32193 /* For Solaris */
32194 #include <sys/cdio.h>
32195 #endif
32196
32197int
32198main ()
32199{
32200struct cdrom_tocentry entry, old_entry;
32201 ;
32202 return 0;
32203}
32204_ACEOF
32205rm -f conftest.$ac_objext
32206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32207 (eval $ac_compile) 2>conftest.er1
a848cd7e 32208 ac_status=$?
ac1cb8d3
VS
32209 grep -v '^ *+' conftest.er1 >conftest.err
32210 rm -f conftest.er1
32211 cat conftest.err >&5
a848cd7e
SC
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); } &&
5f652d0d
VS
32214 { ac_try='test -z "$ac_c_werror_flag"
32215 || test ! -s conftest.err'
ac1cb8d3
VS
32216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32217 (eval $ac_try) 2>&5
32218 ac_status=$?
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); }; } &&
32221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32223 (eval $ac_try) 2>&5
32224 ac_status=$?
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; }; then
32227 echo "$as_me:$LINENO: result: yes" >&5
32228echo "${ECHO_T}yes" >&6
32229 cat >>confdefs.h <<\_ACEOF
32230#define HAVE_KNOWN_CDROM_INTERFACE 1
32231_ACEOF
32232
32233else
32234 echo "$as_me: failed program was:" >&5
32235sed 's/^/| /' conftest.$ac_ext >&5
32236
32237echo "$as_me:$LINENO: result: no" >&5
32238echo "${ECHO_T}no" >&6
32239fi
ac1cb8d3 32240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32241
32242
32243cat >confcache <<\_ACEOF
32244# This file is a shell script that caches the results of configure
32245# tests run on this system so they can be shared between configure
32246# scripts and configure runs, see configure's option --config-cache.
32247# It is not useful on other systems. If it contains results you don't
32248# want to keep, you may remove or edit it.
32249#
32250# config.status only pays attention to the cache file if you give it
32251# the --recheck option to rerun configure.
32252#
32253# `ac_cv_env_foo' variables (set or unset) will be overridden when
32254# loading this file, other *unset* `ac_cv_foo' will be assigned the
32255# following values.
32256
32257_ACEOF
32258
32259# The following way of writing the cache mishandles newlines in values,
32260# but we know of no workaround that is simple, portable, and efficient.
32261# So, don't put newlines in cache variables' values.
32262# Ultrix sh set writes to stderr and can't be redirected directly,
32263# and sets the high bit in the cache file unless we assign to the vars.
32264{
32265 (set) 2>&1 |
32266 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32267 *ac_space=\ *)
32268 # `set' does not quote correctly, so add quotes (double-quote
32269 # substitution turns \\\\ into \\, and sed turns \\ into \).
32270 sed -n \
ac1cb8d3
VS
32271 "s/'/'\\\\''/g;
32272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32273 ;;
32274 *)
32275 # `set' quotes correctly as required by POSIX, so do not add quotes.
32276 sed -n \
ac1cb8d3 32277 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32278 ;;
32279 esac;
32280} |
32281 sed '
32282 t clear
32283 : clear
32284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32285 t end
32286 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32287 : end' >>confcache
32288if diff $cache_file confcache >/dev/null 2>&1; then :; else
32289 if test -w $cache_file; then
32290 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32291 cat confcache >$cache_file
32292 else
32293 echo "not updating unwritable cache $cache_file"
32294 fi
32295fi
32296rm -f confcache
32297
32298
32299CPP_MT_FLAG=
32300if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32301
32302
32303 THREADS_LINK=
32304 THREADS_CFLAGS=
32305
32306 if test "$wxUSE_THREADS" = "yes" ; then
32307 if test "$USE_BEOS" = 1; then
32308 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32309echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32310 wxUSE_THREADS="no"
32311 fi
32312 fi
32313
32314 if test "$wxUSE_THREADS" = "yes" ; then
32315
32316
32317 THREAD_OPTS="-pthread"
32318 case "${host}" in
32319 *-*-solaris2* | *-*-sunos4* )
32320 if test "x$GCC" = "xyes"; then
32321 THREAD_OPTS="-pthreads $THREAD_OPTS"
32322 else
32323 THREAD_OPTS="-mt $THREAD_OPTS"
32324 fi
32325 ;;
32326 *-*-freebsd*)
32327 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32328 ;;
32329 *-*-darwin* | *-*-cygwin* )
32330 THREAD_OPTS=""
32331 ;;
32332 *-*-aix*)
32333 THREAD_OPTS="pthreads"
32334 ;;
32335 *-hp-hpux* )
32336 if test "x$GCC" != "xyes"; then
32337 THREAD_OPTS=""
32338 fi
32339 ;;
32340
32341 *-*-irix* )
32342 if test "x$GCC" = "xyes"; then
32343 THREAD_OPTS=""
32344 fi
32345 ;;
32346
32347 *-*-*UnixWare*)
32348 if test "x$GCC" != "xyes"; then
32349 THREAD_OPTS="-Ethread"
32350 fi
32351 ;;
32352 esac
32353
32354 THREAD_OPTS="$THREAD_OPTS pthread none"
32355
32356 THREADS_OK=no
32357 for flag in $THREAD_OPTS; do
32358 case $flag in
32359 none)
32360 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32361echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32362 ;;
32363
32364 -*)
32365 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32366echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32367 THREADS_CFLAGS="$flag"
32368 ;;
32369
32370 *)
32371 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32372echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32373 THREADS_LINK="-l$flag"
32374 ;;
32375 esac
32376
32377 save_LIBS="$LIBS"
32378 save_CFLAGS="$CFLAGS"
32379 LIBS="$THREADS_LINK $LIBS"
32380 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32381
32382 cat >conftest.$ac_ext <<_ACEOF
32383/* confdefs.h. */
32384_ACEOF
32385cat confdefs.h >>conftest.$ac_ext
32386cat >>conftest.$ac_ext <<_ACEOF
32387/* end confdefs.h. */
32388#include <pthread.h>
32389int
32390main ()
32391{
32392pthread_create(0,0,0,0);
32393 ;
32394 return 0;
32395}
32396_ACEOF
32397rm -f conftest.$ac_objext conftest$ac_exeext
32398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32399 (eval $ac_link) 2>conftest.er1
a848cd7e 32400 ac_status=$?
ac1cb8d3
VS
32401 grep -v '^ *+' conftest.er1 >conftest.err
32402 rm -f conftest.er1
32403 cat conftest.err >&5
a848cd7e
SC
32404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405 (exit $ac_status); } &&
5f652d0d
VS
32406 { ac_try='test -z "$ac_c_werror_flag"
32407 || test ! -s conftest.err'
ac1cb8d3
VS
32408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32409 (eval $ac_try) 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; }; then
32419 THREADS_OK=yes
32420else
32421 echo "$as_me: failed program was:" >&5
32422sed 's/^/| /' conftest.$ac_ext >&5
32423
32424fi
ac1cb8d3
VS
32425rm -f conftest.err conftest.$ac_objext \
32426 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32427
32428 LIBS="$save_LIBS"
32429 CFLAGS="$save_CFLAGS"
32430
32431 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32432echo "${ECHO_T}$THREADS_OK" >&6
32433 if test "x$THREADS_OK" = "xyes"; then
32434 break;
32435 fi
32436
32437 THREADS_LINK=""
32438 THREADS_CFLAGS=""
32439 done
32440
32441 if test "x$THREADS_OK" != "xyes"; then
32442 wxUSE_THREADS=no
32443 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32444echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32445 else
32446 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32447 LIBS="$THREADS_LINK $LIBS"
32448
32449 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32450echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32451 flag=no
32452 case "${host}" in
32453 *-aix*)
32454 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32455 flag="-D_THREAD_SAFE"
32456 ;;
32457 *-freebsd*)
32458 flag="-D_THREAD_SAFE"
32459 ;;
32460 *-hp-hpux* )
32461 flag="-D_REENTRANT"
32462 if test "x$GCC" != "xyes"; then
32463 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
32464
32465 LIBS="$LIBS -lcma"
a848cd7e
SC
32466 fi
32467 ;;
32468 *solaris* | alpha*-osf*)
32469 flag="-D_REENTRANT"
32470 ;;
32471 esac
32472 echo "$as_me:$LINENO: result: ${flag}" >&5
32473echo "${ECHO_T}${flag}" >&6
32474 if test "x$flag" != xno; then
32475 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32476 fi
32477
32478 if test "x$THREADS_CFLAGS" != "x"; then
32479 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32480 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32481 fi
32482 fi
32483 fi
32484
32485 if test "$wxUSE_THREADS" = "yes" ; then
32486
32487for ac_func in thr_setconcurrency
32488do
32489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32490echo "$as_me:$LINENO: checking for $ac_func" >&5
32491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32492if eval "test \"\${$as_ac_var+set}\" = set"; then
32493 echo $ECHO_N "(cached) $ECHO_C" >&6
32494else
32495 cat >conftest.$ac_ext <<_ACEOF
32496/* confdefs.h. */
32497_ACEOF
32498cat confdefs.h >>conftest.$ac_ext
32499cat >>conftest.$ac_ext <<_ACEOF
32500/* end confdefs.h. */
ac1cb8d3
VS
32501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32503#define $ac_func innocuous_$ac_func
32504
a848cd7e
SC
32505/* System header to define __stub macros and hopefully few prototypes,
32506 which can conflict with char $ac_func (); below.
32507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32509
a848cd7e
SC
32510#ifdef __STDC__
32511# include <limits.h>
32512#else
32513# include <assert.h>
32514#endif
ac1cb8d3
VS
32515
32516#undef $ac_func
32517
a848cd7e
SC
32518/* Override any gcc2 internal prototype to avoid an error. */
32519#ifdef __cplusplus
32520extern "C"
32521{
32522#endif
32523/* We use char because int might match the return type of a gcc2
32524 builtin and then its argument prototype would still apply. */
32525char $ac_func ();
32526/* The GNU C library defines this for functions which it implements
32527 to always fail with ENOSYS. Some functions are actually named
32528 something starting with __ and the normal name is an alias. */
32529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32530choke me
32531#else
32532char (*f) () = $ac_func;
32533#endif
32534#ifdef __cplusplus
32535}
32536#endif
32537
32538int
32539main ()
32540{
32541return f != $ac_func;
32542 ;
32543 return 0;
32544}
32545_ACEOF
32546rm -f conftest.$ac_objext conftest$ac_exeext
32547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32548 (eval $ac_link) 2>conftest.er1
a848cd7e 32549 ac_status=$?
ac1cb8d3
VS
32550 grep -v '^ *+' conftest.er1 >conftest.err
32551 rm -f conftest.er1
32552 cat conftest.err >&5
a848cd7e
SC
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
5f652d0d
VS
32555 { ac_try='test -z "$ac_c_werror_flag"
32556 || test ! -s conftest.err'
ac1cb8d3
VS
32557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32558 (eval $ac_try) 2>&5
32559 ac_status=$?
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; } &&
32562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32564 (eval $ac_try) 2>&5
32565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); }; }; then
32568 eval "$as_ac_var=yes"
32569else
32570 echo "$as_me: failed program was:" >&5
32571sed 's/^/| /' conftest.$ac_ext >&5
32572
32573eval "$as_ac_var=no"
32574fi
ac1cb8d3
VS
32575rm -f conftest.err conftest.$ac_objext \
32576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32577fi
32578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32580if test `eval echo '${'$as_ac_var'}'` = yes; then
32581 cat >>confdefs.h <<_ACEOF
32582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32583_ACEOF
32584
32585fi
32586done
32587
32588
32589
32590for ac_header in sched.h
32591do
32592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32593if eval "test \"\${$as_ac_Header+set}\" = set"; then
32594 echo "$as_me:$LINENO: checking for $ac_header" >&5
32595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32596if eval "test \"\${$as_ac_Header+set}\" = set"; then
32597 echo $ECHO_N "(cached) $ECHO_C" >&6
32598fi
32599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32601else
32602 # Is the header compilable?
32603echo "$as_me:$LINENO: checking $ac_header usability" >&5
32604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32605cat >conftest.$ac_ext <<_ACEOF
32606/* confdefs.h. */
32607_ACEOF
32608cat confdefs.h >>conftest.$ac_ext
32609cat >>conftest.$ac_ext <<_ACEOF
32610/* end confdefs.h. */
32611$ac_includes_default
32612#include <$ac_header>
32613_ACEOF
32614rm -f conftest.$ac_objext
32615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32616 (eval $ac_compile) 2>conftest.er1
a848cd7e 32617 ac_status=$?
ac1cb8d3
VS
32618 grep -v '^ *+' conftest.er1 >conftest.err
32619 rm -f conftest.er1
32620 cat conftest.err >&5
a848cd7e
SC
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); } &&
5f652d0d
VS
32623 { ac_try='test -z "$ac_c_werror_flag"
32624 || test ! -s conftest.err'
ac1cb8d3
VS
32625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626 (eval $ac_try) 2>&5
32627 ac_status=$?
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; } &&
32630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32632 (eval $ac_try) 2>&5
32633 ac_status=$?
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); }; }; then
32636 ac_header_compiler=yes
32637else
32638 echo "$as_me: failed program was:" >&5
32639sed 's/^/| /' conftest.$ac_ext >&5
32640
32641ac_header_compiler=no
32642fi
ac1cb8d3 32643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32645echo "${ECHO_T}$ac_header_compiler" >&6
32646
32647# Is the header present?
32648echo "$as_me:$LINENO: checking $ac_header presence" >&5
32649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32650cat >conftest.$ac_ext <<_ACEOF
32651/* confdefs.h. */
32652_ACEOF
32653cat confdefs.h >>conftest.$ac_ext
32654cat >>conftest.$ac_ext <<_ACEOF
32655/* end confdefs.h. */
32656#include <$ac_header>
32657_ACEOF
32658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32660 ac_status=$?
32661 grep -v '^ *+' conftest.er1 >conftest.err
32662 rm -f conftest.er1
32663 cat conftest.err >&5
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); } >/dev/null; then
32666 if test -s conftest.err; then
32667 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32669 else
32670 ac_cpp_err=
32671 fi
32672else
32673 ac_cpp_err=yes
32674fi
32675if test -z "$ac_cpp_err"; then
32676 ac_header_preproc=yes
32677else
32678 echo "$as_me: failed program was:" >&5
32679sed 's/^/| /' conftest.$ac_ext >&5
32680
32681 ac_header_preproc=no
32682fi
32683rm -f conftest.err conftest.$ac_ext
32684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32685echo "${ECHO_T}$ac_header_preproc" >&6
32686
32687# So? What about this header?
ac1cb8d3
VS
32688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32689 yes:no: )
a848cd7e
SC
32690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32694 ac_header_preproc=yes
a848cd7e 32695 ;;
ac1cb8d3 32696 no:yes:* )
a848cd7e
SC
32697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32709 (
32710 cat <<\_ASBOX
ac1cb8d3
VS
32711## ----------------------------------------- ##
32712## Report this to wx-dev@lists.wxwidgets.org ##
32713## ----------------------------------------- ##
a848cd7e
SC
32714_ASBOX
32715 ) |
32716 sed "s/^/$as_me: WARNING: /" >&2
32717 ;;
32718esac
32719echo "$as_me:$LINENO: checking for $ac_header" >&5
32720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32721if eval "test \"\${$as_ac_Header+set}\" = set"; then
32722 echo $ECHO_N "(cached) $ECHO_C" >&6
32723else
ac1cb8d3 32724 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32725fi
32726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32728
32729fi
32730if test `eval echo '${'$as_ac_Header'}'` = yes; then
32731 cat >>confdefs.h <<_ACEOF
32732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32733_ACEOF
32734
32735fi
32736
32737done
32738
32739 if test "$ac_cv_header_sched_h" = "yes"; then
32740 echo "$as_me:$LINENO: checking for sched_yield" >&5
32741echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32742if test "${ac_cv_func_sched_yield+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32744else
32745 cat >conftest.$ac_ext <<_ACEOF
32746/* confdefs.h. */
32747_ACEOF
32748cat confdefs.h >>conftest.$ac_ext
32749cat >>conftest.$ac_ext <<_ACEOF
32750/* end confdefs.h. */
ac1cb8d3
VS
32751/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32753#define sched_yield innocuous_sched_yield
32754
a848cd7e
SC
32755/* System header to define __stub macros and hopefully few prototypes,
32756 which can conflict with char sched_yield (); below.
32757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32758 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32759
a848cd7e
SC
32760#ifdef __STDC__
32761# include <limits.h>
32762#else
32763# include <assert.h>
32764#endif
ac1cb8d3
VS
32765
32766#undef sched_yield
32767
a848cd7e
SC
32768/* Override any gcc2 internal prototype to avoid an error. */
32769#ifdef __cplusplus
32770extern "C"
32771{
32772#endif
32773/* We use char because int might match the return type of a gcc2
32774 builtin and then its argument prototype would still apply. */
32775char sched_yield ();
32776/* The GNU C library defines this for functions which it implements
32777 to always fail with ENOSYS. Some functions are actually named
32778 something starting with __ and the normal name is an alias. */
32779#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32780choke me
32781#else
32782char (*f) () = sched_yield;
32783#endif
32784#ifdef __cplusplus
32785}
32786#endif
32787
32788int
32789main ()
32790{
32791return f != sched_yield;
32792 ;
32793 return 0;
32794}
32795_ACEOF
32796rm -f conftest.$ac_objext conftest$ac_exeext
32797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32798 (eval $ac_link) 2>conftest.er1
a848cd7e 32799 ac_status=$?
ac1cb8d3
VS
32800 grep -v '^ *+' conftest.er1 >conftest.err
32801 rm -f conftest.er1
32802 cat conftest.err >&5
a848cd7e
SC
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } &&
5f652d0d
VS
32805 { ac_try='test -z "$ac_c_werror_flag"
32806 || test ! -s conftest.err'
ac1cb8d3
VS
32807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32808 (eval $ac_try) 2>&5
32809 ac_status=$?
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; } &&
32812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814 (eval $ac_try) 2>&5
32815 ac_status=$?
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); }; }; then
32818 ac_cv_func_sched_yield=yes
32819else
32820 echo "$as_me: failed program was:" >&5
32821sed 's/^/| /' conftest.$ac_ext >&5
32822
32823ac_cv_func_sched_yield=no
32824fi
ac1cb8d3
VS
32825rm -f conftest.err conftest.$ac_objext \
32826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32827fi
32828echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32829echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32830if test $ac_cv_func_sched_yield = yes; then
32831 cat >>confdefs.h <<\_ACEOF
32832#define HAVE_SCHED_YIELD 1
32833_ACEOF
32834
32835else
32836
32837 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32838echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32839if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32840 echo $ECHO_N "(cached) $ECHO_C" >&6
32841else
32842 ac_check_lib_save_LIBS=$LIBS
32843LIBS="-lposix4 $LIBS"
32844cat >conftest.$ac_ext <<_ACEOF
32845/* confdefs.h. */
32846_ACEOF
32847cat confdefs.h >>conftest.$ac_ext
32848cat >>conftest.$ac_ext <<_ACEOF
32849/* end confdefs.h. */
32850
32851/* Override any gcc2 internal prototype to avoid an error. */
32852#ifdef __cplusplus
32853extern "C"
32854#endif
32855/* We use char because int might match the return type of a gcc2
32856 builtin and then its argument prototype would still apply. */
32857char sched_yield ();
32858int
32859main ()
32860{
32861sched_yield ();
32862 ;
32863 return 0;
32864}
32865_ACEOF
32866rm -f conftest.$ac_objext conftest$ac_exeext
32867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32868 (eval $ac_link) 2>conftest.er1
a848cd7e 32869 ac_status=$?
ac1cb8d3
VS
32870 grep -v '^ *+' conftest.er1 >conftest.err
32871 rm -f conftest.er1
32872 cat conftest.err >&5
a848cd7e
SC
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } &&
5f652d0d
VS
32875 { ac_try='test -z "$ac_c_werror_flag"
32876 || test ! -s conftest.err'
ac1cb8d3
VS
32877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32878 (eval $ac_try) 2>&5
32879 ac_status=$?
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881 (exit $ac_status); }; } &&
32882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32884 (eval $ac_try) 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
32888 ac_cv_lib_posix4_sched_yield=yes
32889else
32890 echo "$as_me: failed program was:" >&5
32891sed 's/^/| /' conftest.$ac_ext >&5
32892
32893ac_cv_lib_posix4_sched_yield=no
32894fi
ac1cb8d3
VS
32895rm -f conftest.err conftest.$ac_objext \
32896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32897LIBS=$ac_check_lib_save_LIBS
32898fi
32899echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32900echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32901if test $ac_cv_lib_posix4_sched_yield = yes; then
32902 cat >>confdefs.h <<\_ACEOF
32903#define HAVE_SCHED_YIELD 1
32904_ACEOF
32905 POSIX4_LINK=" -lposix4"
32906else
32907 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32908echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32909
32910fi
32911
32912
32913
32914fi
32915
32916 fi
32917
32918 HAVE_PRIOR_FUNCS=0
32919 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32920echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32921if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32922 echo $ECHO_N "(cached) $ECHO_C" >&6
32923else
32924 cat >conftest.$ac_ext <<_ACEOF
32925/* confdefs.h. */
32926_ACEOF
32927cat confdefs.h >>conftest.$ac_ext
32928cat >>conftest.$ac_ext <<_ACEOF
32929/* end confdefs.h. */
ac1cb8d3
VS
32930/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32932#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32933
a848cd7e
SC
32934/* System header to define __stub macros and hopefully few prototypes,
32935 which can conflict with char pthread_attr_getschedpolicy (); below.
32936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32937 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32938
a848cd7e
SC
32939#ifdef __STDC__
32940# include <limits.h>
32941#else
32942# include <assert.h>
32943#endif
ac1cb8d3
VS
32944
32945#undef pthread_attr_getschedpolicy
32946
a848cd7e
SC
32947/* Override any gcc2 internal prototype to avoid an error. */
32948#ifdef __cplusplus
32949extern "C"
32950{
32951#endif
32952/* We use char because int might match the return type of a gcc2
32953 builtin and then its argument prototype would still apply. */
32954char pthread_attr_getschedpolicy ();
32955/* The GNU C library defines this for functions which it implements
32956 to always fail with ENOSYS. Some functions are actually named
32957 something starting with __ and the normal name is an alias. */
32958#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32959choke me
32960#else
32961char (*f) () = pthread_attr_getschedpolicy;
32962#endif
32963#ifdef __cplusplus
32964}
32965#endif
32966
32967int
32968main ()
32969{
32970return f != pthread_attr_getschedpolicy;
32971 ;
32972 return 0;
32973}
32974_ACEOF
32975rm -f conftest.$ac_objext conftest$ac_exeext
32976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32977 (eval $ac_link) 2>conftest.er1
a848cd7e 32978 ac_status=$?
ac1cb8d3
VS
32979 grep -v '^ *+' conftest.er1 >conftest.err
32980 rm -f conftest.er1
32981 cat conftest.err >&5
a848cd7e
SC
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); } &&
5f652d0d
VS
32984 { ac_try='test -z "$ac_c_werror_flag"
32985 || test ! -s conftest.err'
ac1cb8d3
VS
32986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32987 (eval $ac_try) 2>&5
32988 ac_status=$?
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; } &&
32991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
32997 ac_cv_func_pthread_attr_getschedpolicy=yes
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002ac_cv_func_pthread_attr_getschedpolicy=no
33003fi
ac1cb8d3
VS
33004rm -f conftest.err conftest.$ac_objext \
33005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33006fi
33007echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33008echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33009if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33010 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33011echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33012if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33013 echo $ECHO_N "(cached) $ECHO_C" >&6
33014else
33015 cat >conftest.$ac_ext <<_ACEOF
33016/* confdefs.h. */
33017_ACEOF
33018cat confdefs.h >>conftest.$ac_ext
33019cat >>conftest.$ac_ext <<_ACEOF
33020/* end confdefs.h. */
ac1cb8d3
VS
33021/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33023#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33024
a848cd7e
SC
33025/* System header to define __stub macros and hopefully few prototypes,
33026 which can conflict with char pthread_attr_setschedparam (); below.
33027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33028 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33029
a848cd7e
SC
33030#ifdef __STDC__
33031# include <limits.h>
33032#else
33033# include <assert.h>
33034#endif
ac1cb8d3
VS
33035
33036#undef pthread_attr_setschedparam
33037
a848cd7e
SC
33038/* Override any gcc2 internal prototype to avoid an error. */
33039#ifdef __cplusplus
33040extern "C"
33041{
33042#endif
33043/* We use char because int might match the return type of a gcc2
33044 builtin and then its argument prototype would still apply. */
33045char pthread_attr_setschedparam ();
33046/* The GNU C library defines this for functions which it implements
33047 to always fail with ENOSYS. Some functions are actually named
33048 something starting with __ and the normal name is an alias. */
33049#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33050choke me
33051#else
33052char (*f) () = pthread_attr_setschedparam;
33053#endif
33054#ifdef __cplusplus
33055}
33056#endif
33057
33058int
33059main ()
33060{
33061return f != pthread_attr_setschedparam;
33062 ;
33063 return 0;
33064}
33065_ACEOF
33066rm -f conftest.$ac_objext conftest$ac_exeext
33067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33068 (eval $ac_link) 2>conftest.er1
a848cd7e 33069 ac_status=$?
ac1cb8d3
VS
33070 grep -v '^ *+' conftest.er1 >conftest.err
33071 rm -f conftest.er1
33072 cat conftest.err >&5
a848cd7e
SC
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); } &&
5f652d0d
VS
33075 { ac_try='test -z "$ac_c_werror_flag"
33076 || test ! -s conftest.err'
ac1cb8d3
VS
33077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078 (eval $ac_try) 2>&5
33079 ac_status=$?
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; } &&
33082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084 (eval $ac_try) 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 ac_cv_func_pthread_attr_setschedparam=yes
33089else
33090 echo "$as_me: failed program was:" >&5
33091sed 's/^/| /' conftest.$ac_ext >&5
33092
33093ac_cv_func_pthread_attr_setschedparam=no
33094fi
ac1cb8d3
VS
33095rm -f conftest.err conftest.$ac_objext \
33096 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33097fi
33098echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33099echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33100if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33101 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33102echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33103if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33104 echo $ECHO_N "(cached) $ECHO_C" >&6
33105else
33106 cat >conftest.$ac_ext <<_ACEOF
33107/* confdefs.h. */
33108_ACEOF
33109cat confdefs.h >>conftest.$ac_ext
33110cat >>conftest.$ac_ext <<_ACEOF
33111/* end confdefs.h. */
ac1cb8d3
VS
33112/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33114#define sched_get_priority_max innocuous_sched_get_priority_max
33115
a848cd7e
SC
33116/* System header to define __stub macros and hopefully few prototypes,
33117 which can conflict with char sched_get_priority_max (); below.
33118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33119 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33120
a848cd7e
SC
33121#ifdef __STDC__
33122# include <limits.h>
33123#else
33124# include <assert.h>
33125#endif
ac1cb8d3
VS
33126
33127#undef sched_get_priority_max
33128
a848cd7e
SC
33129/* Override any gcc2 internal prototype to avoid an error. */
33130#ifdef __cplusplus
33131extern "C"
33132{
33133#endif
33134/* We use char because int might match the return type of a gcc2
33135 builtin and then its argument prototype would still apply. */
33136char sched_get_priority_max ();
33137/* The GNU C library defines this for functions which it implements
33138 to always fail with ENOSYS. Some functions are actually named
33139 something starting with __ and the normal name is an alias. */
33140#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33141choke me
33142#else
33143char (*f) () = sched_get_priority_max;
33144#endif
33145#ifdef __cplusplus
33146}
33147#endif
33148
33149int
33150main ()
33151{
33152return f != sched_get_priority_max;
33153 ;
33154 return 0;
33155}
33156_ACEOF
33157rm -f conftest.$ac_objext conftest$ac_exeext
33158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33159 (eval $ac_link) 2>conftest.er1
a848cd7e 33160 ac_status=$?
ac1cb8d3
VS
33161 grep -v '^ *+' conftest.er1 >conftest.err
33162 rm -f conftest.er1
33163 cat conftest.err >&5
a848cd7e
SC
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); } &&
5f652d0d
VS
33166 { ac_try='test -z "$ac_c_werror_flag"
33167 || test ! -s conftest.err'
ac1cb8d3
VS
33168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33169 (eval $ac_try) 2>&5
33170 ac_status=$?
33171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33172 (exit $ac_status); }; } &&
33173 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33175 (eval $ac_try) 2>&5
33176 ac_status=$?
33177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178 (exit $ac_status); }; }; then
33179 ac_cv_func_sched_get_priority_max=yes
33180else
33181 echo "$as_me: failed program was:" >&5
33182sed 's/^/| /' conftest.$ac_ext >&5
33183
33184ac_cv_func_sched_get_priority_max=no
33185fi
ac1cb8d3
VS
33186rm -f conftest.err conftest.$ac_objext \
33187 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33188fi
33189echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33190echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33191if test $ac_cv_func_sched_get_priority_max = yes; then
33192 HAVE_PRIOR_FUNCS=1
33193else
33194 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33195echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33196if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33197 echo $ECHO_N "(cached) $ECHO_C" >&6
33198else
33199 ac_check_lib_save_LIBS=$LIBS
33200LIBS="-lposix4 $LIBS"
33201cat >conftest.$ac_ext <<_ACEOF
33202/* confdefs.h. */
33203_ACEOF
33204cat confdefs.h >>conftest.$ac_ext
33205cat >>conftest.$ac_ext <<_ACEOF
33206/* end confdefs.h. */
33207
33208/* Override any gcc2 internal prototype to avoid an error. */
33209#ifdef __cplusplus
33210extern "C"
33211#endif
33212/* We use char because int might match the return type of a gcc2
33213 builtin and then its argument prototype would still apply. */
33214char sched_get_priority_max ();
33215int
33216main ()
33217{
33218sched_get_priority_max ();
33219 ;
33220 return 0;
33221}
33222_ACEOF
33223rm -f conftest.$ac_objext conftest$ac_exeext
33224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33225 (eval $ac_link) 2>conftest.er1
a848cd7e 33226 ac_status=$?
ac1cb8d3
VS
33227 grep -v '^ *+' conftest.er1 >conftest.err
33228 rm -f conftest.er1
33229 cat conftest.err >&5
a848cd7e
SC
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); } &&
5f652d0d
VS
33232 { ac_try='test -z "$ac_c_werror_flag"
33233 || test ! -s conftest.err'
ac1cb8d3
VS
33234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33235 (eval $ac_try) 2>&5
33236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; } &&
33239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; }; then
33245 ac_cv_lib_posix4_sched_get_priority_max=yes
33246else
33247 echo "$as_me: failed program was:" >&5
33248sed 's/^/| /' conftest.$ac_ext >&5
33249
33250ac_cv_lib_posix4_sched_get_priority_max=no
33251fi
ac1cb8d3
VS
33252rm -f conftest.err conftest.$ac_objext \
33253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33254LIBS=$ac_check_lib_save_LIBS
33255fi
33256echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33257echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33258if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33259
33260 HAVE_PRIOR_FUNCS=1
33261 POSIX4_LINK=" -lposix4"
33262
33263fi
33264
33265
33266fi
33267
33268
33269fi
33270
33271
33272fi
33273
33274
33275 if test "$HAVE_PRIOR_FUNCS" = 1; then
33276 cat >>confdefs.h <<\_ACEOF
33277#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33278_ACEOF
33279
33280 else
33281 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33282echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33283 fi
33284
33285 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33286echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33287if test "${ac_cv_func_pthread_cancel+set}" = set; then
33288 echo $ECHO_N "(cached) $ECHO_C" >&6
33289else
33290 cat >conftest.$ac_ext <<_ACEOF
33291/* confdefs.h. */
33292_ACEOF
33293cat confdefs.h >>conftest.$ac_ext
33294cat >>conftest.$ac_ext <<_ACEOF
33295/* end confdefs.h. */
ac1cb8d3
VS
33296/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33298#define pthread_cancel innocuous_pthread_cancel
33299
a848cd7e
SC
33300/* System header to define __stub macros and hopefully few prototypes,
33301 which can conflict with char pthread_cancel (); below.
33302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33304
a848cd7e
SC
33305#ifdef __STDC__
33306# include <limits.h>
33307#else
33308# include <assert.h>
33309#endif
ac1cb8d3
VS
33310
33311#undef pthread_cancel
33312
a848cd7e
SC
33313/* Override any gcc2 internal prototype to avoid an error. */
33314#ifdef __cplusplus
33315extern "C"
33316{
33317#endif
33318/* We use char because int might match the return type of a gcc2
33319 builtin and then its argument prototype would still apply. */
33320char pthread_cancel ();
33321/* The GNU C library defines this for functions which it implements
33322 to always fail with ENOSYS. Some functions are actually named
33323 something starting with __ and the normal name is an alias. */
33324#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33325choke me
33326#else
33327char (*f) () = pthread_cancel;
33328#endif
33329#ifdef __cplusplus
33330}
33331#endif
33332
33333int
33334main ()
33335{
33336return f != pthread_cancel;
33337 ;
33338 return 0;
33339}
33340_ACEOF
33341rm -f conftest.$ac_objext conftest$ac_exeext
33342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33343 (eval $ac_link) 2>conftest.er1
a848cd7e 33344 ac_status=$?
ac1cb8d3
VS
33345 grep -v '^ *+' conftest.er1 >conftest.err
33346 rm -f conftest.er1
33347 cat conftest.err >&5
a848cd7e
SC
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); } &&
5f652d0d
VS
33350 { ac_try='test -z "$ac_c_werror_flag"
33351 || test ! -s conftest.err'
ac1cb8d3
VS
33352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33353 (eval $ac_try) 2>&5
33354 ac_status=$?
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); }; } &&
33357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; }; then
33363 ac_cv_func_pthread_cancel=yes
33364else
33365 echo "$as_me: failed program was:" >&5
33366sed 's/^/| /' conftest.$ac_ext >&5
33367
33368ac_cv_func_pthread_cancel=no
33369fi
ac1cb8d3
VS
33370rm -f conftest.err conftest.$ac_objext \
33371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33372fi
33373echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33374echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33375if test $ac_cv_func_pthread_cancel = yes; then
33376 cat >>confdefs.h <<\_ACEOF
33377#define HAVE_PTHREAD_CANCEL 1
33378_ACEOF
33379
33380else
33381 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33382echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33383fi
33384
33385
33386
33387
33388 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33389echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33390if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33391 echo $ECHO_N "(cached) $ECHO_C" >&6
33392else
33393
33394 cat >conftest.$ac_ext <<_ACEOF
33395/* confdefs.h. */
33396_ACEOF
33397cat confdefs.h >>conftest.$ac_ext
33398cat >>conftest.$ac_ext <<_ACEOF
33399/* end confdefs.h. */
33400#include <pthread.h>
33401int
33402main ()
33403{
33404
33405 pthread_mutexattr_t attr;
33406 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33407
33408 ;
33409 return 0;
33410}
33411_ACEOF
33412rm -f conftest.$ac_objext
33413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33414 (eval $ac_compile) 2>conftest.er1
a848cd7e 33415 ac_status=$?
ac1cb8d3
VS
33416 grep -v '^ *+' conftest.er1 >conftest.err
33417 rm -f conftest.er1
33418 cat conftest.err >&5
a848cd7e
SC
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); } &&
5f652d0d
VS
33421 { ac_try='test -z "$ac_c_werror_flag"
33422 || test ! -s conftest.err'
ac1cb8d3
VS
33423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33424 (eval $ac_try) 2>&5
33425 ac_status=$?
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); }; } &&
33428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; }; then
33434
33435 wx_cv_type_pthread_mutexattr_t=yes
33436
33437else
33438 echo "$as_me: failed program was:" >&5
33439sed 's/^/| /' conftest.$ac_ext >&5
33440
33441
33442 wx_cv_type_pthread_mutexattr_t=no
33443
33444
33445fi
ac1cb8d3 33446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33447
33448fi
33449echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33450echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33451
33452 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33453 cat >>confdefs.h <<\_ACEOF
33454#define HAVE_PTHREAD_MUTEXATTR_T 1
33455_ACEOF
33456
33457 else
33458 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33459echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33460if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33462else
33463
33464 cat >conftest.$ac_ext <<_ACEOF
33465/* confdefs.h. */
33466_ACEOF
33467cat confdefs.h >>conftest.$ac_ext
33468cat >>conftest.$ac_ext <<_ACEOF
33469/* end confdefs.h. */
33470#include <pthread.h>
33471int
33472main ()
33473{
33474
33475 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33476
33477 ;
33478 return 0;
33479}
33480_ACEOF
33481rm -f conftest.$ac_objext
33482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33483 (eval $ac_compile) 2>conftest.er1
a848cd7e 33484 ac_status=$?
ac1cb8d3
VS
33485 grep -v '^ *+' conftest.er1 >conftest.err
33486 rm -f conftest.er1
33487 cat conftest.err >&5
a848cd7e
SC
33488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489 (exit $ac_status); } &&
5f652d0d
VS
33490 { ac_try='test -z "$ac_c_werror_flag"
33491 || test ! -s conftest.err'
ac1cb8d3
VS
33492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493 (eval $ac_try) 2>&5
33494 ac_status=$?
33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496 (exit $ac_status); }; } &&
33497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33499 (eval $ac_try) 2>&5
33500 ac_status=$?
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); }; }; then
33503
33504 wx_cv_type_pthread_rec_mutex_init=yes
33505
33506else
33507 echo "$as_me: failed program was:" >&5
33508sed 's/^/| /' conftest.$ac_ext >&5
33509
33510
33511 wx_cv_type_pthread_rec_mutex_init=no
33512
33513
33514fi
ac1cb8d3 33515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33516
33517fi
33518echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33519echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33520 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33521 cat >>confdefs.h <<\_ACEOF
33522#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33523_ACEOF
33524
33525 else
33526 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33527echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33528 fi
33529 fi
33530 fi
33531
33532else
33533 if test "$wxUSE_THREADS" = "yes" ; then
33534 case "${host}" in
33535 *-*-mingw32* )
33536 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33537echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33538if test "${wx_cv_cflags_mthread+set}" = set; then
33539 echo $ECHO_N "(cached) $ECHO_C" >&6
33540else
33541
33542 CFLAGS_OLD="$CFLAGS"
33543 CFLAGS="$CFLAGS -mthreads"
33544 cat >conftest.$ac_ext <<_ACEOF
33545/* confdefs.h. */
33546_ACEOF
33547cat confdefs.h >>conftest.$ac_ext
33548cat >>conftest.$ac_ext <<_ACEOF
33549/* end confdefs.h. */
33550
33551int
33552main ()
33553{
33554
33555 ;
33556 return 0;
33557}
33558_ACEOF
33559rm -f conftest.$ac_objext
33560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33561 (eval $ac_compile) 2>conftest.er1
a848cd7e 33562 ac_status=$?
ac1cb8d3
VS
33563 grep -v '^ *+' conftest.er1 >conftest.err
33564 rm -f conftest.er1
33565 cat conftest.err >&5
a848cd7e
SC
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); } &&
5f652d0d
VS
33568 { ac_try='test -z "$ac_c_werror_flag"
33569 || test ! -s conftest.err'
ac1cb8d3
VS
33570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33571 (eval $ac_try) 2>&5
33572 ac_status=$?
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); }; } &&
33575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33577 (eval $ac_try) 2>&5
33578 ac_status=$?
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); }; }; then
33581 wx_cv_cflags_mthread=yes
33582else
33583 echo "$as_me: failed program was:" >&5
33584sed 's/^/| /' conftest.$ac_ext >&5
33585
33586wx_cv_cflags_mthread=no
33587
33588fi
ac1cb8d3 33589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33590
33591
33592fi
33593echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33594echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33595
33596 if test "$wx_cv_cflags_mthread" = "yes"; then
33597 CXXFLAGS="$CXXFLAGS -mthreads"
33598 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33599 LDFLAGS="$LDFLAGS -mthreads"
33600 else
33601 CFLAGS="$CFLAGS_OLD"
33602 fi
33603 ;;
33604 *-pc-os2*emx )
33605 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33606 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33607 LDFLAGS="$LDFLAGS -Zmt"
33608 ;;
33609 esac
33610 fi
33611fi
33612
33613if test "$wxUSE_THREADS" = "yes"; then
33614 cat >>confdefs.h <<\_ACEOF
33615#define wxUSE_THREADS 1
33616_ACEOF
33617
33618
33619 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33620else
33621 if test "$ac_cv_func_strtok_r" = "yes"; then
33622 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33623echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33624 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33625 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33626 echo "$as_me:$LINENO: result: yes" >&5
33627echo "${ECHO_T}yes" >&6
33628 else
33629 echo "$as_me:$LINENO: result: no" >&5
33630echo "${ECHO_T}no" >&6
33631 fi
33632 fi
33633fi
33634
33635if test "$WXGTK20" = 1 ; then
33636 cat >>confdefs.h <<_ACEOF
33637#define __WXGTK20__ $WXGTK20
33638_ACEOF
33639
33640 WXGTK12=1
33641fi
33642
33643if test "$WXGTK12" = 1 ; then
33644 cat >>confdefs.h <<_ACEOF
33645#define __WXGTK12__ $WXGTK12
33646_ACEOF
33647
33648fi
33649
33650if test "$WXGTK127" = 1 ; then
33651 cat >>confdefs.h <<_ACEOF
33652#define __WXGTK127__ $WXGTK127
33653_ACEOF
33654
33655fi
33656
33657if test "$WXGPE" = 1 ; then
33658 cat >>confdefs.h <<_ACEOF
33659#define __WXGPE__ $WXGPE
33660_ACEOF
33661
33662fi
33663
33664WXDEBUG=
33665
33666if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33667 WXDEBUG="-g"
33668 wxUSE_OPTIMISE=no
33669fi
33670
33671if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33672 wxUSE_DEBUG_INFO=yes
33673 WXDEBUG="-ggdb"
33674fi
33675
33676if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33677 cat >>confdefs.h <<\_ACEOF
33678#define WXDEBUG 1
33679_ACEOF
33680
33681 WXDEBUG_DEFINE="-D__WXDEBUG__"
33682else
33683 if test "$wxUSE_GTK" = 1 ; then
33684 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33685 fi
33686fi
33687
33688if test "$wxUSE_MEM_TRACING" = "yes" ; then
33689 cat >>confdefs.h <<\_ACEOF
33690#define wxUSE_MEMORY_TRACING 1
33691_ACEOF
33692
33693 cat >>confdefs.h <<\_ACEOF
33694#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33695_ACEOF
33696
33697 cat >>confdefs.h <<\_ACEOF
33698#define wxUSE_DEBUG_NEW_ALWAYS 1
33699_ACEOF
33700
33701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33702fi
33703
33704if test "$wxUSE_DMALLOC" = "yes" ; then
33705 DMALLOC_LIBS="-ldmalloc"
33706fi
33707
33708PROFILE=
33709if test "$wxUSE_PROFILE" = "yes" ; then
33710 PROFILE=" -pg"
33711fi
33712
33713CODE_GEN_FLAGS=
33714CODE_GEN_FLAGS_CXX=
33715if test "$GCC" = "yes" ; then
33716 if test "$wxUSE_NO_RTTI" = "yes" ; then
33717 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33718 fi
33719 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33720 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33721 fi
33722 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33723 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33724 fi
33725
33726 case "${host}" in
33727 powerpc*-*-aix* )
33728 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33729 ;;
33730 *-hppa* )
33731 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33732 ;;
33733 esac
33734fi
33735
33736OPTIMISE=
33737if test "$wxUSE_OPTIMISE" = "no" ; then
33738 if test "$GCC" = yes ; then
33739 OPTIMISE="-O0"
33740 fi
33741else
33742 if test "$GCC" = yes ; then
33743 OPTIMISE="-O2"
33744
33745 case "${host}" in
33746 i586-*-*|i686-*-* )
33747 OPTIMISE="${OPTIMISE} "
33748 ;;
33749 esac
33750 else
33751 OPTIMISE="-O"
33752 fi
33753fi
33754
33755
33756if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33757 cat >>confdefs.h <<\_ACEOF
33758#define WXWIN_COMPATIBILITY_2_2 1
33759_ACEOF
33760
33761
33762 WXWIN_COMPATIBILITY_2_4="yes"
33763fi
33764
33765if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33766 cat >>confdefs.h <<\_ACEOF
33767#define WXWIN_COMPATIBILITY_2_4 1
33768_ACEOF
33769
33770fi
33771
33772
33773if test "$wxUSE_GUI" = "yes"; then
33774 cat >>confdefs.h <<\_ACEOF
33775#define wxUSE_GUI 1
33776_ACEOF
33777
33778
33779 else
33780 cat >>confdefs.h <<\_ACEOF
33781#define wxUSE_NOGUI 1
33782_ACEOF
33783
33784fi
33785
33786
33787if test "$wxUSE_UNIX" = "yes"; then
33788 cat >>confdefs.h <<\_ACEOF
33789#define wxUSE_UNIX 1
33790_ACEOF
33791
33792fi
33793
33794
33795if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33796
33797 HAVE_DL_FUNCS=0
33798 HAVE_SHL_FUNCS=0
33799 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33800 if test "$USE_DARWIN" = 1; then
33801 HAVE_DL_FUNCS=1
33802 else
33803
33804for ac_func in dlopen
33805do
33806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33807echo "$as_me:$LINENO: checking for $ac_func" >&5
33808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33809if eval "test \"\${$as_ac_var+set}\" = set"; then
33810 echo $ECHO_N "(cached) $ECHO_C" >&6
33811else
33812 cat >conftest.$ac_ext <<_ACEOF
33813/* confdefs.h. */
33814_ACEOF
33815cat confdefs.h >>conftest.$ac_ext
33816cat >>conftest.$ac_ext <<_ACEOF
33817/* end confdefs.h. */
ac1cb8d3
VS
33818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33820#define $ac_func innocuous_$ac_func
33821
a848cd7e
SC
33822/* System header to define __stub macros and hopefully few prototypes,
33823 which can conflict with char $ac_func (); below.
33824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33825 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33826
a848cd7e
SC
33827#ifdef __STDC__
33828# include <limits.h>
33829#else
33830# include <assert.h>
33831#endif
ac1cb8d3
VS
33832
33833#undef $ac_func
33834
a848cd7e
SC
33835/* Override any gcc2 internal prototype to avoid an error. */
33836#ifdef __cplusplus
33837extern "C"
33838{
33839#endif
33840/* We use char because int might match the return type of a gcc2
33841 builtin and then its argument prototype would still apply. */
33842char $ac_func ();
33843/* The GNU C library defines this for functions which it implements
33844 to always fail with ENOSYS. Some functions are actually named
33845 something starting with __ and the normal name is an alias. */
33846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33847choke me
33848#else
33849char (*f) () = $ac_func;
33850#endif
33851#ifdef __cplusplus
33852}
33853#endif
33854
33855int
33856main ()
33857{
33858return f != $ac_func;
33859 ;
33860 return 0;
33861}
33862_ACEOF
33863rm -f conftest.$ac_objext conftest$ac_exeext
33864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33865 (eval $ac_link) 2>conftest.er1
a848cd7e 33866 ac_status=$?
ac1cb8d3
VS
33867 grep -v '^ *+' conftest.er1 >conftest.err
33868 rm -f conftest.er1
33869 cat conftest.err >&5
a848cd7e
SC
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); } &&
5f652d0d
VS
33872 { ac_try='test -z "$ac_c_werror_flag"
33873 || test ! -s conftest.err'
ac1cb8d3
VS
33874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875 (eval $ac_try) 2>&5
33876 ac_status=$?
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; } &&
33879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33881 (eval $ac_try) 2>&5
33882 ac_status=$?
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; }; then
33885 eval "$as_ac_var=yes"
33886else
33887 echo "$as_me: failed program was:" >&5
33888sed 's/^/| /' conftest.$ac_ext >&5
33889
33890eval "$as_ac_var=no"
33891fi
ac1cb8d3
VS
33892rm -f conftest.err conftest.$ac_objext \
33893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33894fi
33895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33897if test `eval echo '${'$as_ac_var'}'` = yes; then
33898 cat >>confdefs.h <<_ACEOF
33899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33900_ACEOF
33901
33902 cat >>confdefs.h <<\_ACEOF
33903#define HAVE_DLOPEN 1
33904_ACEOF
33905
33906 HAVE_DL_FUNCS=1
33907
33908else
33909
33910 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33911echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33912if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33913 echo $ECHO_N "(cached) $ECHO_C" >&6
33914else
33915 ac_check_lib_save_LIBS=$LIBS
33916LIBS="-ldl $LIBS"
33917cat >conftest.$ac_ext <<_ACEOF
33918/* confdefs.h. */
33919_ACEOF
33920cat confdefs.h >>conftest.$ac_ext
33921cat >>conftest.$ac_ext <<_ACEOF
33922/* end confdefs.h. */
33923
33924/* Override any gcc2 internal prototype to avoid an error. */
33925#ifdef __cplusplus
33926extern "C"
33927#endif
33928/* We use char because int might match the return type of a gcc2
33929 builtin and then its argument prototype would still apply. */
33930char dlopen ();
33931int
33932main ()
33933{
33934dlopen ();
33935 ;
33936 return 0;
33937}
33938_ACEOF
33939rm -f conftest.$ac_objext conftest$ac_exeext
33940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33941 (eval $ac_link) 2>conftest.er1
a848cd7e 33942 ac_status=$?
ac1cb8d3
VS
33943 grep -v '^ *+' conftest.er1 >conftest.err
33944 rm -f conftest.er1
33945 cat conftest.err >&5
a848cd7e
SC
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); } &&
5f652d0d
VS
33948 { ac_try='test -z "$ac_c_werror_flag"
33949 || test ! -s conftest.err'
ac1cb8d3
VS
33950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33951 (eval $ac_try) 2>&5
33952 ac_status=$?
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; } &&
33955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957 (eval $ac_try) 2>&5
33958 ac_status=$?
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); }; }; then
33961 ac_cv_lib_dl_dlopen=yes
33962else
33963 echo "$as_me: failed program was:" >&5
33964sed 's/^/| /' conftest.$ac_ext >&5
33965
33966ac_cv_lib_dl_dlopen=no
33967fi
ac1cb8d3
VS
33968rm -f conftest.err conftest.$ac_objext \
33969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33970LIBS=$ac_check_lib_save_LIBS
33971fi
33972echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33973echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33974if test $ac_cv_lib_dl_dlopen = yes; then
33975
33976 cat >>confdefs.h <<\_ACEOF
33977#define HAVE_DLOPEN 1
33978_ACEOF
33979
33980 HAVE_DL_FUNCS=1
33981 DL_LINK=" -ldl$DL_LINK"
33982
33983else
33984
33985
33986for ac_func in shl_load
33987do
33988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33989echo "$as_me:$LINENO: checking for $ac_func" >&5
33990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33991if eval "test \"\${$as_ac_var+set}\" = set"; then
33992 echo $ECHO_N "(cached) $ECHO_C" >&6
33993else
33994 cat >conftest.$ac_ext <<_ACEOF
33995/* confdefs.h. */
33996_ACEOF
33997cat confdefs.h >>conftest.$ac_ext
33998cat >>conftest.$ac_ext <<_ACEOF
33999/* end confdefs.h. */
ac1cb8d3
VS
34000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34002#define $ac_func innocuous_$ac_func
34003
a848cd7e
SC
34004/* System header to define __stub macros and hopefully few prototypes,
34005 which can conflict with char $ac_func (); below.
34006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34007 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34008
a848cd7e
SC
34009#ifdef __STDC__
34010# include <limits.h>
34011#else
34012# include <assert.h>
34013#endif
ac1cb8d3
VS
34014
34015#undef $ac_func
34016
a848cd7e
SC
34017/* Override any gcc2 internal prototype to avoid an error. */
34018#ifdef __cplusplus
34019extern "C"
34020{
34021#endif
34022/* We use char because int might match the return type of a gcc2
34023 builtin and then its argument prototype would still apply. */
34024char $ac_func ();
34025/* The GNU C library defines this for functions which it implements
34026 to always fail with ENOSYS. Some functions are actually named
34027 something starting with __ and the normal name is an alias. */
34028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34029choke me
34030#else
34031char (*f) () = $ac_func;
34032#endif
34033#ifdef __cplusplus
34034}
34035#endif
34036
34037int
34038main ()
34039{
34040return f != $ac_func;
34041 ;
34042 return 0;
34043}
34044_ACEOF
34045rm -f conftest.$ac_objext conftest$ac_exeext
34046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34047 (eval $ac_link) 2>conftest.er1
a848cd7e 34048 ac_status=$?
ac1cb8d3
VS
34049 grep -v '^ *+' conftest.er1 >conftest.err
34050 rm -f conftest.er1
34051 cat conftest.err >&5
a848cd7e
SC
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); } &&
5f652d0d
VS
34054 { ac_try='test -z "$ac_c_werror_flag"
34055 || test ! -s conftest.err'
ac1cb8d3
VS
34056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34057 (eval $ac_try) 2>&5
34058 ac_status=$?
34059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060 (exit $ac_status); }; } &&
34061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34063 (eval $ac_try) 2>&5
34064 ac_status=$?
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); }; }; then
34067 eval "$as_ac_var=yes"
34068else
34069 echo "$as_me: failed program was:" >&5
34070sed 's/^/| /' conftest.$ac_ext >&5
34071
34072eval "$as_ac_var=no"
34073fi
ac1cb8d3
VS
34074rm -f conftest.err conftest.$ac_objext \
34075 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34076fi
34077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34079if test `eval echo '${'$as_ac_var'}'` = yes; then
34080 cat >>confdefs.h <<_ACEOF
34081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34082_ACEOF
34083
34084 cat >>confdefs.h <<\_ACEOF
34085#define HAVE_SHL_LOAD 1
34086_ACEOF
34087
34088 HAVE_SHL_FUNCS=1
34089
34090else
34091
34092 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34093echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34094if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34095 echo $ECHO_N "(cached) $ECHO_C" >&6
34096else
34097 ac_check_lib_save_LIBS=$LIBS
34098LIBS="-lshl_load $LIBS"
34099cat >conftest.$ac_ext <<_ACEOF
34100/* confdefs.h. */
34101_ACEOF
34102cat confdefs.h >>conftest.$ac_ext
34103cat >>conftest.$ac_ext <<_ACEOF
34104/* end confdefs.h. */
34105
34106/* Override any gcc2 internal prototype to avoid an error. */
34107#ifdef __cplusplus
34108extern "C"
34109#endif
34110/* We use char because int might match the return type of a gcc2
34111 builtin and then its argument prototype would still apply. */
34112char dld ();
34113int
34114main ()
34115{
34116dld ();
34117 ;
34118 return 0;
34119}
34120_ACEOF
34121rm -f conftest.$ac_objext conftest$ac_exeext
34122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34123 (eval $ac_link) 2>conftest.er1
a848cd7e 34124 ac_status=$?
ac1cb8d3
VS
34125 grep -v '^ *+' conftest.er1 >conftest.err
34126 rm -f conftest.er1
34127 cat conftest.err >&5
a848cd7e
SC
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); } &&
5f652d0d
VS
34130 { ac_try='test -z "$ac_c_werror_flag"
34131 || test ! -s conftest.err'
ac1cb8d3
VS
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; } &&
34137 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; }; then
34143 ac_cv_lib_shl_load_dld=yes
34144else
34145 echo "$as_me: failed program was:" >&5
34146sed 's/^/| /' conftest.$ac_ext >&5
34147
34148ac_cv_lib_shl_load_dld=no
34149fi
ac1cb8d3
VS
34150rm -f conftest.err conftest.$ac_objext \
34151 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34152LIBS=$ac_check_lib_save_LIBS
34153fi
34154echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34155echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34156if test $ac_cv_lib_shl_load_dld = yes; then
34157
34158 HAVE_SHL_FUNCS=1
34159 DL_LINK=" -ldld$DL_LINK"
34160
34161fi
34162
34163
34164fi
34165done
34166
34167
34168fi
34169
34170
34171fi
34172done
34173
34174
34175 if test "$HAVE_DL_FUNCS" = 1; then
34176
34177for ac_func in dlerror
34178do
34179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34180echo "$as_me:$LINENO: checking for $ac_func" >&5
34181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34182if eval "test \"\${$as_ac_var+set}\" = set"; then
34183 echo $ECHO_N "(cached) $ECHO_C" >&6
34184else
34185 cat >conftest.$ac_ext <<_ACEOF
34186/* confdefs.h. */
34187_ACEOF
34188cat confdefs.h >>conftest.$ac_ext
34189cat >>conftest.$ac_ext <<_ACEOF
34190/* end confdefs.h. */
ac1cb8d3
VS
34191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34193#define $ac_func innocuous_$ac_func
34194
a848cd7e
SC
34195/* System header to define __stub macros and hopefully few prototypes,
34196 which can conflict with char $ac_func (); below.
34197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34198 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34199
a848cd7e
SC
34200#ifdef __STDC__
34201# include <limits.h>
34202#else
34203# include <assert.h>
34204#endif
ac1cb8d3
VS
34205
34206#undef $ac_func
34207
a848cd7e
SC
34208/* Override any gcc2 internal prototype to avoid an error. */
34209#ifdef __cplusplus
34210extern "C"
34211{
34212#endif
34213/* We use char because int might match the return type of a gcc2
34214 builtin and then its argument prototype would still apply. */
34215char $ac_func ();
34216/* The GNU C library defines this for functions which it implements
34217 to always fail with ENOSYS. Some functions are actually named
34218 something starting with __ and the normal name is an alias. */
34219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34220choke me
34221#else
34222char (*f) () = $ac_func;
34223#endif
34224#ifdef __cplusplus
34225}
34226#endif
34227
34228int
34229main ()
34230{
34231return f != $ac_func;
34232 ;
34233 return 0;
34234}
34235_ACEOF
34236rm -f conftest.$ac_objext conftest$ac_exeext
34237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34238 (eval $ac_link) 2>conftest.er1
a848cd7e 34239 ac_status=$?
ac1cb8d3
VS
34240 grep -v '^ *+' conftest.er1 >conftest.err
34241 rm -f conftest.er1
34242 cat conftest.err >&5
a848cd7e
SC
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); } &&
5f652d0d
VS
34245 { ac_try='test -z "$ac_c_werror_flag"
34246 || test ! -s conftest.err'
ac1cb8d3
VS
34247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34248 (eval $ac_try) 2>&5
34249 ac_status=$?
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); }; } &&
34252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254 (eval $ac_try) 2>&5
34255 ac_status=$?
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); }; }; then
34258 eval "$as_ac_var=yes"
34259else
34260 echo "$as_me: failed program was:" >&5
34261sed 's/^/| /' conftest.$ac_ext >&5
34262
34263eval "$as_ac_var=no"
34264fi
ac1cb8d3
VS
34265rm -f conftest.err conftest.$ac_objext \
34266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34267fi
34268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34270if test `eval echo '${'$as_ac_var'}'` = yes; then
34271 cat >>confdefs.h <<_ACEOF
34272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34273_ACEOF
34274 cat >>confdefs.h <<\_ACEOF
34275#define HAVE_DLERROR 1
34276_ACEOF
34277
34278else
34279
34280 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34281echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34282if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34284else
34285 ac_check_lib_save_LIBS=$LIBS
34286LIBS="-ldl $LIBS"
34287cat >conftest.$ac_ext <<_ACEOF
34288/* confdefs.h. */
34289_ACEOF
34290cat confdefs.h >>conftest.$ac_ext
34291cat >>conftest.$ac_ext <<_ACEOF
34292/* end confdefs.h. */
34293
34294/* Override any gcc2 internal prototype to avoid an error. */
34295#ifdef __cplusplus
34296extern "C"
34297#endif
34298/* We use char because int might match the return type of a gcc2
34299 builtin and then its argument prototype would still apply. */
34300char dlerror ();
34301int
34302main ()
34303{
34304dlerror ();
34305 ;
34306 return 0;
34307}
34308_ACEOF
34309rm -f conftest.$ac_objext conftest$ac_exeext
34310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34311 (eval $ac_link) 2>conftest.er1
a848cd7e 34312 ac_status=$?
ac1cb8d3
VS
34313 grep -v '^ *+' conftest.er1 >conftest.err
34314 rm -f conftest.er1
34315 cat conftest.err >&5
a848cd7e
SC
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); } &&
5f652d0d
VS
34318 { ac_try='test -z "$ac_c_werror_flag"
34319 || test ! -s conftest.err'
ac1cb8d3
VS
34320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321 (eval $ac_try) 2>&5
34322 ac_status=$?
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; } &&
34325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327 (eval $ac_try) 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 ac_cv_lib_dl_dlerror=yes
34332else
34333 echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336ac_cv_lib_dl_dlerror=no
34337fi
ac1cb8d3
VS
34338rm -f conftest.err conftest.$ac_objext \
34339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34340LIBS=$ac_check_lib_save_LIBS
34341fi
34342echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34343echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34344if test $ac_cv_lib_dl_dlerror = yes; then
34345 cat >>confdefs.h <<\_ACEOF
34346#define HAVE_DLERROR 1
34347_ACEOF
34348
34349fi
34350
34351
34352
34353fi
34354done
34355
34356 fi
34357 fi
34358
34359 if test "$HAVE_DL_FUNCS" = 0; then
34360 if test "$HAVE_SHL_FUNCS" = 0; then
34361 if test "$USE_UNIX" = 1; then
34362 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34363echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34364 wxUSE_DYNAMIC_LOADER=no
34365 wxUSE_DYNLIB_CLASS=no
34366 else
34367 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34368echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34369 fi
34370 fi
34371 fi
34372 fi
34373fi
34374
34375if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34376 cat >>confdefs.h <<\_ACEOF
34377#define wxUSE_DYNAMIC_LOADER 1
34378_ACEOF
34379
34380fi
34381if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34382 cat >>confdefs.h <<\_ACEOF
34383#define wxUSE_DYNLIB_CLASS 1
34384_ACEOF
34385
34386fi
34387
34388
34389
34390if test "$wxUSE_PLUGINS" = "yes" ; then
34391 if test "$wxUSE_SHARED" = "no" ; then
34392 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34393echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34394 wxUSE_PLUGINS=no
34395 fi
34396 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34397 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34398echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34399 wxUSE_PLUGINS=no
34400 fi
34401 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34402 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34403echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34404 wxUSE_PLUGINS=no
34405 fi
34406 if test "$wxUSE_PLUGINS" = "yes" ; then
34407 cat >>confdefs.h <<\_ACEOF
34408#define wxUSE_PLUGINS 1
34409_ACEOF
34410
34411 fi
34412fi
34413
34414
34415if test "$wxUSE_STL" = "yes"; then
34416 cat >>confdefs.h <<\_ACEOF
34417#define wxUSE_STL 1
34418_ACEOF
34419
34420fi
34421
34422if test "$wxUSE_APPLE_IEEE" = "yes"; then
34423 cat >>confdefs.h <<\_ACEOF
34424#define wxUSE_APPLE_IEEE 1
34425_ACEOF
34426
34427fi
34428
34429if test "$wxUSE_TIMER" = "yes"; then
34430 cat >>confdefs.h <<\_ACEOF
34431#define wxUSE_TIMER 1
34432_ACEOF
34433
34434fi
34435
34436WITH_PLUGIN_SDL=0
34437if test "$wxUSE_SOUND" = "yes"; then
34438 if test "$USE_UNIX" = "1" ; then
34439
34440for ac_header in sys/soundcard.h
34441do
34442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34443if eval "test \"\${$as_ac_Header+set}\" = set"; then
34444 echo "$as_me:$LINENO: checking for $ac_header" >&5
34445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34446if eval "test \"\${$as_ac_Header+set}\" = set"; then
34447 echo $ECHO_N "(cached) $ECHO_C" >&6
34448fi
34449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34451else
34452 # Is the header compilable?
34453echo "$as_me:$LINENO: checking $ac_header usability" >&5
34454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34455cat >conftest.$ac_ext <<_ACEOF
34456/* confdefs.h. */
34457_ACEOF
34458cat confdefs.h >>conftest.$ac_ext
34459cat >>conftest.$ac_ext <<_ACEOF
34460/* end confdefs.h. */
34461$ac_includes_default
34462#include <$ac_header>
34463_ACEOF
34464rm -f conftest.$ac_objext
34465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34466 (eval $ac_compile) 2>conftest.er1
a848cd7e 34467 ac_status=$?
ac1cb8d3
VS
34468 grep -v '^ *+' conftest.er1 >conftest.err
34469 rm -f conftest.er1
34470 cat conftest.err >&5
a848cd7e
SC
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); } &&
5f652d0d
VS
34473 { ac_try='test -z "$ac_c_werror_flag"
34474 || test ! -s conftest.err'
ac1cb8d3
VS
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; } &&
34480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; }; then
34486 ac_header_compiler=yes
34487else
34488 echo "$as_me: failed program was:" >&5
34489sed 's/^/| /' conftest.$ac_ext >&5
34490
34491ac_header_compiler=no
34492fi
ac1cb8d3 34493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34495echo "${ECHO_T}$ac_header_compiler" >&6
34496
34497# Is the header present?
34498echo "$as_me:$LINENO: checking $ac_header presence" >&5
34499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34500cat >conftest.$ac_ext <<_ACEOF
34501/* confdefs.h. */
34502_ACEOF
34503cat confdefs.h >>conftest.$ac_ext
34504cat >>conftest.$ac_ext <<_ACEOF
34505/* end confdefs.h. */
34506#include <$ac_header>
34507_ACEOF
34508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34510 ac_status=$?
34511 grep -v '^ *+' conftest.er1 >conftest.err
34512 rm -f conftest.er1
34513 cat conftest.err >&5
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); } >/dev/null; then
34516 if test -s conftest.err; then
34517 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34519 else
34520 ac_cpp_err=
34521 fi
34522else
34523 ac_cpp_err=yes
34524fi
34525if test -z "$ac_cpp_err"; then
34526 ac_header_preproc=yes
34527else
34528 echo "$as_me: failed program was:" >&5
34529sed 's/^/| /' conftest.$ac_ext >&5
34530
34531 ac_header_preproc=no
34532fi
34533rm -f conftest.err conftest.$ac_ext
34534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34535echo "${ECHO_T}$ac_header_preproc" >&6
34536
34537# So? What about this header?
ac1cb8d3
VS
34538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34539 yes:no: )
a848cd7e
SC
34540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34544 ac_header_preproc=yes
a848cd7e 34545 ;;
ac1cb8d3 34546 no:yes:* )
a848cd7e
SC
34547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34559 (
34560 cat <<\_ASBOX
ac1cb8d3
VS
34561## ----------------------------------------- ##
34562## Report this to wx-dev@lists.wxwidgets.org ##
34563## ----------------------------------------- ##
a848cd7e
SC
34564_ASBOX
34565 ) |
34566 sed "s/^/$as_me: WARNING: /" >&2
34567 ;;
34568esac
34569echo "$as_me:$LINENO: checking for $ac_header" >&5
34570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34571if eval "test \"\${$as_ac_Header+set}\" = set"; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34573else
ac1cb8d3 34574 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34575fi
34576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34578
34579fi
34580if test `eval echo '${'$as_ac_Header'}'` = yes; then
34581 cat >>confdefs.h <<_ACEOF
34582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34583_ACEOF
34584
34585fi
34586
34587done
34588
34589
34590 if test "$wxUSE_LIBSDL" != "no"; then
34591
34592# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34593if test "${with_sdl_prefix+set}" = set; then
34594 withval="$with_sdl_prefix"
34595 sdl_prefix="$withval"
34596else
34597 sdl_prefix=""
34598fi;
34599
34600# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34601if test "${with_sdl_exec_prefix+set}" = set; then
34602 withval="$with_sdl_exec_prefix"
34603 sdl_exec_prefix="$withval"
34604else
34605 sdl_exec_prefix=""
34606fi;
34607# Check whether --enable-sdltest or --disable-sdltest was given.
34608if test "${enable_sdltest+set}" = set; then
34609 enableval="$enable_sdltest"
34610
34611else
34612 enable_sdltest=yes
34613fi;
34614
34615 if test x$sdl_exec_prefix != x ; then
34616 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34617 if test x${SDL_CONFIG+set} != xset ; then
34618 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34619 fi
34620 fi
34621 if test x$sdl_prefix != x ; then
34622 sdl_args="$sdl_args --prefix=$sdl_prefix"
34623 if test x${SDL_CONFIG+set} != xset ; then
34624 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34625 fi
34626 fi
34627
34628
34629 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34630 # Extract the first word of "sdl-config", so it can be a program name with args.
34631set dummy sdl-config; ac_word=$2
34632echo "$as_me:$LINENO: checking for $ac_word" >&5
34633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34634if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34635 echo $ECHO_N "(cached) $ECHO_C" >&6
34636else
34637 case $SDL_CONFIG in
34638 [\\/]* | ?:[\\/]*)
34639 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34640 ;;
34641 *)
34642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34643for as_dir in $PATH
34644do
34645 IFS=$as_save_IFS
34646 test -z "$as_dir" && as_dir=.
34647 for ac_exec_ext in '' $ac_executable_extensions; do
34648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34649 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34651 break 2
34652 fi
34653done
34654done
34655
34656 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34657 ;;
34658esac
34659fi
34660SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34661
34662if test -n "$SDL_CONFIG"; then
34663 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34664echo "${ECHO_T}$SDL_CONFIG" >&6
34665else
34666 echo "$as_me:$LINENO: result: no" >&5
34667echo "${ECHO_T}no" >&6
34668fi
34669
34670 min_sdl_version=1.2.0
34671 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34672echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34673 no_sdl=""
34674 if test "$SDL_CONFIG" = "no" ; then
34675 no_sdl=yes
34676 else
34677 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34678 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34679
34680 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34681 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34682 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34683 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34684 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34685 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34686 if test "x$enable_sdltest" = "xyes" ; then
34687 ac_save_CFLAGS="$CFLAGS"
1e9e8aba 34688 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
34689 ac_save_LIBS="$LIBS"
34690 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34691 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34692 LIBS="$LIBS $SDL_LIBS"
34693 rm -f conf.sdltest
34694 if test "$cross_compiling" = yes; then
34695 echo $ac_n "cross compiling; assumed OK... $ac_c"
34696else
34697 cat >conftest.$ac_ext <<_ACEOF
34698/* confdefs.h. */
34699_ACEOF
34700cat confdefs.h >>conftest.$ac_ext
34701cat >>conftest.$ac_ext <<_ACEOF
34702/* end confdefs.h. */
34703
34704#include <stdio.h>
34705#include <stdlib.h>
34706#include <string.h>
34707#include "SDL.h"
34708
34709char*
34710my_strdup (char *str)
34711{
34712 char *new_str;
34713
34714 if (str)
34715 {
34716 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34717 strcpy (new_str, str);
34718 }
34719 else
34720 new_str = NULL;
34721
34722 return new_str;
34723}
34724
34725int main (int argc, char *argv[])
34726{
34727 int major, minor, micro;
34728 char *tmp_version;
34729
34730 /* This hangs on some systems (?)
34731 system ("touch conf.sdltest");
34732 */
34733 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34734
34735 /* HP/UX 9 (%@#!) writes to sscanf strings */
34736 tmp_version = my_strdup("$min_sdl_version");
34737 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34738 printf("%s, bad version string\n", "$min_sdl_version");
34739 exit(1);
34740 }
34741
34742 if (($sdl_major_version > major) ||
34743 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34744 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34745 {
34746 return 0;
34747 }
34748 else
34749 {
34750 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34751 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34752 printf("*** best to upgrade to the required version.\n");
34753 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34754 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34755 printf("*** config.cache before re-running configure\n");
34756 return 1;
34757 }
34758}
34759
34760
34761_ACEOF
34762rm -f conftest$ac_exeext
34763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34764 (eval $ac_link) 2>&5
34765 ac_status=$?
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34769 (eval $ac_try) 2>&5
34770 ac_status=$?
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); }; }; then
34773 :
34774else
34775 echo "$as_me: program exited with status $ac_status" >&5
34776echo "$as_me: failed program was:" >&5
34777sed 's/^/| /' conftest.$ac_ext >&5
34778
34779( exit $ac_status )
34780no_sdl=yes
34781fi
ac1cb8d3 34782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34783fi
34784 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34785 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34786 LIBS="$ac_save_LIBS"
34787 fi
34788 fi
34789 if test "x$no_sdl" = x ; then
34790 echo "$as_me:$LINENO: result: yes" >&5
34791echo "${ECHO_T}yes" >&6
34792
34793 EXTRALIBS_SDL="$SDL_LIBS"
34794 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34795 cat >>confdefs.h <<\_ACEOF
34796#define wxUSE_LIBSDL 1
34797_ACEOF
34798
34799
34800 else
34801 echo "$as_me:$LINENO: result: no" >&5
34802echo "${ECHO_T}no" >&6
34803 if test "$SDL_CONFIG" = "no" ; then
34804 echo "*** The sdl-config script installed by SDL could not be found"
34805 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34806 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34807 echo "*** full path to sdl-config."
34808 else
34809 if test -f conf.sdltest ; then
34810 :
34811 else
34812 echo "*** Could not run SDL test program, checking why..."
34813 CFLAGS="$CFLAGS $SDL_CFLAGS"
1e9e8aba 34814 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
34815 LIBS="$LIBS $SDL_LIBS"
34816 cat >conftest.$ac_ext <<_ACEOF
34817/* confdefs.h. */
34818_ACEOF
34819cat confdefs.h >>conftest.$ac_ext
34820cat >>conftest.$ac_ext <<_ACEOF
34821/* end confdefs.h. */
34822
34823#include <stdio.h>
34824#include "SDL.h"
34825
34826int main(int argc, char *argv[])
34827{ return 0; }
34828#undef main
34829#define main K_and_R_C_main
34830
34831int
34832main ()
34833{
34834 return 0;
34835 ;
34836 return 0;
34837}
34838_ACEOF
34839rm -f conftest.$ac_objext conftest$ac_exeext
34840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34841 (eval $ac_link) 2>conftest.er1
a848cd7e 34842 ac_status=$?
ac1cb8d3
VS
34843 grep -v '^ *+' conftest.er1 >conftest.err
34844 rm -f conftest.er1
34845 cat conftest.err >&5
a848cd7e
SC
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); } &&
5f652d0d
VS
34848 { ac_try='test -z "$ac_c_werror_flag"
34849 || test ! -s conftest.err'
ac1cb8d3
VS
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; } &&
34855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34857 (eval $ac_try) 2>&5
34858 ac_status=$?
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; }; then
34861 echo "*** The test program compiled, but did not run. This usually means"
34862 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34863 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34864 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34865 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34866 echo "*** is required on your system"
34867 echo "***"
34868 echo "*** If you have an old version installed, it is best to remove it, although"
34869 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34870else
34871 echo "$as_me: failed program was:" >&5
34872sed 's/^/| /' conftest.$ac_ext >&5
34873
34874 echo "*** The test program failed to compile or link. See the file config.log for the"
34875 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34876 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34877 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34878fi
ac1cb8d3
VS
34879rm -f conftest.err conftest.$ac_objext \
34880 conftest$ac_exeext conftest.$ac_ext
a848cd7e 34881 CFLAGS="$ac_save_CFLAGS"
1e9e8aba 34882 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
34883 LIBS="$ac_save_LIBS"
34884 fi
34885 fi
34886 SDL_CFLAGS=""
34887 SDL_LIBS=""
34888 wxUSE_LIBSDL="no"
34889 fi
34890
34891
34892 rm -f conf.sdltest
34893
34894 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34895 WITH_PLUGIN_SDL=1
34896 fi
34897 fi
34898 fi
34899
34900 cat >>confdefs.h <<\_ACEOF
34901#define wxUSE_SOUND 1
34902_ACEOF
34903
34904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34905fi
34906
d1c38808
VZ
34907if test "$WXGTK20" = 1; then
34908 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
34909 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
34910
34911
34912 succeeded=no
34913
34914 if test -z "$PKG_CONFIG"; then
34915 # Extract the first word of "pkg-config", so it can be a program name with args.
34916set dummy pkg-config; ac_word=$2
34917echo "$as_me:$LINENO: checking for $ac_word" >&5
34918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34919if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34920 echo $ECHO_N "(cached) $ECHO_C" >&6
34921else
34922 case $PKG_CONFIG in
34923 [\\/]* | ?:[\\/]*)
34924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34925 ;;
34926 *)
34927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34928for as_dir in $PATH
34929do
34930 IFS=$as_save_IFS
34931 test -z "$as_dir" && as_dir=.
34932 for ac_exec_ext in '' $ac_executable_extensions; do
34933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34936 break 2
34937 fi
34938done
34939done
34940
34941 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
34942 ;;
34943esac
34944fi
34945PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34946
34947if test -n "$PKG_CONFIG"; then
34948 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34949echo "${ECHO_T}$PKG_CONFIG" >&6
34950else
34951 echo "$as_me:$LINENO: result: no" >&5
34952echo "${ECHO_T}no" >&6
34953fi
34954
34955 fi
34956
34957 if test "$PKG_CONFIG" = "no" ; then
34958 echo "*** The pkg-config script could not be found. Make sure it is"
34959 echo "*** in your path, or set the PKG_CONFIG environment variable"
34960 echo "*** to the full path to pkg-config."
34961 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
34962 else
34963 PKG_CONFIG_MIN_VERSION=0.9.0
34964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
34965 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
34966echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 34967
ffa762ff 34968 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
34969 echo "$as_me:$LINENO: result: yes" >&5
34970echo "${ECHO_T}yes" >&6
34971 succeeded=yes
34972
34973 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
34974echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 34975 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34976 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
34977echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
34978
34979 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
34980echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 34981 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34982 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
34983echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
34984 else
34985 LIBGNOMEPRINTUI_CFLAGS=""
34986 LIBGNOMEPRINTUI_LIBS=""
34987 ## If we have a custom action on failure, don't print errors, but
34988 ## do set a variable so people can do so.
ffa762ff 34989 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
34990
34991 fi
34992
34993
34994
34995 else
34996 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
34997 echo "*** See http://www.freedesktop.org/software/pkgconfig"
34998 fi
34999 fi
35000
35001 if test $succeeded = yes; then
35002
d1c38808
VZ
35003 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35004 cat >>confdefs.h <<\_ACEOF
35005#define wxUSE_LIBGNOMEPRINT 1
35006_ACEOF
35007
35008
35009 else
35010
35011 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35012echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35013 wxUSE_LIBGNOMEPRINT="no"
35014
35015
35016 fi
35017
35018 fi
35019 fi
35020fi
35021
35022
a848cd7e
SC
35023if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35024 cat >>confdefs.h <<\_ACEOF
35025#define wxUSE_CMDLINE_PARSER 1
35026_ACEOF
35027
35028fi
35029
35030if test "$wxUSE_STOPWATCH" = "yes"; then
35031 cat >>confdefs.h <<\_ACEOF
35032#define wxUSE_STOPWATCH 1
35033_ACEOF
35034
35035fi
35036
35037if test "$wxUSE_DATETIME" = "yes"; then
35038 cat >>confdefs.h <<\_ACEOF
35039#define wxUSE_DATETIME 1
35040_ACEOF
35041
35042fi
35043
35044if test "$wxUSE_FILE" = "yes"; then
35045 cat >>confdefs.h <<\_ACEOF
35046#define wxUSE_FILE 1
35047_ACEOF
35048
35049fi
35050
35051if test "$wxUSE_FFILE" = "yes"; then
35052 cat >>confdefs.h <<\_ACEOF
35053#define wxUSE_FFILE 1
35054_ACEOF
35055
35056fi
35057
35058if test "$wxUSE_FILESYSTEM" = "yes"; then
35059 cat >>confdefs.h <<\_ACEOF
35060#define wxUSE_FILESYSTEM 1
35061_ACEOF
35062
35063fi
35064
35065if test "$wxUSE_FS_ZIP" = "yes"; then
35066 cat >>confdefs.h <<\_ACEOF
35067#define wxUSE_FS_ZIP 1
35068_ACEOF
35069
35070fi
35071
35072if test "$wxUSE_ZIPSTREAM" = "yes"; then
35073 cat >>confdefs.h <<\_ACEOF
35074#define wxUSE_ZIPSTREAM 1
35075_ACEOF
35076
35077fi
35078
a848cd7e
SC
35079if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35080 cat >>confdefs.h <<\_ACEOF
35081#define wxUSE_ON_FATAL_EXCEPTION 1
35082_ACEOF
35083
35084fi
35085
35086if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35087 cat >>confdefs.h <<\_ACEOF
35088#define wxUSE_SNGLINST_CHECKER 1
35089_ACEOF
35090
35091fi
35092
35093if test "$wxUSE_BUSYINFO" = "yes"; then
35094 cat >>confdefs.h <<\_ACEOF
35095#define wxUSE_BUSYINFO 1
35096_ACEOF
35097
35098fi
35099
35100if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35101 cat >>confdefs.h <<\_ACEOF
35102#define wxUSE_STD_IOSTREAM 1
35103_ACEOF
35104
35105fi
35106
35107if test "$wxUSE_TEXTBUFFER" = "yes"; then
35108 cat >>confdefs.h <<\_ACEOF
35109#define wxUSE_TEXTBUFFER 1
35110_ACEOF
35111
35112fi
35113
35114if test "$wxUSE_TEXTFILE" = "yes"; then
35115 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35116 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35117echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35118 else
35119 cat >>confdefs.h <<\_ACEOF
35120#define wxUSE_TEXTFILE 1
35121_ACEOF
35122
35123 fi
35124fi
35125
35126if test "$wxUSE_CONFIG" = "yes" ; then
35127 if test "$wxUSE_TEXTFILE" != "yes"; then
35128 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35129echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35130 else
35131 cat >>confdefs.h <<\_ACEOF
35132#define wxUSE_CONFIG 1
35133_ACEOF
35134
35135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35136 fi
35137fi
35138
35139if test "$wxUSE_INTL" = "yes" ; then
35140 if test "$wxUSE_FILE" != "yes"; then
35141 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35142echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35143 else
35144 cat >>confdefs.h <<\_ACEOF
35145#define wxUSE_INTL 1
35146_ACEOF
35147
35148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35149 GUIDIST="$GUIDIST INTL_DIST"
35150 fi
35151fi
35152
35153if test "$wxUSE_LOG" = "yes"; then
35154 cat >>confdefs.h <<\_ACEOF
35155#define wxUSE_LOG 1
35156_ACEOF
35157
35158
35159 if test "$wxUSE_LOGGUI" = "yes"; then
35160 cat >>confdefs.h <<\_ACEOF
35161#define wxUSE_LOGGUI 1
35162_ACEOF
35163
35164 fi
35165
35166 if test "$wxUSE_LOGWINDOW" = "yes"; then
35167 cat >>confdefs.h <<\_ACEOF
35168#define wxUSE_LOGWINDOW 1
35169_ACEOF
35170
35171 fi
35172
35173 if test "$wxUSE_LOGDIALOG" = "yes"; then
35174 cat >>confdefs.h <<\_ACEOF
35175#define wxUSE_LOG_DIALOG 1
35176_ACEOF
35177
35178 fi
35179fi
35180
35181if test "$wxUSE_LONGLONG" = "yes"; then
35182 cat >>confdefs.h <<\_ACEOF
35183#define wxUSE_LONGLONG 1
35184_ACEOF
35185
35186fi
35187
35188if test "$wxUSE_GEOMETRY" = "yes"; then
35189 cat >>confdefs.h <<\_ACEOF
35190#define wxUSE_GEOMETRY 1
35191_ACEOF
35192
35193fi
35194
35195if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35196 cat >>confdefs.h <<\_ACEOF
35197#define wxUSE_DIALUP_MANAGER 1
35198_ACEOF
35199
35200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35201fi
35202
35203if test "$wxUSE_STREAMS" = "yes" ; then
35204 cat >>confdefs.h <<\_ACEOF
35205#define wxUSE_STREAMS 1
35206_ACEOF
35207
35208fi
35209
35210
35211if test "$wxUSE_DATETIME" = "yes"; then
35212
35213for ac_func in strptime
35214do
35215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35216echo "$as_me:$LINENO: checking for $ac_func" >&5
35217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35218if eval "test \"\${$as_ac_var+set}\" = set"; then
35219 echo $ECHO_N "(cached) $ECHO_C" >&6
35220else
35221 cat >conftest.$ac_ext <<_ACEOF
35222/* confdefs.h. */
35223_ACEOF
35224cat confdefs.h >>conftest.$ac_ext
35225cat >>conftest.$ac_ext <<_ACEOF
35226/* end confdefs.h. */
ac1cb8d3
VS
35227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35229#define $ac_func innocuous_$ac_func
35230
a848cd7e
SC
35231/* System header to define __stub macros and hopefully few prototypes,
35232 which can conflict with char $ac_func (); below.
35233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35234 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35235
a848cd7e
SC
35236#ifdef __STDC__
35237# include <limits.h>
35238#else
35239# include <assert.h>
35240#endif
ac1cb8d3
VS
35241
35242#undef $ac_func
35243
a848cd7e
SC
35244/* Override any gcc2 internal prototype to avoid an error. */
35245#ifdef __cplusplus
35246extern "C"
35247{
35248#endif
35249/* We use char because int might match the return type of a gcc2
35250 builtin and then its argument prototype would still apply. */
35251char $ac_func ();
35252/* The GNU C library defines this for functions which it implements
35253 to always fail with ENOSYS. Some functions are actually named
35254 something starting with __ and the normal name is an alias. */
35255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35256choke me
35257#else
35258char (*f) () = $ac_func;
35259#endif
35260#ifdef __cplusplus
35261}
35262#endif
35263
35264int
35265main ()
35266{
35267return f != $ac_func;
35268 ;
35269 return 0;
35270}
35271_ACEOF
35272rm -f conftest.$ac_objext conftest$ac_exeext
35273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35274 (eval $ac_link) 2>conftest.er1
a848cd7e 35275 ac_status=$?
ac1cb8d3
VS
35276 grep -v '^ *+' conftest.er1 >conftest.err
35277 rm -f conftest.er1
35278 cat conftest.err >&5
a848cd7e
SC
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); } &&
5f652d0d
VS
35281 { ac_try='test -z "$ac_c_werror_flag"
35282 || test ! -s conftest.err'
ac1cb8d3
VS
35283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284 (eval $ac_try) 2>&5
35285 ac_status=$?
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; } &&
35288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35291 ac_status=$?
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; }; then
35294 eval "$as_ac_var=yes"
35295else
35296 echo "$as_me: failed program was:" >&5
35297sed 's/^/| /' conftest.$ac_ext >&5
35298
35299eval "$as_ac_var=no"
35300fi
ac1cb8d3
VS
35301rm -f conftest.err conftest.$ac_objext \
35302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35303fi
35304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35306if test `eval echo '${'$as_ac_var'}'` = yes; then
35307 cat >>confdefs.h <<_ACEOF
35308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35309_ACEOF
35310
35311fi
35312done
35313
35314
35315 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35316echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35317if test "${wx_cv_var_timezone+set}" = set; then
35318 echo $ECHO_N "(cached) $ECHO_C" >&6
35319else
35320
35321 cat >conftest.$ac_ext <<_ACEOF
35322/* confdefs.h. */
35323_ACEOF
35324cat confdefs.h >>conftest.$ac_ext
35325cat >>conftest.$ac_ext <<_ACEOF
35326/* end confdefs.h. */
35327
35328 #include <time.h>
35329
35330int
35331main ()
35332{
35333
35334 int tz;
35335 tz = timezone;
35336
35337 ;
35338 return 0;
35339}
35340_ACEOF
35341rm -f conftest.$ac_objext
35342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35343 (eval $ac_compile) 2>conftest.er1
a848cd7e 35344 ac_status=$?
ac1cb8d3
VS
35345 grep -v '^ *+' conftest.er1 >conftest.err
35346 rm -f conftest.er1
35347 cat conftest.err >&5
a848cd7e
SC
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); } &&
5f652d0d
VS
35350 { ac_try='test -z "$ac_c_werror_flag"
35351 || test ! -s conftest.err'
ac1cb8d3
VS
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35354 ac_status=$?
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; } &&
35357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359 (eval $ac_try) 2>&5
35360 ac_status=$?
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); }; }; then
35363
35364 wx_cv_var_timezone=timezone
35365
35366else
35367 echo "$as_me: failed program was:" >&5
35368sed 's/^/| /' conftest.$ac_ext >&5
35369
35370
35371 cat >conftest.$ac_ext <<_ACEOF
35372/* confdefs.h. */
35373_ACEOF
35374cat confdefs.h >>conftest.$ac_ext
35375cat >>conftest.$ac_ext <<_ACEOF
35376/* end confdefs.h. */
35377
35378 #include <time.h>
35379
35380int
35381main ()
35382{
35383
35384 int tz;
35385 tz = _timezone;
35386
35387 ;
35388 return 0;
35389}
35390_ACEOF
35391rm -f conftest.$ac_objext
35392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35393 (eval $ac_compile) 2>conftest.er1
a848cd7e 35394 ac_status=$?
ac1cb8d3
VS
35395 grep -v '^ *+' conftest.er1 >conftest.err
35396 rm -f conftest.er1
35397 cat conftest.err >&5
a848cd7e
SC
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); } &&
5f652d0d
VS
35400 { ac_try='test -z "$ac_c_werror_flag"
35401 || test ! -s conftest.err'
ac1cb8d3
VS
35402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35403 (eval $ac_try) 2>&5
35404 ac_status=$?
35405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406 (exit $ac_status); }; } &&
35407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35409 (eval $ac_try) 2>&5
35410 ac_status=$?
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); }; }; then
35413
35414 wx_cv_var_timezone=_timezone
35415
35416else
35417 echo "$as_me: failed program was:" >&5
35418sed 's/^/| /' conftest.$ac_ext >&5
35419
35420
35421 cat >conftest.$ac_ext <<_ACEOF
35422/* confdefs.h. */
35423_ACEOF
35424cat confdefs.h >>conftest.$ac_ext
35425cat >>conftest.$ac_ext <<_ACEOF
35426/* end confdefs.h. */
35427
35428 #include <time.h>
35429
35430int
35431main ()
35432{
35433
35434 int tz;
35435 tz = __timezone;
35436
35437 ;
35438 return 0;
35439}
35440_ACEOF
35441rm -f conftest.$ac_objext
35442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35443 (eval $ac_compile) 2>conftest.er1
a848cd7e 35444 ac_status=$?
ac1cb8d3
VS
35445 grep -v '^ *+' conftest.er1 >conftest.err
35446 rm -f conftest.er1
35447 cat conftest.err >&5
a848cd7e
SC
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); } &&
5f652d0d
VS
35450 { ac_try='test -z "$ac_c_werror_flag"
35451 || test ! -s conftest.err'
ac1cb8d3
VS
35452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453 (eval $ac_try) 2>&5
35454 ac_status=$?
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; } &&
35457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; }; then
35463
35464 wx_cv_var_timezone=__timezone
35465
35466else
35467 echo "$as_me: failed program was:" >&5
35468sed 's/^/| /' conftest.$ac_ext >&5
35469
35470
35471 if test "$USE_DOS" = 0 ; then
35472 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35473echo "$as_me: WARNING: no timezone variable" >&2;}
35474 fi
35475
35476
35477fi
ac1cb8d3 35478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35479
35480
35481fi
ac1cb8d3 35482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35483
35484
35485fi
ac1cb8d3 35486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35487
35488
35489fi
35490echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35491echo "${ECHO_T}$wx_cv_var_timezone" >&6
35492
35493 if test "x$wx_cv_var_timezone" != x ; then
35494 cat >>confdefs.h <<_ACEOF
35495#define WX_TIMEZONE $wx_cv_var_timezone
35496_ACEOF
35497
35498 fi
35499
35500
35501for ac_func in localtime
35502do
35503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35504echo "$as_me:$LINENO: checking for $ac_func" >&5
35505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35506if eval "test \"\${$as_ac_var+set}\" = set"; then
35507 echo $ECHO_N "(cached) $ECHO_C" >&6
35508else
35509 cat >conftest.$ac_ext <<_ACEOF
35510/* confdefs.h. */
35511_ACEOF
35512cat confdefs.h >>conftest.$ac_ext
35513cat >>conftest.$ac_ext <<_ACEOF
35514/* end confdefs.h. */
ac1cb8d3
VS
35515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35517#define $ac_func innocuous_$ac_func
35518
a848cd7e
SC
35519/* System header to define __stub macros and hopefully few prototypes,
35520 which can conflict with char $ac_func (); below.
35521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35522 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35523
a848cd7e
SC
35524#ifdef __STDC__
35525# include <limits.h>
35526#else
35527# include <assert.h>
35528#endif
ac1cb8d3
VS
35529
35530#undef $ac_func
35531
a848cd7e
SC
35532/* Override any gcc2 internal prototype to avoid an error. */
35533#ifdef __cplusplus
35534extern "C"
35535{
35536#endif
35537/* We use char because int might match the return type of a gcc2
35538 builtin and then its argument prototype would still apply. */
35539char $ac_func ();
35540/* The GNU C library defines this for functions which it implements
35541 to always fail with ENOSYS. Some functions are actually named
35542 something starting with __ and the normal name is an alias. */
35543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35544choke me
35545#else
35546char (*f) () = $ac_func;
35547#endif
35548#ifdef __cplusplus
35549}
35550#endif
35551
35552int
35553main ()
35554{
35555return f != $ac_func;
35556 ;
35557 return 0;
35558}
35559_ACEOF
35560rm -f conftest.$ac_objext conftest$ac_exeext
35561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35562 (eval $ac_link) 2>conftest.er1
a848cd7e 35563 ac_status=$?
ac1cb8d3
VS
35564 grep -v '^ *+' conftest.er1 >conftest.err
35565 rm -f conftest.er1
35566 cat conftest.err >&5
a848cd7e
SC
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } &&
5f652d0d
VS
35569 { ac_try='test -z "$ac_c_werror_flag"
35570 || test ! -s conftest.err'
ac1cb8d3
VS
35571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35572 (eval $ac_try) 2>&5
35573 ac_status=$?
35574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 (exit $ac_status); }; } &&
35576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35578 (eval $ac_try) 2>&5
35579 ac_status=$?
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); }; }; then
35582 eval "$as_ac_var=yes"
35583else
35584 echo "$as_me: failed program was:" >&5
35585sed 's/^/| /' conftest.$ac_ext >&5
35586
35587eval "$as_ac_var=no"
35588fi
ac1cb8d3
VS
35589rm -f conftest.err conftest.$ac_objext \
35590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35591fi
35592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35594if test `eval echo '${'$as_ac_var'}'` = yes; then
35595 cat >>confdefs.h <<_ACEOF
35596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35597_ACEOF
35598
35599fi
35600done
35601
35602
35603 if test "$ac_cv_func_localtime" = "yes"; then
35604 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35605echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35606if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35607 echo $ECHO_N "(cached) $ECHO_C" >&6
35608else
35609
35610 cat >conftest.$ac_ext <<_ACEOF
35611/* confdefs.h. */
35612_ACEOF
35613cat confdefs.h >>conftest.$ac_ext
35614cat >>conftest.$ac_ext <<_ACEOF
35615/* end confdefs.h. */
35616
35617 #include <time.h>
35618
35619int
35620main ()
35621{
35622
35623 struct tm tm;
35624 tm.tm_gmtoff++;
35625
35626 ;
35627 return 0;
35628}
35629_ACEOF
35630rm -f conftest.$ac_objext
35631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35632 (eval $ac_compile) 2>conftest.er1
a848cd7e 35633 ac_status=$?
ac1cb8d3
VS
35634 grep -v '^ *+' conftest.er1 >conftest.err
35635 rm -f conftest.er1
35636 cat conftest.err >&5
a848cd7e
SC
35637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638 (exit $ac_status); } &&
5f652d0d
VS
35639 { ac_try='test -z "$ac_c_werror_flag"
35640 || test ! -s conftest.err'
ac1cb8d3
VS
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; } &&
35646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; }; then
35652
35653 wx_cv_struct_tm_has_gmtoff=yes
35654
35655else
35656 echo "$as_me: failed program was:" >&5
35657sed 's/^/| /' conftest.$ac_ext >&5
35658
35659wx_cv_struct_tm_has_gmtoff=no
35660
35661fi
ac1cb8d3 35662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35663
35664fi
35665echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35666echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35667 fi
35668
35669 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35670 cat >>confdefs.h <<\_ACEOF
35671#define WX_GMTOFF_IN_TM 1
35672_ACEOF
35673
35674 fi
35675
35676
35677
35678for ac_func in gettimeofday ftime
35679do
35680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35681echo "$as_me:$LINENO: checking for $ac_func" >&5
35682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35683if eval "test \"\${$as_ac_var+set}\" = set"; then
35684 echo $ECHO_N "(cached) $ECHO_C" >&6
35685else
35686 cat >conftest.$ac_ext <<_ACEOF
35687/* confdefs.h. */
35688_ACEOF
35689cat confdefs.h >>conftest.$ac_ext
35690cat >>conftest.$ac_ext <<_ACEOF
35691/* end confdefs.h. */
ac1cb8d3
VS
35692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35694#define $ac_func innocuous_$ac_func
35695
a848cd7e
SC
35696/* System header to define __stub macros and hopefully few prototypes,
35697 which can conflict with char $ac_func (); below.
35698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35699 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35700
a848cd7e
SC
35701#ifdef __STDC__
35702# include <limits.h>
35703#else
35704# include <assert.h>
35705#endif
ac1cb8d3
VS
35706
35707#undef $ac_func
35708
a848cd7e
SC
35709/* Override any gcc2 internal prototype to avoid an error. */
35710#ifdef __cplusplus
35711extern "C"
35712{
35713#endif
35714/* We use char because int might match the return type of a gcc2
35715 builtin and then its argument prototype would still apply. */
35716char $ac_func ();
35717/* The GNU C library defines this for functions which it implements
35718 to always fail with ENOSYS. Some functions are actually named
35719 something starting with __ and the normal name is an alias. */
35720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35721choke me
35722#else
35723char (*f) () = $ac_func;
35724#endif
35725#ifdef __cplusplus
35726}
35727#endif
35728
35729int
35730main ()
35731{
35732return f != $ac_func;
35733 ;
35734 return 0;
35735}
35736_ACEOF
35737rm -f conftest.$ac_objext conftest$ac_exeext
35738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35739 (eval $ac_link) 2>conftest.er1
a848cd7e 35740 ac_status=$?
ac1cb8d3
VS
35741 grep -v '^ *+' conftest.er1 >conftest.err
35742 rm -f conftest.er1
35743 cat conftest.err >&5
a848cd7e
SC
35744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745 (exit $ac_status); } &&
5f652d0d
VS
35746 { ac_try='test -z "$ac_c_werror_flag"
35747 || test ! -s conftest.err'
ac1cb8d3
VS
35748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35749 (eval $ac_try) 2>&5
35750 ac_status=$?
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); }; } &&
35753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; }; then
35759 eval "$as_ac_var=yes"
35760else
35761 echo "$as_me: failed program was:" >&5
35762sed 's/^/| /' conftest.$ac_ext >&5
35763
35764eval "$as_ac_var=no"
35765fi
ac1cb8d3
VS
35766rm -f conftest.err conftest.$ac_objext \
35767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35768fi
35769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35771if test `eval echo '${'$as_ac_var'}'` = yes; then
35772 cat >>confdefs.h <<_ACEOF
35773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35774_ACEOF
35775 break
35776fi
35777done
35778
35779
35780 if test "$ac_cv_func_gettimeofday" = "yes"; then
35781 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35782echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35783if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35784 echo $ECHO_N "(cached) $ECHO_C" >&6
35785else
35786
35787
35788
35789 ac_ext=cc
35790ac_cpp='$CXXCPP $CPPFLAGS'
35791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35794
35795
35796 cat >conftest.$ac_ext <<_ACEOF
35797/* confdefs.h. */
35798_ACEOF
35799cat confdefs.h >>conftest.$ac_ext
35800cat >>conftest.$ac_ext <<_ACEOF
35801/* end confdefs.h. */
35802
35803 #include <sys/time.h>
35804 #include <unistd.h>
35805
35806int
35807main ()
35808{
35809
35810 struct timeval tv;
35811 gettimeofday(&tv, NULL);
35812
35813 ;
35814 return 0;
35815}
35816_ACEOF
35817rm -f conftest.$ac_objext
35818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35819 (eval $ac_compile) 2>conftest.er1
a848cd7e 35820 ac_status=$?
ac1cb8d3
VS
35821 grep -v '^ *+' conftest.er1 >conftest.err
35822 rm -f conftest.er1
35823 cat conftest.err >&5
a848cd7e
SC
35824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825 (exit $ac_status); } &&
5f652d0d
VS
35826 { ac_try='test -z "$ac_cxx_werror_flag"
35827 || test ! -s conftest.err'
ac1cb8d3
VS
35828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35829 (eval $ac_try) 2>&5
35830 ac_status=$?
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); }; } &&
35833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35835 (eval $ac_try) 2>&5
35836 ac_status=$?
35837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838 (exit $ac_status); }; }; then
35839 wx_cv_func_gettimeofday_has_2_args=yes
35840else
35841 echo "$as_me: failed program was:" >&5
35842sed 's/^/| /' conftest.$ac_ext >&5
35843
35844cat >conftest.$ac_ext <<_ACEOF
35845/* confdefs.h. */
35846_ACEOF
35847cat confdefs.h >>conftest.$ac_ext
35848cat >>conftest.$ac_ext <<_ACEOF
35849/* end confdefs.h. */
35850
35851 #include <sys/time.h>
35852 #include <unistd.h>
35853
35854int
35855main ()
35856{
35857
35858 struct timeval tv;
35859 gettimeofday(&tv);
35860
35861 ;
35862 return 0;
35863}
35864_ACEOF
35865rm -f conftest.$ac_objext
35866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35867 (eval $ac_compile) 2>conftest.er1
a848cd7e 35868 ac_status=$?
ac1cb8d3
VS
35869 grep -v '^ *+' conftest.er1 >conftest.err
35870 rm -f conftest.er1
35871 cat conftest.err >&5
a848cd7e
SC
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } &&
5f652d0d
VS
35874 { ac_try='test -z "$ac_cxx_werror_flag"
35875 || test ! -s conftest.err'
ac1cb8d3
VS
35876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35877 (eval $ac_try) 2>&5
35878 ac_status=$?
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); }; } &&
35881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; }; then
35887 wx_cv_func_gettimeofday_has_2_args=no
35888else
35889 echo "$as_me: failed program was:" >&5
35890sed 's/^/| /' conftest.$ac_ext >&5
35891
35892
35893 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35894echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35895 wx_cv_func_gettimeofday_has_2_args=unknown
35896
35897
35898fi
ac1cb8d3 35899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35900
35901fi
ac1cb8d3 35902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35903 ac_ext=c
35904ac_cpp='$CPP $CPPFLAGS'
35905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35907ac_compiler_gnu=$ac_cv_c_compiler_gnu
35908
35909
35910fi
35911echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35912echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35913
35914 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35915 cat >>confdefs.h <<\_ACEOF
35916#define WX_GETTIMEOFDAY_NO_TZ 1
35917_ACEOF
35918
35919 fi
35920 fi
35921
35922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35923fi
35924
35925
35926if test "$wxUSE_SOCKETS" = "yes"; then
35927 if test "$wxUSE_MGL" = "1"; then
35928 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35929echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35930 wxUSE_SOCKETS="no"
35931 fi
35932fi
35933
35934if test "$wxUSE_SOCKETS" = "yes"; then
35935 if test "$TOOLKIT" != "MSW"; then
35936 echo "$as_me:$LINENO: checking for socket" >&5
35937echo $ECHO_N "checking for socket... $ECHO_C" >&6
35938if test "${ac_cv_func_socket+set}" = set; then
35939 echo $ECHO_N "(cached) $ECHO_C" >&6
35940else
35941 cat >conftest.$ac_ext <<_ACEOF
35942/* confdefs.h. */
35943_ACEOF
35944cat confdefs.h >>conftest.$ac_ext
35945cat >>conftest.$ac_ext <<_ACEOF
35946/* end confdefs.h. */
ac1cb8d3
VS
35947/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35949#define socket innocuous_socket
35950
a848cd7e
SC
35951/* System header to define __stub macros and hopefully few prototypes,
35952 which can conflict with char socket (); below.
35953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35954 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35955
a848cd7e
SC
35956#ifdef __STDC__
35957# include <limits.h>
35958#else
35959# include <assert.h>
35960#endif
ac1cb8d3
VS
35961
35962#undef socket
35963
a848cd7e
SC
35964/* Override any gcc2 internal prototype to avoid an error. */
35965#ifdef __cplusplus
35966extern "C"
35967{
35968#endif
35969/* We use char because int might match the return type of a gcc2
35970 builtin and then its argument prototype would still apply. */
35971char socket ();
35972/* The GNU C library defines this for functions which it implements
35973 to always fail with ENOSYS. Some functions are actually named
35974 something starting with __ and the normal name is an alias. */
35975#if defined (__stub_socket) || defined (__stub___socket)
35976choke me
35977#else
35978char (*f) () = socket;
35979#endif
35980#ifdef __cplusplus
35981}
35982#endif
35983
35984int
35985main ()
35986{
35987return f != socket;
35988 ;
35989 return 0;
35990}
35991_ACEOF
35992rm -f conftest.$ac_objext conftest$ac_exeext
35993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35994 (eval $ac_link) 2>conftest.er1
a848cd7e 35995 ac_status=$?
ac1cb8d3
VS
35996 grep -v '^ *+' conftest.er1 >conftest.err
35997 rm -f conftest.er1
35998 cat conftest.err >&5
a848cd7e
SC
35999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000 (exit $ac_status); } &&
5f652d0d
VS
36001 { ac_try='test -z "$ac_c_werror_flag"
36002 || test ! -s conftest.err'
ac1cb8d3
VS
36003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004 (eval $ac_try) 2>&5
36005 ac_status=$?
36006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007 (exit $ac_status); }; } &&
36008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36010 (eval $ac_try) 2>&5
36011 ac_status=$?
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); }; }; then
36014 ac_cv_func_socket=yes
36015else
36016 echo "$as_me: failed program was:" >&5
36017sed 's/^/| /' conftest.$ac_ext >&5
36018
36019ac_cv_func_socket=no
36020fi
ac1cb8d3
VS
36021rm -f conftest.err conftest.$ac_objext \
36022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36023fi
36024echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36025echo "${ECHO_T}$ac_cv_func_socket" >&6
36026if test $ac_cv_func_socket = yes; then
36027 :
36028else
36029
36030 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36031echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36032if test "${ac_cv_lib_socket_socket+set}" = set; then
36033 echo $ECHO_N "(cached) $ECHO_C" >&6
36034else
36035 ac_check_lib_save_LIBS=$LIBS
36036LIBS="-lsocket $LIBS"
36037cat >conftest.$ac_ext <<_ACEOF
36038/* confdefs.h. */
36039_ACEOF
36040cat confdefs.h >>conftest.$ac_ext
36041cat >>conftest.$ac_ext <<_ACEOF
36042/* end confdefs.h. */
36043
36044/* Override any gcc2 internal prototype to avoid an error. */
36045#ifdef __cplusplus
36046extern "C"
36047#endif
36048/* We use char because int might match the return type of a gcc2
36049 builtin and then its argument prototype would still apply. */
36050char socket ();
36051int
36052main ()
36053{
36054socket ();
36055 ;
36056 return 0;
36057}
36058_ACEOF
36059rm -f conftest.$ac_objext conftest$ac_exeext
36060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36061 (eval $ac_link) 2>conftest.er1
a848cd7e 36062 ac_status=$?
ac1cb8d3
VS
36063 grep -v '^ *+' conftest.er1 >conftest.err
36064 rm -f conftest.er1
36065 cat conftest.err >&5
a848cd7e
SC
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } &&
5f652d0d
VS
36068 { ac_try='test -z "$ac_c_werror_flag"
36069 || test ! -s conftest.err'
ac1cb8d3
VS
36070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36071 (eval $ac_try) 2>&5
36072 ac_status=$?
36073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074 (exit $ac_status); }; } &&
36075 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36077 (eval $ac_try) 2>&5
36078 ac_status=$?
36079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080 (exit $ac_status); }; }; then
36081 ac_cv_lib_socket_socket=yes
36082else
36083 echo "$as_me: failed program was:" >&5
36084sed 's/^/| /' conftest.$ac_ext >&5
36085
36086ac_cv_lib_socket_socket=no
36087fi
ac1cb8d3
VS
36088rm -f conftest.err conftest.$ac_objext \
36089 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36090LIBS=$ac_check_lib_save_LIBS
36091fi
36092echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36093echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36094if test $ac_cv_lib_socket_socket = yes; then
36095 if test "$INET_LINK" != " -lsocket"; then
36096 INET_LINK="$INET_LINK -lsocket"
36097 fi
36098else
36099
36100 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36101echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36102 wxUSE_SOCKETS=no
36103
36104
36105fi
36106
36107
36108
36109fi
36110
36111 fi
36112fi
36113
36114if test "$wxUSE_SOCKETS" = "yes" ; then
36115 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36116 ac_ext=cc
36117ac_cpp='$CXXCPP $CPPFLAGS'
36118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36121
36122 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36123echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36124if test "${wx_cv_type_getsockname3+set}" = set; then
36125 echo $ECHO_N "(cached) $ECHO_C" >&6
36126else
36127
36128 cat >conftest.$ac_ext <<_ACEOF
36129/* confdefs.h. */
36130_ACEOF
36131cat confdefs.h >>conftest.$ac_ext
36132cat >>conftest.$ac_ext <<_ACEOF
36133/* end confdefs.h. */
36134
36135 #include <sys/types.h>
36136 #include <sys/socket.h>
36137
36138int
36139main ()
36140{
36141
36142 socklen_t len;
36143 getsockname(0, 0, &len);
36144
36145 ;
36146 return 0;
36147}
36148_ACEOF
36149rm -f conftest.$ac_objext
36150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36151 (eval $ac_compile) 2>conftest.er1
a848cd7e 36152 ac_status=$?
ac1cb8d3
VS
36153 grep -v '^ *+' conftest.er1 >conftest.err
36154 rm -f conftest.er1
36155 cat conftest.err >&5
a848cd7e
SC
36156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); } &&
5f652d0d
VS
36158 { ac_try='test -z "$ac_cxx_werror_flag"
36159 || test ! -s conftest.err'
ac1cb8d3
VS
36160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36161 (eval $ac_try) 2>&5
36162 ac_status=$?
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); }; } &&
36165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167 (eval $ac_try) 2>&5
36168 ac_status=$?
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; }; then
36171 wx_cv_type_getsockname3=socklen_t
36172else
36173 echo "$as_me: failed program was:" >&5
36174sed 's/^/| /' conftest.$ac_ext >&5
36175
36176
36177 CFLAGS_OLD="$CFLAGS"
36178 if test "$GCC" = yes ; then
36179 CFLAGS="$CFLAGS -Werror"
36180 fi
36181
36182 cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
36188
36189 #include <sys/types.h>
36190 #include <sys/socket.h>
36191
36192int
36193main ()
36194{
36195
36196 size_t len;
36197 getsockname(0, 0, &len);
36198
36199 ;
36200 return 0;
36201}
36202_ACEOF
36203rm -f conftest.$ac_objext
36204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36205 (eval $ac_compile) 2>conftest.er1
a848cd7e 36206 ac_status=$?
ac1cb8d3
VS
36207 grep -v '^ *+' conftest.er1 >conftest.err
36208 rm -f conftest.er1
36209 cat conftest.err >&5
a848cd7e
SC
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); } &&
5f652d0d
VS
36212 { ac_try='test -z "$ac_cxx_werror_flag"
36213 || test ! -s conftest.err'
ac1cb8d3
VS
36214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215 (eval $ac_try) 2>&5
36216 ac_status=$?
36217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218 (exit $ac_status); }; } &&
36219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36221 (eval $ac_try) 2>&5
36222 ac_status=$?
36223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224 (exit $ac_status); }; }; then
36225 wx_cv_type_getsockname3=size_t
36226else
36227 echo "$as_me: failed program was:" >&5
36228sed 's/^/| /' conftest.$ac_ext >&5
36229
36230cat >conftest.$ac_ext <<_ACEOF
36231/* confdefs.h. */
36232_ACEOF
36233cat confdefs.h >>conftest.$ac_ext
36234cat >>conftest.$ac_ext <<_ACEOF
36235/* end confdefs.h. */
36236
36237 #include <sys/types.h>
36238 #include <sys/socket.h>
36239
36240int
36241main ()
36242{
36243
36244 int len;
36245 getsockname(0, 0, &len);
36246
36247 ;
36248 return 0;
36249}
36250_ACEOF
36251rm -f conftest.$ac_objext
36252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36253 (eval $ac_compile) 2>conftest.er1
a848cd7e 36254 ac_status=$?
ac1cb8d3
VS
36255 grep -v '^ *+' conftest.er1 >conftest.err
36256 rm -f conftest.er1
36257 cat conftest.err >&5
a848cd7e
SC
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); } &&
5f652d0d
VS
36260 { ac_try='test -z "$ac_cxx_werror_flag"
36261 || test ! -s conftest.err'
ac1cb8d3
VS
36262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36263 (eval $ac_try) 2>&5
36264 ac_status=$?
36265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266 (exit $ac_status); }; } &&
36267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36269 (eval $ac_try) 2>&5
36270 ac_status=$?
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); }; }; then
36273 wx_cv_type_getsockname3=int
36274else
36275 echo "$as_me: failed program was:" >&5
36276sed 's/^/| /' conftest.$ac_ext >&5
36277
36278wx_cv_type_getsockname3=unknown
36279
36280fi
ac1cb8d3 36281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36282
36283fi
ac1cb8d3 36284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36285
36286 CFLAGS="$CFLAGS_OLD"
36287
36288
36289fi
ac1cb8d3 36290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36291
36292fi
36293echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36294echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36295
36296 if test "$wx_cv_type_getsockname3" = "unknown"; then
36297 wxUSE_SOCKETS=no
36298 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36299echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36300 else
36301 cat >>confdefs.h <<_ACEOF
36302#define SOCKLEN_T $wx_cv_type_getsockname3
36303_ACEOF
36304
36305 fi
4d4ff94c
VZ
36306 ac_ext=c
36307ac_cpp='$CPP $CPPFLAGS'
36308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36310ac_compiler_gnu=$ac_cv_c_compiler_gnu
36311
a848cd7e
SC
36312 fi
36313fi
36314
36315if test "$wxUSE_SOCKETS" = "yes" ; then
36316 cat >>confdefs.h <<\_ACEOF
36317#define wxUSE_SOCKETS 1
36318_ACEOF
36319
36320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36321fi
36322
36323if test "$wxUSE_PROTOCOL" = "yes"; then
36324 if test "$wxUSE_SOCKETS" != "yes"; then
36325 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36326echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36327 wxUSE_PROTOCOL=no
36328 fi
36329fi
36330
36331if test "$wxUSE_PROTOCOL" = "yes"; then
36332 cat >>confdefs.h <<\_ACEOF
36333#define wxUSE_PROTOCOL 1
36334_ACEOF
36335
36336
36337 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36338 cat >>confdefs.h <<\_ACEOF
36339#define wxUSE_PROTOCOL_HTTP 1
36340_ACEOF
36341
36342 fi
36343 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36344 cat >>confdefs.h <<\_ACEOF
36345#define wxUSE_PROTOCOL_FTP 1
36346_ACEOF
36347
36348 fi
36349 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36350 cat >>confdefs.h <<\_ACEOF
36351#define wxUSE_PROTOCOL_FILE 1
36352_ACEOF
36353
36354 fi
36355else
36356 if test "$wxUSE_FS_INET" = "yes"; then
36357 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36358echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36359 wxUSE_FS_INET="no"
36360 fi
36361fi
36362
36363if test "$wxUSE_URL" = "yes"; then
36364 if test "$wxUSE_PROTOCOL" != "yes"; then
36365 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36366echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36367 wxUSE_URL=no
36368 fi
36369 if test "$wxUSE_URL" = "yes"; then
36370 cat >>confdefs.h <<\_ACEOF
36371#define wxUSE_URL 1
36372_ACEOF
36373
36374 fi
36375fi
36376
36377if test "$wxUSE_FS_INET" = "yes"; then
36378 cat >>confdefs.h <<\_ACEOF
36379#define wxUSE_FS_INET 1
36380_ACEOF
36381
36382fi
36383
36384
36385if test "$wxUSE_GUI" = "yes"; then
36386
36387 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36388 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36389echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36390 wxUSE_JOYSTICK=no
36391 fi
36392
36393 if test "$TOOLKIT" != "MSW"; then
36394 if test "$wxUSE_JOYSTICK" = "yes"; then
36395
36396for ac_header in linux/joystick.h
36397do
36398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36399if eval "test \"\${$as_ac_Header+set}\" = set"; then
36400 echo "$as_me:$LINENO: checking for $ac_header" >&5
36401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36402if eval "test \"\${$as_ac_Header+set}\" = set"; then
36403 echo $ECHO_N "(cached) $ECHO_C" >&6
36404fi
36405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36407else
36408 # Is the header compilable?
36409echo "$as_me:$LINENO: checking $ac_header usability" >&5
36410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36411cat >conftest.$ac_ext <<_ACEOF
36412/* confdefs.h. */
36413_ACEOF
36414cat confdefs.h >>conftest.$ac_ext
36415cat >>conftest.$ac_ext <<_ACEOF
36416/* end confdefs.h. */
36417$ac_includes_default
36418#include <$ac_header>
36419_ACEOF
36420rm -f conftest.$ac_objext
36421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36422 (eval $ac_compile) 2>conftest.er1
a848cd7e 36423 ac_status=$?
ac1cb8d3
VS
36424 grep -v '^ *+' conftest.er1 >conftest.err
36425 rm -f conftest.er1
36426 cat conftest.err >&5
a848cd7e
SC
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); } &&
5f652d0d
VS
36429 { ac_try='test -z "$ac_c_werror_flag"
36430 || test ! -s conftest.err'
ac1cb8d3
VS
36431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36432 (eval $ac_try) 2>&5
36433 ac_status=$?
36434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36435 (exit $ac_status); }; } &&
36436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36438 (eval $ac_try) 2>&5
36439 ac_status=$?
36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441 (exit $ac_status); }; }; then
36442 ac_header_compiler=yes
36443else
36444 echo "$as_me: failed program was:" >&5
36445sed 's/^/| /' conftest.$ac_ext >&5
36446
36447ac_header_compiler=no
36448fi
ac1cb8d3 36449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36451echo "${ECHO_T}$ac_header_compiler" >&6
36452
36453# Is the header present?
36454echo "$as_me:$LINENO: checking $ac_header presence" >&5
36455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36456cat >conftest.$ac_ext <<_ACEOF
36457/* confdefs.h. */
36458_ACEOF
36459cat confdefs.h >>conftest.$ac_ext
36460cat >>conftest.$ac_ext <<_ACEOF
36461/* end confdefs.h. */
36462#include <$ac_header>
36463_ACEOF
36464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36466 ac_status=$?
36467 grep -v '^ *+' conftest.er1 >conftest.err
36468 rm -f conftest.er1
36469 cat conftest.err >&5
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); } >/dev/null; then
36472 if test -s conftest.err; then
36473 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36475 else
36476 ac_cpp_err=
36477 fi
36478else
36479 ac_cpp_err=yes
36480fi
36481if test -z "$ac_cpp_err"; then
36482 ac_header_preproc=yes
36483else
36484 echo "$as_me: failed program was:" >&5
36485sed 's/^/| /' conftest.$ac_ext >&5
36486
36487 ac_header_preproc=no
36488fi
36489rm -f conftest.err conftest.$ac_ext
36490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36491echo "${ECHO_T}$ac_header_preproc" >&6
36492
36493# So? What about this header?
ac1cb8d3
VS
36494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36495 yes:no: )
a848cd7e
SC
36496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36500 ac_header_preproc=yes
a848cd7e 36501 ;;
ac1cb8d3 36502 no:yes:* )
a848cd7e
SC
36503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36515 (
36516 cat <<\_ASBOX
ac1cb8d3
VS
36517## ----------------------------------------- ##
36518## Report this to wx-dev@lists.wxwidgets.org ##
36519## ----------------------------------------- ##
a848cd7e
SC
36520_ASBOX
36521 ) |
36522 sed "s/^/$as_me: WARNING: /" >&2
36523 ;;
36524esac
36525echo "$as_me:$LINENO: checking for $ac_header" >&5
36526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36527if eval "test \"\${$as_ac_Header+set}\" = set"; then
36528 echo $ECHO_N "(cached) $ECHO_C" >&6
36529else
ac1cb8d3 36530 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36531fi
36532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36534
36535fi
36536if test `eval echo '${'$as_ac_Header'}'` = yes; then
36537 cat >>confdefs.h <<_ACEOF
36538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36539_ACEOF
36540
36541fi
36542
36543done
36544
36545 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36546 wxUSE_JOYSTICK=no
36547 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36548echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36549 fi
36550 fi
36551 fi
36552
36553 if test "$wxUSE_JOYSTICK" = "yes"; then
36554 cat >>confdefs.h <<\_ACEOF
36555#define wxUSE_JOYSTICK 1
36556_ACEOF
36557
36558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36559 fi
36560fi
36561
36562
36563
36564if test "$wxUSE_FONTMAP" = "yes" ; then
36565 cat >>confdefs.h <<\_ACEOF
36566#define wxUSE_FONTMAP 1
36567_ACEOF
36568
36569fi
36570
36571if test "$wxUSE_UNICODE" = "yes" ; then
36572 cat >>confdefs.h <<\_ACEOF
36573#define wxUSE_UNICODE 1
36574_ACEOF
36575
36576
36577 if test "$USE_WIN32" != 1; then
36578 wxUSE_UNICODE_MSLU=no
36579 fi
36580
36581 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36582 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36583echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36584if test "${ac_cv_lib_unicows_main+set}" = set; then
36585 echo $ECHO_N "(cached) $ECHO_C" >&6
36586else
36587 ac_check_lib_save_LIBS=$LIBS
36588LIBS="-lunicows $LIBS"
36589cat >conftest.$ac_ext <<_ACEOF
36590/* confdefs.h. */
36591_ACEOF
36592cat confdefs.h >>conftest.$ac_ext
36593cat >>conftest.$ac_ext <<_ACEOF
36594/* end confdefs.h. */
36595
36596
36597int
36598main ()
36599{
36600main ();
36601 ;
36602 return 0;
36603}
36604_ACEOF
36605rm -f conftest.$ac_objext conftest$ac_exeext
36606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36607 (eval $ac_link) 2>conftest.er1
a848cd7e 36608 ac_status=$?
ac1cb8d3
VS
36609 grep -v '^ *+' conftest.er1 >conftest.err
36610 rm -f conftest.er1
36611 cat conftest.err >&5
a848cd7e
SC
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); } &&
5f652d0d
VS
36614 { ac_try='test -z "$ac_c_werror_flag"
36615 || test ! -s conftest.err'
ac1cb8d3
VS
36616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36617 (eval $ac_try) 2>&5
36618 ac_status=$?
36619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); }; } &&
36621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623 (eval $ac_try) 2>&5
36624 ac_status=$?
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); }; }; then
36627 ac_cv_lib_unicows_main=yes
36628else
36629 echo "$as_me: failed program was:" >&5
36630sed 's/^/| /' conftest.$ac_ext >&5
36631
36632ac_cv_lib_unicows_main=no
36633fi
ac1cb8d3
VS
36634rm -f conftest.err conftest.$ac_objext \
36635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36636LIBS=$ac_check_lib_save_LIBS
36637fi
36638echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36639echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36640if test $ac_cv_lib_unicows_main = yes; then
36641
36642 cat >>confdefs.h <<\_ACEOF
36643#define wxUSE_UNICODE_MSLU 1
36644_ACEOF
36645
36646
36647else
36648
36649 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36650 Applications will only run on Windows NT/2000/XP!" >&5
36651echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36652 Applications will only run on Windows NT/2000/XP!" >&2;}
36653 wxUSE_UNICODE_MSLU=no
36654
36655fi
36656
36657 fi
36658fi
36659
36660if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36661 cat >>confdefs.h <<\_ACEOF
36662#define wxUSE_EXPERIMENTAL_PRINTF 1
36663_ACEOF
36664
36665fi
36666
36667
36668if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36669 cat >>confdefs.h <<\_ACEOF
36670#define wxUSE_POSTSCRIPT 1
36671_ACEOF
36672
36673fi
36674
36675cat >>confdefs.h <<\_ACEOF
36676#define wxUSE_AFM_FOR_POSTSCRIPT 1
36677_ACEOF
36678
36679
36680cat >>confdefs.h <<\_ACEOF
36681#define wxUSE_NORMALIZED_PS_FONTS 1
36682_ACEOF
36683
36684
36685
36686if test "$wxUSE_CONSTRAINTS" = "yes"; then
36687 cat >>confdefs.h <<\_ACEOF
36688#define wxUSE_CONSTRAINTS 1
36689_ACEOF
36690
36691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36692fi
36693
8a7b1113
VZ
36694if test "$wxUSE_MDI" = "yes"; then
36695 cat >>confdefs.h <<\_ACEOF
36696#define wxUSE_MDI 1
36697_ACEOF
36698
36699
36700 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36701 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36702#define wxUSE_MDI_ARCHITECTURE 1
36703_ACEOF
36704
8a7b1113
VZ
36705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36706 fi
a848cd7e
SC
36707fi
36708
36709if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36710 cat >>confdefs.h <<\_ACEOF
36711#define wxUSE_DOC_VIEW_ARCHITECTURE 1
36712_ACEOF
36713
36714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36715 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36717 fi
36718fi
36719
36720if test "$wxUSE_HELP" = "yes"; then
36721 cat >>confdefs.h <<\_ACEOF
36722#define wxUSE_HELP 1
36723_ACEOF
36724
36725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36726
36727 if test "$wxUSE_MSW" = 1; then
36728 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36729 cat >>confdefs.h <<\_ACEOF
36730#define wxUSE_MS_HTML_HELP 1
36731_ACEOF
36732
36733 fi
36734 fi
36735
36736 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36737 if test "$wxUSE_HTML" = "yes"; then
36738 cat >>confdefs.h <<\_ACEOF
36739#define wxUSE_WXHTML_HELP 1
36740_ACEOF
36741
36742 else
36743 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36744echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36745 wxUSE_WXHTML_HELP=no
36746 fi
36747 fi
36748fi
36749
36750if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36751 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36752 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36753echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36754 else
36755 cat >>confdefs.h <<\_ACEOF
36756#define wxUSE_PRINTING_ARCHITECTURE 1
36757_ACEOF
36758
36759 fi
36760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36761fi
36762
36763if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36764 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36765echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36766 { (exit 1); exit 1; }; }
36767fi
36768
36769
36770if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36771 -o "$wxUSE_CLIPBOARD" = "yes" \
36772 -o "$wxUSE_OLE" = "yes" \
36773 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36774
36775for ac_header in ole2.h
36776do
36777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36778if eval "test \"\${$as_ac_Header+set}\" = set"; then
36779 echo "$as_me:$LINENO: checking for $ac_header" >&5
36780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36781if eval "test \"\${$as_ac_Header+set}\" = set"; then
36782 echo $ECHO_N "(cached) $ECHO_C" >&6
36783fi
36784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36786else
36787 # Is the header compilable?
36788echo "$as_me:$LINENO: checking $ac_header usability" >&5
36789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36790cat >conftest.$ac_ext <<_ACEOF
36791/* confdefs.h. */
36792_ACEOF
36793cat confdefs.h >>conftest.$ac_ext
36794cat >>conftest.$ac_ext <<_ACEOF
36795/* end confdefs.h. */
36796$ac_includes_default
36797#include <$ac_header>
36798_ACEOF
36799rm -f conftest.$ac_objext
36800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36801 (eval $ac_compile) 2>conftest.er1
a848cd7e 36802 ac_status=$?
ac1cb8d3
VS
36803 grep -v '^ *+' conftest.er1 >conftest.err
36804 rm -f conftest.er1
36805 cat conftest.err >&5
a848cd7e
SC
36806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807 (exit $ac_status); } &&
5f652d0d
VS
36808 { ac_try='test -z "$ac_c_werror_flag"
36809 || test ! -s conftest.err'
ac1cb8d3
VS
36810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36811 (eval $ac_try) 2>&5
36812 ac_status=$?
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); }; } &&
36815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36817 (eval $ac_try) 2>&5
36818 ac_status=$?
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); }; }; then
36821 ac_header_compiler=yes
36822else
36823 echo "$as_me: failed program was:" >&5
36824sed 's/^/| /' conftest.$ac_ext >&5
36825
36826ac_header_compiler=no
36827fi
ac1cb8d3 36828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36830echo "${ECHO_T}$ac_header_compiler" >&6
36831
36832# Is the header present?
36833echo "$as_me:$LINENO: checking $ac_header presence" >&5
36834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36835cat >conftest.$ac_ext <<_ACEOF
36836/* confdefs.h. */
36837_ACEOF
36838cat confdefs.h >>conftest.$ac_ext
36839cat >>conftest.$ac_ext <<_ACEOF
36840/* end confdefs.h. */
36841#include <$ac_header>
36842_ACEOF
36843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36845 ac_status=$?
36846 grep -v '^ *+' conftest.er1 >conftest.err
36847 rm -f conftest.er1
36848 cat conftest.err >&5
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } >/dev/null; then
36851 if test -s conftest.err; then
36852 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36854 else
36855 ac_cpp_err=
36856 fi
36857else
36858 ac_cpp_err=yes
36859fi
36860if test -z "$ac_cpp_err"; then
36861 ac_header_preproc=yes
36862else
36863 echo "$as_me: failed program was:" >&5
36864sed 's/^/| /' conftest.$ac_ext >&5
36865
36866 ac_header_preproc=no
36867fi
36868rm -f conftest.err conftest.$ac_ext
36869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36870echo "${ECHO_T}$ac_header_preproc" >&6
36871
36872# So? What about this header?
ac1cb8d3
VS
36873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36874 yes:no: )
a848cd7e
SC
36875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36879 ac_header_preproc=yes
a848cd7e 36880 ;;
ac1cb8d3 36881 no:yes:* )
a848cd7e
SC
36882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36894 (
36895 cat <<\_ASBOX
ac1cb8d3
VS
36896## ----------------------------------------- ##
36897## Report this to wx-dev@lists.wxwidgets.org ##
36898## ----------------------------------------- ##
a848cd7e
SC
36899_ASBOX
36900 ) |
36901 sed "s/^/$as_me: WARNING: /" >&2
36902 ;;
36903esac
36904echo "$as_me:$LINENO: checking for $ac_header" >&5
36905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36906if eval "test \"\${$as_ac_Header+set}\" = set"; then
36907 echo $ECHO_N "(cached) $ECHO_C" >&6
36908else
ac1cb8d3 36909 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36910fi
36911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36913
36914fi
36915if test `eval echo '${'$as_ac_Header'}'` = yes; then
36916 cat >>confdefs.h <<_ACEOF
36917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36918_ACEOF
36919
36920fi
36921
36922done
36923
36924
36925 if test "$ac_cv_header_ole2_h" = "yes" ; then
36926 if test "$GCC" = yes ; then
36927
36928
36929 ac_ext=cc
36930ac_cpp='$CXXCPP $CPPFLAGS'
36931ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36932ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36933ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36934
36935
36936 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36937echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36938 cat >conftest.$ac_ext <<_ACEOF
36939/* confdefs.h. */
36940_ACEOF
36941cat confdefs.h >>conftest.$ac_ext
36942cat >>conftest.$ac_ext <<_ACEOF
36943/* end confdefs.h. */
36944#include <windows.h>
36945 #include <ole2.h>
36946int
36947main ()
36948{
36949
36950 ;
36951 return 0;
36952}
36953_ACEOF
36954rm -f conftest.$ac_objext
36955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36956 (eval $ac_compile) 2>conftest.er1
a848cd7e 36957 ac_status=$?
ac1cb8d3
VS
36958 grep -v '^ *+' conftest.er1 >conftest.err
36959 rm -f conftest.er1
36960 cat conftest.err >&5
a848cd7e
SC
36961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962 (exit $ac_status); } &&
5f652d0d
VS
36963 { ac_try='test -z "$ac_cxx_werror_flag"
36964 || test ! -s conftest.err'
ac1cb8d3
VS
36965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36966 (eval $ac_try) 2>&5
36967 ac_status=$?
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); }; } &&
36970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972 (eval $ac_try) 2>&5
36973 ac_status=$?
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); }; }; then
36976 echo "$as_me:$LINENO: result: no" >&5
36977echo "${ECHO_T}no" >&6
36978else
36979 echo "$as_me: failed program was:" >&5
36980sed 's/^/| /' conftest.$ac_ext >&5
36981
36982echo "$as_me:$LINENO: result: yes" >&5
36983echo "${ECHO_T}yes" >&6
36984 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36985fi
ac1cb8d3 36986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36987 ac_ext=c
36988ac_cpp='$CPP $CPPFLAGS'
36989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36991ac_compiler_gnu=$ac_cv_c_compiler_gnu
36992
a848cd7e
SC
36993 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36994 if test "$wxUSE_OLE" = "yes" ; then
36995 cat >>confdefs.h <<\_ACEOF
36996#define wxUSE_OLE 1
36997_ACEOF
36998
36999 fi
37000 fi
37001
37002 if test "$wxUSE_DATAOBJ" = "yes" ; then
37003 cat >>confdefs.h <<\_ACEOF
37004#define wxUSE_DATAOBJ 1
37005_ACEOF
37006
37007 fi
37008 else
37009 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37010echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37011
37012 wxUSE_CLIPBOARD=no
37013 wxUSE_DRAG_AND_DROP=no
37014 wxUSE_DATAOBJ=no
37015 wxUSE_OLE=no
37016 fi
37017
37018 if test "$wxUSE_METAFILE" = "yes"; then
37019 cat >>confdefs.h <<\_ACEOF
37020#define wxUSE_METAFILE 1
37021_ACEOF
37022
37023
37024 cat >>confdefs.h <<\_ACEOF
37025#define wxUSE_ENH_METAFILE 1
37026_ACEOF
37027
37028 fi
37029fi
37030
37031if test "$wxUSE_IPC" = "yes"; then
37032 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37033 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37034echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37035 fi
37036
37037 cat >>confdefs.h <<\_ACEOF
37038#define wxUSE_IPC 1
37039_ACEOF
37040
37041fi
37042
37043if test "$wxUSE_CLIPBOARD" = "yes"; then
37044 if test "$wxUSE_MGL" = 1; then
37045 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37046echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37047 wxUSE_CLIPBOARD=no
37048 fi
37049
37050 if test "$wxUSE_CLIPBOARD" = "yes"; then
37051 cat >>confdefs.h <<\_ACEOF
37052#define wxUSE_CLIPBOARD 1
37053_ACEOF
37054
37055
37056 cat >>confdefs.h <<\_ACEOF
37057#define wxUSE_DATAOBJ 1
37058_ACEOF
37059
37060 fi
37061fi
37062
37063if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37064 if test "$wxUSE_GTK" = 1; then
37065 if test "$WXGTK12" != 1; then
37066 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37067echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37068 wxUSE_DRAG_AND_DROP=no
37069 fi
37070 fi
37071
37072 if test "$wxUSE_MOTIF" = 1; then
37073 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37074echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37075 wxUSE_DRAG_AND_DROP=no
37076 fi
37077
37078 if test "$wxUSE_X11" = 1; then
37079 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37080echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37081 wxUSE_DRAG_AND_DROP=no
37082 fi
37083
37084 if test "$wxUSE_MGL" = 1; then
37085 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37086echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37087 wxUSE_DRAG_AND_DROP=no
37088 fi
37089
37090 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37091 cat >>confdefs.h <<\_ACEOF
37092#define wxUSE_DRAG_AND_DROP 1
37093_ACEOF
37094
37095 fi
37096
37097fi
37098
37099if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37101fi
37102
37103if test "$wxUSE_SPLINES" = "yes" ; then
37104 cat >>confdefs.h <<\_ACEOF
37105#define wxUSE_SPLINES 1
37106_ACEOF
37107
37108fi
37109
37110
37111USES_CONTROLS=0
37112if test "$wxUSE_CONTROLS" = "yes"; then
37113 USES_CONTROLS=1
37114fi
37115
37116if test "$wxUSE_ACCEL" = "yes"; then
37117 cat >>confdefs.h <<\_ACEOF
37118#define wxUSE_ACCEL 1
37119_ACEOF
37120
37121 USES_CONTROLS=1
37122fi
37123
37124if test "$wxUSE_BUTTON" = "yes"; then
37125 cat >>confdefs.h <<\_ACEOF
37126#define wxUSE_BUTTON 1
37127_ACEOF
37128
37129 USES_CONTROLS=1
37130fi
37131
37132if test "$wxUSE_BMPBUTTON" = "yes"; then
37133 cat >>confdefs.h <<\_ACEOF
37134#define wxUSE_BMPBUTTON 1
37135_ACEOF
37136
37137 USES_CONTROLS=1
37138fi
37139
37140if test "$wxUSE_CALCTRL" = "yes"; then
37141 cat >>confdefs.h <<\_ACEOF
37142#define wxUSE_CALENDARCTRL 1
37143_ACEOF
37144
37145 USES_CONTROLS=1
37146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37147fi
37148
37149if test "$wxUSE_CARET" = "yes"; then
37150 cat >>confdefs.h <<\_ACEOF
37151#define wxUSE_CARET 1
37152_ACEOF
37153
37154 USES_CONTROLS=1
37155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37156fi
37157
37158if test "$wxUSE_COMBOBOX" = "yes"; then
37159 cat >>confdefs.h <<\_ACEOF
37160#define wxUSE_COMBOBOX 1
37161_ACEOF
37162
37163 USES_CONTROLS=1
37164fi
37165
37166if test "$wxUSE_CHOICE" = "yes"; then
37167 cat >>confdefs.h <<\_ACEOF
37168#define wxUSE_CHOICE 1
37169_ACEOF
37170
37171 USES_CONTROLS=1
37172fi
37173
92bbdbcd
WS
37174if test "$wxUSE_CHOICEBOOK" = "yes"; then
37175 cat >>confdefs.h <<\_ACEOF
37176#define wxUSE_CHOICEBOOK 1
37177_ACEOF
37178
37179 USES_CONTROLS=1
37180fi
37181
a848cd7e
SC
37182if test "$wxUSE_CHECKBOX" = "yes"; then
37183 cat >>confdefs.h <<\_ACEOF
37184#define wxUSE_CHECKBOX 1
37185_ACEOF
37186
37187 USES_CONTROLS=1
37188fi
37189
37190if test "$wxUSE_CHECKLST" = "yes"; then
37191 cat >>confdefs.h <<\_ACEOF
37192#define wxUSE_CHECKLISTBOX 1
37193_ACEOF
37194
37195 USES_CONTROLS=1
37196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37197fi
37198
37199if test "$wxUSE_DISPLAY" = "yes"; then
37200 cat >>confdefs.h <<\_ACEOF
37201#define wxUSE_DISPLAY 1
37202_ACEOF
37203
37204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37205fi
37206
37207if test "$wxUSE_GAUGE" = "yes"; then
37208 cat >>confdefs.h <<\_ACEOF
37209#define wxUSE_GAUGE 1
37210_ACEOF
37211
37212 USES_CONTROLS=1
37213fi
37214
37215if test "$wxUSE_GRID" = "yes"; then
37216 cat >>confdefs.h <<\_ACEOF
37217#define wxUSE_GRID 1
37218_ACEOF
37219
37220 USES_CONTROLS=1
37221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37222fi
37223
37224if test "$wxUSE_IMAGLIST" = "yes"; then
37225 cat >>confdefs.h <<\_ACEOF
37226#define wxUSE_IMAGLIST 1
37227_ACEOF
37228
37229fi
37230
37231if test "$wxUSE_LISTBOOK" = "yes"; then
37232 cat >>confdefs.h <<\_ACEOF
37233#define wxUSE_LISTBOOK 1
37234_ACEOF
37235
37236 USES_CONTROLS=1
37237fi
37238
37239if test "$wxUSE_LISTBOX" = "yes"; then
37240 cat >>confdefs.h <<\_ACEOF
37241#define wxUSE_LISTBOX 1
37242_ACEOF
37243
37244 USES_CONTROLS=1
37245fi
37246
37247if test "$wxUSE_LISTCTRL" = "yes"; then
37248 if test "$wxUSE_IMAGLIST" = "yes"; then
37249 cat >>confdefs.h <<\_ACEOF
37250#define wxUSE_LISTCTRL 1
37251_ACEOF
37252
37253 USES_CONTROLS=1
37254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37255 else
37256 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37257echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37258 fi
37259fi
37260
37261if test "$wxUSE_NOTEBOOK" = "yes"; then
37262 cat >>confdefs.h <<\_ACEOF
37263#define wxUSE_NOTEBOOK 1
37264_ACEOF
37265
37266 USES_CONTROLS=1
37267 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37268fi
37269
37270
37271if test "$wxUSE_RADIOBOX" = "yes"; then
37272 cat >>confdefs.h <<\_ACEOF
37273#define wxUSE_RADIOBOX 1
37274_ACEOF
37275
37276 USES_CONTROLS=1
37277fi
37278
37279if test "$wxUSE_RADIOBTN" = "yes"; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define wxUSE_RADIOBTN 1
37282_ACEOF
37283
37284 USES_CONTROLS=1
37285fi
37286
37287if test "$wxUSE_SASH" = "yes"; then
37288 cat >>confdefs.h <<\_ACEOF
37289#define wxUSE_SASH 1
37290_ACEOF
37291
37292 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37293fi
37294
37295if test "$wxUSE_SCROLLBAR" = "yes"; then
37296 cat >>confdefs.h <<\_ACEOF
37297#define wxUSE_SCROLLBAR 1
37298_ACEOF
37299
37300 USES_CONTROLS=1
37301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37302fi
37303
37304if test "$wxUSE_SLIDER" = "yes"; then
37305 cat >>confdefs.h <<\_ACEOF
37306#define wxUSE_SLIDER 1
37307_ACEOF
37308
37309 USES_CONTROLS=1
37310fi
37311
37312if test "$wxUSE_SPINBTN" = "yes"; then
37313 cat >>confdefs.h <<\_ACEOF
37314#define wxUSE_SPINBTN 1
37315_ACEOF
37316
37317 USES_CONTROLS=1
37318fi
37319
37320if test "$wxUSE_SPINCTRL" = "yes"; then
37321 cat >>confdefs.h <<\_ACEOF
37322#define wxUSE_SPINCTRL 1
37323_ACEOF
37324
37325 USES_CONTROLS=1
37326fi
37327
37328if test "$wxUSE_SPLITTER" = "yes"; then
37329 cat >>confdefs.h <<\_ACEOF
37330#define wxUSE_SPLITTER 1
37331_ACEOF
37332
37333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37334fi
37335
37336if test "$wxUSE_STATBMP" = "yes"; then
37337 cat >>confdefs.h <<\_ACEOF
37338#define wxUSE_STATBMP 1
37339_ACEOF
37340
37341 USES_CONTROLS=1
37342fi
37343
37344if test "$wxUSE_STATBOX" = "yes"; then
37345 cat >>confdefs.h <<\_ACEOF
37346#define wxUSE_STATBOX 1
37347_ACEOF
37348
37349 USES_CONTROLS=1
37350fi
37351
37352if test "$wxUSE_STATTEXT" = "yes"; then
37353 cat >>confdefs.h <<\_ACEOF
37354#define wxUSE_STATTEXT 1
37355_ACEOF
37356
37357 USES_CONTROLS=1
37358fi
37359
37360if test "$wxUSE_STATLINE" = "yes"; then
37361 cat >>confdefs.h <<\_ACEOF
37362#define wxUSE_STATLINE 1
37363_ACEOF
37364
37365 USES_CONTROLS=1
37366fi
37367
37368if test "$wxUSE_STATUSBAR" = "yes"; then
37369 cat >>confdefs.h <<\_ACEOF
37370#define wxUSE_STATUSBAR 1
37371_ACEOF
37372
37373 USES_CONTROLS=1
37374
37375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37376fi
37377
37378if test "$wxUSE_TABDIALOG" = "yes"; then
37379 cat >>confdefs.h <<\_ACEOF
37380#define wxUSE_TAB_DIALOG 1
37381_ACEOF
37382
37383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37384fi
37385
37386if test "$wxUSE_TEXTCTRL" = "yes"; then
37387 cat >>confdefs.h <<\_ACEOF
37388#define wxUSE_TEXTCTRL 1
37389_ACEOF
37390
37391 USES_CONTROLS=1
37392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37393fi
37394
37395if test "$wxUSE_TOGGLEBTN" = "yes"; then
37396 if test "$wxUSE_COCOA" = 1 ; then
37397 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37398echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37399 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37400 else
37401 if test "$wxUSE_PM" = 1; then
37402 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37403echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37404 wxUSE_TOGGLEBTN=no
37405 fi
a848cd7e
SC
37406 fi
37407 if test "$wxUSE_UNIVERSAL" = "yes"; then
37408 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37409echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37410 wxUSE_TOGGLEBTN=no
37411 fi
37412
37413 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37414 cat >>confdefs.h <<\_ACEOF
37415#define wxUSE_TOGGLEBTN 1
37416_ACEOF
37417
37418 USES_CONTROLS=1
37419 fi
37420fi
37421
37422if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37423 cat >>confdefs.h <<\_ACEOF
37424#define wxUSE_TOOLBAR_SIMPLE 1
37425_ACEOF
37426
37427 wxUSE_TOOLBAR="yes"
37428 USES_CONTROLS=1
37429fi
37430
37431if test "$wxUSE_TOOLBAR" = "yes"; then
37432 cat >>confdefs.h <<\_ACEOF
37433#define wxUSE_TOOLBAR 1
37434_ACEOF
37435
37436 USES_CONTROLS=1
37437
37438 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37439 wxUSE_TOOLBAR_NATIVE="yes"
37440 fi
37441
37442 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37443 cat >>confdefs.h <<\_ACEOF
37444#define wxUSE_TOOLBAR_NATIVE 1
37445_ACEOF
37446
37447 USES_CONTROLS=1
37448 fi
37449
37450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37451fi
37452
37453if test "$wxUSE_TOOLTIPS" = "yes"; then
37454 if test "$wxUSE_MOTIF" = 1; then
37455 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37456echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37457 else
37458 if test "$wxUSE_UNIVERSAL" = "yes"; then
37459 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37460echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37461 else
37462 cat >>confdefs.h <<\_ACEOF
37463#define wxUSE_TOOLTIPS 1
37464_ACEOF
37465
37466 fi
37467 fi
37468fi
37469
37470if test "$wxUSE_TREECTRL" = "yes"; then
37471 if test "$wxUSE_IMAGLIST" = "yes"; then
37472 cat >>confdefs.h <<\_ACEOF
37473#define wxUSE_TREECTRL 1
37474_ACEOF
37475
37476 USES_CONTROLS=1
37477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37478 else
37479 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37480echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37481 fi
37482fi
37483
37484if test "$wxUSE_POPUPWIN" = "yes"; then
37485 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37486 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37487echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37488 else
37489 if test "$wxUSE_PM" = 1; then
37490 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37491echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37492 else
37493 cat >>confdefs.h <<\_ACEOF
37494#define wxUSE_POPUPWIN 1
37495_ACEOF
37496
37497
37498 USES_CONTROLS=1
37499 fi
37500 fi
37501fi
37502
37503if test "$wxUSE_TIPWINDOW" = "yes"; then
37504 if test "$wxUSE_PM" = 1; then
37505 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37506echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37507 else
37508 cat >>confdefs.h <<\_ACEOF
37509#define wxUSE_TIPWINDOW 1
37510_ACEOF
37511
37512 fi
37513fi
37514
37515if test "$USES_CONTROLS" = 1; then
37516 cat >>confdefs.h <<\_ACEOF
37517#define wxUSE_CONTROLS 1
37518_ACEOF
37519
37520fi
37521
37522
37523if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37524 cat >>confdefs.h <<\_ACEOF
37525#define wxUSE_ACCESSIBILITY 1
37526_ACEOF
37527
37528 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37529fi
37530
37531if test "$wxUSE_DRAGIMAGE" = "yes"; then
37532 cat >>confdefs.h <<\_ACEOF
37533#define wxUSE_DRAGIMAGE 1
37534_ACEOF
37535
37536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37537fi
37538
37539if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37540 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37541 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37542echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37543 else
37544 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37545#define wxUSE_EXCEPTIONS 1
37546_ACEOF
37547
07bea8f0
VS
37548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37549 fi
a848cd7e
SC
37550fi
37551
37552USE_HTML=0
37553if test "$wxUSE_HTML" = "yes"; then
37554 cat >>confdefs.h <<\_ACEOF
37555#define wxUSE_HTML 1
37556_ACEOF
37557
37558 USE_HTML=1
37559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37560 if test "$wxUSE_MAC" = 1; then
37561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37562 fi
a848cd7e 37563fi
646b6ec1 37564if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37565 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37566 old_CPPFLAGS="$CPPFLAGS"
37567 CPPFLAGS="$CPPFLAGS -x objective-c++"
37568 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37569echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37570if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37571 echo $ECHO_N "(cached) $ECHO_C" >&6
37572else
37573 cat >conftest.$ac_ext <<_ACEOF
37574/* confdefs.h. */
37575_ACEOF
37576cat confdefs.h >>conftest.$ac_ext
37577cat >>conftest.$ac_ext <<_ACEOF
37578/* end confdefs.h. */
37579#include <Carbon/Carbon.h>
37580
37581#include <WebKit/HIWebView.h>
37582_ACEOF
37583rm -f conftest.$ac_objext
37584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37585 (eval $ac_compile) 2>conftest.er1
37586 ac_status=$?
37587 grep -v '^ *+' conftest.er1 >conftest.err
37588 rm -f conftest.er1
37589 cat conftest.err >&5
37590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591 (exit $ac_status); } &&
5f652d0d
VS
37592 { ac_try='test -z "$ac_c_werror_flag"
37593 || test ! -s conftest.err'
07bea8f0
VS
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37596 ac_status=$?
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; } &&
37599 { ac_try='test -s conftest.$ac_objext'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37602 ac_status=$?
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; }; then
37605 ac_cv_header_WebKit_HIWebView_h=yes
37606else
37607 echo "$as_me: failed program was:" >&5
37608sed 's/^/| /' conftest.$ac_ext >&5
37609
37610ac_cv_header_WebKit_HIWebView_h=no
37611fi
37612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37613fi
37614echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37615echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37616if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37617
37618 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
37619#define wxUSE_WEBKIT 1
37620_ACEOF
37621
07bea8f0
VS
37622 WEBKIT_LINK="-framework WebKit"
37623
37624else
37625
37626 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
37627echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
37628 wxUSE_WEBKIT=no
37629
646b6ec1
VS
37630fi
37631
07bea8f0
VS
37632
37633 CPPFLAGS="$old_CPPFLAGS"
37634 elif test "$wxUSE_COCOA" = 1; then
37635 cat >>confdefs.h <<\_ACEOF
37636#define wxUSE_WEBKIT 1
37637_ACEOF
37638
37639 else
37640 wxUSE_WEBKIT=no
37641 fi
37642fi
37643
9a8f0513
VS
37644USE_XRC=0
37645if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
37646 if test "$wxUSE_XML" != "yes"; then
37647 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
37648echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
37649 wxUSE_XRC=no
37650 else
37651 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
37652#define wxUSE_XRC 1
37653_ACEOF
37654
d2ebf0b7
VS
37655 USE_XRC=1
37656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
37657 fi
9a8f0513 37658fi
07bea8f0 37659
a848cd7e
SC
37660if test "$wxUSE_MENUS" = "yes"; then
37661 cat >>confdefs.h <<\_ACEOF
37662#define wxUSE_MENUS 1
37663_ACEOF
37664
37665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37666fi
37667
37668if test "$wxUSE_METAFILE" = "yes"; then
37669 cat >>confdefs.h <<\_ACEOF
37670#define wxUSE_METAFILE 1
37671_ACEOF
37672
37673fi
37674
37675if test "$wxUSE_MIMETYPE" = "yes"; then
37676 cat >>confdefs.h <<\_ACEOF
37677#define wxUSE_MIMETYPE 1
37678_ACEOF
37679
37680fi
37681
37682if test "$wxUSE_MINIFRAME" = "yes"; then
37683 cat >>confdefs.h <<\_ACEOF
37684#define wxUSE_MINIFRAME 1
37685_ACEOF
37686
37687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37688fi
37689
37690if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37691 cat >>confdefs.h <<\_ACEOF
37692#define wxUSE_SYSTEM_OPTIONS 1
37693_ACEOF
37694
37695 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 37696 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
37697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37698 fi
37699fi
37700
37701
37702if test "$wxUSE_VALIDATORS" = "yes"; then
37703 cat >>confdefs.h <<\_ACEOF
37704#define wxUSE_VALIDATORS 1
37705_ACEOF
37706
37707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37708fi
37709
37710if test "$wxUSE_PALETTE" = "yes" ; then
37711 cat >>confdefs.h <<\_ACEOF
37712#define wxUSE_PALETTE 1
37713_ACEOF
37714
37715fi
37716
37717if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37718 LIBS=" -lunicows $LIBS"
37719fi
37720
37721
37722if test "$wxUSE_IMAGE" = "yes" ; then
37723 cat >>confdefs.h <<\_ACEOF
37724#define wxUSE_IMAGE 1
37725_ACEOF
37726
37727
37728 if test "$wxUSE_GIF" = "yes" ; then
37729 cat >>confdefs.h <<\_ACEOF
37730#define wxUSE_GIF 1
37731_ACEOF
37732
37733 fi
37734
37735 if test "$wxUSE_PCX" = "yes" ; then
37736 cat >>confdefs.h <<\_ACEOF
37737#define wxUSE_PCX 1
37738_ACEOF
37739
37740 fi
37741
37742 if test "$wxUSE_IFF" = "yes" ; then
37743 cat >>confdefs.h <<\_ACEOF
37744#define wxUSE_IFF 1
37745_ACEOF
37746
37747 fi
37748
37749 if test "$wxUSE_PNM" = "yes" ; then
37750 cat >>confdefs.h <<\_ACEOF
37751#define wxUSE_PNM 1
37752_ACEOF
37753
37754 fi
37755
37756 if test "$wxUSE_XPM" = "yes" ; then
37757 cat >>confdefs.h <<\_ACEOF
37758#define wxUSE_XPM 1
37759_ACEOF
37760
37761 fi
37762
37763 if test "$wxUSE_ICO_CUR" = "yes" ; then
37764 cat >>confdefs.h <<\_ACEOF
37765#define wxUSE_ICO_CUR 1
37766_ACEOF
37767
37768 fi
37769fi
37770
37771
37772if test "$wxUSE_CHOICEDLG" = "yes"; then
37773 cat >>confdefs.h <<\_ACEOF
37774#define wxUSE_CHOICEDLG 1
37775_ACEOF
37776
37777fi
37778
37779if test "$wxUSE_COLOURDLG" = "yes"; then
37780 cat >>confdefs.h <<\_ACEOF
37781#define wxUSE_COLOURDLG 1
37782_ACEOF
37783
37784fi
37785
37786if test "$wxUSE_FILEDLG" = "yes"; then
37787 cat >>confdefs.h <<\_ACEOF
37788#define wxUSE_FILEDLG 1
37789_ACEOF
37790
37791fi
37792
37793if test "$wxUSE_FINDREPLDLG" = "yes"; then
37794 cat >>confdefs.h <<\_ACEOF
37795#define wxUSE_FINDREPLDLG 1
37796_ACEOF
37797
37798fi
37799
37800if test "$wxUSE_FONTDLG" = "yes"; then
37801 cat >>confdefs.h <<\_ACEOF
37802#define wxUSE_FONTDLG 1
37803_ACEOF
37804
37805fi
37806
37807if test "$wxUSE_DIRDLG" = "yes"; then
37808 if test "$wxUSE_TREECTRL" != "yes"; then
37809 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37810echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37811 else
37812 cat >>confdefs.h <<\_ACEOF
37813#define wxUSE_DIRDLG 1
37814_ACEOF
37815
37816 fi
37817fi
37818
37819if test "$wxUSE_MSGDLG" = "yes"; then
37820 cat >>confdefs.h <<\_ACEOF
37821#define wxUSE_MSGDLG 1
37822_ACEOF
37823
37824fi
37825
37826if test "$wxUSE_NUMBERDLG" = "yes"; then
37827 cat >>confdefs.h <<\_ACEOF
37828#define wxUSE_NUMBERDLG 1
37829_ACEOF
37830
37831fi
37832
37833if test "$wxUSE_PROGRESSDLG" = "yes"; then
37834 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37835 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37836echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37837 else
37838 cat >>confdefs.h <<\_ACEOF
37839#define wxUSE_PROGRESSDLG 1
37840_ACEOF
37841
37842 fi
37843fi
37844
37845if test "$wxUSE_SPLASH" = "yes"; then
37846 cat >>confdefs.h <<\_ACEOF
37847#define wxUSE_SPLASH 1
37848_ACEOF
37849
2057db16 37850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37851fi
37852
37853if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37854 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37855 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37856echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37857 else
37858 cat >>confdefs.h <<\_ACEOF
37859#define wxUSE_STARTUP_TIPS 1
37860_ACEOF
37861
37862 fi
37863fi
37864
37865if test "$wxUSE_TEXTDLG" = "yes"; then
37866 cat >>confdefs.h <<\_ACEOF
37867#define wxUSE_TEXTDLG 1
37868_ACEOF
37869
37870fi
37871
37872if test "$wxUSE_WIZARDDLG" = "yes"; then
37873 cat >>confdefs.h <<\_ACEOF
37874#define wxUSE_WIZARDDLG 1
37875_ACEOF
37876
37877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37878fi
37879
37880
37881if test "$cross_compiling" = "yes"; then
37882 OSINFO="\"$host\""
37883else
37884 OSINFO=`uname -s -r -m`
37885 OSINFO="\"$OSINFO\""
37886fi
37887
37888cat >>confdefs.h <<_ACEOF
37889#define WXWIN_OS_DESCRIPTION $OSINFO
37890_ACEOF
37891
37892
37893
37894if test "x$prefix" != "xNONE"; then
37895 wxPREFIX=$prefix
37896else
37897 wxPREFIX=$ac_default_prefix
37898fi
37899
37900cat >>confdefs.h <<_ACEOF
37901#define wxINSTALL_PREFIX "$wxPREFIX"
37902_ACEOF
37903
37904
a848cd7e
SC
37905
37906
37907CORE_BASE_LIBS="net base"
37908CORE_GUI_LIBS="adv core"
37909
37910if test "$wxUSE_XML" = "yes" ; then
37911 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37912fi
37913if test "$wxUSE_ODBC" != "no" ; then
37914 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37915 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37916fi
37917if test "$wxUSE_HTML" = "yes" ; then
37918 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37919fi
9a8f0513
VS
37920if test "$wxUSE_XRC" = "yes" ; then
37921 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37922fi
a848cd7e
SC
37923
37924if test "$wxUSE_GUI" != "yes"; then
37925 CORE_GUI_LIBS=""
37926fi
37927
37928
37929
37930
37931
37932
37933
37934
37935if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 37936 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
37937 if test "$USE_DARWIN" = 1; then
37938 LDFLAGS="$LDFLAGS -framework QuickTime"
37939 else
37940 LDFLAGS="$LDFLAGS -lQuickTimeLib"
37941 fi
07bea8f0 37942 fi
5dcf30a0 37943 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
37944 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
37945 else
37946 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 37947 fi
a848cd7e
SC
37948fi
37949if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 37950 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
37951fi
37952
37953
37954LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37955
37956have_cos=0
37957have_floor=0
37958
37959for ac_func in cos
37960do
37961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37962echo "$as_me:$LINENO: checking for $ac_func" >&5
37963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37964if eval "test \"\${$as_ac_var+set}\" = set"; then
37965 echo $ECHO_N "(cached) $ECHO_C" >&6
37966else
37967 cat >conftest.$ac_ext <<_ACEOF
37968/* confdefs.h. */
37969_ACEOF
37970cat confdefs.h >>conftest.$ac_ext
37971cat >>conftest.$ac_ext <<_ACEOF
37972/* end confdefs.h. */
ac1cb8d3
VS
37973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37975#define $ac_func innocuous_$ac_func
37976
a848cd7e
SC
37977/* System header to define __stub macros and hopefully few prototypes,
37978 which can conflict with char $ac_func (); below.
37979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37980 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37981
a848cd7e
SC
37982#ifdef __STDC__
37983# include <limits.h>
37984#else
37985# include <assert.h>
37986#endif
ac1cb8d3
VS
37987
37988#undef $ac_func
37989
a848cd7e
SC
37990/* Override any gcc2 internal prototype to avoid an error. */
37991#ifdef __cplusplus
37992extern "C"
37993{
37994#endif
37995/* We use char because int might match the return type of a gcc2
37996 builtin and then its argument prototype would still apply. */
37997char $ac_func ();
37998/* The GNU C library defines this for functions which it implements
37999 to always fail with ENOSYS. Some functions are actually named
38000 something starting with __ and the normal name is an alias. */
38001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38002choke me
38003#else
38004char (*f) () = $ac_func;
38005#endif
38006#ifdef __cplusplus
38007}
38008#endif
38009
38010int
38011main ()
38012{
38013return f != $ac_func;
38014 ;
38015 return 0;
38016}
38017_ACEOF
38018rm -f conftest.$ac_objext conftest$ac_exeext
38019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38020 (eval $ac_link) 2>conftest.er1
a848cd7e 38021 ac_status=$?
ac1cb8d3
VS
38022 grep -v '^ *+' conftest.er1 >conftest.err
38023 rm -f conftest.er1
38024 cat conftest.err >&5
a848cd7e
SC
38025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38026 (exit $ac_status); } &&
5f652d0d
VS
38027 { ac_try='test -z "$ac_c_werror_flag"
38028 || test ! -s conftest.err'
ac1cb8d3
VS
38029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38030 (eval $ac_try) 2>&5
38031 ac_status=$?
38032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38033 (exit $ac_status); }; } &&
38034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38036 (eval $ac_try) 2>&5
38037 ac_status=$?
38038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039 (exit $ac_status); }; }; then
38040 eval "$as_ac_var=yes"
38041else
38042 echo "$as_me: failed program was:" >&5
38043sed 's/^/| /' conftest.$ac_ext >&5
38044
38045eval "$as_ac_var=no"
38046fi
ac1cb8d3
VS
38047rm -f conftest.err conftest.$ac_objext \
38048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38049fi
38050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38052if test `eval echo '${'$as_ac_var'}'` = yes; then
38053 cat >>confdefs.h <<_ACEOF
38054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38055_ACEOF
38056 have_cos=1
38057fi
38058done
38059
38060
38061for ac_func in floor
38062do
38063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38064echo "$as_me:$LINENO: checking for $ac_func" >&5
38065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38066if eval "test \"\${$as_ac_var+set}\" = set"; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38068else
38069 cat >conftest.$ac_ext <<_ACEOF
38070/* confdefs.h. */
38071_ACEOF
38072cat confdefs.h >>conftest.$ac_ext
38073cat >>conftest.$ac_ext <<_ACEOF
38074/* end confdefs.h. */
ac1cb8d3
VS
38075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38077#define $ac_func innocuous_$ac_func
38078
a848cd7e
SC
38079/* System header to define __stub macros and hopefully few prototypes,
38080 which can conflict with char $ac_func (); below.
38081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38082 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38083
a848cd7e
SC
38084#ifdef __STDC__
38085# include <limits.h>
38086#else
38087# include <assert.h>
38088#endif
ac1cb8d3
VS
38089
38090#undef $ac_func
38091
a848cd7e
SC
38092/* Override any gcc2 internal prototype to avoid an error. */
38093#ifdef __cplusplus
38094extern "C"
38095{
38096#endif
38097/* We use char because int might match the return type of a gcc2
38098 builtin and then its argument prototype would still apply. */
38099char $ac_func ();
38100/* The GNU C library defines this for functions which it implements
38101 to always fail with ENOSYS. Some functions are actually named
38102 something starting with __ and the normal name is an alias. */
38103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38104choke me
38105#else
38106char (*f) () = $ac_func;
38107#endif
38108#ifdef __cplusplus
38109}
38110#endif
38111
38112int
38113main ()
38114{
38115return f != $ac_func;
38116 ;
38117 return 0;
38118}
38119_ACEOF
38120rm -f conftest.$ac_objext conftest$ac_exeext
38121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38122 (eval $ac_link) 2>conftest.er1
a848cd7e 38123 ac_status=$?
ac1cb8d3
VS
38124 grep -v '^ *+' conftest.er1 >conftest.err
38125 rm -f conftest.er1
38126 cat conftest.err >&5
a848cd7e
SC
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); } &&
5f652d0d
VS
38129 { ac_try='test -z "$ac_c_werror_flag"
38130 || test ! -s conftest.err'
ac1cb8d3
VS
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; } &&
38136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38139 ac_status=$?
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; }; then
38142 eval "$as_ac_var=yes"
38143else
38144 echo "$as_me: failed program was:" >&5
38145sed 's/^/| /' conftest.$ac_ext >&5
38146
38147eval "$as_ac_var=no"
38148fi
ac1cb8d3
VS
38149rm -f conftest.err conftest.$ac_objext \
38150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38151fi
38152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38154if test `eval echo '${'$as_ac_var'}'` = yes; then
38155 cat >>confdefs.h <<_ACEOF
38156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38157_ACEOF
38158 have_floor=1
38159fi
38160done
38161
38162echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38163echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38164if test "$have_cos" = 1 -a "$have_floor" = 1; then
38165 echo "$as_me:$LINENO: result: yes" >&5
38166echo "${ECHO_T}yes" >&6
38167else
38168 echo "$as_me:$LINENO: result: no" >&5
38169echo "${ECHO_T}no" >&6
38170 LIBS="$LIBS -lm"
38171 # use different functions to avoid configure caching
38172 have_sin=0
38173 have_ceil=0
38174
38175for ac_func in sin
38176do
38177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38178echo "$as_me:$LINENO: checking for $ac_func" >&5
38179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38180if eval "test \"\${$as_ac_var+set}\" = set"; then
38181 echo $ECHO_N "(cached) $ECHO_C" >&6
38182else
38183 cat >conftest.$ac_ext <<_ACEOF
38184/* confdefs.h. */
38185_ACEOF
38186cat confdefs.h >>conftest.$ac_ext
38187cat >>conftest.$ac_ext <<_ACEOF
38188/* end confdefs.h. */
ac1cb8d3
VS
38189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38191#define $ac_func innocuous_$ac_func
38192
a848cd7e
SC
38193/* System header to define __stub macros and hopefully few prototypes,
38194 which can conflict with char $ac_func (); below.
38195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38196 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38197
a848cd7e
SC
38198#ifdef __STDC__
38199# include <limits.h>
38200#else
38201# include <assert.h>
38202#endif
ac1cb8d3
VS
38203
38204#undef $ac_func
38205
a848cd7e
SC
38206/* Override any gcc2 internal prototype to avoid an error. */
38207#ifdef __cplusplus
38208extern "C"
38209{
38210#endif
38211/* We use char because int might match the return type of a gcc2
38212 builtin and then its argument prototype would still apply. */
38213char $ac_func ();
38214/* The GNU C library defines this for functions which it implements
38215 to always fail with ENOSYS. Some functions are actually named
38216 something starting with __ and the normal name is an alias. */
38217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38218choke me
38219#else
38220char (*f) () = $ac_func;
38221#endif
38222#ifdef __cplusplus
38223}
38224#endif
38225
38226int
38227main ()
38228{
38229return f != $ac_func;
38230 ;
38231 return 0;
38232}
38233_ACEOF
38234rm -f conftest.$ac_objext conftest$ac_exeext
38235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38236 (eval $ac_link) 2>conftest.er1
a848cd7e 38237 ac_status=$?
ac1cb8d3
VS
38238 grep -v '^ *+' conftest.er1 >conftest.err
38239 rm -f conftest.er1
38240 cat conftest.err >&5
a848cd7e
SC
38241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242 (exit $ac_status); } &&
5f652d0d
VS
38243 { ac_try='test -z "$ac_c_werror_flag"
38244 || test ! -s conftest.err'
ac1cb8d3
VS
38245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38246 (eval $ac_try) 2>&5
38247 ac_status=$?
38248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38249 (exit $ac_status); }; } &&
38250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38252 (eval $ac_try) 2>&5
38253 ac_status=$?
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); }; }; then
38256 eval "$as_ac_var=yes"
38257else
38258 echo "$as_me: failed program was:" >&5
38259sed 's/^/| /' conftest.$ac_ext >&5
38260
38261eval "$as_ac_var=no"
38262fi
ac1cb8d3
VS
38263rm -f conftest.err conftest.$ac_objext \
38264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38265fi
38266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38267echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38268if test `eval echo '${'$as_ac_var'}'` = yes; then
38269 cat >>confdefs.h <<_ACEOF
38270#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38271_ACEOF
38272 have_sin=1
38273fi
38274done
38275
38276
38277for ac_func in ceil
38278do
38279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38280echo "$as_me:$LINENO: checking for $ac_func" >&5
38281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38282if eval "test \"\${$as_ac_var+set}\" = set"; then
38283 echo $ECHO_N "(cached) $ECHO_C" >&6
38284else
38285 cat >conftest.$ac_ext <<_ACEOF
38286/* confdefs.h. */
38287_ACEOF
38288cat confdefs.h >>conftest.$ac_ext
38289cat >>conftest.$ac_ext <<_ACEOF
38290/* end confdefs.h. */
ac1cb8d3
VS
38291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38293#define $ac_func innocuous_$ac_func
38294
a848cd7e
SC
38295/* System header to define __stub macros and hopefully few prototypes,
38296 which can conflict with char $ac_func (); below.
38297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38298 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38299
a848cd7e
SC
38300#ifdef __STDC__
38301# include <limits.h>
38302#else
38303# include <assert.h>
38304#endif
ac1cb8d3
VS
38305
38306#undef $ac_func
38307
a848cd7e
SC
38308/* Override any gcc2 internal prototype to avoid an error. */
38309#ifdef __cplusplus
38310extern "C"
38311{
38312#endif
38313/* We use char because int might match the return type of a gcc2
38314 builtin and then its argument prototype would still apply. */
38315char $ac_func ();
38316/* The GNU C library defines this for functions which it implements
38317 to always fail with ENOSYS. Some functions are actually named
38318 something starting with __ and the normal name is an alias. */
38319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38320choke me
38321#else
38322char (*f) () = $ac_func;
38323#endif
38324#ifdef __cplusplus
38325}
38326#endif
38327
38328int
38329main ()
38330{
38331return f != $ac_func;
38332 ;
38333 return 0;
38334}
38335_ACEOF
38336rm -f conftest.$ac_objext conftest$ac_exeext
38337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38338 (eval $ac_link) 2>conftest.er1
a848cd7e 38339 ac_status=$?
ac1cb8d3
VS
38340 grep -v '^ *+' conftest.er1 >conftest.err
38341 rm -f conftest.er1
38342 cat conftest.err >&5
a848cd7e
SC
38343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38344 (exit $ac_status); } &&
5f652d0d
VS
38345 { ac_try='test -z "$ac_c_werror_flag"
38346 || test ! -s conftest.err'
ac1cb8d3
VS
38347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38348 (eval $ac_try) 2>&5
38349 ac_status=$?
38350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38351 (exit $ac_status); }; } &&
38352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38354 (eval $ac_try) 2>&5
38355 ac_status=$?
38356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357 (exit $ac_status); }; }; then
38358 eval "$as_ac_var=yes"
38359else
38360 echo "$as_me: failed program was:" >&5
38361sed 's/^/| /' conftest.$ac_ext >&5
38362
38363eval "$as_ac_var=no"
38364fi
ac1cb8d3
VS
38365rm -f conftest.err conftest.$ac_objext \
38366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38367fi
38368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38370if test `eval echo '${'$as_ac_var'}'` = yes; then
38371 cat >>confdefs.h <<_ACEOF
38372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38373_ACEOF
38374 have_ceil=1
38375fi
38376done
38377
38378 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38379echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38380 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38381 echo "$as_me:$LINENO: result: yes" >&5
38382echo "${ECHO_T}yes" >&6
38383 else
38384 echo "$as_me:$LINENO: result: no" >&5
38385echo "${ECHO_T}no" >&6
38386 # not sure we should warn the user, crash, etc.
38387 fi
38388fi
38389
38390if test "$wxUSE_GUI" = "yes"; then
38391
38392
38393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38394 drawing dynamic erase event exec font image \
38395 minimal propsize rotate shaped widgets render"
38396
38397 if test "$wxUSE_MONOLITHIC" != "yes"; then
38398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38399 fi
38400else
38401 SAMPLES_SUBDIRS="console"
38402fi
38403
38404
ceec2216 38405INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38406-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38407
38408if test "$GXX" = yes ; then
38409 CXXWARNINGS="-Wall"
38410 fi
38411
38412EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38413
0c3c69fc
VS
38414CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
38415CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
38416CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38417
38418
0c3c69fc 38419LIBS=`echo $LIBS`
a848cd7e
SC
38420EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38421EXTRALIBS_XML="$EXPAT_LINK"
38422EXTRALIBS_HTML="$MSPACK_LINK"
38423EXTRALIBS_ODBC="$ODBC_LINK"
38424if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38425 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38426fi
38427if test "$wxUSE_OPENGL" = "yes"; then
38428 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38429fi
38430
38431LDFLAGS="$LDFLAGS $PROFILE"
38432
38433if test "$wxUSE_GTK" = 1; then
38434 WXCONFIG_INCLUDE=
38435else
38436 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38437fi
38438
38439WXCONFIG_EXTRALIBS="$LIBS"
38440
38441if test "$wxUSE_REGEX" = "builtin" ; then
38442 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38443fi
38444if test "$wxUSE_EXPAT" = "builtin" ; then
38445 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38446fi
38447if test "$wxUSE_ODBC" = "builtin" ; then
38448 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38449fi
38450if test "$wxUSE_LIBTIFF" = "builtin" ; then
38451 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38452fi
38453if test "$wxUSE_LIBJPEG" = "builtin" ; then
38454 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38455fi
38456if test "$wxUSE_LIBPNG" = "builtin" ; then
38457 wxconfig_3rdparty="$wxconfig_3rdparty png"
38458fi
38459if test "$wxUSE_ZLIB" = "builtin" ; then
38460 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38461fi
38462if test "$wxUSE_ODBC" = "builtin" ; then
38463 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38464fi
38465
38466for i in $wxconfig_3rdparty ; do
ceec2216 38467 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38468done
38469
38470
38471if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38472 WXUNIV=1
38473else
38474 WXUNIV=0
38475fi
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485if test $wxUSE_MONOLITHIC = "yes" ; then
38486 MONOLITHIC=1
38487else
38488 MONOLITHIC=0
38489fi
38490
38491if test $wxUSE_PLUGINS = "yes" ; then
38492 USE_PLUGINS=1
38493else
38494 USE_PLUGINS=0
38495fi
38496
38497if test $wxUSE_ODBC != "no" ; then
38498 USE_ODBC=1
38499else
38500 USE_ODBC=0
38501fi
38502
38503if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38504 OFFICIAL_BUILD=1
38505else
38506 OFFICIAL_BUILD=0
38507fi
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
ceec2216 38527
d1c38808 38528
a848cd7e
SC
38529
38530
38531TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38532
38533
38534
38535
38536
38537
38538
38539
4d4ff94c
VZ
38540case "$TOOLKIT" in
38541 GTK)
38542 TOOLKIT_USER="GTK+"
38543 if test "$WXGTK20" = 1; then
38544 TOOLKIT_USER="$TOOLKIT_USER 2"
38545 fi
9a8f0513 38546 ;;
4d4ff94c
VZ
38547
38548 *)
38549 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38550 ;;
4d4ff94c 38551esac
a848cd7e 38552
9a8f0513 38553
1e9e8aba
DE
38554
38555
a848cd7e
SC
38556 if test "x$BAKEFILE_HOST" = "x"; then
38557 BAKEFILE_HOST="${host}"
38558 fi
38559
38560 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38561
38562 if test -n "$ac_tool_prefix"; then
38563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38564set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38565echo "$as_me:$LINENO: checking for $ac_word" >&5
38566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38567if test "${ac_cv_prog_RANLIB+set}" = set; then
38568 echo $ECHO_N "(cached) $ECHO_C" >&6
38569else
38570 if test -n "$RANLIB"; then
38571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38572else
38573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38574for as_dir in $PATH
38575do
38576 IFS=$as_save_IFS
38577 test -z "$as_dir" && as_dir=.
38578 for ac_exec_ext in '' $ac_executable_extensions; do
38579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38582 break 2
38583 fi
38584done
38585done
38586
38587fi
38588fi
38589RANLIB=$ac_cv_prog_RANLIB
38590if test -n "$RANLIB"; then
38591 echo "$as_me:$LINENO: result: $RANLIB" >&5
38592echo "${ECHO_T}$RANLIB" >&6
38593else
38594 echo "$as_me:$LINENO: result: no" >&5
38595echo "${ECHO_T}no" >&6
38596fi
38597
38598fi
38599if test -z "$ac_cv_prog_RANLIB"; then
38600 ac_ct_RANLIB=$RANLIB
38601 # Extract the first word of "ranlib", so it can be a program name with args.
38602set dummy ranlib; ac_word=$2
38603echo "$as_me:$LINENO: checking for $ac_word" >&5
38604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38606 echo $ECHO_N "(cached) $ECHO_C" >&6
38607else
38608 if test -n "$ac_ct_RANLIB"; then
38609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38610else
38611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38612for as_dir in $PATH
38613do
38614 IFS=$as_save_IFS
38615 test -z "$as_dir" && as_dir=.
38616 for ac_exec_ext in '' $ac_executable_extensions; do
38617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38618 ac_cv_prog_ac_ct_RANLIB="ranlib"
38619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38620 break 2
38621 fi
38622done
38623done
38624
38625 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38626fi
38627fi
38628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38629if test -n "$ac_ct_RANLIB"; then
38630 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38631echo "${ECHO_T}$ac_ct_RANLIB" >&6
38632else
38633 echo "$as_me:$LINENO: result: no" >&5
38634echo "${ECHO_T}no" >&6
38635fi
38636
38637 RANLIB=$ac_ct_RANLIB
38638else
38639 RANLIB="$ac_cv_prog_RANLIB"
38640fi
38641
38642 # Find a good install program. We prefer a C program (faster),
38643# so one script is as good as another. But avoid the broken or
38644# incompatible versions:
38645# SysV /etc/install, /usr/sbin/install
38646# SunOS /usr/etc/install
38647# IRIX /sbin/install
38648# AIX /bin/install
38649# AmigaOS /C/install, which installs bootblocks on floppy discs
38650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 38653# OS/2's system install, which has a completely different semantic
a848cd7e
SC
38654# ./install, which can be erroneously created by make from ./install.sh.
38655echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38657if test -z "$INSTALL"; then
38658if test "${ac_cv_path_install+set}" = set; then
38659 echo $ECHO_N "(cached) $ECHO_C" >&6
38660else
38661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38662for as_dir in $PATH
38663do
38664 IFS=$as_save_IFS
38665 test -z "$as_dir" && as_dir=.
38666 # Account for people who put trailing slashes in PATH elements.
38667case $as_dir/ in
38668 ./ | .// | /cC/* | \
38669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 38670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
38671 /usr/ucb/* ) ;;
38672 *)
38673 # OSF1 and SCO ODT 3.0 have their own names for install.
38674 # Don't use installbsd from OSF since it installs stuff as root
38675 # by default.
38676 for ac_prog in ginstall scoinst install; do
38677 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
38678 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38679 if test $ac_prog = install &&
38680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38681 # AIX install. It has an incompatible calling convention.
38682 :
38683 elif test $ac_prog = install &&
38684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38685 # program-specific install script used by HP pwplus--don't use.
38686 :
38687 else
38688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38689 break 3
38690 fi
38691 fi
a848cd7e
SC
38692 done
38693 done
38694 ;;
38695esac
38696done
38697
38698
38699fi
38700 if test "${ac_cv_path_install+set}" = set; then
38701 INSTALL=$ac_cv_path_install
38702 else
38703 # As a last resort, use the slow shell script. We don't cache a
38704 # path for INSTALL within a source directory, because that will
38705 # break other packages using the cache if that directory is
38706 # removed, or if the path is relative.
38707 INSTALL=$ac_install_sh
38708 fi
38709fi
38710echo "$as_me:$LINENO: result: $INSTALL" >&5
38711echo "${ECHO_T}$INSTALL" >&6
38712
38713# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38714# It thinks the first close brace ends the variable substitution.
38715test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38716
38717test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38718
38719test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38720
38721 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38722echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38723LN_S=$as_ln_s
38724if test "$LN_S" = "ln -s"; then
38725 echo "$as_me:$LINENO: result: yes" >&5
38726echo "${ECHO_T}yes" >&6
38727else
38728 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38729echo "${ECHO_T}no, using $LN_S" >&6
38730fi
38731
38732
38733 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 38735set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
38736if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38737 echo $ECHO_N "(cached) $ECHO_C" >&6
38738else
38739 cat >conftest.make <<\_ACEOF
38740all:
38741 @echo 'ac_maketemp="$(MAKE)"'
38742_ACEOF
38743# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38744eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38745if test -n "$ac_maketemp"; then
38746 eval ac_cv_prog_make_${ac_make}_set=yes
38747else
38748 eval ac_cv_prog_make_${ac_make}_set=no
38749fi
38750rm -f conftest.make
38751fi
38752if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38753 echo "$as_me:$LINENO: result: yes" >&5
38754echo "${ECHO_T}yes" >&6
38755 SET_MAKE=
38756else
38757 echo "$as_me:$LINENO: result: no" >&5
38758echo "${ECHO_T}no" >&6
38759 SET_MAKE="MAKE=${MAKE-make}"
38760fi
38761
38762
38763
38764 if test -n "$ac_tool_prefix"; then
38765 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38766set dummy ${ac_tool_prefix}ar; ac_word=$2
38767echo "$as_me:$LINENO: checking for $ac_word" >&5
38768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38769if test "${ac_cv_prog_AR+set}" = set; then
38770 echo $ECHO_N "(cached) $ECHO_C" >&6
38771else
38772 if test -n "$AR"; then
38773 ac_cv_prog_AR="$AR" # Let the user override the test.
38774else
38775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38776for as_dir in $PATH
38777do
38778 IFS=$as_save_IFS
38779 test -z "$as_dir" && as_dir=.
38780 for ac_exec_ext in '' $ac_executable_extensions; do
38781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38782 ac_cv_prog_AR="${ac_tool_prefix}ar"
38783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38784 break 2
38785 fi
38786done
38787done
38788
38789fi
38790fi
38791AR=$ac_cv_prog_AR
38792if test -n "$AR"; then
38793 echo "$as_me:$LINENO: result: $AR" >&5
38794echo "${ECHO_T}$AR" >&6
38795else
38796 echo "$as_me:$LINENO: result: no" >&5
38797echo "${ECHO_T}no" >&6
38798fi
38799
38800fi
38801if test -z "$ac_cv_prog_AR"; then
38802 ac_ct_AR=$AR
38803 # Extract the first word of "ar", so it can be a program name with args.
38804set dummy ar; ac_word=$2
38805echo "$as_me:$LINENO: checking for $ac_word" >&5
38806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38807if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38808 echo $ECHO_N "(cached) $ECHO_C" >&6
38809else
38810 if test -n "$ac_ct_AR"; then
38811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38812else
38813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38814for as_dir in $PATH
38815do
38816 IFS=$as_save_IFS
38817 test -z "$as_dir" && as_dir=.
38818 for ac_exec_ext in '' $ac_executable_extensions; do
38819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38820 ac_cv_prog_ac_ct_AR="ar"
38821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38822 break 2
38823 fi
38824done
38825done
38826
38827 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38828fi
38829fi
38830ac_ct_AR=$ac_cv_prog_ac_ct_AR
38831if test -n "$ac_ct_AR"; then
38832 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38833echo "${ECHO_T}$ac_ct_AR" >&6
38834else
38835 echo "$as_me:$LINENO: result: no" >&5
38836echo "${ECHO_T}no" >&6
38837fi
38838
38839 AR=$ac_ct_AR
38840else
38841 AR="$ac_cv_prog_AR"
38842fi
38843
38844 if test -n "$ac_tool_prefix"; then
38845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38846set dummy ${ac_tool_prefix}strip; ac_word=$2
38847echo "$as_me:$LINENO: checking for $ac_word" >&5
38848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38849if test "${ac_cv_prog_STRIP+set}" = set; then
38850 echo $ECHO_N "(cached) $ECHO_C" >&6
38851else
38852 if test -n "$STRIP"; then
38853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38854else
38855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38856for as_dir in $PATH
38857do
38858 IFS=$as_save_IFS
38859 test -z "$as_dir" && as_dir=.
38860 for ac_exec_ext in '' $ac_executable_extensions; do
38861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38862 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38864 break 2
38865 fi
38866done
38867done
38868
38869fi
38870fi
38871STRIP=$ac_cv_prog_STRIP
38872if test -n "$STRIP"; then
38873 echo "$as_me:$LINENO: result: $STRIP" >&5
38874echo "${ECHO_T}$STRIP" >&6
38875else
38876 echo "$as_me:$LINENO: result: no" >&5
38877echo "${ECHO_T}no" >&6
38878fi
38879
38880fi
38881if test -z "$ac_cv_prog_STRIP"; then
38882 ac_ct_STRIP=$STRIP
38883 # Extract the first word of "strip", so it can be a program name with args.
38884set dummy strip; ac_word=$2
38885echo "$as_me:$LINENO: checking for $ac_word" >&5
38886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38887if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38888 echo $ECHO_N "(cached) $ECHO_C" >&6
38889else
38890 if test -n "$ac_ct_STRIP"; then
38891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38892else
38893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38894for as_dir in $PATH
38895do
38896 IFS=$as_save_IFS
38897 test -z "$as_dir" && as_dir=.
38898 for ac_exec_ext in '' $ac_executable_extensions; do
38899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38900 ac_cv_prog_ac_ct_STRIP="strip"
38901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38902 break 2
38903 fi
38904done
38905done
38906
38907 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38908fi
38909fi
38910ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38911if test -n "$ac_ct_STRIP"; then
38912 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38913echo "${ECHO_T}$ac_ct_STRIP" >&6
38914else
38915 echo "$as_me:$LINENO: result: no" >&5
38916echo "${ECHO_T}no" >&6
38917fi
38918
38919 STRIP=$ac_ct_STRIP
38920else
38921 STRIP="$ac_cv_prog_STRIP"
38922fi
38923
38924 if test -n "$ac_tool_prefix"; then
38925 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38926set dummy ${ac_tool_prefix}nm; ac_word=$2
38927echo "$as_me:$LINENO: checking for $ac_word" >&5
38928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38929if test "${ac_cv_prog_NM+set}" = set; then
38930 echo $ECHO_N "(cached) $ECHO_C" >&6
38931else
38932 if test -n "$NM"; then
38933 ac_cv_prog_NM="$NM" # Let the user override the test.
38934else
38935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38936for as_dir in $PATH
38937do
38938 IFS=$as_save_IFS
38939 test -z "$as_dir" && as_dir=.
38940 for ac_exec_ext in '' $ac_executable_extensions; do
38941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38942 ac_cv_prog_NM="${ac_tool_prefix}nm"
38943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38944 break 2
38945 fi
38946done
38947done
38948
38949fi
38950fi
38951NM=$ac_cv_prog_NM
38952if test -n "$NM"; then
38953 echo "$as_me:$LINENO: result: $NM" >&5
38954echo "${ECHO_T}$NM" >&6
38955else
38956 echo "$as_me:$LINENO: result: no" >&5
38957echo "${ECHO_T}no" >&6
38958fi
38959
38960fi
38961if test -z "$ac_cv_prog_NM"; then
38962 ac_ct_NM=$NM
38963 # Extract the first word of "nm", so it can be a program name with args.
38964set dummy nm; ac_word=$2
38965echo "$as_me:$LINENO: checking for $ac_word" >&5
38966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38967if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38968 echo $ECHO_N "(cached) $ECHO_C" >&6
38969else
38970 if test -n "$ac_ct_NM"; then
38971 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38972else
38973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38974for as_dir in $PATH
38975do
38976 IFS=$as_save_IFS
38977 test -z "$as_dir" && as_dir=.
38978 for ac_exec_ext in '' $ac_executable_extensions; do
38979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38980 ac_cv_prog_ac_ct_NM="nm"
38981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38982 break 2
38983 fi
38984done
38985done
38986
38987 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38988fi
38989fi
38990ac_ct_NM=$ac_cv_prog_ac_ct_NM
38991if test -n "$ac_ct_NM"; then
38992 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38993echo "${ECHO_T}$ac_ct_NM" >&6
38994else
38995 echo "$as_me:$LINENO: result: no" >&5
38996echo "${ECHO_T}no" >&6
38997fi
38998
38999 NM=$ac_ct_NM
39000else
39001 NM="$ac_cv_prog_NM"
39002fi
39003
39004
39005 case ${BAKEFILE_HOST} in
39006 *-hp-hpux* )
1e9e8aba 39007 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39008 ;;
39009 *) INSTALL_DIR="$INSTALL -d"
39010 ;;
39011 esac
39012
39013
39014 LDFLAGS_GUI=
39015 case ${BAKEFILE_HOST} in
39016 *-*-cygwin* | *-*-mingw32* )
39017 LDFLAGS_GUI="-mwindows"
39018 esac
39019
39020
39021 fi
39022
39023 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39024echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39025if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39026 echo $ECHO_N "(cached) $ECHO_C" >&6
39027else
39028
39029 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39030 egrep -s GNU > /dev/null); then
39031 bakefile_cv_prog_makeisgnu="yes"
39032 else
39033 bakefile_cv_prog_makeisgnu="no"
39034 fi
39035
39036fi
39037echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39038echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39039
39040 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39041 IF_GNU_MAKE=""
39042 else
39043 IF_GNU_MAKE="#"
39044 fi
39045
39046
39047
39048 PLATFORM_UNIX=0
39049 PLATFORM_WIN32=0
39050 PLATFORM_MSDOS=0
39051 PLATFORM_MAC=0
1e9e8aba 39052 PLATFORM_MACOS=0
a848cd7e
SC
39053 PLATFORM_MACOSX=0
39054 PLATFORM_OS2=0
1e9e8aba 39055 PLATFORM_BEOS=0
a848cd7e
SC
39056
39057 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39058 case "${BAKEFILE_HOST}" in
39059 *-*-cygwin* | *-*-mingw32* )
39060 PLATFORM_WIN32=1
39061 ;;
39062 *-pc-msdosdjgpp )
39063 PLATFORM_MSDOS=1
39064 ;;
39065 *-pc-os2_emx | *-pc-os2-emx )
39066 PLATFORM_OS2=1
39067 ;;
39068 powerpc-*-darwin* )
39069 PLATFORM_MAC=1
39070 PLATFORM_MACOSX=1
39071 ;;
1e9e8aba
DE
39072 *-*-beos* )
39073 PLATFORM_BEOS=1
39074 ;;
39075 powerpc-apple-macos* )
39076 PLATFORM_MAC=1
39077 PLATFORM_MACOS=1
39078 ;;
a848cd7e
SC
39079 * )
39080 PLATFORM_UNIX=1
39081 ;;
39082 esac
39083 else
39084 case "$BAKEFILE_FORCE_PLATFORM" in
39085 win32 )
39086 PLATFORM_WIN32=1
39087 ;;
39088 msdos )
39089 PLATFORM_MSDOS=1
39090 ;;
39091 os2 )
39092 PLATFORM_OS2=1
39093 ;;
39094 darwin )
39095 PLATFORM_MAC=1
39096 PLATFORM_MACOSX=1
39097 ;;
39098 unix )
39099 PLATFORM_UNIX=1
39100 ;;
1e9e8aba
DE
39101 beos )
39102 PLATFORM_BEOS=1
39103 ;;
a848cd7e
SC
39104 * )
39105 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39106echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39107 { (exit 1); exit 1; }; }
39108 ;;
39109 esac
39110 fi
39111
39112
39113
39114
39115
39116
39117
39118
39119
1e9e8aba
DE
39120
39121
a848cd7e
SC
39122 # Check whether --enable-omf or --disable-omf was given.
39123if test "${enable_omf+set}" = set; then
39124 enableval="$enable_omf"
39125 bk_os2_use_omf="$enableval"
39126fi;
39127
39128 case "${BAKEFILE_HOST}" in
39129 *-*-darwin* )
39130 CFLAGS="$CFLAGS -fno-common"
39131 CXXFLAGS="$CXXFLAGS -fno-common"
39132 ;;
39133
39134 *-pc-os2_emx | *-pc-os2-emx )
39135 if test "x$bk_os2_use_omf" = "xyes" ; then
39136 AR=emxomfar
39137 RANLIB=:
39138 LDFLAGS="-Zomf $LDFLAGS"
39139 CFLAGS="-Zomf $CFLAGS"
39140 CXXFLAGS="-Zomf $CXXFLAGS"
39141 OS2_LIBEXT="lib"
39142 else
39143 OS2_LIBEXT="a"
39144 fi
39145 ;;
1e9e8aba
DE
39146
39147 i*86-*-beos* )
39148 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39149 ;;
a848cd7e
SC
39150 esac
39151
39152
39153 SO_SUFFIX="so"
39154 SO_SUFFIX_MODULE="so"
39155 EXEEXT=""
39156 LIBPREFIX="lib"
39157 LIBEXT=".a"
39158 DLLPREFIX="lib"
39159 DLLPREFIX_MODULE=""
39160 DLLIMP_SUFFIX=""
39161
39162 case "${BAKEFILE_HOST}" in
39163 *-hp-hpux* )
39164 SO_SUFFIX="sl"
39165 SO_SUFFIX_MODULE="sl"
39166 ;;
39167 *-*-aix* )
39168 SO_SUFFIX="a"
39169 SO_SUFFIX_MODULE="a"
39170 ;;
39171 *-*-cygwin* | *-*-mingw32* )
39172 SO_SUFFIX="dll"
39173 SO_SUFFIX_MODULE="dll"
39174 DLLIMP_SUFFIX="dll.a"
39175 EXEEXT=".exe"
39176 DLLPREFIX=""
39177 ;;
39178 *-pc-msdosdjgpp )
39179 EXEEXT=".exe"
39180 DLLPREFIX=""
39181 ;;
39182 *-pc-os2_emx | *-pc-os2-emx )
39183 SO_SUFFIX="dll"
39184 SO_SUFFIX_MODULE="dll"
39185 DLLIMP_SUFFIX=$OS2_LIBEXT
39186 EXEEXT=".exe"
39187 DLLPREFIX=""
39188 LIBPREFIX=""
39189 LIBEXT=".$OS2_LIBEXT"
39190 ;;
39191 powerpc-*-darwin* )
39192 SO_SUFFIX="dylib"
39193 SO_SUFFIX_MODULE="bundle"
39194 ;;
39195 esac
39196
39197 if test "x$DLLIMP_SUFFIX" = "x" ; then
39198 DLLIMP_SUFFIX="$SO_SUFFIX"
39199 fi
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
1e9e8aba
DE
39211 PIC_FLAG=""
39212 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39213 PIC_FLAG="-fPIC"
39214 fi
39215
1e9e8aba
DE
39216 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39217 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39218
a848cd7e
SC
39219 case "${BAKEFILE_HOST}" in
39220 *-hp-hpux* )
1e9e8aba 39221 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39222 LDFLAGS="$LDFLAGS -L/usr/lib"
39223
39224 SHARED_LD_CC="${CC} -b -o"
39225 SHARED_LD_CXX="${CXX} -b -o"
39226 PIC_FLAG="+Z"
39227 fi
39228 ;;
39229
39230 *-*-linux* )
39231 if test "x$GCC" != "xyes"; then
39232 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39233echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39234if test "${bakefile_cv_prog_icc+set}" = set; then
39235 echo $ECHO_N "(cached) $ECHO_C" >&6
39236else
39237
39238 cat >conftest.$ac_ext <<_ACEOF
39239/* confdefs.h. */
39240_ACEOF
39241cat confdefs.h >>conftest.$ac_ext
39242cat >>conftest.$ac_ext <<_ACEOF
39243/* end confdefs.h. */
39244
39245int
39246main ()
39247{
39248
39249 #ifndef __INTEL_COMPILER
39250 #error Not icc
39251 #endif
39252
39253 ;
39254 return 0;
39255}
39256_ACEOF
39257rm -f conftest.$ac_objext
39258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39259 (eval $ac_compile) 2>conftest.er1
a848cd7e 39260 ac_status=$?
ac1cb8d3
VS
39261 grep -v '^ *+' conftest.er1 >conftest.err
39262 rm -f conftest.er1
39263 cat conftest.err >&5
a848cd7e
SC
39264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265 (exit $ac_status); } &&
5f652d0d
VS
39266 { ac_try='test -z "$ac_c_werror_flag"
39267 || test ! -s conftest.err'
ac1cb8d3
VS
39268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39269 (eval $ac_try) 2>&5
39270 ac_status=$?
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); }; } &&
39273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275 (eval $ac_try) 2>&5
39276 ac_status=$?
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); }; }; then
39279 bakefile_cv_prog_icc=yes
39280else
39281 echo "$as_me: failed program was:" >&5
39282sed 's/^/| /' conftest.$ac_ext >&5
39283
39284bakefile_cv_prog_icc=no
39285
39286fi
ac1cb8d3 39287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39288
39289fi
39290echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39291echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39292 if test "$bakefile_cv_prog_icc" = "yes"; then
39293 PIC_FLAG="-KPIC"
39294 fi
39295 fi
39296 ;;
39297
39298 *-*-solaris2* )
39299 if test "x$GCC" != xyes ; then
39300 SHARED_LD_CC="${CC} -G -o"
39301 SHARED_LD_CXX="${CXX} -G -o"
39302 PIC_FLAG="-KPIC"
39303 fi
39304 ;;
39305
39306 *-*-darwin* )
39307
39308 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39309echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39310if test "${wx_cv_gcc31+set}" = set; then
39311 echo $ECHO_N "(cached) $ECHO_C" >&6
39312else
39313
39314 cat >conftest.$ac_ext <<_ACEOF
39315/* confdefs.h. */
39316_ACEOF
39317cat confdefs.h >>conftest.$ac_ext
39318cat >>conftest.$ac_ext <<_ACEOF
39319/* end confdefs.h. */
39320
39321int
39322main ()
39323{
39324
39325 #if (__GNUC__ < 3) || \
39326 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39327 #error old gcc
39328 #endif
39329
39330 ;
39331 return 0;
39332}
39333_ACEOF
39334rm -f conftest.$ac_objext
39335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39336 (eval $ac_compile) 2>conftest.er1
a848cd7e 39337 ac_status=$?
ac1cb8d3
VS
39338 grep -v '^ *+' conftest.er1 >conftest.err
39339 rm -f conftest.er1
39340 cat conftest.err >&5
a848cd7e
SC
39341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342 (exit $ac_status); } &&
5f652d0d
VS
39343 { ac_try='test -z "$ac_c_werror_flag"
39344 || test ! -s conftest.err'
ac1cb8d3
VS
39345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346 (eval $ac_try) 2>&5
39347 ac_status=$?
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); }; } &&
39350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39352 (eval $ac_try) 2>&5
39353 ac_status=$?
39354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355 (exit $ac_status); }; }; then
39356
39357 wx_cv_gcc31=yes
39358
39359else
39360 echo "$as_me: failed program was:" >&5
39361sed 's/^/| /' conftest.$ac_ext >&5
39362
39363
39364 wx_cv_gcc31=no
39365
39366
39367fi
ac1cb8d3 39368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39369
39370fi
39371echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39372echo "${ECHO_T}$wx_cv_gcc31" >&6
39373 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39374
39375D='$'
39376cat <<EOF >shared-ld-sh
a848cd7e
SC
39377#!/bin/sh
39378#-----------------------------------------------------------------------------
39379#-- Name: distrib/mac/shared-ld-sh
39380#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39381#-- Author: Gilles Depeyrot
39382#-- Copyright: (c) 2002 Gilles Depeyrot
39383#-- Licence: any use permitted
39384#-----------------------------------------------------------------------------
39385
39386verbose=0
39387args=""
39388objects=""
39389linking_flag="-dynamiclib"
39390
473276a9
VS
39391while test ${D}# -gt 0; do
39392 case ${D}1 in
a848cd7e
SC
39393
39394 -v)
39395 verbose=1
39396 ;;
39397
39398 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39399 # collect these options and values
473276a9 39400 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39401 shift
39402 ;;
39403
39404 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39405 # collect these options
473276a9 39406 args="${D}{args} ${D}1"
a848cd7e
SC
39407 ;;
39408
39409 -dynamiclib|-bundle)
473276a9 39410 linking_flag="${D}1"
a848cd7e
SC
39411 ;;
39412
39413 -*)
473276a9 39414 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39415 exit 1
39416 ;;
39417
39418 *.o | *.a | *.dylib)
39419 # collect object files
473276a9 39420 objects="${D}{objects} ${D}1"
a848cd7e
SC
39421 ;;
39422
39423 *)
473276a9 39424 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39425 exit 1
39426 ;;
39427
39428 esac
39429 shift
39430done
39431
39432#
39433# Link one module containing all the others
39434#
473276a9
VS
39435if test ${D}{verbose} = 1; then
39436 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39437fi
473276a9
VS
39438c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39439status=${D}?
39440if test ${D}{status} != 0; then
39441 exit ${D}{status}
a848cd7e
SC
39442fi
39443
39444#
39445# Link the shared library from the single module created
39446#
473276a9
VS
39447if test ${D}{verbose} = 1; then
39448 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39449fi
473276a9
VS
39450c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39451status=${D}?
39452if test ${D}{status} != 0; then
39453 exit ${D}{status}
a848cd7e
SC
39454fi
39455
39456#
39457# Remove intermediate module
39458#
473276a9 39459rm -f master.${D}${D}.o
a848cd7e
SC
39460
39461exit 0
39462EOF
473276a9 39463
a848cd7e
SC
39464 chmod +x shared-ld-sh
39465
39466 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39467 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39468 SHARED_LD_CXX="$SHARED_LD_CC"
39469 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39470 else
39471 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39472 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39473 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39474 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39475 fi
39476
39477 PIC_FLAG="-dynamic -fPIC"
39478 ;;
39479
39480 *-*-aix* )
39481 if test "x$GCC" != "xyes"; then
39482 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39483set dummy makeC++SharedLib; ac_word=$2
39484echo "$as_me:$LINENO: checking for $ac_word" >&5
39485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39486if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39487 echo $ECHO_N "(cached) $ECHO_C" >&6
39488else
39489 if test -n "$AIX_CXX_LD"; then
39490 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39491else
39492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39493for as_dir in $PATH
39494do
39495 IFS=$as_save_IFS
39496 test -z "$as_dir" && as_dir=.
39497 for ac_exec_ext in '' $ac_executable_extensions; do
39498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39499 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39501 break 2
39502 fi
39503done
39504done
39505
39506 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39507fi
39508fi
39509AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39510if test -n "$AIX_CXX_LD"; then
39511 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39512echo "${ECHO_T}$AIX_CXX_LD" >&6
39513else
39514 echo "$as_me:$LINENO: result: no" >&5
39515echo "${ECHO_T}no" >&6
39516fi
39517
39518 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39519 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39520 fi
39521 ;;
39522
39523 *-*-beos* )
1e9e8aba
DE
39524 SHARED_LD_CC="${LD} -nostart -o"
39525 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39526 ;;
39527
39528 *-*-irix* )
39529 if test "x$GCC" != "xyes"; then
39530 PIC_FLAG="-KPIC"
39531 fi
39532 ;;
39533
39534 *-*-cygwin* | *-*-mingw32* )
39535 PIC_FLAG=""
1e9e8aba
DE
39536 SHARED_LD_CC="\$(CC) -shared -o"
39537 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39538 ;;
39539
39540 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
39541 SHARED_LD_CC="`pwd`/dllar.sh -o"
39542 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 39543 PIC_FLAG=""
473276a9
VS
39544
39545D='$'
39546cat <<EOF >dllar.sh
39547#!/bin/sh
39548#
39549# dllar - a tool to build both a .dll and an .a file
39550# from a set of object (.o) files for EMX/OS2.
39551#
39552# Written by Andrew Zabolotny, bit@freya.etu.ru
39553# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39554#
39555# This script will accept a set of files on the command line.
39556# All the public symbols from the .o files will be exported into
39557# a .DEF file, then linker will be run (through gcc) against them to
39558# build a shared library consisting of all given .o files. All libraries
39559# (.a) will be first decompressed into component .o files then act as
39560# described above. You can optionally give a description (-d "description")
39561# which will be put into .DLL. To see the list of accepted options (as well
39562# as command-line format) simply run this program without options. The .DLL
39563# is built to be imported by name (there is no guarantee that new versions
39564# of the library you build will have same ordinals for same symbols).
39565#
39566# dllar is free software; you can redistribute it and/or modify
39567# it under the terms of the GNU General Public License as published by
39568# the Free Software Foundation; either version 2, or (at your option)
39569# any later version.
39570#
39571# dllar is distributed in the hope that it will be useful,
39572# but WITHOUT ANY WARRANTY; without even the implied warranty of
39573# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39574# GNU General Public License for more details.
39575#
39576# You should have received a copy of the GNU General Public License
39577# along with dllar; see the file COPYING. If not, write to the Free
39578# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39579# 02111-1307, USA.
39580
39581# To successfuly run this program you will need:
39582# - Current drive should have LFN support (HPFS, ext2, network, etc)
39583# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39584# - gcc
39585# (used to build the .dll)
39586# - emxexp
39587# (used to create .def file from .o files)
39588# - emximp
39589# (used to create .a file from .def file)
39590# - GNU text utilites (cat, sort, uniq)
39591# used to process emxexp output
39592# - GNU file utilities (mv, rm)
39593# - GNU sed
39594# - lxlite (optional, see flag below)
39595# (used for general .dll cleanup)
39596#
39597
39598flag_USE_LXLITE=1;
39599
39600#
39601# helper functions
39602# basnam, variant of basename, which does _not_ remove the path, _iff_
39603# second argument (suffix to remove) is given
39604basnam(){
39605 case ${D}# in
39606 1)
1e9e8aba 39607 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39608 ;;
39609 2)
39610 echo ${D}1 | sed 's/'${D}2'${D}//'
39611 ;;
39612 *)
39613 echo "error in basnam ${D}*"
39614 exit 8
39615 ;;
39616 esac
39617}
39618
39619# Cleanup temporary files and output
39620CleanUp() {
39621 cd ${D}curDir
39622 for i in ${D}inputFiles ; do
39623 case ${D}i in
39624 *!)
39625 rm -rf \`basnam ${D}i !\`
39626 ;;
39627 *)
39628 ;;
39629 esac
39630 done
39631
39632 # Kill result in case of failure as there is just to many stupid make/nmake
39633 # things out there which doesn't do this.
1e9e8aba 39634 if [ ${D}# -eq 0 ]; then
473276a9
VS
39635 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39636 fi
39637}
39638
39639# Print usage and exit script with rc=1.
39640PrintHelp() {
1e9e8aba
DE
39641 echo 'Usage: dllar [-o@<:${utput}:>@ output_file] [-i@<:${mport}:>@ importlib_name]'
39642 echo ' [-d@<:${escription}:>@ "dll descrption"] [-cc "CC"] [-f@<:${lags}:>@ "CFLAGS"]'
39643 echo ' [-ord@<:${inals}:>@] -ex@<:${clude}:>@ "symbol(s)"'
39644 echo ' [-libf@<:${lags}:>@ "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt@<:${dll}:>@] [-nolxl@<:${ite}:>@]'
39645 echo ' [*.o] [*.a]'
473276a9
VS
39646 echo '*> "output_file" should have no extension.'
39647 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
39648 echo ' The import library name is derived from this and is set to "name".a,'
39649 echo ' unless overridden by -import'
39650 echo '*> "importlib_name" should have no extension.'
39651 echo ' If it has the .o, or .a extension, it is automatically removed.'
39652 echo ' This name is used as the import library name and may be longer and'
39653 echo ' more descriptive than the DLL name which has to follow the old '
39654 echo ' 8.3 convention of FAT.'
39655 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
39656 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39657 echo ' These flags will be put at the start of GCC command line.'
1e9e8aba
DE
39658 echo '*> -ord@<:${inals}:>@ tells dllar to export entries by ordinals. Be careful.'
39659 echo '*> -ex@<:${clude}:>@ defines symbols which will not be exported. You can define'
473276a9
VS
39660 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39661 echo ' If the last character of a symbol is "*", all symbols beginning'
39662 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
1e9e8aba 39663 echo '*> -libf@<:${lags}:>@ can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 39664 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
1e9e8aba 39665 echo '*> -nocrt@<:${dll}:>@ switch will disable linking the library against emx''s'
473276a9 39666 echo ' C runtime DLLs.'
1e9e8aba 39667 echo '*> -nolxl@<:${ite}:>@ switch will disable running lxlite on the resulting DLL.'
473276a9
VS
39668 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39669 echo ' unchanged to GCC at the end of command line.'
39670 echo '*> If you create a DLL from a library and you do not specify -o,'
39671 echo ' the basename for DLL and import library will be set to library name,'
39672 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
39673 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39674 echo ' library will be renamed into gcc_s.a.'
39675 echo '--------'
39676 echo 'Example:'
39677 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39678 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39679 CleanUp
39680 exit 1
39681}
39682
39683# Execute a command.
39684# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39685# @Uses Whatever CleanUp() uses.
39686doCommand() {
39687 echo "${D}*"
39688 eval ${D}*
39689 rcCmd=${D}?
39690
1e9e8aba 39691 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
39692 echo "command failed, exit code="${D}rcCmd
39693 CleanUp
39694 exit ${D}rcCmd
39695 fi
39696}
39697
39698# main routine
39699# setup globals
39700cmdLine=${D}*
39701outFile=""
39702outimpFile=""
39703inputFiles=""
39704description=""
39705CC=gcc.exe
39706CFLAGS="-s -Zcrtdll"
39707EXTRA_CFLAGS=""
39708EXPORT_BY_ORDINALS=0
39709exclude_symbols=""
39710library_flags=""
39711curDir=\`pwd\`
39712curDirS=curDir
39713case ${D}curDirS in
39714*/)
39715 ;;
39716*)
39717 curDirS=${D}{curDirS}"/"
39718 ;;
39719esac
39720# Parse commandline
39721libsToLink=0
1e9e8aba 39722while [ ${D}1 ]; do
473276a9
VS
39723 case ${D}1 in
39724 -ord*)
39725 EXPORT_BY_ORDINALS=1;
39726 ;;
39727 -o*)
39728 shift
39729 outFile=${D}1
39730 ;;
39731 -i*)
39732 shift
39733 outimpFile=${D}1
39734 ;;
39735 -d*)
39736 shift
39737 description=${D}1
39738 ;;
39739 -f*)
39740 shift
39741 CFLAGS=${D}1
39742 ;;
39743 -c*)
39744 shift
39745 CC=${D}1
39746 ;;
39747 -h*)
39748 PrintHelp
39749 ;;
39750 -ex*)
39751 shift
39752 exclude_symbols=${D}{exclude_symbols}${D}1" "
39753 ;;
39754 -libf*)
39755 shift
39756 library_flags=${D}{library_flags}${D}1" "
39757 ;;
39758 -nocrt*)
39759 CFLAGS="-s"
39760 ;;
39761 -nolxl*)
39762 flag_USE_LXLITE=0
39763 ;;
39764 -* | /*)
39765 case ${D}1 in
39766 -L* | -l*)
39767 libsToLink=1
39768 ;;
39769 *)
39770 ;;
39771 esac
39772 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39773 ;;
39774 *)
39775 found=0;
1e9e8aba 39776 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
39777 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39778 else
39779 for file in ${D}1 ; do
1e9e8aba 39780 if [ -f ${D}file ]; then
473276a9
VS
39781 inputFiles="${D}{inputFiles} ${D}file"
39782 found=1
39783 fi
39784 done
1e9e8aba 39785 if [ ${D}found -eq 0 ]; then
473276a9
VS
39786 echo "ERROR: No file(s) found: "${D}1
39787 exit 8
39788 fi
39789 fi
39790 ;;
39791 esac
39792 shift
39793done # iterate cmdline words
39794
39795#
1e9e8aba 39796if [ -z "${D}inputFiles" ]; then
473276a9
VS
39797 echo "dllar: no input files"
39798 PrintHelp
39799fi
39800
39801# Now extract all .o files from .a files
39802newInputFiles=""
39803for file in ${D}inputFiles ; do
39804 case ${D}file in
39805 *.a | *.lib)
39806 case ${D}file in
39807 *.a)
39808 suffix=".a"
39809 AR="ar"
39810 ;;
39811 *.lib)
39812 suffix=".lib"
39813 AR="emxomfar"
39814 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39815 ;;
39816 *)
39817 ;;
39818 esac
39819 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39820 mkdir ${D}dirname
1e9e8aba 39821 if [ ${D}? -ne 0 ]; then
473276a9
VS
39822 echo "Failed to create subdirectory ./${D}dirname"
39823 CleanUp
39824 exit 8;
39825 fi
39826 # Append '!' to indicate archive
39827 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39828 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39829 cd ${D}curDir
39830 found=0;
39831 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 39832 if [ -f ${D}subfile ]; then
473276a9 39833 found=1
1e9e8aba 39834 if [ -s ${D}subfile ]; then
473276a9
VS
39835 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39836 newInputFiles="${D}newInputFiles ${D}subfile"
39837 fi
39838 fi
39839 done
1e9e8aba
DE
39840 if [ ${D}found -eq 0 ]; then
39841 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
39842 fi
39843 ;;
39844 *)
39845 newInputFiles="${D}{newInputFiles} ${D}file"
39846 ;;
39847 esac
39848done
39849inputFiles="${D}newInputFiles"
39850
39851# Output filename(s).
39852do_backup=0;
1e9e8aba 39853if [ -z ${D}outFile ]; then
473276a9
VS
39854 do_backup=1;
39855 set outFile ${D}inputFiles; outFile=${D}2
39856fi
39857
39858# If it is an archive, remove the '!' and the '_%' suffixes
39859case ${D}outFile in
39860*_%!)
39861 outFile=\`basnam ${D}outFile _%!\`
39862 ;;
39863*)
39864 ;;
39865esac
39866case ${D}outFile in
39867*.dll)
39868 outFile=\`basnam ${D}outFile .dll\`
39869 ;;
39870*.DLL)
39871 outFile=\`basnam ${D}outFile .DLL\`
39872 ;;
39873*.o)
39874 outFile=\`basnam ${D}outFile .o\`
39875 ;;
39876*.obj)
39877 outFile=\`basnam ${D}outFile .obj\`
39878 ;;
39879*.a)
39880 outFile=\`basnam ${D}outFile .a\`
39881 ;;
39882*.lib)
39883 outFile=\`basnam ${D}outFile .lib\`
39884 ;;
39885*)
39886 ;;
39887esac
39888case ${D}outimpFile in
39889*.a)
39890 outimpFile=\`basnam ${D}outimpFile .a\`
39891 ;;
39892*.lib)
39893 outimpFile=\`basnam ${D}outimpFile .lib\`
39894 ;;
39895*)
39896 ;;
39897esac
1e9e8aba 39898if [ -z ${D}outimpFile ]; then
473276a9
VS
39899 outimpFile=${D}outFile
39900fi
39901defFile="${D}{outFile}.def"
39902arcFile="${D}{outimpFile}.a"
39903arcFile2="${D}{outimpFile}.lib"
39904dllFile="${D}outFile"
39905# Add suffix to dllFile later, first we need a version to use as
39906# name in .def file.
39907
1e9e8aba
DE
39908if [ ${D}do_backup -ne 0 ] ; then
39909 if [ -f ${D}arcFile ] ; then
473276a9
VS
39910 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39911 fi
1e9e8aba 39912 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
39913 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39914 fi
39915fi
39916
39917# Extract public symbols from all the object files.
39918tmpdefFile=${D}{defFile}_%
39919rm -f ${D}tmpdefFile
39920for file in ${D}inputFiles ; do
39921 case ${D}file in
39922 *!)
39923 ;;
39924 *)
39925 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39926 ;;
39927 esac
39928done
39929
39930# Create the def file.
39931rm -f ${D}defFile
39932echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39933dllFile="${D}dllFile.dll"
1e9e8aba
DE
39934if [ -n ${D}description ]; then
39935 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
39936fi
39937echo "EXPORTS" >> ${D}defFile
39938
39939doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39940grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39941
39942# Checks if the export is ok or not.
39943for word in ${D}exclude_symbols; do
39944 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39945 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39946done
39947
39948
1e9e8aba
DE
39949if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
39950 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
39951 sed '
39952 N
39953 : loop
1e9e8aba 39954 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
39955 t loop
39956 ' > ${D}{tmpdefFile}%
39957 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39958else
39959 rm -f ${D}{tmpdefFile}%
39960fi
39961cat ${D}tmpdefFile >> ${D}defFile
39962rm -f ${D}tmpdefFile
39963
39964# Do linking, create implib, and apply lxlite.
39965gccCmdl="";
39966for file in ${D}inputFiles ; do
39967 case ${D}file in
39968 *!)
39969 ;;
39970 *)
39971 gccCmdl="${D}gccCmdl ${D}file"
39972 ;;
39973 esac
39974done
39975doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39976touch "${D}{outFile}.dll"
39977
39978doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 39979if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 39980 add_flags="";
1e9e8aba 39981 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
39982 add_flags="-ynd"
39983 fi
39984 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39985fi
39986doCommand "emxomf -s -l ${D}arcFile"
39987
39988# Successful exit.
39989CleanUp 1
39990exit 0
39991EOF
39992
39993 chmod +x dllar.sh
a848cd7e
SC
39994 ;;
39995
1e9e8aba 39996 powerpc-apple-macos* | \
a848cd7e
SC
39997 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39998 *-*-sunos4* | \
39999 *-*-osf* | \
40000 *-*-dgux5* | \
40001 *-*-sysv5* )
40002 ;;
40003
40004 *)
40005 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40006echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40007 { (exit 1); exit 1; }; }
40008 esac
40009
2057db16
VS
40010 if test "x$PIC_FLAG" != "x" ; then
40011 PIC_FLAG="$PIC_FLAG -DPIC"
40012 fi
40013
a848cd7e
SC
40014 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40015 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40016 fi
40017 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40018 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40019 fi
40020
40021
40022
40023
40024
40025
40026
40027
40028 USE_SOVERSION=0
40029 USE_SOVERLINUX=0
40030 USE_SOVERSOLARIS=0
40031 USE_SOSYMLINKS=0
40032 USE_MACVERSION=0
40033 SONAME_FLAG=
40034
40035 case "${BAKEFILE_HOST}" in
40036 *-*-linux* )
40037 SONAME_FLAG="-Wl,-soname,"
40038 USE_SOVERSION=1
40039 USE_SOVERLINUX=1
40040 USE_SOSYMLINKS=1
40041 ;;
40042
5f652d0d
VS
40043 *-*-freebsd* )
40044 SONAME_FLAG="-Wl,-soname,"
40045 USE_SOVERSION=1
40046 USE_SOVERLINUX=1
40047 USE_SOSYMLINKS=1
40048 ;;
40049
a848cd7e
SC
40050 *-*-solaris2* )
40051 SONAME_FLAG="-h "
40052 USE_SOVERSION=1
40053 USE_SOVERSOLARIS=1
40054 USE_SOSYMLINKS=1
40055 ;;
40056
40057 *-*-darwin* )
40058 USE_MACVERSION=1
40059 USE_SOVERSION=1
40060 USE_SOSYMLINKS=1
40061 ;;
40062 esac
40063
40064
40065
40066
40067
40068
40069
40070
40071
40072 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40073echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40074 DEPS_TRACKING=0
40075
40076 if test "x$GCC" = "xyes"; then
40077 DEPSMODE=gcc
40078 DEPS_TRACKING=1
40079 case "${BAKEFILE_HOST}" in
40080 powerpc-*-darwin* )
40081 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40082 ;;
40083 * )
40084 DEPSFLAG_GCC="-MMD"
40085 ;;
40086 esac
40087 echo "$as_me:$LINENO: result: gcc" >&5
40088echo "${ECHO_T}gcc" >&6
40089 else
40090 echo "$as_me:$LINENO: result: none" >&5
40091echo "${ECHO_T}none" >&6
40092 fi
40093
40094 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40095
40096D='$'
40097cat <<EOF >bk-deps
a848cd7e
SC
40098#!/bin/sh
40099
40100# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40101# script. It is used to track C/C++ files dependencies in portable way.
40102#
40103# Permission is given to use this file in any way.
40104
473276a9 40105DEPSMODE=${DEPSMODE}
a848cd7e 40106DEPSDIR=.deps
473276a9 40107DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40108
473276a9 40109mkdir -p ${D}DEPSDIR
a848cd7e 40110
473276a9
VS
40111if test ${D}DEPSMODE = gcc ; then
40112 ${D}* ${D}{DEPSFLAG_GCC}
40113 status=${D}?
40114 if test ${D}{status} != 0 ; then
40115 exit ${D}{status}
a848cd7e
SC
40116 fi
40117 # move created file to the location we want it in:
473276a9
VS
40118 while test ${D}# -gt 0; do
40119 case "${D}1" in
a848cd7e
SC
40120 -o )
40121 shift
473276a9 40122 objfile=${D}1
a848cd7e
SC
40123 ;;
40124 -* )
40125 ;;
40126 * )
473276a9 40127 srcfile=${D}1
a848cd7e
SC
40128 ;;
40129 esac
40130 shift
40131 done
1e9e8aba
DE
40132 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40133 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40134 if test -f ${D}depfile ; then
40135 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40136 rm -f ${D}depfile
a848cd7e 40137 else
1e9e8aba 40138 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40139 if test -f ${D}depfile ; then
40140 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40141 rm -f ${D}depfile
a848cd7e
SC
40142 fi
40143 fi
40144 exit 0
40145else
473276a9
VS
40146 ${D}*
40147 exit ${D}?
a848cd7e
SC
40148fi
40149EOF
473276a9 40150
a848cd7e
SC
40151 chmod +x bk-deps
40152 fi
40153
40154
40155
40156
40157 RESCOMP=
40158 SETFILE=
40159
40160 case ${BAKEFILE_HOST} in
40161 *-*-cygwin* | *-*-mingw32* )
40162 if test "$build" != "$host" ; then
40163 RESCOMP=$host_alias-windres
40164 else
40165 # Extract the first word of "windres", so it can be a program name with args.
40166set dummy windres; ac_word=$2
40167echo "$as_me:$LINENO: checking for $ac_word" >&5
40168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40169if test "${ac_cv_prog_RESCOMP+set}" = set; then
40170 echo $ECHO_N "(cached) $ECHO_C" >&6
40171else
40172 if test -n "$RESCOMP"; then
40173 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40174else
40175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40176for as_dir in $PATH
40177do
40178 IFS=$as_save_IFS
40179 test -z "$as_dir" && as_dir=.
40180 for ac_exec_ext in '' $ac_executable_extensions; do
40181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40182 ac_cv_prog_RESCOMP="windres"
40183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40184 break 2
40185 fi
40186done
40187done
40188
40189 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40190fi
40191fi
40192RESCOMP=$ac_cv_prog_RESCOMP
40193if test -n "$RESCOMP"; then
40194 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40195echo "${ECHO_T}$RESCOMP" >&6
40196else
40197 echo "$as_me:$LINENO: result: no" >&5
40198echo "${ECHO_T}no" >&6
40199fi
40200
40201 fi
40202 ;;
40203
1e9e8aba 40204 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40205 # Extract the first word of "Rez", so it can be a program name with args.
40206set dummy Rez; ac_word=$2
40207echo "$as_me:$LINENO: checking for $ac_word" >&5
40208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40209if test "${ac_cv_prog_RESCOMP+set}" = set; then
40210 echo $ECHO_N "(cached) $ECHO_C" >&6
40211else
40212 if test -n "$RESCOMP"; then
40213 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40214else
40215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40216for as_dir in $PATH
40217do
40218 IFS=$as_save_IFS
40219 test -z "$as_dir" && as_dir=.
40220 for ac_exec_ext in '' $ac_executable_extensions; do
40221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40222 ac_cv_prog_RESCOMP="Rez"
40223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40224 break 2
40225 fi
40226done
40227done
40228
40229 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40230fi
40231fi
40232RESCOMP=$ac_cv_prog_RESCOMP
40233if test -n "$RESCOMP"; then
40234 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40235echo "${ECHO_T}$RESCOMP" >&6
40236else
40237 echo "$as_me:$LINENO: result: no" >&5
40238echo "${ECHO_T}no" >&6
40239fi
40240
40241 # Extract the first word of "SetFile", so it can be a program name with args.
40242set dummy SetFile; ac_word=$2
40243echo "$as_me:$LINENO: checking for $ac_word" >&5
40244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40245if test "${ac_cv_prog_SETFILE+set}" = set; then
40246 echo $ECHO_N "(cached) $ECHO_C" >&6
40247else
40248 if test -n "$SETFILE"; then
40249 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40250else
40251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40252for as_dir in $PATH
40253do
40254 IFS=$as_save_IFS
40255 test -z "$as_dir" && as_dir=.
40256 for ac_exec_ext in '' $ac_executable_extensions; do
40257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40258 ac_cv_prog_SETFILE="SetFile"
40259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40260 break 2
40261 fi
40262done
40263done
40264
40265 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40266fi
40267fi
40268SETFILE=$ac_cv_prog_SETFILE
40269if test -n "$SETFILE"; then
40270 echo "$as_me:$LINENO: result: $SETFILE" >&5
40271echo "${ECHO_T}$SETFILE" >&6
40272else
40273 echo "$as_me:$LINENO: result: no" >&5
40274echo "${ECHO_T}no" >&6
40275fi
40276
40277 ;;
40278 esac
40279
40280
40281
40282
40283
2057db16 40284 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 40285
dcc1b6ad 40286
9f45f08e 40287BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 40288
646b6ec1 40289
74b84332 40290
a848cd7e
SC
40291 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40292if test "${enable_precomp_headers+set}" = set; then
40293 enableval="$enable_precomp_headers"
40294 bk_use_pch="$enableval"
40295fi;
40296
40297 GCC_PCH=0
40298
40299 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40300 if test "x$GCC" = "xyes"; then
40301 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40302echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40303 cat >conftest.$ac_ext <<_ACEOF
40304/* confdefs.h. */
40305_ACEOF
40306cat confdefs.h >>conftest.$ac_ext
40307cat >>conftest.$ac_ext <<_ACEOF
40308/* end confdefs.h. */
40309
40310int
40311main ()
40312{
40313
40314 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40315 #error "no pch support"
40316 #endif
40317 #if (__GNUC__ < 3)
40318 #error "no pch support"
40319 #endif
40320 #if (__GNUC__ == 3) && \
40321 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40322 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40323 #error "no pch support"
40324 #endif
40325
40326 ;
40327 return 0;
40328}
40329_ACEOF
40330rm -f conftest.$ac_objext
40331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40332 (eval $ac_compile) 2>conftest.er1
a848cd7e 40333 ac_status=$?
ac1cb8d3
VS
40334 grep -v '^ *+' conftest.er1 >conftest.err
40335 rm -f conftest.er1
40336 cat conftest.err >&5
a848cd7e
SC
40337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338 (exit $ac_status); } &&
5f652d0d
VS
40339 { ac_try='test -z "$ac_c_werror_flag"
40340 || test ! -s conftest.err'
ac1cb8d3
VS
40341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40342 (eval $ac_try) 2>&5
40343 ac_status=$?
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); }; } &&
40346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40348 (eval $ac_try) 2>&5
40349 ac_status=$?
40350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40351 (exit $ac_status); }; }; then
40352
40353 echo "$as_me:$LINENO: result: yes" >&5
40354echo "${ECHO_T}yes" >&6
a848cd7e
SC
40355 GCC_PCH=1
40356
40357else
40358 echo "$as_me: failed program was:" >&5
40359sed 's/^/| /' conftest.$ac_ext >&5
40360
40361
40362 echo "$as_me:$LINENO: result: no" >&5
40363echo "${ECHO_T}no" >&6
40364
40365fi
ac1cb8d3 40366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40367 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40368
40369D='$'
40370cat <<EOF >bk-make-pch
a848cd7e
SC
40371#!/bin/sh
40372
40373# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40374# script. It is used to generated precompiled headers.
40375#
40376# Permission is given to use this file in any way.
40377
1e9e8aba
DE
40378outfile="${D}{1}"
40379header="${D}{2}"
a848cd7e
SC
40380shift
40381shift
40382
40383compiler=
40384headerfile=
1e9e8aba
DE
40385while test ${D}{#} -gt 0; do
40386 case "${D}{1}" in
a848cd7e 40387 -I* )
1e9e8aba
DE
40388 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40389 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40390 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40391 fi
40392 ;;
40393 esac
1e9e8aba 40394 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40395 shift
40396done
40397
1e9e8aba
DE
40398if test "x${D}{headerfile}" = "x" ; then
40399 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40400else
1e9e8aba
DE
40401 if test -f ${D}{outfile} ; then
40402 rm -f ${D}{outfile}
a848cd7e 40403 else
1e9e8aba 40404 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40405 fi
1e9e8aba 40406 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40407 mkdir -p .deps
40408 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40409 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40410 exit ${D}{?}
a848cd7e
SC
40411fi
40412EOF
1e9e8aba 40413
a848cd7e
SC
40414 chmod +x bk-make-pch
40415 fi
40416 fi
40417 fi
40418
40419
40420
40421
40422
dcc1b6ad
VS
40423
40424
40425 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40426if test "${enable_precomp_headers+set}" = set; then
40427 enableval="$enable_precomp_headers"
40428 bk_use_pch="$enableval"
40429fi;
40430
40431 GCC_PCH=0
40432
40433 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40434 if test "x$GCC" = "xyes"; then
40435 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40436echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40437 cat >conftest.$ac_ext <<_ACEOF
40438/* confdefs.h. */
40439_ACEOF
40440cat confdefs.h >>conftest.$ac_ext
40441cat >>conftest.$ac_ext <<_ACEOF
40442/* end confdefs.h. */
40443
40444int
40445main ()
40446{
40447
40448 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40449 #error "no pch support"
40450 #endif
40451 #if (__GNUC__ < 3)
40452 #error "no pch support"
40453 #endif
40454 #if (__GNUC__ == 3) && \
40455 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40456 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40457 #error "no pch support"
40458 #endif
40459
40460 ;
40461 return 0;
40462}
40463_ACEOF
40464rm -f conftest.$ac_objext
40465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40466 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 40467 ac_status=$?
ac1cb8d3
VS
40468 grep -v '^ *+' conftest.er1 >conftest.err
40469 rm -f conftest.er1
40470 cat conftest.err >&5
dcc1b6ad
VS
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); } &&
5f652d0d
VS
40473 { ac_try='test -z "$ac_c_werror_flag"
40474 || test ! -s conftest.err'
ac1cb8d3
VS
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40477 ac_status=$?
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; } &&
40480 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40483 ac_status=$?
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; }; then
40486
40487 echo "$as_me:$LINENO: result: yes" >&5
40488echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
40489 GCC_PCH=1
40490
40491else
40492 echo "$as_me: failed program was:" >&5
40493sed 's/^/| /' conftest.$ac_ext >&5
40494
40495
40496 echo "$as_me:$LINENO: result: no" >&5
40497echo "${ECHO_T}no" >&6
40498
40499fi
ac1cb8d3 40500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad 40501 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40502
40503D='$'
40504cat <<EOF >bk-make-pch
dcc1b6ad
VS
40505#!/bin/sh
40506
40507# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40508# script. It is used to generated precompiled headers.
40509#
40510# Permission is given to use this file in any way.
40511
1e9e8aba
DE
40512outfile="${D}{1}"
40513header="${D}{2}"
dcc1b6ad
VS
40514shift
40515shift
40516
40517compiler=
40518headerfile=
1e9e8aba
DE
40519while test ${D}{#} -gt 0; do
40520 case "${D}{1}" in
dcc1b6ad 40521 -I* )
1e9e8aba
DE
40522 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40523 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40524 headerfile="${D}{incdir}/${D}{header}"
dcc1b6ad
VS
40525 fi
40526 ;;
40527 esac
1e9e8aba 40528 compiler="${D}{compiler} ${D}{1}"
dcc1b6ad
VS
40529 shift
40530done
40531
1e9e8aba
DE
40532if test "x${D}{headerfile}" = "x" ; then
40533 echo "error: can't find header ${D}{header} in include paths" >2
dcc1b6ad 40534else
1e9e8aba
DE
40535 if test -f ${D}{outfile} ; then
40536 rm -f ${D}{outfile}
dcc1b6ad 40537 else
1e9e8aba 40538 mkdir -p \`dirname ${D}{outfile}\`
dcc1b6ad 40539 fi
1e9e8aba 40540 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
dcc1b6ad
VS
40541 mkdir -p .deps
40542 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40543 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40544 exit ${D}{?}
dcc1b6ad
VS
40545fi
40546EOF
1e9e8aba 40547
dcc1b6ad
VS
40548 chmod +x bk-make-pch
40549 fi
40550 fi
40551 fi
40552
40553
40554
a848cd7e
SC
40555 COND_BUILD_DEBUG="#"
40556 if test "x$BUILD" = "xdebug" ; then
40557 COND_BUILD_DEBUG=""
40558 fi
40559
40560 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40561 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40562 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40563 fi
40564
40565 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40566 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40567 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40568 fi
40569
40570 COND_BUILD_DEBUG_UNICODE_0="#"
40571 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40572 COND_BUILD_DEBUG_UNICODE_0=""
40573 fi
40574
40575 COND_BUILD_DEBUG_UNICODE_1="#"
40576 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40577 COND_BUILD_DEBUG_UNICODE_1=""
40578 fi
40579
40580 COND_BUILD_RELEASE="#"
40581 if test "x$BUILD" = "xrelease" ; then
40582 COND_BUILD_RELEASE=""
40583 fi
40584
40585 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40586 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40587 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40588 fi
40589
40590 COND_BUILD_RELEASE_UNICODE_0="#"
40591 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40592 COND_BUILD_RELEASE_UNICODE_0=""
40593 fi
40594
40595 COND_BUILD_RELEASE_UNICODE_1="#"
40596 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40597 COND_BUILD_RELEASE_UNICODE_1=""
40598 fi
40599
40600 COND_DEBUG_FLAG_1="#"
40601 if test "x$DEBUG_FLAG" = "x1" ; then
40602 COND_DEBUG_FLAG_1=""
40603 fi
40604
40605 COND_DEBUG_INFO_0="#"
40606 if test "x$DEBUG_INFO" = "x0" ; then
40607 COND_DEBUG_INFO_0=""
40608 fi
40609
40610 COND_DEBUG_INFO_1="#"
40611 if test "x$DEBUG_INFO" = "x1" ; then
40612 COND_DEBUG_INFO_1=""
40613 fi
40614
40615 COND_DEPS_TRACKING_0="#"
40616 if test "x$DEPS_TRACKING" = "x0" ; then
40617 COND_DEPS_TRACKING_0=""
40618 fi
40619
40620 COND_DEPS_TRACKING_1="#"
40621 if test "x$DEPS_TRACKING" = "x1" ; then
40622 COND_DEPS_TRACKING_1=""
40623 fi
40624
40625 COND_GCC_PCH_1="#"
40626 if test "x$GCC_PCH" = "x1" ; then
40627 COND_GCC_PCH_1=""
40628 fi
40629
40630 COND_MONOLITHIC_0="#"
40631 if test "x$MONOLITHIC" = "x0" ; then
40632 COND_MONOLITHIC_0=""
40633 fi
40634
40635 COND_MONOLITHIC_0_SHARED_0="#"
40636 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40637 COND_MONOLITHIC_0_SHARED_0=""
40638 fi
40639
40640 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40641 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40642 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40643 fi
40644
40645 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40646 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40647 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40648 fi
40649
40650 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40651 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40652 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40653 fi
40654
40655 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40656 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40657 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40658 fi
40659
ceec2216
RL
40660 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40661 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40662 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40663 fi
40664
a848cd7e
SC
40665 COND_MONOLITHIC_0_SHARED_1="#"
40666 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40667 COND_MONOLITHIC_0_SHARED_1=""
40668 fi
40669
40670 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40671 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40672 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40673 fi
40674
40675 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40676 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40677 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40678 fi
40679
40680 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40681 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40682 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40683 fi
40684
40685 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40686 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40687 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40688 fi
40689
ceec2216
RL
40690 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40691 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40692 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40693 fi
40694
a848cd7e
SC
40695 COND_MONOLITHIC_0_USE_ODBC_1="#"
40696 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40697 COND_MONOLITHIC_0_USE_ODBC_1=""
40698 fi
40699
40700 COND_MONOLITHIC_1="#"
40701 if test "x$MONOLITHIC" = "x1" ; then
40702 COND_MONOLITHIC_1=""
40703 fi
40704
40705 COND_MONOLITHIC_1_SHARED_0="#"
40706 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40707 COND_MONOLITHIC_1_SHARED_0=""
40708 fi
40709
40710 COND_MONOLITHIC_1_SHARED_1="#"
40711 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40712 COND_MONOLITHIC_1_SHARED_1=""
40713 fi
40714
40715 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40716 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40717 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40718 fi
40719
40720 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40721 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40722 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40723 fi
40724
40725 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40726 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40727 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40728 fi
40729
40730 COND_PLATFORM_MACOSX_1="#"
40731 if test "x$PLATFORM_MACOSX" = "x1" ; then
40732 COND_PLATFORM_MACOSX_1=""
40733 fi
40734
a30f955f
VS
40735 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
40736 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
40737 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
40738 fi
40739
a848cd7e
SC
40740 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40741 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40742 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40743 fi
40744
40745 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40746 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40747 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40748 fi
40749
40750 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40751 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40752 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40753 fi
40754
fc480dc1
DE
40755 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
40756 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40757 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
40758 fi
40759
1e9e8aba
DE
40760 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40761 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40762 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40763 fi
40764
ebee3cd0
VS
40765 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40766 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40767 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40768 fi
40769
40770 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40771 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40772 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40773 fi
40774
a848cd7e
SC
40775 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40776 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40777 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40778 fi
40779
40780 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40781 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40782 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40783 fi
40784
b48a2016
DE
40785 COND_PLATFORM_MACOS_1="#"
40786 if test "x$PLATFORM_MACOS" = "x1" ; then
40787 COND_PLATFORM_MACOS_1=""
40788 fi
40789
a848cd7e
SC
40790 COND_PLATFORM_MAC_1="#"
40791 if test "x$PLATFORM_MAC" = "x1" ; then
40792 COND_PLATFORM_MAC_1=""
40793 fi
40794
40795 COND_PLATFORM_OS2_1="#"
40796 if test "x$PLATFORM_OS2" = "x1" ; then
40797 COND_PLATFORM_OS2_1=""
40798 fi
40799
40800 COND_PLATFORM_UNIX_0="#"
40801 if test "x$PLATFORM_UNIX" = "x0" ; then
40802 COND_PLATFORM_UNIX_0=""
40803 fi
40804
40805 COND_PLATFORM_UNIX_1="#"
40806 if test "x$PLATFORM_UNIX" = "x1" ; then
40807 COND_PLATFORM_UNIX_1=""
40808 fi
40809
40810 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40811 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40812 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40813 fi
40814
40815 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40816 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40817 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40818 fi
40819
40820 COND_PLATFORM_WIN32_0="#"
40821 if test "x$PLATFORM_WIN32" = "x0" ; then
40822 COND_PLATFORM_WIN32_0=""
40823 fi
40824
40825 COND_PLATFORM_WIN32_1="#"
40826 if test "x$PLATFORM_WIN32" = "x1" ; then
40827 COND_PLATFORM_WIN32_1=""
40828 fi
40829
40830 COND_SHARED_0="#"
40831 if test "x$SHARED" = "x0" ; then
40832 COND_SHARED_0=""
40833 fi
40834
ceec2216
RL
40835 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40836 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40837 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40838 fi
40839
40840 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40841 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40842 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40843 fi
40844
40845 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40846 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40847 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40848 fi
40849
a848cd7e
SC
40850 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40851 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40852 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40853 fi
40854
40855 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40856 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40857 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40858 fi
40859
40860 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40861 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40862 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40863 fi
40864
40865 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40866 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40867 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40868 fi
40869
40870 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40871 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40872 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40873 fi
40874
40875 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40876 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40877 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40878 fi
40879
40880 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40881 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40882 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40883 fi
40884
40885 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40886 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40887 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40888 fi
40889
40890 COND_SHARED_1="#"
40891 if test "x$SHARED" = "x1" ; then
40892 COND_SHARED_1=""
40893 fi
40894
40895 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40896 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40897 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40898 fi
40899
a30f955f
VS
40900 COND_TOOLKIT_="#"
40901 if test "x$TOOLKIT" = "x" ; then
40902 COND_TOOLKIT_=""
40903 fi
40904
a848cd7e
SC
40905 COND_TOOLKIT_COCOA="#"
40906 if test "x$TOOLKIT" = "xCOCOA" ; then
40907 COND_TOOLKIT_COCOA=""
40908 fi
40909
a49baeab
DE
40910 COND_TOOLKIT_COCOA_USE_GUI_1="#"
40911 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
40912 COND_TOOLKIT_COCOA_USE_GUI_1=""
40913 fi
40914
a848cd7e
SC
40915 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40916 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40917 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40918 fi
40919
40920 COND_TOOLKIT_GTK="#"
40921 if test "x$TOOLKIT" = "xGTK" ; then
40922 COND_TOOLKIT_GTK=""
40923 fi
40924
40925 COND_TOOLKIT_GTK_USE_GUI_1="#"
40926 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40927 COND_TOOLKIT_GTK_USE_GUI_1=""
40928 fi
40929
40930 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40931 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40932 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40933 fi
40934
40935 COND_TOOLKIT_MAC="#"
40936 if test "x$TOOLKIT" = "xMAC" ; then
40937 COND_TOOLKIT_MAC=""
40938 fi
40939
40940 COND_TOOLKIT_MAC_USE_GUI_1="#"
40941 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40942 COND_TOOLKIT_MAC_USE_GUI_1=""
40943 fi
40944
40945 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40946 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40947 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40948 fi
40949
40950 COND_TOOLKIT_MGL="#"
40951 if test "x$TOOLKIT" = "xMGL" ; then
40952 COND_TOOLKIT_MGL=""
40953 fi
40954
40955 COND_TOOLKIT_MGL_USE_GUI_1="#"
40956 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40957 COND_TOOLKIT_MGL_USE_GUI_1=""
40958 fi
40959
40960 COND_TOOLKIT_MOTIF="#"
40961 if test "x$TOOLKIT" = "xMOTIF" ; then
40962 COND_TOOLKIT_MOTIF=""
40963 fi
40964
40965 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40966 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40967 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40968 fi
40969
40970 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40971 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40972 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40973 fi
40974
40975 COND_TOOLKIT_MSW="#"
40976 if test "x$TOOLKIT" = "xMSW" ; then
40977 COND_TOOLKIT_MSW=""
40978 fi
40979
40980 COND_TOOLKIT_MSW_USE_GUI_1="#"
40981 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40982 COND_TOOLKIT_MSW_USE_GUI_1=""
40983 fi
40984
40985 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40986 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40987 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40988 fi
40989
40990 COND_TOOLKIT_PM="#"
40991 if test "x$TOOLKIT" = "xPM" ; then
40992 COND_TOOLKIT_PM=""
40993 fi
40994
40995 COND_TOOLKIT_PM_USE_GUI_1="#"
40996 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40997 COND_TOOLKIT_PM_USE_GUI_1=""
40998 fi
40999
41000 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41001 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41002 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41003 fi
41004
3fd9c298
DE
41005 COND_TOOLKIT_WINCE="#"
41006 if test "x$TOOLKIT" = "xWINCE" ; then
41007 COND_TOOLKIT_WINCE=""
41008 fi
41009
41010 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41011 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41012 COND_TOOLKIT_WINCE_USE_GUI_1=""
41013 fi
41014
41015 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41016 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41017 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41018 fi
41019
a848cd7e
SC
41020 COND_TOOLKIT_X11="#"
41021 if test "x$TOOLKIT" = "xX11" ; then
41022 COND_TOOLKIT_X11=""
41023 fi
41024
41025 COND_TOOLKIT_X11_USE_GUI_1="#"
41026 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41027 COND_TOOLKIT_X11_USE_GUI_1=""
41028 fi
41029
41030 COND_UNICODE_1="#"
41031 if test "x$UNICODE" = "x1" ; then
41032 COND_UNICODE_1=""
41033 fi
41034
41035 COND_USE_EXCEPTIONS_0="#"
41036 if test "x$USE_EXCEPTIONS" = "x0" ; then
41037 COND_USE_EXCEPTIONS_0=""
41038 fi
41039
41040 COND_USE_EXCEPTIONS_1="#"
41041 if test "x$USE_EXCEPTIONS" = "x1" ; then
41042 COND_USE_EXCEPTIONS_1=""
41043 fi
41044
41045 COND_USE_GUI_0="#"
41046 if test "x$USE_GUI" = "x0" ; then
41047 COND_USE_GUI_0=""
41048 fi
41049
41050 COND_USE_GUI_1="#"
41051 if test "x$USE_GUI" = "x1" ; then
41052 COND_USE_GUI_1=""
41053 fi
41054
41055 COND_USE_GUI_1_WXUNIV_0="#"
41056 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41057 COND_USE_GUI_1_WXUNIV_0=""
41058 fi
41059
41060 COND_USE_GUI_1_WXUNIV_1="#"
41061 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41062 COND_USE_GUI_1_WXUNIV_1=""
41063 fi
41064
41065 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41066 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41067 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41068 fi
41069
41070 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41071 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41072 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41073 fi
41074
41075 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41076 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41077 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41078 fi
41079
ceec2216
RL
41080 COND_USE_ODBC_1="#"
41081 if test "x$USE_ODBC" = "x1" ; then
41082 COND_USE_ODBC_1=""
41083 fi
41084
ffa0583f
RL
41085 COND_USE_OPENGL_1="#"
41086 if test "x$USE_OPENGL" = "x1" ; then
41087 COND_USE_OPENGL_1=""
41088 fi
41089
a848cd7e
SC
41090 COND_USE_PLUGINS_0="#"
41091 if test "x$USE_PLUGINS" = "x0" ; then
41092 COND_USE_PLUGINS_0=""
41093 fi
41094
41095 COND_USE_SOSYMLINKS_1="#"
41096 if test "x$USE_SOSYMLINKS" = "x1" ; then
41097 COND_USE_SOSYMLINKS_1=""
41098 fi
41099
41100 COND_USE_SOVERLINUX_1="#"
41101 if test "x$USE_SOVERLINUX" = "x1" ; then
41102 COND_USE_SOVERLINUX_1=""
41103 fi
41104
41105 COND_USE_SOVERSION_0="#"
41106 if test "x$USE_SOVERSION" = "x0" ; then
41107 COND_USE_SOVERSION_0=""
41108 fi
41109
41110 COND_USE_SOVERSOLARIS_1="#"
41111 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41112 COND_USE_SOVERSOLARIS_1=""
41113 fi
41114
a13a7f89
RL
41115 COND_USE_XRC_1="#"
41116 if test "x$USE_XRC" = "x1" ; then
41117 COND_USE_XRC_1=""
41118 fi
41119
a848cd7e
SC
41120 COND_WITH_PLUGIN_SDL_1="#"
41121 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41122 COND_WITH_PLUGIN_SDL_1=""
41123 fi
41124
a848cd7e
SC
41125 COND_WXUNIV_1="#"
41126 if test "x$WXUNIV" = "x1" ; then
41127 COND_WXUNIV_1=""
41128 fi
41129
41130 COND_WXUSE_EXPAT_BUILTIN="#"
41131 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41132 COND_WXUSE_EXPAT_BUILTIN=""
41133 fi
41134
41135 COND_WXUSE_LIBJPEG_BUILTIN="#"
41136 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41137 COND_WXUSE_LIBJPEG_BUILTIN=""
41138 fi
41139
41140 COND_WXUSE_LIBPNG_BUILTIN="#"
41141 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41142 COND_WXUSE_LIBPNG_BUILTIN=""
41143 fi
41144
41145 COND_WXUSE_LIBTIFF_BUILTIN="#"
41146 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41147 COND_WXUSE_LIBTIFF_BUILTIN=""
41148 fi
41149
41150 COND_WXUSE_ODBC_BUILTIN="#"
41151 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41152 COND_WXUSE_ODBC_BUILTIN=""
41153 fi
41154
41155 COND_WXUSE_REGEX_BUILTIN="#"
41156 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41157 COND_WXUSE_REGEX_BUILTIN=""
41158 fi
41159
41160 COND_WXUSE_ZLIB_BUILTIN="#"
41161 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41162 COND_WXUSE_ZLIB_BUILTIN=""
41163 fi
41164
dcc1b6ad
VS
41165 COND_BUILD_DEBUG="#"
41166 if test "x$BUILD" = "xdebug" ; then
41167 COND_BUILD_DEBUG=""
41168 fi
41169
41170 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
41171 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
41172 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
41173 fi
41174
41175 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
41176 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
41177 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
41178 fi
41179
41180 COND_BUILD_DEBUG_UNICODE_0="#"
41181 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
41182 COND_BUILD_DEBUG_UNICODE_0=""
41183 fi
41184
41185 COND_BUILD_DEBUG_UNICODE_1="#"
41186 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
41187 COND_BUILD_DEBUG_UNICODE_1=""
41188 fi
41189
41190 COND_BUILD_RELEASE="#"
41191 if test "x$BUILD" = "xrelease" ; then
41192 COND_BUILD_RELEASE=""
41193 fi
41194
41195 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
41196 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
41197 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
41198 fi
41199
41200 COND_BUILD_RELEASE_UNICODE_0="#"
41201 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
41202 COND_BUILD_RELEASE_UNICODE_0=""
41203 fi
41204
41205 COND_BUILD_RELEASE_UNICODE_1="#"
41206 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
41207 COND_BUILD_RELEASE_UNICODE_1=""
41208 fi
41209
41210 COND_DEBUG_FLAG_1="#"
41211 if test "x$DEBUG_FLAG" = "x1" ; then
41212 COND_DEBUG_FLAG_1=""
41213 fi
41214
41215 COND_DEBUG_INFO_0="#"
41216 if test "x$DEBUG_INFO" = "x0" ; then
41217 COND_DEBUG_INFO_0=""
41218 fi
41219
41220 COND_DEBUG_INFO_1="#"
41221 if test "x$DEBUG_INFO" = "x1" ; then
41222 COND_DEBUG_INFO_1=""
41223 fi
41224
41225 COND_DEPS_TRACKING_0="#"
41226 if test "x$DEPS_TRACKING" = "x0" ; then
41227 COND_DEPS_TRACKING_0=""
41228 fi
41229
41230 COND_DEPS_TRACKING_1="#"
41231 if test "x$DEPS_TRACKING" = "x1" ; then
41232 COND_DEPS_TRACKING_1=""
41233 fi
41234
41235 COND_GCC_PCH_1="#"
41236 if test "x$GCC_PCH" = "x1" ; then
41237 COND_GCC_PCH_1=""
41238 fi
41239
41240 COND_MONOLITHIC_0="#"
41241 if test "x$MONOLITHIC" = "x0" ; then
41242 COND_MONOLITHIC_0=""
41243 fi
41244
41245 COND_MONOLITHIC_0_SHARED_0="#"
41246 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
41247 COND_MONOLITHIC_0_SHARED_0=""
41248 fi
41249
41250 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
41251 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
41252 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
41253 fi
41254
6ab3c239
VZ
41255 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
41256 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41257 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
41258 fi
41259
dcc1b6ad
VS
41260 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
41261 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41262 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
41263 fi
41264
41265 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
41266 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
41267 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
41268 fi
41269
41270 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
41271 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
41272 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
41273 fi
41274
9a8f0513
VS
41275 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
41276 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
41277 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
41278 fi
41279
dcc1b6ad
VS
41280 COND_MONOLITHIC_0_SHARED_1="#"
41281 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
41282 COND_MONOLITHIC_0_SHARED_1=""
41283 fi
41284
41285 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
41286 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
41287 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
41288 fi
41289
6ab3c239
VZ
41290 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
41291 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
41292 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
41293 fi
41294
dcc1b6ad
VS
41295 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
41296 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
41297 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
41298 fi
41299
41300 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
41301 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
41302 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
41303 fi
41304
41305 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
41306 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
41307 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
41308 fi
41309
9a8f0513
VS
41310 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
41311 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
41312 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
41313 fi
41314
dcc1b6ad
VS
41315 COND_MONOLITHIC_0_USE_ODBC_1="#"
41316 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
41317 COND_MONOLITHIC_0_USE_ODBC_1=""
41318 fi
41319
41320 COND_MONOLITHIC_1="#"
41321 if test "x$MONOLITHIC" = "x1" ; then
41322 COND_MONOLITHIC_1=""
41323 fi
41324
41325 COND_MONOLITHIC_1_SHARED_0="#"
41326 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
41327 COND_MONOLITHIC_1_SHARED_0=""
41328 fi
41329
41330 COND_MONOLITHIC_1_SHARED_1="#"
41331 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
41332 COND_MONOLITHIC_1_SHARED_1=""
41333 fi
41334
41335 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
41336 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
41337 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
41338 fi
41339
41340 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41341 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41342 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41343 fi
41344
41345 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41346 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41347 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41348 fi
41349
41350 COND_PLATFORM_MACOSX_1="#"
41351 if test "x$PLATFORM_MACOSX" = "x1" ; then
41352 COND_PLATFORM_MACOSX_1=""
41353 fi
41354
6ab3c239
VZ
41355 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41356 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41357 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41358 fi
41359
dcc1b6ad
VS
41360 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41361 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41362 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41363 fi
41364
41365 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41366 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41367 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41368 fi
41369
41370 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41371 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41372 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41373 fi
41374
6ab3c239
VZ
41375 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41376 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41377 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41378 fi
41379
41380 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41381 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41382 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41383 fi
41384
9a8f0513
VS
41385 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41386 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41387 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41388 fi
41389
41390 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41391 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41392 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41393 fi
41394
dcc1b6ad
VS
41395 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41396 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41397 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41398 fi
41399
41400 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41401 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41402 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41403 fi
41404
6ab3c239
VZ
41405 COND_PLATFORM_MACOS_1="#"
41406 if test "x$PLATFORM_MACOS" = "x1" ; then
41407 COND_PLATFORM_MACOS_1=""
41408 fi
41409
dcc1b6ad
VS
41410 COND_PLATFORM_MAC_1="#"
41411 if test "x$PLATFORM_MAC" = "x1" ; then
41412 COND_PLATFORM_MAC_1=""
41413 fi
41414
41415 COND_PLATFORM_OS2_1="#"
41416 if test "x$PLATFORM_OS2" = "x1" ; then
41417 COND_PLATFORM_OS2_1=""
41418 fi
41419
41420 COND_PLATFORM_UNIX_0="#"
41421 if test "x$PLATFORM_UNIX" = "x0" ; then
41422 COND_PLATFORM_UNIX_0=""
41423 fi
41424
41425 COND_PLATFORM_UNIX_1="#"
41426 if test "x$PLATFORM_UNIX" = "x1" ; then
41427 COND_PLATFORM_UNIX_1=""
41428 fi
41429
41430 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41431 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41432 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41433 fi
41434
41435 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41436 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41437 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41438 fi
41439
41440 COND_PLATFORM_WIN32_0="#"
41441 if test "x$PLATFORM_WIN32" = "x0" ; then
41442 COND_PLATFORM_WIN32_0=""
41443 fi
41444
41445 COND_PLATFORM_WIN32_1="#"
41446 if test "x$PLATFORM_WIN32" = "x1" ; then
41447 COND_PLATFORM_WIN32_1=""
41448 fi
41449
41450 COND_SHARED_0="#"
41451 if test "x$SHARED" = "x0" ; then
41452 COND_SHARED_0=""
41453 fi
41454
41455 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41456 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41457 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41458 fi
41459
41460 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41461 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41462 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41463 fi
41464
41465 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41466 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41467 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41468 fi
41469
41470 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41471 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41472 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41473 fi
41474
41475 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41476 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41477 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41478 fi
41479
41480 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41481 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41482 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41483 fi
41484
41485 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41486 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41487 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41488 fi
41489
41490 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41491 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41492 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41493 fi
41494
41495 COND_SHARED_1="#"
41496 if test "x$SHARED" = "x1" ; then
41497 COND_SHARED_1=""
41498 fi
41499
41500 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41501 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41502 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41503 fi
41504
6ab3c239
VZ
41505 COND_TOOLKIT_="#"
41506 if test "x$TOOLKIT" = "x" ; then
41507 COND_TOOLKIT_=""
41508 fi
41509
dcc1b6ad
VS
41510 COND_TOOLKIT_COCOA="#"
41511 if test "x$TOOLKIT" = "xCOCOA" ; then
41512 COND_TOOLKIT_COCOA=""
41513 fi
41514
6ab3c239
VZ
41515 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41516 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41517 COND_TOOLKIT_COCOA_USE_GUI_1=""
41518 fi
41519
dcc1b6ad
VS
41520 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41521 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41522 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41523 fi
41524
41525 COND_TOOLKIT_GTK="#"
41526 if test "x$TOOLKIT" = "xGTK" ; then
41527 COND_TOOLKIT_GTK=""
41528 fi
41529
41530 COND_TOOLKIT_GTK_USE_GUI_1="#"
41531 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41532 COND_TOOLKIT_GTK_USE_GUI_1=""
41533 fi
41534
41535 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41536 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41537 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41538 fi
41539
41540 COND_TOOLKIT_MAC="#"
41541 if test "x$TOOLKIT" = "xMAC" ; then
41542 COND_TOOLKIT_MAC=""
41543 fi
41544
41545 COND_TOOLKIT_MAC_USE_GUI_1="#"
41546 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41547 COND_TOOLKIT_MAC_USE_GUI_1=""
41548 fi
41549
41550 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41551 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41552 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41553 fi
41554
9a8f0513
VS
41555 COND_TOOLKIT_MAC_WXUNIV_0="#"
41556 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41557 COND_TOOLKIT_MAC_WXUNIV_0=""
41558 fi
41559
dcc1b6ad
VS
41560 COND_TOOLKIT_MGL="#"
41561 if test "x$TOOLKIT" = "xMGL" ; then
41562 COND_TOOLKIT_MGL=""
41563 fi
41564
41565 COND_TOOLKIT_MGL_USE_GUI_1="#"
41566 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41567 COND_TOOLKIT_MGL_USE_GUI_1=""
41568 fi
41569
41570 COND_TOOLKIT_MOTIF="#"
41571 if test "x$TOOLKIT" = "xMOTIF" ; then
41572 COND_TOOLKIT_MOTIF=""
41573 fi
41574
41575 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41576 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41577 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41578 fi
41579
41580 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41581 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41582 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41583 fi
41584
41585 COND_TOOLKIT_MSW="#"
41586 if test "x$TOOLKIT" = "xMSW" ; then
41587 COND_TOOLKIT_MSW=""
41588 fi
41589
41590 COND_TOOLKIT_MSW_USE_GUI_1="#"
41591 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41592 COND_TOOLKIT_MSW_USE_GUI_1=""
41593 fi
41594
41595 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41596 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41597 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41598 fi
41599
9a8f0513
VS
41600 COND_TOOLKIT_MSW_WXUNIV_0="#"
41601 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41602 COND_TOOLKIT_MSW_WXUNIV_0=""
41603 fi
41604
dcc1b6ad
VS
41605 COND_TOOLKIT_PM="#"
41606 if test "x$TOOLKIT" = "xPM" ; then
41607 COND_TOOLKIT_PM=""
41608 fi
41609
41610 COND_TOOLKIT_PM_USE_GUI_1="#"
41611 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41612 COND_TOOLKIT_PM_USE_GUI_1=""
41613 fi
41614
41615 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41616 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41617 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41618 fi
41619
9a8f0513
VS
41620 COND_TOOLKIT_PM_WXUNIV_0="#"
41621 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41622 COND_TOOLKIT_PM_WXUNIV_0=""
41623 fi
41624
dcc1b6ad
VS
41625 COND_TOOLKIT_WINCE="#"
41626 if test "x$TOOLKIT" = "xWINCE" ; then
41627 COND_TOOLKIT_WINCE=""
41628 fi
41629
41630 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41631 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41632 COND_TOOLKIT_WINCE_USE_GUI_1=""
41633 fi
41634
41635 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41636 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41637 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41638 fi
41639
41640 COND_TOOLKIT_X11="#"
41641 if test "x$TOOLKIT" = "xX11" ; then
41642 COND_TOOLKIT_X11=""
41643 fi
41644
41645 COND_TOOLKIT_X11_USE_GUI_1="#"
41646 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41647 COND_TOOLKIT_X11_USE_GUI_1=""
41648 fi
41649
41650 COND_UNICODE_1="#"
41651 if test "x$UNICODE" = "x1" ; then
41652 COND_UNICODE_1=""
41653 fi
41654
41655 COND_USE_EXCEPTIONS_0="#"
41656 if test "x$USE_EXCEPTIONS" = "x0" ; then
41657 COND_USE_EXCEPTIONS_0=""
41658 fi
41659
41660 COND_USE_EXCEPTIONS_1="#"
41661 if test "x$USE_EXCEPTIONS" = "x1" ; then
41662 COND_USE_EXCEPTIONS_1=""
41663 fi
41664
41665 COND_USE_GUI_0="#"
41666 if test "x$USE_GUI" = "x0" ; then
41667 COND_USE_GUI_0=""
41668 fi
41669
41670 COND_USE_GUI_1="#"
41671 if test "x$USE_GUI" = "x1" ; then
41672 COND_USE_GUI_1=""
41673 fi
41674
41675 COND_USE_GUI_1_WXUNIV_0="#"
41676 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41677 COND_USE_GUI_1_WXUNIV_0=""
41678 fi
41679
41680 COND_USE_GUI_1_WXUNIV_1="#"
41681 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41682 COND_USE_GUI_1_WXUNIV_1=""
41683 fi
41684
41685 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41686 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41687 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41688 fi
41689
41690 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41691 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41692 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41693 fi
41694
41695 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41696 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41697 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41698 fi
41699
41700 COND_USE_ODBC_1="#"
41701 if test "x$USE_ODBC" = "x1" ; then
41702 COND_USE_ODBC_1=""
41703 fi
41704
41705 COND_USE_PLUGINS_0="#"
41706 if test "x$USE_PLUGINS" = "x0" ; then
41707 COND_USE_PLUGINS_0=""
41708 fi
41709
41710 COND_USE_SOSYMLINKS_1="#"
41711 if test "x$USE_SOSYMLINKS" = "x1" ; then
41712 COND_USE_SOSYMLINKS_1=""
41713 fi
41714
41715 COND_USE_SOVERLINUX_1="#"
41716 if test "x$USE_SOVERLINUX" = "x1" ; then
41717 COND_USE_SOVERLINUX_1=""
41718 fi
41719
41720 COND_USE_SOVERSION_0="#"
41721 if test "x$USE_SOVERSION" = "x0" ; then
41722 COND_USE_SOVERSION_0=""
41723 fi
41724
41725 COND_USE_SOVERSOLARIS_1="#"
41726 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41727 COND_USE_SOVERSOLARIS_1=""
41728 fi
41729
6ab3c239
VZ
41730 COND_USE_XRC_1="#"
41731 if test "x$USE_XRC" = "x1" ; then
41732 COND_USE_XRC_1=""
41733 fi
41734
dcc1b6ad
VS
41735 COND_WITH_PLUGIN_SDL_1="#"
41736 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41737 COND_WITH_PLUGIN_SDL_1=""
41738 fi
41739
41740 COND_WXUNIV_1="#"
41741 if test "x$WXUNIV" = "x1" ; then
41742 COND_WXUNIV_1=""
41743 fi
41744
41745 COND_WXUSE_EXPAT_BUILTIN="#"
41746 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41747 COND_WXUSE_EXPAT_BUILTIN=""
41748 fi
41749
41750 COND_WXUSE_LIBJPEG_BUILTIN="#"
41751 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41752 COND_WXUSE_LIBJPEG_BUILTIN=""
41753 fi
41754
41755 COND_WXUSE_LIBPNG_BUILTIN="#"
41756 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41757 COND_WXUSE_LIBPNG_BUILTIN=""
41758 fi
41759
41760 COND_WXUSE_LIBTIFF_BUILTIN="#"
41761 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41762 COND_WXUSE_LIBTIFF_BUILTIN=""
41763 fi
41764
41765 COND_WXUSE_ODBC_BUILTIN="#"
41766 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41767 COND_WXUSE_ODBC_BUILTIN=""
41768 fi
41769
41770 COND_WXUSE_REGEX_BUILTIN="#"
41771 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41772 COND_WXUSE_REGEX_BUILTIN=""
41773 fi
41774
41775 COND_WXUSE_ZLIB_BUILTIN="#"
41776 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41777 COND_WXUSE_ZLIB_BUILTIN=""
41778 fi
41779
a848cd7e
SC
41780
41781
2057db16
VS
41782 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41783 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
41784echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
41785 { (exit 1); exit 1; }; }
41786 fi
41787
a848cd7e 41788
ceec2216
RL
41789if test "$wxUSE_SHARED" = "yes"; then
41790
41791 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41792 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41793
41794else
41795
41796 EXE_LINKER="$CXX -o"
41797
41798fi
a848cd7e 41799
74b84332 41800GCC_PRAGMA_FLAGS=""
a848cd7e 41801if test $GCC_PCH = 1 ; then
74b84332 41802 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
41803else
41804 case "${host}" in
41805 powerpc-*-darwin* )
74b84332 41806 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41807 ;;
bea8e651 41808 *-*-mingw32* )
1f344abf
VS
41809 if test "$wxUSE_STL" = "yes" -o \
41810 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41811 "$wxUSE_NO_RTTI" != "yes"; then
41812 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41813echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41814 cat >conftest.$ac_ext <<_ACEOF
41815/* confdefs.h. */
41816_ACEOF
41817cat confdefs.h >>conftest.$ac_ext
41818cat >>conftest.$ac_ext <<_ACEOF
41819/* end confdefs.h. */
41820
3314e67b
RR
41821int
41822main ()
41823{
41824#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41825 #error "Not GCC 3.2 or greater"
41826 #endif
41827
41828 ;
41829 return 0;
41830}
41831_ACEOF
41832rm -f conftest.$ac_objext
41833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41834 (eval $ac_compile) 2>conftest.er1
41835 ac_status=$?
41836 grep -v '^ *+' conftest.er1 >conftest.err
41837 rm -f conftest.er1
41838 cat conftest.err >&5
41839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41840 (exit $ac_status); } &&
41841 { ac_try='test -z "$ac_c_werror_flag"
41842 || test ! -s conftest.err'
41843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41844 (eval $ac_try) 2>&5
41845 ac_status=$?
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); }; } &&
41848 { ac_try='test -s conftest.$ac_objext'
41849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41850 (eval $ac_try) 2>&5
41851 ac_status=$?
41852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41853 (exit $ac_status); }; }; then
41854 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41855 echo "$as_me:$LINENO: result: yes" >&5
41856echo "${ECHO_T}yes" >&6
41857else
41858 echo "$as_me: failed program was:" >&5
41859sed 's/^/| /' conftest.$ac_ext >&5
41860
41861echo "$as_me:$LINENO: result: no" >&5
41862echo "${ECHO_T}no" >&6
41863fi
41864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41865 fi
41866 ;;
41867 *-pc-os2_emx | *-pc-os2-emx )
41868 if test "$wxUSE_STL" = "yes"; then
41869 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41870echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41871 cat >conftest.$ac_ext <<_ACEOF
41872/* confdefs.h. */
41873_ACEOF
41874cat confdefs.h >>conftest.$ac_ext
41875cat >>conftest.$ac_ext <<_ACEOF
41876/* end confdefs.h. */
41877
bea8e651
MB
41878int
41879main ()
41880{
1f344abf 41881#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41882 #error "Not GCC 3.2 or greater"
41883 #endif
41884
41885 ;
41886 return 0;
41887}
41888_ACEOF
41889rm -f conftest.$ac_objext
41890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41891 (eval $ac_compile) 2>conftest.er1
bea8e651 41892 ac_status=$?
ac1cb8d3
VS
41893 grep -v '^ *+' conftest.er1 >conftest.err
41894 rm -f conftest.er1
41895 cat conftest.err >&5
bea8e651
MB
41896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897 (exit $ac_status); } &&
5f652d0d
VS
41898 { ac_try='test -z "$ac_c_werror_flag"
41899 || test ! -s conftest.err'
ac1cb8d3
VS
41900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901 (eval $ac_try) 2>&5
41902 ac_status=$?
41903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904 (exit $ac_status); }; } &&
41905 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41907 (eval $ac_try) 2>&5
41908 ac_status=$?
41909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910 (exit $ac_status); }; }; then
74b84332 41911 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41912 echo "$as_me:$LINENO: result: yes" >&5
41913echo "${ECHO_T}yes" >&6
41914else
41915 echo "$as_me: failed program was:" >&5
41916sed 's/^/| /' conftest.$ac_ext >&5
41917
41918echo "$as_me:$LINENO: result: no" >&5
41919echo "${ECHO_T}no" >&6
41920fi
ac1cb8d3 41921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41922 fi
41923 ;;
a848cd7e
SC
41924 esac
41925fi
74b84332 41926CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41927
41928
41929SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
a848cd7e
SC
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
74b84332 41990
a848cd7e
SC
41991
41992
41993echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41994echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41995set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41996if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41997 echo $ECHO_N "(cached) $ECHO_C" >&6
41998else
41999 cat >conftest.make <<\_ACEOF
42000all:
42001 @echo 'ac_maketemp="$(MAKE)"'
42002_ACEOF
42003# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42004eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42005if test -n "$ac_maketemp"; then
42006 eval ac_cv_prog_make_${ac_make}_set=yes
42007else
42008 eval ac_cv_prog_make_${ac_make}_set=no
42009fi
42010rm -f conftest.make
42011fi
42012if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42013 echo "$as_me:$LINENO: result: yes" >&5
42014echo "${ECHO_T}yes" >&6
42015 SET_MAKE=
42016else
42017 echo "$as_me:$LINENO: result: no" >&5
42018echo "${ECHO_T}no" >&6
42019 SET_MAKE="MAKE=${MAKE-make}"
42020fi
42021
42022
a848cd7e 42023
ceec2216
RL
42024 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
42025
a848cd7e 42026
ceec2216 42027 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 42028
a848cd7e 42029
ceec2216 42030 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 42031
ceec2216
RL
42032
42033 ac_config_files="$ac_config_files version-script Makefile"
42034
42035
42036 ac_config_commands="$ac_config_commands wx-config
42037 "
a848cd7e
SC
42038
42039
9103d280
RL
42040
42041
a848cd7e
SC
42042if test "$wxUSE_GUI" = "yes"; then
42043 SUBDIRS="samples demos utils contrib"
42044else SUBDIRS="samples utils"
42045fi
42046
42047
42048
42049# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
42050if test "${with_cppunit_prefix+set}" = set; then
42051 withval="$with_cppunit_prefix"
42052 cppunit_config_prefix="$withval"
42053else
42054 cppunit_config_prefix=""
42055fi;
42056
42057# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
42058if test "${with_cppunit_exec_prefix+set}" = set; then
42059 withval="$with_cppunit_exec_prefix"
42060 cppunit_config_exec_prefix="$withval"
42061else
42062 cppunit_config_exec_prefix=""
42063fi;
42064
42065 if test x$cppunit_config_exec_prefix != x ; then
42066 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
42067 if test x${CPPUNIT_CONFIG+set} != xset ; then
42068 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
42069 fi
42070 fi
42071 if test x$cppunit_config_prefix != x ; then
42072 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
42073 if test x${CPPUNIT_CONFIG+set} != xset ; then
42074 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
42075 fi
42076 fi
42077
42078 # Extract the first word of "cppunit-config", so it can be a program name with args.
42079set dummy cppunit-config; ac_word=$2
42080echo "$as_me:$LINENO: checking for $ac_word" >&5
42081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42082if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
42083 echo $ECHO_N "(cached) $ECHO_C" >&6
42084else
42085 case $CPPUNIT_CONFIG in
42086 [\\/]* | ?:[\\/]*)
42087 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
42088 ;;
42089 *)
42090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42091for as_dir in $PATH
42092do
42093 IFS=$as_save_IFS
42094 test -z "$as_dir" && as_dir=.
42095 for ac_exec_ext in '' $ac_executable_extensions; do
42096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42097 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42099 break 2
42100 fi
42101done
42102done
42103
42104 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
42105 ;;
42106esac
42107fi
42108CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
42109
42110if test -n "$CPPUNIT_CONFIG"; then
42111 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
42112echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
42113else
42114 echo "$as_me:$LINENO: result: no" >&5
42115echo "${ECHO_T}no" >&6
42116fi
42117
42118 cppunit_version_min=1.8.0
42119
42120 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
42121echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
42122 no_cppunit=""
42123 if test "$CPPUNIT_CONFIG" = "no" ; then
42124 no_cppunit=yes
42125 else
42126 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
42127 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
42128 cppunit_version=`$CPPUNIT_CONFIG --version`
42129
42130 cppunit_major_version=`echo $cppunit_version | \
42131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42132 cppunit_minor_version=`echo $cppunit_version | \
42133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42134 cppunit_micro_version=`echo $cppunit_version | \
42135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42136
42137 cppunit_major_min=`echo $cppunit_version_min | \
42138 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42139 cppunit_minor_min=`echo $cppunit_version_min | \
42140 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42141 cppunit_micro_min=`echo $cppunit_version_min | \
42142 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42143
42144 cppunit_version_proper=`expr \
42145 $cppunit_major_version \> $cppunit_major_min \| \
42146 $cppunit_major_version \= $cppunit_major_min \& \
42147 $cppunit_minor_version \> $cppunit_minor_min \| \
42148 $cppunit_major_version \= $cppunit_major_min \& \
42149 $cppunit_minor_version \= $cppunit_minor_min \& \
42150 $cppunit_micro_version \>= $cppunit_micro_min `
42151
42152 if test "$cppunit_version_proper" = "1" ; then
42153 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
42154echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
42155 else
42156 echo "$as_me:$LINENO: result: no" >&5
42157echo "${ECHO_T}no" >&6
42158 no_cppunit=yes
42159 fi
42160 fi
42161
42162 if test "x$no_cppunit" = x ; then
c2218763 42163 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
42164 else
42165 CPPUNIT_CFLAGS=""
42166 CPPUNIT_LIBS=""
c2218763 42167 :
a848cd7e
SC
42168 fi
42169
42170
42171
42172
42173
42174for subdir in `echo $SUBDIRS`; do
42175 if test -d ${srcdir}/${subdir} ; then
42176 if test "$wxUSE_GUI" = "yes"; then
42177 if test ${subdir} = "samples"; then
42178 makefiles="samples/Makefile.in $makefiles"
42179 for sample in `echo $SAMPLES_SUBDIRS`; do
42180 if test -d $srcdir/samples/$sample; then
42181 makefiles="samples/$sample/Makefile.in $makefiles"
42182 fi
42183 done
42184 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42185 fi
42186 else if test ${subdir} = "samples"; then
42187 makefiles="samples/Makefile.in samples/console/Makefile.in"
42188 elif test ${subdir} = "utils"; then
6537ccf8
VS
42189 makefiles=""
42190 for util in HelpGen tex2rtf ; do
42191 if test -d $srcdir/utils/$util ; then
42192 makefiles="utils/$util/Makefile.in \
42193 utils/$util/src/Makefile.in \
42194 $makefiles"
42195 fi
42196 done
a848cd7e
SC
42197 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
42198 fi
42199 fi
42200
42201 for mkin in $makefiles ; do
42202 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
42203 ac_config_files="$ac_config_files $mk"
42204
42205 done
42206 fi
42207done
42208
42209
42210cat >confcache <<\_ACEOF
42211# This file is a shell script that caches the results of configure
42212# tests run on this system so they can be shared between configure
42213# scripts and configure runs, see configure's option --config-cache.
42214# It is not useful on other systems. If it contains results you don't
42215# want to keep, you may remove or edit it.
42216#
42217# config.status only pays attention to the cache file if you give it
42218# the --recheck option to rerun configure.
42219#
42220# `ac_cv_env_foo' variables (set or unset) will be overridden when
42221# loading this file, other *unset* `ac_cv_foo' will be assigned the
42222# following values.
42223
42224_ACEOF
42225
42226# The following way of writing the cache mishandles newlines in values,
42227# but we know of no workaround that is simple, portable, and efficient.
42228# So, don't put newlines in cache variables' values.
42229# Ultrix sh set writes to stderr and can't be redirected directly,
42230# and sets the high bit in the cache file unless we assign to the vars.
42231{
42232 (set) 2>&1 |
42233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42234 *ac_space=\ *)
42235 # `set' does not quote correctly, so add quotes (double-quote
42236 # substitution turns \\\\ into \\, and sed turns \\ into \).
42237 sed -n \
ac1cb8d3
VS
42238 "s/'/'\\\\''/g;
42239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
42240 ;;
42241 *)
42242 # `set' quotes correctly as required by POSIX, so do not add quotes.
42243 sed -n \
ac1cb8d3 42244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
42245 ;;
42246 esac;
42247} |
42248 sed '
42249 t clear
42250 : clear
42251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42252 t end
42253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42254 : end' >>confcache
42255if diff $cache_file confcache >/dev/null 2>&1; then :; else
42256 if test -w $cache_file; then
42257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42258 cat confcache >$cache_file
42259 else
42260 echo "not updating unwritable cache $cache_file"
42261 fi
42262fi
42263rm -f confcache
42264
42265test "x$prefix" = xNONE && prefix=$ac_default_prefix
42266# Let make expand exec_prefix.
42267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42268
42269# VPATH may cause trouble with some makes, so we remove $(srcdir),
42270# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42271# trailing colons and then remove the whole line if VPATH becomes empty
42272# (actually we leave an empty line to preserve line numbers).
42273if test "x$srcdir" = x.; then
ac1cb8d3 42274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
42275s/:*\$(srcdir):*/:/;
42276s/:*\${srcdir}:*/:/;
42277s/:*@srcdir@:*/:/;
ac1cb8d3 42278s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 42279s/:*$//;
ac1cb8d3 42280s/^[^=]*=[ ]*$//;
a848cd7e
SC
42281}'
42282fi
42283
42284DEFS=-DHAVE_CONFIG_H
42285
42286ac_libobjs=
42287ac_ltlibobjs=
42288for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42289 # 1. Remove the extension, and $U if already installed.
42290 ac_i=`echo "$ac_i" |
ac1cb8d3 42291 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
42292 # 2. Add them.
42293 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42294 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42295done
42296LIBOBJS=$ac_libobjs
42297
42298LTLIBOBJS=$ac_ltlibobjs
42299
42300
42301
42302: ${CONFIG_STATUS=./config.status}
42303ac_clean_files_save=$ac_clean_files
42304ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42305{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42306echo "$as_me: creating $CONFIG_STATUS" >&6;}
42307cat >$CONFIG_STATUS <<_ACEOF
42308#! $SHELL
42309# Generated by $as_me.
42310# Run this file to recreate the current configuration.
42311# Compiler output produced by configure, useful for debugging
42312# configure, is in config.log if it exists.
42313
42314debug=false
42315ac_cs_recheck=false
42316ac_cs_silent=false
42317SHELL=\${CONFIG_SHELL-$SHELL}
42318_ACEOF
42319
42320cat >>$CONFIG_STATUS <<\_ACEOF
42321## --------------------- ##
42322## M4sh Initialization. ##
42323## --------------------- ##
42324
42325# Be Bourne compatible
42326if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42327 emulate sh
42328 NULLCMD=:
42329 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42330 # is contrary to our usage. Disable this feature.
42331 alias -g '${1+"$@"}'='"$@"'
42332elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42333 set -o posix
42334fi
ac1cb8d3 42335DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42336
42337# Support unset when possible.
ac1cb8d3 42338if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42339 as_unset=unset
42340else
42341 as_unset=false
42342fi
42343
42344
42345# Work around bugs in pre-3.0 UWIN ksh.
42346$as_unset ENV MAIL MAILPATH
42347PS1='$ '
42348PS2='> '
42349PS4='+ '
42350
42351# NLS nuisances.
42352for as_var in \
42353 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42354 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42355 LC_TELEPHONE LC_TIME
42356do
ac1cb8d3 42357 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42358 eval $as_var=C; export $as_var
42359 else
42360 $as_unset $as_var
42361 fi
42362done
42363
42364# Required to use basename.
42365if expr a : '\(a\)' >/dev/null 2>&1; then
42366 as_expr=expr
42367else
42368 as_expr=false
42369fi
42370
42371if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42372 as_basename=basename
42373else
42374 as_basename=false
42375fi
42376
42377
42378# Name of the executable.
42379as_me=`$as_basename "$0" ||
42380$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42381 X"$0" : 'X\(//\)$' \| \
42382 X"$0" : 'X\(/\)$' \| \
42383 . : '\(.\)' 2>/dev/null ||
42384echo X/"$0" |
42385 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42386 /^X\/\(\/\/\)$/{ s//\1/; q; }
42387 /^X\/\(\/\).*/{ s//\1/; q; }
42388 s/.*/./; q'`
42389
42390
42391# PATH needs CR, and LINENO needs CR and PATH.
42392# Avoid depending upon Character Ranges.
42393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42396as_cr_digits='0123456789'
42397as_cr_alnum=$as_cr_Letters$as_cr_digits
42398
42399# The user is always right.
42400if test "${PATH_SEPARATOR+set}" != set; then
42401 echo "#! /bin/sh" >conf$$.sh
42402 echo "exit 0" >>conf$$.sh
42403 chmod +x conf$$.sh
42404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42405 PATH_SEPARATOR=';'
42406 else
42407 PATH_SEPARATOR=:
42408 fi
42409 rm -f conf$$.sh
42410fi
42411
42412
42413 as_lineno_1=$LINENO
42414 as_lineno_2=$LINENO
42415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42416 test "x$as_lineno_1" != "x$as_lineno_2" &&
42417 test "x$as_lineno_3" = "x$as_lineno_2" || {
42418 # Find who we are. Look in the path if we contain no path at all
42419 # relative or not.
42420 case $0 in
42421 *[\\/]* ) as_myself=$0 ;;
42422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42423for as_dir in $PATH
42424do
42425 IFS=$as_save_IFS
42426 test -z "$as_dir" && as_dir=.
42427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42428done
42429
42430 ;;
42431 esac
42432 # We did not find ourselves, most probably we were run as `sh COMMAND'
42433 # in which case we are not to be found in the path.
42434 if test "x$as_myself" = x; then
42435 as_myself=$0
42436 fi
42437 if test ! -f "$as_myself"; then
42438 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42439echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42440 { (exit 1); exit 1; }; }
42441 fi
42442 case $CONFIG_SHELL in
42443 '')
42444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42445for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42446do
42447 IFS=$as_save_IFS
42448 test -z "$as_dir" && as_dir=.
42449 for as_base in sh bash ksh sh5; do
42450 case $as_dir in
42451 /*)
42452 if ("$as_dir/$as_base" -c '
42453 as_lineno_1=$LINENO
42454 as_lineno_2=$LINENO
42455 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42456 test "x$as_lineno_1" != "x$as_lineno_2" &&
42457 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42458 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42459 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42460 CONFIG_SHELL=$as_dir/$as_base
42461 export CONFIG_SHELL
42462 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42463 fi;;
42464 esac
42465 done
42466done
42467;;
42468 esac
42469
42470 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42471 # uniformly replaced by the line number. The first 'sed' inserts a
42472 # line-number line before each line; the second 'sed' does the real
42473 # work. The second script uses 'N' to pair each line-number line
42474 # with the numbered line, and appends trailing '-' during
42475 # substitution so that $LINENO is not a special case at line end.
42476 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42477 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42478 sed '=' <$as_myself |
42479 sed '
42480 N
42481 s,$,-,
42482 : loop
42483 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42484 t loop
42485 s,-$,,
42486 s,^['$as_cr_digits']*\n,,
42487 ' >$as_me.lineno &&
42488 chmod +x $as_me.lineno ||
42489 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42490echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42491 { (exit 1); exit 1; }; }
42492
42493 # Don't try to exec as it changes $[0], causing all sort of problems
42494 # (the dirname of $[0] is not the place where we might find the
42495 # original and so on. Autoconf is especially sensible to this).
42496 . ./$as_me.lineno
42497 # Exit status is that of the last command.
42498 exit
42499}
42500
42501
42502case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42503 *c*,-n*) ECHO_N= ECHO_C='
42504' ECHO_T=' ' ;;
42505 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42506 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42507esac
42508
42509if expr a : '\(a\)' >/dev/null 2>&1; then
42510 as_expr=expr
42511else
42512 as_expr=false
42513fi
42514
42515rm -f conf$$ conf$$.exe conf$$.file
42516echo >conf$$.file
42517if ln -s conf$$.file conf$$ 2>/dev/null; then
42518 # We could just check for DJGPP; but this test a) works b) is more generic
42519 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42520 if test -f conf$$.exe; then
42521 # Don't use ln at all; we don't have any links
42522 as_ln_s='cp -p'
42523 else
42524 as_ln_s='ln -s'
42525 fi
42526elif ln conf$$.file conf$$ 2>/dev/null; then
42527 as_ln_s=ln
42528else
42529 as_ln_s='cp -p'
42530fi
42531rm -f conf$$ conf$$.exe conf$$.file
42532
42533if mkdir -p . 2>/dev/null; then
42534 as_mkdir_p=:
42535else
ac1cb8d3 42536 test -d ./-p && rmdir ./-p
a848cd7e
SC
42537 as_mkdir_p=false
42538fi
42539
42540as_executable_p="test -f"
42541
42542# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42544
42545# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42547
42548
42549# IFS
42550# We need space, tab and new line, in precisely that order.
42551as_nl='
42552'
42553IFS=" $as_nl"
42554
42555# CDPATH.
42556$as_unset CDPATH
42557
42558exec 6>&1
42559
42560# Open the log real soon, to keep \$[0] and so on meaningful, and to
42561# report actual input values of CONFIG_FILES etc. instead of their
42562# values after options handling. Logging --version etc. is OK.
42563exec 5>>config.log
42564{
42565 echo
42566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42567## Running $as_me. ##
42568_ASBOX
42569} >&5
42570cat >&5 <<_CSEOF
42571
7714864e 42572This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42573generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42574
42575 CONFIG_FILES = $CONFIG_FILES
42576 CONFIG_HEADERS = $CONFIG_HEADERS
42577 CONFIG_LINKS = $CONFIG_LINKS
42578 CONFIG_COMMANDS = $CONFIG_COMMANDS
42579 $ $0 $@
42580
42581_CSEOF
42582echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42583echo >&5
42584_ACEOF
42585
42586# Files that config.status was made for.
42587if test -n "$ac_config_files"; then
42588 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42589fi
42590
42591if test -n "$ac_config_headers"; then
42592 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42593fi
42594
42595if test -n "$ac_config_links"; then
42596 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42597fi
42598
42599if test -n "$ac_config_commands"; then
42600 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42601fi
42602
42603cat >>$CONFIG_STATUS <<\_ACEOF
42604
42605ac_cs_usage="\
42606\`$as_me' instantiates files from templates according to the
42607current configuration.
42608
42609Usage: $0 [OPTIONS] [FILE]...
42610
42611 -h, --help print this help, then exit
42612 -V, --version print version number, then exit
42613 -q, --quiet do not print progress messages
42614 -d, --debug don't remove temporary files
42615 --recheck update $as_me by reconfiguring in the same conditions
42616 --file=FILE[:TEMPLATE]
ac1cb8d3 42617 instantiate the configuration file FILE
a848cd7e 42618 --header=FILE[:TEMPLATE]
ac1cb8d3 42619 instantiate the configuration header FILE
a848cd7e
SC
42620
42621Configuration files:
42622$config_files
42623
42624Configuration headers:
42625$config_headers
42626
42627Configuration commands:
42628$config_commands
42629
42630Report bugs to <bug-autoconf@gnu.org>."
42631_ACEOF
42632
42633cat >>$CONFIG_STATUS <<_ACEOF
42634ac_cs_version="\\
7714864e 42635wxWidgets config.status 2.5.3
ac1cb8d3 42636configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42637 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42638
ac1cb8d3 42639Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42640This config.status script is free software; the Free Software Foundation
42641gives unlimited permission to copy, distribute and modify it."
42642srcdir=$srcdir
42643INSTALL="$INSTALL"
42644_ACEOF
42645
42646cat >>$CONFIG_STATUS <<\_ACEOF
42647# If no file are specified by the user, then we need to provide default
42648# value. By we need to know if files were specified by the user.
42649ac_need_defaults=:
42650while test $# != 0
42651do
42652 case $1 in
42653 --*=*)
42654 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42655 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42656 ac_shift=:
42657 ;;
42658 -*)
42659 ac_option=$1
42660 ac_optarg=$2
42661 ac_shift=shift
42662 ;;
42663 *) # This is not an option, so the user has probably given explicit
42664 # arguments.
42665 ac_option=$1
42666 ac_need_defaults=false;;
42667 esac
42668
42669 case $ac_option in
42670 # Handling of the options.
42671_ACEOF
42672cat >>$CONFIG_STATUS <<\_ACEOF
42673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42674 ac_cs_recheck=: ;;
42675 --version | --vers* | -V )
42676 echo "$ac_cs_version"; exit 0 ;;
42677 --he | --h)
42678 # Conflict between --help and --header
42679 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42680Try \`$0 --help' for more information." >&5
42681echo "$as_me: error: ambiguous option: $1
42682Try \`$0 --help' for more information." >&2;}
42683 { (exit 1); exit 1; }; };;
42684 --help | --hel | -h )
42685 echo "$ac_cs_usage"; exit 0 ;;
42686 --debug | --d* | -d )
42687 debug=: ;;
42688 --file | --fil | --fi | --f )
42689 $ac_shift
42690 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42691 ac_need_defaults=false;;
42692 --header | --heade | --head | --hea )
42693 $ac_shift
42694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42695 ac_need_defaults=false;;
42696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42698 ac_cs_silent=: ;;
42699
42700 # This is an error.
42701 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42702Try \`$0 --help' for more information." >&5
42703echo "$as_me: error: unrecognized option: $1
42704Try \`$0 --help' for more information." >&2;}
42705 { (exit 1); exit 1; }; } ;;
42706
42707 *) ac_config_targets="$ac_config_targets $1" ;;
42708
42709 esac
42710 shift
42711done
42712
42713ac_configure_extra_args=
42714
42715if $ac_cs_silent; then
42716 exec 6>/dev/null
42717 ac_configure_extra_args="$ac_configure_extra_args --silent"
42718fi
42719
42720_ACEOF
42721cat >>$CONFIG_STATUS <<_ACEOF
42722if \$ac_cs_recheck; then
42723 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42724 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42725fi
42726
42727_ACEOF
42728
42729cat >>$CONFIG_STATUS <<_ACEOF
42730#
42731# INIT-COMMANDS section.
42732#
42733
ceec2216
RL
42734 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42735 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42736 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42737 LN_S="${LN_S}"
a848cd7e
SC
42738
42739
42740_ACEOF
42741
42742
42743
42744cat >>$CONFIG_STATUS <<\_ACEOF
42745for ac_config_target in $ac_config_targets
42746do
42747 case "$ac_config_target" in
42748 # Handling of arguments.
ceec2216
RL
42749 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42750 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42751 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42752 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42753 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42754 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42755 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
42756 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42757echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42758 { (exit 1); exit 1; }; };;
42759 esac
42760done
42761
42762# If the user did not use the arguments to specify the items to instantiate,
42763# then the envvar interface is used. Set only those that are not.
42764# We use the long form for the default assignment because of an extremely
42765# bizarre bug on SunOS 4.1.3.
42766if $ac_need_defaults; then
42767 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42768 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42769 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42770fi
42771
42772# Have a temporary directory for convenience. Make it in the build tree
42773# simply because there is no reason to put it here, and in addition,
42774# creating and moving files from /tmp can sometimes cause problems.
42775# Create a temporary directory, and hook for its removal unless debugging.
42776$debug ||
42777{
42778 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42779 trap '{ (exit 1); exit 1; }' 1 2 13 15
42780}
42781
42782# Create a (secure) tmp directory for tmp files.
42783
42784{
42785 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42786 test -n "$tmp" && test -d "$tmp"
42787} ||
42788{
42789 tmp=./confstat$$-$RANDOM
42790 (umask 077 && mkdir $tmp)
42791} ||
42792{
42793 echo "$me: cannot create a temporary directory in ." >&2
42794 { (exit 1); exit 1; }
42795}
42796
42797_ACEOF
42798
42799cat >>$CONFIG_STATUS <<_ACEOF
42800
42801#
42802# CONFIG_FILES section.
42803#
42804
42805# No need to generate the scripts if there are no CONFIG_FILES.
42806# This happens for instance when ./config.status config.h
42807if test -n "\$CONFIG_FILES"; then
42808 # Protect against being on the right side of a sed subst in config.status.
42809 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42810 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42811s,@SHELL@,$SHELL,;t t
42812s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42813s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42814s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42815s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42816s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42817s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42818s,@exec_prefix@,$exec_prefix,;t t
42819s,@prefix@,$prefix,;t t
42820s,@program_transform_name@,$program_transform_name,;t t
42821s,@bindir@,$bindir,;t t
42822s,@sbindir@,$sbindir,;t t
42823s,@libexecdir@,$libexecdir,;t t
42824s,@datadir@,$datadir,;t t
42825s,@sysconfdir@,$sysconfdir,;t t
42826s,@sharedstatedir@,$sharedstatedir,;t t
42827s,@localstatedir@,$localstatedir,;t t
42828s,@libdir@,$libdir,;t t
42829s,@includedir@,$includedir,;t t
42830s,@oldincludedir@,$oldincludedir,;t t
42831s,@infodir@,$infodir,;t t
42832s,@mandir@,$mandir,;t t
42833s,@build_alias@,$build_alias,;t t
42834s,@host_alias@,$host_alias,;t t
42835s,@target_alias@,$target_alias,;t t
42836s,@DEFS@,$DEFS,;t t
42837s,@ECHO_C@,$ECHO_C,;t t
42838s,@ECHO_N@,$ECHO_N,;t t
42839s,@ECHO_T@,$ECHO_T,;t t
42840s,@LIBS@,$LIBS,;t t
42841s,@build@,$build,;t t
42842s,@build_cpu@,$build_cpu,;t t
42843s,@build_vendor@,$build_vendor,;t t
42844s,@build_os@,$build_os,;t t
42845s,@host@,$host,;t t
42846s,@host_cpu@,$host_cpu,;t t
42847s,@host_vendor@,$host_vendor,;t t
42848s,@host_os@,$host_os,;t t
42849s,@target@,$target,;t t
42850s,@target_cpu@,$target_cpu,;t t
42851s,@target_vendor@,$target_vendor,;t t
42852s,@target_os@,$target_os,;t t
42853s,@CC@,$CC,;t t
42854s,@CFLAGS@,$CFLAGS,;t t
42855s,@LDFLAGS@,$LDFLAGS,;t t
42856s,@CPPFLAGS@,$CPPFLAGS,;t t
42857s,@ac_ct_CC@,$ac_ct_CC,;t t
42858s,@EXEEXT@,$EXEEXT,;t t
42859s,@OBJEXT@,$OBJEXT,;t t
42860s,@CPP@,$CPP,;t t
42861s,@EGREP@,$EGREP,;t t
42862s,@CXX@,$CXX,;t t
42863s,@CXXFLAGS@,$CXXFLAGS,;t t
42864s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42865s,@RANLIB@,$RANLIB,;t t
42866s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42867s,@AR@,$AR,;t t
42868s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42869s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42870s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42871s,@STRIP@,$STRIP,;t t
42872s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42873s,@LN_S@,$LN_S,;t t
42874s,@CXXCPP@,$CXXCPP,;t t
42875s,@subdirs@,$subdirs,;t t
42876s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42877s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42878s,@GTK_LIBS@,$GTK_LIBS,;t t
42879s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42880s,@X_CFLAGS@,$X_CFLAGS,;t t
42881s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42882s,@X_LIBS@,$X_LIBS,;t t
42883s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42884s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42885s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42886s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42887s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42888s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42889s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42890s,@RESCOMP@,$RESCOMP,;t t
42891s,@DEREZ@,$DEREZ,;t t
42892s,@SETFILE@,$SETFILE,;t t
42893s,@LIBICONV@,$LIBICONV,;t t
42894s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42895s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42896s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42897s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42898s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42899s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42900s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42901s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42902s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42903s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42904s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42905s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42906s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42907s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42908s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42909s,@VENDOR@,$VENDOR,;t t
42910s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42911s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42912s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42913s,@WXUNIV@,$WXUNIV,;t t
42914s,@MONOLITHIC@,$MONOLITHIC,;t t
42915s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42916s,@EXTRALIBS@,$EXTRALIBS,;t t
42917s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42918s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42919s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42920s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42921s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42922s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42923s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42924s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42925s,@UNICODE@,$UNICODE,;t t
42926s,@BUILD@,$BUILD,;t t
42927s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42928s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42929s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42930s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42931s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42932s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42933s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42934s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42935s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42936s,@SET_MAKE@,$SET_MAKE,;t t
42937s,@MAKE_SET@,$MAKE_SET,;t t
42938s,@ac_ct_AR@,$ac_ct_AR,;t t
42939s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42940s,@NM@,$NM,;t t
42941s,@ac_ct_NM@,$ac_ct_NM,;t t
42942s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42943s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42944s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42945s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42946s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42947s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42948s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42949s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42950s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42951s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42952s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42953s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42954s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42955s,@LIBPREFIX@,$LIBPREFIX,;t t
42956s,@LIBEXT@,$LIBEXT,;t t
42957s,@DLLPREFIX@,$DLLPREFIX,;t t
42958s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42959s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42960s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42961s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42962s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42963s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42964s,@PIC_FLAG@,$PIC_FLAG,;t t
42965s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42966s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42967s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42968s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42969s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42970s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42971s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42972s,@GCC_PCH@,$GCC_PCH,;t t
42973s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42974s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42975s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42976s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42977s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42978s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42979s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42980s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42981s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42982s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42983s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42984s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42985s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42986s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42987s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42988s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42989s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42990s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42991s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42992s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42993s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42994s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42995s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42996s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42997s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42998s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42999s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 43000s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
43001s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
43002s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
43003s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
43004s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
43005s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
43006s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
43007s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
43008s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 43009s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
43010s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
43011s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
43012s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 43013s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 43014s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
43015s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
43016s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
43017s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
43018s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 43019s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
43020s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
43021s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
43022s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
43023s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
43024s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
43025s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
43026s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
43027s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
43028s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
43029s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
43030s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
43031s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
43032s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
43033s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43034s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43035s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
43036s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
43037s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
43038s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
43039s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
43040s,@COND_SHARED_1@,$COND_SHARED_1,;t t
43041s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 43042s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 43043s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 43044s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
43045s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
43046s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
43047s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
43048s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
43049s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
43050s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
43051s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
43052s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
43053s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
43054s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
43055s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
43056s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
43057s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
43058s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
43059s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
43060s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
43061s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
43062s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
43063s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
43064s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
43065s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
43066s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
43067s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
43068s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
43069s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
43070s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
43071s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
43072s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
43073s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
43074s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
43075s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
43076s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
43077s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 43078s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 43079s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
43080s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
43081s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
43082s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
43083s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
43084s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 43085s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 43086s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
43087s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
43088s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
43089s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
43090s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
43091s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
43092s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
43093s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
43094s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
6ab3c239
VZ
43095s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
43096s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
9a8f0513
VS
43097s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
43098s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
43099s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 43100s,@SHARED@,$SHARED,;t t
a848cd7e
SC
43101s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
43102s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
43103s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
43104s,@USE_GUI@,$USE_GUI,;t t
43105s,@AFMINSTALL@,$AFMINSTALL,;t t
43106s,@WIN32INSTALL@,$WIN32INSTALL,;t t
43107s,@TOOLKIT@,$TOOLKIT,;t t
43108s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 43109s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 43110s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
43111s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
43112s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 43113s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
43114s,@WIDGET_SET@,$WIDGET_SET,;t t
43115s,@WX_RELEASE@,$WX_RELEASE,;t t
43116s,@WX_VERSION@,$WX_VERSION,;t t
43117s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
43118s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
43119s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 43120s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
43121s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
43122s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
43123s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
43124s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 43125s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
43126s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
43127s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 43128s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 43129s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
43130s,@DISTDIR@,$DISTDIR,;t t
43131s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
43132s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
43133s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
43134s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
43135s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
43136s,@RESFLAGS@,$RESFLAGS,;t t
43137s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
43138s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
43139s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
43140s,@LIBWXMACRES@,$LIBWXMACRES,;t t
43141s,@MACRESCOMP@,$MACRESCOMP,;t t
43142s,@MACSETFILE@,$MACSETFILE,;t t
43143s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
43144s,@GCC@,$GCC,;t t
a848cd7e 43145s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
43146s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
43147s,@LIBOBJS@,$LIBOBJS,;t t
43148s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43149CEOF
43150
43151_ACEOF
43152
43153 cat >>$CONFIG_STATUS <<\_ACEOF
43154 # Split the substitutions into bite-sized pieces for seds with
43155 # small command number limits, like on Digital OSF/1 and HP-UX.
43156 ac_max_sed_lines=48
43157 ac_sed_frag=1 # Number of current file.
43158 ac_beg=1 # First line for current file.
43159 ac_end=$ac_max_sed_lines # Line after last line for current file.
43160 ac_more_lines=:
43161 ac_sed_cmds=
43162 while $ac_more_lines; do
43163 if test $ac_beg -gt 1; then
43164 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43165 else
43166 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43167 fi
43168 if test ! -s $tmp/subs.frag; then
43169 ac_more_lines=false
43170 else
43171 # The purpose of the label and of the branching condition is to
43172 # speed up the sed processing (if there are no `@' at all, there
43173 # is no need to browse any of the substitutions).
43174 # These are the two extra sed commands mentioned above.
43175 (echo ':t
43176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43177 if test -z "$ac_sed_cmds"; then
ac1cb8d3 43178 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 43179 else
ac1cb8d3 43180 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
43181 fi
43182 ac_sed_frag=`expr $ac_sed_frag + 1`
43183 ac_beg=$ac_end
43184 ac_end=`expr $ac_end + $ac_max_sed_lines`
43185 fi
43186 done
43187 if test -z "$ac_sed_cmds"; then
43188 ac_sed_cmds=cat
43189 fi
43190fi # test -n "$CONFIG_FILES"
43191
43192_ACEOF
43193cat >>$CONFIG_STATUS <<\_ACEOF
43194for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43195 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43196 case $ac_file in
43197 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43198 cat >$tmp/stdin
43199 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43201 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43203 * ) ac_file_in=$ac_file.in ;;
43204 esac
43205
43206 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43207 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43208$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43209 X"$ac_file" : 'X\(//\)[^/]' \| \
43210 X"$ac_file" : 'X\(//\)$' \| \
43211 X"$ac_file" : 'X\(/\)' \| \
43212 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43213echo X"$ac_file" |
43214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43216 /^X\(\/\/\)$/{ s//\1/; q; }
43217 /^X\(\/\).*/{ s//\1/; q; }
43218 s/.*/./; q'`
43219 { if $as_mkdir_p; then
43220 mkdir -p "$ac_dir"
43221 else
43222 as_dir="$ac_dir"
43223 as_dirs=
43224 while test ! -d "$as_dir"; do
43225 as_dirs="$as_dir $as_dirs"
43226 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43228 X"$as_dir" : 'X\(//\)[^/]' \| \
43229 X"$as_dir" : 'X\(//\)$' \| \
43230 X"$as_dir" : 'X\(/\)' \| \
43231 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43232echo X"$as_dir" |
43233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43235 /^X\(\/\/\)$/{ s//\1/; q; }
43236 /^X\(\/\).*/{ s//\1/; q; }
43237 s/.*/./; q'`
43238 done
43239 test ! -n "$as_dirs" || mkdir $as_dirs
43240 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43241echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43242 { (exit 1); exit 1; }; }; }
43243
43244 ac_builddir=.
43245
43246if test "$ac_dir" != .; then
43247 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43248 # A "../" for each directory in $ac_dir_suffix.
43249 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43250else
43251 ac_dir_suffix= ac_top_builddir=
43252fi
43253
43254case $srcdir in
43255 .) # No --srcdir option. We are building in place.
43256 ac_srcdir=.
43257 if test -z "$ac_top_builddir"; then
43258 ac_top_srcdir=.
43259 else
43260 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43261 fi ;;
43262 [\\/]* | ?:[\\/]* ) # Absolute path.
43263 ac_srcdir=$srcdir$ac_dir_suffix;
43264 ac_top_srcdir=$srcdir ;;
43265 *) # Relative path.
43266 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43267 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43268esac
ac1cb8d3
VS
43269
43270# Do not use `cd foo && pwd` to compute absolute paths, because
43271# the directories may not exist.
43272case `pwd` in
43273.) ac_abs_builddir="$ac_dir";;
43274*)
43275 case "$ac_dir" in
43276 .) ac_abs_builddir=`pwd`;;
43277 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43278 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43279 esac;;
43280esac
43281case $ac_abs_builddir in
43282.) ac_abs_top_builddir=${ac_top_builddir}.;;
43283*)
43284 case ${ac_top_builddir}. in
43285 .) ac_abs_top_builddir=$ac_abs_builddir;;
43286 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43287 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43288 esac;;
43289esac
43290case $ac_abs_builddir in
43291.) ac_abs_srcdir=$ac_srcdir;;
43292*)
43293 case $ac_srcdir in
43294 .) ac_abs_srcdir=$ac_abs_builddir;;
43295 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43296 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43297 esac;;
43298esac
43299case $ac_abs_builddir in
43300.) ac_abs_top_srcdir=$ac_top_srcdir;;
43301*)
43302 case $ac_top_srcdir in
43303 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43304 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43305 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43306 esac;;
43307esac
a848cd7e
SC
43308
43309
43310 case $INSTALL in
43311 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43312 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43313 esac
43314
5f652d0d
VS
43315 if test x"$ac_file" != x-; then
43316 { echo "$as_me:$LINENO: creating $ac_file" >&5
43317echo "$as_me: creating $ac_file" >&6;}
43318 rm -f "$ac_file"
43319 fi
a848cd7e
SC
43320 # Let's still pretend it is `configure' which instantiates (i.e., don't
43321 # use $as_me), people would be surprised to read:
43322 # /* config.h. Generated by config.status. */
43323 if test x"$ac_file" = x-; then
43324 configure_input=
43325 else
43326 configure_input="$ac_file. "
43327 fi
43328 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43329 sed 's,.*/,,'` by configure."
a848cd7e
SC
43330
43331 # First look for the input files in the build tree, otherwise in the
43332 # src tree.
43333 ac_file_inputs=`IFS=:
43334 for f in $ac_file_in; do
43335 case $f in
43336 -) echo $tmp/stdin ;;
43337 [\\/$]*)
ac1cb8d3
VS
43338 # Absolute (can't be DOS-style, as IFS=:)
43339 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43340echo "$as_me: error: cannot find input file: $f" >&2;}
43341 { (exit 1); exit 1; }; }
ac1cb8d3 43342 echo "$f";;
a848cd7e 43343 *) # Relative
ac1cb8d3
VS
43344 if test -f "$f"; then
43345 # Build tree
43346 echo "$f"
43347 elif test -f "$srcdir/$f"; then
43348 # Source tree
43349 echo "$srcdir/$f"
43350 else
43351 # /dev/null tree
43352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43353echo "$as_me: error: cannot find input file: $f" >&2;}
43354 { (exit 1); exit 1; }; }
ac1cb8d3 43355 fi;;
a848cd7e
SC
43356 esac
43357 done` || { (exit 1); exit 1; }
43358_ACEOF
43359cat >>$CONFIG_STATUS <<_ACEOF
43360 sed "$ac_vpsub
43361$extrasub
43362_ACEOF
43363cat >>$CONFIG_STATUS <<\_ACEOF
43364:t
43365/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43366s,@configure_input@,$configure_input,;t t
43367s,@srcdir@,$ac_srcdir,;t t
43368s,@abs_srcdir@,$ac_abs_srcdir,;t t
43369s,@top_srcdir@,$ac_top_srcdir,;t t
43370s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43371s,@builddir@,$ac_builddir,;t t
43372s,@abs_builddir@,$ac_abs_builddir,;t t
43373s,@top_builddir@,$ac_top_builddir,;t t
43374s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43375s,@INSTALL@,$ac_INSTALL,;t t
43376" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43377 rm -f $tmp/stdin
43378 if test x"$ac_file" != x-; then
43379 mv $tmp/out $ac_file
43380 else
43381 cat $tmp/out
43382 rm -f $tmp/out
43383 fi
43384
ceec2216
RL
43385 # Run the commands associated with the file.
43386 case $ac_file in
43387 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43388 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43389 esac
a848cd7e
SC
43390done
43391_ACEOF
43392cat >>$CONFIG_STATUS <<\_ACEOF
43393
43394#
43395# CONFIG_HEADER section.
43396#
43397
43398# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43399# NAME is the cpp macro being defined and VALUE is the value it is being given.
43400#
43401# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43402ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43403ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43404ac_dC=' '
43405ac_dD=',;t'
43406# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43407ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43408ac_uB='$,\1#\2define\3'
43409ac_uC=' '
43410ac_uD=',;t'
43411
43412for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43414 case $ac_file in
43415 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43416 cat >$tmp/stdin
43417 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43419 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43421 * ) ac_file_in=$ac_file.in ;;
43422 esac
43423
43424 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43425echo "$as_me: creating $ac_file" >&6;}
43426
43427 # First look for the input files in the build tree, otherwise in the
43428 # src tree.
43429 ac_file_inputs=`IFS=:
43430 for f in $ac_file_in; do
43431 case $f in
43432 -) echo $tmp/stdin ;;
43433 [\\/$]*)
ac1cb8d3
VS
43434 # Absolute (can't be DOS-style, as IFS=:)
43435 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43436echo "$as_me: error: cannot find input file: $f" >&2;}
43437 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43438 # Do quote $f, to prevent DOS paths from being IFS'd.
43439 echo "$f";;
a848cd7e 43440 *) # Relative
ac1cb8d3
VS
43441 if test -f "$f"; then
43442 # Build tree
43443 echo "$f"
43444 elif test -f "$srcdir/$f"; then
43445 # Source tree
43446 echo "$srcdir/$f"
43447 else
43448 # /dev/null tree
43449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43450echo "$as_me: error: cannot find input file: $f" >&2;}
43451 { (exit 1); exit 1; }; }
ac1cb8d3 43452 fi;;
a848cd7e
SC
43453 esac
43454 done` || { (exit 1); exit 1; }
43455 # Remove the trailing spaces.
ac1cb8d3 43456 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43457
43458_ACEOF
43459
43460# Transform confdefs.h into two sed scripts, `conftest.defines' and
43461# `conftest.undefs', that substitutes the proper values into
43462# config.h.in to produce config.h. The first handles `#define'
43463# templates, and the second `#undef' templates.
43464# And first: Protect against being on the right side of a sed subst in
43465# config.status. Protect against being in an unquoted here document
43466# in config.status.
43467rm -f conftest.defines conftest.undefs
43468# Using a here document instead of a string reduces the quoting nightmare.
43469# Putting comments in sed scripts is not portable.
43470#
43471# `end' is used to avoid that the second main sed command (meant for
43472# 0-ary CPP macros) applies to n-ary macro definitions.
43473# See the Autoconf documentation for `clear'.
43474cat >confdef2sed.sed <<\_ACEOF
43475s/[\\&,]/\\&/g
43476s,[\\$`],\\&,g
43477t clear
43478: clear
ac1cb8d3 43479s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43480t end
ac1cb8d3 43481s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43482: end
43483_ACEOF
43484# If some macros were called several times there might be several times
43485# the same #defines, which is useless. Nevertheless, we may not want to
43486# sort them, since we want the *last* AC-DEFINE to be honored.
43487uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43488sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43489rm -f confdef2sed.sed
43490
43491# This sed command replaces #undef with comments. This is necessary, for
43492# example, in the case of _POSIX_SOURCE, which is predefined and required
43493# on some systems where configure will not decide to define it.
43494cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43495s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43496_ACEOF
43497
43498# Break up conftest.defines because some shells have a limit on the size
43499# of here documents, and old seds have small limits too (100 cmds).
43500echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43501echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43502echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43503echo ' :' >>$CONFIG_STATUS
43504rm -f conftest.tail
43505while grep . conftest.defines >/dev/null
43506do
43507 # Write a limited-size here document to $tmp/defines.sed.
43508 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43509 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43510 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43511 # Work around the forget-to-reset-the-flag bug.
43512 echo 't clr' >>$CONFIG_STATUS
43513 echo ': clr' >>$CONFIG_STATUS
43514 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43515 echo 'CEOF
43516 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43517 rm -f $tmp/in
43518 mv $tmp/out $tmp/in
43519' >>$CONFIG_STATUS
43520 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43521 rm -f conftest.defines
43522 mv conftest.tail conftest.defines
43523done
43524rm -f conftest.defines
43525echo ' fi # grep' >>$CONFIG_STATUS
43526echo >>$CONFIG_STATUS
43527
43528# Break up conftest.undefs because some shells have a limit on the size
43529# of here documents, and old seds have small limits too (100 cmds).
43530echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43531rm -f conftest.tail
43532while grep . conftest.undefs >/dev/null
43533do
43534 # Write a limited-size here document to $tmp/undefs.sed.
43535 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43536 # Speed up: don't consider the non `#undef'
ac1cb8d3 43537 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43538 # Work around the forget-to-reset-the-flag bug.
43539 echo 't clr' >>$CONFIG_STATUS
43540 echo ': clr' >>$CONFIG_STATUS
43541 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43542 echo 'CEOF
43543 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43544 rm -f $tmp/in
43545 mv $tmp/out $tmp/in
43546' >>$CONFIG_STATUS
43547 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43548 rm -f conftest.undefs
43549 mv conftest.tail conftest.undefs
43550done
43551rm -f conftest.undefs
43552
43553cat >>$CONFIG_STATUS <<\_ACEOF
43554 # Let's still pretend it is `configure' which instantiates (i.e., don't
43555 # use $as_me), people would be surprised to read:
43556 # /* config.h. Generated by config.status. */
43557 if test x"$ac_file" = x-; then
43558 echo "/* Generated by configure. */" >$tmp/config.h
43559 else
43560 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43561 fi
43562 cat $tmp/in >>$tmp/config.h
43563 rm -f $tmp/in
43564 if test x"$ac_file" != x-; then
43565 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43567echo "$as_me: $ac_file is unchanged" >&6;}
43568 else
43569 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43570$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43571 X"$ac_file" : 'X\(//\)[^/]' \| \
43572 X"$ac_file" : 'X\(//\)$' \| \
43573 X"$ac_file" : 'X\(/\)' \| \
43574 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43575echo X"$ac_file" |
43576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43578 /^X\(\/\/\)$/{ s//\1/; q; }
43579 /^X\(\/\).*/{ s//\1/; q; }
43580 s/.*/./; q'`
43581 { if $as_mkdir_p; then
43582 mkdir -p "$ac_dir"
43583 else
43584 as_dir="$ac_dir"
43585 as_dirs=
43586 while test ! -d "$as_dir"; do
43587 as_dirs="$as_dir $as_dirs"
43588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43590 X"$as_dir" : 'X\(//\)[^/]' \| \
43591 X"$as_dir" : 'X\(//\)$' \| \
43592 X"$as_dir" : 'X\(/\)' \| \
43593 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43594echo X"$as_dir" |
43595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43597 /^X\(\/\/\)$/{ s//\1/; q; }
43598 /^X\(\/\).*/{ s//\1/; q; }
43599 s/.*/./; q'`
43600 done
43601 test ! -n "$as_dirs" || mkdir $as_dirs
43602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43603echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43604 { (exit 1); exit 1; }; }; }
43605
43606 rm -f $ac_file
43607 mv $tmp/config.h $ac_file
43608 fi
43609 else
43610 cat $tmp/config.h
43611 rm -f $tmp/config.h
43612 fi
43613done
43614_ACEOF
43615cat >>$CONFIG_STATUS <<\_ACEOF
43616
43617#
43618# CONFIG_COMMANDS section.
43619#
43620for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43621 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43622 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43623 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43624$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43625 X"$ac_dest" : 'X\(//\)[^/]' \| \
43626 X"$ac_dest" : 'X\(//\)$' \| \
43627 X"$ac_dest" : 'X\(/\)' \| \
43628 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43629echo X"$ac_dest" |
43630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43632 /^X\(\/\/\)$/{ s//\1/; q; }
43633 /^X\(\/\).*/{ s//\1/; q; }
43634 s/.*/./; q'`
ac1cb8d3
VS
43635 { if $as_mkdir_p; then
43636 mkdir -p "$ac_dir"
43637 else
43638 as_dir="$ac_dir"
43639 as_dirs=
43640 while test ! -d "$as_dir"; do
43641 as_dirs="$as_dir $as_dirs"
43642 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43643$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43644 X"$as_dir" : 'X\(//\)[^/]' \| \
43645 X"$as_dir" : 'X\(//\)$' \| \
43646 X"$as_dir" : 'X\(/\)' \| \
43647 . : '\(.\)' 2>/dev/null ||
43648echo X"$as_dir" |
43649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43651 /^X\(\/\/\)$/{ s//\1/; q; }
43652 /^X\(\/\).*/{ s//\1/; q; }
43653 s/.*/./; q'`
43654 done
43655 test ! -n "$as_dirs" || mkdir $as_dirs
43656 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43657echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43658 { (exit 1); exit 1; }; }; }
43659
a848cd7e
SC
43660 ac_builddir=.
43661
43662if test "$ac_dir" != .; then
43663 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43664 # A "../" for each directory in $ac_dir_suffix.
43665 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43666else
43667 ac_dir_suffix= ac_top_builddir=
43668fi
43669
43670case $srcdir in
43671 .) # No --srcdir option. We are building in place.
43672 ac_srcdir=.
43673 if test -z "$ac_top_builddir"; then
43674 ac_top_srcdir=.
43675 else
43676 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43677 fi ;;
43678 [\\/]* | ?:[\\/]* ) # Absolute path.
43679 ac_srcdir=$srcdir$ac_dir_suffix;
43680 ac_top_srcdir=$srcdir ;;
43681 *) # Relative path.
43682 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43683 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43684esac
ac1cb8d3
VS
43685
43686# Do not use `cd foo && pwd` to compute absolute paths, because
43687# the directories may not exist.
43688case `pwd` in
43689.) ac_abs_builddir="$ac_dir";;
43690*)
43691 case "$ac_dir" in
43692 .) ac_abs_builddir=`pwd`;;
43693 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43694 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43695 esac;;
43696esac
43697case $ac_abs_builddir in
43698.) ac_abs_top_builddir=${ac_top_builddir}.;;
43699*)
43700 case ${ac_top_builddir}. in
43701 .) ac_abs_top_builddir=$ac_abs_builddir;;
43702 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43703 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43704 esac;;
43705esac
43706case $ac_abs_builddir in
43707.) ac_abs_srcdir=$ac_srcdir;;
43708*)
43709 case $ac_srcdir in
43710 .) ac_abs_srcdir=$ac_abs_builddir;;
43711 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43712 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43713 esac;;
43714esac
43715case $ac_abs_builddir in
43716.) ac_abs_top_srcdir=$ac_top_srcdir;;
43717*)
43718 case $ac_top_srcdir in
43719 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43720 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43721 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43722 esac;;
43723esac
a848cd7e
SC
43724
43725
43726 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43727echo "$as_me: executing $ac_dest commands" >&6;}
43728 case $ac_dest in
ceec2216
RL
43729 wx-config ) rm -f wx-config
43730 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43731 ;;
a848cd7e
SC
43732 esac
43733done
43734_ACEOF
43735
43736cat >>$CONFIG_STATUS <<\_ACEOF
43737
43738{ (exit 0); exit 0; }
43739_ACEOF
43740chmod +x $CONFIG_STATUS
43741ac_clean_files=$ac_clean_files_save
43742
43743
43744# configure is writing to config.log, and then calls config.status.
43745# config.status does its own redirection, appending to config.log.
43746# Unfortunately, on DOS this fails, as config.log is still kept open
43747# by configure, so config.status won't be able to write to it; its
43748# output is simply discarded. So we exec the FD to /dev/null,
43749# effectively closing config.log, so it can be properly (re)opened and
43750# appended to by config.status. When coming back to configure, we
43751# need to make the FD available again.
43752if test "$no_create" != yes; then
43753 ac_cs_success=:
43754 ac_config_status_args=
43755 test "$silent" = yes &&
43756 ac_config_status_args="$ac_config_status_args --quiet"
43757 exec 5>/dev/null
43758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43759 exec 5>>config.log
43760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43761 # would make configure fail if this is the last instruction.
43762 $ac_cs_success || { (exit 1); exit 1; }
43763fi
43764
43765#
43766# CONFIG_SUBDIRS section.
43767#
43768if test "$no_recursion" != yes; then
43769
43770 # Remove --cache-file and --srcdir arguments so they do not pile up.
43771 ac_sub_configure_args=
43772 ac_prev=
43773 for ac_arg in $ac_configure_args; do
43774 if test -n "$ac_prev"; then
43775 ac_prev=
43776 continue
43777 fi
43778 case $ac_arg in
43779 -cache-file | --cache-file | --cache-fil | --cache-fi \
43780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43781 ac_prev=cache_file ;;
43782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43784 | --c=*)
43785 ;;
43786 --config-cache | -C)
43787 ;;
43788 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43789 ac_prev=srcdir ;;
43790 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43791 ;;
43792 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43793 ac_prev=prefix ;;
43794 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43795 ;;
43796 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43797 esac
43798 done
43799
43800 # Always prepend --prefix to ensure using the same prefix
43801 # in subdir configurations.
43802 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43803
43804 ac_popdir=`pwd`
43805 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43806
43807 # Do not complain, so a configure script can configure whichever
43808 # parts of a large source tree are present.
43809 test -d $srcdir/$ac_dir || continue
43810
43811 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43812echo "$as_me: configuring in $ac_dir" >&6;}
43813 { if $as_mkdir_p; then
43814 mkdir -p "$ac_dir"
43815 else
43816 as_dir="$ac_dir"
43817 as_dirs=
43818 while test ! -d "$as_dir"; do
43819 as_dirs="$as_dir $as_dirs"
43820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43822 X"$as_dir" : 'X\(//\)[^/]' \| \
43823 X"$as_dir" : 'X\(//\)$' \| \
43824 X"$as_dir" : 'X\(/\)' \| \
43825 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43826echo X"$as_dir" |
43827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43829 /^X\(\/\/\)$/{ s//\1/; q; }
43830 /^X\(\/\).*/{ s//\1/; q; }
43831 s/.*/./; q'`
43832 done
43833 test ! -n "$as_dirs" || mkdir $as_dirs
43834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43835echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43836 { (exit 1); exit 1; }; }; }
43837
43838 ac_builddir=.
43839
43840if test "$ac_dir" != .; then
43841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43842 # A "../" for each directory in $ac_dir_suffix.
43843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43844else
43845 ac_dir_suffix= ac_top_builddir=
43846fi
43847
43848case $srcdir in
43849 .) # No --srcdir option. We are building in place.
43850 ac_srcdir=.
43851 if test -z "$ac_top_builddir"; then
43852 ac_top_srcdir=.
43853 else
43854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43855 fi ;;
43856 [\\/]* | ?:[\\/]* ) # Absolute path.
43857 ac_srcdir=$srcdir$ac_dir_suffix;
43858 ac_top_srcdir=$srcdir ;;
43859 *) # Relative path.
43860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43862esac
ac1cb8d3
VS
43863
43864# Do not use `cd foo && pwd` to compute absolute paths, because
43865# the directories may not exist.
43866case `pwd` in
43867.) ac_abs_builddir="$ac_dir";;
43868*)
43869 case "$ac_dir" in
43870 .) ac_abs_builddir=`pwd`;;
43871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43873 esac;;
43874esac
43875case $ac_abs_builddir in
43876.) ac_abs_top_builddir=${ac_top_builddir}.;;
43877*)
43878 case ${ac_top_builddir}. in
43879 .) ac_abs_top_builddir=$ac_abs_builddir;;
43880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43882 esac;;
43883esac
43884case $ac_abs_builddir in
43885.) ac_abs_srcdir=$ac_srcdir;;
43886*)
43887 case $ac_srcdir in
43888 .) ac_abs_srcdir=$ac_abs_builddir;;
43889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43891 esac;;
43892esac
43893case $ac_abs_builddir in
43894.) ac_abs_top_srcdir=$ac_top_srcdir;;
43895*)
43896 case $ac_top_srcdir in
43897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43900 esac;;
43901esac
a848cd7e
SC
43902
43903
43904 cd $ac_dir
43905
43906 # Check for guested configure; otherwise get Cygnus style configure.
43907 if test -f $ac_srcdir/configure.gnu; then
43908 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43909 elif test -f $ac_srcdir/configure; then
43910 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43911 elif test -f $ac_srcdir/configure.in; then
43912 ac_sub_configure=$ac_configure
43913 else
43914 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43915echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43916 ac_sub_configure=
43917 fi
43918
43919 # The recursion is here.
43920 if test -n "$ac_sub_configure"; then
43921 # Make the cache file name correct relative to the subdirectory.
43922 case $cache_file in
43923 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43924 *) # Relative path.
ac1cb8d3 43925 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43926 esac
43927
43928 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43929echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43930 # The eval makes quoting arguments work.
43931 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43932 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43933 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43934echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43935 { (exit 1); exit 1; }; }
43936 fi
43937
5f652d0d 43938 cd $ac_popdir
a848cd7e
SC
43939 done
43940fi
43941
43942
43943echo
77ffb593 43944echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43945echo ""
4d4ff94c 43946echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43947echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43948
77ffb593
JS
43949echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43950echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43951echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43952
77ffb593
JS
43953echo " What level of wxWidgets compatibility should be enabled?"
43954echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43955echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43956
77ffb593 43957echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43958echo " jpeg ${wxUSE_LIBJPEG-none}"
43959echo " png ${wxUSE_LIBPNG-none}"
43960echo " regex ${wxUSE_REGEX}"
43961echo " tiff ${wxUSE_LIBTIFF-none}"
43962if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43963echo " xpm ${wxUSE_LIBXPM-none}"
43964fi
43965echo " zlib ${wxUSE_ZLIB}"
43966echo " odbc ${wxUSE_ODBC}"
43967echo " expat ${wxUSE_EXPAT}"
43968echo " libmspack ${wxUSE_LIBMSPACK}"
43969echo " sdl ${wxUSE_LIBSDL}"
d1c38808 43970echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}"
a848cd7e
SC
43971
43972echo ""
43973