]> git.saurik.com Git - wxWidgets.git/blame - configure
Added #if wxUSE_STACKWALKER. Fixes compilation of OS X shared libraries.
[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.
63c4f6da 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.5.
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'
63c4f6da
MW
273PACKAGE_VERSION='2.5.5'
274PACKAGE_STRING='wxWidgets 2.5.5'
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"
6671c68b 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 GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_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_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_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_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 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
63c4f6da 797\`configure' configures wxWidgets 2.5.5 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
63c4f6da 863 short | recursive ) echo "Configuration of wxWidgets 2.5.5:";;
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
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
1027 --enable-validators use wxValidator and derived classes
1028 --enable-busyinfo use wxBusyInfo
4cb1d3da 1029 --enable-joystick use wxJoystick
a848cd7e
SC
1030 --enable-metafiles use wxMetaFile (Windows only)
1031 --enable-dragimage use wxDragImage
1032 --enable-accessibility enable accessibility support
1033 --enable-palette use wxPalette class
1034 --enable-image use wxImage class
1035 --enable-gif use gif images (GIF file format)
1036 --enable-pcx use pcx images (PCX file format)
1037 --enable-iff use iff images (IFF file format)
1038 --enable-pnm use pnm images (PNM file format)
1039 --enable-xpm use xpm images (XPM file format)
1040 --enable-icocur use Windows ICO and CUR formats
77ffb593 1041 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1042 --enable-vendor=VENDOR vendor name (win32 DLL only)
1043 --disable-largefile omit support for large files
1044 --disable-gtktest do not try to compile and run a test GTK+ program
1045 --disable-gtktest Do not try to compile and run a test GTK program
1046 --disable-sdltest Do not try to compile and run a test SDL program
1047 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1048 --disable-precomp-headers
1049 don't use precompiled headers even if compiler can
a848cd7e
SC
1050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gtk use GTK+
1055 --with-motif use Motif/Lesstif
1056 --with-mac use Mac OS X
1057 --with-cocoa use Cocoa
1058 --with-wine use Wine
1059 --with-msw use MS-Windows
1060 --with-pm use OS/2 Presentation Manager
1061 --with-mgl use SciTech MGL
1062 --with-microwin use MicroWindows
1063 --with-x11 use X11
1064 --with-libpng use libpng (PNG image format)
1065 --with-libjpeg use libjpeg (JPEG file format)
1066 --with-libtiff use libtiff (TIFF file format)
1067 --with-libxpm use libxpm (XPM file format)
1068 --with-libmspack use libmspack (CHM help files loading)
1069 --with-sdl use SDL for audio on Unix
d51253e8 1070 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1071 --with-opengl use OpenGL (or Mesa)
1072 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1073 --with-regex enable support for wxRegEx class
1074 --with-zlib use zlib for LZW compression
1075 --with-odbc use the IODBC and wxODBC classes
1076 --with-expat enable XML support using expat parser
ceec2216 1077 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1078 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1079 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1080 --with-x use the X Window System
1081 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1082 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1083 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1084 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1085 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1086
1087Some influential environment variables:
dcc1b6ad
VS
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
a848cd7e
SC
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
77ffb593 1102Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
ac1cb8d3
VS
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
a848cd7e
SC
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1185 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
07158944 1191 cd "$ac_popdir"
a848cd7e
SC
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
63c4f6da 1198wxWidgets configure 2.5.5
ac1cb8d3 1199generated by GNU Autoconf 2.59
a848cd7e 1200
ac1cb8d3 1201Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
63c4f6da 1212It was created by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 1213generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
ac1cb8d3 1290 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1291 else
ac1cb8d3
VS
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
a848cd7e
SC
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
ac1cb8d3
VS
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1338 ;;
1339 *)
1340 sed -n \
ac1cb8d3 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
ac1cb8d3 1370 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
ac1cb8d3 1389 rm -f core *.core &&
a848cd7e
SC
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
ac1cb8d3 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1489echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1491echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1492 ac_cache_corrupted=:
a848cd7e
SC
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1546
1547
1548
1549
1550
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1556 break
1557 elif test -f $ac_dir/install.sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1560 break
1561 elif test -f $ac_dir/shtool; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1564 break
1565 fi
1566done
1567if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking host system type" >&5
1609echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_host_alias=$host_alias
1614test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623echo "${ECHO_T}$ac_cv_host" >&6
1624host=$ac_cv_host
1625host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking target system type" >&5
1631echo $ECHO_N "checking target system type... $ECHO_C" >&6
1632if test "${ac_cv_target+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_target_alias=$target_alias
1636test "x$ac_cv_target_alias" = "x" &&
1637 ac_cv_target_alias=$ac_cv_host_alias
1638ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1645echo "${ECHO_T}$ac_cv_target" >&6
1646target=$ac_cv_target
1647target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652# The aliases save the names the user supplied, while $host etc.
1653# will get canonicalized.
1654test -n "$target_alias" &&
1655 test "$program_prefix$program_suffix$program_transform_name" = \
1656 NONENONEs,x,x, &&
1657 program_prefix=${target_alias}-
1658
1659
1660
ceec2216
RL
1661wx_major_version_number=2
1662wx_minor_version_number=5
63c4f6da
MW
1663wx_release_number=5
1664wx_subrelease_number=0
a848cd7e 1665
ceec2216
RL
1666WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1667WX_VERSION=$WX_RELEASE.$wx_release_number
1668WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1669
ceec2216 1670WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1671
63c4f6da 1672WX_CURRENT=5
a848cd7e 1673WX_REVISION=0
63c4f6da 1674WX_AGE=5
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
1727case "${host}" in
1728 *-hp-hpux* )
1729 USE_HPUX=1
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1732 SO_SUFFIX=sl
1733 cat >>confdefs.h <<\_ACEOF
1734#define __HPUX__ 1
1735_ACEOF
1736
1737 ;;
1738 *-*-linux* )
1739 USE_LINUX=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __LINUX__ 1
1742_ACEOF
1743
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-gnu* | *-*-k*bsd*-gnu )
1755 USE_GNU=1
1756 TMP=`uname -m`
1757 if test "x$TMP" = "xalpha"; then
1758 USE_ALPHA=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __ALPHA__ 1
1761_ACEOF
1762
1763 fi
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-irix5* | *-*-irix6* )
1767 USE_SGI=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SGI__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SVR4__ 1
1775_ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 ;;
1779 *-*-solaris2* )
1780 USE_SUN=1
1781 USE_SOLARIS=1
1782 USE_SVR4=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SUN__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SOLARIS__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1797 ;;
1798 *-*-sunos4* )
1799 USE_SUN=1
1800 USE_SUNOS=1
1801 USE_BSD=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUNOS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 ;;
1816 *-*-freebsd*)
1817 USE_BSD=1
1818 USE_FREEBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __FREEBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-openbsd*)
1830 USE_BSD=1
1831 USE_OPENBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __OPENBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-netbsd*)
1843 USE_BSD=1
1844 USE_NETBSD=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __NETBSD__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __BSD__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_GTK=1
1854 ;;
1855 *-*-osf* )
1856 USE_ALPHA=1
1857 USE_OSF=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __OSF__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1868 ;;
1869 *-*-dgux5* )
1870 USE_ALPHA=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-sysv5* )
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SYSV__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-aix* )
1896 USE_AIX=1
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 SO_SUFFIX=a
1900 cat >>confdefs.h <<\_ACEOF
1901#define __AIX__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914
1915 *-*-*UnixWare*)
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 USE_UNIXWARE=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __UNIXWARE__ 1
1921_ACEOF
1922
1923 ;;
1924
1925 *-*-cygwin* | *-*-mingw32* )
1926 SO_SUFFIX=dll
1927 PROGRAM_EXT=".exe"
1928 RESCOMP=windres
1929 DEFAULT_DEFAULT_wxUSE_MSW=1
1930 ;;
1931
1932 *-pc-msdosdjgpp )
1933 USE_UNIX=0
1934 USE_DOS=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __DOS__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_MGL=1
1941 LIBS="$LIBS -lstdc++"
1942 ;;
1943
1944 *-pc-os2_emx | *-pc-os2-emx )
1945 cat >>confdefs.h <<\_ACEOF
1946#define __EMX__ 1
1947_ACEOF
1948
1949 USE_OS2=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __OS2__ 1
1952_ACEOF
1953
1954 PROGRAM_EXT=".exe"
1955 DEFAULT_DEFAULT_wxUSE_PM=1
1956 CXX=gcc
1957 LDFLAGS="$LDFLAGS -Zcrtdll"
1958 ac_executable_extensions=".exe"
1959 export ac_executable_extensions
1960 ac_save_IFS="$IFS"
1961 IFS='\\'
1962 ac_TEMP_PATH=
1963 for ac_dir in $PATH; do
1964 IFS=$ac_save_IFS
1965 if test -z "$ac_TEMP_PATH"; then
1966 ac_TEMP_PATH="$ac_dir"
1967 else
1968 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1969 fi
1970 done
1971 export PATH="$ac_TEMP_PATH"
1972 unset ac_TEMP_PATH
1973 ;;
1974
1975 powerpc-*-darwin* )
1976 USE_BSD=1
1977 USE_DARWIN=1
1978 SO_SUFFIX=dylib
1979 cat >>confdefs.h <<\_ACEOF
1980#define __BSD__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __DARWIN__ 1
a848cd7e
SC
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2074 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
07158944 2083 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2269 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e
SC
2270 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2271 DEFAULT_wxUSE_STD_IOSTREAM=no
2272 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2273 DEFAULT_wxUSE_DATETIME=yes
2274 DEFAULT_wxUSE_TIMER=yes
2275 DEFAULT_wxUSE_STOPWATCH=yes
2276 DEFAULT_wxUSE_FILE=yes
2277 DEFAULT_wxUSE_FFILE=yes
07158944 2278 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2279 DEFAULT_wxUSE_TEXTBUFFER=yes
2280 DEFAULT_wxUSE_TEXTFILE=yes
2281 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2282 DEFAULT_wxUSE_MEDIACTRL=no
2283 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2284 DEFAULT_wxUSE_INTL=yes
2285 DEFAULT_wxUSE_CONFIG=yes
2286 DEFAULT_wxUSE_FONTMAP=yes
2287 DEFAULT_wxUSE_STREAMS=yes
2288 DEFAULT_wxUSE_SOCKETS=yes
2289 DEFAULT_wxUSE_OLE=yes
2290 DEFAULT_wxUSE_DATAOBJ=yes
2291 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2292 DEFAULT_wxUSE_JOYSTICK=yes
2293 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2294 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2295 DEFAULT_wxUSE_LONGLONG=yes
2296 DEFAULT_wxUSE_GEOMETRY=yes
2297
2298 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2299 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2300 DEFAULT_wxUSE_POSTSCRIPT=yes
2301
2302 DEFAULT_wxUSE_CLIPBOARD=yes
2303 DEFAULT_wxUSE_TOOLTIPS=yes
2304 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2305 DEFAULT_wxUSE_DRAGIMAGE=yes
2306 DEFAULT_wxUSE_SPLINES=yes
2307
8a7b1113 2308 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2309 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2310 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2311 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2312
2313 DEFAULT_wxUSE_RESOURCES=no
2314 DEFAULT_wxUSE_CONSTRAINTS=yes
2315 DEFAULT_wxUSE_IPC=yes
2316 DEFAULT_wxUSE_HELP=yes
2317 DEFAULT_wxUSE_MS_HTML_HELP=yes
2318 DEFAULT_wxUSE_WXHTML_HELP=yes
2319 DEFAULT_wxUSE_TREELAYOUT=yes
2320 DEFAULT_wxUSE_METAFILE=yes
2321 DEFAULT_wxUSE_MIMETYPE=yes
2322 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2323 DEFAULT_wxUSE_PROTOCOL=yes
2324 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2325 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2326 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2327 DEFAULT_wxUSE_URL=yes
2328
2329 DEFAULT_wxUSE_COMMONDLGS=yes
2330 DEFAULT_wxUSE_CHOICEDLG=yes
2331 DEFAULT_wxUSE_COLOURDLG=yes
2332 DEFAULT_wxUSE_DIRDLG=yes
2333 DEFAULT_wxUSE_FILEDLG=yes
2334 DEFAULT_wxUSE_FINDREPLDLG=yes
2335 DEFAULT_wxUSE_FONTDLG=yes
2336 DEFAULT_wxUSE_MSGDLG=yes
2337 DEFAULT_wxUSE_NUMBERDLG=yes
2338 DEFAULT_wxUSE_TEXTDLG=yes
2339 DEFAULT_wxUSE_SPLASH=yes
2340 DEFAULT_wxUSE_STARTUP_TIPS=yes
2341 DEFAULT_wxUSE_PROGRESSDLG=yes
2342 DEFAULT_wxUSE_WIZARDDLG=yes
2343
2344 DEFAULT_wxUSE_MENUS=yes
2345 DEFAULT_wxUSE_MINIFRAME=yes
2346 DEFAULT_wxUSE_HTML=yes
9a8f0513 2347 DEFAULT_wxUSE_XRC=yes
646b6ec1 2348 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_FILESYSTEM=yes
2350 DEFAULT_wxUSE_FS_INET=yes
2351 DEFAULT_wxUSE_FS_ZIP=yes
2352 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2353 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2354 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_VALIDATORS=yes
2356
2357 DEFAULT_wxUSE_ACCEL=yes
2358 DEFAULT_wxUSE_BUTTON=yes
2359 DEFAULT_wxUSE_BMPBUTTON=yes
2360 DEFAULT_wxUSE_CALCTRL=yes
2361 DEFAULT_wxUSE_CARET=yes
2362 DEFAULT_wxUSE_CHECKBOX=yes
2363 DEFAULT_wxUSE_CHECKLST=yes
2364 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2365 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2366 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2367 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_DISPLAY=yes
2369 DEFAULT_wxUSE_GAUGE=yes
2370 DEFAULT_wxUSE_GRID=yes
2371 DEFAULT_wxUSE_IMAGLIST=yes
2372 DEFAULT_wxUSE_LISTBOOK=yes
2373 DEFAULT_wxUSE_LISTBOX=yes
2374 DEFAULT_wxUSE_LISTCTRL=yes
2375 DEFAULT_wxUSE_NOTEBOOK=yes
2376 DEFAULT_wxUSE_RADIOBOX=yes
2377 DEFAULT_wxUSE_RADIOBTN=yes
2378 DEFAULT_wxUSE_SASH=yes
2379 DEFAULT_wxUSE_SCROLLBAR=yes
2380 DEFAULT_wxUSE_SLIDER=yes
2381 DEFAULT_wxUSE_SPINBTN=yes
2382 DEFAULT_wxUSE_SPINCTRL=yes
2383 DEFAULT_wxUSE_SPLITTER=yes
2384 DEFAULT_wxUSE_STATBMP=yes
2385 DEFAULT_wxUSE_STATBOX=yes
2386 DEFAULT_wxUSE_STATLINE=yes
2387 DEFAULT_wxUSE_STATTEXT=yes
2388 DEFAULT_wxUSE_STATUSBAR=yes
2389 DEFAULT_wxUSE_TABDIALOG=no
2390 DEFAULT_wxUSE_TEXTCTRL=yes
2391 DEFAULT_wxUSE_TOGGLEBTN=yes
2392 DEFAULT_wxUSE_TOOLBAR=yes
2393 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2394 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2395 DEFAULT_wxUSE_TREECTRL=yes
2396 DEFAULT_wxUSE_POPUPWIN=yes
2397 DEFAULT_wxUSE_TIPWINDOW=yes
2398
2399 DEFAULT_wxUSE_UNICODE=no
2400 DEFAULT_wxUSE_UNICODE_MSLU=yes
2401 DEFAULT_wxUSE_WCSRTOMBS=no
2402
2403 DEFAULT_wxUSE_PALETTE=yes
2404 DEFAULT_wxUSE_IMAGE=yes
2405 DEFAULT_wxUSE_GIF=yes
2406 DEFAULT_wxUSE_PCX=yes
2407 DEFAULT_wxUSE_IFF=no
2408 DEFAULT_wxUSE_PNM=yes
2409 DEFAULT_wxUSE_XPM=yes
2410 DEFAULT_wxUSE_ICO_CUR=yes
2411 DEFAULT_wxUSE_ACCESSIBILITY=no
2412
2413 DEFAULT_wxUSE_MONOLITHIC=no
2414 DEFAULT_wxUSE_PLUGINS=no
2415 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2416
2417 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2418fi
2419
2420
2421
2422for toolkit in `echo $ALL_TOOLKITS`; do
2423 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2424 if test "x$LINE" != "x" ; then
2425 has_toolkit_in_cache=1
2426 eval "DEFAULT_$LINE"
2427 eval "CACHE_$toolkit=1"
2428 fi
2429done
2430
2431
2432
2433 enablestring=
2434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2435echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2436 no_cache=0
2437 # Check whether --enable-gui or --disable-gui was given.
2438if test "${enable_gui+set}" = set; then
2439 enableval="$enable_gui"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_gui='wxUSE_GUI=yes'
2443 else
2444 ac_cv_use_gui='wxUSE_GUI=no'
2445 fi
2446
2447else
2448
2449 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2457
2458fi;
2459
2460 eval "$ac_cv_use_gui"
2461 if test "$no_cache" != 1; then
2462 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2463 fi
2464
2465 if test "$wxUSE_GUI" = yes; then
2466 echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471 fi
2472
2473
2474 enablestring=
2475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2476echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2477 no_cache=0
2478 # Check whether --enable-monolithic or --disable-monolithic was given.
2479if test "${enable_monolithic+set}" = set; then
2480 enableval="$enable_monolithic"
2481
2482 if test "$enableval" = yes; then
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2484 else
2485 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2486 fi
2487
2488else
2489
2490 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2491 if test "x$LINE" != x ; then
2492 eval "DEFAULT_$LINE"
2493 else
2494 no_cache=1
2495 fi
2496
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2498
2499fi;
2500
2501 eval "$ac_cv_use_monolithic"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_MONOLITHIC" = yes; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512 fi
2513
2514
2515 enablestring=
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2518 no_cache=0
2519 # Check whether --enable-plugins or --disable-plugins was given.
2520if test "${enable_plugins+set}" = set; then
2521 enableval="$enable_plugins"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2525 else
2526 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2539
2540fi;
2541
2542 eval "$ac_cv_use_plugins"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_PLUGINS" = yes; then
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553 fi
2554
2555
2556if test "$wxUSE_GUI" = "yes"; then
2557
2558
2559 enablestring=
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2562 no_cache=0
2563 # Check whether --enable-universal or --disable-universal was given.
2564if test "${enable_universal+set}" = set; then
2565 enableval="$enable_universal"
2566
2567 if test "$enableval" = yes; then
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2569 else
2570 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2571 fi
2572
2573else
2574
2575 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2583
2584fi;
2585
2586 eval "$ac_cv_use_universal"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_UNIVERSAL" = yes; then
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597 fi
2598
2599
2600# Check whether --with-gtk or --without-gtk was given.
2601if test "${with_gtk+set}" = set; then
2602 withval="$with_gtk"
2603 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-motif or --without-motif was given.
2607if test "${with_motif+set}" = set; then
2608 withval="$with_motif"
2609 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-mac or --without-mac was given.
2613if test "${with_mac+set}" = set; then
2614 withval="$with_mac"
c228d3a4 2615 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-cocoa or --without-cocoa was given.
2619if test "${with_cocoa+set}" = set; then
2620 withval="$with_cocoa"
c228d3a4 2621 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-wine or --without-wine was given.
2625if test "${with_wine+set}" = set; then
2626 withval="$with_wine"
2627 wxUSE_WINE="$withval" CACHE_WINE=1
2628fi;
2629
2630# Check whether --with-msw or --without-msw was given.
2631if test "${with_msw+set}" = set; then
2632 withval="$with_msw"
2633 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-pm or --without-pm was given.
2637if test "${with_pm+set}" = set; then
2638 withval="$with_pm"
2639 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-mgl or --without-mgl was given.
2643if test "${with_mgl+set}" = set; then
2644 withval="$with_mgl"
2645 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-microwin or --without-microwin was given.
2649if test "${with_microwin+set}" = set; then
2650 withval="$with_microwin"
2651 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-x11 or --without-x11 was given.
2655if test "${with_x11+set}" = set; then
2656 withval="$with_x11"
2657 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-nanox or --disable-nanox was given.
2665if test "${enable_nanox+set}" = set; then
2666 enableval="$enable_nanox"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_nanox='wxUSE_NANOX=yes'
2670 else
2671 ac_cv_use_nanox='wxUSE_NANOX=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2684
2685fi;
2686
2687 eval "$ac_cv_use_nanox"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_NANOX" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701
2702 enablestring=
2703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2704echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2705 no_cache=0
2706 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2707if test "${enable_gtk2+set}" = set; then
2708 enableval="$enable_gtk2"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2712 else
2713 ac_cv_use_gtk2='wxUSE_GTK2=no'
2714 fi
2715
2716else
2717
2718 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2726
2727fi;
2728
2729 eval "$ac_cv_use_gtk2"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_GTK2" = yes; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 fi
2741
2742
2743 enablestring=
2744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2745echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2746 no_cache=0
2747 # Check whether --enable-gpe or --disable-gpe was given.
2748if test "${enable_gpe+set}" = set; then
2749 enableval="$enable_gpe"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_gpe='wxUSE_GPE=yes'
2753 else
2754 ac_cv_use_gpe='wxUSE_GPE=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2767
2768fi;
2769
2770 eval "$ac_cv_use_gpe"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_GPE" = yes; then
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781 fi
2782
2783
2784
2785 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2786echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2787 no_cache=0
2788
2789# Check whether --with-libpng or --without-libpng was given.
2790if test "${with_libpng+set}" = set; then
2791 withval="$with_libpng"
2792
2793 if test "$withval" = yes; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2795 elif test "$withval" = no; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2797 elif test "$withval" = sys; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2799 elif test "$withval" = builtin; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807else
2808
2809 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2810 if test "x$LINE" != x ; then
2811 eval "DEFAULT_$LINE"
2812 else
2813 no_cache=1
2814 fi
2815
2816 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2817
2818fi;
2819
2820 eval "$ac_cv_use_libpng"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LIBPNG" = yes; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827echo "${ECHO_T}yes" >&6
2828 elif test "$wxUSE_LIBPNG" = no; then
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 elif test "$wxUSE_LIBPNG" = sys; then
2832 echo "$as_me:$LINENO: result: system version" >&5
2833echo "${ECHO_T}system version" >&6
2834 elif test "$wxUSE_LIBPNG" = builtin; then
2835 echo "$as_me:$LINENO: result: builtin version" >&5
2836echo "${ECHO_T}builtin version" >&6
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2845echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2846 no_cache=0
2847
2848# Check whether --with-libjpeg or --without-libjpeg was given.
2849if test "${with_libjpeg+set}" = set; then
2850 withval="$with_libjpeg"
2851
2852 if test "$withval" = yes; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866else
2867
2868 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2876
2877fi;
2878
2879 eval "$ac_cv_use_libjpeg"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LIBJPEG" = yes; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 elif test "$wxUSE_LIBJPEG" = no; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
2890 elif test "$wxUSE_LIBJPEG" = sys; then
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
2893 elif test "$wxUSE_LIBJPEG" = builtin; then
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902
2903 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2904echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2905 no_cache=0
2906
2907# Check whether --with-libtiff or --without-libtiff was given.
2908if test "${with_libtiff+set}" = set; then
2909 withval="$with_libtiff"
2910
2911 if test "$withval" = yes; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2913 elif test "$withval" = no; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2915 elif test "$withval" = sys; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925else
2926
2927 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2935
2936fi;
2937
2938 eval "$ac_cv_use_libtiff"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_LIBTIFF" = yes; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
2946 elif test "$wxUSE_LIBTIFF" = no; then
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949 elif test "$wxUSE_LIBTIFF" = sys; then
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
2952 elif test "$wxUSE_LIBTIFF" = builtin; then
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2963echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2964 no_cache=0
2965
2966# Check whether --with-libxpm or --without-libxpm was given.
2967if test "${with_libxpm+set}" = set; then
2968 withval="$with_libxpm"
2969
2970 if test "$withval" = yes; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2972 elif test "$withval" = no; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2974 elif test "$withval" = sys; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2994
2995fi;
2996
2997 eval "$ac_cv_use_libxpm"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_LIBXPM" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 elif test "$wxUSE_LIBXPM" = no; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 elif test "$wxUSE_LIBXPM" = sys; then
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
3011 elif test "$wxUSE_LIBXPM" = builtin; then
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
3014 else
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3022echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-libmspack or --without-libmspack was given.
3026if test "${with_libmspack+set}" = set; then
3027 withval="$with_libmspack"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3031 else
3032 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3045
3046fi;
3047
3048 eval "$ac_cv_use_libmspack"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBMSPACK" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 fi
3060
3061
3062 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3063echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3064 no_cache=0
3065
3066# Check whether --with-sdl or --without-sdl was given.
3067if test "${with_sdl+set}" = set; then
3068 withval="$with_sdl"
3069
3070 if test "$withval" = yes; then
3071 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3072 else
3073 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3074 fi
3075
3076else
3077
3078 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3086
3087fi;
3088
3089 eval "$ac_cv_use_sdl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_LIBSDL" = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100 fi
3101
3102
d1c38808
VZ
3103 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3104echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-gnomeprint or --without-gnomeprint was given.
3108if test "${with_gnomeprint+set}" = set; then
3109 withval="$with_gnomeprint"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3113 else
3114 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3127
3128fi;
3129
3130 eval "$ac_cv_use_gnomeprint"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
a848cd7e
SC
3144 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3145echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3146 no_cache=0
3147
3148# Check whether --with-opengl or --without-opengl was given.
3149if test "${with_opengl+set}" = set; then
3150 withval="$with_opengl"
3151
3152 if test "$withval" = yes; then
3153 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3154 else
3155 ac_cv_use_opengl='wxUSE_OPENGL=no'
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3168
3169fi;
3170
3171 eval "$ac_cv_use_opengl"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_OPENGL" = yes; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182 fi
3183
3184
3185fi
3186
3187
3188 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3189echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3190 no_cache=0
3191
3192# Check whether --with-dmalloc or --without-dmalloc was given.
3193if test "${with_dmalloc+set}" = set; then
3194 withval="$with_dmalloc"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3198 else
3199 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3212
3213fi;
3214
3215 eval "$ac_cv_use_dmalloc"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_DMALLOC" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
3229 echo "$as_me:$LINENO: checking for --with-regex" >&5
3230echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3231 no_cache=0
3232
3233# Check whether --with-regex or --without-regex was given.
3234if test "${with_regex+set}" = set; then
3235 withval="$with_regex"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_regex='wxUSE_REGEX=yes'
3239 elif test "$withval" = no; then
3240 ac_cv_use_regex='wxUSE_REGEX=no'
3241 elif test "$withval" = sys; then
3242 ac_cv_use_regex='wxUSE_REGEX=sys'
3243 elif test "$withval" = builtin; then
3244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3245 else
3246 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3247echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3261
3262fi;
3263
3264 eval "$ac_cv_use_regex"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_REGEX" = yes; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272 elif test "$wxUSE_REGEX" = no; then
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275 elif test "$wxUSE_REGEX" = sys; then
3276 echo "$as_me:$LINENO: result: system version" >&5
3277echo "${ECHO_T}system version" >&6
3278 elif test "$wxUSE_REGEX" = builtin; then
3279 echo "$as_me:$LINENO: result: builtin version" >&5
3280echo "${ECHO_T}builtin version" >&6
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3289echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3290 no_cache=0
3291
3292# Check whether --with-zlib or --without-zlib was given.
3293if test "${with_zlib+set}" = set; then
3294 withval="$with_zlib"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3298 elif test "$withval" = no; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=no'
3300 elif test "$withval" = sys; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3302 elif test "$withval" = builtin; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3304 else
3305 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3306echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3320
3321fi;
3322
3323 eval "$ac_cv_use_zlib"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_ZLIB" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 elif test "$wxUSE_ZLIB" = no; then
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 elif test "$wxUSE_ZLIB" = sys; then
3335 echo "$as_me:$LINENO: result: system version" >&5
3336echo "${ECHO_T}system version" >&6
3337 elif test "$wxUSE_ZLIB" = builtin; then
3338 echo "$as_me:$LINENO: result: builtin version" >&5
3339echo "${ECHO_T}builtin version" >&6
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3348echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3349 no_cache=0
3350
3351# Check whether --with-odbc or --without-odbc was given.
3352if test "${with_odbc+set}" = set; then
3353 withval="$with_odbc"
3354
3355 if test "$withval" = yes; then
3356 ac_cv_use_odbc='wxUSE_ODBC=yes'
3357 elif test "$withval" = no; then
3358 ac_cv_use_odbc='wxUSE_ODBC=no'
3359 elif test "$withval" = sys; then
3360 ac_cv_use_odbc='wxUSE_ODBC=sys'
3361 elif test "$withval" = builtin; then
3362 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3363 else
3364 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3365echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3366 { (exit 1); exit 1; }; }
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3379
3380fi;
3381
3382 eval "$ac_cv_use_odbc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_ODBC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 elif test "$wxUSE_ODBC" = no; then
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 elif test "$wxUSE_ODBC" = sys; then
3394 echo "$as_me:$LINENO: result: system version" >&5
3395echo "${ECHO_T}system version" >&6
3396 elif test "$wxUSE_ODBC" = builtin; then
3397 echo "$as_me:$LINENO: result: builtin version" >&5
3398echo "${ECHO_T}builtin version" >&6
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406 echo "$as_me:$LINENO: checking for --with-expat" >&5
3407echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-expat or --without-expat was given.
3411if test "${with_expat+set}" = set; then
3412 withval="$with_expat"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_expat='wxUSE_EXPAT=yes'
3416 elif test "$withval" = no; then
3417 ac_cv_use_expat='wxUSE_EXPAT=no'
3418 elif test "$withval" = sys; then
3419 ac_cv_use_expat='wxUSE_EXPAT=sys'
3420 elif test "$withval" = builtin; then
3421 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3422 else
3423 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3424echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3425 { (exit 1); exit 1; }; }
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3438
3439fi;
3440
3441 eval "$ac_cv_use_expat"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_EXPAT" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 elif test "$wxUSE_EXPAT" = no; then
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 elif test "$wxUSE_EXPAT" = sys; then
3453 echo "$as_me:$LINENO: result: system version" >&5
3454echo "${ECHO_T}system version" >&6
3455 elif test "$wxUSE_EXPAT" = builtin; then
3456 echo "$as_me:$LINENO: result: builtin version" >&5
3457echo "${ECHO_T}builtin version" >&6
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464
3465
3466
3467 enablestring=
3468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3469echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3470 no_cache=0
3471 # Check whether --enable-shared or --disable-shared was given.
3472if test "${enable_shared+set}" = set; then
3473 enableval="$enable_shared"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_shared='wxUSE_SHARED=yes'
3477 else
3478 ac_cv_use_shared='wxUSE_SHARED=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3491
3492fi;
3493
3494 eval "$ac_cv_use_shared"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_SHARED" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 enablestring=
3509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3510echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3511 no_cache=0
3512 # Check whether --enable-optimise or --disable-optimise was given.
3513if test "${enable_optimise+set}" = set; then
3514 enableval="$enable_optimise"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3518 else
3519 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3532
3533fi;
3534
3535 eval "$ac_cv_use_optimise"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_OPTIMISE" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-debug or --disable-debug was given.
3554if test "${enable_debug+set}" = set; then
3555 enableval="$enable_debug"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_debug='wxUSE_DEBUG=yes'
3559 else
3560 ac_cv_use_debug='wxUSE_DEBUG=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3573
3574fi;
3575
3576 eval "$ac_cv_use_debug"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_DEBUG" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589
3590 enablestring=
3591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3592echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3593 no_cache=0
3594 # Check whether --enable-stl or --disable-stl was given.
3595if test "${enable_stl+set}" = set; then
3596 enableval="$enable_stl"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stl='wxUSE_STL=yes'
3600 else
3601 ac_cv_use_stl='wxUSE_STL=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3614
3615fi;
3616
3617 eval "$ac_cv_use_stl"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_STL" = yes; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628 fi
3629
3630if test "$USE_OS2" = "1"; then
3631
3632 enablestring=
3633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3634echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3635 no_cache=0
3636 # Check whether --enable-omf or --disable-omf was given.
3637if test "${enable_omf+set}" = set; then
3638 enableval="$enable_omf"
3639
3640 if test "$enableval" = yes; then
3641 ac_cv_use_omf='wxUSE_OMF=yes'
3642 else
3643 ac_cv_use_omf='wxUSE_OMF=no'
3644 fi
3645
3646else
3647
3648 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3649 if test "x$LINE" != x ; then
3650 eval "DEFAULT_$LINE"
3651 else
3652 no_cache=1
3653 fi
3654
3655 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3656
3657fi;
3658
3659 eval "$ac_cv_use_omf"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_OMF" = yes; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666echo "${ECHO_T}yes" >&6
3667 else
3668 echo "$as_me:$LINENO: result: no" >&5
3669echo "${ECHO_T}no" >&6
3670 fi
3671
3672fi
3673
3674if test "$wxUSE_DEBUG" = "yes"; then
3675 DEFAULT_wxUSE_DEBUG_FLAG=yes
3676 DEFAULT_wxUSE_DEBUG_INFO=yes
3677 BUILD=debug
3678elif test "$wxUSE_DEBUG" = "no"; then
3679 DEFAULT_wxUSE_DEBUG_FLAG=no
3680 DEFAULT_wxUSE_DEBUG_INFO=no
3681 BUILD=release
3682fi
3683
3684
3685 enablestring=
3686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3687echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3688 no_cache=0
3689 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3690if test "${enable_debug_flag+set}" = set; then
3691 enableval="$enable_debug_flag"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3695 else
3696 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3709
3710fi;
3711
3712 eval "$ac_cv_use_debug_flag"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_DEBUG_FLAG" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723 fi
3724
3725
3726 enablestring=
3727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3728echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3729 no_cache=0
3730 # Check whether --enable-debug_info or --disable-debug_info was given.
3731if test "${enable_debug_info+set}" = set; then
3732 enableval="$enable_debug_info"
3733
3734 if test "$enableval" = yes; then
3735 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3736 else
3737 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3738 fi
3739
3740else
3741
3742 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3750
3751fi;
3752
3753 eval "$ac_cv_use_debug_info"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_DEBUG_INFO" = yes; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760echo "${ECHO_T}yes" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764 fi
3765
3766
3767 enablestring=
3768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3769echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3770 no_cache=0
3771 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3772if test "${enable_debug_gdb+set}" = set; then
3773 enableval="$enable_debug_gdb"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3777 else
3778 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3791
3792fi;
3793
3794 eval "$ac_cv_use_debug_gdb"
3795 if test "$no_cache" != 1; then
3796 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3797 fi
3798
3799 if test "$wxUSE_DEBUG_GDB" = yes; then
3800 echo "$as_me:$LINENO: result: yes" >&5
3801echo "${ECHO_T}yes" >&6
3802 else
3803 echo "$as_me:$LINENO: result: no" >&5
3804echo "${ECHO_T}no" >&6
3805 fi
3806
3807
3808 enablestring=
3809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3810echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3811 no_cache=0
3812 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3813if test "${enable_debug_cntxt+set}" = set; then
3814 enableval="$enable_debug_cntxt"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3818 else
3819 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3820 fi
3821
3822else
3823
3824 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3832
3833fi;
3834
3835 eval "$ac_cv_use_debug_cntxt"
3836 if test "$no_cache" != 1; then
3837 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3838 fi
3839
3840 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3841 echo "$as_me:$LINENO: result: yes" >&5
3842echo "${ECHO_T}yes" >&6
3843 else
3844 echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6
3846 fi
3847
3848
3849 enablestring=
3850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3851echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3852 no_cache=0
3853 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3854if test "${enable_mem_tracing+set}" = set; then
3855 enableval="$enable_mem_tracing"
3856
3857 if test "$enableval" = yes; then
3858 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3859 else
3860 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3861 fi
3862
3863else
3864
3865 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3873
3874fi;
3875
3876 eval "$ac_cv_use_mem_tracing"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_MEM_TRACING" = yes; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883echo "${ECHO_T}yes" >&6
3884 else
3885 echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6
3887 fi
3888
3889
3890 enablestring=
3891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3892echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3893 no_cache=0
3894 # Check whether --enable-profile or --disable-profile was given.
3895if test "${enable_profile+set}" = set; then
3896 enableval="$enable_profile"
3897
3898 if test "$enableval" = yes; then
3899 ac_cv_use_profile='wxUSE_PROFILE=yes'
3900 else
3901 ac_cv_use_profile='wxUSE_PROFILE=no'
3902 fi
3903
3904else
3905
3906 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3907 if test "x$LINE" != x ; then
3908 eval "DEFAULT_$LINE"
3909 else
3910 no_cache=1
3911 fi
3912
3913 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3914
3915fi;
3916
3917 eval "$ac_cv_use_profile"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_PROFILE" = yes; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928 fi
3929
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3936if test "${enable_no_rtti+set}" = set; then
3937 enableval="$enable_no_rtti"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3941 else
3942 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3955
3956fi;
3957
3958 eval "$ac_cv_use_no_rtti"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_NO_RTTI" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971
3972 enablestring=
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3974echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3975 no_cache=0
3976 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3977if test "${enable_no_exceptions+set}" = set; then
3978 enableval="$enable_no_exceptions"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3982 else
3983 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3996
3997fi;
3998
3999 eval "$ac_cv_use_no_exceptions"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010 fi
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-permissive or --disable-permissive was given.
4018if test "${enable_permissive+set}" = set; then
4019 enableval="$enable_permissive"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4023 else
4024 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4037
4038fi;
4039
4040 eval "$ac_cv_use_permissive"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_PERMISSIVE" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-no_deps or --disable-no_deps was given.
4059if test "${enable_no_deps+set}" = set; then
4060 enableval="$enable_no_deps"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4064 else
4065 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4078
4079fi;
4080
4081 eval "$ac_cv_use_no_deps"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_NO_DEPS" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095
4096 enablestring=
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-compat22 or --disable-compat22 was given.
4101if test "${enable_compat22+set}" = set; then
4102 enableval="$enable_compat22"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4106 else
4107 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4120
4121fi;
4122
4123 eval "$ac_cv_use_compat22"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134 fi
4135
4136
4137 enablestring=disable
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-compat24 or --disable-compat24 was given.
4142if test "${enable_compat24+set}" = set; then
4143 enableval="$enable_compat24"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4147 else
4148 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4161
4162fi;
4163
4164 eval "$ac_cv_use_compat24"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175 fi
4176
4177
ffa0583f
RL
4178
4179 enablestring=
4180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4181echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4182 no_cache=0
4183 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4184if test "${enable_rpath+set}" = set; then
4185 enableval="$enable_rpath"
ffa0583f
RL
4186
4187 if test "$enableval" = yes; then
4188 ac_cv_use_rpath='wxUSE_RPATH=yes'
4189 else
4190 ac_cv_use_rpath='wxUSE_RPATH=no'
4191 fi
4192
4193else
4194
4195 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4196 if test "x$LINE" != x ; then
4197 eval "DEFAULT_$LINE"
4198 else
4199 no_cache=1
4200 fi
4201
4202 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4203
a848cd7e
SC
4204fi;
4205
ffa0583f
RL
4206 eval "$ac_cv_use_rpath"
4207 if test "$no_cache" != 1; then
4208 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4209 fi
4210
4211 if test "$wxUSE_RPATH" = yes; then
4212 echo "$as_me:$LINENO: result: yes" >&5
4213echo "${ECHO_T}yes" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217 fi
4218
a848cd7e
SC
4219
4220
4221
4222
4223 enablestring=
4224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4225echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4226 no_cache=0
4227 # Check whether --enable-intl or --disable-intl was given.
4228if test "${enable_intl+set}" = set; then
4229 enableval="$enable_intl"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_intl='wxUSE_INTL=yes'
4233 else
4234 ac_cv_use_intl='wxUSE_INTL=no'
4235 fi
4236
4237else
4238
4239 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4247
4248fi;
4249
4250 eval "$ac_cv_use_intl"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_INTL" = yes; then
4256 echo "$as_me:$LINENO: result: yes" >&5
4257echo "${ECHO_T}yes" >&6
4258 else
4259 echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264 enablestring=
4265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4266echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4267 no_cache=0
4268 # Check whether --enable-config or --disable-config was given.
4269if test "${enable_config+set}" = set; then
4270 enableval="$enable_config"
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_config='wxUSE_CONFIG=yes'
4274 else
4275 ac_cv_use_config='wxUSE_CONFIG=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4288
4289fi;
4290
4291 eval "$ac_cv_use_config"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_CONFIG" = yes; then
4297 echo "$as_me:$LINENO: result: yes" >&5
4298echo "${ECHO_T}yes" >&6
4299 else
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302 fi
4303
4304
4305
4306 enablestring=
4307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4308echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4309 no_cache=0
4310 # Check whether --enable-protocols or --disable-protocols was given.
4311if test "${enable_protocols+set}" = set; then
4312 enableval="$enable_protocols"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4316 else
4317 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4318 fi
4319
4320else
4321
4322 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4330
4331fi;
4332
4333 eval "$ac_cv_use_protocols"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_PROTOCOL" = yes; then
4339 echo "$as_me:$LINENO: result: yes" >&5
4340echo "${ECHO_T}yes" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344 fi
4345
4346
4347 enablestring=
4348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4349echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4350 no_cache=0
4351 # Check whether --enable-ftp or --disable-ftp was given.
4352if test "${enable_ftp+set}" = set; then
4353 enableval="$enable_ftp"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4357 else
4358 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4359 fi
4360
4361else
4362
4363 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4371
4372fi;
4373
4374 eval "$ac_cv_use_ftp"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381echo "${ECHO_T}yes" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385 fi
4386
4387
4388 enablestring=
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-http or --disable-http was given.
4393if test "${enable_http+set}" = set; then
4394 enableval="$enable_http"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4398 else
4399 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4412
4413fi;
4414
4415 eval "$ac_cv_use_http"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422echo "${ECHO_T}yes" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426 fi
4427
4428
4429 enablestring=
4430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4431echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4432 no_cache=0
4433 # Check whether --enable-fileproto or --disable-fileproto was given.
4434if test "${enable_fileproto+set}" = set; then
4435 enableval="$enable_fileproto"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4439 else
4440 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4453
4454fi;
4455
4456 eval "$ac_cv_use_fileproto"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467 fi
4468
4469
4470 enablestring=
4471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4472echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4473 no_cache=0
4474 # Check whether --enable-sockets or --disable-sockets was given.
4475if test "${enable_sockets+set}" = set; then
4476 enableval="$enable_sockets"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4480 else
4481 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4494
4495fi;
4496
4497 eval "$ac_cv_use_sockets"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_SOCKETS" = yes; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508 fi
4509
4510
4511 enablestring=
4512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4513echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4514 no_cache=0
4515 # Check whether --enable-ole or --disable-ole was given.
4516if test "${enable_ole+set}" = set; then
4517 enableval="$enable_ole"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_ole='wxUSE_OLE=yes'
4521 else
4522 ac_cv_use_ole='wxUSE_OLE=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4535
4536fi;
4537
4538 eval "$ac_cv_use_ole"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_OLE" = yes; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549 fi
4550
4551
4552 enablestring=
4553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4554echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4555 no_cache=0
4556 # Check whether --enable-dataobj or --disable-dataobj was given.
4557if test "${enable_dataobj+set}" = set; then
4558 enableval="$enable_dataobj"
4559
4560 if test "$enableval" = yes; then
4561 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4562 else
4563 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4564 fi
4565
4566else
4567
4568 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4576
4577fi;
4578
4579 eval "$ac_cv_use_dataobj"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_DATAOBJ" = yes; then
4585 echo "$as_me:$LINENO: result: yes" >&5
4586echo "${ECHO_T}yes" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593
4594 enablestring=
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4597 no_cache=0
4598 # Check whether --enable-ipc or --disable-ipc was given.
4599if test "${enable_ipc+set}" = set; then
4600 enableval="$enable_ipc"
4601
4602 if test "$enableval" = yes; then
4603 ac_cv_use_ipc='wxUSE_IPC=yes'
4604 else
4605 ac_cv_use_ipc='wxUSE_IPC=no'
4606 fi
4607
4608else
4609
4610 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4618
4619fi;
4620
4621 eval "$ac_cv_use_ipc"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_IPC" = yes; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632 fi
4633
4634
4635
4636 enablestring=
4637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4638echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4639 no_cache=0
4640 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4641if test "${enable_apple_ieee+set}" = set; then
4642 enableval="$enable_apple_ieee"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4646 else
4647 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4660
4661fi;
4662
4663 eval "$ac_cv_use_apple_ieee"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_APPLE_IEEE" = yes; then
4669 echo "$as_me:$LINENO: result: yes" >&5
4670echo "${ECHO_T}yes" >&6
4671 else
4672 echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674 fi
4675
4676
81f90336
MW
4677 enablestring=
4678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4679echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4680 no_cache=0
4681 # Check whether --enable-arcstream or --disable-arcstream was given.
4682if test "${enable_arcstream+set}" = set; then
4683 enableval="$enable_arcstream"
4684
4685 if test "$enableval" = yes; then
9e8e867f 4686 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4687 else
9e8e867f 4688 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4689 fi
4690
4691else
4692
9e8e867f 4693 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4694 if test "x$LINE" != x ; then
4695 eval "DEFAULT_$LINE"
4696 else
4697 no_cache=1
4698 fi
4699
9e8e867f 4700 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4701
4702fi;
4703
4704 eval "$ac_cv_use_arcstream"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4707 fi
4708
9e8e867f 4709 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4710 echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
4712 else
4713 echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6
4715 fi
4716
4717
a848cd7e 4718 enablestring=
36b6448c
VZ
4719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4720echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4721 no_cache=0
36b6448c
VZ
4722 # Check whether --enable-backtrace or --disable-backtrace was given.
4723if test "${enable_backtrace+set}" = set; then
4724 enableval="$enable_backtrace"
a848cd7e
SC
4725
4726 if test "$enableval" = yes; then
36b6448c 4727 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4728 else
36b6448c 4729 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4730 fi
4731
4732else
4733
36b6448c 4734 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
36b6448c 4741 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4742
4743fi;
4744
36b6448c 4745 eval "$ac_cv_use_backtrace"
a848cd7e 4746 if test "$no_cache" != 1; then
36b6448c 4747 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4748 fi
4749
36b6448c 4750 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756 fi
4757
4758
eaff0f0d 4759 enablestring=
36b6448c
VZ
4760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4761echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4762 no_cache=0
36b6448c
VZ
4763 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4764if test "${enable_catch_segvs+set}" = set; then
4765 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4766
4767 if test "$enableval" = yes; then
36b6448c 4768 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4769 else
36b6448c 4770 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4771 fi
4772
4773else
4774
36b6448c 4775 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
36b6448c 4782 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4783
4784fi;
4785
36b6448c 4786 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4787 if test "$no_cache" != 1; then
36b6448c 4788 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4789 fi
4790
36b6448c 4791 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4792 echo "$as_me:$LINENO: result: yes" >&5
4793echo "${ECHO_T}yes" >&6
4794 else
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797 fi
4798
4799
a848cd7e
SC
4800 enablestring=
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4803 no_cache=0
4804 # Check whether --enable-cmdline or --disable-cmdline was given.
4805if test "${enable_cmdline+set}" = set; then
4806 enableval="$enable_cmdline"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4810 else
4811 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4812 fi
4813
4814else
4815
4816 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4824
4825fi;
4826
4827 eval "$ac_cv_use_cmdline"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838 fi
4839
4840
4841 enablestring=
4842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4843echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4844 no_cache=0
4845 # Check whether --enable-datetime or --disable-datetime was given.
4846if test "${enable_datetime+set}" = set; then
4847 enableval="$enable_datetime"
4848
4849 if test "$enableval" = yes; then
4850 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4851 else
4852 ac_cv_use_datetime='wxUSE_DATETIME=no'
4853 fi
4854
4855else
4856
4857 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
4864 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4865
4866fi;
4867
4868 eval "$ac_cv_use_datetime"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_DATETIME" = yes; then
4874 echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879 fi
4880
4881
36b6448c
VZ
4882 enablestring=
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4885 no_cache=0
4886 # Check whether --enable-debugreport or --disable-debugreport was given.
4887if test "${enable_debugreport+set}" = set; then
4888 enableval="$enable_debugreport"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4892 else
4893 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4906
4907fi;
4908
4909 eval "$ac_cv_use_debugreport"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_DEBUGREPORT" = yes; then
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
4920 fi
4921
4922
a848cd7e
SC
4923 enablestring=
4924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4925echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4926 no_cache=0
4927 # Check whether --enable-dialupman or --disable-dialupman was given.
4928if test "${enable_dialupman+set}" = set; then
4929 enableval="$enable_dialupman"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4933 else
4934 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4935 fi
4936
4937else
4938
4939 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4947
4948fi;
4949
4950 eval "$ac_cv_use_dialupman"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
4958 else
4959 echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6
4961 fi
4962
4963
4964 enablestring=
4965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4966echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4967 no_cache=0
4968 # Check whether --enable-dynlib or --disable-dynlib was given.
4969if test "${enable_dynlib+set}" = set; then
4970 enableval="$enable_dynlib"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4974 else
4975 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4988
4989fi;
4990
4991 eval "$ac_cv_use_dynlib"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4997 echo "$as_me:$LINENO: result: yes" >&5
4998echo "${ECHO_T}yes" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002 fi
5003
5004
5005 enablestring=
5006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5007echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5008 no_cache=0
5009 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5010if test "${enable_dynamicloader+set}" = set; then
5011 enableval="$enable_dynamicloader"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5015 else
5016 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5029
5030fi;
5031
5032 eval "$ac_cv_use_dynamicloader"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5038 echo "$as_me:$LINENO: result: yes" >&5
5039echo "${ECHO_T}yes" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043 fi
5044
5045
5046 enablestring=
5047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5048echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5049 no_cache=0
5050 # Check whether --enable-exceptions or --disable-exceptions was given.
5051if test "${enable_exceptions+set}" = set; then
5052 enableval="$enable_exceptions"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5056 else
5057 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5058 fi
5059
5060else
5061
5062 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5070
5071fi;
5072
5073 eval "$ac_cv_use_exceptions"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_EXCEPTIONS" = yes; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081 else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084 fi
5085
5086
5087 enablestring=
5088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5089echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5090 no_cache=0
5091 # Check whether --enable-ffile or --disable-ffile was given.
5092if test "${enable_ffile+set}" = set; then
5093 enableval="$enable_ffile"
5094
5095 if test "$enableval" = yes; then
5096 ac_cv_use_ffile='wxUSE_FFILE=yes'
5097 else
5098 ac_cv_use_ffile='wxUSE_FFILE=no'
5099 fi
5100
5101else
5102
5103 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5111
5112fi;
5113
5114 eval "$ac_cv_use_ffile"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_FFILE" = yes; then
5120 echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122 else
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125 fi
5126
5127
5128 enablestring=
5129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5130echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5131 no_cache=0
5132 # Check whether --enable-file or --disable-file was given.
5133if test "${enable_file+set}" = set; then
5134 enableval="$enable_file"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_file='wxUSE_FILE=yes'
5138 else
5139 ac_cv_use_file='wxUSE_FILE=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5152
5153fi;
5154
5155 eval "$ac_cv_use_file"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_FILE" = yes; then
5161 echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
5163 else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166 fi
5167
5168
5169 enablestring=
5170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5171echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5172 no_cache=0
5173 # Check whether --enable-filesystem or --disable-filesystem was given.
5174if test "${enable_filesystem+set}" = set; then
5175 enableval="$enable_filesystem"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5179 else
5180 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5193
5194fi;
5195
5196 eval "$ac_cv_use_filesystem"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_FILESYSTEM" = yes; then
5202 echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204 else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207 fi
5208
5209
5210 enablestring=
5211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5212echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5213 no_cache=0
5214 # Check whether --enable-fontmap or --disable-fontmap was given.
5215if test "${enable_fontmap+set}" = set; then
5216 enableval="$enable_fontmap"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5220 else
5221 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5234
5235fi;
5236
5237 eval "$ac_cv_use_fontmap"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_FONTMAP" = yes; then
5243 echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248 fi
5249
5250
5251 enablestring=
5252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5254 no_cache=0
5255 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5256if test "${enable_fs_inet+set}" = set; then
5257 enableval="$enable_fs_inet"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5261 else
5262 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5275
5276fi;
5277
5278 eval "$ac_cv_use_fs_inet"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_FS_INET" = yes; then
5284 echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
5286 else
5287 echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289 fi
5290
5291
5292 enablestring=
5293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5294echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5295 no_cache=0
5296 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5297if test "${enable_fs_zip+set}" = set; then
5298 enableval="$enable_fs_zip"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5302 else
5303 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5304 fi
5305
5306else
5307
5308 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5316
5317fi;
5318
5319 eval "$ac_cv_use_fs_zip"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_FS_ZIP" = yes; then
5325 echo "$as_me:$LINENO: result: yes" >&5
5326echo "${ECHO_T}yes" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
5330 fi
5331
5332
5333 enablestring=
5334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5335echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5336 no_cache=0
5337 # Check whether --enable-geometry or --disable-geometry was given.
5338if test "${enable_geometry+set}" = set; then
5339 enableval="$enable_geometry"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5343 else
5344 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5357
5358fi;
5359
5360 eval "$ac_cv_use_geometry"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_GEOMETRY" = yes; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6
5368 else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371 fi
5372
5373
5374 enablestring=
5375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5376echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5377 no_cache=0
5378 # Check whether --enable-log or --disable-log was given.
5379if test "${enable_log+set}" = set; then
5380 enableval="$enable_log"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_log='wxUSE_LOG=yes'
5384 else
5385 ac_cv_use_log='wxUSE_LOG=no'
5386 fi
5387
5388else
5389
5390 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5398
5399fi;
5400
5401 eval "$ac_cv_use_log"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_LOG" = yes; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412 fi
5413
5414
5415 enablestring=
5416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5417echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5418 no_cache=0
5419 # Check whether --enable-longlong or --disable-longlong was given.
5420if test "${enable_longlong+set}" = set; then
5421 enableval="$enable_longlong"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5425 else
5426 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5439
5440fi;
5441
5442 eval "$ac_cv_use_longlong"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_LONGLONG" = yes; then
5448 echo "$as_me:$LINENO: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
5450 else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453 fi
5454
5455
5456 enablestring=
5457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5458echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5459 no_cache=0
5460 # Check whether --enable-mimetype or --disable-mimetype was given.
5461if test "${enable_mimetype+set}" = set; then
5462 enableval="$enable_mimetype"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5466 else
5467 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5480
5481fi;
5482
5483 eval "$ac_cv_use_mimetype"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_MIMETYPE" = yes; then
5489 echo "$as_me:$LINENO: result: yes" >&5
5490echo "${ECHO_T}yes" >&6
5491 else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494 fi
5495
5496
5497 enablestring=
5498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5499echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5500 no_cache=0
5501 # Check whether --enable-mslu or --disable-mslu was given.
5502if test "${enable_mslu+set}" = set; then
5503 enableval="$enable_mslu"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5507 else
5508 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5521
5522fi;
5523
5524 eval "$ac_cv_use_mslu"
5525 if test "$no_cache" != 1; then
5526 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5527 fi
5528
5529 if test "$wxUSE_UNICODE_MSLU" = yes; then
5530 echo "$as_me:$LINENO: result: yes" >&5
5531echo "${ECHO_T}yes" >&6
5532 else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535 fi
5536
5537
5538 enablestring=
5539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5540echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5541 no_cache=0
5542 # Check whether --enable-snglinst or --disable-snglinst was given.
5543if test "${enable_snglinst+set}" = set; then
5544 enableval="$enable_snglinst"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5548 else
5549 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5550 fi
5551
5552else
5553
5554 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5562
5563fi;
5564
5565 eval "$ac_cv_use_snglinst"
5566 if test "$no_cache" != 1; then
5567 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5568 fi
5569
5570 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5571 echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573 else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576 fi
5577
5578
5579 enablestring=
07158944
VZ
5580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5581echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5582 no_cache=0
07158944
VZ
5583 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5584if test "${enable_std_iostreams+set}" = set; then
5585 enableval="$enable_std_iostreams"
a848cd7e
SC
5586
5587 if test "$enableval" = yes; then
07158944 5588 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5589 else
07158944 5590 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5591 fi
5592
5593else
5594
07158944 5595 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
07158944 5602 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5603
5604fi;
5605
07158944 5606 eval "$ac_cv_use_std_iostreams"
a848cd7e 5607 if test "$no_cache" != 1; then
07158944 5608 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5609 fi
5610
07158944 5611 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5612 echo "$as_me:$LINENO: result: yes" >&5
5613echo "${ECHO_T}yes" >&6
5614 else
5615 echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617 fi
5618
5619
5620 enablestring=
07158944
VZ
5621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5622echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5623 no_cache=0
07158944
VZ
5624 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5625if test "${enable_stdpaths+set}" = set; then
5626 enableval="$enable_stdpaths"
a848cd7e
SC
5627
5628 if test "$enableval" = yes; then
07158944 5629 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5630 else
07158944 5631 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5632 fi
5633
5634else
5635
07158944 5636 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
07158944 5643 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5644
5645fi;
5646
07158944 5647 eval "$ac_cv_use_stdpaths"
a848cd7e 5648 if test "$no_cache" != 1; then
07158944 5649 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5650 fi
5651
07158944 5652 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5653 echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655 else
5656 echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658 fi
5659
5660
5661 enablestring=
5662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5663echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5664 no_cache=0
5665 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5666if test "${enable_stopwatch+set}" = set; then
5667 enableval="$enable_stopwatch"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5671 else
5672 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5673 fi
5674
5675else
5676
5677 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5685
5686fi;
5687
5688 eval "$ac_cv_use_stopwatch"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_STOPWATCH" = yes; then
5694 echo "$as_me:$LINENO: result: yes" >&5
5695echo "${ECHO_T}yes" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699 fi
5700
5701
07158944
VZ
5702 enablestring=
5703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5704echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5705 no_cache=0
5706 # Check whether --enable-streams or --disable-streams was given.
5707if test "${enable_streams+set}" = set; then
5708 enableval="$enable_streams"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_streams='wxUSE_STREAMS=yes'
5712 else
5713 ac_cv_use_streams='wxUSE_STREAMS=no'
5714 fi
5715
5716else
5717
5718 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5726
5727fi;
5728
5729 eval "$ac_cv_use_streams"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_STREAMS" = yes; then
5735 echo "$as_me:$LINENO: result: yes" >&5
5736echo "${ECHO_T}yes" >&6
5737 else
5738 echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
5740 fi
5741
5742
a848cd7e
SC
5743 enablestring=
5744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5745echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5746 no_cache=0
5747 # Check whether --enable-system_options or --disable-system_options was given.
5748if test "${enable_system_options+set}" = set; then
5749 enableval="$enable_system_options"
5750
5751 if test "$enableval" = yes; then
5752 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5753 else
5754 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5755 fi
5756
5757else
5758
5759 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5760 if test "x$LINE" != x ; then
5761 eval "DEFAULT_$LINE"
5762 else
5763 no_cache=1
5764 fi
5765
5766 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5767
5768fi;
5769
5770 eval "$ac_cv_use_system_options"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5776 echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781 fi
5782
5783
5784 enablestring=
5785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5786echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5787 no_cache=0
5788 # Check whether --enable-textbuf or --disable-textbuf was given.
5789if test "${enable_textbuf+set}" = set; then
5790 enableval="$enable_textbuf"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5794 else
5795 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5796 fi
5797
5798else
5799
5800 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5808
5809fi;
5810
5811 eval "$ac_cv_use_textbuf"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_TEXTBUFFER" = yes; then
5817 echo "$as_me:$LINENO: result: yes" >&5
5818echo "${ECHO_T}yes" >&6
5819 else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822 fi
5823
5824
5825 enablestring=
5826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5827echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5828 no_cache=0
5829 # Check whether --enable-textfile or --disable-textfile was given.
5830if test "${enable_textfile+set}" = set; then
5831 enableval="$enable_textfile"
5832
5833 if test "$enableval" = yes; then
5834 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5835 else
5836 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5837 fi
5838
5839else
5840
5841 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5849
5850fi;
5851
5852 eval "$ac_cv_use_textfile"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_TEXTFILE" = yes; then
5858 echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
5860 else
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863 fi
5864
5865
5866 enablestring=
5867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5868echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5869 no_cache=0
5870 # Check whether --enable-timer or --disable-timer was given.
5871if test "${enable_timer+set}" = set; then
5872 enableval="$enable_timer"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_timer='wxUSE_TIMER=yes'
5876 else
5877 ac_cv_use_timer='wxUSE_TIMER=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5890
5891fi;
5892
5893 eval "$ac_cv_use_timer"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_TIMER" = yes; then
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901 else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904 fi
5905
5906
5907 enablestring=
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5910 no_cache=0
5911 # Check whether --enable-unicode or --disable-unicode was given.
5912if test "${enable_unicode+set}" = set; then
5913 enableval="$enable_unicode"
5914
5915 if test "$enableval" = yes; then
5916 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5917 else
5918 ac_cv_use_unicode='wxUSE_UNICODE=no'
5919 fi
5920
5921else
5922
5923 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5931
5932fi;
5933
5934 eval "$ac_cv_use_unicode"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_UNICODE" = yes; then
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945 fi
5946
5947
5948 enablestring=
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5951 no_cache=0
5952 # Check whether --enable-sound or --disable-sound was given.
5953if test "${enable_sound+set}" = set; then
5954 enableval="$enable_sound"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_sound='wxUSE_SOUND=yes'
5958 else
5959 ac_cv_use_sound='wxUSE_SOUND=no'
5960 fi
5961
5962else
5963
5964 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5972
5973fi;
5974
5975 eval "$ac_cv_use_sound"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_SOUND" = yes; then
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
5983 else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986 fi
5987
5988
3b57de8b
RL
5989 enablestring=
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5992 no_cache=0
5993 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5994if test "${enable_mediactrl+set}" = set; then
5995 enableval="$enable_mediactrl"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5999 else
6000 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6001 fi
6002
6003else
6004
6005 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6013
6014fi;
6015
6016 eval "$ac_cv_use_mediactrl"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MEDIACTRL" = yes; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027 fi
6028
6029
a848cd7e
SC
6030 enablestring=
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6033 no_cache=0
6034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6035if test "${enable_wxprintfv+set}" = set; then
6036 enableval="$enable_wxprintfv"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6040 else
6041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6054
6055fi;
6056
6057 eval "$ac_cv_use_wxprintfv"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068 fi
6069
6070
6071 enablestring=
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6074 no_cache=0
6075 # Check whether --enable-zipstream or --disable-zipstream was given.
6076if test "${enable_zipstream+set}" = set; then
6077 enableval="$enable_zipstream"
6078
6079 if test "$enableval" = yes; then
6080 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6081 else
6082 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6083 fi
6084
6085else
6086
6087 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6095
6096fi;
6097
6098 eval "$ac_cv_use_zipstream"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_ZIPSTREAM" = yes; then
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
6106 else
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
6109 fi
6110
6111
a848cd7e
SC
6112
6113 enablestring=
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6116 no_cache=0
6117 # Check whether --enable-url or --disable-url was given.
6118if test "${enable_url+set}" = set; then
6119 enableval="$enable_url"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_url='wxUSE_URL=yes'
6123 else
6124 ac_cv_use_url='wxUSE_URL=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6137
6138fi;
6139
6140 eval "$ac_cv_use_url"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_URL" = yes; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151 fi
6152
6153
6154 enablestring=
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6157 no_cache=0
6158 # Check whether --enable-protocol or --disable-protocol was given.
6159if test "${enable_protocol+set}" = set; then
6160 enableval="$enable_protocol"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6164 else
6165 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6178
6179fi;
6180
6181 eval "$ac_cv_use_protocol"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_PROTOCOL" = yes; then
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192 fi
6193
6194
6195 enablestring=
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6198 no_cache=0
6199 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6200if test "${enable_protocol_http+set}" = set; then
6201 enableval="$enable_protocol_http"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6205 else
6206 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6207 fi
6208
6209else
6210
6211 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6219
6220fi;
6221
6222 eval "$ac_cv_use_protocol_http"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233 fi
6234
6235
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6241if test "${enable_protocol_ftp+set}" = set; then
6242 enableval="$enable_protocol_ftp"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6246 else
6247 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6260
6261fi;
6262
6263 eval "$ac_cv_use_protocol_ftp"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6282if test "${enable_protocol_file+set}" = set; then
6283 enableval="$enable_protocol_file"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6287 else
6288 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6301
6302fi;
6303
6304 eval "$ac_cv_use_protocol_file"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
6318
6319
6320
6321 enablestring=
6322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6323echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6324 no_cache=0
6325 # Check whether --enable-threads or --disable-threads was given.
6326if test "${enable_threads+set}" = set; then
6327 enableval="$enable_threads"
6328
6329 if test "$enableval" = yes; then
6330 ac_cv_use_threads='wxUSE_THREADS=yes'
6331 else
6332 ac_cv_use_threads='wxUSE_THREADS=no'
6333 fi
6334
6335else
6336
6337 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6338 if test "x$LINE" != x ; then
6339 eval "DEFAULT_$LINE"
6340 else
6341 no_cache=1
6342 fi
6343
6344 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6345
6346fi;
6347
6348 eval "$ac_cv_use_threads"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_THREADS" = yes; then
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 else
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
6359 fi
6360
6361
6362if test "$wxUSE_GUI" = "yes"; then
6363
6364
6365
6366 enablestring=
6367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6368echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6369 no_cache=0
6370 # Check whether --enable-docview or --disable-docview was given.
6371if test "${enable_docview+set}" = set; then
6372 enableval="$enable_docview"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6376 else
6377 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6390
6391fi;
6392
6393 eval "$ac_cv_use_docview"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6399 echo "$as_me:$LINENO: result: yes" >&5
6400echo "${ECHO_T}yes" >&6
6401 else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404 fi
6405
6406
6407 enablestring=
6408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6409echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6410 no_cache=0
6411 # Check whether --enable-help or --disable-help was given.
6412if test "${enable_help+set}" = set; then
6413 enableval="$enable_help"
6414
6415 if test "$enableval" = yes; then
6416 ac_cv_use_help='wxUSE_HELP=yes'
6417 else
6418 ac_cv_use_help='wxUSE_HELP=no'
6419 fi
6420
6421else
6422
6423 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6424 if test "x$LINE" != x ; then
6425 eval "DEFAULT_$LINE"
6426 else
6427 no_cache=1
6428 fi
6429
6430 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6431
6432fi;
6433
6434 eval "$ac_cv_use_help"
6435 if test "$no_cache" != 1; then
6436 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6437 fi
6438
6439 if test "$wxUSE_HELP" = yes; then
6440 echo "$as_me:$LINENO: result: yes" >&5
6441echo "${ECHO_T}yes" >&6
6442 else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445 fi
6446
6447
6448 enablestring=
6449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6450echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6451 no_cache=0
6452 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6453if test "${enable_mshtmlhelp+set}" = set; then
6454 enableval="$enable_mshtmlhelp"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6458 else
6459 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6472
6473fi;
6474
6475 eval "$ac_cv_use_mshtmlhelp"
6476 if test "$no_cache" != 1; then
6477 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6478 fi
6479
6480 if test "$wxUSE_MS_HTML_HELP" = yes; then
6481 echo "$as_me:$LINENO: result: yes" >&5
6482echo "${ECHO_T}yes" >&6
6483 else
6484 echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486 fi
6487
6488
6489 enablestring=
6490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6491echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6492 no_cache=0
6493 # Check whether --enable-html or --disable-html was given.
6494if test "${enable_html+set}" = set; then
6495 enableval="$enable_html"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_html='wxUSE_HTML=yes'
6499 else
6500 ac_cv_use_html='wxUSE_HTML=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6513
6514fi;
6515
6516 eval "$ac_cv_use_html"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_HTML" = yes; then
6522 echo "$as_me:$LINENO: result: yes" >&5
6523echo "${ECHO_T}yes" >&6
6524 else
6525 echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527 fi
6528
6529
6530 enablestring=
6531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6532echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6533 no_cache=0
6534 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6535if test "${enable_htmlhelp+set}" = set; then
6536 enableval="$enable_htmlhelp"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6540 else
6541 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6542 fi
6543
6544else
6545
6546 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6554
6555fi;
6556
6557 eval "$ac_cv_use_htmlhelp"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_WXHTML_HELP" = yes; then
6563 echo "$as_me:$LINENO: result: yes" >&5
6564echo "${ECHO_T}yes" >&6
6565 else
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 fi
6569
6570
9a8f0513
VS
6571 enablestring=
6572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6573echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6574 no_cache=0
6575 # Check whether --enable-xrc or --disable-xrc was given.
6576if test "${enable_xrc+set}" = set; then
6577 enableval="$enable_xrc"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_xrc='wxUSE_XRC=yes'
6581 else
6582 ac_cv_use_xrc='wxUSE_XRC=no'
6583 fi
6584
6585else
6586
6587 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6595
6596fi;
6597
6598 eval "$ac_cv_use_xrc"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_XRC" = yes; then
6604 echo "$as_me:$LINENO: result: yes" >&5
6605echo "${ECHO_T}yes" >&6
6606 else
6607 echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609 fi
6610
6611
a848cd7e
SC
6612 enablestring=
6613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6614echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6615 no_cache=0
6616 # Check whether --enable-constraints or --disable-constraints was given.
6617if test "${enable_constraints+set}" = set; then
6618 enableval="$enable_constraints"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6622 else
6623 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6636
6637fi;
6638
6639 eval "$ac_cv_use_constraints"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_CONSTRAINTS" = yes; then
6645 echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650 fi
6651
6652
6653 enablestring=
6654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6655echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6656 no_cache=0
6657 # Check whether --enable-printarch or --disable-printarch was given.
6658if test "${enable_printarch+set}" = set; then
6659 enableval="$enable_printarch"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6663 else
6664 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6665 fi
6666
6667else
6668
6669 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6677
6678fi;
6679
6680 eval "$ac_cv_use_printarch"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6686 echo "$as_me:$LINENO: result: yes" >&5
6687echo "${ECHO_T}yes" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
6691 fi
6692
6693
6694 enablestring=
6695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6696echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6697 no_cache=0
6698 # Check whether --enable-mdi or --disable-mdi was given.
6699if test "${enable_mdi+set}" = set; then
6700 enableval="$enable_mdi"
6701
6702 if test "$enableval" = yes; then
8a7b1113 6703 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6704 else
8a7b1113 6705 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6706 fi
6707
6708else
6709
8a7b1113 6710 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
8a7b1113 6717 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6718
6719fi;
6720
6721 eval "$ac_cv_use_mdi"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6724 fi
6725
8a7b1113
VZ
6726 if test "$wxUSE_MDI" = yes; then
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729 else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732 fi
6733
6734
6735 enablestring=
6736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6737echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6738 no_cache=0
6739 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6740if test "${enable_mdidoc+set}" = set; then
6741 enableval="$enable_mdidoc"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6745 else
6746 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6747 fi
6748
6749else
6750
6751 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6759
6760fi;
6761
6762 eval "$ac_cv_use_mdidoc"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6765 fi
6766
a848cd7e
SC
6767 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6768 echo "$as_me:$LINENO: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
6770 else
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
6773 fi
6774
6775
6776 enablestring=
6777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6778echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6779 no_cache=0
6780 # Check whether --enable-loggui or --disable-loggui was given.
6781if test "${enable_loggui+set}" = set; then
6782 enableval="$enable_loggui"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6786 else
6787 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6800
6801fi;
6802
6803 eval "$ac_cv_use_loggui"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_LOGGUI" = yes; then
6809 echo "$as_me:$LINENO: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
6811 else
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814 fi
6815
6816
6817 enablestring=
6818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6819echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6820 no_cache=0
6821 # Check whether --enable-logwin or --disable-logwin was given.
6822if test "${enable_logwin+set}" = set; then
6823 enableval="$enable_logwin"
6824
6825 if test "$enableval" = yes; then
6826 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6827 else
6828 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6829 fi
6830
6831else
6832
6833 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6841
6842fi;
6843
6844 eval "$ac_cv_use_logwin"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6847 fi
6848
6849 if test "$wxUSE_LOGWINDOW" = yes; then
6850 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
6852 else
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
6855 fi
6856
6857
6858 enablestring=
6859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6860echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6861 no_cache=0
6862 # Check whether --enable-logdialog or --disable-logdialog was given.
6863if test "${enable_logdialog+set}" = set; then
6864 enableval="$enable_logdialog"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6868 else
6869 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6870 fi
6871
6872else
6873
6874 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6882
6883fi;
6884
6885 eval "$ac_cv_use_logdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_LOGDIALOG" = yes; then
6891 echo "$as_me:$LINENO: result: yes" >&5
6892echo "${ECHO_T}yes" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
6896 fi
6897
6898
646b6ec1
VS
6899 enablestring=
6900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6901echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6902 no_cache=0
6903 # Check whether --enable-webkit or --disable-webkit was given.
6904if test "${enable_webkit+set}" = set; then
6905 enableval="$enable_webkit"
6906
6907 if test "$enableval" = yes; then
6908 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6909 else
6910 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6911 fi
6912
6913else
6914
6915 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6923
6924fi;
6925
6926 eval "$ac_cv_use_webkit"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_WEBKIT" = yes; then
6932 echo "$as_me:$LINENO: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937 fi
6938
6939
a848cd7e
SC
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-postscript or --disable-postscript was given.
6946if test "${enable_postscript+set}" = set; then
6947 enableval="$enable_postscript"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6951 else
6952 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6965
6966fi;
6967
6968 eval "$ac_cv_use_postscript"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_POSTSCRIPT" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982
6983
6984
6985 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-prologio or --disable-prologio was given.
6990if test "${enable_prologio+set}" = set; then
6991 enableval="$enable_prologio"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6995 else
6996 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7009
7010fi;
7011
7012 eval "$ac_cv_use_prologio"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_PROLOGIO" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-resources or --disable-resources was given.
7031if test "${enable_resources+set}" = set; then
7032 enableval="$enable_resources"
7033
7034 if test "$enableval" = yes; then
7035 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7036 else
7037 ac_cv_use_resources='wxUSE_RESOURCES=no'
7038 fi
7039
7040else
7041
7042 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
7049 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7050
7051fi;
7052
7053 eval "$ac_cv_use_resources"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_RESOURCES" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067
7068
7069 enablestring=
7070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7071echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7072 no_cache=0
7073 # Check whether --enable-clipboard or --disable-clipboard was given.
7074if test "${enable_clipboard+set}" = set; then
7075 enableval="$enable_clipboard"
7076
7077 if test "$enableval" = yes; then
7078 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7079 else
7080 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7081 fi
7082
7083else
7084
7085 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7093
7094fi;
7095
7096 eval "$ac_cv_use_clipboard"
7097 if test "$no_cache" != 1; then
7098 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7099 fi
7100
7101 if test "$wxUSE_CLIPBOARD" = yes; then
7102 echo "$as_me:$LINENO: result: yes" >&5
7103echo "${ECHO_T}yes" >&6
7104 else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107 fi
7108
7109
7110 enablestring=
7111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7112echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7113 no_cache=0
7114 # Check whether --enable-dnd or --disable-dnd was given.
7115if test "${enable_dnd+set}" = set; then
7116 enableval="$enable_dnd"
7117
7118 if test "$enableval" = yes; then
7119 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7120 else
7121 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7122 fi
7123
7124else
7125
7126 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7127 if test "x$LINE" != x ; then
7128 eval "DEFAULT_$LINE"
7129 else
7130 no_cache=1
7131 fi
7132
7133 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7134
7135fi;
7136
7137 eval "$ac_cv_use_dnd"
7138 if test "$no_cache" != 1; then
7139 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7140 fi
7141
7142 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7143 echo "$as_me:$LINENO: result: yes" >&5
7144echo "${ECHO_T}yes" >&6
7145 else
7146 echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148 fi
7149
7150
7151 enablestring=
7152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7153echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7154 no_cache=0
7155 # Check whether --enable-metafile or --disable-metafile was given.
7156if test "${enable_metafile+set}" = set; then
7157 enableval="$enable_metafile"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7161 else
7162 ac_cv_use_metafile='wxUSE_METAFILE=no'
7163 fi
7164
7165else
7166
7167 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7175
7176fi;
7177
7178 eval "$ac_cv_use_metafile"
7179 if test "$no_cache" != 1; then
7180 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7181 fi
7182
7183 if test "$wxUSE_METAFILE" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185echo "${ECHO_T}yes" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189 fi
7190
7191
7192
7193
7194
7195 enablestring=
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7198 no_cache=0
7199 # Check whether --enable-controls or --disable-controls was given.
7200if test "${enable_controls+set}" = set; then
7201 enableval="$enable_controls"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7205 else
7206 ac_cv_use_controls='wxUSE_CONTROLS=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7219
7220fi;
7221
7222 eval "$ac_cv_use_controls"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_CONTROLS" = yes; then
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
7230 else
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233 fi
7234
7235
7236if test "$wxUSE_CONTROLS" = "yes"; then
7237 DEFAULT_wxUSE_ACCEL=yes
7238 DEFAULT_wxUSE_BMPBUTTON=yes
7239 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7240 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7241 DEFAULT_wxUSE_CARET=yes
7242 DEFAULT_wxUSE_COMBOBOX=yes
7243 DEFAULT_wxUSE_CHECKBOX=yes
7244 DEFAULT_wxUSE_CHECKLISTBOX=yes
7245 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7246 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7247 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7248 DEFAULT_wxUSE_GAUGE=yes
7249 DEFAULT_wxUSE_GRID=yes
7250 DEFAULT_wxUSE_IMAGLIST=yes
7251 DEFAULT_wxUSE_LISTBOOK=yes
7252 DEFAULT_wxUSE_LISTBOX=yes
7253 DEFAULT_wxUSE_LISTCTRL=yes
7254 DEFAULT_wxUSE_NOTEBOOK=yes
7255 DEFAULT_wxUSE_RADIOBOX=yes
7256 DEFAULT_wxUSE_RADIOBTN=yes
7257 DEFAULT_wxUSE_SASH=yes
7258 DEFAULT_wxUSE_SCROLLBAR=yes
7259 DEFAULT_wxUSE_SLIDER=yes
7260 DEFAULT_wxUSE_SPINBTN=yes
7261 DEFAULT_wxUSE_SPINCTRL=yes
7262 DEFAULT_wxUSE_SPLITTER=yes
7263 DEFAULT_wxUSE_STATBMP=yes
7264 DEFAULT_wxUSE_STATBOX=yes
7265 DEFAULT_wxUSE_STATLINE=yes
7266 DEFAULT_wxUSE_STATUSBAR=yes
7267 DEFAULT_wxUSE_TAB_DIALOG=yes
7268 DEFAULT_wxUSE_TOGGLEBTN=yes
7269 DEFAULT_wxUSE_TOOLBAR=yes
7270 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7272 DEFAULT_wxUSE_TOOLTIPS=yes
7273 DEFAULT_wxUSE_TREECTRL=yes
7274 DEFAULT_wxUSE_POPUPWIN=yes
7275 DEFAULT_wxUSE_TIPWINDOW=yes
7276elif test "$wxUSE_CONTROLS" = "no"; then
7277 DEFAULT_wxUSE_ACCEL=no
7278 DEFAULT_wxUSE_BMPBUTTON=no
7279 DEFAULT_wxUSE_BUTTON=no
7280 DEFAULT_wxUSE_CALCTRL=no
7281 DEFAULT_wxUSE_CARET=no
7282 DEFAULT_wxUSE_COMBOBOX=no
7283 DEFAULT_wxUSE_CHECKBOX=no
7284 DEFAULT_wxUSE_CHECKLISTBOX=no
7285 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7286 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7287 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7288 DEFAULT_wxUSE_GAUGE=no
7289 DEFAULT_wxUSE_GRID=no
7290 DEFAULT_wxUSE_IMAGLIST=no
7291 DEFAULT_wxUSE_LISTBOOK=no
7292 DEFAULT_wxUSE_LISTBOX=no
7293 DEFAULT_wxUSE_LISTCTRL=no
7294 DEFAULT_wxUSE_NOTEBOOK=no
7295 DEFAULT_wxUSE_RADIOBOX=no
7296 DEFAULT_wxUSE_RADIOBTN=no
7297 DEFAULT_wxUSE_SASH=no
7298 DEFAULT_wxUSE_SCROLLBAR=no
7299 DEFAULT_wxUSE_SLIDER=no
7300 DEFAULT_wxUSE_SPINBTN=no
7301 DEFAULT_wxUSE_SPINCTRL=no
7302 DEFAULT_wxUSE_SPLITTER=no
7303 DEFAULT_wxUSE_STATBMP=no
7304 DEFAULT_wxUSE_STATBOX=no
7305 DEFAULT_wxUSE_STATLINE=no
7306 DEFAULT_wxUSE_STATUSBAR=no
7307 DEFAULT_wxUSE_TAB_DIALOG=no
7308 DEFAULT_wxUSE_TOGGLEBTN=no
7309 DEFAULT_wxUSE_TOOLBAR=no
7310 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7311 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7312 DEFAULT_wxUSE_TOOLTIPS=no
7313 DEFAULT_wxUSE_TREECTRL=no
7314 DEFAULT_wxUSE_POPUPWIN=no
7315 DEFAULT_wxUSE_TIPWINDOW=no
7316fi
7317
a848cd7e
SC
7318
7319 enablestring=
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7322 no_cache=0
7323 # Check whether --enable-accel or --disable-accel was given.
7324if test "${enable_accel+set}" = set; then
7325 enableval="$enable_accel"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_accel='wxUSE_ACCEL=yes'
7329 else
7330 ac_cv_use_accel='wxUSE_ACCEL=no'
7331 fi
7332
7333else
7334
7335 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7343
7344fi;
7345
7346 eval "$ac_cv_use_accel"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_ACCEL" = yes; then
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
7354 else
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
7357 fi
7358
7359
7360 enablestring=
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7363 no_cache=0
7364 # Check whether --enable-button or --disable-button was given.
7365if test "${enable_button+set}" = set; then
7366 enableval="$enable_button"
7367
7368 if test "$enableval" = yes; then
7369 ac_cv_use_button='wxUSE_BUTTON=yes'
7370 else
7371 ac_cv_use_button='wxUSE_BUTTON=no'
7372 fi
7373
7374else
7375
7376 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7384
7385fi;
7386
7387 eval "$ac_cv_use_button"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_BUTTON" = yes; then
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
7395 else
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
7398 fi
7399
7400
7401 enablestring=
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7404 no_cache=0
7405 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7406if test "${enable_bmpbutton+set}" = set; then
7407 enableval="$enable_bmpbutton"
7408
7409 if test "$enableval" = yes; then
7410 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7411 else
7412 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7413 fi
7414
7415else
7416
7417 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7425
7426fi;
7427
7428 eval "$ac_cv_use_bmpbutton"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_BMPBUTTON" = yes; then
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
7436 else
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
7439 fi
7440
7441
7442 enablestring=
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7445 no_cache=0
7446 # Check whether --enable-calendar or --disable-calendar was given.
7447if test "${enable_calendar+set}" = set; then
7448 enableval="$enable_calendar"
7449
7450 if test "$enableval" = yes; then
7451 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7452 else
7453 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7454 fi
7455
7456else
7457
7458 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7466
7467fi;
7468
7469 eval "$ac_cv_use_calendar"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_CALCTRL" = yes; then
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480 fi
7481
7482
7483 enablestring=
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7486 no_cache=0
7487 # Check whether --enable-caret or --disable-caret was given.
7488if test "${enable_caret+set}" = set; then
7489 enableval="$enable_caret"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_caret='wxUSE_CARET=yes'
7493 else
7494 ac_cv_use_caret='wxUSE_CARET=no'
7495 fi
7496
7497else
7498
7499 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7507
7508fi;
7509
7510 eval "$ac_cv_use_caret"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_CARET" = yes; then
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
7518 else
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
7521 fi
7522
7523
7524 enablestring=
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7527 no_cache=0
7528 # Check whether --enable-checkbox or --disable-checkbox was given.
7529if test "${enable_checkbox+set}" = set; then
7530 enableval="$enable_checkbox"
7531
7532 if test "$enableval" = yes; then
7533 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7534 else
7535 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7536 fi
7537
7538else
7539
7540 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7548
7549fi;
7550
7551 eval "$ac_cv_use_checkbox"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_CHECKBOX" = yes; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562 fi
7563
7564
7565 enablestring=
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7568 no_cache=0
7569 # Check whether --enable-checklst or --disable-checklst was given.
7570if test "${enable_checklst+set}" = set; then
7571 enableval="$enable_checklst"
7572
7573 if test "$enableval" = yes; then
7574 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7575 else
7576 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7577 fi
7578
7579else
7580
7581 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7589
7590fi;
7591
7592 eval "$ac_cv_use_checklst"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_CHECKLST" = yes; then
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
7600 else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603 fi
7604
7605
7606 enablestring=
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7609 no_cache=0
7610 # Check whether --enable-choice or --disable-choice was given.
7611if test "${enable_choice+set}" = set; then
7612 enableval="$enable_choice"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_choice='wxUSE_CHOICE=yes'
7616 else
7617 ac_cv_use_choice='wxUSE_CHOICE=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7630
7631fi;
7632
7633 eval "$ac_cv_use_choice"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_CHOICE" = yes; then
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
7641 else
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
7644 fi
7645
7646
92bbdbcd
WS
7647 enablestring=
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7650 no_cache=0
7651 # Check whether --enable-choicebook or --disable-choicebook was given.
7652if test "${enable_choicebook+set}" = set; then
7653 enableval="$enable_choicebook"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7657 else
7658 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7659 fi
7660
7661else
7662
7663 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7671
7672fi;
7673
7674 eval "$ac_cv_use_choicebook"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_CHOICEBOOK" = yes; then
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
7682 else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685 fi
7686
7687
a848cd7e
SC
7688 enablestring=
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7691 no_cache=0
7692 # Check whether --enable-combobox or --disable-combobox was given.
7693if test "${enable_combobox+set}" = set; then
7694 enableval="$enable_combobox"
7695
7696 if test "$enableval" = yes; then
7697 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7698 else
7699 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7700 fi
7701
7702else
7703
7704 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7712
7713fi;
7714
7715 eval "$ac_cv_use_combobox"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_COMBOBOX" = yes; then
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
7723 else
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
7726 fi
7727
7728
da98e9be
VZ
7729 enablestring=
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7732 no_cache=0
7733 # Check whether --enable-datepick or --disable-datepick was given.
7734if test "${enable_datepick+set}" = set; then
7735 enableval="$enable_datepick"
7736
7737 if test "$enableval" = yes; then
7738 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7739 else
7740 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7741 fi
7742
7743else
7744
7745 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7753
7754fi;
7755
7756 eval "$ac_cv_use_datepick"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_DATEPICKCTRL" = yes; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
7764 else
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
7767 fi
7768
7769
a848cd7e
SC
7770 enablestring=
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7773 no_cache=0
7774 # Check whether --enable-display or --disable-display was given.
7775if test "${enable_display+set}" = set; then
7776 enableval="$enable_display"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_display='wxUSE_DISPLAY=yes'
7780 else
7781 ac_cv_use_display='wxUSE_DISPLAY=no'
7782 fi
7783
7784else
7785
7786 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7794
7795fi;
7796
7797 eval "$ac_cv_use_display"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_DISPLAY" = yes; then
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
7808 fi
7809
7810
7811 enablestring=
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7814 no_cache=0
7815 # Check whether --enable-gauge or --disable-gauge was given.
7816if test "${enable_gauge+set}" = set; then
7817 enableval="$enable_gauge"
7818
7819 if test "$enableval" = yes; then
7820 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7821 else
7822 ac_cv_use_gauge='wxUSE_GAUGE=no'
7823 fi
7824
7825else
7826
7827 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7835
7836fi;
7837
7838 eval "$ac_cv_use_gauge"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_GAUGE" = yes; then
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
7846 else
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
7849 fi
7850
7851
7852 enablestring=
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7855 no_cache=0
7856 # Check whether --enable-grid or --disable-grid was given.
7857if test "${enable_grid+set}" = set; then
7858 enableval="$enable_grid"
7859
7860 if test "$enableval" = yes; then
7861 ac_cv_use_grid='wxUSE_GRID=yes'
7862 else
7863 ac_cv_use_grid='wxUSE_GRID=no'
7864 fi
7865
7866else
7867
7868 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7876
7877fi;
7878
7879 eval "$ac_cv_use_grid"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_GRID" = yes; then
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
7887 else
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
7890 fi
7891
7892
7893 enablestring=
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7896 no_cache=0
7897 # Check whether --enable-imaglist or --disable-imaglist was given.
7898if test "${enable_imaglist+set}" = set; then
7899 enableval="$enable_imaglist"
7900
7901 if test "$enableval" = yes; then
7902 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7903 else
7904 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7905 fi
7906
7907else
7908
7909 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7917
7918fi;
7919
7920 eval "$ac_cv_use_imaglist"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_IMAGLIST" = yes; then
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
7931 fi
7932
7933
7934 enablestring=
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7937 no_cache=0
7938 # Check whether --enable-listbook or --disable-listbook was given.
7939if test "${enable_listbook+set}" = set; then
7940 enableval="$enable_listbook"
7941
7942 if test "$enableval" = yes; then
7943 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7944 else
7945 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7946 fi
7947
7948else
7949
7950 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7958
7959fi;
7960
7961 eval "$ac_cv_use_listbook"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_LISTBOOK" = yes; then
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
7969 else
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
7972 fi
7973
7974
7975 enablestring=
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7978 no_cache=0
7979 # Check whether --enable-listbox or --disable-listbox was given.
7980if test "${enable_listbox+set}" = set; then
7981 enableval="$enable_listbox"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7985 else
7986 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7987 fi
7988
7989else
7990
7991 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7999
8000fi;
8001
8002 eval "$ac_cv_use_listbox"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_LISTBOX" = yes; then
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
8010 else
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013 fi
8014
8015
8016 enablestring=
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8019 no_cache=0
8020 # Check whether --enable-listctrl or --disable-listctrl was given.
8021if test "${enable_listctrl+set}" = set; then
8022 enableval="$enable_listctrl"
8023
8024 if test "$enableval" = yes; then
8025 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8026 else
8027 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8028 fi
8029
8030else
8031
8032 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8040
8041fi;
8042
8043 eval "$ac_cv_use_listctrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_LISTCTRL" = yes; then
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054 fi
8055
8056
8057 enablestring=
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8060 no_cache=0
8061 # Check whether --enable-notebook or --disable-notebook was given.
8062if test "${enable_notebook+set}" = set; then
8063 enableval="$enable_notebook"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8067 else
8068 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8081
8082fi;
8083
8084 eval "$ac_cv_use_notebook"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_NOTEBOOK" = yes; then
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
8092 else
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
8095 fi
8096
8097
8098 enablestring=
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8101 no_cache=0
8102 # Check whether --enable-radiobox or --disable-radiobox was given.
8103if test "${enable_radiobox+set}" = set; then
8104 enableval="$enable_radiobox"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8108 else
8109 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8122
8123fi;
8124
8125 eval "$ac_cv_use_radiobox"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_RADIOBOX" = yes; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
8136 fi
8137
8138
8139 enablestring=
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8142 no_cache=0
8143 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8144if test "${enable_radiobtn+set}" = set; then
8145 enableval="$enable_radiobtn"
8146
8147 if test "$enableval" = yes; then
8148 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8149 else
8150 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8151 fi
8152
8153else
8154
8155 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8163
8164fi;
8165
8166 eval "$ac_cv_use_radiobtn"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_RADIOBTN" = yes; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
8174 else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177 fi
8178
8179
8180 enablestring=
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8183 no_cache=0
8184 # Check whether --enable-sash or --disable-sash was given.
8185if test "${enable_sash+set}" = set; then
8186 enableval="$enable_sash"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_sash='wxUSE_SASH=yes'
8190 else
8191 ac_cv_use_sash='wxUSE_SASH=no'
8192 fi
8193
8194else
8195
8196 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8204
8205fi;
8206
8207 eval "$ac_cv_use_sash"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_SASH" = yes; then
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
8215 else
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
8218 fi
8219
8220
8221 enablestring=
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8224 no_cache=0
8225 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8226if test "${enable_scrollbar+set}" = set; then
8227 enableval="$enable_scrollbar"
8228
8229 if test "$enableval" = yes; then
8230 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8231 else
8232 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8233 fi
8234
8235else
8236
8237 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8245
8246fi;
8247
8248 eval "$ac_cv_use_scrollbar"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_SCROLLBAR" = yes; then
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
8256 else
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
8259 fi
8260
8261
8262 enablestring=
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8265 no_cache=0
8266 # Check whether --enable-slider or --disable-slider was given.
8267if test "${enable_slider+set}" = set; then
8268 enableval="$enable_slider"
8269
8270 if test "$enableval" = yes; then
8271 ac_cv_use_slider='wxUSE_SLIDER=yes'
8272 else
8273 ac_cv_use_slider='wxUSE_SLIDER=no'
8274 fi
8275
8276else
8277
8278 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8286
8287fi;
8288
8289 eval "$ac_cv_use_slider"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_SLIDER" = yes; then
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
8297 else
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300 fi
8301
8302
8303 enablestring=
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8306 no_cache=0
8307 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8308if test "${enable_spinbtn+set}" = set; then
8309 enableval="$enable_spinbtn"
8310
8311 if test "$enableval" = yes; then
8312 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8313 else
8314 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8315 fi
8316
8317else
8318
8319 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8327
8328fi;
8329
8330 eval "$ac_cv_use_spinbtn"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_SPINBTN" = yes; then
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
8338 else
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341 fi
8342
8343
8344 enablestring=
8345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8346echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8347 no_cache=0
8348 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8349if test "${enable_spinctrl+set}" = set; then
8350 enableval="$enable_spinctrl"
8351
8352 if test "$enableval" = yes; then
8353 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8354 else
8355 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8356 fi
8357
8358else
8359
8360 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8368
8369fi;
8370
8371 eval "$ac_cv_use_spinctrl"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_SPINCTRL" = yes; then
8377 echo "$as_me:$LINENO: result: yes" >&5
8378echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
8382 fi
8383
8384
8385 enablestring=
8386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8387echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8388 no_cache=0
8389 # Check whether --enable-splitter or --disable-splitter was given.
8390if test "${enable_splitter+set}" = set; then
8391 enableval="$enable_splitter"
8392
8393 if test "$enableval" = yes; then
8394 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8395 else
8396 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8397 fi
8398
8399else
8400
8401 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8402 if test "x$LINE" != x ; then
8403 eval "DEFAULT_$LINE"
8404 else
8405 no_cache=1
8406 fi
8407
8408 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8409
8410fi;
8411
8412 eval "$ac_cv_use_splitter"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_SPLITTER" = yes; then
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
8420 else
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
8423 fi
8424
8425
8426 enablestring=
8427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8428echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8429 no_cache=0
8430 # Check whether --enable-statbmp or --disable-statbmp was given.
8431if test "${enable_statbmp+set}" = set; then
8432 enableval="$enable_statbmp"
8433
8434 if test "$enableval" = yes; then
8435 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8436 else
8437 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8438 fi
8439
8440else
8441
8442 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8443 if test "x$LINE" != x ; then
8444 eval "DEFAULT_$LINE"
8445 else
8446 no_cache=1
8447 fi
8448
8449 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8450
8451fi;
8452
8453 eval "$ac_cv_use_statbmp"
8454 if test "$no_cache" != 1; then
8455 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8456 fi
8457
8458 if test "$wxUSE_STATBMP" = yes; then
8459 echo "$as_me:$LINENO: result: yes" >&5
8460echo "${ECHO_T}yes" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
8464 fi
8465
8466
8467 enablestring=
8468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8469echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8470 no_cache=0
8471 # Check whether --enable-statbox or --disable-statbox was given.
8472if test "${enable_statbox+set}" = set; then
8473 enableval="$enable_statbox"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8477 else
8478 ac_cv_use_statbox='wxUSE_STATBOX=no'
8479 fi
8480
8481else
8482
8483 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8491
8492fi;
8493
8494 eval "$ac_cv_use_statbox"
8495 if test "$no_cache" != 1; then
8496 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8497 fi
8498
8499 if test "$wxUSE_STATBOX" = yes; then
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
8502 else
8503 echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
8505 fi
8506
8507
8508 enablestring=
8509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8510echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8511 no_cache=0
8512 # Check whether --enable-statline or --disable-statline was given.
8513if test "${enable_statline+set}" = set; then
8514 enableval="$enable_statline"
8515
8516 if test "$enableval" = yes; then
8517 ac_cv_use_statline='wxUSE_STATLINE=yes'
8518 else
8519 ac_cv_use_statline='wxUSE_STATLINE=no'
8520 fi
8521
8522else
8523
8524 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8525 if test "x$LINE" != x ; then
8526 eval "DEFAULT_$LINE"
8527 else
8528 no_cache=1
8529 fi
8530
8531 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8532
8533fi;
8534
8535 eval "$ac_cv_use_statline"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_STATLINE" = yes; then
8541 echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546 fi
8547
8548
8549 enablestring=
8550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8551echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8552 no_cache=0
8553 # Check whether --enable-stattext or --disable-stattext was given.
8554if test "${enable_stattext+set}" = set; then
8555 enableval="$enable_stattext"
8556
8557 if test "$enableval" = yes; then
8558 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8559 else
8560 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8561 fi
8562
8563else
8564
8565 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8573
8574fi;
8575
8576 eval "$ac_cv_use_stattext"
8577 if test "$no_cache" != 1; then
8578 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8579 fi
8580
8581 if test "$wxUSE_STATTEXT" = yes; then
8582 echo "$as_me:$LINENO: result: yes" >&5
8583echo "${ECHO_T}yes" >&6
8584 else
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
8587 fi
8588
8589
8590 enablestring=
8591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8592echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8593 no_cache=0
8594 # Check whether --enable-statusbar or --disable-statusbar was given.
8595if test "${enable_statusbar+set}" = set; then
8596 enableval="$enable_statusbar"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8600 else
8601 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8602 fi
8603
8604else
8605
8606 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8614
8615fi;
8616
8617 eval "$ac_cv_use_statusbar"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_STATUSBAR" = yes; then
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
8628 fi
8629
8630
8631 enablestring=
8632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8633echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8634 no_cache=0
8635 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8636if test "${enable_tabdialog+set}" = set; then
8637 enableval="$enable_tabdialog"
8638
8639 if test "$enableval" = yes; then
8640 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8641 else
8642 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8643 fi
8644
8645else
8646
8647 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8655
8656fi;
8657
8658 eval "$ac_cv_use_tabdialog"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_TABDIALOG" = yes; then
8664 echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669 fi
8670
8671
8672 enablestring=
8673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8674echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8675 no_cache=0
8676 # Check whether --enable-textctrl or --disable-textctrl was given.
8677if test "${enable_textctrl+set}" = set; then
8678 enableval="$enable_textctrl"
8679
8680 if test "$enableval" = yes; then
8681 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8682 else
8683 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8684 fi
8685
8686else
8687
8688 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8689 if test "x$LINE" != x ; then
8690 eval "DEFAULT_$LINE"
8691 else
8692 no_cache=1
8693 fi
8694
8695 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8696
8697fi;
8698
8699 eval "$ac_cv_use_textctrl"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_TEXTCTRL" = yes; then
8705 echo "$as_me:$LINENO: result: yes" >&5
8706echo "${ECHO_T}yes" >&6
8707 else
8708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
8710 fi
8711
8712
8713 enablestring=
8714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8715echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8716 no_cache=0
8717 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8718if test "${enable_togglebtn+set}" = set; then
8719 enableval="$enable_togglebtn"
8720
8721 if test "$enableval" = yes; then
8722 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8723 else
8724 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8725 fi
8726
8727else
8728
8729 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8730 if test "x$LINE" != x ; then
8731 eval "DEFAULT_$LINE"
8732 else
8733 no_cache=1
8734 fi
8735
8736 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8737
8738fi;
8739
8740 eval "$ac_cv_use_togglebtn"
8741 if test "$no_cache" != 1; then
8742 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8743 fi
8744
8745 if test "$wxUSE_TOGGLEBTN" = yes; then
8746 echo "$as_me:$LINENO: result: yes" >&5
8747echo "${ECHO_T}yes" >&6
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
8751 fi
8752
8753
8754 enablestring=
8755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8756echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8757 no_cache=0
8758 # Check whether --enable-toolbar or --disable-toolbar was given.
8759if test "${enable_toolbar+set}" = set; then
8760 enableval="$enable_toolbar"
8761
8762 if test "$enableval" = yes; then
8763 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8764 else
8765 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8766 fi
8767
8768else
8769
8770 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8771 if test "x$LINE" != x ; then
8772 eval "DEFAULT_$LINE"
8773 else
8774 no_cache=1
8775 fi
8776
8777 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8778
8779fi;
8780
8781 eval "$ac_cv_use_toolbar"
8782 if test "$no_cache" != 1; then
8783 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8784 fi
8785
8786 if test "$wxUSE_TOOLBAR" = yes; then
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
8789 else
8790 echo "$as_me:$LINENO: result: no" >&5
8791echo "${ECHO_T}no" >&6
8792 fi
8793
8794
8795 enablestring=
8796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8797echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8798 no_cache=0
8799 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8800if test "${enable_tbarnative+set}" = set; then
8801 enableval="$enable_tbarnative"
8802
8803 if test "$enableval" = yes; then
8804 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8805 else
8806 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8807 fi
8808
8809else
8810
8811 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8812 if test "x$LINE" != x ; then
8813 eval "DEFAULT_$LINE"
8814 else
8815 no_cache=1
8816 fi
8817
8818 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8819
8820fi;
8821
8822 eval "$ac_cv_use_tbarnative"
8823 if test "$no_cache" != 1; then
8824 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8825 fi
8826
8827 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829echo "${ECHO_T}yes" >&6
8830 else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833 fi
8834
8835
8836 enablestring=
8837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8838echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8839 no_cache=0
8840 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8841if test "${enable_tbarsmpl+set}" = set; then
8842 enableval="$enable_tbarsmpl"
8843
8844 if test "$enableval" = yes; then
8845 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8846 else
8847 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8848 fi
8849
8850else
8851
8852 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8853 if test "x$LINE" != x ; then
8854 eval "DEFAULT_$LINE"
8855 else
8856 no_cache=1
8857 fi
8858
8859 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8860
8861fi;
8862
8863 eval "$ac_cv_use_tbarsmpl"
8864 if test "$no_cache" != 1; then
8865 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8866 fi
8867
8868 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870echo "${ECHO_T}yes" >&6
8871 else
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874 fi
8875
8876
8877 enablestring=
8878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8879echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8880 no_cache=0
8881 # Check whether --enable-treectrl or --disable-treectrl was given.
8882if test "${enable_treectrl+set}" = set; then
8883 enableval="$enable_treectrl"
8884
8885 if test "$enableval" = yes; then
8886 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8887 else
8888 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8889 fi
8890
8891else
8892
8893 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8894 if test "x$LINE" != x ; then
8895 eval "DEFAULT_$LINE"
8896 else
8897 no_cache=1
8898 fi
8899
8900 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8901
8902fi;
8903
8904 eval "$ac_cv_use_treectrl"
8905 if test "$no_cache" != 1; then
8906 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8907 fi
8908
8909 if test "$wxUSE_TREECTRL" = yes; then
8910 echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6
8912 else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915 fi
8916
8917
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8923if test "${enable_tipwindow+set}" = set; then
8924 enableval="$enable_tipwindow"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8928 else
8929 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8942
8943fi;
8944
8945 eval "$ac_cv_use_tipwindow"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_TIPWINDOW" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-popupwin or --disable-popupwin was given.
8964if test "${enable_popupwin+set}" = set; then
8965 enableval="$enable_popupwin"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8969 else
8970 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8983
8984fi;
8985
8986 eval "$ac_cv_use_popupwin"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_POPUPWIN" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000
9001
9002 enablestring=
9003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9004echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9005 no_cache=0
9006 # Check whether --enable-commondlg or --disable-commondlg was given.
9007if test "${enable_commondlg+set}" = set; then
9008 enableval="$enable_commondlg"
9009
9010 if test "$enableval" = yes; then
9011 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9012 else
9013 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9014 fi
9015
9016else
9017
9018 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9019 if test "x$LINE" != x ; then
9020 eval "DEFAULT_$LINE"
9021 else
9022 no_cache=1
9023 fi
9024
9025 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9026
9027fi;
9028
9029 eval "$ac_cv_use_commondlg"
9030 if test "$no_cache" != 1; then
9031 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9032 fi
9033
9034 if test "$wxUSE_COMMONDLGS" = yes; then
9035 echo "$as_me:$LINENO: result: yes" >&5
9036echo "${ECHO_T}yes" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039echo "${ECHO_T}no" >&6
9040 fi
9041
9042
9043 enablestring=
9044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9045echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9046 no_cache=0
9047 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9048if test "${enable_choicedlg+set}" = set; then
9049 enableval="$enable_choicedlg"
9050
9051 if test "$enableval" = yes; then
9052 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9053 else
9054 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9055 fi
9056
9057else
9058
9059 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9060 if test "x$LINE" != x ; then
9061 eval "DEFAULT_$LINE"
9062 else
9063 no_cache=1
9064 fi
9065
9066 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9067
9068fi;
9069
9070 eval "$ac_cv_use_choicedlg"
9071 if test "$no_cache" != 1; then
9072 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9073 fi
9074
9075 if test "$wxUSE_CHOICEDLG" = yes; then
9076 echo "$as_me:$LINENO: result: yes" >&5
9077echo "${ECHO_T}yes" >&6
9078 else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081 fi
9082
9083
9084 enablestring=
9085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9086echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9087 no_cache=0
9088 # Check whether --enable-coldlg or --disable-coldlg was given.
9089if test "${enable_coldlg+set}" = set; then
9090 enableval="$enable_coldlg"
9091
9092 if test "$enableval" = yes; then
9093 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9094 else
9095 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9096 fi
9097
9098else
9099
9100 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9101 if test "x$LINE" != x ; then
9102 eval "DEFAULT_$LINE"
9103 else
9104 no_cache=1
9105 fi
9106
9107 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9108
9109fi;
9110
9111 eval "$ac_cv_use_coldlg"
9112 if test "$no_cache" != 1; then
9113 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9114 fi
9115
9116 if test "$wxUSE_COLOURDLG" = yes; then
9117 echo "$as_me:$LINENO: result: yes" >&5
9118echo "${ECHO_T}yes" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
9122 fi
9123
9124
9125 enablestring=
9126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9127echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9128 no_cache=0
9129 # Check whether --enable-filedlg or --disable-filedlg was given.
9130if test "${enable_filedlg+set}" = set; then
9131 enableval="$enable_filedlg"
9132
9133 if test "$enableval" = yes; then
9134 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9135 else
9136 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9137 fi
9138
9139else
9140
9141 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9142 if test "x$LINE" != x ; then
9143 eval "DEFAULT_$LINE"
9144 else
9145 no_cache=1
9146 fi
9147
9148 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9149
9150fi;
9151
9152 eval "$ac_cv_use_filedlg"
9153 if test "$no_cache" != 1; then
9154 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9155 fi
9156
9157 if test "$wxUSE_FILEDLG" = yes; then
9158 echo "$as_me:$LINENO: result: yes" >&5
9159echo "${ECHO_T}yes" >&6
9160 else
9161 echo "$as_me:$LINENO: result: no" >&5
9162echo "${ECHO_T}no" >&6
9163 fi
9164
9165
9166 enablestring=
9167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9168echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9169 no_cache=0
9170 # Check whether --enable-finddlg or --disable-finddlg was given.
9171if test "${enable_finddlg+set}" = set; then
9172 enableval="$enable_finddlg"
9173
9174 if test "$enableval" = yes; then
9175 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9176 else
9177 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9178 fi
9179
9180else
9181
9182 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9183 if test "x$LINE" != x ; then
9184 eval "DEFAULT_$LINE"
9185 else
9186 no_cache=1
9187 fi
9188
9189 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9190
9191fi;
9192
9193 eval "$ac_cv_use_finddlg"
9194 if test "$no_cache" != 1; then
9195 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9196 fi
9197
9198 if test "$wxUSE_FINDREPLDLG" = yes; then
9199 echo "$as_me:$LINENO: result: yes" >&5
9200echo "${ECHO_T}yes" >&6
9201 else
9202 echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204 fi
9205
9206
9207 enablestring=
9208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9209echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9210 no_cache=0
9211 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9212if test "${enable_fontdlg+set}" = set; then
9213 enableval="$enable_fontdlg"
9214
9215 if test "$enableval" = yes; then
9216 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9217 else
9218 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9219 fi
9220
9221else
9222
9223 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9224 if test "x$LINE" != x ; then
9225 eval "DEFAULT_$LINE"
9226 else
9227 no_cache=1
9228 fi
9229
9230 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9231
9232fi;
9233
9234 eval "$ac_cv_use_fontdlg"
9235 if test "$no_cache" != 1; then
9236 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9237 fi
9238
9239 if test "$wxUSE_FONTDLG" = yes; then
9240 echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
9242 else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245 fi
9246
9247
9248 enablestring=
9249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9250echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9251 no_cache=0
9252 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9253if test "${enable_dirdlg+set}" = set; then
9254 enableval="$enable_dirdlg"
9255
9256 if test "$enableval" = yes; then
9257 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9258 else
9259 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9260 fi
9261
9262else
9263
9264 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9265 if test "x$LINE" != x ; then
9266 eval "DEFAULT_$LINE"
9267 else
9268 no_cache=1
9269 fi
9270
9271 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9272
9273fi;
9274
9275 eval "$ac_cv_use_dirdlg"
9276 if test "$no_cache" != 1; then
9277 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9278 fi
9279
9280 if test "$wxUSE_DIRDLG" = yes; then
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283 else
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
9286 fi
9287
9288
9289 enablestring=
9290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9291echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9292 no_cache=0
9293 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9294if test "${enable_msgdlg+set}" = set; then
9295 enableval="$enable_msgdlg"
9296
9297 if test "$enableval" = yes; then
9298 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9299 else
9300 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9301 fi
9302
9303else
9304
9305 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9306 if test "x$LINE" != x ; then
9307 eval "DEFAULT_$LINE"
9308 else
9309 no_cache=1
9310 fi
9311
9312 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9313
9314fi;
9315
9316 eval "$ac_cv_use_msgdlg"
9317 if test "$no_cache" != 1; then
9318 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9319 fi
9320
9321 if test "$wxUSE_MSGDLG" = yes; then
9322 echo "$as_me:$LINENO: result: yes" >&5
9323echo "${ECHO_T}yes" >&6
9324 else
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
9327 fi
9328
9329
9330 enablestring=
9331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9332echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9333 no_cache=0
9334 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9335if test "${enable_numberdlg+set}" = set; then
9336 enableval="$enable_numberdlg"
9337
9338 if test "$enableval" = yes; then
9339 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9340 else
9341 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9342 fi
9343
9344else
9345
9346 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9347 if test "x$LINE" != x ; then
9348 eval "DEFAULT_$LINE"
9349 else
9350 no_cache=1
9351 fi
9352
9353 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9354
9355fi;
9356
9357 eval "$ac_cv_use_numberdlg"
9358 if test "$no_cache" != 1; then
9359 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9360 fi
9361
9362 if test "$wxUSE_NUMBERDLG" = yes; then
9363 echo "$as_me:$LINENO: result: yes" >&5
9364echo "${ECHO_T}yes" >&6
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
9368 fi
9369
9370
9371 enablestring=
9372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9373echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9374 no_cache=0
9375 # Check whether --enable-splash or --disable-splash was given.
9376if test "${enable_splash+set}" = set; then
9377 enableval="$enable_splash"
9378
9379 if test "$enableval" = yes; then
9380 ac_cv_use_splash='wxUSE_SPLASH=yes'
9381 else
9382 ac_cv_use_splash='wxUSE_SPLASH=no'
9383 fi
9384
9385else
9386
9387 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9388 if test "x$LINE" != x ; then
9389 eval "DEFAULT_$LINE"
9390 else
9391 no_cache=1
9392 fi
9393
9394 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9395
9396fi;
9397
9398 eval "$ac_cv_use_splash"
9399 if test "$no_cache" != 1; then
9400 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9401 fi
9402
9403 if test "$wxUSE_SPLASH" = yes; then
9404 echo "$as_me:$LINENO: result: yes" >&5
9405echo "${ECHO_T}yes" >&6
9406 else
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
9409 fi
9410
9411
9412 enablestring=
9413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9414echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9415 no_cache=0
9416 # Check whether --enable-textdlg or --disable-textdlg was given.
9417if test "${enable_textdlg+set}" = set; then
9418 enableval="$enable_textdlg"
9419
9420 if test "$enableval" = yes; then
9421 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9422 else
9423 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9424 fi
9425
9426else
9427
9428 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9429 if test "x$LINE" != x ; then
9430 eval "DEFAULT_$LINE"
9431 else
9432 no_cache=1
9433 fi
9434
9435 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9436
9437fi;
9438
9439 eval "$ac_cv_use_textdlg"
9440 if test "$no_cache" != 1; then
9441 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9442 fi
9443
9444 if test "$wxUSE_TEXTDLG" = yes; then
9445 echo "$as_me:$LINENO: result: yes" >&5
9446echo "${ECHO_T}yes" >&6
9447 else
9448 echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6
9450 fi
9451
9452
9453 enablestring=
9454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9455echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9456 no_cache=0
9457 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9458if test "${enable_tipdlg+set}" = set; then
9459 enableval="$enable_tipdlg"
9460
9461 if test "$enableval" = yes; then
9462 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9463 else
9464 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9465 fi
9466
9467else
9468
9469 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9470 if test "x$LINE" != x ; then
9471 eval "DEFAULT_$LINE"
9472 else
9473 no_cache=1
9474 fi
9475
9476 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9477
9478fi;
9479
9480 eval "$ac_cv_use_tipdlg"
9481 if test "$no_cache" != 1; then
9482 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9483 fi
9484
9485 if test "$wxUSE_STARTUP_TIPS" = yes; then
9486 echo "$as_me:$LINENO: result: yes" >&5
9487echo "${ECHO_T}yes" >&6
9488 else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491 fi
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9499if test "${enable_progressdlg+set}" = set; then
9500 enableval="$enable_progressdlg"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9504 else
9505 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9518
9519fi;
9520
9521 eval "$ac_cv_use_progressdlg"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_PROGRESSDLG" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9540if test "${enable_wizarddlg+set}" = set; then
9541 enableval="$enable_wizarddlg"
9542
9543 if test "$enableval" = yes; then
9544 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9545 else
9546 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9547 fi
9548
9549else
9550
9551 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
9558 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9559
9560fi;
9561
9562 eval "$ac_cv_use_wizarddlg"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9565 fi
9566
9567 if test "$wxUSE_WIZARDDLG" = yes; then
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576
9577
9578 enablestring=
9579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9580echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9581 no_cache=0
9582 # Check whether --enable-menus or --disable-menus was given.
9583if test "${enable_menus+set}" = set; then
9584 enableval="$enable_menus"
9585
9586 if test "$enableval" = yes; then
9587 ac_cv_use_menus='wxUSE_MENUS=yes'
9588 else
9589 ac_cv_use_menus='wxUSE_MENUS=no'
9590 fi
9591
9592else
9593
9594 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9595 if test "x$LINE" != x ; then
9596 eval "DEFAULT_$LINE"
9597 else
9598 no_cache=1
9599 fi
9600
9601 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9602
9603fi;
9604
9605 eval "$ac_cv_use_menus"
9606 if test "$no_cache" != 1; then
9607 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9608 fi
9609
9610 if test "$wxUSE_MENUS" = yes; then
9611 echo "$as_me:$LINENO: result: yes" >&5
9612echo "${ECHO_T}yes" >&6
9613 else
9614 echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
9616 fi
9617
9618
9619 enablestring=
9620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9621echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9622 no_cache=0
9623 # Check whether --enable-miniframe or --disable-miniframe was given.
9624if test "${enable_miniframe+set}" = set; then
9625 enableval="$enable_miniframe"
9626
9627 if test "$enableval" = yes; then
9628 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9629 else
9630 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9631 fi
9632
9633else
9634
9635 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9636 if test "x$LINE" != x ; then
9637 eval "DEFAULT_$LINE"
9638 else
9639 no_cache=1
9640 fi
9641
9642 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9643
9644fi;
9645
9646 eval "$ac_cv_use_miniframe"
9647 if test "$no_cache" != 1; then
9648 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9649 fi
9650
9651 if test "$wxUSE_MINIFRAME" = yes; then
9652 echo "$as_me:$LINENO: result: yes" >&5
9653echo "${ECHO_T}yes" >&6
9654 else
9655 echo "$as_me:$LINENO: result: no" >&5
9656echo "${ECHO_T}no" >&6
9657 fi
9658
9659
9660 enablestring=
9661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9662echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9663 no_cache=0
9664 # Check whether --enable-tooltips or --disable-tooltips was given.
9665if test "${enable_tooltips+set}" = set; then
9666 enableval="$enable_tooltips"
9667
9668 if test "$enableval" = yes; then
9669 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9670 else
9671 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9672 fi
9673
9674else
9675
9676 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9677 if test "x$LINE" != x ; then
9678 eval "DEFAULT_$LINE"
9679 else
9680 no_cache=1
9681 fi
9682
9683 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9684
9685fi;
9686
9687 eval "$ac_cv_use_tooltips"
9688 if test "$no_cache" != 1; then
9689 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9690 fi
9691
9692 if test "$wxUSE_TOOLTIPS" = yes; then
9693 echo "$as_me:$LINENO: result: yes" >&5
9694echo "${ECHO_T}yes" >&6
9695 else
9696 echo "$as_me:$LINENO: result: no" >&5
9697echo "${ECHO_T}no" >&6
9698 fi
9699
9700
9701 enablestring=
9702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9703echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9704 no_cache=0
9705 # Check whether --enable-splines or --disable-splines was given.
9706if test "${enable_splines+set}" = set; then
9707 enableval="$enable_splines"
9708
9709 if test "$enableval" = yes; then
9710 ac_cv_use_splines='wxUSE_SPLINES=yes'
9711 else
9712 ac_cv_use_splines='wxUSE_SPLINES=no'
9713 fi
9714
9715else
9716
9717 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9718 if test "x$LINE" != x ; then
9719 eval "DEFAULT_$LINE"
9720 else
9721 no_cache=1
9722 fi
9723
9724 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9725
9726fi;
9727
9728 eval "$ac_cv_use_splines"
9729 if test "$no_cache" != 1; then
9730 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9731 fi
9732
9733 if test "$wxUSE_SPLINES" = yes; then
9734 echo "$as_me:$LINENO: result: yes" >&5
9735echo "${ECHO_T}yes" >&6
9736 else
9737 echo "$as_me:$LINENO: result: no" >&5
9738echo "${ECHO_T}no" >&6
9739 fi
9740
9741
9742 enablestring=
9743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9744echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9745 no_cache=0
9746 # Check whether --enable-validators or --disable-validators was given.
9747if test "${enable_validators+set}" = set; then
9748 enableval="$enable_validators"
9749
9750 if test "$enableval" = yes; then
9751 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9752 else
9753 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9754 fi
9755
9756else
9757
9758 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9759 if test "x$LINE" != x ; then
9760 eval "DEFAULT_$LINE"
9761 else
9762 no_cache=1
9763 fi
9764
9765 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9766
9767fi;
9768
9769 eval "$ac_cv_use_validators"
9770 if test "$no_cache" != 1; then
9771 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9772 fi
9773
9774 if test "$wxUSE_VALIDATORS" = yes; then
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
9777 else
9778 echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
9780 fi
9781
9782
9783 enablestring=
9784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9785echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9786 no_cache=0
9787 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9788if test "${enable_busyinfo+set}" = set; then
9789 enableval="$enable_busyinfo"
9790
9791 if test "$enableval" = yes; then
9792 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9793 else
9794 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9795 fi
9796
9797else
9798
9799 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9800 if test "x$LINE" != x ; then
9801 eval "DEFAULT_$LINE"
9802 else
9803 no_cache=1
9804 fi
9805
9806 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9807
9808fi;
9809
9810 eval "$ac_cv_use_busyinfo"
9811 if test "$no_cache" != 1; then
9812 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9813 fi
9814
9815 if test "$wxUSE_BUSYINFO" = yes; then
9816 echo "$as_me:$LINENO: result: yes" >&5
9817echo "${ECHO_T}yes" >&6
9818 else
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821 fi
9822
9823
9824 enablestring=
9825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9826echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9827 no_cache=0
9828 # Check whether --enable-joystick or --disable-joystick was given.
9829if test "${enable_joystick+set}" = set; then
9830 enableval="$enable_joystick"
9831
9832 if test "$enableval" = yes; then
9833 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9834 else
9835 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9836 fi
9837
9838else
9839
9840 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9841 if test "x$LINE" != x ; then
9842 eval "DEFAULT_$LINE"
9843 else
9844 no_cache=1
9845 fi
9846
9847 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9848
9849fi;
9850
9851 eval "$ac_cv_use_joystick"
9852 if test "$no_cache" != 1; then
9853 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9854 fi
9855
9856 if test "$wxUSE_JOYSTICK" = yes; then
9857 echo "$as_me:$LINENO: result: yes" >&5
9858echo "${ECHO_T}yes" >&6
9859 else
9860 echo "$as_me:$LINENO: result: no" >&5
9861echo "${ECHO_T}no" >&6
9862 fi
9863
9864
9865 enablestring=
9866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9867echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9868 no_cache=0
9869 # Check whether --enable-metafile or --disable-metafile was given.
9870if test "${enable_metafile+set}" = set; then
9871 enableval="$enable_metafile"
9872
9873 if test "$enableval" = yes; then
9874 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9875 else
9876 ac_cv_use_metafile='wxUSE_METAFILE=no'
9877 fi
9878
9879else
9880
9881 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9882 if test "x$LINE" != x ; then
9883 eval "DEFAULT_$LINE"
9884 else
9885 no_cache=1
9886 fi
9887
9888 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9889
9890fi;
9891
9892 eval "$ac_cv_use_metafile"
9893 if test "$no_cache" != 1; then
9894 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9895 fi
9896
9897 if test "$wxUSE_METAFILE" = yes; then
9898 echo "$as_me:$LINENO: result: yes" >&5
9899echo "${ECHO_T}yes" >&6
9900 else
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
9903 fi
9904
9905
9906 enablestring=
9907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9908echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9909 no_cache=0
9910 # Check whether --enable-dragimage or --disable-dragimage was given.
9911if test "${enable_dragimage+set}" = set; then
9912 enableval="$enable_dragimage"
9913
9914 if test "$enableval" = yes; then
9915 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9916 else
9917 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9918 fi
9919
9920else
9921
9922 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9923 if test "x$LINE" != x ; then
9924 eval "DEFAULT_$LINE"
9925 else
9926 no_cache=1
9927 fi
9928
9929 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9930
9931fi;
9932
9933 eval "$ac_cv_use_dragimage"
9934 if test "$no_cache" != 1; then
9935 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9936 fi
9937
9938 if test "$wxUSE_DRAGIMAGE" = yes; then
9939 echo "$as_me:$LINENO: result: yes" >&5
9940echo "${ECHO_T}yes" >&6
9941 else
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
9944 fi
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-accessibility or --disable-accessibility was given.
9952if test "${enable_accessibility+set}" = set; then
9953 enableval="$enable_accessibility"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9957 else
9958 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9971
9972fi;
9973
9974 eval "$ac_cv_use_accessibility"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_ACCESSIBILITY" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988
9989
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-palette or --disable-palette was given.
9995if test "${enable_palette+set}" = set; then
9996 enableval="$enable_palette"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_palette='wxUSE_PALETTE=yes'
10000 else
10001 ac_cv_use_palette='wxUSE_PALETTE=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10014
10015fi;
10016
10017 eval "$ac_cv_use_palette"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_PALETTE" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030
10031 enablestring=
10032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10033echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10034 no_cache=0
10035 # Check whether --enable-image or --disable-image was given.
10036if test "${enable_image+set}" = set; then
10037 enableval="$enable_image"
10038
10039 if test "$enableval" = yes; then
10040 ac_cv_use_image='wxUSE_IMAGE=yes'
10041 else
10042 ac_cv_use_image='wxUSE_IMAGE=no'
10043 fi
10044
10045else
10046
10047 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10048 if test "x$LINE" != x ; then
10049 eval "DEFAULT_$LINE"
10050 else
10051 no_cache=1
10052 fi
10053
10054 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10055
10056fi;
10057
10058 eval "$ac_cv_use_image"
10059 if test "$no_cache" != 1; then
10060 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10061 fi
10062
10063 if test "$wxUSE_IMAGE" = yes; then
10064 echo "$as_me:$LINENO: result: yes" >&5
10065echo "${ECHO_T}yes" >&6
10066 else
10067 echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6
10069 fi
10070
10071
10072 enablestring=
10073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10074echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10075 no_cache=0
10076 # Check whether --enable-gif or --disable-gif was given.
10077if test "${enable_gif+set}" = set; then
10078 enableval="$enable_gif"
10079
10080 if test "$enableval" = yes; then
10081 ac_cv_use_gif='wxUSE_GIF=yes'
10082 else
10083 ac_cv_use_gif='wxUSE_GIF=no'
10084 fi
10085
10086else
10087
10088 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10089 if test "x$LINE" != x ; then
10090 eval "DEFAULT_$LINE"
10091 else
10092 no_cache=1
10093 fi
10094
10095 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10096
10097fi;
10098
10099 eval "$ac_cv_use_gif"
10100 if test "$no_cache" != 1; then
10101 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10102 fi
10103
10104 if test "$wxUSE_GIF" = yes; then
10105 echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6
10107 else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110 fi
10111
10112
10113 enablestring=
10114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10115echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10116 no_cache=0
10117 # Check whether --enable-pcx or --disable-pcx was given.
10118if test "${enable_pcx+set}" = set; then
10119 enableval="$enable_pcx"
10120
10121 if test "$enableval" = yes; then
10122 ac_cv_use_pcx='wxUSE_PCX=yes'
10123 else
10124 ac_cv_use_pcx='wxUSE_PCX=no'
10125 fi
10126
10127else
10128
10129 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10130 if test "x$LINE" != x ; then
10131 eval "DEFAULT_$LINE"
10132 else
10133 no_cache=1
10134 fi
10135
10136 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10137
10138fi;
10139
10140 eval "$ac_cv_use_pcx"
10141 if test "$no_cache" != 1; then
10142 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10143 fi
10144
10145 if test "$wxUSE_PCX" = yes; then
10146 echo "$as_me:$LINENO: result: yes" >&5
10147echo "${ECHO_T}yes" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151 fi
10152
10153
10154 enablestring=
10155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10156echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10157 no_cache=0
10158 # Check whether --enable-iff or --disable-iff was given.
10159if test "${enable_iff+set}" = set; then
10160 enableval="$enable_iff"
10161
10162 if test "$enableval" = yes; then
10163 ac_cv_use_iff='wxUSE_IFF=yes'
10164 else
10165 ac_cv_use_iff='wxUSE_IFF=no'
10166 fi
10167
10168else
10169
10170 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10171 if test "x$LINE" != x ; then
10172 eval "DEFAULT_$LINE"
10173 else
10174 no_cache=1
10175 fi
10176
10177 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10178
10179fi;
10180
10181 eval "$ac_cv_use_iff"
10182 if test "$no_cache" != 1; then
10183 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10184 fi
10185
10186 if test "$wxUSE_IFF" = yes; then
10187 echo "$as_me:$LINENO: result: yes" >&5
10188echo "${ECHO_T}yes" >&6
10189 else
10190 echo "$as_me:$LINENO: result: no" >&5
10191echo "${ECHO_T}no" >&6
10192 fi
10193
10194
10195 enablestring=
10196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10197echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10198 no_cache=0
10199 # Check whether --enable-pnm or --disable-pnm was given.
10200if test "${enable_pnm+set}" = set; then
10201 enableval="$enable_pnm"
10202
10203 if test "$enableval" = yes; then
10204 ac_cv_use_pnm='wxUSE_PNM=yes'
10205 else
10206 ac_cv_use_pnm='wxUSE_PNM=no'
10207 fi
10208
10209else
10210
10211 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10212 if test "x$LINE" != x ; then
10213 eval "DEFAULT_$LINE"
10214 else
10215 no_cache=1
10216 fi
10217
10218 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10219
10220fi;
10221
10222 eval "$ac_cv_use_pnm"
10223 if test "$no_cache" != 1; then
10224 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10225 fi
10226
10227 if test "$wxUSE_PNM" = yes; then
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
10230 else
10231 echo "$as_me:$LINENO: result: no" >&5
10232echo "${ECHO_T}no" >&6
10233 fi
10234
10235
10236 enablestring=
10237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10238echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10239 no_cache=0
10240 # Check whether --enable-xpm or --disable-xpm was given.
10241if test "${enable_xpm+set}" = set; then
10242 enableval="$enable_xpm"
10243
10244 if test "$enableval" = yes; then
10245 ac_cv_use_xpm='wxUSE_XPM=yes'
10246 else
10247 ac_cv_use_xpm='wxUSE_XPM=no'
10248 fi
10249
10250else
10251
10252 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10253 if test "x$LINE" != x ; then
10254 eval "DEFAULT_$LINE"
10255 else
10256 no_cache=1
10257 fi
10258
10259 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10260
10261fi;
10262
10263 eval "$ac_cv_use_xpm"
10264 if test "$no_cache" != 1; then
10265 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10266 fi
10267
10268 if test "$wxUSE_XPM" = yes; then
10269 echo "$as_me:$LINENO: result: yes" >&5
10270echo "${ECHO_T}yes" >&6
10271 else
10272 echo "$as_me:$LINENO: result: no" >&5
10273echo "${ECHO_T}no" >&6
10274 fi
10275
10276
10277 enablestring=
10278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10279echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10280 no_cache=0
10281 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10282if test "${enable_ico_cur+set}" = set; then
10283 enableval="$enable_ico_cur"
10284
10285 if test "$enableval" = yes; then
10286 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10287 else
10288 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10289 fi
10290
10291else
10292
10293 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10294 if test "x$LINE" != x ; then
10295 eval "DEFAULT_$LINE"
10296 else
10297 no_cache=1
10298 fi
10299
10300 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10301
10302fi;
10303
10304 eval "$ac_cv_use_ico_cur"
10305 if test "$no_cache" != 1; then
10306 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10307 fi
10308
10309 if test "$wxUSE_ICO_CUR" = yes; then
10310 echo "$as_me:$LINENO: result: yes" >&5
10311echo "${ECHO_T}yes" >&6
10312 else
10313 echo "$as_me:$LINENO: result: no" >&5
10314echo "${ECHO_T}no" >&6
10315 fi
10316
10317
10318fi
10319
10320
10321
ceec2216
RL
10322# Check whether --with-flavour or --without-flavour was given.
10323if test "${with_flavour+set}" = set; then
10324 withval="$with_flavour"
10325 WX_FLAVOUR="$withval"
10326fi;
10327
10328
10329
a848cd7e
SC
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-official_build or --disable-official_build was given.
10335if test "${enable_official_build+set}" = set; then
10336 enableval="$enable_official_build"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10340 else
10341 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10354
10355fi;
10356
10357 eval "$ac_cv_use_official_build"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370# Check whether --enable-vendor or --disable-vendor was given.
10371if test "${enable_vendor+set}" = set; then
10372 enableval="$enable_vendor"
10373 VENDOR="$enableval"
10374fi;
10375if test "x$VENDOR" = "x"; then
10376 VENDOR="custom"
10377fi
10378
a848cd7e
SC
10379
10380
10381
10382 echo "saving argument cache $wx_arg_cache_file"
10383 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10384
10385
10386
10387echo "$as_me:$LINENO: checking for toolkit" >&5
10388echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10389
10390# In Wine, we need to default to MSW, not GTK or MOTIF
10391if test "$wxUSE_WINE" = "yes"; then
10392 DEFAULT_DEFAULT_wxUSE_GTK=0
10393 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10394 DEFAULT_DEFAULT_wxUSE_MSW=1
10395 wxUSE_SHARED=no
10396fi
10397
10398if test "$wxUSE_GUI" = "yes"; then
10399
10400 if test "$USE_BEOS" = 1; then
10401 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10402echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10403 { (exit 1); exit 1; }; }
10404 fi
10405
10406 if test "$TOOLKIT_GIVEN" = 1; then
10407 for toolkit in `echo $ALL_TOOLKITS`; do
10408 var=wxUSE_$toolkit
10409 eval "value=\$${var}"
10410 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10411 done
10412 else
10413 for toolkit in `echo $ALL_TOOLKITS`; do
10414 if test "$has_toolkit_in_cache" != 1; then
10415 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10416 else
10417 var=DEFAULT_wxUSE_$toolkit
10418 fi
10419 eval "wxUSE_$toolkit=\$${var}"
10420 done
10421 fi
10422
10423 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10424 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10425 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10426
10427 case "${host}" in
10428 *-pc-os2_emx | *-pc-os2-emx )
10429 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10430 esac
10431
10432 case "$NUM_TOOLKITS" in
10433 1)
10434 ;;
10435 0)
10436 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10437echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10438 { (exit 1); exit 1; }; }
10439 ;;
10440 *)
10441 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10442echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10443 { (exit 1); exit 1; }; }
10444 esac
10445
10446 for toolkit in `echo $ALL_TOOLKITS`; do
10447 var=wxUSE_$toolkit
10448 eval "value=\$${var}"
10449 if test "x$value" != x; then
10450 cache_var=CACHE_$toolkit
10451 eval "cache=\$${cache_var}"
10452 if test "$cache" = 1; then
10453 echo "$var=$value" >> ${wx_arg_cache_file}
10454 fi
10455 if test "$value" = 1; then
10456 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10457 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10458echo "${ECHO_T}$toolkit_echo" >&6
10459 fi
10460 fi
10461 done
10462else
10463 if test "x$host_alias" != "x"; then
10464 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10465echo "${ECHO_T}base ($host_alias hosted) only" >&6
10466 else
10467 echo "$as_me:$LINENO: result: base only" >&5
10468echo "${ECHO_T}base only" >&6
10469 fi
10470fi
10471
10472wants_win32=0
10473doesnt_want_win32=0
10474case "${host}" in
10475 *-*-cygwin*)
10476 if test "$wxUSE_MSW" = 1 ; then
10477 wants_win32=1
10478 else
10479 doesnt_want_win32=1
10480 fi
10481 ;;
10482 *-*-mingw*)
10483 wants_win32=1
10484 ;;
10485esac
10486
10487if test "$wxUSE_WINE" = "yes"; then
10488 wants_win32=1
10489 CC=winegcc
10490 CXX=wineg++
10491 RESCOMP=wrc
10492 LDFLAGS_GUI="-mwindows"
10493fi
10494
10495if test "$wants_win32" = 1 ; then
10496 USE_UNIX=0
10497 USE_WIN32=1
10498 cat >>confdefs.h <<\_ACEOF
10499#define __WIN32__ 1
10500_ACEOF
10501
10502 cat >>confdefs.h <<\_ACEOF
10503#define __WIN95__ 1
10504_ACEOF
10505
10506 cat >>confdefs.h <<\_ACEOF
10507#define __WINDOWS__ 1
10508_ACEOF
10509
10510 cat >>confdefs.h <<\_ACEOF
10511#define __GNUWIN32__ 1
10512_ACEOF
10513
10514 cat >>confdefs.h <<\_ACEOF
10515#define STRICT 1
10516_ACEOF
10517
10518 cat >>confdefs.h <<\_ACEOF
10519#define WINVER 0x0400
10520_ACEOF
10521
10522fi
10523if test "$doesnt_want_win32" = 1 ; then
10524 USE_UNIX=1
10525 USE_WIN32=0
10526fi
10527
10528if test "$USE_UNIX" = 1 ; then
10529 wxUSE_UNIX=yes
10530 cat >>confdefs.h <<\_ACEOF
10531#define __UNIX__ 1
10532_ACEOF
10533
10534fi
10535
10536
10537cat >confcache <<\_ACEOF
10538# This file is a shell script that caches the results of configure
10539# tests run on this system so they can be shared between configure
10540# scripts and configure runs, see configure's option --config-cache.
10541# It is not useful on other systems. If it contains results you don't
10542# want to keep, you may remove or edit it.
10543#
10544# config.status only pays attention to the cache file if you give it
10545# the --recheck option to rerun configure.
10546#
10547# `ac_cv_env_foo' variables (set or unset) will be overridden when
10548# loading this file, other *unset* `ac_cv_foo' will be assigned the
10549# following values.
10550
10551_ACEOF
10552
10553# The following way of writing the cache mishandles newlines in values,
10554# but we know of no workaround that is simple, portable, and efficient.
10555# So, don't put newlines in cache variables' values.
10556# Ultrix sh set writes to stderr and can't be redirected directly,
10557# and sets the high bit in the cache file unless we assign to the vars.
10558{
10559 (set) 2>&1 |
10560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10561 *ac_space=\ *)
10562 # `set' does not quote correctly, so add quotes (double-quote
10563 # substitution turns \\\\ into \\, and sed turns \\ into \).
10564 sed -n \
ac1cb8d3
VS
10565 "s/'/'\\\\''/g;
10566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10567 ;;
10568 *)
10569 # `set' quotes correctly as required by POSIX, so do not add quotes.
10570 sed -n \
ac1cb8d3 10571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10572 ;;
10573 esac;
10574} |
10575 sed '
10576 t clear
10577 : clear
10578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10579 t end
10580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10581 : end' >>confcache
10582if diff $cache_file confcache >/dev/null 2>&1; then :; else
10583 if test -w $cache_file; then
10584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10585 cat confcache >$cache_file
10586 else
10587 echo "not updating unwritable cache $cache_file"
10588 fi
10589fi
10590rm -f confcache
10591
10592if test "$build" != "$host" ; then
1e9e8aba 10593 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10594 CC=$host_alias-gcc
10595 CXX=$host_alias-c++
10596 AR=$host_alias-ar
10597 RANLIB=$host_alias-ranlib
10598 DLLTOOL=$host_alias-dlltool
10599 RESCOMP=$host_alias-windres
a848cd7e 10600 STRIP=$host_alias-strip
1e9e8aba
DE
10601 elif test "x$CC" '!=' "x"; then
10602 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10603 else
10604 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10605echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10606 { (exit 1); exit 1; }; }
10607 fi
10608fi
10609
10610CFLAGS=${CFLAGS:=}
6dcfc289
DE
10611
10612
10613 ac_ext=c
a848cd7e
SC
10614ac_cpp='$CPP $CPPFLAGS'
10615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618if test -n "$ac_tool_prefix"; then
10619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10620set dummy ${ac_tool_prefix}gcc; ac_word=$2
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_prog_CC+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625else
10626 if test -n "$CC"; then
10627 ac_cv_prog_CC="$CC" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
10643fi
10644fi
10645CC=$ac_cv_prog_CC
10646if test -n "$CC"; then
10647 echo "$as_me:$LINENO: result: $CC" >&5
10648echo "${ECHO_T}$CC" >&6
10649else
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
10652fi
10653
10654fi
10655if test -z "$ac_cv_prog_CC"; then
10656 ac_ct_CC=$CC
10657 # Extract the first word of "gcc", so it can be a program name with args.
10658set dummy gcc; ac_word=$2
10659echo "$as_me:$LINENO: checking for $ac_word" >&5
10660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663else
10664 if test -n "$ac_ct_CC"; then
10665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10666else
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_ac_ct_CC="gcc"
10675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679done
10680
10681fi
10682fi
10683ac_ct_CC=$ac_cv_prog_ac_ct_CC
10684if test -n "$ac_ct_CC"; then
10685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10686echo "${ECHO_T}$ac_ct_CC" >&6
10687else
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
10690fi
10691
10692 CC=$ac_ct_CC
10693else
10694 CC="$ac_cv_prog_CC"
10695fi
10696
10697if test -z "$CC"; then
10698 if test -n "$ac_tool_prefix"; then
10699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10700set dummy ${ac_tool_prefix}cc; ac_word=$2
10701echo "$as_me:$LINENO: checking for $ac_word" >&5
10702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10703if test "${ac_cv_prog_CC+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706 if test -n "$CC"; then
10707 ac_cv_prog_CC="$CC" # Let the user override the test.
10708else
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_prog_CC="${ac_tool_prefix}cc"
10717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720done
10721done
10722
10723fi
10724fi
10725CC=$ac_cv_prog_CC
10726if test -n "$CC"; then
10727 echo "$as_me:$LINENO: result: $CC" >&5
10728echo "${ECHO_T}$CC" >&6
10729else
10730 echo "$as_me:$LINENO: result: no" >&5
10731echo "${ECHO_T}no" >&6
10732fi
10733
10734fi
10735if test -z "$ac_cv_prog_CC"; then
10736 ac_ct_CC=$CC
10737 # Extract the first word of "cc", so it can be a program name with args.
10738set dummy cc; ac_word=$2
10739echo "$as_me:$LINENO: checking for $ac_word" >&5
10740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744 if test -n "$ac_ct_CC"; then
10745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10746else
10747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748for as_dir in $PATH
10749do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_prog_ac_ct_CC="cc"
10755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10757 fi
10758done
10759done
10760
10761fi
10762fi
10763ac_ct_CC=$ac_cv_prog_ac_ct_CC
10764if test -n "$ac_ct_CC"; then
10765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10766echo "${ECHO_T}$ac_ct_CC" >&6
10767else
10768 echo "$as_me:$LINENO: result: no" >&5
10769echo "${ECHO_T}no" >&6
10770fi
10771
10772 CC=$ac_ct_CC
10773else
10774 CC="$ac_cv_prog_CC"
10775fi
10776
10777fi
10778if test -z "$CC"; then
10779 # Extract the first word of "cc", so it can be a program name with args.
10780set dummy cc; ac_word=$2
10781echo "$as_me:$LINENO: checking for $ac_word" >&5
10782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10783if test "${ac_cv_prog_CC+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 if test -n "$CC"; then
10787 ac_cv_prog_CC="$CC" # Let the user override the test.
10788else
10789 ac_prog_rejected=no
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10798 ac_prog_rejected=yes
10799 continue
10800 fi
10801 ac_cv_prog_CC="cc"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805done
10806done
10807
10808if test $ac_prog_rejected = yes; then
10809 # We found a bogon in the path, so make sure we never use it.
10810 set dummy $ac_cv_prog_CC
10811 shift
10812 if test $# != 0; then
10813 # We chose a different compiler from the bogus one.
10814 # However, it has the same basename, so the bogon will be chosen
10815 # first if we set CC to just the basename; use the full file name.
10816 shift
10817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10818 fi
10819fi
10820fi
10821fi
10822CC=$ac_cv_prog_CC
10823if test -n "$CC"; then
10824 echo "$as_me:$LINENO: result: $CC" >&5
10825echo "${ECHO_T}$CC" >&6
10826else
10827 echo "$as_me:$LINENO: result: no" >&5
10828echo "${ECHO_T}no" >&6
10829fi
10830
10831fi
10832if test -z "$CC"; then
10833 if test -n "$ac_tool_prefix"; then
10834 for ac_prog in cl
10835 do
10836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10840if test "${ac_cv_prog_CC+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 if test -n "$CC"; then
10844 ac_cv_prog_CC="$CC" # Let the user override the test.
10845else
10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858done
10859
10860fi
10861fi
10862CC=$ac_cv_prog_CC
10863if test -n "$CC"; then
10864 echo "$as_me:$LINENO: result: $CC" >&5
10865echo "${ECHO_T}$CC" >&6
10866else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869fi
10870
10871 test -n "$CC" && break
10872 done
10873fi
10874if test -z "$CC"; then
10875 ac_ct_CC=$CC
10876 for ac_prog in cl
10877do
10878 # Extract the first word of "$ac_prog", so it can be a program name with args.
10879set dummy $ac_prog; ac_word=$2
10880echo "$as_me:$LINENO: checking for $ac_word" >&5
10881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 if test -n "$ac_ct_CC"; then
10886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10887else
10888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_ac_ct_CC="$ac_prog"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900done
10901
10902fi
10903fi
10904ac_ct_CC=$ac_cv_prog_ac_ct_CC
10905if test -n "$ac_ct_CC"; then
10906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10907echo "${ECHO_T}$ac_ct_CC" >&6
10908else
10909 echo "$as_me:$LINENO: result: no" >&5
10910echo "${ECHO_T}no" >&6
10911fi
10912
10913 test -n "$ac_ct_CC" && break
10914done
10915
10916 CC=$ac_ct_CC
10917fi
10918
10919fi
10920
10921
10922test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10923See \`config.log' for more details." >&5
10924echo "$as_me: error: no acceptable C compiler found in \$PATH
10925See \`config.log' for more details." >&2;}
10926 { (exit 1); exit 1; }; }
10927
10928# Provide some information about the compiler.
10929echo "$as_me:$LINENO:" \
10930 "checking for C compiler version" >&5
10931ac_compiler=`set X $ac_compile; echo $2`
10932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10933 (eval $ac_compiler --version </dev/null >&5) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }
10937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10938 (eval $ac_compiler -v </dev/null >&5) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }
10942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10943 (eval $ac_compiler -V </dev/null >&5) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }
10947
10948cat >conftest.$ac_ext <<_ACEOF
10949/* confdefs.h. */
10950_ACEOF
10951cat confdefs.h >>conftest.$ac_ext
10952cat >>conftest.$ac_ext <<_ACEOF
10953/* end confdefs.h. */
10954
10955int
10956main ()
10957{
10958
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963ac_clean_files_save=$ac_clean_files
10964ac_clean_files="$ac_clean_files a.out a.exe b.out"
10965# Try to create an executable without -o first, disregard a.out.
10966# It will help us diagnose broken compilers, and finding out an intuition
10967# of exeext.
ac1cb8d3
VS
10968echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10969echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10970ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10971if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10972 (eval $ac_link_default) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; then
10976 # Find the output, starting from the most likely. This scheme is
10977# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10978# resort.
10979
10980# Be careful to initialize this variable, since it used to be cached.
10981# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10982ac_cv_exeext=
10983# b.out is created by i960 compilers.
10984for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10985do
10986 test -f "$ac_file" || continue
10987 case $ac_file in
10988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10989 ;;
a848cd7e 10990 conftest.$ac_ext )
ac1cb8d3
VS
10991 # This is the source file.
10992 ;;
a848cd7e 10993 [ab].out )
ac1cb8d3
VS
10994 # We found the default executable, but exeext='' is most
10995 # certainly right.
10996 break;;
a848cd7e 10997 *.* )
ac1cb8d3
VS
10998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10999 # FIXME: I believe we export ac_cv_exeext for Libtool,
11000 # but it would be cool to find out if it's true. Does anybody
11001 # maintain Libtool? --akim.
11002 export ac_cv_exeext
11003 break;;
a848cd7e 11004 * )
ac1cb8d3 11005 break;;
a848cd7e
SC
11006 esac
11007done
11008else
11009 echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11013See \`config.log' for more details." >&5
11014echo "$as_me: error: C compiler cannot create executables
11015See \`config.log' for more details." >&2;}
11016 { (exit 77); exit 77; }; }
11017fi
11018
11019ac_exeext=$ac_cv_exeext
11020echo "$as_me:$LINENO: result: $ac_file" >&5
11021echo "${ECHO_T}$ac_file" >&6
11022
11023# Check the compiler produces executables we can run. If not, either
11024# the compiler is broken, or we cross compile.
11025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11028# If not cross compiling, check that we can run a simple program.
11029if test "$cross_compiling" != yes; then
11030 if { ac_try='./$ac_file'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 cross_compiling=no
11037 else
11038 if test "$cross_compiling" = maybe; then
11039 cross_compiling=yes
11040 else
11041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11042If you meant to cross compile, use \`--host'.
11043See \`config.log' for more details." >&5
11044echo "$as_me: error: cannot run C compiled programs.
11045If you meant to cross compile, use \`--host'.
11046See \`config.log' for more details." >&2;}
11047 { (exit 1); exit 1; }; }
11048 fi
11049 fi
11050fi
11051echo "$as_me:$LINENO: result: yes" >&5
11052echo "${ECHO_T}yes" >&6
11053
11054rm -f a.out a.exe conftest$ac_cv_exeext b.out
11055ac_clean_files=$ac_clean_files_save
11056# Check the compiler produces executables we can run. If not, either
11057# the compiler is broken, or we cross compile.
11058echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11060echo "$as_me:$LINENO: result: $cross_compiling" >&5
11061echo "${ECHO_T}$cross_compiling" >&6
11062
11063echo "$as_me:$LINENO: checking for suffix of executables" >&5
11064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; then
11070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11071# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11072# work properly (i.e., refer to `conftest.exe'), while it won't with
11073# `rm'.
11074for ac_file in conftest.exe conftest conftest.*; do
11075 test -f "$ac_file" || continue
11076 case $ac_file in
11077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11079 export ac_cv_exeext
11080 break;;
a848cd7e
SC
11081 * ) break;;
11082 esac
11083done
11084else
11085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11086See \`config.log' for more details." >&5
11087echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11088See \`config.log' for more details." >&2;}
11089 { (exit 1); exit 1; }; }
11090fi
11091
11092rm -f conftest$ac_cv_exeext
11093echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11094echo "${ECHO_T}$ac_cv_exeext" >&6
11095
11096rm -f conftest.$ac_ext
11097EXEEXT=$ac_cv_exeext
11098ac_exeext=$EXEEXT
11099echo "$as_me:$LINENO: checking for suffix of object files" >&5
11100echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11101if test "${ac_cv_objext+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104 cat >conftest.$ac_ext <<_ACEOF
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110
11111int
11112main ()
11113{
11114
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.o conftest.obj
11120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; then
11125 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11126 case $ac_file in
11127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11129 break;;
11130 esac
11131done
11132else
11133 echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11137See \`config.log' for more details." >&5
11138echo "$as_me: error: cannot compute suffix of object files: cannot compile
11139See \`config.log' for more details." >&2;}
11140 { (exit 1); exit 1; }; }
11141fi
11142
11143rm -f conftest.$ac_cv_objext conftest.$ac_ext
11144fi
11145echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11146echo "${ECHO_T}$ac_cv_objext" >&6
11147OBJEXT=$ac_cv_objext
11148ac_objext=$OBJEXT
11149echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11150echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11151if test "${ac_cv_c_compiler_gnu+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153else
11154 cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160
11161int
11162main ()
11163{
11164#ifndef __GNUC__
11165 choke me
11166#endif
11167
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11174 (eval $ac_compile) 2>conftest.er1
a848cd7e 11175 ac_status=$?
ac1cb8d3
VS
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
a848cd7e
SC
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
07158944 11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 ac_compiler_gnu=yes
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198ac_compiler_gnu=no
11199fi
ac1cb8d3 11200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11201ac_cv_c_compiler_gnu=$ac_compiler_gnu
11202
11203fi
11204echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11205echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11206GCC=`test $ac_compiler_gnu = yes && echo yes`
11207ac_test_CFLAGS=${CFLAGS+set}
11208ac_save_CFLAGS=$CFLAGS
11209CFLAGS="-g"
11210echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11211echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11212if test "${ac_cv_prog_cc_g+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
11221
11222int
11223main ()
11224{
11225
11226 ;
11227 return 0;
11228}
11229_ACEOF
11230rm -f conftest.$ac_objext
11231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11232 (eval $ac_compile) 2>conftest.er1
a848cd7e 11233 ac_status=$?
ac1cb8d3
VS
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
a848cd7e
SC
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
07158944 11239 { ac_try='test -z "$ac_c_werror_flag" || 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 ac_cv_prog_cc_g=yes
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256ac_cv_prog_cc_g=no
11257fi
ac1cb8d3 11258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11259fi
11260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11262if test "$ac_test_CFLAGS" = set; then
11263 CFLAGS=$ac_save_CFLAGS
11264elif test $ac_cv_prog_cc_g = yes; then
11265 if test "$GCC" = yes; then
11266 CFLAGS="-g -O2"
11267 else
11268 CFLAGS="-g"
11269 fi
11270else
11271 if test "$GCC" = yes; then
11272 CFLAGS="-O2"
11273 else
11274 CFLAGS=
11275 fi
11276fi
11277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11279if test "${ac_cv_prog_cc_stdc+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 ac_cv_prog_cc_stdc=no
11283ac_save_CC=$CC
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290#include <stdarg.h>
11291#include <stdio.h>
11292#include <sys/types.h>
11293#include <sys/stat.h>
11294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11295struct buf { int x; };
11296FILE * (*rcsopen) (struct buf *, struct stat *, int);
11297static char *e (p, i)
11298 char **p;
11299 int i;
11300{
11301 return p[i];
11302}
11303static char *f (char * (*g) (char **, int), char **p, ...)
11304{
11305 char *s;
11306 va_list v;
11307 va_start (v,p);
11308 s = g (p, va_arg (v,int));
11309 va_end (v);
11310 return s;
11311}
ac1cb8d3
VS
11312
11313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11314 function prototypes and stuff, but not '\xHH' hex character constants.
11315 These don't provoke an error unfortunately, instead are silently treated
11316 as 'x'. The following induces an error, until -std1 is added to get
11317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11318 array size at least. It's necessary to write '\x00'==0 to get something
11319 that's true only with -std1. */
11320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11321
a848cd7e
SC
11322int test (int i, double x);
11323struct s1 {int (*f) (int a);};
11324struct s2 {int (*f) (double a);};
11325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11326int argc;
11327char **argv;
11328int
11329main ()
11330{
11331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336# Don't try gcc -ansi; that turns off useful extensions and
11337# breaks some systems' header files.
11338# AIX -qlanglvl=ansi
11339# Ultrix and OSF/1 -std1
11340# HP-UX 10.20 and later -Ae
11341# HP-UX older versions -Aa -D_HPUX_SOURCE
11342# SVR4 -Xc -D__EXTENSIONS__
11343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11344do
11345 CC="$ac_save_CC $ac_arg"
11346 rm -f conftest.$ac_objext
11347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11348 (eval $ac_compile) 2>conftest.er1
a848cd7e 11349 ac_status=$?
ac1cb8d3
VS
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
a848cd7e
SC
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
07158944 11355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_cv_prog_cc_stdc=$ac_arg
11368break
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373fi
ac1cb8d3 11374rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11375done
11376rm -f conftest.$ac_ext conftest.$ac_objext
11377CC=$ac_save_CC
11378
11379fi
11380
11381case "x$ac_cv_prog_cc_stdc" in
11382 x|xno)
11383 echo "$as_me:$LINENO: result: none needed" >&5
11384echo "${ECHO_T}none needed" >&6 ;;
11385 *)
11386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11387echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11388 CC="$CC $ac_cv_prog_cc_stdc" ;;
11389esac
11390
11391# Some people use a C++ compiler to compile C. Since we use `exit',
11392# in C++ we need to declare it. In case someone uses the same compiler
11393# for both compiling C and C++ we need to have the C++ compiler decide
11394# the declaration of exit, since it's the most demanding environment.
11395cat >conftest.$ac_ext <<_ACEOF
11396#ifndef __cplusplus
11397 choke me
11398#endif
11399_ACEOF
11400rm -f conftest.$ac_objext
11401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11402 (eval $ac_compile) 2>conftest.er1
a848cd7e 11403 ac_status=$?
ac1cb8d3
VS
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
a848cd7e
SC
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
07158944 11409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 for ac_declaration in \
ac1cb8d3 11422 '' \
a848cd7e
SC
11423 'extern "C" void std::exit (int) throw (); using std::exit;' \
11424 'extern "C" void std::exit (int); using std::exit;' \
11425 'extern "C" void exit (int) throw ();' \
11426 'extern "C" void exit (int);' \
11427 'void exit (int);'
11428do
11429 cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h. */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h. */
de59c161 11435$ac_declaration
ac1cb8d3 11436#include <stdlib.h>
a848cd7e
SC
11437int
11438main ()
11439{
11440exit (42);
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest.$ac_objext
11446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11447 (eval $ac_compile) 2>conftest.er1
a848cd7e 11448 ac_status=$?
ac1cb8d3
VS
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
a848cd7e
SC
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
07158944 11454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 :
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471continue
11472fi
ac1cb8d3 11473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11474 cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
11480$ac_declaration
11481int
11482main ()
11483{
11484exit (42);
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext
11490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11491 (eval $ac_compile) 2>conftest.er1
a848cd7e 11492 ac_status=$?
ac1cb8d3
VS
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
a848cd7e
SC
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
07158944 11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 break
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515fi
ac1cb8d3 11516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11517done
11518rm -f conftest*
11519if test -n "$ac_declaration"; then
11520 echo '#ifdef __cplusplus' >>confdefs.h
11521 echo $ac_declaration >>confdefs.h
11522 echo '#endif' >>confdefs.h
11523fi
11524
11525else
11526 echo "$as_me: failed program was:" >&5
11527sed 's/^/| /' conftest.$ac_ext >&5
11528
11529fi
ac1cb8d3 11530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11531ac_ext=c
11532ac_cpp='$CPP $CPPFLAGS'
11533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536
6dcfc289 11537 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11538echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11539if test "${wx_cv_c_exto+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541else
11542 cat >conftest.$ac_ext <<_ACEOF
11543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
11548
11549int
11550main ()
11551{
11552
11553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext conftest.$ac_ext.o
11558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; then
11563 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11564 case $ac_file in
11565 conftest.$ac_ext.o)
11566 wx_cv_c_exto="-ext o"
11567 ;;
11568 *)
11569 ;;
11570 esac
11571done
11572else
11573 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11574See \`config.log' for more details." >&5
11575echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11576See \`config.log' for more details." >&2;}
11577 { (exit 1); exit 1; }; }
11578
11579fi
11580
11581rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11582
11583fi
11584echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11585echo "${ECHO_T}$wx_cv_c_exto" >&6
11586if test "x$wx_cv_c_exto" '!=' "x"; then
11587 if test "c" = "c"; then
11588 CFLAGS="$wx_cv_c_exto $CFLAGS"
11589 fi
11590 if test "c" = "cxx"; then
11591 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11592 fi
11593fi
11594
6dcfc289
DE
11595 if test "x$wx_cv_c_exto" '!=' "x"; then
11596 unset ac_cv_prog_cc_g
11597 ac_test_CFLAGS=${CFLAGS+set}
480ccd21
DE
11598ac_save_CFLAGS=$CFLAGS
11599CFLAGS="-g"
11600echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11601echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11602if test "${ac_cv_prog_cc_g+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611
11612int
11613main ()
11614{
11615
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext
11621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
07158944 11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest.$ac_objext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_cv_prog_cc_g=yes
11642else
11643 echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646ac_cv_prog_cc_g=no
11647fi
11648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11649fi
11650echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11651echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11652if test "$ac_test_CFLAGS" = set; then
11653 CFLAGS=$ac_save_CFLAGS
11654elif test $ac_cv_prog_cc_g = yes; then
11655 if test "$GCC" = yes; then
11656 CFLAGS="-g -O2"
11657 else
11658 CFLAGS="-g"
11659 fi
11660else
11661 if test "$GCC" = yes; then
11662 CFLAGS="-O2"
11663 else
11664 CFLAGS=
11665 fi
11666fi
6dcfc289
DE
11667 fi
11668 ac_ext=c
95986553
DE
11669ac_cpp='$CPP $CPPFLAGS'
11670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673
11674echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11675echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11676if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685
11686int
11687main ()
11688{
11689#ifndef __MWERKS__
11690 choke me
11691#endif
11692
11693 ;
11694 return 0;
11695}
11696_ACEOF
11697rm -f conftest.$ac_objext
11698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
07158944 11706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 bakefile_compiler_mwerks=yes
11719else
11720 echo "$as_me: failed program was:" >&5
11721sed 's/^/| /' conftest.$ac_ext >&5
11722
11723bakefile_compiler_mwerks=no
11724fi
11725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11726 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11727
11728fi
11729echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11730echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11731
0e6fa1d9 11732MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11733ac_ext=c
11734ac_cpp='$CPP $CPPFLAGS'
11735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738
11739
6dcfc289 11740 ac_ext=c
9273ffba
DE
11741ac_cpp='$CPP $CPPFLAGS'
11742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745
11746echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11747echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11748if test "${wx_cv_c_compiler_xlc+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751 cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757
11758int
11759main ()
11760{
11761#ifndef __xlC__
11762 choke me
11763#endif
11764
11765 ;
11766 return 0;
11767}
11768_ACEOF
11769rm -f conftest.$ac_objext
11770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
07158944 11778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest.$ac_objext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 wx_compiler_xlc=yes
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795wx_compiler_xlc=no
11796fi
11797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11798 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11799
11800fi
11801echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11802echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11803
0e6fa1d9 11804XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11805ac_ext=c
11806ac_cpp='$CPP $CPPFLAGS'
11807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11809ac_compiler_gnu=$ac_cv_c_compiler_gnu
11810
11811
a848cd7e 11812
6dcfc289 11813
a848cd7e
SC
11814ac_ext=c
11815ac_cpp='$CPP $CPPFLAGS'
11816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818ac_compiler_gnu=$ac_cv_c_compiler_gnu
11819echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11820echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11821# On Suns, sometimes $CPP names a directory.
11822if test -n "$CPP" && test -d "$CPP"; then
11823 CPP=
11824fi
11825if test -z "$CPP"; then
11826 if test "${ac_cv_prog_CPP+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 # Double quotes because CPP needs to be expanded
11830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11831 do
11832 ac_preproc_ok=false
11833for ac_c_preproc_warn_flag in '' yes
11834do
11835 # Use a header file that comes with gcc, so configuring glibc
11836 # with a fresh cross-compiler works.
11837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 # <limits.h> exists even on freestanding compilers.
11839 # On the NeXT, cc -E runs the code through the compiler's parser,
11840 # not just through cpp. "Syntax error" is here to catch this case.
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847#ifdef __STDC__
11848# include <limits.h>
11849#else
11850# include <assert.h>
11851#endif
ac1cb8d3 11852 Syntax error
a848cd7e
SC
11853_ACEOF
11854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } >/dev/null; then
11862 if test -s conftest.err; then
11863 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11865 else
11866 ac_cpp_err=
11867 fi
11868else
11869 ac_cpp_err=yes
11870fi
11871if test -z "$ac_cpp_err"; then
11872 :
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 # Broken: fails on valid input.
11878continue
11879fi
11880rm -f conftest.err conftest.$ac_ext
11881
11882 # OK, works on sane cases. Now check whether non-existent headers
11883 # can be detected and how.
11884 cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890#include <ac_nonexistent.h>
11891_ACEOF
11892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } >/dev/null; then
11900 if test -s conftest.err; then
11901 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11903 else
11904 ac_cpp_err=
11905 fi
11906else
11907 ac_cpp_err=yes
11908fi
11909if test -z "$ac_cpp_err"; then
11910 # Broken: success on invalid input.
11911continue
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 # Passes both tests.
11917ac_preproc_ok=:
11918break
11919fi
11920rm -f conftest.err conftest.$ac_ext
11921
11922done
11923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11924rm -f conftest.err conftest.$ac_ext
11925if $ac_preproc_ok; then
11926 break
11927fi
11928
11929 done
11930 ac_cv_prog_CPP=$CPP
11931
11932fi
11933 CPP=$ac_cv_prog_CPP
11934else
11935 ac_cv_prog_CPP=$CPP
11936fi
11937echo "$as_me:$LINENO: result: $CPP" >&5
11938echo "${ECHO_T}$CPP" >&6
11939ac_preproc_ok=false
11940for ac_c_preproc_warn_flag in '' yes
11941do
11942 # Use a header file that comes with gcc, so configuring glibc
11943 # with a fresh cross-compiler works.
11944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 # <limits.h> exists even on freestanding compilers.
11946 # On the NeXT, cc -E runs the code through the compiler's parser,
11947 # not just through cpp. "Syntax error" is here to catch this case.
11948 cat >conftest.$ac_ext <<_ACEOF
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
11954#ifdef __STDC__
11955# include <limits.h>
11956#else
11957# include <assert.h>
11958#endif
ac1cb8d3 11959 Syntax error
a848cd7e
SC
11960_ACEOF
11961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev/null; then
11969 if test -s conftest.err; then
11970 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11972 else
11973 ac_cpp_err=
11974 fi
11975else
11976 ac_cpp_err=yes
11977fi
11978if test -z "$ac_cpp_err"; then
11979 :
11980else
11981 echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 # Broken: fails on valid input.
11985continue
11986fi
11987rm -f conftest.err conftest.$ac_ext
11988
11989 # OK, works on sane cases. Now check whether non-existent headers
11990 # can be detected and how.
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997#include <ac_nonexistent.h>
11998_ACEOF
11999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } >/dev/null; then
12007 if test -s conftest.err; then
12008 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12010 else
12011 ac_cpp_err=
12012 fi
12013else
12014 ac_cpp_err=yes
12015fi
12016if test -z "$ac_cpp_err"; then
12017 # Broken: success on invalid input.
12018continue
12019else
12020 echo "$as_me: failed program was:" >&5
12021sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 # Passes both tests.
12024ac_preproc_ok=:
12025break
12026fi
12027rm -f conftest.err conftest.$ac_ext
12028
12029done
12030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12031rm -f conftest.err conftest.$ac_ext
12032if $ac_preproc_ok; then
12033 :
12034else
12035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12036See \`config.log' for more details." >&5
12037echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12038See \`config.log' for more details." >&2;}
12039 { (exit 1); exit 1; }; }
12040fi
12041
12042ac_ext=c
12043ac_cpp='$CPP $CPPFLAGS'
12044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
12048
12049echo "$as_me:$LINENO: checking for egrep" >&5
12050echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12051if test "${ac_cv_prog_egrep+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12055 then ac_cv_prog_egrep='grep -E'
12056 else ac_cv_prog_egrep='egrep'
12057 fi
12058fi
12059echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12060echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12061 EGREP=$ac_cv_prog_egrep
12062
12063
12064if test $ac_cv_c_compiler_gnu = yes; then
12065 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12066echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12067if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069else
12070 ac_pattern="Autoconf.*'x'"
12071 cat >conftest.$ac_ext <<_ACEOF
12072/* confdefs.h. */
12073_ACEOF
12074cat confdefs.h >>conftest.$ac_ext
12075cat >>conftest.$ac_ext <<_ACEOF
12076/* end confdefs.h. */
12077#include <sgtty.h>
12078Autoconf TIOCGETP
12079_ACEOF
12080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12082 ac_cv_prog_gcc_traditional=yes
12083else
12084 ac_cv_prog_gcc_traditional=no
12085fi
12086rm -f conftest*
12087
12088
12089 if test $ac_cv_prog_gcc_traditional = no; then
12090 cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
12096#include <termio.h>
12097Autoconf TCGETA
12098_ACEOF
12099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12100 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12101 ac_cv_prog_gcc_traditional=yes
12102fi
12103rm -f conftest*
12104
12105 fi
12106fi
12107echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12108echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12109 if test $ac_cv_prog_gcc_traditional = yes; then
12110 CC="$CC -traditional"
12111 fi
12112fi
12113
12114
12115
12116
12117ac_ext=cc
12118ac_cpp='$CXXCPP $CPPFLAGS'
12119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12122
12123
12124CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12125
12126
12127 ac_ext=cc
a848cd7e
SC
12128ac_cpp='$CXXCPP $CPPFLAGS'
12129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12132if test -n "$ac_tool_prefix"; then
12133 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12134 do
12135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12137echo "$as_me:$LINENO: checking for $ac_word" >&5
12138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12139if test "${ac_cv_prog_CXX+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141else
12142 if test -n "$CXX"; then
12143 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156done
12157done
12158
12159fi
12160fi
12161CXX=$ac_cv_prog_CXX
12162if test -n "$CXX"; then
12163 echo "$as_me:$LINENO: result: $CXX" >&5
12164echo "${ECHO_T}$CXX" >&6
12165else
12166 echo "$as_me:$LINENO: result: no" >&5
12167echo "${ECHO_T}no" >&6
12168fi
12169
12170 test -n "$CXX" && break
12171 done
12172fi
12173if test -z "$CXX"; then
12174 ac_ct_CXX=$CXX
12175 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12176do
12177 # Extract the first word of "$ac_prog", so it can be a program name with args.
12178set dummy $ac_prog; ac_word=$2
12179echo "$as_me:$LINENO: checking for $ac_word" >&5
12180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12181if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 if test -n "$ac_ct_CXX"; then
12185 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_prog_ac_ct_CXX="$ac_prog"
12195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198done
12199done
12200
12201fi
12202fi
12203ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12204if test -n "$ac_ct_CXX"; then
12205 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12206echo "${ECHO_T}$ac_ct_CXX" >&6
12207else
12208 echo "$as_me:$LINENO: result: no" >&5
12209echo "${ECHO_T}no" >&6
12210fi
12211
12212 test -n "$ac_ct_CXX" && break
12213done
12214test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12215
12216 CXX=$ac_ct_CXX
12217fi
12218
12219
12220# Provide some information about the compiler.
12221echo "$as_me:$LINENO:" \
12222 "checking for C++ compiler version" >&5
12223ac_compiler=`set X $ac_compile; echo $2`
12224{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12225 (eval $ac_compiler --version </dev/null >&5) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }
12229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12230 (eval $ac_compiler -v </dev/null >&5) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }
12234{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12235 (eval $ac_compiler -V </dev/null >&5) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }
12239
12240echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12241echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12242if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245 cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h. */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h. */
12251
12252int
12253main ()
12254{
12255#ifndef __GNUC__
12256 choke me
12257#endif
12258
12259 ;
12260 return 0;
12261}
12262_ACEOF
12263rm -f conftest.$ac_objext
12264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12265 (eval $ac_compile) 2>conftest.er1
a848cd7e 12266 ac_status=$?
ac1cb8d3
VS
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
a848cd7e
SC
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
07158944 12272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_compiler_gnu=yes
12285else
12286 echo "$as_me: failed program was:" >&5
12287sed 's/^/| /' conftest.$ac_ext >&5
12288
12289ac_compiler_gnu=no
12290fi
ac1cb8d3 12291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12292ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12293
12294fi
12295echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12296echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12297GXX=`test $ac_compiler_gnu = yes && echo yes`
12298ac_test_CXXFLAGS=${CXXFLAGS+set}
12299ac_save_CXXFLAGS=$CXXFLAGS
12300CXXFLAGS="-g"
12301echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12302echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12303if test "${ac_cv_prog_cxx_g+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312
12313int
12314main ()
12315{
12316
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext
12322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12323 (eval $ac_compile) 2>conftest.er1
a848cd7e 12324 ac_status=$?
ac1cb8d3
VS
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
a848cd7e
SC
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
07158944 12330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_prog_cxx_g=yes
12343else
12344 echo "$as_me: failed program was:" >&5
12345sed 's/^/| /' conftest.$ac_ext >&5
12346
12347ac_cv_prog_cxx_g=no
12348fi
ac1cb8d3 12349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12350fi
12351echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12352echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12353if test "$ac_test_CXXFLAGS" = set; then
12354 CXXFLAGS=$ac_save_CXXFLAGS
12355elif test $ac_cv_prog_cxx_g = yes; then
12356 if test "$GXX" = yes; then
12357 CXXFLAGS="-g -O2"
12358 else
12359 CXXFLAGS="-g"
12360 fi
12361else
12362 if test "$GXX" = yes; then
12363 CXXFLAGS="-O2"
12364 else
12365 CXXFLAGS=
12366 fi
12367fi
12368for ac_declaration in \
ac1cb8d3 12369 '' \
a848cd7e
SC
12370 'extern "C" void std::exit (int) throw (); using std::exit;' \
12371 'extern "C" void std::exit (int); using std::exit;' \
12372 'extern "C" void exit (int) throw ();' \
12373 'extern "C" void exit (int);' \
12374 'void exit (int);'
12375do
12376 cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
de59c161 12382$ac_declaration
ac1cb8d3 12383#include <stdlib.h>
a848cd7e
SC
12384int
12385main ()
12386{
12387exit (42);
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext
12393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12394 (eval $ac_compile) 2>conftest.er1
a848cd7e 12395 ac_status=$?
ac1cb8d3
VS
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
a848cd7e
SC
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
07158944 12401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 :
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418continue
12419fi
ac1cb8d3 12420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427$ac_declaration
12428int
12429main ()
12430{
12431exit (42);
12432 ;
12433 return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext
12437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12438 (eval $ac_compile) 2>conftest.er1
a848cd7e 12439 ac_status=$?
ac1cb8d3
VS
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
a848cd7e
SC
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
07158944 12445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 break
12458else
12459 echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
12462fi
ac1cb8d3 12463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12464done
12465rm -f conftest*
12466if test -n "$ac_declaration"; then
12467 echo '#ifdef __cplusplus' >>confdefs.h
12468 echo $ac_declaration >>confdefs.h
12469 echo '#endif' >>confdefs.h
12470fi
12471
12472ac_ext=cc
12473ac_cpp='$CXXCPP $CPPFLAGS'
12474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12477
6dcfc289 12478 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12479echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12480if test "${wx_cv_cxx_exto+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489
12490int
12491main ()
12492{
12493
12494 ;
12495 return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext conftest.$ac_ext.o
12499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500 (eval $ac_compile) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; then
12504 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12505 case $ac_file in
12506 conftest.$ac_ext.o)
12507 wx_cv_cxx_exto="-ext o"
12508 ;;
12509 *)
12510 ;;
12511 esac
12512done
12513else
12514 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12515See \`config.log' for more details." >&5
12516echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12517See \`config.log' for more details." >&2;}
12518 { (exit 1); exit 1; }; }
12519
12520fi
12521
12522rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12523
12524fi
12525echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12526echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12527if test "x$wx_cv_cxx_exto" '!=' "x"; then
12528 if test "cxx" = "c"; then
12529 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12530 fi
12531 if test "cxx" = "cxx"; then
12532 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12533 fi
12534fi
12535
6dcfc289
DE
12536 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12537 unset ac_cv_prog_cxx_g
12538 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12539ac_save_CXXFLAGS=$CXXFLAGS
12540CXXFLAGS="-g"
12541echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12542echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12543if test "${ac_cv_prog_cxx_g+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545else
12546 cat >conftest.$ac_ext <<_ACEOF
12547/* confdefs.h. */
12548_ACEOF
12549cat confdefs.h >>conftest.$ac_ext
12550cat >>conftest.$ac_ext <<_ACEOF
12551/* end confdefs.h. */
12552
12553int
12554main ()
12555{
12556
12557 ;
12558 return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext
12562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
07158944 12570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_cv_prog_cxx_g=yes
12583else
12584 echo "$as_me: failed program was:" >&5
12585sed 's/^/| /' conftest.$ac_ext >&5
12586
12587ac_cv_prog_cxx_g=no
12588fi
12589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590fi
12591echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12592echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12593if test "$ac_test_CXXFLAGS" = set; then
12594 CXXFLAGS=$ac_save_CXXFLAGS
12595elif test $ac_cv_prog_cxx_g = yes; then
12596 if test "$GXX" = yes; then
12597 CXXFLAGS="-g -O2"
12598 else
12599 CXXFLAGS="-g"
12600 fi
12601else
12602 if test "$GXX" = yes; then
12603 CXXFLAGS="-O2"
12604 else
12605 CXXFLAGS=
12606 fi
12607fi
6dcfc289
DE
12608 fi
12609 ac_ext=cc
95986553
DE
12610ac_cpp='$CXXCPP $CPPFLAGS'
12611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12614
12615echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12616echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12617if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619else
12620 cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h. */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h. */
12626
12627int
12628main ()
12629{
12630#ifndef __MWERKS__
12631 choke me
12632#endif
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext
12639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
07158944 12647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest.$ac_objext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 bakefile_compiler_mwerks=yes
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664bakefile_compiler_mwerks=no
12665fi
12666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12668
12669fi
12670echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12671echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12672
0e6fa1d9 12673MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12674ac_ext=cc
12675ac_cpp='$CXXCPP $CPPFLAGS'
12676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12679
12680
6dcfc289 12681 ac_ext=cc
9273ffba
DE
12682ac_cpp='$CXXCPP $CPPFLAGS'
12683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12686
12687echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12688echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12689if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
12692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698
12699int
12700main ()
12701{
12702#ifndef __xlC__
12703 choke me
12704#endif
12705
12706 ;
12707 return 0;
12708}
12709_ACEOF
12710rm -f conftest.$ac_objext
12711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
07158944 12719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 wx_compiler_xlc=yes
12732else
12733 echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
12735
12736wx_compiler_xlc=no
12737fi
12738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12739 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12740
12741fi
12742echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12743echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12744
0e6fa1d9 12745XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12746ac_ext=cc
12747ac_cpp='$CXXCPP $CPPFLAGS'
12748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12751
12752
95986553 12753
6dcfc289 12754
a848cd7e
SC
12755ac_ext=c
12756ac_cpp='$CPP $CPPFLAGS'
12757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12759ac_compiler_gnu=$ac_cv_c_compiler_gnu
12760
12761
a848cd7e
SC
12762if test -n "$ac_tool_prefix"; then
12763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12764set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12765echo "$as_me:$LINENO: checking for $ac_word" >&5
12766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12767if test "${ac_cv_prog_RANLIB+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770 if test -n "$RANLIB"; then
12771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784done
12785done
12786
12787fi
12788fi
12789RANLIB=$ac_cv_prog_RANLIB
12790if test -n "$RANLIB"; then
12791 echo "$as_me:$LINENO: result: $RANLIB" >&5
12792echo "${ECHO_T}$RANLIB" >&6
12793else
12794 echo "$as_me:$LINENO: result: no" >&5
12795echo "${ECHO_T}no" >&6
12796fi
12797
12798fi
12799if test -z "$ac_cv_prog_RANLIB"; then
12800 ac_ct_RANLIB=$RANLIB
12801 # Extract the first word of "ranlib", so it can be a program name with args.
12802set dummy ranlib; ac_word=$2
12803echo "$as_me:$LINENO: checking for $ac_word" >&5
12804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12805if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 if test -n "$ac_ct_RANLIB"; then
12809 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818 ac_cv_prog_ac_ct_RANLIB="ranlib"
12819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822done
12823done
12824
12825 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12826fi
12827fi
12828ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12829if test -n "$ac_ct_RANLIB"; then
12830 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12831echo "${ECHO_T}$ac_ct_RANLIB" >&6
12832else
12833 echo "$as_me:$LINENO: result: no" >&5
12834echo "${ECHO_T}no" >&6
12835fi
12836
12837 RANLIB=$ac_ct_RANLIB
12838else
12839 RANLIB="$ac_cv_prog_RANLIB"
12840fi
12841
12842
12843# Extract the first word of "ar", so it can be a program name with args.
12844set dummy ar; ac_word=$2
12845echo "$as_me:$LINENO: checking for $ac_word" >&5
12846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12847if test "${ac_cv_prog_AR+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850 if test -n "$AR"; then
12851 ac_cv_prog_AR="$AR" # Let the user override the test.
12852else
12853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854for as_dir in $PATH
12855do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_prog_AR="ar"
12861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12863 fi
12864done
12865done
12866
12867fi
12868fi
12869AR=$ac_cv_prog_AR
12870if test -n "$AR"; then
12871 echo "$as_me:$LINENO: result: $AR" >&5
12872echo "${ECHO_T}$AR" >&6
12873else
12874 echo "$as_me:$LINENO: result: no" >&5
12875echo "${ECHO_T}no" >&6
12876fi
12877
12878if test "x$AR" = "x" ; then
77ffb593
JS
12879 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12880echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12881 { (exit 1); exit 1; }; }
12882fi
12883
12884# Find a good install program. We prefer a C program (faster),
12885# so one script is as good as another. But avoid the broken or
12886# incompatible versions:
12887# SysV /etc/install, /usr/sbin/install
12888# SunOS /usr/etc/install
12889# IRIX /sbin/install
12890# AIX /bin/install
12891# AmigaOS /C/install, which installs bootblocks on floppy discs
12892# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12893# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12894# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12895# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12896# ./install, which can be erroneously created by make from ./install.sh.
12897echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12898echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12899if test -z "$INSTALL"; then
12900if test "${ac_cv_path_install+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904for as_dir in $PATH
12905do
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 # Account for people who put trailing slashes in PATH elements.
12909case $as_dir/ in
12910 ./ | .// | /cC/* | \
12911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12913 /usr/ucb/* ) ;;
12914 *)
12915 # OSF1 and SCO ODT 3.0 have their own names for install.
12916 # Don't use installbsd from OSF since it installs stuff as root
12917 # by default.
12918 for ac_prog in ginstall scoinst install; do
12919 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12921 if test $ac_prog = install &&
12922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12923 # AIX install. It has an incompatible calling convention.
12924 :
12925 elif test $ac_prog = install &&
12926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12927 # program-specific install script used by HP pwplus--don't use.
12928 :
12929 else
12930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12931 break 3
12932 fi
12933 fi
a848cd7e
SC
12934 done
12935 done
12936 ;;
12937esac
12938done
12939
12940
12941fi
12942 if test "${ac_cv_path_install+set}" = set; then
12943 INSTALL=$ac_cv_path_install
12944 else
12945 # As a last resort, use the slow shell script. We don't cache a
12946 # path for INSTALL within a source directory, because that will
12947 # break other packages using the cache if that directory is
12948 # removed, or if the path is relative.
12949 INSTALL=$ac_install_sh
12950 fi
12951fi
12952echo "$as_me:$LINENO: result: $INSTALL" >&5
12953echo "${ECHO_T}$INSTALL" >&6
12954
12955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12956# It thinks the first close brace ends the variable substitution.
12957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12958
12959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12960
12961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12962
12963
12964case ${INSTALL} in
12965 /* ) # Absolute
12966 ;;
12967 ?:* ) # Drive letter, considered as absolute.
12968 ;;
12969 *)
12970 INSTALL=`pwd`/${INSTALL} ;;
12971esac
12972
a848cd7e
SC
12973
12974case "${host}" in
12975
12976 powerpc-*-darwin* )
12977 INSTALL_PROGRAM="cp -fp"
12978 INSTALL_DATA="cp -fp"
12979 ;;
12980 *)
12981 ;;
12982esac
12983
12984# Extract the first word of "strip", so it can be a program name with args.
12985set dummy strip; ac_word=$2
12986echo "$as_me:$LINENO: checking for $ac_word" >&5
12987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12988if test "${ac_cv_prog_STRIP+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990else
12991 if test -n "$STRIP"; then
12992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12993else
12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995for as_dir in $PATH
12996do
12997 IFS=$as_save_IFS
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001 ac_cv_prog_STRIP="strip"
13002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13003 break 2
13004 fi
13005done
13006done
13007
13008 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13009fi
13010fi
13011STRIP=$ac_cv_prog_STRIP
13012if test -n "$STRIP"; then
13013 echo "$as_me:$LINENO: result: $STRIP" >&5
13014echo "${ECHO_T}$STRIP" >&6
13015else
13016 echo "$as_me:$LINENO: result: no" >&5
13017echo "${ECHO_T}no" >&6
13018fi
13019
13020
13021echo "$as_me:$LINENO: checking if make is GNU make" >&5
13022echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13023if test "${wx_cv_prog_makeisgnu+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026
13027 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13028 egrep -s GNU > /dev/null); then
13029 wx_cv_prog_makeisgnu="yes"
13030 else
13031 wx_cv_prog_makeisgnu="no"
13032 fi
13033
13034fi
13035echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13036echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13037
13038if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13039 IF_GNU_MAKE=""
13040else
13041 IF_GNU_MAKE="#"
13042fi
13043
13044
13045
13046if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13047echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13048echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13049if test "${wx_cv_prog_makevpath+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051else
13052
13053cat - << EOF > confMake
13054check : file
13055 cp \$? \$@
13056 cp \$? final_file
13057EOF
13058
13059if test ! -d sub ; then
13060 mkdir sub
13061fi
13062echo dummy > sub/file
13063${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13064RESULT=$?
13065rm -f sub/file check final_file confMake
13066rmdir sub
13067if test "$RESULT" = 0; then
13068 wx_cv_prog_makevpath="yes"
13069else
13070 wx_cv_prog_makevpath="no"
13071fi
13072
13073fi
13074echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13075echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13076
13077if test "x$wx_cv_prog_makevpath" != "xyes"; then
13078{ { echo "$as_me:$LINENO: error:
13079You need a make-utility that is able to use the variable
13080VPATH correctly.
13081If your version of make does not support VPATH correctly,
13082please install GNU-make (possibly as gmake), and start
13083configure with the following command:
13084export MAKE=gmake; ./configure for sh-type shells
13085setenv MAKE gmake; ./configure for csh-type shells
13086Also please do remember to use gmake in this case every time
13087you are trying to compile.
13088" >&5
13089echo "$as_me: error:
13090You need a make-utility that is able to use the variable
13091VPATH correctly.
13092If your version of make does not support VPATH correctly,
13093please install GNU-make (possibly as gmake), and start
13094configure with the following command:
13095export MAKE=gmake; ./configure for sh-type shells
13096setenv MAKE gmake; ./configure for csh-type shells
13097Also please do remember to use gmake in this case every time
13098you are trying to compile.
13099" >&2;}
13100 { (exit 1); exit 1; }; }
13101fi fi
13102echo "$as_me:$LINENO: checking whether ln -s works" >&5
13103echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13104LN_S=$as_ln_s
13105if test "$LN_S" = "ln -s"; then
13106 echo "$as_me:$LINENO: result: yes" >&5
13107echo "${ECHO_T}yes" >&6
13108else
13109 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13110echo "${ECHO_T}no, using $LN_S" >&6
13111fi
13112
13113
13114
9273ffba
DE
13115if test "x$XLCXX" = "xyes"; then
13116 CXXFLAGS="$CXXFLAGS -qunique"
13117fi
13118
13119
4d7ec9f1
DE
13120case "${host}" in
13121 powerpc-*-darwin* )
13122 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13123echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13124 cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h. */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h. */
13130
13131int
13132main ()
13133{
13134#ifndef __POWERPC__
13135 choke me for lack of PowerPC
13136#endif
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
07158944 13151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
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); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 echo "$as_me:$LINENO: result: yes" >&5
13164echo "${ECHO_T}yes" >&6
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169echo "$as_me:$LINENO: result: no" >&5
13170echo "${ECHO_T}no" >&6
13171 cat >>confdefs.h <<\_ACEOF
13172#define __POWERPC__ 1
13173_ACEOF
13174
13175
13176fi
13177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13179echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13180 cat >conftest.$ac_ext <<_ACEOF
13181/* confdefs.h. */
13182_ACEOF
13183cat confdefs.h >>conftest.$ac_ext
13184cat >>conftest.$ac_ext <<_ACEOF
13185/* end confdefs.h. */
13186#include <CoreFoundation/CFBase.h>
13187
13188int
13189main ()
13190{
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext
13197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
07158944 13205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 echo "$as_me:$LINENO: result: yes" >&5
13218echo "${ECHO_T}yes" >&6
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223echo "$as_me:$LINENO: result: no" >&5
13224echo "${ECHO_T}no" >&6
13225 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13226echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
13233#define __CF_USE_FRAMEWORK_INCLUDES__
13234#include <CoreFoundation/CFBase.h>
13235
13236int
13237main ()
13238{
13239
13240 ;
13241 return 0;
13242}
13243_ACEOF
13244rm -f conftest.$ac_objext
13245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
07158944 13253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 echo "$as_me:$LINENO: result: yes" >&5
13266echo "${ECHO_T}yes" >&6
13267 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13273See \`config.log' for more details." >&5
13274echo "$as_me: error: no. CoreFoundation not available.
13275See \`config.log' for more details." >&2;}
13276 { (exit 1); exit 1; }; }
13277
13278fi
13279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280
13281
13282fi
13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 ;;
13285esac
13286
a848cd7e
SC
13287case "${host}" in
13288 *-pc-os2_emx | *-pc-os2-emx )
13289 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13290 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13291echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13292if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 ac_check_lib_save_LIBS=$LIBS
13296LIBS="-lcExt $LIBS"
13297cat >conftest.$ac_ext <<_ACEOF
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
13303
13304/* Override any gcc2 internal prototype to avoid an error. */
13305#ifdef __cplusplus
13306extern "C"
13307#endif
13308/* We use char because int might match the return type of a gcc2
13309 builtin and then its argument prototype would still apply. */
13310char drand48 ();
13311int
13312main ()
13313{
13314drand48 ();
13315 ;
13316 return 0;
13317}
13318_ACEOF
13319rm -f conftest.$ac_objext conftest$ac_exeext
13320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13321 (eval $ac_link) 2>conftest.er1
a848cd7e 13322 ac_status=$?
ac1cb8d3
VS
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
a848cd7e
SC
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
07158944 13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_lib_cExt_drand48=yes
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345ac_cv_lib_cExt_drand48=no
13346fi
ac1cb8d3
VS
13347rm -f conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13349LIBS=$ac_check_lib_save_LIBS
13350fi
13351echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13352echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13353if test $ac_cv_lib_cExt_drand48 = yes; then
13354 LIBS="$LIBS -lcExt"
13355fi
13356
13357 else
13358 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13359 fi
391a765e 13360 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13361echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13362if test "${wx_cv_gccversion+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365
391a765e
VS
13366 if test "$cross_compiling" = yes; then
13367 wx_cv_gccversion="EMX2"
13368
13369else
13370 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
13376
391a765e 13377 #include <stdio.h>
a848cd7e 13378
391a765e
VS
13379 int main()
13380 {
13381 FILE *f=fopen("conftestval", "w");
13382 if (!f) exit(1);
13383 fprintf(f,
a848cd7e 13384 #if (__GNUC__ < 3)
391a765e
VS
13385 "EMX2"
13386 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13387 "EMX3"
13388 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13389 "Innotek5"
13390 #else
13391 "Innotek6"
a848cd7e 13392 #endif
391a765e
VS
13393 );
13394 exit(0);
13395 }
a848cd7e 13396
a848cd7e 13397_ACEOF
391a765e
VS
13398rm -f conftest$ac_exeext
13399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>&5
ac1cb8d3
VS
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
391a765e 13409 wx_cv_gccversion=`cat conftestval`
a848cd7e 13410else
391a765e
VS
13411 echo "$as_me: program exited with status $ac_status" >&5
13412echo "$as_me: failed program was:" >&5
a848cd7e
SC
13413sed 's/^/| /' conftest.$ac_ext >&5
13414
391a765e
VS
13415( exit $ac_status )
13416wx_cv_gccversion="EMX2"
a848cd7e 13417fi
391a765e 13418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13419fi
a848cd7e
SC
13420
13421fi
13422echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13423echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13424 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13425 LIBS="$LIBS -lstdcpp"
13426 LDFLAGS="$LDFLAGS -Zsysv-signals"
13427 else
391a765e 13428 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13429 LIBS="$LIBS -lstdcxx"
13430 LDFLAGS="$LDFLAGS -Zsysv-signals"
13431 else
13432 LIBS="$LIBS -lstdc++"
13433 fi
13434 fi
94acd38e
DE
13435 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13436 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13437echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13438 wxUSE_OMF=yes
2da0c077 13439 enable_omf=yes
94acd38e 13440 fi
a848cd7e 13441 if test "$wxUSE_OMF" = "yes"; then
63c4f6da 13442 LDFLAGS="$LDFLAGS -Zomf -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13443 fi
13444 ;;
13445 *)
13446
13447
13448
13449 ac_ext=cc
13450ac_cpp='$CXXCPP $CPPFLAGS'
13451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13454
13455
95986553 13456 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13457echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13458if test "${ac_cv_string_strcasecmp+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461
13462 cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468
13469 #include <string.h>
13470
13471int
13472main ()
13473{
13474
13475 strcasecmp("foo", "bar");
13476
13477 ;
13478 return 0;
13479}
13480_ACEOF
13481rm -f conftest.$ac_objext conftest$ac_exeext
13482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13483 (eval $ac_link) 2>conftest.er1
a848cd7e 13484 ac_status=$?
ac1cb8d3
VS
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
a848cd7e
SC
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
07158944 13490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_string_strcasecmp=yes
13503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507ac_cv_string_strcasecmp=no
13508
13509fi
ac1cb8d3
VS
13510rm -f conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13512
13513fi
13514echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13515echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13516
13517 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13518 cat >>confdefs.h <<\_ACEOF
13519#define HAVE_STRCASECMP_IN_STRING_H 1
13520_ACEOF
13521
13522 else
13523 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13524echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13525if test "${ac_cv_strings_strcasecmp+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527else
13528
13529 cat >conftest.$ac_ext <<_ACEOF
13530/* confdefs.h. */
13531_ACEOF
13532cat confdefs.h >>conftest.$ac_ext
13533cat >>conftest.$ac_ext <<_ACEOF
13534/* end confdefs.h. */
13535
13536 #include <strings.h>
13537
13538int
13539main ()
13540{
13541
13542 strcasecmp("foo", "bar");
13543
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13550 (eval $ac_link) 2>conftest.er1
a848cd7e 13551 ac_status=$?
ac1cb8d3
VS
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
a848cd7e
SC
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
07158944 13557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_strings_strcasecmp=yes
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574ac_cv_strings_strcasecmp=no
13575
13576fi
ac1cb8d3
VS
13577rm -f conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13579
13580fi
13581echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13582echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13583
0c3c69fc 13584 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13585 cat >>confdefs.h <<\_ACEOF
13586#define HAVE_STRCASECMP_IN_STRINGS_H 1
13587_ACEOF
13588
13589 else
13590 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13591echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13592 { (exit 1); exit 1; }; }
13593 fi
13594 fi
13595
13596 ac_ext=c
13597ac_cpp='$CPP $CPPFLAGS'
13598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600ac_compiler_gnu=$ac_cv_c_compiler_gnu
13601
13602 ;;
13603esac
13604
13605
13606echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13607echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13608if test "${ac_cv_header_stdc+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610else
13611 cat >conftest.$ac_ext <<_ACEOF
13612/* confdefs.h. */
13613_ACEOF
13614cat confdefs.h >>conftest.$ac_ext
13615cat >>conftest.$ac_ext <<_ACEOF
13616/* end confdefs.h. */
13617#include <stdlib.h>
13618#include <stdarg.h>
13619#include <string.h>
13620#include <float.h>
13621
13622int
13623main ()
13624{
13625
13626 ;
13627 return 0;
13628}
13629_ACEOF
13630rm -f conftest.$ac_objext
13631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13632 (eval $ac_compile) 2>conftest.er1
a848cd7e 13633 ac_status=$?
ac1cb8d3
VS
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
a848cd7e
SC
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } &&
07158944 13639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 ac_cv_header_stdc=yes
13652else
13653 echo "$as_me: failed program was:" >&5
13654sed 's/^/| /' conftest.$ac_ext >&5
13655
13656ac_cv_header_stdc=no
13657fi
ac1cb8d3 13658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13659
13660if test $ac_cv_header_stdc = yes; then
13661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13662 cat >conftest.$ac_ext <<_ACEOF
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668#include <string.h>
13669
13670_ACEOF
13671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "memchr" >/dev/null 2>&1; then
13673 :
13674else
13675 ac_cv_header_stdc=no
13676fi
13677rm -f conftest*
13678
13679fi
13680
13681if test $ac_cv_header_stdc = yes; then
13682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13683 cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689#include <stdlib.h>
13690
13691_ACEOF
13692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13693 $EGREP "free" >/dev/null 2>&1; then
13694 :
13695else
13696 ac_cv_header_stdc=no
13697fi
13698rm -f conftest*
13699
13700fi
13701
13702if test $ac_cv_header_stdc = yes; then
13703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13704 if test "$cross_compiling" = yes; then
13705 :
13706else
13707 cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#include <ctype.h>
13714#if ((' ' & 0x0FF) == 0x020)
13715# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13716# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13717#else
13718# define ISLOWER(c) \
ac1cb8d3
VS
13719 (('a' <= (c) && (c) <= 'i') \
13720 || ('j' <= (c) && (c) <= 'r') \
13721 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13722# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13723#endif
13724
13725#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13726int
13727main ()
13728{
13729 int i;
13730 for (i = 0; i < 256; i++)
13731 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13732 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13733 exit(2);
13734 exit (0);
13735}
13736_ACEOF
13737rm -f conftest$ac_exeext
13738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 :
13749else
13750 echo "$as_me: program exited with status $ac_status" >&5
13751echo "$as_me: failed program was:" >&5
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
13754( exit $ac_status )
13755ac_cv_header_stdc=no
13756fi
ac1cb8d3 13757rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13758fi
13759fi
13760fi
13761echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13762echo "${ECHO_T}$ac_cv_header_stdc" >&6
13763if test $ac_cv_header_stdc = yes; then
13764
13765cat >>confdefs.h <<\_ACEOF
13766#define STDC_HEADERS 1
13767_ACEOF
13768
13769fi
13770
13771# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13782 inttypes.h stdint.h unistd.h
a848cd7e
SC
13783do
13784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13785echo "$as_me:$LINENO: checking for $ac_header" >&5
13786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13787if eval "test \"\${$as_ac_Header+set}\" = set"; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13789else
13790 cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
13797
13798#include <$ac_header>
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13802 (eval $ac_compile) 2>conftest.er1
a848cd7e 13803 ac_status=$?
ac1cb8d3
VS
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
a848cd7e
SC
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
07158944 13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 eval "$as_ac_Header=yes"
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826eval "$as_ac_Header=no"
13827fi
ac1cb8d3 13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13829fi
13830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842
13843for ac_header in stdlib.h
13844do
13845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13846if eval "test \"\${$as_ac_Header+set}\" = set"; then
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851fi
13852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13854else
13855 # Is the header compilable?
13856echo "$as_me:$LINENO: checking $ac_header usability" >&5
13857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13858cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
13864$ac_includes_default
13865#include <$ac_header>
13866_ACEOF
13867rm -f conftest.$ac_objext
13868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13869 (eval $ac_compile) 2>conftest.er1
a848cd7e 13870 ac_status=$?
ac1cb8d3
VS
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
a848cd7e
SC
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
07158944 13876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_header_compiler=yes
13889else
13890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
13892
13893ac_header_compiler=no
13894fi
ac1cb8d3 13895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897echo "${ECHO_T}$ac_header_compiler" >&6
13898
13899# Is the header present?
13900echo "$as_me:$LINENO: checking $ac_header presence" >&5
13901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13902cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h. */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h. */
13908#include <$ac_header>
13909_ACEOF
13910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } >/dev/null; then
13918 if test -s conftest.err; then
13919 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13921 else
13922 ac_cpp_err=
13923 fi
13924else
13925 ac_cpp_err=yes
13926fi
13927if test -z "$ac_cpp_err"; then
13928 ac_header_preproc=yes
13929else
13930 echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
13933 ac_header_preproc=no
13934fi
13935rm -f conftest.err conftest.$ac_ext
13936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13937echo "${ECHO_T}$ac_header_preproc" >&6
13938
13939# So? What about this header?
ac1cb8d3
VS
13940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13941 yes:no: )
a848cd7e
SC
13942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13946 ac_header_preproc=yes
a848cd7e 13947 ;;
ac1cb8d3 13948 no:yes:* )
a848cd7e
SC
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13961 (
13962 cat <<\_ASBOX
ac1cb8d3
VS
13963## ----------------------------------------- ##
13964## Report this to wx-dev@lists.wxwidgets.org ##
13965## ----------------------------------------- ##
a848cd7e
SC
13966_ASBOX
13967 ) |
13968 sed "s/^/$as_me: WARNING: /" >&2
13969 ;;
13970esac
13971echo "$as_me:$LINENO: checking for $ac_header" >&5
13972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13973if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
ac1cb8d3 13976 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13977fi
13978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13980
13981fi
13982if test `eval echo '${'$as_ac_Header'}'` = yes; then
13983 cat >>confdefs.h <<_ACEOF
13984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13985_ACEOF
13986
13987fi
13988
13989done
13990
13991
13992for ac_header in malloc.h
13993do
13994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13995if eval "test \"\${$as_ac_Header+set}\" = set"; then
13996 echo "$as_me:$LINENO: checking for $ac_header" >&5
13997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13998if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000fi
14001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14003else
14004 # Is the header compilable?
14005echo "$as_me:$LINENO: checking $ac_header usability" >&5
14006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14007cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
14012/* end confdefs.h. */
14013$ac_includes_default
14014#include <$ac_header>
14015_ACEOF
14016rm -f conftest.$ac_objext
14017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14018 (eval $ac_compile) 2>conftest.er1
a848cd7e 14019 ac_status=$?
ac1cb8d3
VS
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
a848cd7e
SC
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
07158944 14025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_header_compiler=yes
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042ac_header_compiler=no
14043fi
ac1cb8d3 14044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14046echo "${ECHO_T}$ac_header_compiler" >&6
14047
14048# Is the header present?
14049echo "$as_me:$LINENO: checking $ac_header presence" >&5
14050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14051cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057#include <$ac_header>
14058_ACEOF
14059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } >/dev/null; then
14067 if test -s conftest.err; then
14068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14070 else
14071 ac_cpp_err=
14072 fi
14073else
14074 ac_cpp_err=yes
14075fi
14076if test -z "$ac_cpp_err"; then
14077 ac_header_preproc=yes
14078else
14079 echo "$as_me: failed program was:" >&5
14080sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 ac_header_preproc=no
14083fi
14084rm -f conftest.err conftest.$ac_ext
14085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086echo "${ECHO_T}$ac_header_preproc" >&6
14087
14088# So? What about this header?
ac1cb8d3
VS
14089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14090 yes:no: )
a848cd7e
SC
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14095 ac_header_preproc=yes
a848cd7e 14096 ;;
ac1cb8d3 14097 no:yes:* )
a848cd7e
SC
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14110 (
14111 cat <<\_ASBOX
ac1cb8d3
VS
14112## ----------------------------------------- ##
14113## Report this to wx-dev@lists.wxwidgets.org ##
14114## ----------------------------------------- ##
a848cd7e
SC
14115_ASBOX
14116 ) |
14117 sed "s/^/$as_me: WARNING: /" >&2
14118 ;;
14119esac
14120echo "$as_me:$LINENO: checking for $ac_header" >&5
14121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14122if eval "test \"\${$as_ac_Header+set}\" = set"; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124else
ac1cb8d3 14125 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14126fi
14127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14129
14130fi
14131if test `eval echo '${'$as_ac_Header'}'` = yes; then
14132 cat >>confdefs.h <<_ACEOF
14133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134_ACEOF
14135
14136fi
14137
14138done
14139
14140
14141for ac_header in unistd.h
14142do
14143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14144if eval "test \"\${$as_ac_Header+set}\" = set"; then
14145 echo "$as_me:$LINENO: checking for $ac_header" >&5
14146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14147if eval "test \"\${$as_ac_Header+set}\" = set"; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149fi
14150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14152else
14153 # Is the header compilable?
14154echo "$as_me:$LINENO: checking $ac_header usability" >&5
14155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14156cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162$ac_includes_default
14163#include <$ac_header>
14164_ACEOF
14165rm -f conftest.$ac_objext
14166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14167 (eval $ac_compile) 2>conftest.er1
a848cd7e 14168 ac_status=$?
ac1cb8d3
VS
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
a848cd7e
SC
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
07158944 14174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_header_compiler=yes
14187else
14188 echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191ac_header_compiler=no
14192fi
ac1cb8d3 14193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195echo "${ECHO_T}$ac_header_compiler" >&6
14196
14197# Is the header present?
14198echo "$as_me:$LINENO: checking $ac_header presence" >&5
14199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14200cat >conftest.$ac_ext <<_ACEOF
14201/* confdefs.h. */
14202_ACEOF
14203cat confdefs.h >>conftest.$ac_ext
14204cat >>conftest.$ac_ext <<_ACEOF
14205/* end confdefs.h. */
14206#include <$ac_header>
14207_ACEOF
14208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null; then
14216 if test -s conftest.err; then
14217 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14219 else
14220 ac_cpp_err=
14221 fi
14222else
14223 ac_cpp_err=yes
14224fi
14225if test -z "$ac_cpp_err"; then
14226 ac_header_preproc=yes
14227else
14228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_header_preproc=no
14232fi
14233rm -f conftest.err conftest.$ac_ext
14234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14235echo "${ECHO_T}$ac_header_preproc" >&6
14236
14237# So? What about this header?
ac1cb8d3
VS
14238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14239 yes:no: )
a848cd7e
SC
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14244 ac_header_preproc=yes
a848cd7e 14245 ;;
ac1cb8d3 14246 no:yes:* )
a848cd7e
SC
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14259 (
14260 cat <<\_ASBOX
ac1cb8d3
VS
14261## ----------------------------------------- ##
14262## Report this to wx-dev@lists.wxwidgets.org ##
14263## ----------------------------------------- ##
a848cd7e
SC
14264_ASBOX
14265 ) |
14266 sed "s/^/$as_me: WARNING: /" >&2
14267 ;;
14268esac
14269echo "$as_me:$LINENO: checking for $ac_header" >&5
14270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14271if eval "test \"\${$as_ac_Header+set}\" = set"; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
ac1cb8d3 14274 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14275fi
14276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14278
14279fi
14280if test `eval echo '${'$as_ac_Header'}'` = yes; then
14281 cat >>confdefs.h <<_ACEOF
14282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14283_ACEOF
14284
14285fi
14286
14287done
14288
14289
14290for ac_header in wchar.h
14291do
14292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14293if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294 echo "$as_me:$LINENO: checking for $ac_header" >&5
14295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14296if eval "test \"\${$as_ac_Header+set}\" = set"; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298fi
14299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14301else
14302 # Is the header compilable?
14303echo "$as_me:$LINENO: checking $ac_header usability" >&5
14304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14305cat >conftest.$ac_ext <<_ACEOF
14306/* confdefs.h. */
14307_ACEOF
14308cat confdefs.h >>conftest.$ac_ext
14309cat >>conftest.$ac_ext <<_ACEOF
14310/* end confdefs.h. */
14311$ac_includes_default
14312#include <$ac_header>
14313_ACEOF
14314rm -f conftest.$ac_objext
14315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14316 (eval $ac_compile) 2>conftest.er1
a848cd7e 14317 ac_status=$?
ac1cb8d3
VS
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
a848cd7e
SC
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
07158944 14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_header_compiler=yes
14336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340ac_header_compiler=no
14341fi
ac1cb8d3 14342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14344echo "${ECHO_T}$ac_header_compiler" >&6
14345
14346# Is the header present?
14347echo "$as_me:$LINENO: checking $ac_header presence" >&5
14348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14349cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355#include <$ac_header>
14356_ACEOF
14357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } >/dev/null; then
14365 if test -s conftest.err; then
14366 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14368 else
14369 ac_cpp_err=
14370 fi
14371else
14372 ac_cpp_err=yes
14373fi
14374if test -z "$ac_cpp_err"; then
14375 ac_header_preproc=yes
14376else
14377 echo "$as_me: failed program was:" >&5
14378sed 's/^/| /' conftest.$ac_ext >&5
14379
14380 ac_header_preproc=no
14381fi
14382rm -f conftest.err conftest.$ac_ext
14383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14384echo "${ECHO_T}$ac_header_preproc" >&6
14385
14386# So? What about this header?
ac1cb8d3
VS
14387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14388 yes:no: )
a848cd7e
SC
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14393 ac_header_preproc=yes
a848cd7e 14394 ;;
ac1cb8d3 14395 no:yes:* )
a848cd7e
SC
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14408 (
14409 cat <<\_ASBOX
ac1cb8d3
VS
14410## ----------------------------------------- ##
14411## Report this to wx-dev@lists.wxwidgets.org ##
14412## ----------------------------------------- ##
a848cd7e
SC
14413_ASBOX
14414 ) |
14415 sed "s/^/$as_me: WARNING: /" >&2
14416 ;;
14417esac
14418echo "$as_me:$LINENO: checking for $ac_header" >&5
14419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14420if eval "test \"\${$as_ac_Header+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
ac1cb8d3 14423 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14424fi
14425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14427
14428fi
14429if test `eval echo '${'$as_ac_Header'}'` = yes; then
14430 cat >>confdefs.h <<_ACEOF
14431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14432_ACEOF
14433
14434fi
14435
14436done
14437
14438
14439if test "$ac_cv_header_wchar_h" != "yes"; then
14440
14441for ac_header in wcstr.h
14442do
14443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14444if eval "test \"\${$as_ac_Header+set}\" = set"; then
14445 echo "$as_me:$LINENO: checking for $ac_header" >&5
14446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14447if eval "test \"\${$as_ac_Header+set}\" = set"; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449fi
14450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14452else
14453 # Is the header compilable?
14454echo "$as_me:$LINENO: checking $ac_header usability" >&5
14455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14456cat >conftest.$ac_ext <<_ACEOF
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462$ac_includes_default
14463#include <$ac_header>
14464_ACEOF
14465rm -f conftest.$ac_objext
14466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14467 (eval $ac_compile) 2>conftest.er1
a848cd7e 14468 ac_status=$?
ac1cb8d3
VS
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
a848cd7e
SC
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
07158944 14474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_header_compiler=yes
14487else
14488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491ac_header_compiler=no
14492fi
ac1cb8d3 14493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14495echo "${ECHO_T}$ac_header_compiler" >&6
14496
14497# Is the header present?
14498echo "$as_me:$LINENO: checking $ac_header presence" >&5
14499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506#include <$ac_header>
14507_ACEOF
14508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } >/dev/null; then
14516 if test -s conftest.err; then
14517 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14519 else
14520 ac_cpp_err=
14521 fi
14522else
14523 ac_cpp_err=yes
14524fi
14525if test -z "$ac_cpp_err"; then
14526 ac_header_preproc=yes
14527else
14528 echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531 ac_header_preproc=no
14532fi
14533rm -f conftest.err conftest.$ac_ext
14534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14535echo "${ECHO_T}$ac_header_preproc" >&6
14536
14537# So? What about this header?
ac1cb8d3
VS
14538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14539 yes:no: )
a848cd7e
SC
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14544 ac_header_preproc=yes
a848cd7e 14545 ;;
ac1cb8d3 14546 no:yes:* )
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14559 (
14560 cat <<\_ASBOX
ac1cb8d3
VS
14561## ----------------------------------------- ##
14562## Report this to wx-dev@lists.wxwidgets.org ##
14563## ----------------------------------------- ##
a848cd7e
SC
14564_ASBOX
14565 ) |
14566 sed "s/^/$as_me: WARNING: /" >&2
14567 ;;
14568esac
14569echo "$as_me:$LINENO: checking for $ac_header" >&5
14570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14571if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573else
ac1cb8d3 14574 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14575fi
14576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14578
14579fi
14580if test `eval echo '${'$as_ac_Header'}'` = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14583_ACEOF
14584
14585fi
14586
14587done
14588
14589fi
14590
14591
14592for ac_header in fnmatch.h
14593do
14594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14595if eval "test \"\${$as_ac_Header+set}\" = set"; then
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600fi
14601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14603else
14604 # Is the header compilable?
14605echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14607cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613$ac_includes_default
14614#include <$ac_header>
14615_ACEOF
14616rm -f conftest.$ac_objext
14617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14618 (eval $ac_compile) 2>conftest.er1
a848cd7e 14619 ac_status=$?
ac1cb8d3
VS
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
a848cd7e
SC
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
07158944 14625 { ac_try='test -z "$ac_c_werror_flag" || 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_header_compiler=yes
14638else
14639 echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642ac_header_compiler=no
14643fi
ac1cb8d3 14644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14646echo "${ECHO_T}$ac_header_compiler" >&6
14647
14648# Is the header present?
14649echo "$as_me:$LINENO: checking $ac_header presence" >&5
14650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14651cat >conftest.$ac_ext <<_ACEOF
14652/* confdefs.h. */
14653_ACEOF
14654cat confdefs.h >>conftest.$ac_ext
14655cat >>conftest.$ac_ext <<_ACEOF
14656/* end confdefs.h. */
14657#include <$ac_header>
14658_ACEOF
14659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } >/dev/null; then
14667 if test -s conftest.err; then
14668 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14670 else
14671 ac_cpp_err=
14672 fi
14673else
14674 ac_cpp_err=yes
14675fi
14676if test -z "$ac_cpp_err"; then
14677 ac_header_preproc=yes
14678else
14679 echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_header_preproc=no
14683fi
14684rm -f conftest.err conftest.$ac_ext
14685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14686echo "${ECHO_T}$ac_header_preproc" >&6
14687
14688# So? What about this header?
ac1cb8d3
VS
14689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690 yes:no: )
a848cd7e
SC
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14695 ac_header_preproc=yes
a848cd7e 14696 ;;
ac1cb8d3 14697 no:yes:* )
a848cd7e
SC
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14710 (
14711 cat <<\_ASBOX
ac1cb8d3
VS
14712## ----------------------------------------- ##
14713## Report this to wx-dev@lists.wxwidgets.org ##
14714## ----------------------------------------- ##
a848cd7e
SC
14715_ASBOX
14716 ) |
14717 sed "s/^/$as_me: WARNING: /" >&2
14718 ;;
14719esac
14720echo "$as_me:$LINENO: checking for $ac_header" >&5
14721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14722if eval "test \"\${$as_ac_Header+set}\" = set"; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724else
ac1cb8d3 14725 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14726fi
14727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14729
14730fi
14731if test `eval echo '${'$as_ac_Header'}'` = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14734_ACEOF
14735
14736fi
14737
14738done
14739
14740
14741if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14742
14743for ac_func in fnmatch
14744do
14745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14746echo "$as_me:$LINENO: checking for $ac_func" >&5
14747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14748if eval "test \"\${$as_ac_var+set}\" = set"; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750else
14751 cat >conftest.$ac_ext <<_ACEOF
14752/* confdefs.h. */
14753_ACEOF
14754cat confdefs.h >>conftest.$ac_ext
14755cat >>conftest.$ac_ext <<_ACEOF
14756/* end confdefs.h. */
ac1cb8d3
VS
14757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14759#define $ac_func innocuous_$ac_func
14760
a848cd7e
SC
14761/* System header to define __stub macros and hopefully few prototypes,
14762 which can conflict with char $ac_func (); below.
14763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14765
a848cd7e
SC
14766#ifdef __STDC__
14767# include <limits.h>
14768#else
14769# include <assert.h>
14770#endif
ac1cb8d3
VS
14771
14772#undef $ac_func
14773
a848cd7e
SC
14774/* Override any gcc2 internal prototype to avoid an error. */
14775#ifdef __cplusplus
14776extern "C"
14777{
14778#endif
14779/* We use char because int might match the return type of a gcc2
14780 builtin and then its argument prototype would still apply. */
14781char $ac_func ();
14782/* The GNU C library defines this for functions which it implements
14783 to always fail with ENOSYS. Some functions are actually named
14784 something starting with __ and the normal name is an alias. */
14785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14786choke me
14787#else
14788char (*f) () = $ac_func;
14789#endif
14790#ifdef __cplusplus
14791}
14792#endif
14793
14794int
14795main ()
14796{
14797return f != $ac_func;
14798 ;
14799 return 0;
14800}
14801_ACEOF
14802rm -f conftest.$ac_objext conftest$ac_exeext
14803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14804 (eval $ac_link) 2>conftest.er1
a848cd7e 14805 ac_status=$?
ac1cb8d3
VS
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
a848cd7e
SC
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
07158944 14811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 eval "$as_ac_var=yes"
14824else
14825 echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828eval "$as_ac_var=no"
14829fi
ac1cb8d3
VS
14830rm -f conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14832fi
14833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14835if test `eval echo '${'$as_ac_var'}'` = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14838_ACEOF
14839
14840fi
14841done
14842
14843fi
14844
14845
14846for ac_header in langinfo.h
14847do
14848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14849if eval "test \"\${$as_ac_Header+set}\" = set"; then
14850 echo "$as_me:$LINENO: checking for $ac_header" >&5
14851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14852if eval "test \"\${$as_ac_Header+set}\" = set"; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854fi
14855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14857else
14858 # Is the header compilable?
14859echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14861cat >conftest.$ac_ext <<_ACEOF
14862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
14866/* end confdefs.h. */
14867$ac_includes_default
14868#include <$ac_header>
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14872 (eval $ac_compile) 2>conftest.er1
a848cd7e 14873 ac_status=$?
ac1cb8d3
VS
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
a848cd7e
SC
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
07158944 14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_header_compiler=yes
14892else
14893 echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896ac_header_compiler=no
14897fi
ac1cb8d3 14898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14900echo "${ECHO_T}$ac_header_compiler" >&6
14901
14902# Is the header present?
14903echo "$as_me:$LINENO: checking $ac_header presence" >&5
14904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14905cat >conftest.$ac_ext <<_ACEOF
14906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h. */
14911#include <$ac_header>
14912_ACEOF
14913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } >/dev/null; then
14921 if test -s conftest.err; then
14922 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14924 else
14925 ac_cpp_err=
14926 fi
14927else
14928 ac_cpp_err=yes
14929fi
14930if test -z "$ac_cpp_err"; then
14931 ac_header_preproc=yes
14932else
14933 echo "$as_me: failed program was:" >&5
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 ac_header_preproc=no
14937fi
14938rm -f conftest.err conftest.$ac_ext
14939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14940echo "${ECHO_T}$ac_header_preproc" >&6
14941
14942# So? What about this header?
ac1cb8d3
VS
14943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14944 yes:no: )
a848cd7e
SC
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14949 ac_header_preproc=yes
a848cd7e 14950 ;;
ac1cb8d3 14951 no:yes:* )
a848cd7e
SC
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14964 (
14965 cat <<\_ASBOX
ac1cb8d3
VS
14966## ----------------------------------------- ##
14967## Report this to wx-dev@lists.wxwidgets.org ##
14968## ----------------------------------------- ##
a848cd7e
SC
14969_ASBOX
14970 ) |
14971 sed "s/^/$as_me: WARNING: /" >&2
14972 ;;
14973esac
14974echo "$as_me:$LINENO: checking for $ac_header" >&5
14975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14976if eval "test \"\${$as_ac_Header+set}\" = set"; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978else
ac1cb8d3 14979 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14980fi
14981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14983
14984fi
14985if test `eval echo '${'$as_ac_Header'}'` = yes; then
14986 cat >>confdefs.h <<_ACEOF
14987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988_ACEOF
14989
14990fi
14991
14992done
14993
14994
14995case "${host}" in
14996 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14997 if test $ac_cv_header_langinfo_h = "yes" \
14998 -a \( "$wx_cv_gccversion" = "EMX2" \
14999 -o "$wx_cv_gccversion" = "EMX3" \
15000 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15001 LIBS="$LIBS -lintl"
15002 fi
15003 ;;
15004esac
15005
15006if test "$wxUSE_GUI" = "yes"; then
15007 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15008
15009for ac_header in X11/Xlib.h
15010do
15011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012if eval "test \"\${$as_ac_Header+set}\" = set"; then
15013 echo "$as_me:$LINENO: checking for $ac_header" >&5
15014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15015if eval "test \"\${$as_ac_Header+set}\" = set"; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017fi
15018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15020else
15021 # Is the header compilable?
15022echo "$as_me:$LINENO: checking $ac_header usability" >&5
15023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15024cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
15030$ac_includes_default
15031#include <$ac_header>
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15035 (eval $ac_compile) 2>conftest.er1
a848cd7e 15036 ac_status=$?
ac1cb8d3
VS
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
a848cd7e
SC
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
07158944 15042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_header_compiler=yes
15055else
15056 echo "$as_me: failed program was:" >&5
15057sed 's/^/| /' conftest.$ac_ext >&5
15058
15059ac_header_compiler=no
15060fi
ac1cb8d3 15061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15063echo "${ECHO_T}$ac_header_compiler" >&6
15064
15065# Is the header present?
15066echo "$as_me:$LINENO: checking $ac_header presence" >&5
15067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15068cat >conftest.$ac_ext <<_ACEOF
15069/* confdefs.h. */
15070_ACEOF
15071cat confdefs.h >>conftest.$ac_ext
15072cat >>conftest.$ac_ext <<_ACEOF
15073/* end confdefs.h. */
15074#include <$ac_header>
15075_ACEOF
15076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } >/dev/null; then
15084 if test -s conftest.err; then
15085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15087 else
15088 ac_cpp_err=
15089 fi
15090else
15091 ac_cpp_err=yes
15092fi
15093if test -z "$ac_cpp_err"; then
15094 ac_header_preproc=yes
15095else
15096 echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_header_preproc=no
15100fi
15101rm -f conftest.err conftest.$ac_ext
15102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103echo "${ECHO_T}$ac_header_preproc" >&6
15104
15105# So? What about this header?
ac1cb8d3
VS
15106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107 yes:no: )
a848cd7e
SC
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112 ac_header_preproc=yes
a848cd7e 15113 ;;
ac1cb8d3 15114 no:yes:* )
a848cd7e
SC
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15127 (
15128 cat <<\_ASBOX
ac1cb8d3
VS
15129## ----------------------------------------- ##
15130## Report this to wx-dev@lists.wxwidgets.org ##
15131## ----------------------------------------- ##
a848cd7e
SC
15132_ASBOX
15133 ) |
15134 sed "s/^/$as_me: WARNING: /" >&2
15135 ;;
15136esac
15137echo "$as_me:$LINENO: checking for $ac_header" >&5
15138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15139if eval "test \"\${$as_ac_Header+set}\" = set"; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141else
ac1cb8d3 15142 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15143fi
15144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15146
15147fi
15148if test `eval echo '${'$as_ac_Header'}'` = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15151_ACEOF
15152
15153fi
15154
15155done
15156
15157
15158for ac_header in X11/XKBlib.h
15159do
15160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15161echo "$as_me:$LINENO: checking for $ac_header" >&5
15162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15163if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165else
15166 cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172
15173 #if HAVE_X11_XLIB_H
15174 #include <X11/Xlib.h>
15175 #endif
15176
15177
15178#include <$ac_header>
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15182 (eval $ac_compile) 2>conftest.er1
a848cd7e 15183 ac_status=$?
ac1cb8d3
VS
15184 grep -v '^ *+' conftest.er1 >conftest.err
15185 rm -f conftest.er1
15186 cat conftest.err >&5
a848cd7e
SC
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
07158944 15189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 eval "$as_ac_Header=yes"
15202else
15203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206eval "$as_ac_Header=no"
15207fi
ac1cb8d3 15208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15209fi
15210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15212if test `eval echo '${'$as_ac_Header'}'` = yes; then
15213 cat >>confdefs.h <<_ACEOF
15214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215_ACEOF
15216
15217fi
15218
15219done
15220
15221 fi
15222fi
15223
15224
15225echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15226echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15227if test "${ac_cv_c_const+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else
15230 cat >conftest.$ac_ext <<_ACEOF
15231/* confdefs.h. */
15232_ACEOF
15233cat confdefs.h >>conftest.$ac_ext
15234cat >>conftest.$ac_ext <<_ACEOF
15235/* end confdefs.h. */
15236
15237int
15238main ()
15239{
15240/* FIXME: Include the comments suggested by Paul. */
15241#ifndef __cplusplus
15242 /* Ultrix mips cc rejects this. */
15243 typedef int charset[2];
15244 const charset x;
15245 /* SunOS 4.1.1 cc rejects this. */
15246 char const *const *ccp;
15247 char **p;
15248 /* NEC SVR4.0.2 mips cc rejects this. */
15249 struct point {int x, y;};
15250 static struct point const zero = {0,0};
15251 /* AIX XL C 1.02.0.0 rejects this.
15252 It does not let you subtract one const X* pointer from another in
15253 an arm of an if-expression whose if-part is not a constant
15254 expression */
15255 const char *g = "string";
15256 ccp = &g + (g ? g-g : 0);
15257 /* HPUX 7.0 cc rejects these. */
15258 ++ccp;
15259 p = (char**) ccp;
15260 ccp = (char const *const *) p;
15261 { /* SCO 3.2v4 cc rejects this. */
15262 char *t;
15263 char const *s = 0 ? (char *) 0 : (char const *) 0;
15264
15265 *t++ = 0;
15266 }
15267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15268 int x[] = {25, 17};
15269 const int *foo = &x[0];
15270 ++foo;
15271 }
15272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15273 typedef const int *iptr;
15274 iptr p = 0;
15275 ++p;
15276 }
15277 { /* AIX XL C 1.02.0.0 rejects this saying
15278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15279 struct s { int j; const int *ap[3]; };
15280 struct s *b; b->j = 5;
15281 }
15282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15283 const int foo = 10;
15284 }
15285#endif
15286
15287 ;
15288 return 0;
15289}
15290_ACEOF
15291rm -f conftest.$ac_objext
15292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15293 (eval $ac_compile) 2>conftest.er1
a848cd7e 15294 ac_status=$?
ac1cb8d3
VS
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
a848cd7e
SC
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
07158944 15300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_c_const=yes
15313else
15314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317ac_cv_c_const=no
15318fi
ac1cb8d3 15319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15320fi
15321echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15322echo "${ECHO_T}$ac_cv_c_const" >&6
15323if test $ac_cv_c_const = no; then
15324
15325cat >>confdefs.h <<\_ACEOF
15326#define const
15327_ACEOF
15328
15329fi
15330
15331echo "$as_me:$LINENO: checking for inline" >&5
15332echo $ECHO_N "checking for inline... $ECHO_C" >&6
15333if test "${ac_cv_c_inline+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335else
15336 ac_cv_c_inline=no
15337for ac_kw in inline __inline__ __inline; do
15338 cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344#ifndef __cplusplus
15345typedef int foo_t;
15346static $ac_kw foo_t static_foo () {return 0; }
15347$ac_kw foo_t foo () {return 0; }
15348#endif
15349
15350_ACEOF
15351rm -f conftest.$ac_objext
15352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15353 (eval $ac_compile) 2>conftest.er1
a848cd7e 15354 ac_status=$?
ac1cb8d3
VS
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
a848cd7e
SC
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
07158944 15360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_c_inline=$ac_kw; break
15373else
15374 echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377fi
ac1cb8d3 15378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15379done
15380
15381fi
15382echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15383echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15384
15385
a848cd7e
SC
15386case $ac_cv_c_inline in
15387 inline | yes) ;;
ac1cb8d3
VS
15388 *)
15389 case $ac_cv_c_inline in
15390 no) ac_val=;;
15391 *) ac_val=$ac_cv_c_inline;;
15392 esac
15393 cat >>confdefs.h <<_ACEOF
15394#ifndef __cplusplus
15395#define inline $ac_val
15396#endif
de59c161 15397_ACEOF
ac1cb8d3 15398 ;;
a848cd7e
SC
15399esac
15400
15401
15402echo "$as_me:$LINENO: checking for char" >&5
15403echo $ECHO_N "checking for char... $ECHO_C" >&6
15404if test "${ac_cv_type_char+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 cat >conftest.$ac_ext <<_ACEOF
15408/* confdefs.h. */
15409_ACEOF
15410cat confdefs.h >>conftest.$ac_ext
15411cat >>conftest.$ac_ext <<_ACEOF
15412/* end confdefs.h. */
15413$ac_includes_default
15414int
15415main ()
15416{
15417if ((char *) 0)
15418 return 0;
15419if (sizeof (char))
15420 return 0;
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext
15426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15427 (eval $ac_compile) 2>conftest.er1
a848cd7e 15428 ac_status=$?
ac1cb8d3
VS
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
a848cd7e
SC
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
07158944 15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_cv_type_char=yes
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451ac_cv_type_char=no
15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454fi
15455echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15456echo "${ECHO_T}$ac_cv_type_char" >&6
15457
15458echo "$as_me:$LINENO: checking size of char" >&5
15459echo $ECHO_N "checking size of char... $ECHO_C" >&6
15460if test "${ac_cv_sizeof_char+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462else
15463 if test "$ac_cv_type_char" = yes; then
15464 # The cast to unsigned long works around a bug in the HP C Compiler
15465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15467 # This bug is HP SR number 8606223364.
15468 if test "$cross_compiling" = yes; then
15469 # Depending upon the size, compute the lo and hi bounds.
15470cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476$ac_includes_default
15477int
15478main ()
15479{
15480static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15481test_array [0] = 0
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15489 (eval $ac_compile) 2>conftest.er1
a848cd7e 15490 ac_status=$?
ac1cb8d3
VS
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
a848cd7e
SC
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
07158944 15496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_lo=0 ac_mid=0
15509 while :; do
15510 cat >conftest.$ac_ext <<_ACEOF
15511/* confdefs.h. */
15512_ACEOF
15513cat confdefs.h >>conftest.$ac_ext
15514cat >>conftest.$ac_ext <<_ACEOF
15515/* end confdefs.h. */
15516$ac_includes_default
15517int
15518main ()
15519{
15520static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15521test_array [0] = 0
15522
15523 ;
15524 return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext
15528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15529 (eval $ac_compile) 2>conftest.er1
a848cd7e 15530 ac_status=$?
ac1cb8d3
VS
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
a848cd7e
SC
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
07158944 15536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_hi=$ac_mid; break
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15554 if test $ac_lo -le $ac_mid; then
15555 ac_lo= ac_hi=
15556 break
15557 fi
15558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15559fi
ac1cb8d3 15560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15561 done
15562else
15563 echo "$as_me: failed program was:" >&5
15564sed 's/^/| /' conftest.$ac_ext >&5
15565
15566cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572$ac_includes_default
15573int
15574main ()
15575{
15576static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15577test_array [0] = 0
15578
15579 ;
15580 return 0;
15581}
15582_ACEOF
15583rm -f conftest.$ac_objext
15584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15585 (eval $ac_compile) 2>conftest.er1
a848cd7e 15586 ac_status=$?
ac1cb8d3
VS
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
a848cd7e
SC
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
07158944 15592 { ac_try='test -z "$ac_c_werror_flag" || 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_hi=-1 ac_mid=-1
15605 while :; do
15606 cat >conftest.$ac_ext <<_ACEOF
15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h. */
15612$ac_includes_default
15613int
15614main ()
15615{
15616static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15617test_array [0] = 0
15618
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623rm -f conftest.$ac_objext
15624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15625 (eval $ac_compile) 2>conftest.er1
a848cd7e 15626 ac_status=$?
ac1cb8d3
VS
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
a848cd7e
SC
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
07158944 15632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_lo=$ac_mid; break
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15650 if test $ac_mid -le $ac_hi; then
15651 ac_lo= ac_hi=
15652 break
15653 fi
15654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15655fi
ac1cb8d3 15656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15657 done
15658else
15659 echo "$as_me: failed program was:" >&5
15660sed 's/^/| /' conftest.$ac_ext >&5
15661
15662ac_lo= ac_hi=
15663fi
ac1cb8d3 15664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15665fi
ac1cb8d3 15666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15667# Binary search between lo and hi bounds.
15668while test "x$ac_lo" != "x$ac_hi"; do
15669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15670 cat >conftest.$ac_ext <<_ACEOF
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676$ac_includes_default
15677int
15678main ()
15679{
15680static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15681test_array [0] = 0
15682
15683 ;
15684 return 0;
15685}
15686_ACEOF
15687rm -f conftest.$ac_objext
15688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15689 (eval $ac_compile) 2>conftest.er1
a848cd7e 15690 ac_status=$?
ac1cb8d3
VS
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
a848cd7e
SC
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
07158944 15696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_hi=$ac_mid
15709else
15710 echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713ac_lo=`expr '(' $ac_mid ')' + 1`
15714fi
ac1cb8d3 15715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15716done
15717case $ac_lo in
15718?*) ac_cv_sizeof_char=$ac_lo;;
15719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15720See \`config.log' for more details." >&5
15721echo "$as_me: error: cannot compute sizeof (char), 77
15722See \`config.log' for more details." >&2;}
15723 { (exit 1); exit 1; }; } ;;
15724esac
15725else
15726 if test "$cross_compiling" = yes; then
07158944
VZ
15727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15729 { (exit 1); exit 1; }; }
15730else
15731 cat >conftest.$ac_ext <<_ACEOF
15732/* confdefs.h. */
15733_ACEOF
15734cat confdefs.h >>conftest.$ac_ext
15735cat >>conftest.$ac_ext <<_ACEOF
15736/* end confdefs.h. */
15737$ac_includes_default
15738long longval () { return (long) (sizeof (char)); }
15739unsigned long ulongval () { return (long) (sizeof (char)); }
15740#include <stdio.h>
15741#include <stdlib.h>
15742int
15743main ()
15744{
15745
15746 FILE *f = fopen ("conftest.val", "w");
15747 if (! f)
15748 exit (1);
15749 if (((long) (sizeof (char))) < 0)
15750 {
15751 long i = longval ();
15752 if (i != ((long) (sizeof (char))))
15753 exit (1);
15754 fprintf (f, "%ld\n", i);
15755 }
15756 else
15757 {
15758 unsigned long i = ulongval ();
15759 if (i != ((long) (sizeof (char))))
15760 exit (1);
15761 fprintf (f, "%lu\n", i);
15762 }
15763 exit (ferror (f) || fclose (f) != 0);
15764
15765 ;
15766 return 0;
15767}
15768_ACEOF
15769rm -f conftest$ac_exeext
15770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_cv_sizeof_char=`cat conftest.val`
15781else
15782 echo "$as_me: program exited with status $ac_status" >&5
15783echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786( exit $ac_status )
15787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15788See \`config.log' for more details." >&5
15789echo "$as_me: error: cannot compute sizeof (char), 77
15790See \`config.log' for more details." >&2;}
15791 { (exit 1); exit 1; }; }
15792fi
ac1cb8d3 15793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15794fi
15795fi
15796rm -f conftest.val
15797else
15798 ac_cv_sizeof_char=0
15799fi
15800fi
15801echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15802echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15803cat >>confdefs.h <<_ACEOF
15804#define SIZEOF_CHAR $ac_cv_sizeof_char
15805_ACEOF
15806
15807
15808echo "$as_me:$LINENO: checking for short" >&5
15809echo $ECHO_N "checking for short... $ECHO_C" >&6
15810if test "${ac_cv_type_short+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813 cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819$ac_includes_default
15820int
15821main ()
15822{
15823if ((short *) 0)
15824 return 0;
15825if (sizeof (short))
15826 return 0;
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15833 (eval $ac_compile) 2>conftest.er1
a848cd7e 15834 ac_status=$?
ac1cb8d3
VS
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
a848cd7e
SC
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
07158944 15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_cv_type_short=yes
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857ac_cv_type_short=no
15858fi
ac1cb8d3 15859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15860fi
15861echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15862echo "${ECHO_T}$ac_cv_type_short" >&6
15863
15864echo "$as_me:$LINENO: checking size of short" >&5
15865echo $ECHO_N "checking size of short... $ECHO_C" >&6
15866if test "${ac_cv_sizeof_short+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868else
15869 if test "$ac_cv_type_short" = yes; then
15870 # The cast to unsigned long works around a bug in the HP C Compiler
15871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15873 # This bug is HP SR number 8606223364.
15874 if test "$cross_compiling" = yes; then
15875 # Depending upon the size, compute the lo and hi bounds.
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883int
15884main ()
15885{
15886static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15887test_array [0] = 0
15888
15889 ;
15890 return 0;
15891}
15892_ACEOF
15893rm -f conftest.$ac_objext
15894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15895 (eval $ac_compile) 2>conftest.er1
a848cd7e 15896 ac_status=$?
ac1cb8d3
VS
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
a848cd7e
SC
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
07158944 15902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; } &&
15908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15914 ac_lo=0 ac_mid=0
15915 while :; do
15916 cat >conftest.$ac_ext <<_ACEOF
15917/* confdefs.h. */
15918_ACEOF
15919cat confdefs.h >>conftest.$ac_ext
15920cat >>conftest.$ac_ext <<_ACEOF
15921/* end confdefs.h. */
15922$ac_includes_default
15923int
15924main ()
15925{
15926static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15927test_array [0] = 0
15928
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15935 (eval $ac_compile) 2>conftest.er1
a848cd7e 15936 ac_status=$?
ac1cb8d3
VS
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
a848cd7e
SC
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
07158944 15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_hi=$ac_mid; break
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15960 if test $ac_lo -le $ac_mid; then
15961 ac_lo= ac_hi=
15962 break
15963 fi
15964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15965fi
ac1cb8d3 15966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15967 done
15968else
15969 echo "$as_me: failed program was:" >&5
15970sed 's/^/| /' conftest.$ac_ext >&5
15971
15972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
15978$ac_includes_default
15979int
15980main ()
15981{
15982static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15983test_array [0] = 0
15984
15985 ;
15986 return 0;
15987}
15988_ACEOF
15989rm -f conftest.$ac_objext
15990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15991 (eval $ac_compile) 2>conftest.er1
a848cd7e 15992 ac_status=$?
ac1cb8d3
VS
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
a848cd7e
SC
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
07158944 15998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_hi=-1 ac_mid=-1
16011 while :; do
16012 cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018$ac_includes_default
16019int
16020main ()
16021{
16022static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16023test_array [0] = 0
16024
16025 ;
16026 return 0;
16027}
16028_ACEOF
16029rm -f conftest.$ac_objext
16030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16031 (eval $ac_compile) 2>conftest.er1
a848cd7e 16032 ac_status=$?
ac1cb8d3
VS
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
a848cd7e
SC
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
07158944 16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; } &&
16044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_lo=$ac_mid; break
16051else
16052 echo "$as_me: failed program was:" >&5
16053sed 's/^/| /' conftest.$ac_ext >&5
16054
16055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16056 if test $ac_mid -le $ac_hi; then
16057 ac_lo= ac_hi=
16058 break
16059 fi
16060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16061fi
ac1cb8d3 16062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16063 done
16064else
16065 echo "$as_me: failed program was:" >&5
16066sed 's/^/| /' conftest.$ac_ext >&5
16067
16068ac_lo= ac_hi=
16069fi
ac1cb8d3 16070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16071fi
ac1cb8d3 16072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16073# Binary search between lo and hi bounds.
16074while test "x$ac_lo" != "x$ac_hi"; do
16075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16076 cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082$ac_includes_default
16083int
16084main ()
16085{
16086static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16087test_array [0] = 0
16088
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093rm -f conftest.$ac_objext
16094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16095 (eval $ac_compile) 2>conftest.er1
a848cd7e 16096 ac_status=$?
ac1cb8d3
VS
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
a848cd7e
SC
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
07158944 16102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_hi=$ac_mid
16115else
16116 echo "$as_me: failed program was:" >&5
16117sed 's/^/| /' conftest.$ac_ext >&5
16118
16119ac_lo=`expr '(' $ac_mid ')' + 1`
16120fi
ac1cb8d3 16121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16122done
16123case $ac_lo in
16124?*) ac_cv_sizeof_short=$ac_lo;;
16125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16126See \`config.log' for more details." >&5
16127echo "$as_me: error: cannot compute sizeof (short), 77
16128See \`config.log' for more details." >&2;}
16129 { (exit 1); exit 1; }; } ;;
16130esac
16131else
16132 if test "$cross_compiling" = yes; then
07158944
VZ
16133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16135 { (exit 1); exit 1; }; }
16136else
16137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143$ac_includes_default
16144long longval () { return (long) (sizeof (short)); }
16145unsigned long ulongval () { return (long) (sizeof (short)); }
16146#include <stdio.h>
16147#include <stdlib.h>
16148int
16149main ()
16150{
16151
16152 FILE *f = fopen ("conftest.val", "w");
16153 if (! f)
16154 exit (1);
16155 if (((long) (sizeof (short))) < 0)
16156 {
16157 long i = longval ();
16158 if (i != ((long) (sizeof (short))))
16159 exit (1);
16160 fprintf (f, "%ld\n", i);
16161 }
16162 else
16163 {
16164 unsigned long i = ulongval ();
16165 if (i != ((long) (sizeof (short))))
16166 exit (1);
16167 fprintf (f, "%lu\n", i);
16168 }
16169 exit (ferror (f) || fclose (f) != 0);
16170
16171 ;
16172 return 0;
16173}
16174_ACEOF
16175rm -f conftest$ac_exeext
16176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_sizeof_short=`cat conftest.val`
16187else
16188 echo "$as_me: program exited with status $ac_status" >&5
16189echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192( exit $ac_status )
16193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16194See \`config.log' for more details." >&5
16195echo "$as_me: error: cannot compute sizeof (short), 77
16196See \`config.log' for more details." >&2;}
16197 { (exit 1); exit 1; }; }
16198fi
ac1cb8d3 16199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16200fi
16201fi
16202rm -f conftest.val
16203else
16204 ac_cv_sizeof_short=0
16205fi
16206fi
16207echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16208echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16209cat >>confdefs.h <<_ACEOF
16210#define SIZEOF_SHORT $ac_cv_sizeof_short
16211_ACEOF
16212
16213
16214echo "$as_me:$LINENO: checking for void *" >&5
16215echo $ECHO_N "checking for void *... $ECHO_C" >&6
16216if test "${ac_cv_type_void_p+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 cat >conftest.$ac_ext <<_ACEOF
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225$ac_includes_default
16226int
16227main ()
16228{
16229if ((void * *) 0)
16230 return 0;
16231if (sizeof (void *))
16232 return 0;
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16239 (eval $ac_compile) 2>conftest.er1
a848cd7e 16240 ac_status=$?
ac1cb8d3
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
a848cd7e
SC
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
07158944 16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_type_void_p=yes
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263ac_cv_type_void_p=no
16264fi
ac1cb8d3 16265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16266fi
16267echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16268echo "${ECHO_T}$ac_cv_type_void_p" >&6
16269
16270echo "$as_me:$LINENO: checking size of void *" >&5
16271echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16272if test "${ac_cv_sizeof_void_p+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274else
16275 if test "$ac_cv_type_void_p" = yes; then
16276 # The cast to unsigned long works around a bug in the HP C Compiler
16277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16279 # This bug is HP SR number 8606223364.
16280 if test "$cross_compiling" = yes; then
16281 # Depending upon the size, compute the lo and hi bounds.
16282cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288$ac_includes_default
16289int
16290main ()
16291{
16292static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16293test_array [0] = 0
16294
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299rm -f conftest.$ac_objext
16300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16301 (eval $ac_compile) 2>conftest.er1
a848cd7e 16302 ac_status=$?
ac1cb8d3
VS
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
a848cd7e
SC
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
07158944 16308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_lo=0 ac_mid=0
16321 while :; do
16322 cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329int
16330main ()
16331{
16332static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16333test_array [0] = 0
16334
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext
16340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16341 (eval $ac_compile) 2>conftest.er1
a848cd7e 16342 ac_status=$?
ac1cb8d3
VS
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
a848cd7e
SC
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
07158944 16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_hi=$ac_mid; break
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16366 if test $ac_lo -le $ac_mid; then
16367 ac_lo= ac_hi=
16368 break
16369 fi
16370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16371fi
ac1cb8d3 16372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16373 done
16374else
16375 echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
16378cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384$ac_includes_default
16385int
16386main ()
16387{
16388static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16389test_array [0] = 0
16390
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext
16396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16397 (eval $ac_compile) 2>conftest.er1
a848cd7e 16398 ac_status=$?
ac1cb8d3
VS
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
a848cd7e
SC
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
07158944 16404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_hi=-1 ac_mid=-1
16417 while :; do
16418 cat >conftest.$ac_ext <<_ACEOF
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424$ac_includes_default
16425int
16426main ()
16427{
16428static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16429test_array [0] = 0
16430
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435rm -f conftest.$ac_objext
16436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16437 (eval $ac_compile) 2>conftest.er1
a848cd7e 16438 ac_status=$?
ac1cb8d3
VS
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
a848cd7e
SC
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
07158944 16444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_lo=$ac_mid; break
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16462 if test $ac_mid -le $ac_hi; then
16463 ac_lo= ac_hi=
16464 break
16465 fi
16466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16467fi
ac1cb8d3 16468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16469 done
16470else
16471 echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
16474ac_lo= ac_hi=
16475fi
ac1cb8d3 16476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16477fi
ac1cb8d3 16478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16479# Binary search between lo and hi bounds.
16480while test "x$ac_lo" != "x$ac_hi"; do
16481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16482 cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
16488$ac_includes_default
16489int
16490main ()
16491{
16492static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16493test_array [0] = 0
16494
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16501 (eval $ac_compile) 2>conftest.er1
a848cd7e 16502 ac_status=$?
ac1cb8d3
VS
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
a848cd7e
SC
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
07158944 16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_hi=$ac_mid
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
16525ac_lo=`expr '(' $ac_mid ')' + 1`
16526fi
ac1cb8d3 16527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16528done
16529case $ac_lo in
16530?*) ac_cv_sizeof_void_p=$ac_lo;;
16531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16532See \`config.log' for more details." >&5
16533echo "$as_me: error: cannot compute sizeof (void *), 77
16534See \`config.log' for more details." >&2;}
16535 { (exit 1); exit 1; }; } ;;
16536esac
16537else
16538 if test "$cross_compiling" = yes; then
07158944
VZ
16539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16541 { (exit 1); exit 1; }; }
16542else
16543 cat >conftest.$ac_ext <<_ACEOF
16544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
16549$ac_includes_default
16550long longval () { return (long) (sizeof (void *)); }
16551unsigned long ulongval () { return (long) (sizeof (void *)); }
16552#include <stdio.h>
16553#include <stdlib.h>
16554int
16555main ()
16556{
16557
16558 FILE *f = fopen ("conftest.val", "w");
16559 if (! f)
16560 exit (1);
16561 if (((long) (sizeof (void *))) < 0)
16562 {
16563 long i = longval ();
16564 if (i != ((long) (sizeof (void *))))
16565 exit (1);
16566 fprintf (f, "%ld\n", i);
16567 }
16568 else
16569 {
16570 unsigned long i = ulongval ();
16571 if (i != ((long) (sizeof (void *))))
16572 exit (1);
16573 fprintf (f, "%lu\n", i);
16574 }
16575 exit (ferror (f) || fclose (f) != 0);
16576
16577 ;
16578 return 0;
16579}
16580_ACEOF
16581rm -f conftest$ac_exeext
16582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16583 (eval $ac_link) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_sizeof_void_p=`cat conftest.val`
16593else
16594 echo "$as_me: program exited with status $ac_status" >&5
16595echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598( exit $ac_status )
16599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16600See \`config.log' for more details." >&5
16601echo "$as_me: error: cannot compute sizeof (void *), 77
16602See \`config.log' for more details." >&2;}
16603 { (exit 1); exit 1; }; }
16604fi
ac1cb8d3 16605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16606fi
16607fi
16608rm -f conftest.val
16609else
16610 ac_cv_sizeof_void_p=0
16611fi
16612fi
16613echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16614echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16615cat >>confdefs.h <<_ACEOF
16616#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16617_ACEOF
16618
16619
16620echo "$as_me:$LINENO: checking for int" >&5
16621echo $ECHO_N "checking for int... $ECHO_C" >&6
16622if test "${ac_cv_type_int+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624else
16625 cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
16631$ac_includes_default
16632int
16633main ()
16634{
16635if ((int *) 0)
16636 return 0;
16637if (sizeof (int))
16638 return 0;
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
16644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16645 (eval $ac_compile) 2>conftest.er1
a848cd7e 16646 ac_status=$?
ac1cb8d3
VS
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
a848cd7e
SC
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
07158944 16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_int=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_cv_type_int=no
16670fi
ac1cb8d3 16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16672fi
16673echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16674echo "${ECHO_T}$ac_cv_type_int" >&6
16675
16676echo "$as_me:$LINENO: checking size of int" >&5
16677echo $ECHO_N "checking size of int... $ECHO_C" >&6
16678if test "${ac_cv_sizeof_int+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 if test "$ac_cv_type_int" = yes; then
16682 # The cast to unsigned long works around a bug in the HP C Compiler
16683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16685 # This bug is HP SR number 8606223364.
16686 if test "$cross_compiling" = yes; then
16687 # Depending upon the size, compute the lo and hi bounds.
16688cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695int
16696main ()
16697{
16698static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16699test_array [0] = 0
16700
16701 ;
16702 return 0;
16703}
16704_ACEOF
16705rm -f conftest.$ac_objext
16706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16707 (eval $ac_compile) 2>conftest.er1
a848cd7e 16708 ac_status=$?
ac1cb8d3
VS
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
a848cd7e
SC
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
07158944 16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_lo=0 ac_mid=0
16727 while :; do
16728 cat >conftest.$ac_ext <<_ACEOF
16729/* confdefs.h. */
16730_ACEOF
16731cat confdefs.h >>conftest.$ac_ext
16732cat >>conftest.$ac_ext <<_ACEOF
16733/* end confdefs.h. */
16734$ac_includes_default
16735int
16736main ()
16737{
16738static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16739test_array [0] = 0
16740
16741 ;
16742 return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext
16746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16747 (eval $ac_compile) 2>conftest.er1
a848cd7e 16748 ac_status=$?
ac1cb8d3
VS
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
a848cd7e
SC
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
07158944 16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_hi=$ac_mid; break
16767else
16768 echo "$as_me: failed program was:" >&5
16769sed 's/^/| /' conftest.$ac_ext >&5
16770
16771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16772 if test $ac_lo -le $ac_mid; then
16773 ac_lo= ac_hi=
16774 break
16775 fi
16776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16777fi
ac1cb8d3 16778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16779 done
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h. */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h. */
16790$ac_includes_default
16791int
16792main ()
16793{
16794static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16795test_array [0] = 0
16796
16797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16803 (eval $ac_compile) 2>conftest.er1
a848cd7e 16804 ac_status=$?
ac1cb8d3
VS
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
a848cd7e
SC
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
07158944 16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_hi=-1 ac_mid=-1
16823 while :; do
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830$ac_includes_default
16831int
16832main ()
16833{
16834static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16835test_array [0] = 0
16836
16837 ;
16838 return 0;
16839}
16840_ACEOF
16841rm -f conftest.$ac_objext
16842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16843 (eval $ac_compile) 2>conftest.er1
a848cd7e 16844 ac_status=$?
ac1cb8d3
VS
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
a848cd7e
SC
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
07158944 16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; } &&
16856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_lo=$ac_mid; break
16863else
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16868 if test $ac_mid -le $ac_hi; then
16869 ac_lo= ac_hi=
16870 break
16871 fi
16872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16873fi
ac1cb8d3 16874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16875 done
16876else
16877 echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
16879
16880ac_lo= ac_hi=
16881fi
ac1cb8d3 16882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16883fi
ac1cb8d3 16884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16885# Binary search between lo and hi bounds.
16886while test "x$ac_lo" != "x$ac_hi"; do
16887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16907 (eval $ac_compile) 2>conftest.er1
a848cd7e 16908 ac_status=$?
ac1cb8d3
VS
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
a848cd7e
SC
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
07158944 16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_hi=$ac_mid
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931ac_lo=`expr '(' $ac_mid ')' + 1`
16932fi
ac1cb8d3 16933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16934done
16935case $ac_lo in
16936?*) ac_cv_sizeof_int=$ac_lo;;
16937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16938See \`config.log' for more details." >&5
16939echo "$as_me: error: cannot compute sizeof (int), 77
16940See \`config.log' for more details." >&2;}
16941 { (exit 1); exit 1; }; } ;;
16942esac
16943else
16944 if test "$cross_compiling" = yes; then
07158944
VZ
16945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16947 { (exit 1); exit 1; }; }
16948else
16949 cat >conftest.$ac_ext <<_ACEOF
16950/* confdefs.h. */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h. */
16955$ac_includes_default
16956long longval () { return (long) (sizeof (int)); }
16957unsigned long ulongval () { return (long) (sizeof (int)); }
16958#include <stdio.h>
16959#include <stdlib.h>
16960int
16961main ()
16962{
16963
16964 FILE *f = fopen ("conftest.val", "w");
16965 if (! f)
16966 exit (1);
16967 if (((long) (sizeof (int))) < 0)
16968 {
16969 long i = longval ();
16970 if (i != ((long) (sizeof (int))))
16971 exit (1);
16972 fprintf (f, "%ld\n", i);
16973 }
16974 else
16975 {
16976 unsigned long i = ulongval ();
16977 if (i != ((long) (sizeof (int))))
16978 exit (1);
16979 fprintf (f, "%lu\n", i);
16980 }
16981 exit (ferror (f) || fclose (f) != 0);
16982
16983 ;
16984 return 0;
16985}
16986_ACEOF
16987rm -f conftest$ac_exeext
16988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989 (eval $ac_link) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 ac_cv_sizeof_int=`cat conftest.val`
16999else
17000 echo "$as_me: program exited with status $ac_status" >&5
17001echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004( exit $ac_status )
17005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17006See \`config.log' for more details." >&5
17007echo "$as_me: error: cannot compute sizeof (int), 77
17008See \`config.log' for more details." >&2;}
17009 { (exit 1); exit 1; }; }
17010fi
ac1cb8d3 17011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17012fi
17013fi
17014rm -f conftest.val
17015else
17016 ac_cv_sizeof_int=0
17017fi
17018fi
17019echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17020echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17021cat >>confdefs.h <<_ACEOF
17022#define SIZEOF_INT $ac_cv_sizeof_int
17023_ACEOF
17024
17025
17026echo "$as_me:$LINENO: checking for long" >&5
17027echo $ECHO_N "checking for long... $ECHO_C" >&6
17028if test "${ac_cv_type_long+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037$ac_includes_default
17038int
17039main ()
17040{
17041if ((long *) 0)
17042 return 0;
17043if (sizeof (long))
17044 return 0;
17045 ;
17046 return 0;
17047}
17048_ACEOF
17049rm -f conftest.$ac_objext
17050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17051 (eval $ac_compile) 2>conftest.er1
a848cd7e 17052 ac_status=$?
ac1cb8d3
VS
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
a848cd7e
SC
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
07158944 17058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_type_long=yes
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_cv_type_long=no
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17078fi
17079echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17080echo "${ECHO_T}$ac_cv_type_long" >&6
17081
17082echo "$as_me:$LINENO: checking size of long" >&5
17083echo $ECHO_N "checking size of long... $ECHO_C" >&6
17084if test "${ac_cv_sizeof_long+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
17087 if test "$ac_cv_type_long" = yes; then
17088 # The cast to unsigned long works around a bug in the HP C Compiler
17089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17091 # This bug is HP SR number 8606223364.
17092 if test "$cross_compiling" = yes; then
17093 # Depending upon the size, compute the lo and hi bounds.
17094cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100$ac_includes_default
17101int
17102main ()
17103{
17104static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17105test_array [0] = 0
17106
17107 ;
17108 return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext
17112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17113 (eval $ac_compile) 2>conftest.er1
a848cd7e 17114 ac_status=$?
ac1cb8d3
VS
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
a848cd7e
SC
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
07158944 17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_lo=0 ac_mid=0
17133 while :; do
17134 cat >conftest.$ac_ext <<_ACEOF
17135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
17140$ac_includes_default
17141int
17142main ()
17143{
17144static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17145test_array [0] = 0
17146
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext
17152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17153 (eval $ac_compile) 2>conftest.er1
a848cd7e 17154 ac_status=$?
ac1cb8d3
VS
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
a848cd7e
SC
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
07158944 17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_hi=$ac_mid; break
17173else
17174 echo "$as_me: failed program was:" >&5
17175sed 's/^/| /' conftest.$ac_ext >&5
17176
17177ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17178 if test $ac_lo -le $ac_mid; then
17179 ac_lo= ac_hi=
17180 break
17181 fi
17182 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17183fi
ac1cb8d3 17184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17185 done
17186else
17187 echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190cat >conftest.$ac_ext <<_ACEOF
17191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
17196$ac_includes_default
17197int
17198main ()
17199{
17200static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17201test_array [0] = 0
17202
17203 ;
17204 return 0;
17205}
17206_ACEOF
17207rm -f conftest.$ac_objext
17208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17209 (eval $ac_compile) 2>conftest.er1
a848cd7e 17210 ac_status=$?
ac1cb8d3
VS
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
a848cd7e
SC
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
07158944 17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 ac_hi=-1 ac_mid=-1
17229 while :; do
17230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236$ac_includes_default
17237int
17238main ()
17239{
17240static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17241test_array [0] = 0
17242
17243 ;
17244 return 0;
17245}
17246_ACEOF
17247rm -f conftest.$ac_objext
17248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17249 (eval $ac_compile) 2>conftest.er1
a848cd7e 17250 ac_status=$?
ac1cb8d3
VS
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
a848cd7e
SC
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
07158944 17256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_lo=$ac_mid; break
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17274 if test $ac_mid -le $ac_hi; then
17275 ac_lo= ac_hi=
17276 break
17277 fi
17278 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17279fi
ac1cb8d3 17280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17281 done
17282else
17283 echo "$as_me: failed program was:" >&5
17284sed 's/^/| /' conftest.$ac_ext >&5
17285
17286ac_lo= ac_hi=
17287fi
ac1cb8d3 17288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17289fi
ac1cb8d3 17290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17291# Binary search between lo and hi bounds.
17292while test "x$ac_lo" != "x$ac_hi"; do
17293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17294 cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17305test_array [0] = 0
17306
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17313 (eval $ac_compile) 2>conftest.er1
a848cd7e 17314 ac_status=$?
ac1cb8d3
VS
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
a848cd7e
SC
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
07158944 17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_hi=$ac_mid
17333else
17334 echo "$as_me: failed program was:" >&5
17335sed 's/^/| /' conftest.$ac_ext >&5
17336
17337ac_lo=`expr '(' $ac_mid ')' + 1`
17338fi
ac1cb8d3 17339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17340done
17341case $ac_lo in
17342?*) ac_cv_sizeof_long=$ac_lo;;
17343'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17344See \`config.log' for more details." >&5
17345echo "$as_me: error: cannot compute sizeof (long), 77
17346See \`config.log' for more details." >&2;}
17347 { (exit 1); exit 1; }; } ;;
17348esac
17349else
17350 if test "$cross_compiling" = yes; then
07158944
VZ
17351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17352echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17353 { (exit 1); exit 1; }; }
17354else
17355 cat >conftest.$ac_ext <<_ACEOF
17356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
17361$ac_includes_default
17362long longval () { return (long) (sizeof (long)); }
17363unsigned long ulongval () { return (long) (sizeof (long)); }
17364#include <stdio.h>
17365#include <stdlib.h>
17366int
17367main ()
17368{
17369
17370 FILE *f = fopen ("conftest.val", "w");
17371 if (! f)
17372 exit (1);
17373 if (((long) (sizeof (long))) < 0)
17374 {
17375 long i = longval ();
17376 if (i != ((long) (sizeof (long))))
17377 exit (1);
17378 fprintf (f, "%ld\n", i);
17379 }
17380 else
17381 {
17382 unsigned long i = ulongval ();
17383 if (i != ((long) (sizeof (long))))
17384 exit (1);
17385 fprintf (f, "%lu\n", i);
17386 }
17387 exit (ferror (f) || fclose (f) != 0);
17388
17389 ;
17390 return 0;
17391}
17392_ACEOF
17393rm -f conftest$ac_exeext
17394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17395 (eval $ac_link) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_sizeof_long=`cat conftest.val`
17405else
17406 echo "$as_me: program exited with status $ac_status" >&5
17407echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410( exit $ac_status )
17411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17412See \`config.log' for more details." >&5
17413echo "$as_me: error: cannot compute sizeof (long), 77
17414See \`config.log' for more details." >&2;}
17415 { (exit 1); exit 1; }; }
17416fi
ac1cb8d3 17417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17418fi
17419fi
17420rm -f conftest.val
17421else
17422 ac_cv_sizeof_long=0
17423fi
17424fi
17425echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17426echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17427cat >>confdefs.h <<_ACEOF
17428#define SIZEOF_LONG $ac_cv_sizeof_long
17429_ACEOF
17430
17431
17432echo "$as_me:$LINENO: checking for size_t" >&5
17433echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17434if test "${ac_cv_type_size_t+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 ((size_t *) 0)
17448 return 0;
17449if (sizeof (size_t))
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); } &&
07158944 17464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_type_size_t=yes
17477else
17478 echo "$as_me: failed program was:" >&5
17479sed 's/^/| /' conftest.$ac_ext >&5
17480
17481ac_cv_type_size_t=no
17482fi
ac1cb8d3 17483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17484fi
17485echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17486echo "${ECHO_T}$ac_cv_type_size_t" >&6
17487
17488echo "$as_me:$LINENO: checking size of size_t" >&5
17489echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17490if test "${ac_cv_sizeof_size_t+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492else
17493 if test "$ac_cv_type_size_t" = yes; then
17494 # The cast to unsigned long works around a bug in the HP C Compiler
17495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17497 # This bug is HP SR number 8606223364.
17498 if test "$cross_compiling" = yes; then
17499 # Depending upon the size, compute the lo and hi bounds.
17500cat >conftest.$ac_ext <<_ACEOF
17501/* confdefs.h. */
17502_ACEOF
17503cat confdefs.h >>conftest.$ac_ext
17504cat >>conftest.$ac_ext <<_ACEOF
17505/* end confdefs.h. */
17506$ac_includes_default
17507int
17508main ()
17509{
17510static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17511test_array [0] = 0
17512
17513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext
17518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17519 (eval $ac_compile) 2>conftest.er1
a848cd7e 17520 ac_status=$?
ac1cb8d3
VS
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
a848cd7e
SC
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
07158944 17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_lo=0 ac_mid=0
17539 while :; do
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546$ac_includes_default
17547int
17548main ()
17549{
17550static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17551test_array [0] = 0
17552
17553 ;
17554 return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17559 (eval $ac_compile) 2>conftest.er1
a848cd7e 17560 ac_status=$?
ac1cb8d3
VS
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
a848cd7e
SC
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
07158944 17566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_hi=$ac_mid; break
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17584 if test $ac_lo -le $ac_mid; then
17585 ac_lo= ac_hi=
17586 break
17587 fi
17588 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17589fi
ac1cb8d3 17590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17591 done
17592else
17593 echo "$as_me: failed program was:" >&5
17594sed 's/^/| /' conftest.$ac_ext >&5
17595
17596cat >conftest.$ac_ext <<_ACEOF
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
17602$ac_includes_default
17603int
17604main ()
17605{
17606static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17607test_array [0] = 0
17608
17609 ;
17610 return 0;
17611}
17612_ACEOF
17613rm -f conftest.$ac_objext
17614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17615 (eval $ac_compile) 2>conftest.er1
a848cd7e 17616 ac_status=$?
ac1cb8d3
VS
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
a848cd7e
SC
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
07158944 17622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_hi=-1 ac_mid=-1
17635 while :; do
17636 cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h. */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h. */
17642$ac_includes_default
17643int
17644main ()
17645{
17646static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17647test_array [0] = 0
17648
17649 ;
17650 return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext
17654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17655 (eval $ac_compile) 2>conftest.er1
a848cd7e 17656 ac_status=$?
ac1cb8d3
VS
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
a848cd7e
SC
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
07158944 17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_lo=$ac_mid; break
17675else
17676 echo "$as_me: failed program was:" >&5
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
17679ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17680 if test $ac_mid -le $ac_hi; then
17681 ac_lo= ac_hi=
17682 break
17683 fi
17684 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17685fi
ac1cb8d3 17686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17687 done
17688else
17689 echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692ac_lo= ac_hi=
17693fi
ac1cb8d3 17694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17695fi
ac1cb8d3 17696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17697# Binary search between lo and hi bounds.
17698while test "x$ac_lo" != "x$ac_hi"; do
17699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706$ac_includes_default
17707int
17708main ()
17709{
17710static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17711test_array [0] = 0
17712
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext
17718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17719 (eval $ac_compile) 2>conftest.er1
a848cd7e 17720 ac_status=$?
ac1cb8d3
VS
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
a848cd7e
SC
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
07158944 17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
17738 ac_hi=$ac_mid
17739else
17740 echo "$as_me: failed program was:" >&5
17741sed 's/^/| /' conftest.$ac_ext >&5
17742
17743ac_lo=`expr '(' $ac_mid ')' + 1`
17744fi
ac1cb8d3 17745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17746done
17747case $ac_lo in
17748?*) ac_cv_sizeof_size_t=$ac_lo;;
17749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17750See \`config.log' for more details." >&5
17751echo "$as_me: error: cannot compute sizeof (size_t), 77
17752See \`config.log' for more details." >&2;}
17753 { (exit 1); exit 1; }; } ;;
17754esac
17755else
17756 if test "$cross_compiling" = yes; then
07158944
VZ
17757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17758echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17759 { (exit 1); exit 1; }; }
17760else
17761 cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
17767$ac_includes_default
17768long longval () { return (long) (sizeof (size_t)); }
17769unsigned long ulongval () { return (long) (sizeof (size_t)); }
17770#include <stdio.h>
17771#include <stdlib.h>
17772int
17773main ()
17774{
17775
17776 FILE *f = fopen ("conftest.val", "w");
17777 if (! f)
17778 exit (1);
17779 if (((long) (sizeof (size_t))) < 0)
17780 {
17781 long i = longval ();
17782 if (i != ((long) (sizeof (size_t))))
17783 exit (1);
17784 fprintf (f, "%ld\n", i);
17785 }
17786 else
17787 {
17788 unsigned long i = ulongval ();
17789 if (i != ((long) (sizeof (size_t))))
17790 exit (1);
17791 fprintf (f, "%lu\n", i);
17792 }
17793 exit (ferror (f) || fclose (f) != 0);
17794
17795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest$ac_exeext
17800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801 (eval $ac_link) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 ac_cv_sizeof_size_t=`cat conftest.val`
17811else
17812 echo "$as_me: program exited with status $ac_status" >&5
17813echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816( exit $ac_status )
17817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17818See \`config.log' for more details." >&5
17819echo "$as_me: error: cannot compute sizeof (size_t), 77
17820See \`config.log' for more details." >&2;}
17821 { (exit 1); exit 1; }; }
17822fi
ac1cb8d3 17823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17824fi
17825fi
17826rm -f conftest.val
17827else
17828 ac_cv_sizeof_size_t=0
17829fi
17830fi
17831echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17832echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17833cat >>confdefs.h <<_ACEOF
17834#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17835_ACEOF
17836
17837
17838
17839case "${host}" in
17840 arm-*-linux* )
17841 echo "$as_me:$LINENO: checking for long long" >&5
17842echo $ECHO_N "checking for long long... $ECHO_C" >&6
17843if test "${ac_cv_type_long_long+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17845else
17846 cat >conftest.$ac_ext <<_ACEOF
17847/* confdefs.h. */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h. */
17852$ac_includes_default
17853int
17854main ()
17855{
17856if ((long long *) 0)
17857 return 0;
17858if (sizeof (long long))
17859 return 0;
17860 ;
17861 return 0;
17862}
17863_ACEOF
17864rm -f conftest.$ac_objext
17865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17866 (eval $ac_compile) 2>conftest.er1
a848cd7e 17867 ac_status=$?
ac1cb8d3
VS
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
a848cd7e
SC
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
07158944 17873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } &&
17879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; }; then
17885 ac_cv_type_long_long=yes
17886else
17887 echo "$as_me: failed program was:" >&5
17888sed 's/^/| /' conftest.$ac_ext >&5
17889
17890ac_cv_type_long_long=no
17891fi
ac1cb8d3 17892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17893fi
17894echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17895echo "${ECHO_T}$ac_cv_type_long_long" >&6
17896
17897echo "$as_me:$LINENO: checking size of long long" >&5
17898echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17899if test "${ac_cv_sizeof_long_long+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901else
17902 if test "$ac_cv_type_long_long" = yes; then
17903 # The cast to unsigned long works around a bug in the HP C Compiler
17904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17906 # This bug is HP SR number 8606223364.
17907 if test "$cross_compiling" = yes; then
17908 # Depending upon the size, compute the lo and hi bounds.
17909cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h. */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h. */
17915$ac_includes_default
17916int
17917main ()
17918{
17919static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17920test_array [0] = 0
17921
17922 ;
17923 return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext
17927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17928 (eval $ac_compile) 2>conftest.er1
a848cd7e 17929 ac_status=$?
ac1cb8d3
VS
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
a848cd7e
SC
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
07158944 17935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_lo=0 ac_mid=0
17948 while :; do
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955$ac_includes_default
17956int
17957main ()
17958{
17959static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17960test_array [0] = 0
17961
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966rm -f conftest.$ac_objext
17967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17968 (eval $ac_compile) 2>conftest.er1
a848cd7e 17969 ac_status=$?
ac1cb8d3
VS
17970 grep -v '^ *+' conftest.er1 >conftest.err
17971 rm -f conftest.er1
17972 cat conftest.err >&5
a848cd7e
SC
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
07158944 17975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_hi=$ac_mid; break
17988else
17989 echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17993 if test $ac_lo -le $ac_mid; then
17994 ac_lo= ac_hi=
17995 break
17996 fi
17997 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17998fi
ac1cb8d3 17999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18000 done
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012int
18013main ()
18014{
18015static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18016test_array [0] = 0
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext
18023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18024 (eval $ac_compile) 2>conftest.er1
a848cd7e 18025 ac_status=$?
ac1cb8d3
VS
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
a848cd7e
SC
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
07158944 18031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; } &&
18037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_hi=-1 ac_mid=-1
18044 while :; do
18045 cat >conftest.$ac_ext <<_ACEOF
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
18051$ac_includes_default
18052int
18053main ()
18054{
18055static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18056test_array [0] = 0
18057
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext
18063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18064 (eval $ac_compile) 2>conftest.er1
a848cd7e 18065 ac_status=$?
ac1cb8d3
VS
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
a848cd7e
SC
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
07158944 18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 ac_lo=$ac_mid; break
18084else
18085 echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
18088ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18089 if test $ac_mid -le $ac_hi; then
18090 ac_lo= ac_hi=
18091 break
18092 fi
18093 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18094fi
ac1cb8d3 18095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18096 done
18097else
18098 echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101ac_lo= ac_hi=
18102fi
ac1cb8d3 18103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18104fi
ac1cb8d3 18105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18106# Binary search between lo and hi bounds.
18107while test "x$ac_lo" != "x$ac_hi"; do
18108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
18115$ac_includes_default
18116int
18117main ()
18118{
18119static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18120test_array [0] = 0
18121
18122 ;
18123 return 0;
18124}
18125_ACEOF
18126rm -f conftest.$ac_objext
18127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18128 (eval $ac_compile) 2>conftest.er1
a848cd7e 18129 ac_status=$?
ac1cb8d3
VS
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
a848cd7e
SC
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
07158944 18135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 ac_hi=$ac_mid
18148else
18149 echo "$as_me: failed program was:" >&5
18150sed 's/^/| /' conftest.$ac_ext >&5
18151
18152ac_lo=`expr '(' $ac_mid ')' + 1`
18153fi
ac1cb8d3 18154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18155done
18156case $ac_lo in
18157?*) ac_cv_sizeof_long_long=$ac_lo;;
18158'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18159See \`config.log' for more details." >&5
18160echo "$as_me: error: cannot compute sizeof (long long), 77
18161See \`config.log' for more details." >&2;}
18162 { (exit 1); exit 1; }; } ;;
18163esac
18164else
18165 if test "$cross_compiling" = yes; then
07158944
VZ
18166 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18167echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18168 { (exit 1); exit 1; }; }
18169else
18170 cat >conftest.$ac_ext <<_ACEOF
18171/* confdefs.h. */
18172_ACEOF
18173cat confdefs.h >>conftest.$ac_ext
18174cat >>conftest.$ac_ext <<_ACEOF
18175/* end confdefs.h. */
18176$ac_includes_default
18177long longval () { return (long) (sizeof (long long)); }
18178unsigned long ulongval () { return (long) (sizeof (long long)); }
18179#include <stdio.h>
18180#include <stdlib.h>
18181int
18182main ()
18183{
18184
18185 FILE *f = fopen ("conftest.val", "w");
18186 if (! f)
18187 exit (1);
18188 if (((long) (sizeof (long long))) < 0)
18189 {
18190 long i = longval ();
18191 if (i != ((long) (sizeof (long long))))
18192 exit (1);
18193 fprintf (f, "%ld\n", i);
18194 }
18195 else
18196 {
18197 unsigned long i = ulongval ();
18198 if (i != ((long) (sizeof (long long))))
18199 exit (1);
18200 fprintf (f, "%lu\n", i);
18201 }
18202 exit (ferror (f) || fclose (f) != 0);
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest$ac_exeext
18209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_sizeof_long_long=`cat conftest.val`
18220else
18221 echo "$as_me: program exited with status $ac_status" >&5
18222echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225( exit $ac_status )
18226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18227See \`config.log' for more details." >&5
18228echo "$as_me: error: cannot compute sizeof (long long), 77
18229See \`config.log' for more details." >&2;}
18230 { (exit 1); exit 1; }; }
18231fi
ac1cb8d3 18232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18233fi
18234fi
18235rm -f conftest.val
18236else
18237 ac_cv_sizeof_long_long=0
18238fi
18239fi
18240echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18241echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18242cat >>confdefs.h <<_ACEOF
18243#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18244_ACEOF
18245
18246
18247 ;;
18248 *-hp-hpux* )
18249 echo "$as_me:$LINENO: checking for long long" >&5
18250echo $ECHO_N "checking for long long... $ECHO_C" >&6
18251if test "${ac_cv_type_long_long+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253else
18254 cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260$ac_includes_default
18261int
18262main ()
18263{
18264if ((long long *) 0)
18265 return 0;
18266if (sizeof (long long))
18267 return 0;
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext
18273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18274 (eval $ac_compile) 2>conftest.er1
a848cd7e 18275 ac_status=$?
ac1cb8d3
VS
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
a848cd7e
SC
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
07158944 18281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_cv_type_long_long=yes
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298ac_cv_type_long_long=no
18299fi
ac1cb8d3 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18301fi
18302echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18303echo "${ECHO_T}$ac_cv_type_long_long" >&6
18304
18305echo "$as_me:$LINENO: checking size of long long" >&5
18306echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18307if test "${ac_cv_sizeof_long_long+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309else
18310 if test "$ac_cv_type_long_long" = yes; then
18311 # The cast to unsigned long works around a bug in the HP C Compiler
18312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18314 # This bug is HP SR number 8606223364.
18315 if test "$cross_compiling" = yes; then
18316 # Depending upon the size, compute the lo and hi bounds.
18317cat >conftest.$ac_ext <<_ACEOF
18318/* confdefs.h. */
18319_ACEOF
18320cat confdefs.h >>conftest.$ac_ext
18321cat >>conftest.$ac_ext <<_ACEOF
18322/* end confdefs.h. */
18323$ac_includes_default
18324int
18325main ()
18326{
18327static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18328test_array [0] = 0
18329
18330 ;
18331 return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext
18335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18336 (eval $ac_compile) 2>conftest.er1
a848cd7e 18337 ac_status=$?
ac1cb8d3
VS
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
a848cd7e
SC
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
07158944 18343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_lo=0 ac_mid=0
18356 while :; do
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363$ac_includes_default
18364int
18365main ()
18366{
18367static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18368test_array [0] = 0
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18376 (eval $ac_compile) 2>conftest.er1
a848cd7e 18377 ac_status=$?
ac1cb8d3
VS
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
a848cd7e
SC
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
07158944 18383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_hi=$ac_mid; break
18396else
18397 echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18401 if test $ac_lo -le $ac_mid; then
18402 ac_lo= ac_hi=
18403 break
18404 fi
18405 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18406fi
ac1cb8d3 18407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18408 done
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413cat >conftest.$ac_ext <<_ACEOF
18414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
18419$ac_includes_default
18420int
18421main ()
18422{
18423static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18424test_array [0] = 0
18425
18426 ;
18427 return 0;
18428}
18429_ACEOF
18430rm -f conftest.$ac_objext
18431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18432 (eval $ac_compile) 2>conftest.er1
a848cd7e 18433 ac_status=$?
ac1cb8d3
VS
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
a848cd7e
SC
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
07158944 18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_hi=-1 ac_mid=-1
18452 while :; do
18453 cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h. */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h. */
18459$ac_includes_default
18460int
18461main ()
18462{
18463static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18464test_array [0] = 0
18465
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18472 (eval $ac_compile) 2>conftest.er1
a848cd7e 18473 ac_status=$?
ac1cb8d3
VS
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
a848cd7e
SC
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
07158944 18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_lo=$ac_mid; break
18492else
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18497 if test $ac_mid -le $ac_hi; then
18498 ac_lo= ac_hi=
18499 break
18500 fi
18501 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18502fi
ac1cb8d3 18503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18504 done
18505else
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509ac_lo= ac_hi=
18510fi
ac1cb8d3 18511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18512fi
ac1cb8d3 18513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18514# Binary search between lo and hi bounds.
18515while test "x$ac_lo" != "x$ac_hi"; do
18516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18517 cat >conftest.$ac_ext <<_ACEOF
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */
18523$ac_includes_default
18524int
18525main ()
18526{
18527static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18528test_array [0] = 0
18529
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext
18535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18536 (eval $ac_compile) 2>conftest.er1
a848cd7e 18537 ac_status=$?
ac1cb8d3
VS
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
a848cd7e
SC
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
07158944 18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_hi=$ac_mid
18556else
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560ac_lo=`expr '(' $ac_mid ')' + 1`
18561fi
ac1cb8d3 18562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18563done
18564case $ac_lo in
18565?*) ac_cv_sizeof_long_long=$ac_lo;;
18566'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18567See \`config.log' for more details." >&5
18568echo "$as_me: error: cannot compute sizeof (long long), 77
18569See \`config.log' for more details." >&2;}
18570 { (exit 1); exit 1; }; } ;;
18571esac
18572else
18573 if test "$cross_compiling" = yes; then
07158944
VZ
18574 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18575echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18576 { (exit 1); exit 1; }; }
18577else
18578 cat >conftest.$ac_ext <<_ACEOF
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584$ac_includes_default
18585long longval () { return (long) (sizeof (long long)); }
18586unsigned long ulongval () { return (long) (sizeof (long long)); }
18587#include <stdio.h>
18588#include <stdlib.h>
18589int
18590main ()
18591{
18592
18593 FILE *f = fopen ("conftest.val", "w");
18594 if (! f)
18595 exit (1);
18596 if (((long) (sizeof (long long))) < 0)
18597 {
18598 long i = longval ();
18599 if (i != ((long) (sizeof (long long))))
18600 exit (1);
18601 fprintf (f, "%ld\n", i);
18602 }
18603 else
18604 {
18605 unsigned long i = ulongval ();
18606 if (i != ((long) (sizeof (long long))))
18607 exit (1);
18608 fprintf (f, "%lu\n", i);
18609 }
18610 exit (ferror (f) || fclose (f) != 0);
18611
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest$ac_exeext
18617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18618 (eval $ac_link) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_sizeof_long_long=`cat conftest.val`
18628else
18629 echo "$as_me: program exited with status $ac_status" >&5
18630echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633( exit $ac_status )
18634{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18635See \`config.log' for more details." >&5
18636echo "$as_me: error: cannot compute sizeof (long long), 77
18637See \`config.log' for more details." >&2;}
18638 { (exit 1); exit 1; }; }
18639fi
ac1cb8d3 18640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18641fi
18642fi
18643rm -f conftest.val
18644else
18645 ac_cv_sizeof_long_long=0
18646fi
18647fi
18648echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18649echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18650cat >>confdefs.h <<_ACEOF
18651#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18652_ACEOF
18653
18654
18655 if test "$ac_cv_sizeof_long_long" != "0"; then
18656 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18657 fi
18658 ;;
18659 * )
18660 echo "$as_me:$LINENO: checking for long long" >&5
18661echo $ECHO_N "checking for long long... $ECHO_C" >&6
18662if test "${ac_cv_type_long_long+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664else
18665 cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671$ac_includes_default
18672int
18673main ()
18674{
18675if ((long long *) 0)
18676 return 0;
18677if (sizeof (long long))
18678 return 0;
18679 ;
18680 return 0;
18681}
18682_ACEOF
18683rm -f conftest.$ac_objext
18684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18685 (eval $ac_compile) 2>conftest.er1
a848cd7e 18686 ac_status=$?
ac1cb8d3
VS
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
a848cd7e
SC
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
07158944 18692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_type_long_long=yes
18705else
18706 echo "$as_me: failed program was:" >&5
18707sed 's/^/| /' conftest.$ac_ext >&5
18708
18709ac_cv_type_long_long=no
18710fi
ac1cb8d3 18711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18712fi
18713echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18714echo "${ECHO_T}$ac_cv_type_long_long" >&6
18715
18716echo "$as_me:$LINENO: checking size of long long" >&5
18717echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18718if test "${ac_cv_sizeof_long_long+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720else
18721 if test "$ac_cv_type_long_long" = yes; then
18722 # The cast to unsigned long works around a bug in the HP C Compiler
18723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18725 # This bug is HP SR number 8606223364.
18726 if test "$cross_compiling" = yes; then
18727 # Depending upon the size, compute the lo and hi bounds.
18728cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
18734$ac_includes_default
18735int
18736main ()
18737{
18738static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18739test_array [0] = 0
18740
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18747 (eval $ac_compile) 2>conftest.er1
a848cd7e 18748 ac_status=$?
ac1cb8d3
VS
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
a848cd7e
SC
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
07158944 18754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_lo=0 ac_mid=0
18767 while :; do
18768 cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
18774$ac_includes_default
18775int
18776main ()
18777{
18778static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18779test_array [0] = 0
18780
18781 ;
18782 return 0;
18783}
18784_ACEOF
18785rm -f conftest.$ac_objext
18786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18787 (eval $ac_compile) 2>conftest.er1
a848cd7e 18788 ac_status=$?
ac1cb8d3
VS
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
a848cd7e
SC
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
07158944 18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_hi=$ac_mid; break
18807else
18808 echo "$as_me: failed program was:" >&5
18809sed 's/^/| /' conftest.$ac_ext >&5
18810
18811ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18812 if test $ac_lo -le $ac_mid; then
18813 ac_lo= ac_hi=
18814 break
18815 fi
18816 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18817fi
ac1cb8d3 18818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18819 done
18820else
18821 echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824cat >conftest.$ac_ext <<_ACEOF
18825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
18830$ac_includes_default
18831int
18832main ()
18833{
18834static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18835test_array [0] = 0
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18843 (eval $ac_compile) 2>conftest.er1
a848cd7e 18844 ac_status=$?
ac1cb8d3
VS
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
a848cd7e
SC
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
07158944 18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_hi=-1 ac_mid=-1
18863 while :; do
18864 cat >conftest.$ac_ext <<_ACEOF
18865/* confdefs.h. */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
18869/* end confdefs.h. */
18870$ac_includes_default
18871int
18872main ()
18873{
18874static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18875test_array [0] = 0
18876
18877 ;
18878 return 0;
18879}
18880_ACEOF
18881rm -f conftest.$ac_objext
18882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18883 (eval $ac_compile) 2>conftest.er1
a848cd7e 18884 ac_status=$?
ac1cb8d3
VS
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
a848cd7e
SC
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } &&
07158944 18890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; } &&
18896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_lo=$ac_mid; break
18903else
18904 echo "$as_me: failed program was:" >&5
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
18907ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18908 if test $ac_mid -le $ac_hi; then
18909 ac_lo= ac_hi=
18910 break
18911 fi
18912 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18913fi
ac1cb8d3 18914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18915 done
18916else
18917 echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920ac_lo= ac_hi=
18921fi
ac1cb8d3 18922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18923fi
ac1cb8d3 18924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18925# Binary search between lo and hi bounds.
18926while test "x$ac_lo" != "x$ac_hi"; do
18927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18928 cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934$ac_includes_default
18935int
18936main ()
18937{
18938static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18939test_array [0] = 0
18940
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext
18946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18947 (eval $ac_compile) 2>conftest.er1
a848cd7e 18948 ac_status=$?
ac1cb8d3
VS
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
a848cd7e
SC
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
07158944 18954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_hi=$ac_mid
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971ac_lo=`expr '(' $ac_mid ')' + 1`
18972fi
ac1cb8d3 18973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18974done
18975case $ac_lo in
18976?*) ac_cv_sizeof_long_long=$ac_lo;;
18977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18978See \`config.log' for more details." >&5
18979echo "$as_me: error: cannot compute sizeof (long long), 77
18980See \`config.log' for more details." >&2;}
18981 { (exit 1); exit 1; }; } ;;
18982esac
18983else
18984 if test "$cross_compiling" = yes; then
07158944
VZ
18985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18986echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18987 { (exit 1); exit 1; }; }
18988else
18989 cat >conftest.$ac_ext <<_ACEOF
18990/* confdefs.h. */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h. */
18995$ac_includes_default
18996long longval () { return (long) (sizeof (long long)); }
18997unsigned long ulongval () { return (long) (sizeof (long long)); }
18998#include <stdio.h>
18999#include <stdlib.h>
19000int
19001main ()
19002{
19003
19004 FILE *f = fopen ("conftest.val", "w");
19005 if (! f)
19006 exit (1);
19007 if (((long) (sizeof (long long))) < 0)
19008 {
19009 long i = longval ();
19010 if (i != ((long) (sizeof (long long))))
19011 exit (1);
19012 fprintf (f, "%ld\n", i);
19013 }
19014 else
19015 {
19016 unsigned long i = ulongval ();
19017 if (i != ((long) (sizeof (long long))))
19018 exit (1);
19019 fprintf (f, "%lu\n", i);
19020 }
19021 exit (ferror (f) || fclose (f) != 0);
19022
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest$ac_exeext
19028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19029 (eval $ac_link) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_sizeof_long_long=`cat conftest.val`
19039else
19040 echo "$as_me: program exited with status $ac_status" >&5
19041echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044( exit $ac_status )
19045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19046See \`config.log' for more details." >&5
19047echo "$as_me: error: cannot compute sizeof (long long), 77
19048See \`config.log' for more details." >&2;}
19049 { (exit 1); exit 1; }; }
19050fi
ac1cb8d3 19051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19052fi
19053fi
19054rm -f conftest.val
19055else
19056 ac_cv_sizeof_long_long=0
19057fi
19058fi
19059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19060echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19061cat >>confdefs.h <<_ACEOF
19062#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19063_ACEOF
19064
19065
19066esac
19067
238ecede
MW
19068echo "$as_me:$LINENO: checking for wchar_t" >&5
19069echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19070if test "${ac_cv_type_wchar_t+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073 cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079
19080 /* DJGPP only has fake wchar_t: */
19081 #ifdef __DJGPP__
19082 # error "fake wchar_t"
19083 #endif
19084 #ifdef HAVE_WCHAR_H
19085 # ifdef __CYGWIN__
19086 # include <stddef.h>
19087 # endif
19088 # include <wchar.h>
19089 #endif
19090 #ifdef HAVE_STDLIB_H
19091 # include <stdlib.h>
19092 #endif
19093 #include <stdio.h>
19094
19095
19096
19097int
19098main ()
19099{
19100if ((wchar_t *) 0)
19101 return 0;
19102if (sizeof (wchar_t))
19103 return 0;
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext
19109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
07158944 19117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_wchar_t=yes
19130else
19131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134ac_cv_type_wchar_t=no
19135fi
19136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137fi
19138echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19139echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19140
a848cd7e
SC
19141echo "$as_me:$LINENO: checking size of wchar_t" >&5
19142echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19143if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
238ecede
MW
19146 if test "$ac_cv_type_wchar_t" = yes; then
19147 # The cast to unsigned long works around a bug in the HP C Compiler
19148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19150 # This bug is HP SR number 8606223364.
19151 if test "$cross_compiling" = yes; then
19152 # Depending upon the size, compute the lo and hi bounds.
19153cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h. */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
19158/* end confdefs.h. */
19159
19160 /* DJGPP only has fake wchar_t: */
19161 #ifdef __DJGPP__
19162 # error "fake wchar_t"
19163 #endif
19164 #ifdef HAVE_WCHAR_H
19165 # ifdef __CYGWIN__
19166 # include <stddef.h>
19167 # endif
19168 # include <wchar.h>
19169 #endif
19170 #ifdef HAVE_STDLIB_H
19171 # include <stdlib.h>
19172 #endif
19173 #include <stdio.h>
19174
19175
19176
19177int
19178main ()
19179{
19180static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19181test_array [0] = 0
19182
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189 (eval $ac_compile) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
07158944 19196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_lo=0 ac_mid=0
19209 while :; do
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216
19217 /* DJGPP only has fake wchar_t: */
19218 #ifdef __DJGPP__
19219 # error "fake wchar_t"
19220 #endif
19221 #ifdef HAVE_WCHAR_H
19222 # ifdef __CYGWIN__
19223 # include <stddef.h>
19224 # endif
19225 # include <wchar.h>
19226 #endif
19227 #ifdef HAVE_STDLIB_H
19228 # include <stdlib.h>
19229 #endif
19230 #include <stdio.h>
19231
19232
19233
19234int
19235main ()
19236{
19237static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19238test_array [0] = 0
19239
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244rm -f conftest.$ac_objext
19245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
07158944 19253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_hi=$ac_mid; break
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270ac_lo=`expr $ac_mid + 1`
19271 if test $ac_lo -le $ac_mid; then
19272 ac_lo= ac_hi=
19273 break
19274 fi
19275 ac_mid=`expr 2 '*' $ac_mid + 1`
19276fi
19277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278 done
19279else
19280 echo "$as_me: failed program was:" >&5
19281sed 's/^/| /' conftest.$ac_ext >&5
19282
19283cat >conftest.$ac_ext <<_ACEOF
19284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
19289
19290 /* DJGPP only has fake wchar_t: */
19291 #ifdef __DJGPP__
19292 # error "fake wchar_t"
19293 #endif
19294 #ifdef HAVE_WCHAR_H
19295 # ifdef __CYGWIN__
19296 # include <stddef.h>
19297 # endif
19298 # include <wchar.h>
19299 #endif
19300 #ifdef HAVE_STDLIB_H
19301 # include <stdlib.h>
19302 #endif
19303 #include <stdio.h>
19304
19305
19306
19307int
19308main ()
19309{
19310static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19311test_array [0] = 0
19312
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext
19318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19319 (eval $ac_compile) 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
07158944 19326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_hi=-1 ac_mid=-1
19339 while :; do
19340 cat >conftest.$ac_ext <<_ACEOF
19341/* confdefs.h. */
19342_ACEOF
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
19345/* end confdefs.h. */
19346
19347 /* DJGPP only has fake wchar_t: */
19348 #ifdef __DJGPP__
19349 # error "fake wchar_t"
19350 #endif
19351 #ifdef HAVE_WCHAR_H
19352 # ifdef __CYGWIN__
19353 # include <stddef.h>
19354 # endif
19355 # include <wchar.h>
19356 #endif
19357 #ifdef HAVE_STDLIB_H
19358 # include <stdlib.h>
19359 #endif
19360 #include <stdio.h>
19361
19362
19363
19364int
19365main ()
19366{
19367static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19368test_array [0] = 0
19369
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
07158944 19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_lo=$ac_mid; break
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400ac_hi=`expr '(' $ac_mid ')' - 1`
19401 if test $ac_mid -le $ac_hi; then
19402 ac_lo= ac_hi=
19403 break
19404 fi
19405 ac_mid=`expr 2 '*' $ac_mid`
19406fi
19407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19408 done
19409else
19410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413ac_lo= ac_hi=
19414fi
19415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416fi
19417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418# Binary search between lo and hi bounds.
19419while test "x$ac_lo" != "x$ac_hi"; do
19420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19421 cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427
19428 /* DJGPP only has fake wchar_t: */
19429 #ifdef __DJGPP__
19430 # error "fake wchar_t"
19431 #endif
19432 #ifdef HAVE_WCHAR_H
19433 # ifdef __CYGWIN__
19434 # include <stddef.h>
19435 # endif
19436 # include <wchar.h>
19437 #endif
19438 #ifdef HAVE_STDLIB_H
19439 # include <stdlib.h>
19440 #endif
19441 #include <stdio.h>
a848cd7e 19442
a848cd7e 19443
a848cd7e 19444
238ecede
MW
19445int
19446main ()
19447{
19448static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19449test_array [0] = 0
a848cd7e 19450
238ecede
MW
19451 ;
19452 return 0;
19453}
19454_ACEOF
19455rm -f conftest.$ac_objext
19456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
07158944 19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_hi=$ac_mid
19477else
19478 echo "$as_me: failed program was:" >&5
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
19481ac_lo=`expr '(' $ac_mid ')' + 1`
19482fi
19483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19484done
19485case $ac_lo in
19486?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19487'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19488See \`config.log' for more details." >&5
19489echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19490See \`config.log' for more details." >&2;}
19491 { (exit 1); exit 1; }; } ;;
19492esac
19493else
19494 if test "$cross_compiling" = yes; then
07158944
VZ
19495 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19496echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19497 { (exit 1); exit 1; }; }
a848cd7e
SC
19498else
19499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505
238ecede
MW
19506 /* DJGPP only has fake wchar_t: */
19507 #ifdef __DJGPP__
19508 # error "fake wchar_t"
19509 #endif
19510 #ifdef HAVE_WCHAR_H
19511 # ifdef __CYGWIN__
19512 # include <stddef.h>
19513 # endif
19514 # include <wchar.h>
19515 #endif
19516 #ifdef HAVE_STDLIB_H
19517 # include <stdlib.h>
19518 #endif
19519 #include <stdio.h>
19520
19521
19522
19523long longval () { return (long) (sizeof (wchar_t)); }
19524unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19525#include <stdio.h>
19526#include <stdlib.h>
19527int
19528main ()
19529{
a848cd7e 19530
238ecede
MW
19531 FILE *f = fopen ("conftest.val", "w");
19532 if (! f)
19533 exit (1);
19534 if (((long) (sizeof (wchar_t))) < 0)
19535 {
19536 long i = longval ();
19537 if (i != ((long) (sizeof (wchar_t))))
19538 exit (1);
19539 fprintf (f, "%ld\n", i);
19540 }
19541 else
19542 {
19543 unsigned long i = ulongval ();
19544 if (i != ((long) (sizeof (wchar_t))))
19545 exit (1);
19546 fprintf (f, "%lu\n", i);
19547 }
19548 exit (ferror (f) || fclose (f) != 0);
19549
19550 ;
19551 return 0;
19552}
a848cd7e
SC
19553_ACEOF
19554rm -f conftest$ac_exeext
19555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19556 (eval $ac_link) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
238ecede 19565 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19566else
19567 echo "$as_me: program exited with status $ac_status" >&5
19568echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571( exit $ac_status )
238ecede
MW
19572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19573See \`config.log' for more details." >&5
19574echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19575See \`config.log' for more details." >&2;}
19576 { (exit 1); exit 1; }; }
a848cd7e 19577fi
ac1cb8d3 19578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19579fi
a848cd7e 19580fi
238ecede
MW
19581rm -f conftest.val
19582else
19583 ac_cv_sizeof_wchar_t=0
19584fi
19585fi
19586echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19587echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19588cat >>confdefs.h <<_ACEOF
238ecede 19589#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19590_ACEOF
19591
19592
238ecede 19593
ba3d13e1
VZ
19594echo "$as_me:$LINENO: checking for va_copy" >&5
19595echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19596if test "${wx_cv_func_va_copy+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598else
19599
19600 cat >conftest.$ac_ext <<_ACEOF
19601
19602 #include <stdarg.h>
19603 void foo(char *f, ...)
19604 {
19605 va_list ap1, ap2;
19606 va_start(ap1, f);
19607 va_copy(ap2, ap1);
19608 va_end(ap2);
19609 va_end(ap1);
19610 }
5886b072
VZ
19611 int main()
19612 {
b902e639
VZ
19613 foo("hi", 17);
19614 return 0;
5886b072 19615 }
ba3d13e1
VZ
19616_ACEOF
19617rm -f conftest.$ac_objext conftest$ac_exeext
19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>conftest.er1
19620 ac_status=$?
19621 grep -v '^ *+' conftest.er1 >conftest.err
19622 rm -f conftest.er1
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
07158944 19626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 wx_cv_func_va_copy=yes
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643wx_cv_func_va_copy=no
19644
19645fi
19646rm -f conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648
19649
19650fi
19651echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19652echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19653
19654if test $wx_cv_func_va_copy = "yes"; then
19655 cat >>confdefs.h <<\_ACEOF
19656#define HAVE_VA_COPY 1
19657_ACEOF
19658
19659else
19660 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19661echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19662if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665
19666 if test "$cross_compiling" = yes; then
19667 wx_cv_type_va_list_lvalue=yes
19668
19669else
19670 cat >conftest.$ac_ext <<_ACEOF
19671
19672 #include <stdarg.h>
19673 int foo(char *f, ...)
19674 {
19675 va_list ap1, ap2;
19676 va_start(ap1, f);
19677 ap2 = ap1;
19678 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19679 return 1;
19680 va_end(ap2);
19681 va_end(ap1);
19682 return 0;
19683 }
19684 int main()
19685 {
19686 return foo("hi", 17);
19687 }
19688_ACEOF
19689rm -f conftest$ac_exeext
19690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 wx_cv_type_va_list_lvalue=yes
19701else
19702 echo "$as_me: program exited with status $ac_status" >&5
19703echo "$as_me: failed program was:" >&5
19704sed 's/^/| /' conftest.$ac_ext >&5
19705
19706( exit $ac_status )
19707wx_cv_type_va_list_lvalue=no
19708fi
19709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19710fi
19711
19712
19713fi
19714echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19715echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19716
19717 if test $wx_cv_type_va_list_lvalue != "yes"; then
19718 cat >>confdefs.h <<\_ACEOF
19719#define VA_LIST_IS_ARRAY 1
19720_ACEOF
19721
19722 fi
19723fi
19724
a848cd7e
SC
19725# Check whether --enable-largefile or --disable-largefile was given.
19726if test "${enable_largefile+set}" = set; then
19727 enableval="$enable_largefile"
19728
19729fi;
19730if test "$enable_largefile" != no; then
19731 wx_largefile=no
19732
19733 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19734echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19735if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737else
19738
19739 cat >conftest.$ac_ext <<_ACEOF
19740/* confdefs.h. */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h. */
19745#define _FILE_OFFSET_BITS 64
19746 #include <sys/types.h>
19747int
19748main ()
19749{
19750typedef struct {
19751 unsigned int field: sizeof(off_t) == 8;
19752} wxlf;
19753
19754 ;
19755 return 0;
19756}
19757_ACEOF
19758rm -f conftest.$ac_objext
19759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19760 (eval $ac_compile) 2>conftest.er1
a848cd7e 19761 ac_status=$?
ac1cb8d3
VS
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
a848cd7e
SC
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
07158944 19767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_sys_file_offset_bits=64
19780else
19781 echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784ac_cv_sys_file_offset_bits=no
19785fi
ac1cb8d3 19786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19787
19788
19789fi
19790echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19791echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19792
19793 if test "$ac_cv_sys_file_offset_bits" != no; then
19794 wx_largefile=yes
19795 cat >>confdefs.h <<_ACEOF
19796#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19797_ACEOF
19798
19799 fi
19800
19801 if test "x$wx_largefile" != "xyes"; then
19802
19803 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19804echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19805if test "${ac_cv_sys_large_files+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808
19809 cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815#define _LARGE_FILES 1
19816 #include <sys/types.h>
19817int
19818main ()
19819{
19820typedef struct {
19821 unsigned int field: sizeof(off_t) == 8;
19822} wxlf;
19823
19824 ;
19825 return 0;
19826}
19827_ACEOF
19828rm -f conftest.$ac_objext
19829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19830 (eval $ac_compile) 2>conftest.er1
a848cd7e 19831 ac_status=$?
ac1cb8d3
VS
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
a848cd7e
SC
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } &&
07158944 19837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_sys_large_files=1
19850else
19851 echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854ac_cv_sys_large_files=no
19855fi
ac1cb8d3 19856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19857
19858
19859fi
19860echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19861echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19862
19863 if test "$ac_cv_sys_large_files" != no; then
19864 wx_largefile=yes
19865 cat >>confdefs.h <<_ACEOF
19866#define _LARGE_FILES $ac_cv_sys_large_files
19867_ACEOF
19868
19869 fi
19870
19871 fi
19872
19873 echo "$as_me:$LINENO: checking if large file support is available" >&5
19874echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19875 if test "x$wx_largefile" = "xyes"; then
19876 cat >>confdefs.h <<\_ACEOF
19877#define HAVE_LARGEFILE_SUPPORT 1
19878_ACEOF
19879
19880 fi
19881 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19882echo "${ECHO_T}$wx_largefile" >&6
19883fi
19884
5b674b9d
DE
19885
19886if test "x$wx_largefile" = "xyes"; then
19887 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19888 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19889 else
19890 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19891 fi
19892 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19893echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19894if test "${ac_cv_sys_largefile_source+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896else
19897 while :; do
19898 ac_cv_sys_largefile_source=no
19899 cat >conftest.$ac_ext <<_ACEOF
19900/* confdefs.h. */
19901_ACEOF
19902cat confdefs.h >>conftest.$ac_ext
19903cat >>conftest.$ac_ext <<_ACEOF
19904/* end confdefs.h. */
19905#include <stdio.h>
19906int
19907main ()
19908{
19909return !fseeko;
19910 ;
19911 return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>conftest.er1
19917 ac_status=$?
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
07158944 19923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; } &&
19929 { ac_try='test -s conftest.$ac_objext'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 break
19936else
19937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940fi
19941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19942 cat >conftest.$ac_ext <<_ACEOF
19943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
19947/* end confdefs.h. */
19948#define _LARGEFILE_SOURCE 1
19949#include <stdio.h>
19950int
19951main ()
19952{
19953return !fseeko;
19954 ;
19955 return 0;
19956}
19957_ACEOF
19958rm -f conftest.$ac_objext
19959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>conftest.er1
19961 ac_status=$?
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
07158944 19967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_cv_sys_largefile_source=1; break
19980else
19981 echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
19984fi
19985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19986 break
19987done
19988fi
19989echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19990echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19991if test "$ac_cv_sys_largefile_source" != no; then
19992
19993cat >>confdefs.h <<_ACEOF
19994#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19995_ACEOF
19996
19997fi
19998rm -f conftest*
19999
20000# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20001# in glibc 2.1.3, but that breaks too many other things.
20002# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20003echo "$as_me:$LINENO: checking for fseeko" >&5
20004echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20005if test "${ac_cv_func_fseeko+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007else
20008 cat >conftest.$ac_ext <<_ACEOF
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014#include <stdio.h>
20015int
20016main ()
20017{
20018return fseeko && fseeko (stdin, 0, 0);
20019 ;
20020 return 0;
20021}
20022_ACEOF
20023rm -f conftest.$ac_objext conftest$ac_exeext
20024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20025 (eval $ac_link) 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
07158944 20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest$ac_exeext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_cv_func_fseeko=yes
20045else
20046 echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
20048
20049ac_cv_func_fseeko=no
20050fi
20051rm -f conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053fi
20054echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20055echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20056if test $ac_cv_func_fseeko = yes; then
20057
20058cat >>confdefs.h <<\_ACEOF
20059#define HAVE_FSEEKO 1
20060_ACEOF
20061
20062fi
20063
5b674b9d
DE
20064 if test "$ac_cv_sys_largefile_source" != no; then
20065 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20066 fi
20067 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20068fi
20069
20070echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20071echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20072if test "${ac_cv_c_bigendian+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074else
20075 ac_cv_c_bigendian=unknown
20076# See if sys/param.h defines the BYTE_ORDER macro.
20077cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h. */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h. */
20083#include <sys/types.h>
20084#include <sys/param.h>
20085int
20086main ()
20087{
20088
20089#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20090 bogus endian macros
20091#endif
20092 ;
20093 return 0;
20094}
20095_ACEOF
20096rm -f conftest.$ac_objext
20097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20098 (eval $ac_compile) 2>conftest.er1
a848cd7e 20099 ac_status=$?
ac1cb8d3
VS
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
a848cd7e
SC
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
07158944 20105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 # It does; now see whether it defined to BIG_ENDIAN or not.
20118cat >conftest.$ac_ext <<_ACEOF
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124#include <sys/types.h>
20125#include <sys/param.h>
20126int
20127main ()
20128{
20129
20130#if BYTE_ORDER != BIG_ENDIAN
20131 not big endian
20132#endif
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137rm -f conftest.$ac_objext
20138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20139 (eval $ac_compile) 2>conftest.er1
a848cd7e 20140 ac_status=$?
ac1cb8d3
VS
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
a848cd7e
SC
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
07158944 20146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_c_bigendian=yes
20159else
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163ac_cv_c_bigendian=no
20164fi
ac1cb8d3 20165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170fi
ac1cb8d3 20171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20172if test $ac_cv_c_bigendian = unknown; then
20173if test "$cross_compiling" = yes; then
20174 ac_cv_c_bigendian=unknown
20175else
20176 cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182main () {
20183 /* Are we little or big endian? From Harbison&Steele. */
20184 union
20185 {
20186 long l;
20187 char c[sizeof (long)];
20188 } u;
20189 u.l = 1;
20190 exit (u.c[sizeof (long) - 1] == 1);
20191}
20192_ACEOF
20193rm -f conftest$ac_exeext
20194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20195 (eval $ac_link) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_cv_c_bigendian=no
20205else
20206 echo "$as_me: program exited with status $ac_status" >&5
20207echo "$as_me: failed program was:" >&5
20208sed 's/^/| /' conftest.$ac_ext >&5
20209
20210( exit $ac_status )
20211ac_cv_c_bigendian=yes
20212fi
ac1cb8d3 20213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20214fi
20215fi
20216fi
20217echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20218echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20219if test $ac_cv_c_bigendian = unknown; then
20220 { 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
20221echo "$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;}
20222fi
20223if test $ac_cv_c_bigendian = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225#define WORDS_BIGENDIAN 1
20226_ACEOF
20227
20228fi
20229
20230
20231ac_ext=cc
20232ac_cpp='$CXXCPP $CPPFLAGS'
20233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20236echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20237echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20238if test -z "$CXXCPP"; then
20239 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20241else
20242 # Double quotes because CXXCPP needs to be expanded
20243 for CXXCPP in "$CXX -E" "/lib/cpp"
20244 do
20245 ac_preproc_ok=false
20246for ac_cxx_preproc_warn_flag in '' yes
20247do
20248 # Use a header file that comes with gcc, so configuring glibc
20249 # with a fresh cross-compiler works.
20250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20251 # <limits.h> exists even on freestanding compilers.
20252 # On the NeXT, cc -E runs the code through the compiler's parser,
20253 # not just through cpp. "Syntax error" is here to catch this case.
20254 cat >conftest.$ac_ext <<_ACEOF
20255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
20260#ifdef __STDC__
20261# include <limits.h>
20262#else
20263# include <assert.h>
20264#endif
ac1cb8d3 20265 Syntax error
a848cd7e
SC
20266_ACEOF
20267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } >/dev/null; then
20275 if test -s conftest.err; then
20276 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20277 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20278 else
20279 ac_cpp_err=
20280 fi
20281else
20282 ac_cpp_err=yes
20283fi
20284if test -z "$ac_cpp_err"; then
20285 :
20286else
20287 echo "$as_me: failed program was:" >&5
20288sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 # Broken: fails on valid input.
20291continue
20292fi
20293rm -f conftest.err conftest.$ac_ext
20294
20295 # OK, works on sane cases. Now check whether non-existent headers
20296 # can be detected and how.
20297 cat >conftest.$ac_ext <<_ACEOF
20298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
20303#include <ac_nonexistent.h>
20304_ACEOF
20305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } >/dev/null; then
20313 if test -s conftest.err; then
20314 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20315 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20316 else
20317 ac_cpp_err=
20318 fi
20319else
20320 ac_cpp_err=yes
20321fi
20322if test -z "$ac_cpp_err"; then
20323 # Broken: success on invalid input.
20324continue
20325else
20326 echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 # Passes both tests.
20330ac_preproc_ok=:
20331break
20332fi
20333rm -f conftest.err conftest.$ac_ext
20334
20335done
20336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20337rm -f conftest.err conftest.$ac_ext
20338if $ac_preproc_ok; then
20339 break
20340fi
20341
20342 done
20343 ac_cv_prog_CXXCPP=$CXXCPP
20344
20345fi
20346 CXXCPP=$ac_cv_prog_CXXCPP
20347else
20348 ac_cv_prog_CXXCPP=$CXXCPP
20349fi
20350echo "$as_me:$LINENO: result: $CXXCPP" >&5
20351echo "${ECHO_T}$CXXCPP" >&6
20352ac_preproc_ok=false
20353for ac_cxx_preproc_warn_flag in '' yes
20354do
20355 # Use a header file that comes with gcc, so configuring glibc
20356 # with a fresh cross-compiler works.
20357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20358 # <limits.h> exists even on freestanding compilers.
20359 # On the NeXT, cc -E runs the code through the compiler's parser,
20360 # not just through cpp. "Syntax error" is here to catch this case.
20361 cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
20367#ifdef __STDC__
20368# include <limits.h>
20369#else
20370# include <assert.h>
20371#endif
ac1cb8d3 20372 Syntax error
a848cd7e
SC
20373_ACEOF
20374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } >/dev/null; then
20382 if test -s conftest.err; then
20383 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20385 else
20386 ac_cpp_err=
20387 fi
20388else
20389 ac_cpp_err=yes
20390fi
20391if test -z "$ac_cpp_err"; then
20392 :
20393else
20394 echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 # Broken: fails on valid input.
20398continue
20399fi
20400rm -f conftest.err conftest.$ac_ext
20401
20402 # OK, works on sane cases. Now check whether non-existent headers
20403 # can be detected and how.
20404 cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h. */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h. */
20410#include <ac_nonexistent.h>
20411_ACEOF
20412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } >/dev/null; then
20420 if test -s conftest.err; then
20421 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20423 else
20424 ac_cpp_err=
20425 fi
20426else
20427 ac_cpp_err=yes
20428fi
20429if test -z "$ac_cpp_err"; then
20430 # Broken: success on invalid input.
20431continue
20432else
20433 echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 # Passes both tests.
20437ac_preproc_ok=:
20438break
20439fi
20440rm -f conftest.err conftest.$ac_ext
20441
20442done
20443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20444rm -f conftest.err conftest.$ac_ext
20445if $ac_preproc_ok; then
20446 :
20447else
20448 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20449See \`config.log' for more details." >&5
20450echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20451See \`config.log' for more details." >&2;}
20452 { (exit 1); exit 1; }; }
20453fi
20454
20455ac_ext=cc
20456ac_cpp='$CXXCPP $CPPFLAGS'
20457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20460
20461
20462
20463
20464
20465 ac_ext=cc
20466ac_cpp='$CXXCPP $CPPFLAGS'
20467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20470
20471
20472
20473for ac_header in iostream
20474do
20475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20476if eval "test \"\${$as_ac_Header+set}\" = set"; then
20477 echo "$as_me:$LINENO: checking for $ac_header" >&5
20478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20479if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481fi
20482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20484else
20485 # Is the header compilable?
20486echo "$as_me:$LINENO: checking $ac_header usability" >&5
20487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20488cat >conftest.$ac_ext <<_ACEOF
20489/* confdefs.h. */
20490_ACEOF
20491cat confdefs.h >>conftest.$ac_ext
20492cat >>conftest.$ac_ext <<_ACEOF
20493/* end confdefs.h. */
20494$ac_includes_default
20495#include <$ac_header>
20496_ACEOF
20497rm -f conftest.$ac_objext
20498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20499 (eval $ac_compile) 2>conftest.er1
a848cd7e 20500 ac_status=$?
ac1cb8d3
VS
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
a848cd7e
SC
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
07158944 20506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_header_compiler=yes
20519else
20520 echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523ac_header_compiler=no
20524fi
ac1cb8d3 20525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20527echo "${ECHO_T}$ac_header_compiler" >&6
20528
20529# Is the header present?
20530echo "$as_me:$LINENO: checking $ac_header presence" >&5
20531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20532cat >conftest.$ac_ext <<_ACEOF
20533/* confdefs.h. */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h. */
20538#include <$ac_header>
20539_ACEOF
20540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null; then
20548 if test -s conftest.err; then
20549 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20550 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20551 else
20552 ac_cpp_err=
20553 fi
20554else
20555 ac_cpp_err=yes
20556fi
20557if test -z "$ac_cpp_err"; then
20558 ac_header_preproc=yes
20559else
20560 echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 ac_header_preproc=no
20564fi
20565rm -f conftest.err conftest.$ac_ext
20566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20567echo "${ECHO_T}$ac_header_preproc" >&6
20568
20569# So? What about this header?
ac1cb8d3
VS
20570case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20571 yes:no: )
a848cd7e
SC
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20576 ac_header_preproc=yes
a848cd7e 20577 ;;
ac1cb8d3 20578 no:yes:* )
a848cd7e
SC
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20591 (
20592 cat <<\_ASBOX
ac1cb8d3
VS
20593## ----------------------------------------- ##
20594## Report this to wx-dev@lists.wxwidgets.org ##
20595## ----------------------------------------- ##
a848cd7e
SC
20596_ASBOX
20597 ) |
20598 sed "s/^/$as_me: WARNING: /" >&2
20599 ;;
20600esac
20601echo "$as_me:$LINENO: checking for $ac_header" >&5
20602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20603if eval "test \"\${$as_ac_Header+set}\" = set"; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605else
ac1cb8d3 20606 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20607fi
20608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20610
20611fi
20612if test `eval echo '${'$as_ac_Header'}'` = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20615_ACEOF
20616
20617fi
20618
20619done
20620
20621
20622 if test "$ac_cv_header_iostream" = "yes" ; then
20623 :
20624 else
20625 cat >>confdefs.h <<\_ACEOF
20626#define wxUSE_IOSTREAMH 1
20627_ACEOF
20628
20629 fi
20630
20631 ac_ext=c
20632ac_cpp='$CPP $CPPFLAGS'
20633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635ac_compiler_gnu=$ac_cv_c_compiler_gnu
20636
20637
20638
20639
20640 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20641echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20642if test "${wx_cv_cpp_bool+set}" = set; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
20644else
20645
20646
20647
20648 ac_ext=cc
20649ac_cpp='$CXXCPP $CPPFLAGS'
20650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20653
20654
20655 cat >conftest.$ac_ext <<_ACEOF
20656/* confdefs.h. */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h. */
20661
20662
20663int
20664main ()
20665{
20666
20667 bool b = true;
20668
20669 return 0;
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20677 (eval $ac_compile) 2>conftest.er1
a848cd7e 20678 ac_status=$?
ac1cb8d3
VS
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
a848cd7e
SC
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
07158944 20684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696
20697 wx_cv_cpp_bool=yes
20698
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703
20704 wx_cv_cpp_bool=no
20705
20706
20707fi
ac1cb8d3 20708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20709
20710 ac_ext=c
20711ac_cpp='$CPP $CPPFLAGS'
20712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714ac_compiler_gnu=$ac_cv_c_compiler_gnu
20715
20716
20717fi
20718echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20719echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20720
20721 if test "$wx_cv_cpp_bool" = "yes"; then
20722 cat >>confdefs.h <<\_ACEOF
20723#define HAVE_BOOL 1
20724_ACEOF
20725
20726 fi
20727
20728
20729
20730 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20731echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20732if test "${wx_cv_explicit+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734else
20735
20736
20737
20738 ac_ext=cc
20739ac_cpp='$CXXCPP $CPPFLAGS'
20740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20743
20744
20745 cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751
20752 class Foo { public: explicit Foo(int) {} };
20753
20754int
20755main ()
20756{
20757
20758 return 0;
20759
20760 ;
20761 return 0;
20762}
20763_ACEOF
20764rm -f conftest.$ac_objext
20765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20766 (eval $ac_compile) 2>conftest.er1
a848cd7e 20767 ac_status=$?
ac1cb8d3
VS
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
a848cd7e
SC
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
07158944 20773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; } &&
20779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785
20786 cat >conftest.$ac_ext <<_ACEOF
20787/* confdefs.h. */
20788_ACEOF
20789cat confdefs.h >>conftest.$ac_ext
20790cat >>conftest.$ac_ext <<_ACEOF
20791/* end confdefs.h. */
20792
20793 class Foo { public: explicit Foo(int) {} };
20794 static void TakeFoo(const Foo& foo) { }
20795
20796int
20797main ()
20798{
20799
20800 TakeFoo(17);
20801 return 0;
20802
20803 ;
20804 return 0;
20805}
20806_ACEOF
20807rm -f conftest.$ac_objext
20808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20809 (eval $ac_compile) 2>conftest.er1
a848cd7e 20810 ac_status=$?
ac1cb8d3
VS
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
a848cd7e
SC
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
07158944 20816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 wx_cv_explicit=no
20829else
20830 echo "$as_me: failed program was:" >&5
20831sed 's/^/| /' conftest.$ac_ext >&5
20832
20833wx_cv_explicit=yes
20834
20835fi
ac1cb8d3 20836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20837
20838else
20839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
20842wx_cv_explicit=no
20843
20844fi
ac1cb8d3 20845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20846
20847 ac_ext=c
20848ac_cpp='$CPP $CPPFLAGS'
20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853
20854fi
20855echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20856echo "${ECHO_T}$wx_cv_explicit" >&6
20857
20858 if test "$wx_cv_explicit" = "yes"; then
20859 cat >>confdefs.h <<\_ACEOF
20860#define HAVE_EXPLICIT 1
20861_ACEOF
20862
20863 fi
20864
20865
20866echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20867echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20868if test "${ac_cv_cxx_const_cast+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870else
20871
20872
20873 ac_ext=cc
20874ac_cpp='$CXXCPP $CPPFLAGS'
20875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20878
20879 cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885
20886int
20887main ()
20888{
20889int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20890 ;
20891 return 0;
20892}
20893_ACEOF
20894rm -f conftest.$ac_objext
20895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20896 (eval $ac_compile) 2>conftest.er1
a848cd7e 20897 ac_status=$?
ac1cb8d3
VS
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
a848cd7e
SC
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
07158944 20903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_cxx_const_cast=yes
20916else
20917 echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920ac_cv_cxx_const_cast=no
20921fi
ac1cb8d3 20922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20923 ac_ext=c
20924ac_cpp='$CPP $CPPFLAGS'
20925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927ac_compiler_gnu=$ac_cv_c_compiler_gnu
20928
20929
20930fi
20931echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20932echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20933if test "$ac_cv_cxx_const_cast" = yes; then
20934
20935cat >>confdefs.h <<\_ACEOF
20936#define HAVE_CONST_CAST
20937_ACEOF
20938
20939fi
20940
7714864e
RL
20941echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20942echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20943if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20945else
20946
20947
20948 ac_ext=cc
20949ac_cpp='$CXXCPP $CPPFLAGS'
20950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20953
20954 cat >conftest.$ac_ext <<_ACEOF
20955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h. */
20960#include <typeinfo>
20961class Base { public : Base () {} virtual void f () = 0;};
20962class Derived : public Base { public : Derived () {} virtual void f () {} };
20963class Unrelated { public : Unrelated () {} };
20964int g (Unrelated&) { return 0; }
20965int
20966main ()
20967{
20968
20969Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20970 ;
20971 return 0;
20972}
20973_ACEOF
20974rm -f conftest.$ac_objext
20975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
07158944 20983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_cxx_reinterpret_cast=yes
20996else
20997 echo "$as_me: failed program was:" >&5
20998sed 's/^/| /' conftest.$ac_ext >&5
20999
21000ac_cv_cxx_reinterpret_cast=no
21001fi
21002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21003 ac_ext=c
21004ac_cpp='$CPP $CPPFLAGS'
21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010fi
21011echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21012echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21013if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21014
21015cat >>confdefs.h <<\_ACEOF
21016#define HAVE_REINTERPRET_CAST
21017_ACEOF
21018
21019fi
21020
a848cd7e
SC
21021echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21022echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21023if test "${ac_cv_cxx_static_cast+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025else
21026
21027
21028 ac_ext=cc
21029ac_cpp='$CXXCPP $CPPFLAGS'
21030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21033
21034 cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h. */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h. */
21040#include <typeinfo>
21041class Base { public : Base () {} virtual void f () = 0; };
21042class Derived : public Base { public : Derived () {} virtual void f () {} };
21043int g (Derived&) { return 0; }
21044int
21045main ()
21046{
21047
21048Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053rm -f conftest.$ac_objext
21054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21055 (eval $ac_compile) 2>conftest.er1
a848cd7e 21056 ac_status=$?
ac1cb8d3
VS
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
a848cd7e
SC
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
07158944 21062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; } &&
21068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_cxx_static_cast=yes
21075else
21076 echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
21078
21079ac_cv_cxx_static_cast=no
21080fi
ac1cb8d3 21081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21082 ac_ext=c
21083ac_cpp='$CPP $CPPFLAGS'
21084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088
21089fi
21090echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21091echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21092if test "$ac_cv_cxx_static_cast" = yes; then
21093
21094cat >>confdefs.h <<\_ACEOF
21095#define HAVE_STATIC_CAST
21096_ACEOF
21097
21098fi
21099
21100
21101if test "$wxUSE_STL" = "yes"; then
21102 ac_ext=cc
21103ac_cpp='$CXXCPP $CPPFLAGS'
21104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21107
21108
21109 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21110echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21111 cat >conftest.$ac_ext <<_ACEOF
21112/* confdefs.h. */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
21116/* end confdefs.h. */
21117#include <string>
21118 #include <functional>
21119 #include <algorithm>
21120 #include <vector>
21121 #include <list>
21122int
21123main ()
21124{
21125std::vector<int> moo;
21126 std::list<int> foo;
21127 std::vector<int>::iterator it =
21128 std::find_if(moo.begin(), moo.end(),
21129 std::bind2nd(std::less<int>(), 3));
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21136 (eval $ac_compile) 2>conftest.er1
a848cd7e 21137 ac_status=$?
ac1cb8d3
VS
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
a848cd7e
SC
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
07158944 21143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 echo "$as_me:$LINENO: result: yes" >&5
21156echo "${ECHO_T}yes" >&6
21157else
21158 echo "$as_me: failed program was:" >&5
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
21161echo "$as_me:$LINENO: result: no" >&5
21162echo "${ECHO_T}no" >&6
21163 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21164echo "$as_me: error: Basic STL functionality missing" >&2;}
21165 { (exit 1); exit 1; }; }
21166fi
ac1cb8d3 21167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21168
21169 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21170echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21171 cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177#include <string>
21178int
21179main ()
21180{
21181std::wstring foo;
21182 ;
21183 return 0;
21184}
21185_ACEOF
21186rm -f conftest.$ac_objext
21187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21188 (eval $ac_compile) 2>conftest.er1
a848cd7e 21189 ac_status=$?
ac1cb8d3
VS
21190 grep -v '^ *+' conftest.er1 >conftest.err
21191 rm -f conftest.er1
21192 cat conftest.err >&5
a848cd7e
SC
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } &&
07158944 21195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 echo "$as_me:$LINENO: result: yes" >&5
21208echo "${ECHO_T}yes" >&6
21209 cat >>confdefs.h <<\_ACEOF
21210#define HAVE_STD_WSTRING 1
21211_ACEOF
21212
21213else
21214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217echo "$as_me:$LINENO: result: no" >&5
21218echo "${ECHO_T}no" >&6
21219fi
ac1cb8d3 21220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21221
21222 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21223echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21224 cat >conftest.$ac_ext <<_ACEOF
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
21230#include <string>
21231int
21232main ()
21233{
21234std::string foo, bar;
21235 foo.compare(bar);
21236 foo.compare(1, 1, bar);
21237 foo.compare(1, 1, bar, 1, 1);
21238 foo.compare("");
21239 foo.compare(1, 1, "");
21240 foo.compare(1, 1, "", 2);
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext
21246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21247 (eval $ac_compile) 2>conftest.er1
a848cd7e 21248 ac_status=$?
ac1cb8d3
VS
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
a848cd7e
SC
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
07158944 21254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; } &&
21260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; }; then
21266 echo "$as_me:$LINENO: result: yes" >&5
21267echo "${ECHO_T}yes" >&6
21268 cat >>confdefs.h <<\_ACEOF
21269#define HAVE_STD_STRING_COMPARE 1
21270_ACEOF
21271
21272else
21273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276echo "$as_me:$LINENO: result: no" >&5
21277echo "${ECHO_T}no" >&6
21278fi
ac1cb8d3 21279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21280
21281 if test "${ac_cv_header_hash_map+set}" = set; then
21282 echo "$as_me:$LINENO: checking for hash_map" >&5
21283echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21284if test "${ac_cv_header_hash_map+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286fi
21287echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21288echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21289else
21290 # Is the header compilable?
21291echo "$as_me:$LINENO: checking hash_map usability" >&5
21292echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21293cat >conftest.$ac_ext <<_ACEOF
21294/* confdefs.h. */
21295_ACEOF
21296cat confdefs.h >>conftest.$ac_ext
21297cat >>conftest.$ac_ext <<_ACEOF
21298/* end confdefs.h. */
21299$ac_includes_default
21300#include <hash_map>
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21304 (eval $ac_compile) 2>conftest.er1
bdcade0a 21305 ac_status=$?
ac1cb8d3
VS
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
bdcade0a
MB
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
07158944 21311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_header_compiler=yes
21324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
21328ac_header_compiler=no
21329fi
ac1cb8d3 21330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21332echo "${ECHO_T}$ac_header_compiler" >&6
21333
21334# Is the header present?
21335echo "$as_me:$LINENO: checking hash_map presence" >&5
21336echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21337cat >conftest.$ac_ext <<_ACEOF
21338/* confdefs.h. */
21339_ACEOF
21340cat confdefs.h >>conftest.$ac_ext
21341cat >>conftest.$ac_ext <<_ACEOF
21342/* end confdefs.h. */
21343#include <hash_map>
21344_ACEOF
21345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } >/dev/null; then
21353 if test -s conftest.err; then
21354 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21355 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21356 else
21357 ac_cpp_err=
21358 fi
21359else
21360 ac_cpp_err=yes
21361fi
21362if test -z "$ac_cpp_err"; then
21363 ac_header_preproc=yes
21364else
21365 echo "$as_me: failed program was:" >&5
21366sed 's/^/| /' conftest.$ac_ext >&5
21367
21368 ac_header_preproc=no
21369fi
21370rm -f conftest.err conftest.$ac_ext
21371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21372echo "${ECHO_T}$ac_header_preproc" >&6
21373
21374# So? What about this header?
ac1cb8d3
VS
21375case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21376 yes:no: )
bdcade0a
MB
21377 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21378echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21379 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21380echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21381 ac_header_preproc=yes
bdcade0a 21382 ;;
ac1cb8d3 21383 no:yes:* )
bdcade0a
MB
21384 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21385echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21386 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21387echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21389echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21391echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21392 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21393echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21394 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21395echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21396 (
21397 cat <<\_ASBOX
ac1cb8d3
VS
21398## ----------------------------------------- ##
21399## Report this to wx-dev@lists.wxwidgets.org ##
21400## ----------------------------------------- ##
bdcade0a
MB
21401_ASBOX
21402 ) |
21403 sed "s/^/$as_me: WARNING: /" >&2
21404 ;;
21405esac
21406echo "$as_me:$LINENO: checking for hash_map" >&5
21407echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21408if test "${ac_cv_header_hash_map+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21410else
21411 ac_cv_header_hash_map=$ac_header_preproc
21412fi
21413echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21414echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21415
21416fi
21417if test $ac_cv_header_hash_map = yes; then
21418 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21419echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21420 cat >conftest.$ac_ext <<_ACEOF
21421/* confdefs.h. */
21422_ACEOF
21423cat confdefs.h >>conftest.$ac_ext
21424cat >>conftest.$ac_ext <<_ACEOF
21425/* end confdefs.h. */
21426#include <hash_map>
21427 #include <hash_set>
21428int
21429main ()
21430{
21431std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21432 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21433 ;
21434 return 0;
21435}
21436_ACEOF
21437rm -f conftest.$ac_objext
21438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21439 (eval $ac_compile) 2>conftest.er1
bdcade0a 21440 ac_status=$?
ac1cb8d3
VS
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
bdcade0a
MB
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
07158944 21446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; } &&
21452 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
21458 echo "$as_me:$LINENO: result: yes" >&5
21459echo "${ECHO_T}yes" >&6
21460 cat >>confdefs.h <<\_ACEOF
21461#define HAVE_HASH_MAP 1
21462_ACEOF
21463
21464 cat >>confdefs.h <<\_ACEOF
21465#define HAVE_STD_HASH_MAP 1
21466_ACEOF
21467
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472echo "$as_me:$LINENO: result: no" >&5
21473echo "${ECHO_T}no" >&6
21474fi
ac1cb8d3 21475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21476
21477fi
21478
21479
21480
21481 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21482 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21483echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21484if test "${ac_cv_header_ext_hash_map+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486fi
21487echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21488echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21489else
21490 # Is the header compilable?
21491echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21492echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21493cat >conftest.$ac_ext <<_ACEOF
21494/* confdefs.h. */
21495_ACEOF
21496cat confdefs.h >>conftest.$ac_ext
21497cat >>conftest.$ac_ext <<_ACEOF
21498/* end confdefs.h. */
21499$ac_includes_default
21500#include <ext/hash_map>
21501_ACEOF
21502rm -f conftest.$ac_objext
21503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21504 (eval $ac_compile) 2>conftest.er1
bdcade0a 21505 ac_status=$?
ac1cb8d3
VS
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
bdcade0a
MB
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
07158944 21511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_header_compiler=yes
21524else
21525 echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
21528ac_header_compiler=no
21529fi
ac1cb8d3 21530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21532echo "${ECHO_T}$ac_header_compiler" >&6
21533
21534# Is the header present?
21535echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21536echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21537cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h. */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h. */
21543#include <ext/hash_map>
21544_ACEOF
21545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } >/dev/null; then
21553 if test -s conftest.err; then
21554 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21556 else
21557 ac_cpp_err=
21558 fi
21559else
21560 ac_cpp_err=yes
21561fi
21562if test -z "$ac_cpp_err"; then
21563 ac_header_preproc=yes
21564else
21565 echo "$as_me: failed program was:" >&5
21566sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 ac_header_preproc=no
21569fi
21570rm -f conftest.err conftest.$ac_ext
21571echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21572echo "${ECHO_T}$ac_header_preproc" >&6
21573
21574# So? What about this header?
ac1cb8d3
VS
21575case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21576 yes:no: )
bdcade0a
MB
21577 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21578echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21579 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21580echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21581 ac_header_preproc=yes
bdcade0a 21582 ;;
ac1cb8d3 21583 no:yes:* )
bdcade0a
MB
21584 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21585echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21586 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21587echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21589echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21591echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21592 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21593echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21594 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21595echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21596 (
21597 cat <<\_ASBOX
ac1cb8d3
VS
21598## ----------------------------------------- ##
21599## Report this to wx-dev@lists.wxwidgets.org ##
21600## ----------------------------------------- ##
bdcade0a
MB
21601_ASBOX
21602 ) |
21603 sed "s/^/$as_me: WARNING: /" >&2
21604 ;;
21605esac
21606echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21607echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21608if test "${ac_cv_header_ext_hash_map+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610else
21611 ac_cv_header_ext_hash_map=$ac_header_preproc
21612fi
21613echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21614echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21615
21616fi
21617if test $ac_cv_header_ext_hash_map = yes; then
21618 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21619echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21620 cat >conftest.$ac_ext <<_ACEOF
21621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
21626#include <ext/hash_map>
21627 #include <ext/hash_set>
21628int
21629main ()
21630{
21631__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21632 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21639 (eval $ac_compile) 2>conftest.er1
bdcade0a 21640 ac_status=$?
ac1cb8d3
VS
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
bdcade0a
MB
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
07158944 21646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 echo "$as_me:$LINENO: result: yes" >&5
21659echo "${ECHO_T}yes" >&6
21660 cat >>confdefs.h <<\_ACEOF
21661#define HAVE_EXT_HASH_MAP 1
21662_ACEOF
21663
21664 cat >>confdefs.h <<\_ACEOF
21665#define HAVE_GNU_CXX_HASH_MAP 1
21666_ACEOF
21667
21668else
21669 echo "$as_me: failed program was:" >&5
21670sed 's/^/| /' conftest.$ac_ext >&5
21671
21672echo "$as_me:$LINENO: result: no" >&5
21673echo "${ECHO_T}no" >&6
21674fi
ac1cb8d3 21675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21676
21677fi
21678
21679
a848cd7e
SC
21680
21681 ac_ext=c
21682ac_cpp='$CPP $CPPFLAGS'
21683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21685ac_compiler_gnu=$ac_cv_c_compiler_gnu
21686
21687fi
21688
21689
21690SEARCH_INCLUDE="\
21691 /usr/local/include \
21692 \
21693 /usr/Motif-2.1/include \
21694 /usr/Motif-1.2/include \
21695 /usr/include/Motif1.2 \
21696 /opt/xpm/include/X11 \
21697 /opt/GBxpm/include/ \
21698 /opt/GBxpm/X11/include/ \
21699 \
21700 /usr/dt/include \
21701 /usr/openwin/include \
21702 \
21703 /usr/include/Xm \
21704 \
21705 /usr/X11R6/include \
21706 /usr/X11R6.4/include \
21707 /usr/X11R5/include \
21708 /usr/X11R4/include \
21709 \
21710 /usr/include/X11R6 \
21711 /usr/include/X11R5 \
21712 /usr/include/X11R4 \
21713 \
21714 /usr/local/X11R6/include \
21715 /usr/local/X11R5/include \
21716 /usr/local/X11R4/include \
21717 \
21718 /usr/local/include/X11R6 \
21719 /usr/local/include/X11R5 \
21720 /usr/local/include/X11R4 \
21721 \
21722 /usr/X11/include \
21723 /usr/include/X11 \
21724 /usr/local/X11/include \
21725 /usr/local/include/X11 \
21726 \
21727 /usr/X386/include \
21728 /usr/x386/include \
21729 /usr/XFree86/include/X11 \
21730 \
21731 X:/XFree86/include \
21732 X:/XFree86/include/X11 \
21733 \
21734 /usr/include/gtk \
21735 /usr/local/include/gtk \
21736 /usr/include/glib \
21737 /usr/local/include/glib \
21738 \
21739 /usr/include/qt \
21740 /usr/local/include/qt \
21741 \
21742 /usr/local/arm/3.3.2/include \
21743 \
21744 /usr/include/windows \
21745 /usr/include/wine \
21746 /usr/local/include/wine \
21747 \
21748 /usr/unsupported/include \
21749 /usr/athena/include \
21750 /usr/local/x11r5/include \
21751 /usr/lpp/Xamples/include \
21752 \
21753 /usr/openwin/share/include"
21754
07158944 21755SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21756
21757
21758cat >confcache <<\_ACEOF
21759# This file is a shell script that caches the results of configure
21760# tests run on this system so they can be shared between configure
21761# scripts and configure runs, see configure's option --config-cache.
21762# It is not useful on other systems. If it contains results you don't
21763# want to keep, you may remove or edit it.
21764#
21765# config.status only pays attention to the cache file if you give it
21766# the --recheck option to rerun configure.
21767#
21768# `ac_cv_env_foo' variables (set or unset) will be overridden when
21769# loading this file, other *unset* `ac_cv_foo' will be assigned the
21770# following values.
21771
21772_ACEOF
21773
21774# The following way of writing the cache mishandles newlines in values,
21775# but we know of no workaround that is simple, portable, and efficient.
21776# So, don't put newlines in cache variables' values.
21777# Ultrix sh set writes to stderr and can't be redirected directly,
21778# and sets the high bit in the cache file unless we assign to the vars.
21779{
21780 (set) 2>&1 |
21781 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21782 *ac_space=\ *)
21783 # `set' does not quote correctly, so add quotes (double-quote
21784 # substitution turns \\\\ into \\, and sed turns \\ into \).
21785 sed -n \
ac1cb8d3
VS
21786 "s/'/'\\\\''/g;
21787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21788 ;;
21789 *)
21790 # `set' quotes correctly as required by POSIX, so do not add quotes.
21791 sed -n \
ac1cb8d3 21792 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21793 ;;
21794 esac;
21795} |
21796 sed '
21797 t clear
21798 : clear
21799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21800 t end
21801 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21802 : end' >>confcache
21803if diff $cache_file confcache >/dev/null 2>&1; then :; else
21804 if test -w $cache_file; then
21805 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21806 cat confcache >$cache_file
21807 else
21808 echo "not updating unwritable cache $cache_file"
21809 fi
21810fi
21811rm -f confcache
21812
21813if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21814 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21815echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21816if test "${wx_cv_lib_glibc21+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819
21820 cat >conftest.$ac_ext <<_ACEOF
21821/* confdefs.h. */
21822_ACEOF
21823cat confdefs.h >>conftest.$ac_ext
21824cat >>conftest.$ac_ext <<_ACEOF
21825/* end confdefs.h. */
21826#include <features.h>
21827int
21828main ()
21829{
21830
21831 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21832 #error not glibc2.1
21833 #endif
21834
21835 ;
21836 return 0;
21837}
21838_ACEOF
21839rm -f conftest.$ac_objext
21840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21841 (eval $ac_compile) 2>conftest.er1
a848cd7e 21842 ac_status=$?
ac1cb8d3
VS
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
a848cd7e
SC
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } &&
07158944 21848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860
21861 wx_cv_lib_glibc21=yes
21862
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867
21868 wx_cv_lib_glibc21=no
21869
21870
21871fi
ac1cb8d3 21872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21873
21874fi
21875echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21876echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21877 if test "$wx_cv_lib_glibc21" = "yes"; then
21878 cat >>confdefs.h <<\_ACEOF
21879#define wxHAVE_GLIBC2 1
21880_ACEOF
21881
21882 fi
21883fi
21884
21885if test "x$wx_cv_lib_glibc21" = "xyes"; then
21886 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21887 cat >>confdefs.h <<\_ACEOF
21888#define _GNU_SOURCE 1
21889_ACEOF
21890
21891 fi
21892fi
21893
21894
21895
21896if test "$wxUSE_REGEX" != "no"; then
21897 cat >>confdefs.h <<\_ACEOF
21898#define wxUSE_REGEX 1
21899_ACEOF
21900
21901
21902 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21903 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21904echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21905 wxUSE_REGEX=builtin
21906 fi
21907
21908 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21909 if test "${ac_cv_header_regex_h+set}" = set; then
21910 echo "$as_me:$LINENO: checking for regex.h" >&5
21911echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21912if test "${ac_cv_header_regex_h+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21914fi
21915echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21916echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21917else
21918 # Is the header compilable?
21919echo "$as_me:$LINENO: checking regex.h usability" >&5
21920echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21921cat >conftest.$ac_ext <<_ACEOF
21922/* confdefs.h. */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h. */
21927$ac_includes_default
21928#include <regex.h>
21929_ACEOF
21930rm -f conftest.$ac_objext
21931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21932 (eval $ac_compile) 2>conftest.er1
a848cd7e 21933 ac_status=$?
ac1cb8d3
VS
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
a848cd7e
SC
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } &&
07158944 21939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21942 ac_status=$?
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; } &&
21945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; }; then
21951 ac_header_compiler=yes
21952else
21953 echo "$as_me: failed program was:" >&5
21954sed 's/^/| /' conftest.$ac_ext >&5
21955
21956ac_header_compiler=no
21957fi
ac1cb8d3 21958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21960echo "${ECHO_T}$ac_header_compiler" >&6
21961
21962# Is the header present?
21963echo "$as_me:$LINENO: checking regex.h presence" >&5
21964echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21965cat >conftest.$ac_ext <<_ACEOF
21966/* confdefs.h. */
21967_ACEOF
21968cat confdefs.h >>conftest.$ac_ext
21969cat >>conftest.$ac_ext <<_ACEOF
21970/* end confdefs.h. */
21971#include <regex.h>
21972_ACEOF
21973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21975 ac_status=$?
21976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } >/dev/null; then
21981 if test -s conftest.err; then
21982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21984 else
21985 ac_cpp_err=
21986 fi
21987else
21988 ac_cpp_err=yes
21989fi
21990if test -z "$ac_cpp_err"; then
21991 ac_header_preproc=yes
21992else
21993 echo "$as_me: failed program was:" >&5
21994sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ac_header_preproc=no
21997fi
21998rm -f conftest.err conftest.$ac_ext
21999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22000echo "${ECHO_T}$ac_header_preproc" >&6
22001
22002# So? What about this header?
ac1cb8d3
VS
22003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22004 yes:no: )
a848cd7e
SC
22005 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22006echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22007 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22008echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22009 ac_header_preproc=yes
a848cd7e 22010 ;;
ac1cb8d3 22011 no:yes:* )
a848cd7e
SC
22012 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22013echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22014 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22015echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22017echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22019echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22020 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22021echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22022 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22023echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22024 (
22025 cat <<\_ASBOX
ac1cb8d3
VS
22026## ----------------------------------------- ##
22027## Report this to wx-dev@lists.wxwidgets.org ##
22028## ----------------------------------------- ##
a848cd7e
SC
22029_ASBOX
22030 ) |
22031 sed "s/^/$as_me: WARNING: /" >&2
22032 ;;
22033esac
22034echo "$as_me:$LINENO: checking for regex.h" >&5
22035echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22036if test "${ac_cv_header_regex_h+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039 ac_cv_header_regex_h=$ac_header_preproc
22040fi
22041echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22042echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22043
22044fi
22045if test $ac_cv_header_regex_h = yes; then
22046
22047for ac_func in regcomp
22048do
22049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050echo "$as_me:$LINENO: checking for $ac_func" >&5
22051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22052if eval "test \"\${$as_ac_var+set}\" = set"; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054else
22055 cat >conftest.$ac_ext <<_ACEOF
22056/* confdefs.h. */
22057_ACEOF
22058cat confdefs.h >>conftest.$ac_ext
22059cat >>conftest.$ac_ext <<_ACEOF
22060/* end confdefs.h. */
ac1cb8d3
VS
22061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22063#define $ac_func innocuous_$ac_func
22064
a848cd7e
SC
22065/* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func (); below.
22067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22069
a848cd7e
SC
22070#ifdef __STDC__
22071# include <limits.h>
22072#else
22073# include <assert.h>
22074#endif
ac1cb8d3
VS
22075
22076#undef $ac_func
22077
a848cd7e
SC
22078/* Override any gcc2 internal prototype to avoid an error. */
22079#ifdef __cplusplus
22080extern "C"
22081{
22082#endif
22083/* We use char because int might match the return type of a gcc2
22084 builtin and then its argument prototype would still apply. */
22085char $ac_func ();
22086/* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22090choke me
22091#else
22092char (*f) () = $ac_func;
22093#endif
22094#ifdef __cplusplus
22095}
22096#endif
22097
22098int
22099main ()
22100{
22101return f != $ac_func;
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext conftest$ac_exeext
22107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22108 (eval $ac_link) 2>conftest.er1
a848cd7e 22109 ac_status=$?
ac1cb8d3
VS
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
a848cd7e
SC
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
07158944 22115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 eval "$as_ac_var=yes"
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132eval "$as_ac_var=no"
22133fi
ac1cb8d3
VS
22134rm -f conftest.err conftest.$ac_objext \
22135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22136fi
22137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22139if test `eval echo '${'$as_ac_var'}'` = yes; then
22140 cat >>confdefs.h <<_ACEOF
22141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22142_ACEOF
22143
22144fi
22145done
22146
22147fi
22148
22149
22150
22151 if test "x$ac_cv_func_regcomp" != "xyes"; then
22152 if test "$wxUSE_REGEX" = "sys" ; then
22153 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22154echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22155 { (exit 1); exit 1; }; }
22156 else
22157 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22158echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22159 wxUSE_REGEX=builtin
22160 fi
22161 else
22162 wxUSE_REGEX=sys
22163 cat >>confdefs.h <<\_ACEOF
22164#define WX_NO_REGEX_ADVANCED 1
22165_ACEOF
22166
22167 fi
22168 fi
22169fi
22170
22171
22172ZLIB_LINK=
22173if test "$wxUSE_ZLIB" != "no" ; then
22174 cat >>confdefs.h <<\_ACEOF
22175#define wxUSE_ZLIB 1
22176_ACEOF
22177
22178
22179 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22180 if test "$USE_DARWIN" = 1; then
22181 system_zlib_h_ok="yes"
22182 else
22183 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22184echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22185if test "${ac_cv_header_zlib_h+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187else
22188 if test "$cross_compiling" = yes; then
22189 unset ac_cv_header_zlib_h
22190
22191else
22192 cat >conftest.$ac_ext <<_ACEOF
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198
22199 #include <zlib.h>
22200 #include <stdio.h>
22201
22202 int main()
22203 {
22204 FILE *f=fopen("conftestval", "w");
22205 if (!f) exit(1);
22206 fprintf(f, "%s",
22207 ZLIB_VERSION[0] == '1' &&
22208 (ZLIB_VERSION[2] > '1' ||
22209 (ZLIB_VERSION[2] == '1' &&
22210 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22211 exit(0);
22212 }
22213
22214_ACEOF
22215rm -f conftest$ac_exeext
22216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22217 (eval $ac_link) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_cv_header_zlib_h=`cat conftestval`
22227else
22228 echo "$as_me: program exited with status $ac_status" >&5
22229echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232( exit $ac_status )
22233ac_cv_header_zlib_h=no
22234fi
ac1cb8d3 22235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22236fi
22237
22238fi
22239echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22240echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22241 if test "${ac_cv_header_zlib_h+set}" = set; then
22242 echo "$as_me:$LINENO: checking for zlib.h" >&5
22243echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22244if test "${ac_cv_header_zlib_h+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246fi
22247echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22248echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22249else
22250 # Is the header compilable?
22251echo "$as_me:$LINENO: checking zlib.h usability" >&5
22252echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22253cat >conftest.$ac_ext <<_ACEOF
22254/* confdefs.h. */
22255_ACEOF
22256cat confdefs.h >>conftest.$ac_ext
22257cat >>conftest.$ac_ext <<_ACEOF
22258/* end confdefs.h. */
22259$ac_includes_default
22260#include <zlib.h>
22261_ACEOF
22262rm -f conftest.$ac_objext
22263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22264 (eval $ac_compile) 2>conftest.er1
a848cd7e 22265 ac_status=$?
ac1cb8d3
VS
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
a848cd7e
SC
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
07158944 22271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }; then
22283 ac_header_compiler=yes
22284else
22285 echo "$as_me: failed program was:" >&5
22286sed 's/^/| /' conftest.$ac_ext >&5
22287
22288ac_header_compiler=no
22289fi
ac1cb8d3 22290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22292echo "${ECHO_T}$ac_header_compiler" >&6
22293
22294# Is the header present?
22295echo "$as_me:$LINENO: checking zlib.h presence" >&5
22296echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22297cat >conftest.$ac_ext <<_ACEOF
22298/* confdefs.h. */
22299_ACEOF
22300cat confdefs.h >>conftest.$ac_ext
22301cat >>conftest.$ac_ext <<_ACEOF
22302/* end confdefs.h. */
22303#include <zlib.h>
22304_ACEOF
22305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22307 ac_status=$?
22308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } >/dev/null; then
22313 if test -s conftest.err; then
22314 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22316 else
22317 ac_cpp_err=
22318 fi
22319else
22320 ac_cpp_err=yes
22321fi
22322if test -z "$ac_cpp_err"; then
22323 ac_header_preproc=yes
22324else
22325 echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328 ac_header_preproc=no
22329fi
22330rm -f conftest.err conftest.$ac_ext
22331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22332echo "${ECHO_T}$ac_header_preproc" >&6
22333
22334# So? What about this header?
ac1cb8d3
VS
22335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22336 yes:no: )
a848cd7e
SC
22337 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22338echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22339 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22340echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22341 ac_header_preproc=yes
a848cd7e 22342 ;;
ac1cb8d3 22343 no:yes:* )
a848cd7e
SC
22344 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22345echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22346 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22347echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22349echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22350 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22351echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22352 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22353echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22354 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22355echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22356 (
22357 cat <<\_ASBOX
ac1cb8d3
VS
22358## ----------------------------------------- ##
22359## Report this to wx-dev@lists.wxwidgets.org ##
22360## ----------------------------------------- ##
a848cd7e
SC
22361_ASBOX
22362 ) |
22363 sed "s/^/$as_me: WARNING: /" >&2
22364 ;;
22365esac
22366echo "$as_me:$LINENO: checking for zlib.h" >&5
22367echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22368if test "${ac_cv_header_zlib_h+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370else
22371 ac_cv_header_zlib_h=$ac_header_preproc
22372fi
22373echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22374echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22375
22376fi
22377
22378
22379
22380 system_zlib_h_ok=$ac_cv_header_zlib_h
22381 fi
22382
22383 if test "$system_zlib_h_ok" = "yes"; then
22384 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22385echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22386if test "${ac_cv_lib_z_deflate+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388else
22389 ac_check_lib_save_LIBS=$LIBS
22390LIBS="-lz $LIBS"
22391cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h. */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h. */
22397
22398/* Override any gcc2 internal prototype to avoid an error. */
22399#ifdef __cplusplus
22400extern "C"
22401#endif
22402/* We use char because int might match the return type of a gcc2
22403 builtin and then its argument prototype would still apply. */
22404char deflate ();
22405int
22406main ()
22407{
22408deflate ();
22409 ;
22410 return 0;
22411}
22412_ACEOF
22413rm -f conftest.$ac_objext conftest$ac_exeext
22414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22415 (eval $ac_link) 2>conftest.er1
a848cd7e 22416 ac_status=$?
ac1cb8d3
VS
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
a848cd7e
SC
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
07158944 22422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 ac_cv_lib_z_deflate=yes
22435else
22436 echo "$as_me: failed program was:" >&5
22437sed 's/^/| /' conftest.$ac_ext >&5
22438
22439ac_cv_lib_z_deflate=no
22440fi
ac1cb8d3
VS
22441rm -f conftest.err conftest.$ac_objext \
22442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22443LIBS=$ac_check_lib_save_LIBS
22444fi
22445echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22446echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22447if test $ac_cv_lib_z_deflate = yes; then
22448 ZLIB_LINK=" -lz"
22449fi
22450
22451 fi
22452
22453 if test "x$ZLIB_LINK" = "x" ; then
22454 if test "$wxUSE_ZLIB" = "sys" ; then
22455 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22456echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22457 { (exit 1); exit 1; }; }
22458 else
22459 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22460echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22461 wxUSE_ZLIB=builtin
22462 fi
22463 else
22464 wxUSE_ZLIB=sys
22465 fi
22466 fi
22467fi
22468
22469
22470PNG_LINK=
22471if test "$wxUSE_LIBPNG" != "no" ; then
22472 cat >>confdefs.h <<\_ACEOF
22473#define wxUSE_LIBPNG 1
22474_ACEOF
22475
22476
22477 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22478 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22479echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22480 wxUSE_LIBPNG=sys
22481 fi
22482
22483 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22484 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22485echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22486 wxUSE_LIBPNG=builtin
22487 fi
22488
22489 if test "$wxUSE_MGL" != 1 ; then
22490 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22491 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22492echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22493if test "${ac_cv_header_png_h+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495else
22496 if test "$cross_compiling" = yes; then
22497 unset ac_cv_header_png_h
22498
22499else
22500 cat >conftest.$ac_ext <<_ACEOF
22501/* confdefs.h. */
22502_ACEOF
22503cat confdefs.h >>conftest.$ac_ext
22504cat >>conftest.$ac_ext <<_ACEOF
22505/* end confdefs.h. */
22506
22507 #include <png.h>
22508 #include <stdio.h>
22509
22510 int main()
22511 {
22512 FILE *f=fopen("conftestval", "w");
22513 if (!f) exit(1);
22514 fprintf(f, "%s",
22515 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22516 exit(0);
22517 }
22518
22519_ACEOF
22520rm -f conftest$ac_exeext
22521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22522 (eval $ac_link) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22531 ac_cv_header_png_h=`cat conftestval`
22532else
22533 echo "$as_me: program exited with status $ac_status" >&5
22534echo "$as_me: failed program was:" >&5
22535sed 's/^/| /' conftest.$ac_ext >&5
22536
22537( exit $ac_status )
22538ac_cv_header_png_h=no
22539fi
ac1cb8d3 22540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22541fi
22542
22543fi
22544echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22545echo "${ECHO_T}$ac_cv_header_png_h" >&6
22546 if test "${ac_cv_header_png_h+set}" = set; then
22547 echo "$as_me:$LINENO: checking for png.h" >&5
22548echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22549if test "${ac_cv_header_png_h+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551fi
22552echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22553echo "${ECHO_T}$ac_cv_header_png_h" >&6
22554else
22555 # Is the header compilable?
22556echo "$as_me:$LINENO: checking png.h usability" >&5
22557echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22558cat >conftest.$ac_ext <<_ACEOF
22559/* confdefs.h. */
22560_ACEOF
22561cat confdefs.h >>conftest.$ac_ext
22562cat >>conftest.$ac_ext <<_ACEOF
22563/* end confdefs.h. */
22564$ac_includes_default
22565#include <png.h>
22566_ACEOF
22567rm -f conftest.$ac_objext
22568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22569 (eval $ac_compile) 2>conftest.er1
a848cd7e 22570 ac_status=$?
ac1cb8d3
VS
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
a848cd7e
SC
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
07158944 22576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_header_compiler=yes
22589else
22590 echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593ac_header_compiler=no
22594fi
ac1cb8d3 22595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22597echo "${ECHO_T}$ac_header_compiler" >&6
22598
22599# Is the header present?
22600echo "$as_me:$LINENO: checking png.h presence" >&5
22601echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22602cat >conftest.$ac_ext <<_ACEOF
22603/* confdefs.h. */
22604_ACEOF
22605cat confdefs.h >>conftest.$ac_ext
22606cat >>conftest.$ac_ext <<_ACEOF
22607/* end confdefs.h. */
22608#include <png.h>
22609_ACEOF
22610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22612 ac_status=$?
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } >/dev/null; then
22618 if test -s conftest.err; then
22619 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22621 else
22622 ac_cpp_err=
22623 fi
22624else
22625 ac_cpp_err=yes
22626fi
22627if test -z "$ac_cpp_err"; then
22628 ac_header_preproc=yes
22629else
22630 echo "$as_me: failed program was:" >&5
22631sed 's/^/| /' conftest.$ac_ext >&5
22632
22633 ac_header_preproc=no
22634fi
22635rm -f conftest.err conftest.$ac_ext
22636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22637echo "${ECHO_T}$ac_header_preproc" >&6
22638
22639# So? What about this header?
ac1cb8d3
VS
22640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22641 yes:no: )
a848cd7e
SC
22642 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22643echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22644 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22645echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22646 ac_header_preproc=yes
a848cd7e 22647 ;;
ac1cb8d3 22648 no:yes:* )
a848cd7e
SC
22649 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22650echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22651 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22652echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22654echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22656echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22657 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22658echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22659 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22660echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22661 (
22662 cat <<\_ASBOX
ac1cb8d3
VS
22663## ----------------------------------------- ##
22664## Report this to wx-dev@lists.wxwidgets.org ##
22665## ----------------------------------------- ##
a848cd7e
SC
22666_ASBOX
22667 ) |
22668 sed "s/^/$as_me: WARNING: /" >&2
22669 ;;
22670esac
22671echo "$as_me:$LINENO: checking for png.h" >&5
22672echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22673if test "${ac_cv_header_png_h+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22675else
22676 ac_cv_header_png_h=$ac_header_preproc
22677fi
22678echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22679echo "${ECHO_T}$ac_cv_header_png_h" >&6
22680
22681fi
22682
22683
22684
22685 if test "$ac_cv_header_png_h" = "yes"; then
22686 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22687echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22688if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22690else
22691 ac_check_lib_save_LIBS=$LIBS
22692LIBS="-lpng -lz -lm $LIBS"
22693cat >conftest.$ac_ext <<_ACEOF
22694/* confdefs.h. */
22695_ACEOF
22696cat confdefs.h >>conftest.$ac_ext
22697cat >>conftest.$ac_ext <<_ACEOF
22698/* end confdefs.h. */
22699
22700/* Override any gcc2 internal prototype to avoid an error. */
22701#ifdef __cplusplus
22702extern "C"
22703#endif
22704/* We use char because int might match the return type of a gcc2
22705 builtin and then its argument prototype would still apply. */
22706char png_check_sig ();
22707int
22708main ()
22709{
22710png_check_sig ();
22711 ;
22712 return 0;
22713}
22714_ACEOF
22715rm -f conftest.$ac_objext conftest$ac_exeext
22716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22717 (eval $ac_link) 2>conftest.er1
a848cd7e 22718 ac_status=$?
ac1cb8d3
VS
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
a848cd7e
SC
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
07158944 22724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; }; then
22736 ac_cv_lib_png_png_check_sig=yes
22737else
22738 echo "$as_me: failed program was:" >&5
22739sed 's/^/| /' conftest.$ac_ext >&5
22740
22741ac_cv_lib_png_png_check_sig=no
22742fi
ac1cb8d3
VS
22743rm -f conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22745LIBS=$ac_check_lib_save_LIBS
22746fi
22747echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22748echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22749if test $ac_cv_lib_png_png_check_sig = yes; then
22750 PNG_LINK=" -lpng -lz"
22751fi
22752
22753 fi
22754
22755 if test "x$PNG_LINK" = "x" ; then
22756 if test "$wxUSE_LIBPNG" = "sys" ; then
22757 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22758echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22759 { (exit 1); exit 1; }; }
22760 else
22761 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22762echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22763 wxUSE_LIBPNG=builtin
22764 fi
22765 else
22766 wxUSE_LIBPNG=sys
22767 fi
22768 fi
22769 fi
22770
22771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22772fi
22773
22774
22775JPEG_LINK=
22776if test "$wxUSE_LIBJPEG" != "no" ; then
22777 cat >>confdefs.h <<\_ACEOF
22778#define wxUSE_LIBJPEG 1
22779_ACEOF
22780
22781
22782 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22783 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22784echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22785 wxUSE_LIBJPEG=sys
22786 fi
22787
22788 if test "$wxUSE_MGL" != 1 ; then
22789 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22790 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22791echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22792 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794else
22795 cat >conftest.$ac_ext <<_ACEOF
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801
22802 #undef HAVE_STDLIB_H
22803 #include <stdio.h>
22804 #include <jpeglib.h>
22805
22806int
22807main ()
22808{
22809
22810
22811 ;
22812 return 0;
22813}
22814_ACEOF
22815rm -f conftest.$ac_objext
22816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22817 (eval $ac_compile) 2>conftest.er1
a848cd7e 22818 ac_status=$?
ac1cb8d3
VS
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
a848cd7e
SC
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } &&
07158944 22824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
22836 ac_cv_header_jpeglib_h=yes
22837else
22838 echo "$as_me: failed program was:" >&5
22839sed 's/^/| /' conftest.$ac_ext >&5
22840
22841ac_cv_header_jpeglib_h=no
22842
22843fi
ac1cb8d3 22844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22845
22846fi
22847
22848 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22849echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22850
22851 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22852 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22853echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22854if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856else
22857 ac_check_lib_save_LIBS=$LIBS
22858LIBS="-ljpeg $LIBS"
22859cat >conftest.$ac_ext <<_ACEOF
22860/* confdefs.h. */
22861_ACEOF
22862cat confdefs.h >>conftest.$ac_ext
22863cat >>conftest.$ac_ext <<_ACEOF
22864/* end confdefs.h. */
22865
22866/* Override any gcc2 internal prototype to avoid an error. */
22867#ifdef __cplusplus
22868extern "C"
22869#endif
22870/* We use char because int might match the return type of a gcc2
22871 builtin and then its argument prototype would still apply. */
22872char jpeg_read_header ();
22873int
22874main ()
22875{
22876jpeg_read_header ();
22877 ;
22878 return 0;
22879}
22880_ACEOF
22881rm -f conftest.$ac_objext conftest$ac_exeext
22882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22883 (eval $ac_link) 2>conftest.er1
a848cd7e 22884 ac_status=$?
ac1cb8d3
VS
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
a848cd7e
SC
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } &&
07158944 22890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; } &&
22896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; }; then
22902 ac_cv_lib_jpeg_jpeg_read_header=yes
22903else
22904 echo "$as_me: failed program was:" >&5
22905sed 's/^/| /' conftest.$ac_ext >&5
22906
22907ac_cv_lib_jpeg_jpeg_read_header=no
22908fi
ac1cb8d3
VS
22909rm -f conftest.err conftest.$ac_objext \
22910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22911LIBS=$ac_check_lib_save_LIBS
22912fi
22913echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22914echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22915if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22916 JPEG_LINK=" -ljpeg"
22917fi
22918
22919 fi
22920
22921 if test "x$JPEG_LINK" = "x" ; then
22922 if test "$wxUSE_LIBJPEG" = "sys" ; then
22923 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22924echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22925 { (exit 1); exit 1; }; }
22926 else
22927 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22928echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22929 wxUSE_LIBJPEG=builtin
22930 fi
22931 else
22932 wxUSE_LIBJPEG=sys
22933 fi
22934 fi
22935 fi
22936fi
22937
22938
22939TIFF_LINK=
22940TIFF_PREREQ_LINKS=-lm
22941if test "$wxUSE_LIBTIFF" != "no" ; then
22942 cat >>confdefs.h <<\_ACEOF
22943#define wxUSE_LIBTIFF 1
22944_ACEOF
22945
22946
22947 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22948 if test "$wxUSE_LIBJPEG" = "sys"; then
22949 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22950 fi
22951 if test "$wxUSE_ZLIB" = "sys"; then
22952 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22953 fi
22954 if test "${ac_cv_header_tiffio_h+set}" = set; then
22955 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22956echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22957if test "${ac_cv_header_tiffio_h+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959fi
22960echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22961echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22962else
22963 # Is the header compilable?
22964echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22965echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22966cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972$ac_includes_default
22973#include <tiffio.h>
22974_ACEOF
22975rm -f conftest.$ac_objext
22976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22977 (eval $ac_compile) 2>conftest.er1
a848cd7e 22978 ac_status=$?
ac1cb8d3
VS
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
a848cd7e
SC
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
07158944 22984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; } &&
22990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_header_compiler=yes
22997else
22998 echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001ac_header_compiler=no
23002fi
ac1cb8d3 23003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23005echo "${ECHO_T}$ac_header_compiler" >&6
23006
23007# Is the header present?
23008echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23009echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23010cat >conftest.$ac_ext <<_ACEOF
23011/* confdefs.h. */
23012_ACEOF
23013cat confdefs.h >>conftest.$ac_ext
23014cat >>conftest.$ac_ext <<_ACEOF
23015/* end confdefs.h. */
23016#include <tiffio.h>
23017_ACEOF
23018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23020 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } >/dev/null; then
23026 if test -s conftest.err; then
23027 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23029 else
23030 ac_cpp_err=
23031 fi
23032else
23033 ac_cpp_err=yes
23034fi
23035if test -z "$ac_cpp_err"; then
23036 ac_header_preproc=yes
23037else
23038 echo "$as_me: failed program was:" >&5
23039sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_header_preproc=no
23042fi
23043rm -f conftest.err conftest.$ac_ext
23044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23045echo "${ECHO_T}$ac_header_preproc" >&6
23046
23047# So? What about this header?
ac1cb8d3
VS
23048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23049 yes:no: )
a848cd7e
SC
23050 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23051echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23052 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23053echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23054 ac_header_preproc=yes
a848cd7e 23055 ;;
ac1cb8d3 23056 no:yes:* )
a848cd7e
SC
23057 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23058echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23059 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23060echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23062echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23064echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23065 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23066echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23067 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23068echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23069 (
23070 cat <<\_ASBOX
ac1cb8d3
VS
23071## ----------------------------------------- ##
23072## Report this to wx-dev@lists.wxwidgets.org ##
23073## ----------------------------------------- ##
a848cd7e
SC
23074_ASBOX
23075 ) |
23076 sed "s/^/$as_me: WARNING: /" >&2
23077 ;;
23078esac
23079echo "$as_me:$LINENO: checking for tiffio.h" >&5
23080echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23081if test "${ac_cv_header_tiffio_h+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083else
23084 ac_cv_header_tiffio_h=$ac_header_preproc
23085fi
23086echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23087echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23088
23089fi
23090if test $ac_cv_header_tiffio_h = yes; then
23091
23092 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23093echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23094if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096else
23097 ac_check_lib_save_LIBS=$LIBS
23098LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23099cat >conftest.$ac_ext <<_ACEOF
23100/* confdefs.h. */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>conftest.$ac_ext <<_ACEOF
23104/* end confdefs.h. */
23105
23106/* Override any gcc2 internal prototype to avoid an error. */
23107#ifdef __cplusplus
23108extern "C"
23109#endif
23110/* We use char because int might match the return type of a gcc2
23111 builtin and then its argument prototype would still apply. */
23112char TIFFError ();
23113int
23114main ()
23115{
23116TIFFError ();
23117 ;
23118 return 0;
23119}
23120_ACEOF
23121rm -f conftest.$ac_objext conftest$ac_exeext
23122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23123 (eval $ac_link) 2>conftest.er1
a848cd7e 23124 ac_status=$?
ac1cb8d3
VS
23125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
a848cd7e
SC
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
07158944 23130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ac_cv_lib_tiff_TIFFError=yes
23143else
23144 echo "$as_me: failed program was:" >&5
23145sed 's/^/| /' conftest.$ac_ext >&5
23146
23147ac_cv_lib_tiff_TIFFError=no
23148fi
ac1cb8d3
VS
23149rm -f conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23151LIBS=$ac_check_lib_save_LIBS
23152fi
23153echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23154echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23155if test $ac_cv_lib_tiff_TIFFError = yes; then
23156 TIFF_LINK=" -ltiff"
23157fi
23158
23159
23160
23161fi
23162
23163
23164
23165 if test "x$TIFF_LINK" = "x" ; then
23166 if test "$wxUSE_LIBTIFF" = "sys" ; then
23167 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23168echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23169 { (exit 1); exit 1; }; }
23170 else
23171 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23172echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23173 wxUSE_LIBTIFF=builtin
23174 fi
23175 else
23176 wxUSE_LIBTIFF=sys
23177 fi
23178 fi
23179fi
23180
23181
23182if test "$wxUSE_EXPAT" != "no"; then
23183 wxUSE_XML=yes
23184 cat >>confdefs.h <<\_ACEOF
23185#define wxUSE_EXPAT 1
23186_ACEOF
23187
23188 cat >>confdefs.h <<\_ACEOF
23189#define wxUSE_XML 1
23190_ACEOF
23191
23192
23193 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23194 if test "${ac_cv_header_expat_h+set}" = set; then
23195 echo "$as_me:$LINENO: checking for expat.h" >&5
23196echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23197if test "${ac_cv_header_expat_h+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23201echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23202else
23203 # Is the header compilable?
23204echo "$as_me:$LINENO: checking expat.h usability" >&5
23205echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23206cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213#include <expat.h>
23214_ACEOF
23215rm -f conftest.$ac_objext
23216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23217 (eval $ac_compile) 2>conftest.er1
a848cd7e 23218 ac_status=$?
ac1cb8d3
VS
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
a848cd7e
SC
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
07158944 23224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; } &&
23230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236 ac_header_compiler=yes
23237else
23238 echo "$as_me: failed program was:" >&5
23239sed 's/^/| /' conftest.$ac_ext >&5
23240
23241ac_header_compiler=no
23242fi
ac1cb8d3 23243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23245echo "${ECHO_T}$ac_header_compiler" >&6
23246
23247# Is the header present?
23248echo "$as_me:$LINENO: checking expat.h presence" >&5
23249echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23250cat >conftest.$ac_ext <<_ACEOF
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256#include <expat.h>
23257_ACEOF
23258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23260 ac_status=$?
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } >/dev/null; then
23266 if test -s conftest.err; then
23267 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23269 else
23270 ac_cpp_err=
23271 fi
23272else
23273 ac_cpp_err=yes
23274fi
23275if test -z "$ac_cpp_err"; then
23276 ac_header_preproc=yes
23277else
23278 echo "$as_me: failed program was:" >&5
23279sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 ac_header_preproc=no
23282fi
23283rm -f conftest.err conftest.$ac_ext
23284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23285echo "${ECHO_T}$ac_header_preproc" >&6
23286
23287# So? What about this header?
ac1cb8d3
VS
23288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23289 yes:no: )
a848cd7e
SC
23290 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23291echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23292 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23293echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23294 ac_header_preproc=yes
a848cd7e 23295 ;;
ac1cb8d3 23296 no:yes:* )
a848cd7e
SC
23297 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23298echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23299 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23300echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23302echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23304echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23305 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23306echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23307 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23308echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23309 (
23310 cat <<\_ASBOX
ac1cb8d3
VS
23311## ----------------------------------------- ##
23312## Report this to wx-dev@lists.wxwidgets.org ##
23313## ----------------------------------------- ##
a848cd7e
SC
23314_ASBOX
23315 ) |
23316 sed "s/^/$as_me: WARNING: /" >&2
23317 ;;
23318esac
23319echo "$as_me:$LINENO: checking for expat.h" >&5
23320echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23321if test "${ac_cv_header_expat_h+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323else
23324 ac_cv_header_expat_h=$ac_header_preproc
23325fi
23326echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23327echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23328
23329fi
23330if test $ac_cv_header_expat_h = yes; then
23331 found_expat_h=1
23332fi
23333
23334
23335 if test "x$found_expat_h" = "x1"; then
23336 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23337echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23338if test "${wx_cv_expat_is_not_broken+set}" = set; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23340else
23341
23342
23343
23344 ac_ext=cc
23345ac_cpp='$CXXCPP $CPPFLAGS'
23346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23349
23350 cat >conftest.$ac_ext <<_ACEOF
23351/* confdefs.h. */
23352_ACEOF
23353cat confdefs.h >>conftest.$ac_ext
23354cat >>conftest.$ac_ext <<_ACEOF
23355/* end confdefs.h. */
23356#include <expat.h>
23357int
23358main ()
23359{
23360
23361 ;
23362 return 0;
23363}
23364_ACEOF
23365rm -f conftest.$ac_objext
23366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23367 (eval $ac_compile) 2>conftest.er1
a848cd7e 23368 ac_status=$?
ac1cb8d3
VS
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
a848cd7e
SC
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } &&
07158944 23374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; } &&
23380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382 (eval $ac_try) 2>&5
23383 ac_status=$?
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); }; }; then
23386 wx_cv_expat_is_not_broken=yes
23387else
23388 echo "$as_me: failed program was:" >&5
23389sed 's/^/| /' conftest.$ac_ext >&5
23390
23391wx_cv_expat_is_not_broken=no
23392
23393fi
ac1cb8d3 23394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23395 ac_ext=c
23396ac_cpp='$CPP $CPPFLAGS'
23397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23399ac_compiler_gnu=$ac_cv_c_compiler_gnu
23400
23401
23402
23403fi
23404echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23405echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23406 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23407 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23408echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23409if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23411else
23412 ac_check_lib_save_LIBS=$LIBS
23413LIBS="-lexpat $LIBS"
23414cat >conftest.$ac_ext <<_ACEOF
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420
23421/* Override any gcc2 internal prototype to avoid an error. */
23422#ifdef __cplusplus
23423extern "C"
23424#endif
23425/* We use char because int might match the return type of a gcc2
23426 builtin and then its argument prototype would still apply. */
23427char XML_ParserCreate ();
23428int
23429main ()
23430{
23431XML_ParserCreate ();
23432 ;
23433 return 0;
23434}
23435_ACEOF
23436rm -f conftest.$ac_objext conftest$ac_exeext
23437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23438 (eval $ac_link) 2>conftest.er1
a848cd7e 23439 ac_status=$?
ac1cb8d3
VS
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
a848cd7e
SC
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } &&
07158944 23445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_lib_expat_XML_ParserCreate=yes
23458else
23459 echo "$as_me: failed program was:" >&5
23460sed 's/^/| /' conftest.$ac_ext >&5
23461
23462ac_cv_lib_expat_XML_ParserCreate=no
23463fi
ac1cb8d3
VS
23464rm -f conftest.err conftest.$ac_objext \
23465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23466LIBS=$ac_check_lib_save_LIBS
23467fi
23468echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23469echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23470if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23471 EXPAT_LINK=" -lexpat"
23472fi
23473
23474 fi
23475 fi
23476 if test "x$EXPAT_LINK" = "x" ; then
23477 if test "$wxUSE_EXPAT" = "sys" ; then
23478 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23479echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23480 { (exit 1); exit 1; }; }
23481 else
23482 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23483echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23484 wxUSE_EXPAT=builtin
23485 fi
23486 else
23487 wxUSE_EXPAT=sys
23488 fi
23489 fi
23490 if test "$wxUSE_EXPAT" = "builtin" ; then
23491
23492
23493subdirs="$subdirs src/expat"
23494
23495 fi
23496fi
23497
23498
23499
23500if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23501 if test "${ac_cv_header_mspack_h+set}" = set; then
23502 echo "$as_me:$LINENO: checking for mspack.h" >&5
23503echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23504if test "${ac_cv_header_mspack_h+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506fi
23507echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23508echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23509else
23510 # Is the header compilable?
23511echo "$as_me:$LINENO: checking mspack.h usability" >&5
23512echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519$ac_includes_default
23520#include <mspack.h>
23521_ACEOF
23522rm -f conftest.$ac_objext
23523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23524 (eval $ac_compile) 2>conftest.er1
a848cd7e 23525 ac_status=$?
ac1cb8d3
VS
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
a848cd7e
SC
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } &&
07158944 23531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } &&
23537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; }; then
23543 ac_header_compiler=yes
23544else
23545 echo "$as_me: failed program was:" >&5
23546sed 's/^/| /' conftest.$ac_ext >&5
23547
23548ac_header_compiler=no
23549fi
ac1cb8d3 23550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23552echo "${ECHO_T}$ac_header_compiler" >&6
23553
23554# Is the header present?
23555echo "$as_me:$LINENO: checking mspack.h presence" >&5
23556echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23557cat >conftest.$ac_ext <<_ACEOF
23558/* confdefs.h. */
23559_ACEOF
23560cat confdefs.h >>conftest.$ac_ext
23561cat >>conftest.$ac_ext <<_ACEOF
23562/* end confdefs.h. */
23563#include <mspack.h>
23564_ACEOF
23565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23567 ac_status=$?
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } >/dev/null; then
23573 if test -s conftest.err; then
23574 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23576 else
23577 ac_cpp_err=
23578 fi
23579else
23580 ac_cpp_err=yes
23581fi
23582if test -z "$ac_cpp_err"; then
23583 ac_header_preproc=yes
23584else
23585 echo "$as_me: failed program was:" >&5
23586sed 's/^/| /' conftest.$ac_ext >&5
23587
23588 ac_header_preproc=no
23589fi
23590rm -f conftest.err conftest.$ac_ext
23591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23592echo "${ECHO_T}$ac_header_preproc" >&6
23593
23594# So? What about this header?
ac1cb8d3
VS
23595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23596 yes:no: )
a848cd7e
SC
23597 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23598echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23599 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23600echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23601 ac_header_preproc=yes
a848cd7e 23602 ;;
ac1cb8d3 23603 no:yes:* )
a848cd7e
SC
23604 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23605echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23606 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23607echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23608 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23609echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23610 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23611echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23612 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23613echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23614 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23615echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23616 (
23617 cat <<\_ASBOX
ac1cb8d3
VS
23618## ----------------------------------------- ##
23619## Report this to wx-dev@lists.wxwidgets.org ##
23620## ----------------------------------------- ##
a848cd7e
SC
23621_ASBOX
23622 ) |
23623 sed "s/^/$as_me: WARNING: /" >&2
23624 ;;
23625esac
23626echo "$as_me:$LINENO: checking for mspack.h" >&5
23627echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23628if test "${ac_cv_header_mspack_h+set}" = set; then
23629 echo $ECHO_N "(cached) $ECHO_C" >&6
23630else
23631 ac_cv_header_mspack_h=$ac_header_preproc
23632fi
23633echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23634echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23635
23636fi
23637if test $ac_cv_header_mspack_h = yes; then
23638 found_mspack_h=1
23639fi
23640
23641
23642 if test "x$found_mspack_h" = "x1"; then
23643 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23644echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23645if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647else
23648 ac_check_lib_save_LIBS=$LIBS
23649LIBS="-lmspack $LIBS"
23650cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657/* Override any gcc2 internal prototype to avoid an error. */
23658#ifdef __cplusplus
23659extern "C"
23660#endif
23661/* We use char because int might match the return type of a gcc2
23662 builtin and then its argument prototype would still apply. */
23663char mspack_create_chm_decompressor ();
23664int
23665main ()
23666{
23667mspack_create_chm_decompressor ();
23668 ;
23669 return 0;
23670}
23671_ACEOF
23672rm -f conftest.$ac_objext conftest$ac_exeext
23673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23674 (eval $ac_link) 2>conftest.er1
a848cd7e 23675 ac_status=$?
ac1cb8d3
VS
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
a848cd7e
SC
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
07158944 23681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; } &&
23687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23694else
23695 echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23699fi
ac1cb8d3
VS
23700rm -f conftest.err conftest.$ac_objext \
23701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23702LIBS=$ac_check_lib_save_LIBS
23703fi
23704echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23705echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23706if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23707 MSPACK_LINK=" -lmspack"
23708fi
23709
23710 fi
23711 if test "x$MSPACK_LINK" = "x" ; then
23712 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23713 fi
23714fi
23715
23716if test "$wxUSE_LIBMSPACK" != "no"; then
23717 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23718#define wxUSE_LIBMSPACK 1
23719_ACEOF
23720
a848cd7e
SC
23721fi
23722
23723
23724
23725AFMINSTALL=
23726WIN32INSTALL=
23727
23728TOOLKIT=
23729TOOLKIT_INCLUDE=
23730WIDGET_SET=
23731
23732if test "$USE_WIN32" = 1 ; then
23733
23734for ac_header in w32api.h
23735do
23736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23737if eval "test \"\${$as_ac_Header+set}\" = set"; then
23738 echo "$as_me:$LINENO: checking for $ac_header" >&5
23739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23740if eval "test \"\${$as_ac_Header+set}\" = set"; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23742fi
23743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23745else
23746 # Is the header compilable?
23747echo "$as_me:$LINENO: checking $ac_header usability" >&5
23748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23749cat >conftest.$ac_ext <<_ACEOF
23750/* confdefs.h. */
23751_ACEOF
23752cat confdefs.h >>conftest.$ac_ext
23753cat >>conftest.$ac_ext <<_ACEOF
23754/* end confdefs.h. */
23755$ac_includes_default
23756#include <$ac_header>
23757_ACEOF
23758rm -f conftest.$ac_objext
23759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23760 (eval $ac_compile) 2>conftest.er1
a848cd7e 23761 ac_status=$?
ac1cb8d3
VS
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
a848cd7e
SC
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } &&
07158944 23767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; } &&
23773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 ac_header_compiler=yes
23780else
23781 echo "$as_me: failed program was:" >&5
23782sed 's/^/| /' conftest.$ac_ext >&5
23783
23784ac_header_compiler=no
23785fi
ac1cb8d3 23786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23788echo "${ECHO_T}$ac_header_compiler" >&6
23789
23790# Is the header present?
23791echo "$as_me:$LINENO: checking $ac_header presence" >&5
23792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23793cat >conftest.$ac_ext <<_ACEOF
23794/* confdefs.h. */
23795_ACEOF
23796cat confdefs.h >>conftest.$ac_ext
23797cat >>conftest.$ac_ext <<_ACEOF
23798/* end confdefs.h. */
23799#include <$ac_header>
23800_ACEOF
23801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23803 ac_status=$?
23804 grep -v '^ *+' conftest.er1 >conftest.err
23805 rm -f conftest.er1
23806 cat conftest.err >&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } >/dev/null; then
23809 if test -s conftest.err; then
23810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23812 else
23813 ac_cpp_err=
23814 fi
23815else
23816 ac_cpp_err=yes
23817fi
23818if test -z "$ac_cpp_err"; then
23819 ac_header_preproc=yes
23820else
23821 echo "$as_me: failed program was:" >&5
23822sed 's/^/| /' conftest.$ac_ext >&5
23823
23824 ac_header_preproc=no
23825fi
23826rm -f conftest.err conftest.$ac_ext
23827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23828echo "${ECHO_T}$ac_header_preproc" >&6
23829
23830# So? What about this header?
ac1cb8d3
VS
23831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23832 yes:no: )
a848cd7e
SC
23833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23837 ac_header_preproc=yes
a848cd7e 23838 ;;
ac1cb8d3 23839 no:yes:* )
a848cd7e
SC
23840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23852 (
23853 cat <<\_ASBOX
ac1cb8d3
VS
23854## ----------------------------------------- ##
23855## Report this to wx-dev@lists.wxwidgets.org ##
23856## ----------------------------------------- ##
a848cd7e
SC
23857_ASBOX
23858 ) |
23859 sed "s/^/$as_me: WARNING: /" >&2
23860 ;;
23861esac
23862echo "$as_me:$LINENO: checking for $ac_header" >&5
23863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23864if eval "test \"\${$as_ac_Header+set}\" = set"; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23866else
ac1cb8d3 23867 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23868fi
23869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23871
23872fi
23873if test `eval echo '${'$as_ac_Header'}'` = yes; then
23874 cat >>confdefs.h <<_ACEOF
23875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23876_ACEOF
23877
23878fi
23879
23880done
23881
23882 if test "${ac_cv_header_windows_h+set}" = set; then
23883 echo "$as_me:$LINENO: checking for windows.h" >&5
23884echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23885if test "${ac_cv_header_windows_h+set}" = set; then
23886 echo $ECHO_N "(cached) $ECHO_C" >&6
23887fi
23888echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23889echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23890else
23891 # Is the header compilable?
23892echo "$as_me:$LINENO: checking windows.h usability" >&5
23893echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23894cat >conftest.$ac_ext <<_ACEOF
23895/* confdefs.h. */
23896_ACEOF
23897cat confdefs.h >>conftest.$ac_ext
23898cat >>conftest.$ac_ext <<_ACEOF
23899/* end confdefs.h. */
23900$ac_includes_default
23901#include <windows.h>
23902_ACEOF
23903rm -f conftest.$ac_objext
23904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23905 (eval $ac_compile) 2>conftest.er1
a848cd7e 23906 ac_status=$?
ac1cb8d3
VS
23907 grep -v '^ *+' conftest.er1 >conftest.err
23908 rm -f conftest.er1
23909 cat conftest.err >&5
a848cd7e
SC
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } &&
07158944 23912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; } &&
23918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; }; then
23924 ac_header_compiler=yes
23925else
23926 echo "$as_me: failed program was:" >&5
23927sed 's/^/| /' conftest.$ac_ext >&5
23928
23929ac_header_compiler=no
23930fi
ac1cb8d3 23931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23933echo "${ECHO_T}$ac_header_compiler" >&6
23934
23935# Is the header present?
23936echo "$as_me:$LINENO: checking windows.h presence" >&5
23937echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23938cat >conftest.$ac_ext <<_ACEOF
23939/* confdefs.h. */
23940_ACEOF
23941cat confdefs.h >>conftest.$ac_ext
23942cat >>conftest.$ac_ext <<_ACEOF
23943/* end confdefs.h. */
23944#include <windows.h>
23945_ACEOF
23946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23948 ac_status=$?
23949 grep -v '^ *+' conftest.er1 >conftest.err
23950 rm -f conftest.er1
23951 cat conftest.err >&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } >/dev/null; then
23954 if test -s conftest.err; then
23955 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23957 else
23958 ac_cpp_err=
23959 fi
23960else
23961 ac_cpp_err=yes
23962fi
23963if test -z "$ac_cpp_err"; then
23964 ac_header_preproc=yes
23965else
23966 echo "$as_me: failed program was:" >&5
23967sed 's/^/| /' conftest.$ac_ext >&5
23968
23969 ac_header_preproc=no
23970fi
23971rm -f conftest.err conftest.$ac_ext
23972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23973echo "${ECHO_T}$ac_header_preproc" >&6
23974
23975# So? What about this header?
ac1cb8d3
VS
23976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23977 yes:no: )
a848cd7e
SC
23978 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23979echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23980 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23981echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23982 ac_header_preproc=yes
a848cd7e 23983 ;;
ac1cb8d3 23984 no:yes:* )
a848cd7e
SC
23985 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23986echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23987 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23988echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23989 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23990echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23991 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23992echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23993 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23994echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23995 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23996echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23997 (
23998 cat <<\_ASBOX
ac1cb8d3
VS
23999## ----------------------------------------- ##
24000## Report this to wx-dev@lists.wxwidgets.org ##
24001## ----------------------------------------- ##
a848cd7e
SC
24002_ASBOX
24003 ) |
24004 sed "s/^/$as_me: WARNING: /" >&2
24005 ;;
24006esac
24007echo "$as_me:$LINENO: checking for windows.h" >&5
24008echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24009if test "${ac_cv_header_windows_h+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24011else
24012 ac_cv_header_windows_h=$ac_header_preproc
24013fi
24014echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24015echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24016
24017fi
24018if test $ac_cv_header_windows_h = yes; then
24019 :
24020else
24021
24022 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24023echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24024 { (exit 1); exit 1; }; }
24025
24026fi
24027
24028
24029
24030 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24031
24032 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24033 LIBS="$LIBS -loleacc"
24034 fi
24035
24036 case "${host}" in
24037 *-*-cygwin* )
24038 LIBS="$LIBS -lkernel32 -luser32"
24039 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24040 esac
24041
24042 if test "$wxUSE_ODBC" = "sys" ; then
24043 wxUSE_ODBC = "yes"
24044 fi
24045 if test "$wxUSE_ODBC" = "yes" ; then
24046 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24047 cat >>confdefs.h <<\_ACEOF
24048#define wxUSE_ODBC 1
24049_ACEOF
24050
24051 fi
24052
24053 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24054 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24055
24056 WIN32INSTALL=win32install
24057fi
24058
24059if test "$wxUSE_GUI" = "yes"; then
24060 USE_GUI=1
24061
24062 GUI_TK_LIBRARY=
24063
24064 WXGTK12=
24065 WXGTK127=
24066 WXGTK20=
24067 WXGPE=
24068
207bc66c
RN
24069 if test "$wxUSE_COCOA" = 1 ; then
24070 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24071 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24072echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24073 wxUSE_PRINTING_ARCHITECTURE=no
24074 fi
24075 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24076 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24077echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24078 wxUSE_DRAG_AND_DROP=no
24079 fi
24080 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24081 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24082echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24083 wxUSE_DRAGIMAGE=no
24084 fi
24085 fi
24086
a848cd7e
SC
24087 if test "$wxUSE_MSW" = 1 ; then
24088 TOOLKIT=MSW
24089 GUIDIST=MSW_DIST
24090
ceec2216 24091 case "${host}" in
a848cd7e
SC
24092 *-*-mingw32* )
24093 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24094 esac
24095 fi
24096
24097 if test "$wxUSE_GTK" = 1; then
24098 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24099echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24100
24101 gtk_version_cached=1
24102 if test "${wx_cv_lib_gtk+set}" = set; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24104else
24105
24106 gtk_version_cached=0
24107 echo "$as_me:$LINENO: result: " >&5
24108echo "${ECHO_T}" >&6
24109
24110 GTK_MODULES=
24111 if test "$wxUSE_THREADS" = "yes"; then
24112 GTK_MODULES=gthread
24113 fi
24114
24115 wx_cv_lib_gtk=
24116 if test "x$wxUSE_GTK2" = "xyes"; then
24117 # Check whether --enable-gtktest or --disable-gtktest was given.
24118if test "${enable_gtktest+set}" = set; then
24119 enableval="$enable_gtktest"
24120
24121else
24122 enable_gtktest=yes
24123fi;
24124
24125 pkg_config_args=gtk+-2.0
24126 for module in . $GTK_MODULES
24127 do
24128 case "$module" in
24129 gthread)
24130 pkg_config_args="$pkg_config_args gthread-2.0"
24131 ;;
24132 esac
24133 done
24134
24135 no_gtk=""
24136
24137 # Extract the first word of "pkg-config", so it can be a program name with args.
24138set dummy pkg-config; ac_word=$2
24139echo "$as_me:$LINENO: checking for $ac_word" >&5
24140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24141if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24142 echo $ECHO_N "(cached) $ECHO_C" >&6
24143else
24144 case $PKG_CONFIG in
24145 [\\/]* | ?:[\\/]*)
24146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24147 ;;
24148 *)
24149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24150for as_dir in $PATH
24151do
24152 IFS=$as_save_IFS
24153 test -z "$as_dir" && as_dir=.
24154 for ac_exec_ext in '' $ac_executable_extensions; do
24155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24158 break 2
24159 fi
24160done
24161done
24162
24163 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24164 ;;
24165esac
24166fi
24167PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24168
24169if test -n "$PKG_CONFIG"; then
24170 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24171echo "${ECHO_T}$PKG_CONFIG" >&6
24172else
24173 echo "$as_me:$LINENO: result: no" >&5
24174echo "${ECHO_T}no" >&6
24175fi
24176
24177
24178 if test x$PKG_CONFIG != xno ; then
24179 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24180 :
24181 else
c2218763 24182 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24183 no_gtk=yes
24184 PKG_CONFIG=no
24185 fi
24186 else
24187 no_gtk=yes
24188 fi
24189
24190 min_gtk_version=2.0.0
24191 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24192echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24193
24194 if test x$PKG_CONFIG != xno ; then
24195 ## don't try to run the test against uninstalled libtool libs
24196 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24197 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24198 enable_gtktest=no
24199 fi
24200
24201 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24202 :
24203 else
24204 no_gtk=yes
24205 fi
24206 fi
24207
24208 if test x"$no_gtk" = x ; then
24209 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24210 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24211 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24213 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24215 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24217 if test "x$enable_gtktest" = "xyes" ; then
24218 ac_save_CFLAGS="$CFLAGS"
24219 ac_save_LIBS="$LIBS"
24220 CFLAGS="$CFLAGS $GTK_CFLAGS"
24221 LIBS="$GTK_LIBS $LIBS"
24222 rm -f conf.gtktest
24223 if test "$cross_compiling" = yes; then
24224 echo $ac_n "cross compiling; assumed OK... $ac_c"
24225else
24226 cat >conftest.$ac_ext <<_ACEOF
24227/* confdefs.h. */
24228_ACEOF
24229cat confdefs.h >>conftest.$ac_ext
24230cat >>conftest.$ac_ext <<_ACEOF
24231/* end confdefs.h. */
24232
24233#include <gtk/gtk.h>
24234#include <stdio.h>
24235#include <stdlib.h>
24236
24237int
24238main ()
24239{
24240 int major, minor, micro;
24241 char *tmp_version;
24242
24243 system ("touch conf.gtktest");
24244
24245 /* HP/UX 9 (%@#!) writes to sscanf strings */
24246 tmp_version = g_strdup("$min_gtk_version");
24247 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24248 printf("%s, bad version string\n", "$min_gtk_version");
24249 exit(1);
24250 }
24251
24252 if ((gtk_major_version != $gtk_config_major_version) ||
24253 (gtk_minor_version != $gtk_config_minor_version) ||
24254 (gtk_micro_version != $gtk_config_micro_version))
24255 {
24256 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24257 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24258 gtk_major_version, gtk_minor_version, gtk_micro_version);
24259 printf ("*** was found! If pkg-config was correct, then it is best\n");
24260 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24261 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24262 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24263 printf("*** required on your system.\n");
24264 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24265 printf("*** to point to the correct configuration files\n");
24266 }
24267 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24268 (gtk_minor_version != GTK_MINOR_VERSION) ||
24269 (gtk_micro_version != GTK_MICRO_VERSION))
24270 {
24271 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24272 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24273 printf("*** library (version %d.%d.%d)\n",
24274 gtk_major_version, gtk_minor_version, gtk_micro_version);
24275 }
24276 else
24277 {
24278 if ((gtk_major_version > major) ||
24279 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24280 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24281 {
24282 return 0;
24283 }
24284 else
24285 {
24286 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24287 gtk_major_version, gtk_minor_version, gtk_micro_version);
24288 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24289 major, minor, micro);
24290 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24291 printf("***\n");
24292 printf("*** If you have already installed a sufficiently new version, this error\n");
24293 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24294 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24295 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24296 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24297 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24298 printf("*** so that the correct libraries are found at run-time))\n");
24299 }
24300 }
24301 return 1;
24302}
24303
24304_ACEOF
24305rm -f conftest$ac_exeext
24306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24307 (eval $ac_link) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; }; then
24316 :
24317else
24318 echo "$as_me: program exited with status $ac_status" >&5
24319echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322( exit $ac_status )
24323no_gtk=yes
24324fi
ac1cb8d3 24325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24326fi
24327 CFLAGS="$ac_save_CFLAGS"
24328 LIBS="$ac_save_LIBS"
24329 fi
24330 fi
24331 if test "x$no_gtk" = x ; then
24332 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24333echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24334 wx_cv_lib_gtk=2.0
24335 else
24336 echo "$as_me:$LINENO: result: no" >&5
24337echo "${ECHO_T}no" >&6
24338 if test "$PKG_CONFIG" = "no" ; then
24339 echo "*** A new enough version of pkg-config was not found."
24340 echo "*** See http://pkgconfig.sourceforge.net"
24341 else
24342 if test -f conf.gtktest ; then
24343 :
24344 else
24345 echo "*** Could not run GTK+ test program, checking why..."
24346 ac_save_CFLAGS="$CFLAGS"
24347 ac_save_LIBS="$LIBS"
24348 CFLAGS="$CFLAGS $GTK_CFLAGS"
24349 LIBS="$LIBS $GTK_LIBS"
24350 cat >conftest.$ac_ext <<_ACEOF
24351/* confdefs.h. */
24352_ACEOF
24353cat confdefs.h >>conftest.$ac_ext
24354cat >>conftest.$ac_ext <<_ACEOF
24355/* end confdefs.h. */
24356
24357#include <gtk/gtk.h>
24358#include <stdio.h>
24359
24360int
24361main ()
24362{
24363 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24364 ;
24365 return 0;
24366}
24367_ACEOF
24368rm -f conftest.$ac_objext conftest$ac_exeext
24369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24370 (eval $ac_link) 2>conftest.er1
a848cd7e 24371 ac_status=$?
ac1cb8d3
VS
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
a848cd7e
SC
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } &&
07158944 24377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; } &&
24383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 echo "*** The test program compiled, but did not run. This usually means"
24390 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24391 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24392 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24393 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24394 echo "*** is required on your system"
24395 echo "***"
24396 echo "*** If you have an old version installed, it is best to remove it, although"
24397 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24398else
24399 echo "$as_me: failed program was:" >&5
24400sed 's/^/| /' conftest.$ac_ext >&5
24401
24402 echo "*** The test program failed to compile or link. See the file config.log for the"
24403 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24404fi
ac1cb8d3
VS
24405rm -f conftest.err conftest.$ac_objext \
24406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24407 CFLAGS="$ac_save_CFLAGS"
24408 LIBS="$ac_save_LIBS"
24409 fi
24410 fi
24411 GTK_CFLAGS=""
24412 GTK_LIBS=""
24413 :
24414 fi
24415
24416
24417 rm -f conf.gtktest
24418
24419 else
24420
24421# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24422if test "${with_gtk_prefix+set}" = set; then
24423 withval="$with_gtk_prefix"
24424 gtk_config_prefix="$withval"
24425else
24426 gtk_config_prefix=""
24427fi;
24428
24429# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24430if test "${with_gtk_exec_prefix+set}" = set; then
24431 withval="$with_gtk_exec_prefix"
24432 gtk_config_exec_prefix="$withval"
24433else
24434 gtk_config_exec_prefix=""
24435fi;
24436# Check whether --enable-gtktest or --disable-gtktest was given.
24437if test "${enable_gtktest+set}" = set; then
24438 enableval="$enable_gtktest"
24439
24440else
24441 enable_gtktest=yes
24442fi;
24443
24444 for module in . $GTK_MODULES
24445 do
24446 case "$module" in
24447 gthread)
24448 gtk_config_args="$gtk_config_args gthread"
24449 ;;
24450 esac
24451 done
24452
24453 if test x$gtk_config_exec_prefix != x ; then
24454 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24455 if test x${GTK_CONFIG+set} != xset ; then
24456 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24457 fi
24458 fi
24459 if test x$gtk_config_prefix != x ; then
24460 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24461 if test x${GTK_CONFIG+set} != xset ; then
24462 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24463 fi
24464 fi
24465
24466 # Extract the first word of "gtk-config", so it can be a program name with args.
24467set dummy gtk-config; ac_word=$2
24468echo "$as_me:$LINENO: checking for $ac_word" >&5
24469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24470if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24471 echo $ECHO_N "(cached) $ECHO_C" >&6
24472else
24473 case $GTK_CONFIG in
24474 [\\/]* | ?:[\\/]*)
24475 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24476 ;;
24477 *)
24478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24479for as_dir in $PATH
24480do
24481 IFS=$as_save_IFS
24482 test -z "$as_dir" && as_dir=.
24483 for ac_exec_ext in '' $ac_executable_extensions; do
24484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24485 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24487 break 2
24488 fi
24489done
24490done
24491
24492 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24493 ;;
24494esac
24495fi
24496GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24497
24498if test -n "$GTK_CONFIG"; then
24499 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24500echo "${ECHO_T}$GTK_CONFIG" >&6
24501else
24502 echo "$as_me:$LINENO: result: no" >&5
24503echo "${ECHO_T}no" >&6
24504fi
24505
24506 min_gtk_version=1.2.7
24507 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24508echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24509 no_gtk=""
24510 if test "$GTK_CONFIG" = "no" ; then
24511 no_gtk=yes
24512 else
24513 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24514 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24515 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24517 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24519 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24521 if test "x$enable_gtktest" = "xyes" ; then
24522 ac_save_CFLAGS="$CFLAGS"
24523 ac_save_LIBS="$LIBS"
24524 CFLAGS="$CFLAGS $GTK_CFLAGS"
24525 LIBS="$GTK_LIBS $LIBS"
24526 rm -f conf.gtktest
24527 if test "$cross_compiling" = yes; then
24528 echo $ac_n "cross compiling; assumed OK... $ac_c"
24529else
24530 cat >conftest.$ac_ext <<_ACEOF
24531/* confdefs.h. */
24532_ACEOF
24533cat confdefs.h >>conftest.$ac_ext
24534cat >>conftest.$ac_ext <<_ACEOF
24535/* end confdefs.h. */
24536
24537#include <gtk/gtk.h>
24538#include <stdio.h>
24539#include <stdlib.h>
24540
24541int
24542main ()
24543{
24544 int major, minor, micro;
24545 char *tmp_version;
24546
24547 system ("touch conf.gtktest");
24548
24549 /* HP/UX 9 (%@#!) writes to sscanf strings */
24550 tmp_version = g_strdup("$min_gtk_version");
24551 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24552 printf("%s, bad version string\n", "$min_gtk_version");
24553 exit(1);
24554 }
24555
24556 if ((gtk_major_version != $gtk_config_major_version) ||
24557 (gtk_minor_version != $gtk_config_minor_version) ||
24558 (gtk_micro_version != $gtk_config_micro_version))
24559 {
24560 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24561 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24562 gtk_major_version, gtk_minor_version, gtk_micro_version);
24563 printf ("*** was found! If gtk-config was correct, then it is best\n");
24564 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24565 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24566 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24567 printf("*** required on your system.\n");
24568 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24569 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24570 printf("*** before re-running configure\n");
24571 }
24572#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24573 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24574 (gtk_minor_version != GTK_MINOR_VERSION) ||
24575 (gtk_micro_version != GTK_MICRO_VERSION))
24576 {
24577 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24578 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24579 printf("*** library (version %d.%d.%d)\n",
24580 gtk_major_version, gtk_minor_version, gtk_micro_version);
24581 }
24582#endif /* defined (GTK_MAJOR_VERSION) ... */
24583 else
24584 {
24585 if ((gtk_major_version > major) ||
24586 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24587 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24588 {
24589 return 0;
24590 }
24591 else
24592 {
24593 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24594 gtk_major_version, gtk_minor_version, gtk_micro_version);
24595 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24596 major, minor, micro);
24597 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24598 printf("***\n");
24599 printf("*** If you have already installed a sufficiently new version, this error\n");
24600 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24601 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24602 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24603 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24604 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24605 printf("*** so that the correct libraries are found at run-time))\n");
24606 }
24607 }
24608 return 1;
24609}
24610
24611_ACEOF
24612rm -f conftest$ac_exeext
24613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24614 (eval $ac_link) 2>&5
24615 ac_status=$?
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
24623 :
24624else
24625 echo "$as_me: program exited with status $ac_status" >&5
24626echo "$as_me: failed program was:" >&5
24627sed 's/^/| /' conftest.$ac_ext >&5
24628
24629( exit $ac_status )
24630no_gtk=yes
24631fi
ac1cb8d3 24632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24633fi
24634 CFLAGS="$ac_save_CFLAGS"
24635 LIBS="$ac_save_LIBS"
24636 fi
24637 fi
24638 if test "x$no_gtk" = x ; then
24639 echo "$as_me:$LINENO: result: yes" >&5
24640echo "${ECHO_T}yes" >&6
24641 wx_cv_lib_gtk=1.2.7
24642 else
24643 echo "$as_me:$LINENO: result: no" >&5
24644echo "${ECHO_T}no" >&6
24645 if test "$GTK_CONFIG" = "no" ; then
24646 echo "*** The gtk-config script installed by GTK could not be found"
24647 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24648 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24649 echo "*** full path to gtk-config."
24650 else
24651 if test -f conf.gtktest ; then
24652 :
24653 else
24654 echo "*** Could not run GTK test program, checking why..."
24655 CFLAGS="$CFLAGS $GTK_CFLAGS"
24656 LIBS="$LIBS $GTK_LIBS"
24657 cat >conftest.$ac_ext <<_ACEOF
24658/* confdefs.h. */
24659_ACEOF
24660cat confdefs.h >>conftest.$ac_ext
24661cat >>conftest.$ac_ext <<_ACEOF
24662/* end confdefs.h. */
24663
24664#include <gtk/gtk.h>
24665#include <stdio.h>
24666
24667int
24668main ()
24669{
24670 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24671 ;
24672 return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext conftest$ac_exeext
24676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24677 (eval $ac_link) 2>conftest.er1
a848cd7e 24678 ac_status=$?
ac1cb8d3
VS
24679 grep -v '^ *+' conftest.er1 >conftest.err
24680 rm -f conftest.er1
24681 cat conftest.err >&5
a848cd7e
SC
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } &&
07158944 24684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; } &&
24690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 echo "*** The test program compiled, but did not run. This usually means"
24697 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24698 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24699 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24700 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24701 echo "*** is required on your system"
24702 echo "***"
24703 echo "*** If you have an old version installed, it is best to remove it, although"
24704 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24705 echo "***"
24706 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24707 echo "*** came with the system with the command"
24708 echo "***"
24709 echo "*** rpm --erase --nodeps gtk gtk-devel"
24710else
24711 echo "$as_me: failed program was:" >&5
24712sed 's/^/| /' conftest.$ac_ext >&5
24713
24714 echo "*** The test program failed to compile or link. See the file config.log for the"
24715 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24716 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24717 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24718fi
ac1cb8d3
VS
24719rm -f conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24721 CFLAGS="$ac_save_CFLAGS"
24722 LIBS="$ac_save_LIBS"
24723 fi
24724 fi
24725 GTK_CFLAGS=""
24726 GTK_LIBS=""
24727 :
24728 fi
24729
24730
24731 rm -f conf.gtktest
24732
24733
24734 if test -z "$wx_cv_lib_gtk"; then
24735
24736# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24737if test "${with_gtk_prefix+set}" = set; then
24738 withval="$with_gtk_prefix"
24739 gtk_config_prefix="$withval"
24740else
24741 gtk_config_prefix=""
24742fi;
24743
24744# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24745if test "${with_gtk_exec_prefix+set}" = set; then
24746 withval="$with_gtk_exec_prefix"
24747 gtk_config_exec_prefix="$withval"
24748else
24749 gtk_config_exec_prefix=""
24750fi;
24751# Check whether --enable-gtktest or --disable-gtktest was given.
24752if test "${enable_gtktest+set}" = set; then
24753 enableval="$enable_gtktest"
24754
24755else
24756 enable_gtktest=yes
24757fi;
24758
24759 for module in . $GTK_MODULES
24760 do
24761 case "$module" in
24762 gthread)
24763 gtk_config_args="$gtk_config_args gthread"
24764 ;;
24765 esac
24766 done
24767
24768 if test x$gtk_config_exec_prefix != x ; then
24769 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24770 if test x${GTK_CONFIG+set} != xset ; then
24771 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24772 fi
24773 fi
24774 if test x$gtk_config_prefix != x ; then
24775 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24776 if test x${GTK_CONFIG+set} != xset ; then
24777 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24778 fi
24779 fi
24780
24781 # Extract the first word of "gtk-config", so it can be a program name with args.
24782set dummy gtk-config; ac_word=$2
24783echo "$as_me:$LINENO: checking for $ac_word" >&5
24784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24785if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24786 echo $ECHO_N "(cached) $ECHO_C" >&6
24787else
24788 case $GTK_CONFIG in
24789 [\\/]* | ?:[\\/]*)
24790 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24791 ;;
24792 *)
24793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24794for as_dir in $PATH
24795do
24796 IFS=$as_save_IFS
24797 test -z "$as_dir" && as_dir=.
24798 for ac_exec_ext in '' $ac_executable_extensions; do
24799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24800 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24802 break 2
24803 fi
24804done
24805done
24806
24807 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24808 ;;
24809esac
24810fi
24811GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24812
24813if test -n "$GTK_CONFIG"; then
24814 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24815echo "${ECHO_T}$GTK_CONFIG" >&6
24816else
24817 echo "$as_me:$LINENO: result: no" >&5
24818echo "${ECHO_T}no" >&6
24819fi
24820
24821 min_gtk_version=1.2.3
24822 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24823echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24824 no_gtk=""
24825 if test "$GTK_CONFIG" = "no" ; then
24826 no_gtk=yes
24827 else
24828 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24829 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24830 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24832 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24834 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24836 if test "x$enable_gtktest" = "xyes" ; then
24837 ac_save_CFLAGS="$CFLAGS"
24838 ac_save_LIBS="$LIBS"
24839 CFLAGS="$CFLAGS $GTK_CFLAGS"
24840 LIBS="$GTK_LIBS $LIBS"
24841 rm -f conf.gtktest
24842 if test "$cross_compiling" = yes; then
24843 echo $ac_n "cross compiling; assumed OK... $ac_c"
24844else
24845 cat >conftest.$ac_ext <<_ACEOF
24846/* confdefs.h. */
24847_ACEOF
24848cat confdefs.h >>conftest.$ac_ext
24849cat >>conftest.$ac_ext <<_ACEOF
24850/* end confdefs.h. */
24851
24852#include <gtk/gtk.h>
24853#include <stdio.h>
24854#include <stdlib.h>
24855
24856int
24857main ()
24858{
24859 int major, minor, micro;
24860 char *tmp_version;
24861
24862 system ("touch conf.gtktest");
24863
24864 /* HP/UX 9 (%@#!) writes to sscanf strings */
24865 tmp_version = g_strdup("$min_gtk_version");
24866 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24867 printf("%s, bad version string\n", "$min_gtk_version");
24868 exit(1);
24869 }
24870
24871 if ((gtk_major_version != $gtk_config_major_version) ||
24872 (gtk_minor_version != $gtk_config_minor_version) ||
24873 (gtk_micro_version != $gtk_config_micro_version))
24874 {
24875 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24876 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24877 gtk_major_version, gtk_minor_version, gtk_micro_version);
24878 printf ("*** was found! If gtk-config was correct, then it is best\n");
24879 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24880 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24881 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24882 printf("*** required on your system.\n");
24883 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24884 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24885 printf("*** before re-running configure\n");
24886 }
24887#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24888 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24889 (gtk_minor_version != GTK_MINOR_VERSION) ||
24890 (gtk_micro_version != GTK_MICRO_VERSION))
24891 {
24892 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24893 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24894 printf("*** library (version %d.%d.%d)\n",
24895 gtk_major_version, gtk_minor_version, gtk_micro_version);
24896 }
24897#endif /* defined (GTK_MAJOR_VERSION) ... */
24898 else
24899 {
24900 if ((gtk_major_version > major) ||
24901 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24902 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24903 {
24904 return 0;
24905 }
24906 else
24907 {
24908 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24909 gtk_major_version, gtk_minor_version, gtk_micro_version);
24910 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24911 major, minor, micro);
24912 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24913 printf("***\n");
24914 printf("*** If you have already installed a sufficiently new version, this error\n");
24915 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24916 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24917 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24918 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24919 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24920 printf("*** so that the correct libraries are found at run-time))\n");
24921 }
24922 }
24923 return 1;
24924}
24925
24926_ACEOF
24927rm -f conftest$ac_exeext
24928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24929 (eval $ac_link) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 :
24939else
24940 echo "$as_me: program exited with status $ac_status" >&5
24941echo "$as_me: failed program was:" >&5
24942sed 's/^/| /' conftest.$ac_ext >&5
24943
24944( exit $ac_status )
24945no_gtk=yes
24946fi
ac1cb8d3 24947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24948fi
24949 CFLAGS="$ac_save_CFLAGS"
24950 LIBS="$ac_save_LIBS"
24951 fi
24952 fi
24953 if test "x$no_gtk" = x ; then
24954 echo "$as_me:$LINENO: result: yes" >&5
24955echo "${ECHO_T}yes" >&6
24956 wx_cv_lib_gtk=1.2.3
24957 else
24958 echo "$as_me:$LINENO: result: no" >&5
24959echo "${ECHO_T}no" >&6
24960 if test "$GTK_CONFIG" = "no" ; then
24961 echo "*** The gtk-config script installed by GTK could not be found"
24962 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24963 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24964 echo "*** full path to gtk-config."
24965 else
24966 if test -f conf.gtktest ; then
24967 :
24968 else
24969 echo "*** Could not run GTK test program, checking why..."
24970 CFLAGS="$CFLAGS $GTK_CFLAGS"
24971 LIBS="$LIBS $GTK_LIBS"
24972 cat >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#include <gtk/gtk.h>
24980#include <stdio.h>
24981
24982int
24983main ()
24984{
24985 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24986 ;
24987 return 0;
24988}
24989_ACEOF
24990rm -f conftest.$ac_objext conftest$ac_exeext
24991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24992 (eval $ac_link) 2>conftest.er1
a848cd7e 24993 ac_status=$?
ac1cb8d3
VS
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
a848cd7e
SC
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
07158944 24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 echo "*** The test program compiled, but did not run. This usually means"
25012 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25013 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25014 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25015 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25016 echo "*** is required on your system"
25017 echo "***"
25018 echo "*** If you have an old version installed, it is best to remove it, although"
25019 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25020 echo "***"
25021 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25022 echo "*** came with the system with the command"
25023 echo "***"
25024 echo "*** rpm --erase --nodeps gtk gtk-devel"
25025else
25026 echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 echo "*** The test program failed to compile or link. See the file config.log for the"
25030 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25031 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25032 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25033fi
ac1cb8d3
VS
25034rm -f conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25036 CFLAGS="$ac_save_CFLAGS"
25037 LIBS="$ac_save_LIBS"
25038 fi
25039 fi
25040 GTK_CFLAGS=""
25041 GTK_LIBS=""
25042 :
25043 fi
25044
25045
25046 rm -f conf.gtktest
25047
25048 fi
25049 fi
25050
25051 if test -z "$wx_cv_lib_gtk"; then
25052 wx_cv_lib_gtk=none
25053 else
25054 wx_cv_cflags_gtk=$GTK_CFLAGS
25055 wx_cv_libs_gtk=$GTK_LIBS
25056 fi
25057
25058
25059fi
25060
25061
25062 if test "$gtk_version_cached" = 1; then
25063 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25064echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25065 fi
25066
25067 case "$wx_cv_lib_gtk" in
25068 2.0) WXGTK20=1
25069 TOOLKIT_VERSION=2
25070 ;;
25071 1.2.7) WXGTK127=1
25072 WXGTK12=1
25073 ;;
25074 1.2.3) WXGTK12=1
25075 ;;
25076 *) { { echo "$as_me:$LINENO: error:
25077Please check that gtk-config is in path, the directory
25078where GTK+ libraries are installed (returned by
25079'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25080equivalent variable and GTK+ is version 1.2.3 or above.
25081 " >&5
25082echo "$as_me: error:
25083Please check that gtk-config is in path, the directory
25084where GTK+ libraries are installed (returned by
25085'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25086equivalent variable and GTK+ is version 1.2.3 or above.
25087 " >&2;}
25088 { (exit 1); exit 1; }; }
25089 ;;
25090 esac
25091
25092 if test "$WXGTK20" = 1; then
304205f1
VS
25093 save_CFLAGS="$CFLAGS"
25094 save_LIBS="$LIBS"
25095 CFLAGS="$CFLAGS $GTK_CFLAGS"
25096 LIBS="$LIBS $GTK_LIBS"
25097
9755e73b 25098
304205f1
VS
25099for ac_func in pango_font_family_is_monospace
25100do
25101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25102echo "$as_me:$LINENO: checking for $ac_func" >&5
25103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25104if eval "test \"\${$as_ac_var+set}\" = set"; then
25105 echo $ECHO_N "(cached) $ECHO_C" >&6
25106else
25107 cat >conftest.$ac_ext <<_ACEOF
25108/* confdefs.h. */
25109_ACEOF
25110cat confdefs.h >>conftest.$ac_ext
25111cat >>conftest.$ac_ext <<_ACEOF
25112/* end confdefs.h. */
25113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25115#define $ac_func innocuous_$ac_func
25116
25117/* System header to define __stub macros and hopefully few prototypes,
25118 which can conflict with char $ac_func (); below.
25119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25120 <limits.h> exists even on freestanding compilers. */
25121
25122#ifdef __STDC__
25123# include <limits.h>
25124#else
25125# include <assert.h>
25126#endif
25127
25128#undef $ac_func
25129
25130/* Override any gcc2 internal prototype to avoid an error. */
25131#ifdef __cplusplus
25132extern "C"
25133{
25134#endif
25135/* We use char because int might match the return type of a gcc2
25136 builtin and then its argument prototype would still apply. */
25137char $ac_func ();
25138/* The GNU C library defines this for functions which it implements
25139 to always fail with ENOSYS. Some functions are actually named
25140 something starting with __ and the normal name is an alias. */
25141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25142choke me
25143#else
25144char (*f) () = $ac_func;
25145#endif
25146#ifdef __cplusplus
25147}
25148#endif
25149
25150int
25151main ()
25152{
25153return f != $ac_func;
25154 ;
25155 return 0;
25156}
25157_ACEOF
25158rm -f conftest.$ac_objext conftest$ac_exeext
25159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160 (eval $ac_link) 2>conftest.er1
25161 ac_status=$?
25162 grep -v '^ *+' conftest.er1 >conftest.err
25163 rm -f conftest.er1
25164 cat conftest.err >&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } &&
07158944 25167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 eval "$as_ac_var=yes"
25180else
25181 echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184eval "$as_ac_var=no"
25185fi
25186rm -f conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
25188fi
25189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25191if test `eval echo '${'$as_ac_var'}'` = yes; then
25192 cat >>confdefs.h <<_ACEOF
25193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25194_ACEOF
25195
25196fi
25197done
25198
9755e73b
VS
25199
25200 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25201echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25202 cat >conftest.$ac_ext <<_ACEOF
25203/* confdefs.h. */
25204_ACEOF
25205cat confdefs.h >>conftest.$ac_ext
25206cat >>conftest.$ac_ext <<_ACEOF
25207/* end confdefs.h. */
25208
25209 #include <gtk/gtk.h>
25210
25211int
25212main ()
25213{
25214
25215 #if !GTK_CHECK_VERSION(2,4,0)
25216 #error "Not GTK+ 2.4"
25217 #endif
25218
25219 ;
25220 return 0;
25221}
25222_ACEOF
25223rm -f conftest.$ac_objext
25224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25225 (eval $ac_compile) 2>conftest.er1
25226 ac_status=$?
25227 grep -v '^ *+' conftest.er1 >conftest.err
25228 rm -f conftest.er1
25229 cat conftest.err >&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } &&
07158944 25232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; } &&
25238 { ac_try='test -s conftest.$ac_objext'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244
25245 cat >>confdefs.h <<\_ACEOF
25246#define __WXGTK24__ 1
25247_ACEOF
25248
25249 echo "$as_me:$LINENO: result: yes" >&5
25250echo "${ECHO_T}yes" >&6
25251
25252else
25253 echo "$as_me: failed program was:" >&5
25254sed 's/^/| /' conftest.$ac_ext >&5
25255
25256
25257 echo "$as_me:$LINENO: result: no" >&5
25258echo "${ECHO_T}no" >&6
25259
25260fi
25261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25262
304205f1
VS
25263 CFLAGS="$save_CFLAGS"
25264 LIBS="$save_LIBS"
a848cd7e
SC
25265 else
25266 if test "$wxUSE_UNICODE" = "yes"; then
25267 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25268echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25269 wxUSE_UNICODE=no
25270 fi
25271 fi
25272
25273 if test "$USE_DARWIN" != 1; then
25274
25275for ac_func in poll
25276do
25277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25278echo "$as_me:$LINENO: checking for $ac_func" >&5
25279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25280if eval "test \"\${$as_ac_var+set}\" = set"; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25282else
25283 cat >conftest.$ac_ext <<_ACEOF
25284/* confdefs.h. */
25285_ACEOF
25286cat confdefs.h >>conftest.$ac_ext
25287cat >>conftest.$ac_ext <<_ACEOF
25288/* end confdefs.h. */
ac1cb8d3
VS
25289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25291#define $ac_func innocuous_$ac_func
25292
a848cd7e
SC
25293/* System header to define __stub macros and hopefully few prototypes,
25294 which can conflict with char $ac_func (); below.
25295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25297
a848cd7e
SC
25298#ifdef __STDC__
25299# include <limits.h>
25300#else
25301# include <assert.h>
25302#endif
ac1cb8d3
VS
25303
25304#undef $ac_func
25305
a848cd7e
SC
25306/* Override any gcc2 internal prototype to avoid an error. */
25307#ifdef __cplusplus
25308extern "C"
25309{
25310#endif
25311/* We use char because int might match the return type of a gcc2
25312 builtin and then its argument prototype would still apply. */
25313char $ac_func ();
25314/* The GNU C library defines this for functions which it implements
25315 to always fail with ENOSYS. Some functions are actually named
25316 something starting with __ and the normal name is an alias. */
25317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25318choke me
25319#else
25320char (*f) () = $ac_func;
25321#endif
25322#ifdef __cplusplus
25323}
25324#endif
25325
25326int
25327main ()
25328{
25329return f != $ac_func;
25330 ;
25331 return 0;
25332}
25333_ACEOF
25334rm -f conftest.$ac_objext conftest$ac_exeext
25335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25336 (eval $ac_link) 2>conftest.er1
a848cd7e 25337 ac_status=$?
ac1cb8d3
VS
25338 grep -v '^ *+' conftest.er1 >conftest.err
25339 rm -f conftest.er1
25340 cat conftest.err >&5
a848cd7e
SC
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } &&
07158944 25343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 eval "$as_ac_var=yes"
25356else
25357 echo "$as_me: failed program was:" >&5
25358sed 's/^/| /' conftest.$ac_ext >&5
25359
25360eval "$as_ac_var=no"
25361fi
ac1cb8d3
VS
25362rm -f conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25364fi
25365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25367if test `eval echo '${'$as_ac_var'}'` = yes; then
25368 cat >>confdefs.h <<_ACEOF
25369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25370_ACEOF
25371
25372fi
25373done
25374
25375 fi
25376
25377 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25378 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25379
25380 AFMINSTALL=afminstall
25381 TOOLKIT=GTK
25382 GUIDIST=GTK_DIST
25383
25384 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25385echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25386if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25387 echo $ECHO_N "(cached) $ECHO_C" >&6
25388else
25389 ac_check_lib_save_LIBS=$LIBS
25390LIBS="-lgdk $LIBS"
25391cat >conftest.$ac_ext <<_ACEOF
25392/* confdefs.h. */
25393_ACEOF
25394cat confdefs.h >>conftest.$ac_ext
25395cat >>conftest.$ac_ext <<_ACEOF
25396/* end confdefs.h. */
25397
25398/* Override any gcc2 internal prototype to avoid an error. */
25399#ifdef __cplusplus
25400extern "C"
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 gdk_im_open ();
25405int
25406main ()
25407{
25408gdk_im_open ();
25409 ;
25410 return 0;
25411}
25412_ACEOF
25413rm -f conftest.$ac_objext conftest$ac_exeext
25414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25415 (eval $ac_link) 2>conftest.er1
a848cd7e 25416 ac_status=$?
ac1cb8d3
VS
25417 grep -v '^ *+' conftest.er1 >conftest.err
25418 rm -f conftest.er1
25419 cat conftest.err >&5
a848cd7e
SC
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } &&
07158944 25422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; } &&
25428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; }; then
25434 ac_cv_lib_gdk_gdk_im_open=yes
25435else
25436 echo "$as_me: failed program was:" >&5
25437sed 's/^/| /' conftest.$ac_ext >&5
25438
25439ac_cv_lib_gdk_gdk_im_open=no
25440fi
ac1cb8d3
VS
25441rm -f conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25443LIBS=$ac_check_lib_save_LIBS
25444fi
25445echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25446echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25447if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25448 cat >>confdefs.h <<\_ACEOF
25449#define HAVE_XIM 1
25450_ACEOF
25451
25452fi
25453
25454
25455
25456 if test "$wxUSE_GPE" = "yes"; then
25457 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25458echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25459
25460ac_find_libraries=
25461for ac_dir in $SEARCH_LIB /usr/lib;
25462 do
25463 for ac_extension in a so sl dylib; do
25464 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25465 ac_find_libraries=$ac_dir
25466 break 2
25467 fi
25468 done
25469 done
25470
25471 if test "$ac_find_libraries" != "" ; then
25472
25473 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25474 result=$?
25475 if test $result = 0; then
25476 ac_path_to_link=""
25477 else
25478 ac_path_to_link=" -L$ac_find_libraries"
25479 fi
25480
25481 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25482 WXGPE=1
25483 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25484echo "${ECHO_T}found at $ac_find_libraries" >&6
25485 else
25486 echo "$as_me:$LINENO: result: not found" >&5
25487echo "${ECHO_T}not found" >&6
25488 fi
25489
25490 fi
25491 fi
25492
25493 if test "$wxUSE_MGL" = 1; then
25494 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25495echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25496 if test "x$MGL_ROOT" = x ; then
25497 echo "$as_me:$LINENO: result: not found" >&5
25498echo "${ECHO_T}not found" >&6
25499 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25500echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25501 { (exit 1); exit 1; }; }
25502 else
25503 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25504echo "${ECHO_T}$MGL_ROOT" >&6
25505 fi
25506
25507 echo "$as_me:$LINENO: checking for libmgl location" >&5
25508echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25509 case "${host}" in
25510 *-*-linux* )
25511 if test "x$wxUSE_SHARED" = xyes ; then
25512 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25513 else
25514 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25515 fi
25516 ;;
25517 *-pc-msdosdjgpp )
25518 mgl_os_candidates="dos32/dj2"
25519 ;;
25520 *)
25521 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25522echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25523 { (exit 1); exit 1; }; }
25524 esac
25525
25526 mgl_lib_type=""
25527 mgl_os=""
25528
25529 for mgl_os_i in $mgl_os_candidates ; do
25530 if test "x$mgl_os" = x ; then
25531 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25532 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25533 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25534 mgl_lib_type=debug
25535 mgl_os=$mgl_os_i
25536 fi
25537 fi
25538 if test "x$mgl_lib_type" = x ; then
25539 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25540 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25541 mgl_lib_type=release
25542 mgl_os=$mgl_os_i
25543 fi
25544 fi
25545 fi
25546 done
25547
25548 if test "x$mgl_os" = x ; then
25549 echo "$as_me:$LINENO: result: not found" >&5
25550echo "${ECHO_T}not found" >&6
25551 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25552echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25553 { (exit 1); exit 1; }; }
25554 fi
25555 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25556echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25557
25558 wxUSE_UNIVERSAL="yes"
25559
25560 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25561 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25562
25563 AFMINSTALL=afminstall
25564 TOOLKIT=MGL
25565 GUIDIST=MGL_DIST
25566 fi
25567
25568 if test "$wxUSE_MICROWIN" = 1; then
25569 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25570echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25571 if test "x$MICROWINDOWS" = x ; then
25572 echo "$as_me:$LINENO: result: not found" >&5
25573echo "${ECHO_T}not found" >&6
25574 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25575echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25576 { (exit 1); exit 1; }; }
25577 else
25578 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25579echo "${ECHO_T}$MICROWINDOWS" >&6
25580 fi
25581
25582 if test -f $MICROWINDOWS/lib/libmwin.a; then
25583 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25584echo "${ECHO_T}MicroWindows' libraries found." >&6
25585 else
25586 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25587echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25588 { (exit 1); exit 1; }; }
25589 fi
25590
25591 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25592 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25593
25594 wxUSE_UNIVERSAL="yes"
25595
25596 AFMINSTALL=afminstall
25597 TOOLKIT=MICROWIN
25598 GUIDIST=MICROWIN_DIST
25599
25600 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25601 fi
25602
74b84332 25603 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
07158944
VZ
25604
25605if test "x$ac_path_x_has_been_run" != xyes; then
25606 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25607echo $ECHO_N "checking for X... $ECHO_C" >&6
25608
07158944 25609ac_path_x_has_been_run=yes
a848cd7e
SC
25610
25611# Check whether --with-x or --without-x was given.
25612if test "${with_x+set}" = set; then
25613 withval="$with_x"
25614
25615fi;
25616# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25617if test "x$with_x" = xno; then
25618 # The user explicitly disabled X.
25619 have_x=disabled
25620else
25621 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25622 # Both variables are already set.
25623 have_x=yes
25624 else
25625 if test "${ac_cv_have_x+set}" = set; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
25627else
25628 # One or both of the vars are not set, and there is no cached value.
25629ac_x_includes=no ac_x_libraries=no
25630rm -fr conftest.dir
25631if mkdir conftest.dir; then
25632 cd conftest.dir
25633 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25634 cat >Imakefile <<'_ACEOF'
25635acfindx:
25636 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25637_ACEOF
25638 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25639 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25640 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25641 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25642 for ac_extension in a so sl; do
25643 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25644 test -f $ac_im_libdir/libX11.$ac_extension; then
25645 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25646 fi
25647 done
25648 # Screen out bogus values from the imake configuration. They are
25649 # bogus both because they are the default anyway, and because
25650 # using them would break gcc on systems where it needs fixed includes.
25651 case $ac_im_incroot in
25652 /usr/include) ;;
25653 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25654 esac
25655 case $ac_im_usrlibdir in
25656 /usr/lib | /lib) ;;
25657 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25658 esac
25659 fi
25660 cd ..
25661 rm -fr conftest.dir
25662fi
25663
25664# Standard set of common directories for X headers.
25665# Check X11 before X11Rn because it is often a symlink to the current release.
25666ac_x_header_dirs='
25667/usr/X11/include
25668/usr/X11R6/include
25669/usr/X11R5/include
25670/usr/X11R4/include
25671
25672/usr/include/X11
25673/usr/include/X11R6
25674/usr/include/X11R5
25675/usr/include/X11R4
25676
25677/usr/local/X11/include
25678/usr/local/X11R6/include
25679/usr/local/X11R5/include
25680/usr/local/X11R4/include
25681
25682/usr/local/include/X11
25683/usr/local/include/X11R6
25684/usr/local/include/X11R5
25685/usr/local/include/X11R4
25686
25687/usr/X386/include
25688/usr/x386/include
25689/usr/XFree86/include/X11
25690
25691/usr/include
25692/usr/local/include
25693/usr/unsupported/include
25694/usr/athena/include
25695/usr/local/x11r5/include
25696/usr/lpp/Xamples/include
25697
25698/usr/openwin/include
25699/usr/openwin/share/include'
25700
25701if test "$ac_x_includes" = no; then
07158944 25702 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25703 # First, try using that file with no special directory specified.
25704 cat >conftest.$ac_ext <<_ACEOF
25705/* confdefs.h. */
25706_ACEOF
25707cat confdefs.h >>conftest.$ac_ext
25708cat >>conftest.$ac_ext <<_ACEOF
25709/* end confdefs.h. */
25710#include <X11/Intrinsic.h>
25711_ACEOF
25712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25714 ac_status=$?
25715 grep -v '^ *+' conftest.er1 >conftest.err
25716 rm -f conftest.er1
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } >/dev/null; then
25720 if test -s conftest.err; then
25721 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25723 else
25724 ac_cpp_err=
25725 fi
25726else
25727 ac_cpp_err=yes
25728fi
25729if test -z "$ac_cpp_err"; then
25730 # We can compile using X headers with no special include directory.
25731ac_x_includes=
25732else
25733 echo "$as_me: failed program was:" >&5
25734sed 's/^/| /' conftest.$ac_ext >&5
25735
25736 for ac_dir in $ac_x_header_dirs; do
25737 if test -r "$ac_dir/X11/Intrinsic.h"; then
25738 ac_x_includes=$ac_dir
25739 break
25740 fi
25741done
25742fi
25743rm -f conftest.err conftest.$ac_ext
25744fi # $ac_x_includes = no
25745
25746if test "$ac_x_libraries" = no; then
25747 # Check for the libraries.
25748 # See if we find them without any special options.
25749 # Don't add to $LIBS permanently.
25750 ac_save_LIBS=$LIBS
25751 LIBS="-lXt $LIBS"
25752 cat >conftest.$ac_ext <<_ACEOF
25753/* confdefs.h. */
25754_ACEOF
25755cat confdefs.h >>conftest.$ac_ext
25756cat >>conftest.$ac_ext <<_ACEOF
25757/* end confdefs.h. */
25758#include <X11/Intrinsic.h>
25759int
25760main ()
25761{
25762XtMalloc (0)
25763 ;
25764 return 0;
25765}
25766_ACEOF
25767rm -f conftest.$ac_objext conftest$ac_exeext
25768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25769 (eval $ac_link) 2>conftest.er1
a848cd7e 25770 ac_status=$?
ac1cb8d3
VS
25771 grep -v '^ *+' conftest.er1 >conftest.err
25772 rm -f conftest.er1
25773 cat conftest.err >&5
a848cd7e
SC
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
07158944 25776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; } &&
25782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; }; then
25788 LIBS=$ac_save_LIBS
25789# We can link X programs with no special library path.
25790ac_x_libraries=
25791else
25792 echo "$as_me: failed program was:" >&5
25793sed 's/^/| /' conftest.$ac_ext >&5
25794
25795LIBS=$ac_save_LIBS
25796for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25797do
25798 # Don't even attempt the hair of trying to link an X program!
25799 for ac_extension in a so sl; do
25800 if test -r $ac_dir/libXt.$ac_extension; then
25801 ac_x_libraries=$ac_dir
25802 break 2
25803 fi
25804 done
25805done
25806fi
ac1cb8d3
VS
25807rm -f conftest.err conftest.$ac_objext \
25808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25809fi # $ac_x_libraries = no
25810
25811if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25812 # Didn't find X anywhere. Cache the known absence of X.
25813 ac_cv_have_x="have_x=no"
25814else
25815 # Record where we found X for the cache.
25816 ac_cv_have_x="have_x=yes \
ac1cb8d3 25817 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25818fi
25819fi
25820
25821 fi
25822 eval "$ac_cv_have_x"
25823fi # $with_x != no
25824
25825if test "$have_x" != yes; then
25826 echo "$as_me:$LINENO: result: $have_x" >&5
25827echo "${ECHO_T}$have_x" >&6
25828 no_x=yes
25829else
25830 # If each of the values was on the command line, it overrides each guess.
25831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25833 # Update the cache value to reflect the command line values.
25834 ac_cv_have_x="have_x=yes \
25835 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
07158944
VZ
25836 # It might be that x_includes is empty (headers are found in the
25837 # standard search path. Then output the corresponding message
25838 ac_out_x_includes=$x_includes
25839 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25840 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25841echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25842fi
25843
07158944 25844fi
a848cd7e
SC
25845if test "$no_x" = yes; then
25846 # Not all programs may use this symbol, but it does not hurt to define it.
25847
25848cat >>confdefs.h <<\_ACEOF
25849#define X_DISPLAY_MISSING 1
25850_ACEOF
25851
25852 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25853else
25854 if test -n "$x_includes"; then
25855 X_CFLAGS="$X_CFLAGS -I$x_includes"
25856 fi
25857
25858 # It would also be nice to do this for all -L options, not just this one.
25859 if test -n "$x_libraries"; then
25860 X_LIBS="$X_LIBS -L$x_libraries"
25861 # For Solaris; some versions of Sun CC require a space after -R and
25862 # others require no space. Words are not sufficient . . . .
25863 case `(uname -sr) 2>/dev/null` in
25864 "SunOS 5"*)
25865 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25866echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25867 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25868 cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874
25875int
25876main ()
25877{
25878
25879 ;
25880 return 0;
25881}
25882_ACEOF
25883rm -f conftest.$ac_objext conftest$ac_exeext
25884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25885 (eval $ac_link) 2>conftest.er1
a848cd7e 25886 ac_status=$?
ac1cb8d3
VS
25887 grep -v '^ *+' conftest.er1 >conftest.err
25888 rm -f conftest.er1
25889 cat conftest.err >&5
a848cd7e
SC
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
07158944 25892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; } &&
25898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; }; then
25904 ac_R_nospace=yes
25905else
25906 echo "$as_me: failed program was:" >&5
25907sed 's/^/| /' conftest.$ac_ext >&5
25908
25909ac_R_nospace=no
25910fi
ac1cb8d3
VS
25911rm -f conftest.err conftest.$ac_objext \
25912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25913 if test $ac_R_nospace = yes; then
25914 echo "$as_me:$LINENO: result: no" >&5
25915echo "${ECHO_T}no" >&6
25916 X_LIBS="$X_LIBS -R$x_libraries"
25917 else
25918 LIBS="$ac_xsave_LIBS -R $x_libraries"
25919 cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925
25926int
25927main ()
25928{
25929
25930 ;
25931 return 0;
25932}
25933_ACEOF
25934rm -f conftest.$ac_objext conftest$ac_exeext
25935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25936 (eval $ac_link) 2>conftest.er1
a848cd7e 25937 ac_status=$?
ac1cb8d3
VS
25938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
a848cd7e
SC
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
07158944 25943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; } &&
25949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; }; then
25955 ac_R_space=yes
25956else
25957 echo "$as_me: failed program was:" >&5
25958sed 's/^/| /' conftest.$ac_ext >&5
25959
25960ac_R_space=no
25961fi
ac1cb8d3
VS
25962rm -f conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25964 if test $ac_R_space = yes; then
25965 echo "$as_me:$LINENO: result: yes" >&5
25966echo "${ECHO_T}yes" >&6
25967 X_LIBS="$X_LIBS -R $x_libraries"
25968 else
25969 echo "$as_me:$LINENO: result: neither works" >&5
25970echo "${ECHO_T}neither works" >&6
25971 fi
25972 fi
25973 LIBS=$ac_xsave_LIBS
25974 esac
25975 fi
25976
25977 # Check for system-dependent libraries X programs must link with.
25978 # Do this before checking for the system-independent R6 libraries
25979 # (-lICE), since we may need -lsocket or whatever for X linking.
25980
25981 if test "$ISC" = yes; then
25982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25983 else
25984 # Martyn Johnson says this is needed for Ultrix, if the X
25985 # libraries were built with DECnet support. And Karl Berry says
25986 # the Alpha needs dnet_stub (dnet does not exist).
25987 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25988 cat >conftest.$ac_ext <<_ACEOF
25989/* confdefs.h. */
25990_ACEOF
25991cat confdefs.h >>conftest.$ac_ext
25992cat >>conftest.$ac_ext <<_ACEOF
25993/* end confdefs.h. */
25994
25995/* Override any gcc2 internal prototype to avoid an error. */
25996#ifdef __cplusplus
25997extern "C"
25998#endif
25999/* We use char because int might match the return type of a gcc2
26000 builtin and then its argument prototype would still apply. */
26001char XOpenDisplay ();
26002int
26003main ()
26004{
26005XOpenDisplay ();
26006 ;
26007 return 0;
26008}
26009_ACEOF
26010rm -f conftest.$ac_objext conftest$ac_exeext
26011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26012 (eval $ac_link) 2>conftest.er1
a848cd7e 26013 ac_status=$?
ac1cb8d3
VS
26014 grep -v '^ *+' conftest.er1 >conftest.err
26015 rm -f conftest.er1
26016 cat conftest.err >&5
a848cd7e
SC
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
07158944 26019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 :
26032else
26033 echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
26036echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26037echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26038if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26040else
26041 ac_check_lib_save_LIBS=$LIBS
26042LIBS="-ldnet $LIBS"
26043cat >conftest.$ac_ext <<_ACEOF
26044/* confdefs.h. */
26045_ACEOF
26046cat confdefs.h >>conftest.$ac_ext
26047cat >>conftest.$ac_ext <<_ACEOF
26048/* end confdefs.h. */
26049
26050/* Override any gcc2 internal prototype to avoid an error. */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054/* We use char because int might match the return type of a gcc2
26055 builtin and then its argument prototype would still apply. */
26056char dnet_ntoa ();
26057int
26058main ()
26059{
26060dnet_ntoa ();
26061 ;
26062 return 0;
26063}
26064_ACEOF
26065rm -f conftest.$ac_objext conftest$ac_exeext
26066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26067 (eval $ac_link) 2>conftest.er1
a848cd7e 26068 ac_status=$?
ac1cb8d3
VS
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
a848cd7e
SC
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
07158944 26074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; } &&
26080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
26086 ac_cv_lib_dnet_dnet_ntoa=yes
26087else
26088 echo "$as_me: failed program was:" >&5
26089sed 's/^/| /' conftest.$ac_ext >&5
26090
26091ac_cv_lib_dnet_dnet_ntoa=no
26092fi
ac1cb8d3
VS
26093rm -f conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26095LIBS=$ac_check_lib_save_LIBS
26096fi
26097echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26098echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26099if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26100 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26101fi
26102
26103 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26104 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26105echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26106if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26108else
26109 ac_check_lib_save_LIBS=$LIBS
26110LIBS="-ldnet_stub $LIBS"
26111cat >conftest.$ac_ext <<_ACEOF
26112/* confdefs.h. */
26113_ACEOF
26114cat confdefs.h >>conftest.$ac_ext
26115cat >>conftest.$ac_ext <<_ACEOF
26116/* end confdefs.h. */
26117
26118/* Override any gcc2 internal prototype to avoid an error. */
26119#ifdef __cplusplus
26120extern "C"
26121#endif
26122/* We use char because int might match the return type of a gcc2
26123 builtin and then its argument prototype would still apply. */
26124char dnet_ntoa ();
26125int
26126main ()
26127{
26128dnet_ntoa ();
26129 ;
26130 return 0;
26131}
26132_ACEOF
26133rm -f conftest.$ac_objext conftest$ac_exeext
26134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26135 (eval $ac_link) 2>conftest.er1
a848cd7e 26136 ac_status=$?
ac1cb8d3
VS
26137 grep -v '^ *+' conftest.er1 >conftest.err
26138 rm -f conftest.er1
26139 cat conftest.err >&5
a848cd7e
SC
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); } &&
07158944 26142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; } &&
26148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150 (eval $ac_try) 2>&5
26151 ac_status=$?
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); }; }; then
26154 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26155else
26156 echo "$as_me: failed program was:" >&5
26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159ac_cv_lib_dnet_stub_dnet_ntoa=no
26160fi
ac1cb8d3
VS
26161rm -f conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26163LIBS=$ac_check_lib_save_LIBS
26164fi
26165echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26166echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26167if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26168 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26169fi
26170
26171 fi
26172fi
ac1cb8d3
VS
26173rm -f conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26175 LIBS="$ac_xsave_LIBS"
26176
26177 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26178 # to get the SysV transport functions.
26179 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26180 # needs -lnsl.
26181 # The nsl library prevents programs from opening the X display
26182 # on Irix 5.2, according to T.E. Dickey.
26183 # The functions gethostbyname, getservbyname, and inet_addr are
26184 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26185 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26186echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26187if test "${ac_cv_func_gethostbyname+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26189else
26190 cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h. */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h. */
ac1cb8d3
VS
26196/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26198#define gethostbyname innocuous_gethostbyname
26199
a848cd7e
SC
26200/* System header to define __stub macros and hopefully few prototypes,
26201 which can conflict with char gethostbyname (); below.
26202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26203 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26204
a848cd7e
SC
26205#ifdef __STDC__
26206# include <limits.h>
26207#else
26208# include <assert.h>
26209#endif
ac1cb8d3
VS
26210
26211#undef gethostbyname
26212
a848cd7e
SC
26213/* Override any gcc2 internal prototype to avoid an error. */
26214#ifdef __cplusplus
26215extern "C"
26216{
26217#endif
26218/* We use char because int might match the return type of a gcc2
26219 builtin and then its argument prototype would still apply. */
26220char gethostbyname ();
26221/* The GNU C library defines this for functions which it implements
26222 to always fail with ENOSYS. Some functions are actually named
26223 something starting with __ and the normal name is an alias. */
26224#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26225choke me
26226#else
26227char (*f) () = gethostbyname;
26228#endif
26229#ifdef __cplusplus
26230}
26231#endif
26232
26233int
26234main ()
26235{
26236return f != gethostbyname;
26237 ;
26238 return 0;
26239}
26240_ACEOF
26241rm -f conftest.$ac_objext conftest$ac_exeext
26242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26243 (eval $ac_link) 2>conftest.er1
a848cd7e 26244 ac_status=$?
ac1cb8d3
VS
26245 grep -v '^ *+' conftest.er1 >conftest.err
26246 rm -f conftest.er1
26247 cat conftest.err >&5
a848cd7e
SC
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } &&
07158944 26250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26253 ac_status=$?
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; } &&
26256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258 (eval $ac_try) 2>&5
26259 ac_status=$?
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); }; }; then
26262 ac_cv_func_gethostbyname=yes
26263else
26264 echo "$as_me: failed program was:" >&5
26265sed 's/^/| /' conftest.$ac_ext >&5
26266
26267ac_cv_func_gethostbyname=no
26268fi
ac1cb8d3
VS
26269rm -f conftest.err conftest.$ac_objext \
26270 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26271fi
26272echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26273echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26274
26275 if test $ac_cv_func_gethostbyname = no; then
26276 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26277echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26278if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26280else
26281 ac_check_lib_save_LIBS=$LIBS
26282LIBS="-lnsl $LIBS"
26283cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h. */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h. */
26289
26290/* Override any gcc2 internal prototype to avoid an error. */
26291#ifdef __cplusplus
26292extern "C"
26293#endif
26294/* We use char because int might match the return type of a gcc2
26295 builtin and then its argument prototype would still apply. */
26296char gethostbyname ();
26297int
26298main ()
26299{
26300gethostbyname ();
26301 ;
26302 return 0;
26303}
26304_ACEOF
26305rm -f conftest.$ac_objext conftest$ac_exeext
26306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26307 (eval $ac_link) 2>conftest.er1
26308 ac_status=$?
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } &&
07158944 26314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest$ac_exeext'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ac_cv_lib_nsl_gethostbyname=yes
26327else
26328 echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331ac_cv_lib_nsl_gethostbyname=no
26332fi
26333rm -f conftest.err conftest.$ac_objext \
26334 conftest$ac_exeext conftest.$ac_ext
26335LIBS=$ac_check_lib_save_LIBS
26336fi
26337echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26338echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26339if test $ac_cv_lib_nsl_gethostbyname = yes; then
26340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26341fi
26342
26343 if test $ac_cv_lib_nsl_gethostbyname = no; then
26344 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26345echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26346if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26347 echo $ECHO_N "(cached) $ECHO_C" >&6
26348else
26349 ac_check_lib_save_LIBS=$LIBS
26350LIBS="-lbsd $LIBS"
26351cat >conftest.$ac_ext <<_ACEOF
26352/* confdefs.h. */
26353_ACEOF
26354cat confdefs.h >>conftest.$ac_ext
26355cat >>conftest.$ac_ext <<_ACEOF
26356/* end confdefs.h. */
26357
26358/* Override any gcc2 internal prototype to avoid an error. */
26359#ifdef __cplusplus
26360extern "C"
26361#endif
26362/* We use char because int might match the return type of a gcc2
26363 builtin and then its argument prototype would still apply. */
26364char gethostbyname ();
26365int
26366main ()
26367{
26368gethostbyname ();
26369 ;
26370 return 0;
26371}
26372_ACEOF
26373rm -f conftest.$ac_objext conftest$ac_exeext
26374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26375 (eval $ac_link) 2>conftest.er1
a848cd7e 26376 ac_status=$?
ac1cb8d3
VS
26377 grep -v '^ *+' conftest.er1 >conftest.err
26378 rm -f conftest.er1
26379 cat conftest.err >&5
a848cd7e
SC
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
07158944 26382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26387 (exit $ac_status); }; } &&
26388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; }; then
26394 ac_cv_lib_bsd_gethostbyname=yes
26395else
26396 echo "$as_me: failed program was:" >&5
26397sed 's/^/| /' conftest.$ac_ext >&5
26398
26399ac_cv_lib_bsd_gethostbyname=no
26400fi
ac1cb8d3
VS
26401rm -f conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26403LIBS=$ac_check_lib_save_LIBS
26404fi
26405echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26406echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26407if test $ac_cv_lib_bsd_gethostbyname = yes; then
26408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26409fi
26410
26411 fi
26412 fi
26413
26414 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26415 # socket/setsockopt and other routines are undefined under SCO ODT
26416 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26417 # on later versions), says Simon Leinen: it contains gethostby*
26418 # variants that don't use the name server (or something). -lsocket
26419 # must be given before -lnsl if both are needed. We assume that
26420 # if connect needs -lnsl, so does gethostbyname.
26421 echo "$as_me:$LINENO: checking for connect" >&5
26422echo $ECHO_N "checking for connect... $ECHO_C" >&6
26423if test "${ac_cv_func_connect+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26425else
26426 cat >conftest.$ac_ext <<_ACEOF
26427/* confdefs.h. */
26428_ACEOF
26429cat confdefs.h >>conftest.$ac_ext
26430cat >>conftest.$ac_ext <<_ACEOF
26431/* end confdefs.h. */
ac1cb8d3
VS
26432/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26434#define connect innocuous_connect
26435
a848cd7e
SC
26436/* System header to define __stub macros and hopefully few prototypes,
26437 which can conflict with char connect (); below.
26438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26440
a848cd7e
SC
26441#ifdef __STDC__
26442# include <limits.h>
26443#else
26444# include <assert.h>
26445#endif
ac1cb8d3
VS
26446
26447#undef connect
26448
a848cd7e
SC
26449/* Override any gcc2 internal prototype to avoid an error. */
26450#ifdef __cplusplus
26451extern "C"
26452{
26453#endif
26454/* We use char because int might match the return type of a gcc2
26455 builtin and then its argument prototype would still apply. */
26456char connect ();
26457/* The GNU C library defines this for functions which it implements
26458 to always fail with ENOSYS. Some functions are actually named
26459 something starting with __ and the normal name is an alias. */
26460#if defined (__stub_connect) || defined (__stub___connect)
26461choke me
26462#else
26463char (*f) () = connect;
26464#endif
26465#ifdef __cplusplus
26466}
26467#endif
26468
26469int
26470main ()
26471{
26472return f != connect;
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26479 (eval $ac_link) 2>conftest.er1
a848cd7e 26480 ac_status=$?
ac1cb8d3
VS
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
a848cd7e
SC
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
07158944 26486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_cv_func_connect=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503ac_cv_func_connect=no
26504fi
ac1cb8d3
VS
26505rm -f conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26507fi
26508echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26509echo "${ECHO_T}$ac_cv_func_connect" >&6
26510
26511 if test $ac_cv_func_connect = no; then
26512 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26513echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26514if test "${ac_cv_lib_socket_connect+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26516else
26517 ac_check_lib_save_LIBS=$LIBS
26518LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26519cat >conftest.$ac_ext <<_ACEOF
26520/* confdefs.h. */
26521_ACEOF
26522cat confdefs.h >>conftest.$ac_ext
26523cat >>conftest.$ac_ext <<_ACEOF
26524/* end confdefs.h. */
26525
26526/* Override any gcc2 internal prototype to avoid an error. */
26527#ifdef __cplusplus
26528extern "C"
26529#endif
26530/* We use char because int might match the return type of a gcc2
26531 builtin and then its argument prototype would still apply. */
26532char connect ();
26533int
26534main ()
26535{
26536connect ();
26537 ;
26538 return 0;
26539}
26540_ACEOF
26541rm -f conftest.$ac_objext conftest$ac_exeext
26542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26543 (eval $ac_link) 2>conftest.er1
a848cd7e 26544 ac_status=$?
ac1cb8d3
VS
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
a848cd7e
SC
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
07158944 26550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 ac_cv_lib_socket_connect=yes
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567ac_cv_lib_socket_connect=no
26568fi
ac1cb8d3
VS
26569rm -f conftest.err conftest.$ac_objext \
26570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26571LIBS=$ac_check_lib_save_LIBS
26572fi
26573echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26574echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26575if test $ac_cv_lib_socket_connect = yes; then
26576 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26577fi
26578
26579 fi
26580
26581 # Guillermo Gomez says -lposix is necessary on A/UX.
26582 echo "$as_me:$LINENO: checking for remove" >&5
26583echo $ECHO_N "checking for remove... $ECHO_C" >&6
26584if test "${ac_cv_func_remove+set}" = set; then
26585 echo $ECHO_N "(cached) $ECHO_C" >&6
26586else
26587 cat >conftest.$ac_ext <<_ACEOF
26588/* confdefs.h. */
26589_ACEOF
26590cat confdefs.h >>conftest.$ac_ext
26591cat >>conftest.$ac_ext <<_ACEOF
26592/* end confdefs.h. */
ac1cb8d3
VS
26593/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26595#define remove innocuous_remove
26596
a848cd7e
SC
26597/* System header to define __stub macros and hopefully few prototypes,
26598 which can conflict with char remove (); below.
26599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26600 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26601
a848cd7e
SC
26602#ifdef __STDC__
26603# include <limits.h>
26604#else
26605# include <assert.h>
26606#endif
ac1cb8d3
VS
26607
26608#undef remove
26609
a848cd7e
SC
26610/* Override any gcc2 internal prototype to avoid an error. */
26611#ifdef __cplusplus
26612extern "C"
26613{
26614#endif
26615/* We use char because int might match the return type of a gcc2
26616 builtin and then its argument prototype would still apply. */
26617char remove ();
26618/* The GNU C library defines this for functions which it implements
26619 to always fail with ENOSYS. Some functions are actually named
26620 something starting with __ and the normal name is an alias. */
26621#if defined (__stub_remove) || defined (__stub___remove)
26622choke me
26623#else
26624char (*f) () = remove;
26625#endif
26626#ifdef __cplusplus
26627}
26628#endif
26629
26630int
26631main ()
26632{
26633return f != remove;
26634 ;
26635 return 0;
26636}
26637_ACEOF
26638rm -f conftest.$ac_objext conftest$ac_exeext
26639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26640 (eval $ac_link) 2>conftest.er1
a848cd7e 26641 ac_status=$?
ac1cb8d3
VS
26642 grep -v '^ *+' conftest.er1 >conftest.err
26643 rm -f conftest.er1
26644 cat conftest.err >&5
a848cd7e
SC
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } &&
07158944 26647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649 (eval $ac_try) 2>&5
26650 ac_status=$?
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); }; } &&
26653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26656 ac_status=$?
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; }; then
26659 ac_cv_func_remove=yes
26660else
26661 echo "$as_me: failed program was:" >&5
26662sed 's/^/| /' conftest.$ac_ext >&5
26663
26664ac_cv_func_remove=no
26665fi
ac1cb8d3
VS
26666rm -f conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26668fi
26669echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26670echo "${ECHO_T}$ac_cv_func_remove" >&6
26671
26672 if test $ac_cv_func_remove = no; then
26673 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26674echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26675if test "${ac_cv_lib_posix_remove+set}" = set; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26677else
26678 ac_check_lib_save_LIBS=$LIBS
26679LIBS="-lposix $LIBS"
26680cat >conftest.$ac_ext <<_ACEOF
26681/* confdefs.h. */
26682_ACEOF
26683cat confdefs.h >>conftest.$ac_ext
26684cat >>conftest.$ac_ext <<_ACEOF
26685/* end confdefs.h. */
26686
26687/* Override any gcc2 internal prototype to avoid an error. */
26688#ifdef __cplusplus
26689extern "C"
26690#endif
26691/* We use char because int might match the return type of a gcc2
26692 builtin and then its argument prototype would still apply. */
26693char remove ();
26694int
26695main ()
26696{
26697remove ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
26702rm -f conftest.$ac_objext conftest$ac_exeext
26703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26704 (eval $ac_link) 2>conftest.er1
a848cd7e 26705 ac_status=$?
ac1cb8d3
VS
26706 grep -v '^ *+' conftest.er1 >conftest.err
26707 rm -f conftest.er1
26708 cat conftest.err >&5
a848cd7e
SC
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } &&
07158944 26711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 ac_cv_lib_posix_remove=yes
26724else
26725 echo "$as_me: failed program was:" >&5
26726sed 's/^/| /' conftest.$ac_ext >&5
26727
26728ac_cv_lib_posix_remove=no
26729fi
ac1cb8d3
VS
26730rm -f conftest.err conftest.$ac_objext \
26731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26732LIBS=$ac_check_lib_save_LIBS
26733fi
26734echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26735echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26736if test $ac_cv_lib_posix_remove = yes; then
26737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26738fi
26739
26740 fi
26741
26742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26743 echo "$as_me:$LINENO: checking for shmat" >&5
26744echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26745if test "${ac_cv_func_shmat+set}" = set; then
26746 echo $ECHO_N "(cached) $ECHO_C" >&6
26747else
26748 cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h. */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h. */
ac1cb8d3
VS
26754/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26756#define shmat innocuous_shmat
26757
a848cd7e
SC
26758/* System header to define __stub macros and hopefully few prototypes,
26759 which can conflict with char shmat (); below.
26760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26762
a848cd7e
SC
26763#ifdef __STDC__
26764# include <limits.h>
26765#else
26766# include <assert.h>
26767#endif
ac1cb8d3
VS
26768
26769#undef shmat
26770
a848cd7e
SC
26771/* Override any gcc2 internal prototype to avoid an error. */
26772#ifdef __cplusplus
26773extern "C"
26774{
26775#endif
26776/* We use char because int might match the return type of a gcc2
26777 builtin and then its argument prototype would still apply. */
26778char shmat ();
26779/* The GNU C library defines this for functions which it implements
26780 to always fail with ENOSYS. Some functions are actually named
26781 something starting with __ and the normal name is an alias. */
26782#if defined (__stub_shmat) || defined (__stub___shmat)
26783choke me
26784#else
26785char (*f) () = shmat;
26786#endif
26787#ifdef __cplusplus
26788}
26789#endif
26790
26791int
26792main ()
26793{
26794return f != shmat;
26795 ;
26796 return 0;
26797}
26798_ACEOF
26799rm -f conftest.$ac_objext conftest$ac_exeext
26800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26801 (eval $ac_link) 2>conftest.er1
a848cd7e 26802 ac_status=$?
ac1cb8d3
VS
26803 grep -v '^ *+' conftest.er1 >conftest.err
26804 rm -f conftest.er1
26805 cat conftest.err >&5
a848cd7e
SC
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } &&
07158944 26808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; } &&
26814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ac_cv_func_shmat=yes
26821else
26822 echo "$as_me: failed program was:" >&5
26823sed 's/^/| /' conftest.$ac_ext >&5
26824
26825ac_cv_func_shmat=no
26826fi
ac1cb8d3
VS
26827rm -f conftest.err conftest.$ac_objext \
26828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26829fi
26830echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26831echo "${ECHO_T}$ac_cv_func_shmat" >&6
26832
26833 if test $ac_cv_func_shmat = no; then
26834 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26835echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26836if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26837 echo $ECHO_N "(cached) $ECHO_C" >&6
26838else
26839 ac_check_lib_save_LIBS=$LIBS
26840LIBS="-lipc $LIBS"
26841cat >conftest.$ac_ext <<_ACEOF
26842/* confdefs.h. */
26843_ACEOF
26844cat confdefs.h >>conftest.$ac_ext
26845cat >>conftest.$ac_ext <<_ACEOF
26846/* end confdefs.h. */
26847
26848/* Override any gcc2 internal prototype to avoid an error. */
26849#ifdef __cplusplus
26850extern "C"
26851#endif
26852/* We use char because int might match the return type of a gcc2
26853 builtin and then its argument prototype would still apply. */
26854char shmat ();
26855int
26856main ()
26857{
26858shmat ();
26859 ;
26860 return 0;
26861}
26862_ACEOF
26863rm -f conftest.$ac_objext conftest$ac_exeext
26864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26865 (eval $ac_link) 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); } &&
07158944 26872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26875 ac_status=$?
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; } &&
26878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; }; then
26884 ac_cv_lib_ipc_shmat=yes
26885else
26886 echo "$as_me: failed program was:" >&5
26887sed 's/^/| /' conftest.$ac_ext >&5
26888
26889ac_cv_lib_ipc_shmat=no
26890fi
ac1cb8d3
VS
26891rm -f conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26893LIBS=$ac_check_lib_save_LIBS
26894fi
26895echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26896echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26897if test $ac_cv_lib_ipc_shmat = yes; then
26898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26899fi
26900
26901 fi
26902 fi
26903
26904 # Check for libraries that X11R6 Xt/Xaw programs need.
26905 ac_save_LDFLAGS=$LDFLAGS
26906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26908 # check for ICE first), but we must link in the order -lSM -lICE or
26909 # we get undefined symbols. So assume we have SM if we have ICE.
26910 # These have to be linked with before -lX11, unlike the other
26911 # libraries we check for below, so use a different variable.
26912 # John Interrante, Karl Berry
26913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26914echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26915if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26917else
26918 ac_check_lib_save_LIBS=$LIBS
26919LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26920cat >conftest.$ac_ext <<_ACEOF
26921/* confdefs.h. */
26922_ACEOF
26923cat confdefs.h >>conftest.$ac_ext
26924cat >>conftest.$ac_ext <<_ACEOF
26925/* end confdefs.h. */
26926
26927/* Override any gcc2 internal prototype to avoid an error. */
26928#ifdef __cplusplus
26929extern "C"
26930#endif
26931/* We use char because int might match the return type of a gcc2
26932 builtin and then its argument prototype would still apply. */
26933char IceConnectionNumber ();
26934int
26935main ()
26936{
26937IceConnectionNumber ();
26938 ;
26939 return 0;
26940}
26941_ACEOF
26942rm -f conftest.$ac_objext conftest$ac_exeext
26943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26944 (eval $ac_link) 2>conftest.er1
a848cd7e 26945 ac_status=$?
ac1cb8d3
VS
26946 grep -v '^ *+' conftest.er1 >conftest.err
26947 rm -f conftest.er1
26948 cat conftest.err >&5
a848cd7e
SC
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); } &&
07158944 26951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; } &&
26957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
26963 ac_cv_lib_ICE_IceConnectionNumber=yes
26964else
26965 echo "$as_me: failed program was:" >&5
26966sed 's/^/| /' conftest.$ac_ext >&5
26967
26968ac_cv_lib_ICE_IceConnectionNumber=no
26969fi
ac1cb8d3
VS
26970rm -f conftest.err conftest.$ac_objext \
26971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26972LIBS=$ac_check_lib_save_LIBS
26973fi
26974echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26975echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26976if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26977 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26978fi
26979
26980 LDFLAGS=$ac_save_LDFLAGS
26981
26982fi
26983
26984
26985 if test "$no_x" = "yes"; then
26986 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26987echo "$as_me: error: X11 not found" >&2;}
26988 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26989 fi
26990
74b84332
VS
26991 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26992 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26993 AFMINSTALL=afminstall
26994 COMPILED_X_PROGRAM=0
26995
74b84332
VS
26996 fi
26997
26998 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26999 if test "$wxUSE_NANOX" = "yes"; then
27000 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27001echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27002 if test "x$MICROWIN" = x ; then
27003 echo "$as_me:$LINENO: result: not found" >&5
27004echo "${ECHO_T}not found" >&6
27005 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27006echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27007 { (exit 1); exit 1; }; }
27008 else
27009 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27010echo "${ECHO_T}$MICROWIN" >&6
27011 cat >>confdefs.h <<\_ACEOF
27012#define wxUSE_NANOX 1
27013_ACEOF
27014
27015 fi
27016 fi
27017
27018 if test "$wxUSE_UNICODE" = "yes"; then
27019
27020 succeeded=no
27021
27022 if test -z "$PKG_CONFIG"; then
27023 # Extract the first word of "pkg-config", so it can be a program name with args.
27024set dummy pkg-config; ac_word=$2
27025echo "$as_me:$LINENO: checking for $ac_word" >&5
27026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27027if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 case $PKG_CONFIG in
27031 [\\/]* | ?:[\\/]*)
27032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27033 ;;
27034 *)
27035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27036for as_dir in $PATH
27037do
27038 IFS=$as_save_IFS
27039 test -z "$as_dir" && as_dir=.
27040 for ac_exec_ext in '' $ac_executable_extensions; do
27041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27044 break 2
27045 fi
27046done
27047done
27048
27049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27050 ;;
27051esac
27052fi
27053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27054
27055if test -n "$PKG_CONFIG"; then
27056 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27057echo "${ECHO_T}$PKG_CONFIG" >&6
27058else
27059 echo "$as_me:$LINENO: result: no" >&5
27060echo "${ECHO_T}no" >&6
27061fi
27062
27063 fi
27064
27065 if test "$PKG_CONFIG" = "no" ; then
27066 echo "*** The pkg-config script could not be found. Make sure it is"
27067 echo "*** in your path, or set the PKG_CONFIG environment variable"
27068 echo "*** to the full path to pkg-config."
27069 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27070 else
27071 PKG_CONFIG_MIN_VERSION=0.9.0
27072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27073 echo "$as_me:$LINENO: checking for pangox" >&5
27074echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27075
27076 if $PKG_CONFIG --exists "pangox" ; then
27077 echo "$as_me:$LINENO: result: yes" >&5
27078echo "${ECHO_T}yes" >&6
27079 succeeded=yes
27080
27081 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27082echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27083 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27084 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27085echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27086
27087 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27088echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27089 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27090 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27091echo "${ECHO_T}$PANGOX_LIBS" >&6
27092 else
27093 PANGOX_CFLAGS=""
27094 PANGOX_LIBS=""
27095 ## If we have a custom action on failure, don't print errors, but
27096 ## do set a variable so people can do so.
27097 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27098
27099 fi
27100
27101
27102
27103 else
27104 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27105 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27106 fi
27107 fi
27108
27109 if test $succeeded = yes; then
27110
27111 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27113
27114 else
27115
27116 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27117echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27118 { (exit 1); exit 1; }; }
27119
27120
27121 fi
27122
27123
27124 succeeded=no
27125
27126 if test -z "$PKG_CONFIG"; then
27127 # Extract the first word of "pkg-config", so it can be a program name with args.
27128set dummy pkg-config; ac_word=$2
27129echo "$as_me:$LINENO: checking for $ac_word" >&5
27130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27131if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27133else
27134 case $PKG_CONFIG in
27135 [\\/]* | ?:[\\/]*)
27136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27137 ;;
27138 *)
27139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27140for as_dir in $PATH
27141do
27142 IFS=$as_save_IFS
27143 test -z "$as_dir" && as_dir=.
27144 for ac_exec_ext in '' $ac_executable_extensions; do
27145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27146 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27148 break 2
27149 fi
27150done
27151done
27152
27153 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27154 ;;
27155esac
27156fi
27157PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27158
27159if test -n "$PKG_CONFIG"; then
27160 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27161echo "${ECHO_T}$PKG_CONFIG" >&6
27162else
27163 echo "$as_me:$LINENO: result: no" >&5
27164echo "${ECHO_T}no" >&6
27165fi
27166
27167 fi
27168
27169 if test "$PKG_CONFIG" = "no" ; then
27170 echo "*** The pkg-config script could not be found. Make sure it is"
27171 echo "*** in your path, or set the PKG_CONFIG environment variable"
27172 echo "*** to the full path to pkg-config."
27173 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27174 else
27175 PKG_CONFIG_MIN_VERSION=0.9.0
27176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27177 echo "$as_me:$LINENO: checking for pangoft2" >&5
27178echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27179
27180 if $PKG_CONFIG --exists "pangoft2" ; then
27181 echo "$as_me:$LINENO: result: yes" >&5
27182echo "${ECHO_T}yes" >&6
27183 succeeded=yes
27184
27185 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27186echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27187 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27188 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27189echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27190
27191 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27192echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27193 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27194 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27195echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27196 else
27197 PANGOFT2_CFLAGS=""
27198 PANGOFT2_LIBS=""
27199 ## If we have a custom action on failure, don't print errors, but
27200 ## do set a variable so people can do so.
27201 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27202
27203 fi
27204
27205
27206
27207 else
27208 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27209 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27210 fi
27211 fi
27212
27213 if test $succeeded = yes; then
27214
27215 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27216 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27217
27218 else
27219
27220 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27221echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27222 wxUSE_PRINTING_ARCHITECTURE="no"
27223
27224
27225 fi
27226
27227
27228 succeeded=no
27229
27230 if test -z "$PKG_CONFIG"; then
27231 # Extract the first word of "pkg-config", so it can be a program name with args.
27232set dummy pkg-config; ac_word=$2
27233echo "$as_me:$LINENO: checking for $ac_word" >&5
27234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27235if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27237else
27238 case $PKG_CONFIG in
27239 [\\/]* | ?:[\\/]*)
27240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27241 ;;
27242 *)
27243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27244for as_dir in $PATH
27245do
27246 IFS=$as_save_IFS
27247 test -z "$as_dir" && as_dir=.
27248 for ac_exec_ext in '' $ac_executable_extensions; do
27249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27252 break 2
27253 fi
27254done
27255done
27256
27257 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27258 ;;
27259esac
27260fi
27261PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27262
27263if test -n "$PKG_CONFIG"; then
27264 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27265echo "${ECHO_T}$PKG_CONFIG" >&6
27266else
27267 echo "$as_me:$LINENO: result: no" >&5
27268echo "${ECHO_T}no" >&6
27269fi
27270
27271 fi
27272
27273 if test "$PKG_CONFIG" = "no" ; then
27274 echo "*** The pkg-config script could not be found. Make sure it is"
27275 echo "*** in your path, or set the PKG_CONFIG environment variable"
27276 echo "*** to the full path to pkg-config."
27277 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27278 else
27279 PKG_CONFIG_MIN_VERSION=0.9.0
27280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27281 echo "$as_me:$LINENO: checking for pangoxft" >&5
27282echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27283
27284 if $PKG_CONFIG --exists "pangoxft" ; then
27285 echo "$as_me:$LINENO: result: yes" >&5
27286echo "${ECHO_T}yes" >&6
27287 succeeded=yes
27288
27289 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27290echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27291 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27292 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27293echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27294
27295 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27296echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27297 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27298 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27299echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27300 else
27301 PANGOXFT_CFLAGS=""
27302 PANGOXFT_LIBS=""
27303 ## If we have a custom action on failure, don't print errors, but
27304 ## do set a variable so people can do so.
27305 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27306
27307 fi
27308
27309
27310
27311 else
27312 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27313 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27314 fi
27315 fi
27316
27317 if test $succeeded = yes; then
27318
4ae1af05
MB
27319 cat >>confdefs.h <<\_ACEOF
27320#define HAVE_PANGO_XFT 1
27321_ACEOF
27322
a848cd7e
SC
27323 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27324 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27325
27326 else
27327
27328 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27329echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27330
27331
27332 fi
27333
304205f1
VS
27334 save_CFLAGS="$CFLAGS"
27335 save_LIBS="$LIBS"
27336 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27337 LIBS="$LIBS $PANGOX_LIBS"
27338
27339for ac_func in pango_font_family_is_monospace
27340do
27341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27342echo "$as_me:$LINENO: checking for $ac_func" >&5
27343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27344if eval "test \"\${$as_ac_var+set}\" = set"; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347 cat >conftest.$ac_ext <<_ACEOF
27348/* confdefs.h. */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h. */
27353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27355#define $ac_func innocuous_$ac_func
27356
27357/* System header to define __stub macros and hopefully few prototypes,
27358 which can conflict with char $ac_func (); below.
27359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27360 <limits.h> exists even on freestanding compilers. */
27361
27362#ifdef __STDC__
27363# include <limits.h>
27364#else
27365# include <assert.h>
27366#endif
27367
27368#undef $ac_func
27369
27370/* Override any gcc2 internal prototype to avoid an error. */
27371#ifdef __cplusplus
27372extern "C"
27373{
27374#endif
27375/* We use char because int might match the return type of a gcc2
27376 builtin and then its argument prototype would still apply. */
27377char $ac_func ();
27378/* The GNU C library defines this for functions which it implements
27379 to always fail with ENOSYS. Some functions are actually named
27380 something starting with __ and the normal name is an alias. */
27381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27382choke me
27383#else
27384char (*f) () = $ac_func;
27385#endif
27386#ifdef __cplusplus
27387}
27388#endif
27389
27390int
27391main ()
27392{
27393return f != $ac_func;
27394 ;
27395 return 0;
27396}
27397_ACEOF
27398rm -f conftest.$ac_objext conftest$ac_exeext
27399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27400 (eval $ac_link) 2>conftest.er1
27401 ac_status=$?
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
07158944 27407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27419 eval "$as_ac_var=yes"
27420else
27421 echo "$as_me: failed program was:" >&5
27422sed 's/^/| /' conftest.$ac_ext >&5
27423
27424eval "$as_ac_var=no"
27425fi
27426rm -f conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
27428fi
27429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27431if test `eval echo '${'$as_ac_var'}'` = yes; then
27432 cat >>confdefs.h <<_ACEOF
27433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27434_ACEOF
27435
27436fi
27437done
27438
27439 CFLAGS="$save_CFLAGS"
27440 LIBS="$save_LIBS"
a848cd7e
SC
27441 fi
27442
27443 wxUSE_UNIVERSAL="yes"
27444
27445 if test "$wxUSE_NANOX" = "yes"; then
27446 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27447 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"
27448 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27449 else
27450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27451 fi
27452
a848cd7e
SC
27453 TOOLKIT=X11
27454 GUIDIST=X11_DIST
27455 fi
27456
27457 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27458 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27459echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27460
74b84332
VS
27461ac_find_includes=
27462for ac_dir in $SEARCH_INCLUDE /usr/include;
27463 do
27464 if test -f "$ac_dir/Xm/Xm.h"; then
27465 ac_find_includes=$ac_dir
27466 break
27467 fi
27468 done
a848cd7e 27469
74b84332
VS
27470 if test "$ac_find_includes" != "" ; then
27471 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27472echo "${ECHO_T}found in $ac_find_includes" >&6
27473
27474 if test "x$ac_find_includes" = "x/usr/include"; then
27475 ac_path_to_include=""
27476 else
27477 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27478 result=$?
27479 if test $result = 0; then
27480 ac_path_to_include=""
27481 else
27482 ac_path_to_include=" -I$ac_find_includes"
27483 fi
a848cd7e
SC
27484 fi
27485
74b84332
VS
27486 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27487 else
27488 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27489/* confdefs.h. */
27490_ACEOF
27491cat confdefs.h >>conftest.$ac_ext
27492cat >>conftest.$ac_ext <<_ACEOF
27493/* end confdefs.h. */
27494
74b84332
VS
27495 #include <Xm/Xm.h>
27496
a848cd7e
SC
27497int
27498main ()
27499{
27500
74b84332
VS
27501 int version;
27502 version = xmUseVersion;
27503
a848cd7e
SC
27504 ;
27505 return 0;
27506}
27507_ACEOF
74b84332
VS
27508rm -f conftest.$ac_objext
27509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27510 (eval $ac_compile) 2>conftest.er1
a848cd7e 27511 ac_status=$?
ac1cb8d3
VS
27512 grep -v '^ *+' conftest.er1 >conftest.err
27513 rm -f conftest.er1
27514 cat conftest.err >&5
a848cd7e
SC
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); } &&
07158944 27517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
74b84332 27523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
74b84332
VS
27529
27530 echo "$as_me:$LINENO: result: found in default search path" >&5
27531echo "${ECHO_T}found in default search path" >&6
27532 COMPILED_X_PROGRAM=1
27533
a848cd7e
SC
27534else
27535 echo "$as_me: failed program was:" >&5
27536sed 's/^/| /' conftest.$ac_ext >&5
27537
a848cd7e 27538
74b84332
VS
27539 echo "$as_me:$LINENO: result: no" >&5
27540echo "${ECHO_T}no" >&6
27541 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27542echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27543 { (exit 1); exit 1; }; }
a848cd7e 27544
a848cd7e 27545
a848cd7e 27546fi
74b84332
VS
27547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27548 fi
27549
27550 if test "$COMPILED_X_PROGRAM" = 0; then
27551 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27552echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27553
27554ac_find_libraries=
27555for ac_dir in $SEARCH_LIB /usr/lib;
27556 do
27557 for ac_extension in a so sl dylib; do
27558 if test -f "$ac_dir/libXm.$ac_extension"; then
27559 ac_find_libraries=$ac_dir
27560 break 2
a848cd7e 27561 fi
74b84332
VS
27562 done
27563 done
a848cd7e 27564
74b84332
VS
27565 if test "$ac_find_libraries" != "" ; then
27566 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27567echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27568
74b84332
VS
27569
27570 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27571 result=$?
27572 if test $result = 0; then
27573 ac_path_to_link=""
a848cd7e 27574 else
74b84332
VS
27575 ac_path_to_link=" -L$ac_find_libraries"
27576 fi
27577
27578 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27579 else
27580 save_CFLAGS=$CFLAGS
27581 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27582
27583 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27584/* confdefs.h. */
27585_ACEOF
27586cat confdefs.h >>conftest.$ac_ext
27587cat >>conftest.$ac_ext <<_ACEOF
27588/* end confdefs.h. */
27589
74b84332
VS
27590 #include <Xm/Xm.h>
27591
a848cd7e
SC
27592int
27593main ()
27594{
74b84332
VS
27595
27596 int version;
27597 version = xmUseVersion;
27598
a848cd7e
SC
27599 ;
27600 return 0;
27601}
27602_ACEOF
74b84332
VS
27603rm -f conftest.$ac_objext
27604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27605 (eval $ac_compile) 2>conftest.er1
a848cd7e 27606 ac_status=$?
ac1cb8d3
VS
27607 grep -v '^ *+' conftest.er1 >conftest.err
27608 rm -f conftest.er1
27609 cat conftest.err >&5
a848cd7e
SC
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); } &&
07158944 27612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; } &&
74b84332 27618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
74b84332
VS
27624
27625 echo "$as_me:$LINENO: result: found in default search path" >&5
27626echo "${ECHO_T}found in default search path" >&6
27627 COMPILED_X_PROGRAM=1
27628
a848cd7e
SC
27629else
27630 echo "$as_me: failed program was:" >&5
27631sed 's/^/| /' conftest.$ac_ext >&5
27632
74b84332
VS
27633
27634 echo "$as_me:$LINENO: result: no" >&5
27635echo "${ECHO_T}no" >&6
27636 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27637echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27638 { (exit 1); exit 1; }; }
27639
27640
27641fi
27642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27643
27644 CFLAGS=$save_CFLAGS
27645 fi
27646 fi
27647
27648 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27649echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27650 libp_link=""
27651 libsm_ice_link=""
27652 libs_found=0
27653 for libp in "" " -lXp"; do
27654 if test "$libs_found" = "0"; then
27655 for libsm_ice in "" " -lSM -lICE"; do
27656 if test "$libs_found" = "0"; then
27657 save_LIBS="$LIBS"
27658 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27659 save_CFLAGS=$CFLAGS
27660 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27661
27662 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27663/* confdefs.h. */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h. */
27668
74b84332
VS
27669 #include <Xm/Xm.h>
27670 #include <Xm/List.h>
27671
a848cd7e
SC
27672int
27673main ()
27674{
74b84332
VS
27675
27676 XmString string = NULL;
27677 Widget w = NULL;
27678 int position = 0;
27679 XmListAddItem(w, string, position);
27680
a848cd7e
SC
27681 ;
27682 return 0;
27683}
27684_ACEOF
27685rm -f conftest.$ac_objext conftest$ac_exeext
27686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27687 (eval $ac_link) 2>conftest.er1
a848cd7e 27688 ac_status=$?
ac1cb8d3
VS
27689 grep -v '^ *+' conftest.er1 >conftest.err
27690 rm -f conftest.er1
27691 cat conftest.err >&5
a848cd7e
SC
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } &&
07158944 27694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
27706
27707 libp_link="$libp"
27708 libsm_ice_link="$libsm_ice"
27709 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27710echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27711 libs_found=1
27712
27713else
27714 echo "$as_me: failed program was:" >&5
27715sed 's/^/| /' conftest.$ac_ext >&5
27716
27717
27718
27719fi
ac1cb8d3
VS
27720rm -f conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27722
27723 LIBS="$save_LIBS"
27724 CFLAGS=$save_CFLAGS
27725 fi
27726 done
27727 fi
27728 done
27729
27730 if test "$libs_found" = "0"; then
27731 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27732echo "${ECHO_T}can't find the right libraries" >&6
27733 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27734echo "$as_me: error: can't link a simple motif program" >&2;}
27735 { (exit 1); exit 1; }; }
27736 fi
27737
27738 save_CFLAGS=$CFLAGS
27739 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27740 echo "$as_me:$LINENO: checking for Motif 2" >&5
27741echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27742 cat >conftest.$ac_ext <<_ACEOF
27743/* confdefs.h. */
27744_ACEOF
27745cat confdefs.h >>conftest.$ac_ext
27746cat >>conftest.$ac_ext <<_ACEOF
27747/* end confdefs.h. */
27748
27749 #include <Xm/Xm.h>
27750
27751int
27752main ()
27753{
27754
27755 #if XmVersion < 2000
27756 #error "Not Motif 2"
27757 #endif
27758
27759 ;
27760 return 0;
27761}
27762_ACEOF
27763rm -f conftest.$ac_objext
27764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27765 (eval $ac_compile) 2>conftest.er1
a848cd7e 27766 ac_status=$?
ac1cb8d3
VS
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
a848cd7e
SC
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
07158944 27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784
27785 cat >>confdefs.h <<\_ACEOF
27786#define __WXMOTIF20__ 1
27787_ACEOF
27788
27789 echo "$as_me:$LINENO: result: found" >&5
27790echo "${ECHO_T}found" >&6
27791
27792else
27793 echo "$as_me: failed program was:" >&5
27794sed 's/^/| /' conftest.$ac_ext >&5
27795
27796
27797 cat >>confdefs.h <<\_ACEOF
27798#define __WXMOTIF20__ 0
27799_ACEOF
27800
27801 echo "$as_me:$LINENO: result: not found" >&5
27802echo "${ECHO_T}not found" >&6
27803
27804fi
ac1cb8d3 27805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27806 CFLAGS=$save_CFLAGS
27807
27808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27809 TOOLKIT=MOTIF
27810 GUIDIST=MOTIF_DIST
27811 fi
27812
74b84332 27813 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27814 if test "$wxUSE_LIBXPM" = "sys"; then
27815 echo "$as_me:$LINENO: checking for Xpm library" >&5
27816echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27817
27818ac_find_libraries=
27819for ac_dir in $SEARCH_LIB /usr/lib;
27820 do
27821 for ac_extension in a so sl dylib; do
27822 if test -f "$ac_dir/libXpm.$ac_extension"; then
27823 ac_find_libraries=$ac_dir
27824 break 2
27825 fi
27826 done
27827 done
27828
27829 if test "$ac_find_libraries" != "" ; then
27830
27831 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27832 result=$?
27833 if test $result = 0; then
27834 ac_path_to_link=""
27835 else
27836 ac_path_to_link=" -L$ac_find_libraries"
27837 fi
27838
27839 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27840 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27841echo "${ECHO_T}found at $ac_find_libraries" >&6
27842
27843 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27844echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27845if test "${wx_cv_x11_xpm_h+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27847else
27848
27849 save_CFLAGS=$CFLAGS
27850 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27851
27852 cat >conftest.$ac_ext <<_ACEOF
27853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
27858
27859 #include <X11/xpm.h>
27860
27861int
27862main ()
27863{
27864
27865 int version;
27866 version = XpmLibraryVersion();
27867
27868 ;
27869 return 0;
27870}
27871_ACEOF
27872rm -f conftest.$ac_objext
27873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27874 (eval $ac_compile) 2>conftest.er1
a848cd7e 27875 ac_status=$?
ac1cb8d3
VS
27876 grep -v '^ *+' conftest.er1 >conftest.err
27877 rm -f conftest.er1
27878 cat conftest.err >&5
a848cd7e
SC
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); } &&
07158944 27881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27883 (eval $ac_try) 2>&5
27884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; } &&
27887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
27893 wx_cv_x11_xpm_h=yes
27894else
27895 echo "$as_me: failed program was:" >&5
27896sed 's/^/| /' conftest.$ac_ext >&5
27897
27898wx_cv_x11_xpm_h=no
27899
27900fi
ac1cb8d3 27901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27902
27903 CFLAGS=$save_CFLAGS
27904
27905
27906fi
27907echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27908echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27909
27910 if test $wx_cv_x11_xpm_h = "yes"; then
27911 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27912 cat >>confdefs.h <<\_ACEOF
27913#define wxHAVE_LIB_XPM 1
27914_ACEOF
27915
27916 else
27917 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27918echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27919 fi
27920 fi
27921
27922 fi
27923
27924 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27925echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27926if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27928else
27929 ac_check_lib_save_LIBS=$LIBS
27930LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27931cat >conftest.$ac_ext <<_ACEOF
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
27937
27938/* Override any gcc2 internal prototype to avoid an error. */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
27942/* We use char because int might match the return type of a gcc2
27943 builtin and then its argument prototype would still apply. */
27944char XShapeQueryExtension ();
27945int
27946main ()
27947{
27948XShapeQueryExtension ();
27949 ;
27950 return 0;
27951}
27952_ACEOF
27953rm -f conftest.$ac_objext conftest$ac_exeext
27954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27955 (eval $ac_link) 2>conftest.er1
a848cd7e 27956 ac_status=$?
ac1cb8d3
VS
27957 grep -v '^ *+' conftest.er1 >conftest.err
27958 rm -f conftest.er1
27959 cat conftest.err >&5
a848cd7e
SC
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); } &&
07158944 27962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 ac_cv_lib_Xext_XShapeQueryExtension=yes
27975else
27976 echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
27979ac_cv_lib_Xext_XShapeQueryExtension=no
27980fi
ac1cb8d3
VS
27981rm -f conftest.err conftest.$ac_objext \
27982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27983LIBS=$ac_check_lib_save_LIBS
27984fi
27985echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27986echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27987if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27988
27989 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27990 wxHAVE_XEXT_LIB=1
27991
27992fi
27993
27994
27995 if test "$wxHAVE_XEXT_LIB" = 1; then
27996 save_CFLAGS="$CFLAGS"
27997 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27998
27999 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28000echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28001 cat >conftest.$ac_ext <<_ACEOF
28002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
28007
28008 #include <X11/Xlib.h>
28009 #include <X11/extensions/shape.h>
28010
28011int
28012main ()
28013{
28014
28015 int dummy1, dummy2;
28016 XShapeQueryExtension((Display*)NULL,
28017 (int*)NULL, (int*)NULL);
28018
28019 ;
28020 return 0;
28021}
28022_ACEOF
28023rm -f conftest.$ac_objext
28024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28025 (eval $ac_compile) 2>conftest.er1
a848cd7e 28026 ac_status=$?
ac1cb8d3
VS
28027 grep -v '^ *+' conftest.er1 >conftest.err
28028 rm -f conftest.er1
28029 cat conftest.err >&5
a848cd7e
SC
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); } &&
07158944 28032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28044
28045 cat >>confdefs.h <<\_ACEOF
28046#define HAVE_XSHAPE 1
28047_ACEOF
28048
28049 echo "$as_me:$LINENO: result: found" >&5
28050echo "${ECHO_T}found" >&6
28051
28052else
28053 echo "$as_me: failed program was:" >&5
28054sed 's/^/| /' conftest.$ac_ext >&5
28055
28056
28057 echo "$as_me:$LINENO: result: not found" >&5
28058echo "${ECHO_T}not found" >&6
28059
28060fi
ac1cb8d3 28061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28062 CFLAGS="$save_CFLAGS"
28063
28064 fi
28065 fi
28066
28067 if test "$wxUSE_MAC" = 1; then
28068 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28069echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28070 if test "$GCC" = yes; then
28071 echo "$as_me:$LINENO: result: gcc" >&5
28072echo "${ECHO_T}gcc" >&6
28073 CPPFLAGS_PASCAL="-fpascal-strings"
28074 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28075 echo "$as_me:$LINENO: result: xlc" >&5
28076echo "${ECHO_T}xlc" >&6
28077 CPPFLAGS_PASCAL="-qmacpstr"
28078 else
28079 echo "$as_me:$LINENO: result: none" >&5
28080echo "${ECHO_T}none" >&6
28081 fi
28082
1e9e8aba
DE
28083 if test "x$wxUSE_UNIX" = "xyes"; then
28084 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28085 else
28086 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28087 fi
a848cd7e 28088
a848cd7e
SC
28089 TOOLKIT=MAC
28090 GUIDIST=MACX_DIST
dd21ced8 28091 WXBASEPORT="_carbon"
a848cd7e
SC
28092 fi
28093
28094 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28095 TOOLKIT=COCOA
28096 GUIDIST=COCOA_DIST
28097 fi
28098
28099 if test "$wxUSE_PM" = 1; then
28100 TOOLKIT=PM
de59c161
RD
28101 GUIDIST=PM_DIST
28102 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28103echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28104if test "${wx_cv_spbcdata+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106else
28107
28108 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28109/* confdefs.h. */
28110_ACEOF
28111cat confdefs.h >>conftest.$ac_ext
28112cat >>conftest.$ac_ext <<_ACEOF
28113/* end confdefs.h. */
28114
28115 #define INCL_PM
28116 #include <os2.h>
28117
28118int
28119main ()
28120{
28121
28122 SPBCDATA test;
28123
28124 ;
28125 return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext
28129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28130 (eval $ac_compile) 2>conftest.er1
de59c161 28131 ac_status=$?
ac1cb8d3
VS
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
de59c161
RD
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
07158944 28137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 wx_cv_spbcdata=yes
28150else
28151 echo "$as_me: failed program was:" >&5
28152sed 's/^/| /' conftest.$ac_ext >&5
28153
28154wx_cv_spbcdata=no
28155
28156fi
ac1cb8d3 28157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28158
28159
28160fi
28161echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28162echo "${ECHO_T}$wx_cv_spbcdata" >&6
28163
28164 if test $wx_cv_spbcdata = "yes"; then
28165 cat >>confdefs.h <<\_ACEOF
28166#define HAVE_SPBCDATA 1
28167_ACEOF
28168
28169 fi
a848cd7e
SC
28170 fi
28171
28172 if test "$TOOLKIT" = "PM" ; then
28173 TOOLKIT_DIR="os2"
28174 else
28175 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28176 fi
28177
a848cd7e 28178 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28179 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28180 WIDGET_SET=univ
a848cd7e
SC
28181 fi
28182
28183 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28184 DISTDIR="wx\$(TOOLKIT)"
28185else
28186 USE_GUI=0
28187
28188 TOOLKIT_DIR="base"
28189
28190 if test "$USE_WIN32" = 1 ; then
a848cd7e 28191 TOOLKIT="MSW"
a848cd7e
SC
28192 fi
28193
a848cd7e
SC
28194 GUIDIST="BASE_DIST"
28195 DISTDIR="wxBase"
28196fi
28197
28198
28199
28200
28201IODBC_C_SRC=""
28202
28203
28204if test "$TOOLKIT" != "MSW" ; then
28205
28206 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28207
28208 if test "${ac_cv_header_sql_h+set}" = set; then
28209 echo "$as_me:$LINENO: checking for sql.h" >&5
28210echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28211if test "${ac_cv_header_sql_h+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213fi
28214echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28215echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28216else
28217 # Is the header compilable?
28218echo "$as_me:$LINENO: checking sql.h usability" >&5
28219echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
28226$ac_includes_default
28227#include <sql.h>
28228_ACEOF
28229rm -f conftest.$ac_objext
28230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28231 (eval $ac_compile) 2>conftest.er1
a848cd7e 28232 ac_status=$?
ac1cb8d3
VS
28233 grep -v '^ *+' conftest.er1 >conftest.err
28234 rm -f conftest.er1
28235 cat conftest.err >&5
a848cd7e
SC
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } &&
07158944 28238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28241 ac_status=$?
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; } &&
28244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246 (eval $ac_try) 2>&5
28247 ac_status=$?
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); }; }; then
28250 ac_header_compiler=yes
28251else
28252 echo "$as_me: failed program was:" >&5
28253sed 's/^/| /' conftest.$ac_ext >&5
28254
28255ac_header_compiler=no
28256fi
ac1cb8d3 28257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28259echo "${ECHO_T}$ac_header_compiler" >&6
28260
28261# Is the header present?
28262echo "$as_me:$LINENO: checking sql.h presence" >&5
28263echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28264cat >conftest.$ac_ext <<_ACEOF
28265/* confdefs.h. */
28266_ACEOF
28267cat confdefs.h >>conftest.$ac_ext
28268cat >>conftest.$ac_ext <<_ACEOF
28269/* end confdefs.h. */
28270#include <sql.h>
28271_ACEOF
28272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28274 ac_status=$?
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } >/dev/null; then
28280 if test -s conftest.err; then
28281 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28283 else
28284 ac_cpp_err=
28285 fi
28286else
28287 ac_cpp_err=yes
28288fi
28289if test -z "$ac_cpp_err"; then
28290 ac_header_preproc=yes
28291else
28292 echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295 ac_header_preproc=no
28296fi
28297rm -f conftest.err conftest.$ac_ext
28298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28299echo "${ECHO_T}$ac_header_preproc" >&6
28300
28301# So? What about this header?
ac1cb8d3
VS
28302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28303 yes:no: )
a848cd7e
SC
28304 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28305echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28306 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28307echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28308 ac_header_preproc=yes
a848cd7e 28309 ;;
ac1cb8d3 28310 no:yes:* )
a848cd7e
SC
28311 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28312echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28313 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28314echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28315 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28316echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28317 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28318echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28319 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28320echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28321 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28322echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28323 (
28324 cat <<\_ASBOX
ac1cb8d3
VS
28325## ----------------------------------------- ##
28326## Report this to wx-dev@lists.wxwidgets.org ##
28327## ----------------------------------------- ##
a848cd7e
SC
28328_ASBOX
28329 ) |
28330 sed "s/^/$as_me: WARNING: /" >&2
28331 ;;
28332esac
28333echo "$as_me:$LINENO: checking for sql.h" >&5
28334echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28335if test "${ac_cv_header_sql_h+set}" = set; then
28336 echo $ECHO_N "(cached) $ECHO_C" >&6
28337else
28338 ac_cv_header_sql_h=$ac_header_preproc
28339fi
28340echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28341echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28342
28343fi
28344if test $ac_cv_header_sql_h = yes; then
28345 found_sql_h=1
28346fi
28347
28348
28349 if test "x$found_sql_h" = "x1" ; then
28350 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28351echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28352if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28354else
28355 ac_check_lib_save_LIBS=$LIBS
28356LIBS="-liodbc $LIBS"
28357cat >conftest.$ac_ext <<_ACEOF
28358/* confdefs.h. */
28359_ACEOF
28360cat confdefs.h >>conftest.$ac_ext
28361cat >>conftest.$ac_ext <<_ACEOF
28362/* end confdefs.h. */
28363
28364/* Override any gcc2 internal prototype to avoid an error. */
28365#ifdef __cplusplus
28366extern "C"
28367#endif
28368/* We use char because int might match the return type of a gcc2
28369 builtin and then its argument prototype would still apply. */
28370char SQLAllocEnv ();
28371int
28372main ()
28373{
28374SQLAllocEnv ();
28375 ;
28376 return 0;
28377}
28378_ACEOF
28379rm -f conftest.$ac_objext conftest$ac_exeext
28380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28381 (eval $ac_link) 2>conftest.er1
a848cd7e 28382 ac_status=$?
ac1cb8d3
VS
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
a848cd7e
SC
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
07158944 28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_lib_iodbc_SQLAllocEnv=yes
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405ac_cv_lib_iodbc_SQLAllocEnv=no
28406fi
ac1cb8d3
VS
28407rm -f conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28409LIBS=$ac_check_lib_save_LIBS
28410fi
28411echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28412echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28413if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28414 ODBC_LINK=" -liodbc"
28415else
28416
28417 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28418echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28419if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28421else
28422 ac_check_lib_save_LIBS=$LIBS
28423LIBS="-lunixodbc $LIBS"
28424cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430
28431/* Override any gcc2 internal prototype to avoid an error. */
28432#ifdef __cplusplus
28433extern "C"
28434#endif
28435/* We use char because int might match the return type of a gcc2
28436 builtin and then its argument prototype would still apply. */
28437char SQLAllocEnv ();
28438int
28439main ()
28440{
28441SQLAllocEnv ();
28442 ;
28443 return 0;
28444}
28445_ACEOF
28446rm -f conftest.$ac_objext conftest$ac_exeext
28447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28448 (eval $ac_link) 2>conftest.er1
a848cd7e 28449 ac_status=$?
ac1cb8d3
VS
28450 grep -v '^ *+' conftest.er1 >conftest.err
28451 rm -f conftest.er1
28452 cat conftest.err >&5
a848cd7e
SC
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
07158944 28455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; } &&
28461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28467 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28468else
28469 echo "$as_me: failed program was:" >&5
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
28472ac_cv_lib_unixodbc_SQLAllocEnv=no
28473fi
ac1cb8d3
VS
28474rm -f conftest.err conftest.$ac_objext \
28475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28476LIBS=$ac_check_lib_save_LIBS
28477fi
28478echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28479echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28480if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28481 ODBC_LINK=" -lunixodbc"
28482else
28483
28484 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28485echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28486if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489 ac_check_lib_save_LIBS=$LIBS
28490LIBS="-lodbc $LIBS"
28491cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h. */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h. */
28497
28498/* Override any gcc2 internal prototype to avoid an error. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502/* We use char because int might match the return type of a gcc2
28503 builtin and then its argument prototype would still apply. */
28504char SQLAllocEnv ();
28505int
28506main ()
28507{
28508SQLAllocEnv ();
28509 ;
28510 return 0;
28511}
28512_ACEOF
28513rm -f conftest.$ac_objext conftest$ac_exeext
28514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28515 (eval $ac_link) 2>conftest.er1
a848cd7e 28516 ac_status=$?
ac1cb8d3
VS
28517 grep -v '^ *+' conftest.er1 >conftest.err
28518 rm -f conftest.er1
28519 cat conftest.err >&5
a848cd7e
SC
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
07158944 28522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_lib_odbc_SQLAllocEnv=yes
28535else
28536 echo "$as_me: failed program was:" >&5
28537sed 's/^/| /' conftest.$ac_ext >&5
28538
28539ac_cv_lib_odbc_SQLAllocEnv=no
28540fi
ac1cb8d3
VS
28541rm -f conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28543LIBS=$ac_check_lib_save_LIBS
28544fi
28545echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28546echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28547if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28548 ODBC_LINK=" -lodbc"
28549fi
28550
28551
28552fi
28553
28554
28555fi
28556
28557 fi
28558 if test "x$ODBC_LINK" = "x" ; then
28559 if test "$wxUSE_ODBC" = "sys" ; then
28560 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28561echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28562 { (exit 1); exit 1; }; }
28563 else
28564 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28565echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28566 wxUSE_ODBC=builtin
28567 fi
28568 else
28569 wxUSE_ODBC=sys
28570 fi
28571 fi
a848cd7e 28572
2da0c077
RD
28573 if test "$wxUSE_ODBC" = "builtin" ; then
28574 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28575#define wxUSE_BUILTIN_IODBC 1
28576_ACEOF
28577
a848cd7e
SC
28578 fi
28579fi
28580
2da0c077
RD
28581if test "$wxUSE_ODBC" != "no" ; then
28582 cat >>confdefs.h <<\_ACEOF
28583#define wxUSE_ODBC 1
28584_ACEOF
28585
28586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28587
28588 WXODBCFLAG="-D_IODBC_"
28589fi
a848cd7e 28590
01cb68df 28591
a848cd7e 28592if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28593 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28594 echo "$as_me:$LINENO: checking for Xinerama" >&5
28595echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28596
28597ac_find_libraries=
28598for ac_dir in $SEARCH_LIB /usr/lib;
28599 do
28600 for ac_extension in a so sl dylib; do
28601 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28602 ac_find_libraries=$ac_dir
28603 break 2
28604 fi
28605 done
28606 done
28607
28608 if test "$ac_find_libraries" != "" ; then
28609
28610 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28611 result=$?
28612 if test $result = 0; then
28613 ac_path_to_link=""
28614 else
28615 ac_path_to_link=" -L$ac_find_libraries"
28616 fi
28617
28618 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28619 LDFLAGS="$LDFLAGS $ac_path_to_link"
28620 fi
28621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28622 echo "$as_me:$LINENO: result: yes" >&5
28623echo "${ECHO_T}yes" >&6
28624
28625 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28626echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28627
28628ac_find_libraries=
28629for ac_dir in $SEARCH_LIB /usr/lib;
28630 do
28631 for ac_extension in a so sl dylib; do
28632 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28633 ac_find_libraries=$ac_dir
28634 break 2
28635 fi
28636 done
28637 done
28638
28639 if test "$ac_find_libraries" != "" ; then
28640 echo "$as_me:$LINENO: result: yes" >&5
28641echo "${ECHO_T}yes" >&6
28642
28643for ac_header in X11/extensions/xf86vmode.h
28644do
28645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28646echo "$as_me:$LINENO: checking for $ac_header" >&5
28647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28648if eval "test \"\${$as_ac_Header+set}\" = set"; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28650else
28651 cat >conftest.$ac_ext <<_ACEOF
28652/* confdefs.h. */
28653_ACEOF
28654cat confdefs.h >>conftest.$ac_ext
28655cat >>conftest.$ac_ext <<_ACEOF
28656/* end confdefs.h. */
28657
28658 #if HAVE_X11_XLIB_H
28659 #include <X11/Xlib.h>
28660 #endif
28661
28662
28663#include <$ac_header>
28664_ACEOF
28665rm -f conftest.$ac_objext
28666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28667 (eval $ac_compile) 2>conftest.er1
a848cd7e 28668 ac_status=$?
ac1cb8d3
VS
28669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
a848cd7e
SC
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } &&
07158944 28674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 eval "$as_ac_Header=yes"
28687else
28688 echo "$as_me: failed program was:" >&5
28689sed 's/^/| /' conftest.$ac_ext >&5
28690
28691eval "$as_ac_Header=no"
28692fi
ac1cb8d3 28693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28694fi
28695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28697if test `eval echo '${'$as_ac_Header'}'` = yes; then
28698 cat >>confdefs.h <<_ACEOF
28699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28700_ACEOF
28701
28702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28703
28704fi
28705
28706done
28707
28708 else
28709 echo "$as_me:$LINENO: result: no" >&5
28710echo "${ECHO_T}no" >&6
28711 fi
28712
28713 else
28714 echo "$as_me:$LINENO: result: no" >&5
28715echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28716 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28717echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28718 wxUSE_DISPLAY="no"
28719 fi
01cb68df
RG
28720 elif test "$wxUSE_MSW" = 1; then
28721
28722
28723for ac_header in multimon.h ddraw.h
28724do
28725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28726echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28728if eval "test \"\${$as_ac_Header+set}\" = set"; then
28729 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28730else
5294a27e 28731 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28732/* confdefs.h. */
28733_ACEOF
28734cat confdefs.h >>conftest.$ac_ext
28735cat >>conftest.$ac_ext <<_ACEOF
28736/* end confdefs.h. */
5294a27e
VZ
28737#include <windows.h>
28738
01cb68df
RG
28739#include <$ac_header>
28740_ACEOF
28741rm -f conftest.$ac_objext
28742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28743 (eval $ac_compile) 2>conftest.er1
01cb68df 28744 ac_status=$?
ac1cb8d3
VS
28745 grep -v '^ *+' conftest.er1 >conftest.err
28746 rm -f conftest.er1
28747 cat conftest.err >&5
01cb68df
RG
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } &&
07158944 28750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28756 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28758 (eval $ac_try) 2>&5
28759 ac_status=$?
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
5294a27e 28762 eval "$as_ac_Header=yes"
01cb68df
RG
28763else
28764 echo "$as_me: failed program was:" >&5
28765sed 's/^/| /' conftest.$ac_ext >&5
28766
5294a27e 28767eval "$as_ac_Header=no"
01cb68df 28768fi
ac1cb8d3 28769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28770fi
28771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28773if test `eval echo '${'$as_ac_Header'}'` = yes; then
28774 cat >>confdefs.h <<_ACEOF
28775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28776_ACEOF
28777
28778else
28779
5294a27e
VZ
28780 wxUSE_DISPLAY="no"
28781 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28782echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28783
28784fi
28785
28786done
28787
a848cd7e
SC
28788 fi
28789fi
28790
28791
28792USE_OPENGL=0
28793if test "$wxUSE_OPENGL" = "yes"; then
28794 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28795 OPENGL_LIBS="-framework OpenGL -framework AGL"
28796 elif test "$wxUSE_MSW" = 1; then
28797 OPENGL_LIBS="-lopengl32 -lglu32"
28798 else
28799
28800
28801ac_find_includes=
28802for ac_dir in $SEARCH_INCLUDE /usr/include;
28803 do
28804 if test -f "$ac_dir/GL/gl.h"; then
28805 ac_find_includes=$ac_dir
28806 break
28807 fi
28808 done
28809
28810 if test "$ac_find_includes" != "" ; then
28811 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28812echo "${ECHO_T}found in $ac_find_includes" >&6
28813
28814 if test "x$ac_find_includes" = "x/usr/include"; then
28815 ac_path_to_include=""
28816 else
28817 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28818 result=$?
28819 if test $result = 0; then
28820 ac_path_to_include=""
28821 else
28822 ac_path_to_include=" -I$ac_find_includes"
28823 fi
28824 fi
28825
28826 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28827 fi
28828
28829 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28830 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28831echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28832if test "${ac_cv_header_GL_gl_h+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834fi
28835echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28836echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28837else
28838 # Is the header compilable?
28839echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28840echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28841cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h. */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h. */
28847$ac_includes_default
28848#include <GL/gl.h>
28849_ACEOF
28850rm -f conftest.$ac_objext
28851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28852 (eval $ac_compile) 2>conftest.er1
a848cd7e 28853 ac_status=$?
ac1cb8d3
VS
28854 grep -v '^ *+' conftest.er1 >conftest.err
28855 rm -f conftest.er1
28856 cat conftest.err >&5
a848cd7e
SC
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } &&
07158944 28859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861 (eval $ac_try) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; } &&
28865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; }; then
28871 ac_header_compiler=yes
28872else
28873 echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876ac_header_compiler=no
28877fi
ac1cb8d3 28878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28880echo "${ECHO_T}$ac_header_compiler" >&6
28881
28882# Is the header present?
28883echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28884echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28885cat >conftest.$ac_ext <<_ACEOF
28886/* confdefs.h. */
28887_ACEOF
28888cat confdefs.h >>conftest.$ac_ext
28889cat >>conftest.$ac_ext <<_ACEOF
28890/* end confdefs.h. */
28891#include <GL/gl.h>
28892_ACEOF
28893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28895 ac_status=$?
28896 grep -v '^ *+' conftest.er1 >conftest.err
28897 rm -f conftest.er1
28898 cat conftest.err >&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } >/dev/null; then
28901 if test -s conftest.err; then
28902 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28904 else
28905 ac_cpp_err=
28906 fi
28907else
28908 ac_cpp_err=yes
28909fi
28910if test -z "$ac_cpp_err"; then
28911 ac_header_preproc=yes
28912else
28913 echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
28916 ac_header_preproc=no
28917fi
28918rm -f conftest.err conftest.$ac_ext
28919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28920echo "${ECHO_T}$ac_header_preproc" >&6
28921
28922# So? What about this header?
ac1cb8d3
VS
28923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28924 yes:no: )
a848cd7e
SC
28925 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28926echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28927 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28928echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28929 ac_header_preproc=yes
a848cd7e 28930 ;;
ac1cb8d3 28931 no:yes:* )
a848cd7e
SC
28932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28933echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28934 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28935echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28936 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28937echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28939echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28940 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28941echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28942 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28943echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28944 (
28945 cat <<\_ASBOX
ac1cb8d3
VS
28946## ----------------------------------------- ##
28947## Report this to wx-dev@lists.wxwidgets.org ##
28948## ----------------------------------------- ##
a848cd7e
SC
28949_ASBOX
28950 ) |
28951 sed "s/^/$as_me: WARNING: /" >&2
28952 ;;
28953esac
28954echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28955echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28956if test "${ac_cv_header_GL_gl_h+set}" = set; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28958else
28959 ac_cv_header_GL_gl_h=$ac_header_preproc
28960fi
28961echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28962echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28963
28964fi
28965if test $ac_cv_header_GL_gl_h = yes; then
28966
28967 found_gl=0
28968
28969 echo "$as_me:$LINENO: checking for -lGL" >&5
28970echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28971
28972ac_find_libraries=
28973for ac_dir in $SEARCH_LIB /usr/lib;
28974 do
28975 for ac_extension in a so sl dylib; do
28976 if test -f "$ac_dir/libGL.$ac_extension"; then
28977 ac_find_libraries=$ac_dir
28978 break 2
28979 fi
28980 done
28981 done
28982
28983 if test "$ac_find_libraries" != "" ; then
28984
28985 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28986 result=$?
28987 if test $result = 0; then
28988 ac_path_to_link=""
28989 else
28990 ac_path_to_link=" -L$ac_find_libraries"
28991 fi
28992
28993 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28994 LDFLAGS_GL="$ac_path_to_link"
28995 fi
28996
28997
28998ac_find_libraries=
28999for ac_dir in $SEARCH_LIB /usr/lib;
29000 do
29001 for ac_extension in a so sl dylib; do
29002 if test -f "$ac_dir/libGLU.$ac_extension"; then
29003 ac_find_libraries=$ac_dir
29004 break 2
29005 fi
29006 done
29007 done
29008
29009 if test "$ac_find_libraries" != "" ; then
29010
29011 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29012 result=$?
29013 if test $result = 0; then
29014 ac_path_to_link=""
29015 else
29016 ac_path_to_link=" -L$ac_find_libraries"
29017 fi
29018
29019 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29020 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29021 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29022 fi
29023
29024 found_gl=1
29025 OPENGL_LIBS="-lGL -lGLU"
29026 echo "$as_me:$LINENO: result: yes" >&5
29027echo "${ECHO_T}yes" >&6
29028 fi
29029 fi
29030
29031 if test "$found_gl" != 1; then
29032 echo "$as_me:$LINENO: result: no" >&5
29033echo "${ECHO_T}no" >&6
29034 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29035echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29036
29037ac_find_libraries=
29038for ac_dir in $SEARCH_LIB /usr/lib;
29039 do
29040 for ac_extension in a so sl dylib; do
29041 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29042 ac_find_libraries=$ac_dir
29043 break 2
29044 fi
29045 done
29046 done
29047
29048 if test "$ac_find_libraries" != "" ; then
29049
29050 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29051 result=$?
29052 if test $result = 0; then
29053 ac_path_to_link=""
29054 else
29055 ac_path_to_link=" -L$ac_find_libraries"
29056 fi
29057
29058 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29059 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29060 echo "$as_me:$LINENO: result: yes" >&5
29061echo "${ECHO_T}yes" >&6
29062 else
29063 echo "$as_me:$LINENO: result: no" >&5
29064echo "${ECHO_T}no" >&6
29065 fi
29066 fi
29067
29068fi
29069
29070
29071
29072 if test "x$OPENGL_LIBS" = "x"; then
29073 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29074echo "$as_me: error: OpenGL libraries not available" >&2;}
29075 { (exit 1); exit 1; }; }
29076 fi
29077 fi
29078
29079 if test "$wxUSE_OPENGL" = "yes"; then
29080 USE_OPENGL=1
29081 cat >>confdefs.h <<\_ACEOF
29082#define wxUSE_OPENGL 1
29083_ACEOF
29084
29085 cat >>confdefs.h <<\_ACEOF
29086#define wxUSE_GLCANVAS 1
29087_ACEOF
29088
29089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29090 fi
29091fi
29092
a848cd7e
SC
29093
29094if test -n "$TOOLKIT" ; then
29095 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29096fi
29097
a848cd7e
SC
29098
29099
29100if test "$wxUSE_SHARED" = "yes"; then
29101 case "${host}" in
29102 *-pc-msdosdjgpp )
29103 wxUSE_SHARED=no
29104 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29105echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29106 ;;
29107 esac
29108fi
29109
a848cd7e 29110if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29111
29112
29113 found_versioning=no
29114
29115
29116 if test $found_versioning = no ; then
29117 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29118echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29119if test "${wx_cv_version_script+set}" = set; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29121else
29122
29123 echo "VER_1 { *; };" >conftest.sym
29124 echo "int main() { return 0; }" >conftest.cpp
29125
29126 if { ac_try='
29127 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29128 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } ; then
29134 if test -s conftest.stderr ; then
29135 wx_cv_version_script=no
29136 else
29137 wx_cv_version_script=yes
29138 fi
29139 else
29140 wx_cv_version_script=no
29141 fi
29142 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29143
29144fi
29145echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29146echo "${ECHO_T}$wx_cv_version_script" >&6
29147 if test $wx_cv_version_script = yes ; then
29148 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29149 fi
29150 fi
29151
29152
29153 case "${host}" in
29154 *-*-linux* | *-*-gnu* )
29155 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29156 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29157 ;;
29158
29159 *-*-solaris2* )
29160 if test "$GCC" = yes ; then
29161 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29162
29163 saveLdflags="$LDFLAGS"
29164 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29165 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29166echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29167 cat >conftest.$ac_ext <<_ACEOF
29168/* confdefs.h. */
29169_ACEOF
29170cat confdefs.h >>conftest.$ac_ext
29171cat >>conftest.$ac_ext <<_ACEOF
29172/* end confdefs.h. */
29173
29174int
29175main ()
29176{
29177
29178 ;
29179 return 0;
29180}
29181_ACEOF
29182rm -f conftest.$ac_objext conftest$ac_exeext
29183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29184 (eval $ac_link) 2>conftest.er1
a848cd7e 29185 ac_status=$?
ac1cb8d3
VS
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
a848cd7e
SC
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } &&
07158944 29191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193 (eval $ac_try) 2>&5
29194 ac_status=$?
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); }; } &&
29197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199 (eval $ac_try) 2>&5
29200 ac_status=$?
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); }; }; then
29203
29204 echo "$as_me:$LINENO: result: yes" >&5
29205echo "${ECHO_T}yes" >&6
29206 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29207 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29208
29209else
29210 echo "$as_me: failed program was:" >&5
29211sed 's/^/| /' conftest.$ac_ext >&5
29212
29213
29214 echo "$as_me:$LINENO: result: no" >&5
29215echo "${ECHO_T}no" >&6
29216 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29217echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29218 LDFLAGS="$saveLdflags -Wl,-R,/"
29219 cat >conftest.$ac_ext <<_ACEOF
29220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
29225
29226int
29227main ()
29228{
29229
29230 ;
29231 return 0;
29232}
29233_ACEOF
29234rm -f conftest.$ac_objext conftest$ac_exeext
29235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29236 (eval $ac_link) 2>conftest.er1
a848cd7e 29237 ac_status=$?
ac1cb8d3
VS
29238 grep -v '^ *+' conftest.er1 >conftest.err
29239 rm -f conftest.er1
29240 cat conftest.err >&5
a848cd7e
SC
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
07158944 29243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; } &&
29249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); }; }; then
29255
ffa0583f 29256 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29257echo "${ECHO_T}yes" >&6
ffa0583f
RL
29258 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29259 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29260
a848cd7e
SC
29261else
29262 echo "$as_me: failed program was:" >&5
29263sed 's/^/| /' conftest.$ac_ext >&5
29264
29265
29266 echo "$as_me:$LINENO: result: no" >&5
29267echo "${ECHO_T}no" >&6
29268
29269fi
ac1cb8d3
VS
29270rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29272
29273fi
ac1cb8d3
VS
29274rm -f conftest.err conftest.$ac_objext \
29275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29276 LDFLAGS="$saveLdflags"
29277 else
a848cd7e 29278 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29279 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29280 fi
29281 ;;
29282
29283 powerpc-*-darwin* )
29284 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29285 cat <<EOF >change-install-names
29286#!/bin/sh
29287libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29288inst_cmd="install_name_tool "
29289for i in \${libnames} ; do
29290 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29291done
29292\${inst_cmd} \${3}
29293EOF
29294 chmod +x change-install-names
29295 ;;
29296
29297 *-*-cygwin* | *-*-mingw32* )
29298 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29299 ;;
29300
81f90336
MW
29301 *-*-hpux* )
29302 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29303 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29304 ;;
29305
a848cd7e 29306 esac
ceec2216 29307
ffa0583f
RL
29308 if test $wxUSE_RPATH = "no"; then
29309 SAMPLES_RPATH_FLAG=''
29310 SAMPLES_RPATH_POSTLINK=''
29311 WXCONFIG_RPATH=''
29312 fi
29313
29314 SHARED=1
29315
29316else
29317
ceec2216
RL
29318 config_linkage_component="-static"
29319 SHARED=0
ffa0583f 29320
ceec2216 29321fi
a848cd7e 29322
a848cd7e 29323
ceec2216
RL
29324UNICODE=0
29325lib_unicode_suffix=
29326WX_CHARTYPE="ansi"
29327if test "$wxUSE_UNICODE" = "yes"; then
29328 lib_unicode_suffix=u
29329 WX_CHARTYPE="unicode"
29330 UNICODE=1
a848cd7e
SC
29331fi
29332
ceec2216
RL
29333lib_debug_suffix=
29334WX_DEBUGTYPE="release"
29335DEBUG_FLAG=0
29336if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29337 lib_debug_suffix=d
29338 WX_DEBUGTYPE="debug"
29339 DEBUG_FLAG=1
29340fi
a848cd7e 29341
ceec2216
RL
29342WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29343WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29344
ceec2216
RL
29345DEBUG_INFO=0
29346if test "$wxUSE_DEBUG_INFO" = "yes"; then
29347 DEBUG_INFO=1
29348fi
a848cd7e 29349
ceec2216 29350WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29351
ceec2216 29352TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29353
ceec2216 29354TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29355
ceec2216
RL
29356if test "$cross_compiling" = "yes"; then
29357 HOST_SUFFIX="-$host_alias"
29358 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29359 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29360fi
29361
dd21ced8 29362WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29363WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29364
29365
29366
1d1af5ea
DE
29367if test "$wxUSE_COCOA" = 1; then
29368
29369
29370 ac_ext=c
29371ac_cpp='$CPP $CPPFLAGS'
29372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374ac_compiler_gnu=$ac_cv_c_compiler_gnu
29375
29376ac_ext=m
29377
29378 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29379echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29380 cat >conftest.$ac_ext <<_ACEOF
29381/* confdefs.h. */
29382_ACEOF
29383cat confdefs.h >>conftest.$ac_ext
29384cat >>conftest.$ac_ext <<_ACEOF
29385/* end confdefs.h. */
29386#include <AppKit/NSEvent.h>
29387#include <CoreFoundation/CoreFoundation.h>
29388
29389int
29390main ()
29391{
29392
29393 ;
29394 return 0;
29395}
29396_ACEOF
29397rm -f conftest.$ac_objext
29398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29399 (eval $ac_compile) 2>conftest.er1
29400 ac_status=$?
29401 grep -v '^ *+' conftest.er1 >conftest.err
29402 rm -f conftest.er1
29403 cat conftest.err >&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } &&
29406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; }; then
29418 echo "$as_me:$LINENO: result: no" >&5
29419echo "${ECHO_T}no" >&6
29420else
29421 echo "$as_me: failed program was:" >&5
29422sed 's/^/| /' conftest.$ac_ext >&5
29423
29424echo "$as_me:$LINENO: result: yes" >&5
29425echo "${ECHO_T}yes" >&6
29426 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29427echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29428 cat >conftest.$ac_ext <<_ACEOF
29429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
29434#define __Point__ 1
29435#include <AppKit/NSEvent.h>
29436#include <CoreFoundation/CoreFoundation.h>
29437
29438int
29439main ()
29440{
29441
29442 ;
29443 return 0;
29444}
29445_ACEOF
29446rm -f conftest.$ac_objext
29447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29448 (eval $ac_compile) 2>conftest.er1
29449 ac_status=$?
29450 grep -v '^ *+' conftest.er1 >conftest.err
29451 rm -f conftest.er1
29452 cat conftest.err >&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } &&
29455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457 (eval $ac_try) 2>&5
29458 ac_status=$?
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; } &&
29461 { ac_try='test -s conftest.$ac_objext'
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
29467 echo "$as_me:$LINENO: result: yes" >&5
29468echo "${ECHO_T}yes" >&6
29469 cat >>confdefs.h <<\_ACEOF
29470#define __Point__ 1
29471_ACEOF
29472
29473
29474else
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478{ { echo "$as_me:$LINENO: error: no
29479See \`config.log' for more details." >&5
29480echo "$as_me: error: no
29481See \`config.log' for more details." >&2;}
29482 { (exit 1); exit 1; }; }
29483
29484fi
29485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29486
29487fi
29488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29489 ac_ext=c
29490ac_cpp='$CPP $CPPFLAGS'
29491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29493ac_compiler_gnu=$ac_cv_c_compiler_gnu
29494
29495fi
29496
a848cd7e 29497if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29498 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29499 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29500
a848cd7e 29501 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29502
29503 # Extract the first word of "Rez", so it can be a program name with args.
29504set dummy Rez; ac_word=$2
29505echo "$as_me:$LINENO: checking for $ac_word" >&5
29506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29507if test "${ac_cv_prog_RESCOMP+set}" = set; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509else
29510 if test -n "$RESCOMP"; then
29511 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29512else
29513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29514for as_dir in $PATH
29515do
29516 IFS=$as_save_IFS
29517 test -z "$as_dir" && as_dir=.
29518 for ac_exec_ext in '' $ac_executable_extensions; do
29519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29520 ac_cv_prog_RESCOMP="Rez"
29521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29522 break 2
29523 fi
29524done
29525done
29526
29527 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29528fi
29529fi
29530RESCOMP=$ac_cv_prog_RESCOMP
29531if test -n "$RESCOMP"; then
29532 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29533echo "${ECHO_T}$RESCOMP" >&6
29534else
29535 echo "$as_me:$LINENO: result: no" >&5
29536echo "${ECHO_T}no" >&6
29537fi
29538
29539 # Extract the first word of "DeRez", so it can be a program name with args.
29540set dummy DeRez; ac_word=$2
29541echo "$as_me:$LINENO: checking for $ac_word" >&5
29542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29543if test "${ac_cv_prog_DEREZ+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29545else
29546 if test -n "$DEREZ"; then
29547 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29548else
29549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29550for as_dir in $PATH
29551do
29552 IFS=$as_save_IFS
29553 test -z "$as_dir" && as_dir=.
29554 for ac_exec_ext in '' $ac_executable_extensions; do
29555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29556 ac_cv_prog_DEREZ="DeRez"
29557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29558 break 2
29559 fi
29560done
29561done
29562
29563 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29564fi
29565fi
29566DEREZ=$ac_cv_prog_DEREZ
29567if test -n "$DEREZ"; then
29568 echo "$as_me:$LINENO: result: $DEREZ" >&5
29569echo "${ECHO_T}$DEREZ" >&6
29570else
29571 echo "$as_me:$LINENO: result: no" >&5
29572echo "${ECHO_T}no" >&6
29573fi
29574
29575 # Extract the first word of "SetFile", so it can be a program name with args.
29576set dummy SetFile; ac_word=$2
29577echo "$as_me:$LINENO: checking for $ac_word" >&5
29578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29579if test "${ac_cv_prog_SETFILE+set}" = set; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29581else
29582 if test -n "$SETFILE"; then
29583 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29584else
29585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29586for as_dir in $PATH
29587do
29588 IFS=$as_save_IFS
29589 test -z "$as_dir" && as_dir=.
29590 for ac_exec_ext in '' $ac_executable_extensions; do
29591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29592 ac_cv_prog_SETFILE="SetFile"
29593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29594 break 2
29595 fi
29596done
29597done
29598
29599 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29600fi
29601fi
29602SETFILE=$ac_cv_prog_SETFILE
29603if test -n "$SETFILE"; then
29604 echo "$as_me:$LINENO: result: $SETFILE" >&5
29605echo "${ECHO_T}$SETFILE" >&6
29606else
29607 echo "$as_me:$LINENO: result: no" >&5
29608echo "${ECHO_T}no" >&6
29609fi
29610
29611
29612 MACSETFILE="\$(SETFILE)"
29613
29614 if test "$wxUSE_MAC" = 1; then
29615 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29616
29617 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29618 else
29619 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29620 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29621 fi
29622else
ffa0583f
RL
29623 MACSETFILE="@true"
29624 MACRESWXCONFIG="@true"
a848cd7e
SC
29625
29626 if test "$wxUSE_PM" = 1; then
29627 MACRESCOMP="emxbind -ep"
29628 else
ffa0583f 29629 MACRESCOMP="@true"
a848cd7e
SC
29630 fi
29631fi
29632
29633
29634
29635echo "$as_me:$LINENO: checking for mode_t" >&5
29636echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29637if test "${ac_cv_type_mode_t+set}" = set; then
29638 echo $ECHO_N "(cached) $ECHO_C" >&6
29639else
29640 cat >conftest.$ac_ext <<_ACEOF
29641/* confdefs.h. */
29642_ACEOF
29643cat confdefs.h >>conftest.$ac_ext
29644cat >>conftest.$ac_ext <<_ACEOF
29645/* end confdefs.h. */
29646$ac_includes_default
29647int
29648main ()
29649{
29650if ((mode_t *) 0)
29651 return 0;
29652if (sizeof (mode_t))
29653 return 0;
29654 ;
29655 return 0;
29656}
29657_ACEOF
29658rm -f conftest.$ac_objext
29659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29660 (eval $ac_compile) 2>conftest.er1
a848cd7e 29661 ac_status=$?
ac1cb8d3
VS
29662 grep -v '^ *+' conftest.er1 >conftest.err
29663 rm -f conftest.er1
29664 cat conftest.err >&5
a848cd7e
SC
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } &&
07158944 29667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29669 (eval $ac_try) 2>&5
29670 ac_status=$?
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); }; } &&
29673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 ac_cv_type_mode_t=yes
29680else
29681 echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684ac_cv_type_mode_t=no
29685fi
ac1cb8d3 29686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29687fi
29688echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29689echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29690if test $ac_cv_type_mode_t = yes; then
29691 :
29692else
29693
29694cat >>confdefs.h <<_ACEOF
29695#define mode_t int
29696_ACEOF
29697
29698fi
29699
29700echo "$as_me:$LINENO: checking for off_t" >&5
29701echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29702if test "${ac_cv_type_off_t+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29704else
29705 cat >conftest.$ac_ext <<_ACEOF
29706/* confdefs.h. */
29707_ACEOF
29708cat confdefs.h >>conftest.$ac_ext
29709cat >>conftest.$ac_ext <<_ACEOF
29710/* end confdefs.h. */
29711$ac_includes_default
29712int
29713main ()
29714{
29715if ((off_t *) 0)
29716 return 0;
29717if (sizeof (off_t))
29718 return 0;
29719 ;
29720 return 0;
29721}
29722_ACEOF
29723rm -f conftest.$ac_objext
29724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29725 (eval $ac_compile) 2>conftest.er1
a848cd7e 29726 ac_status=$?
ac1cb8d3
VS
29727 grep -v '^ *+' conftest.er1 >conftest.err
29728 rm -f conftest.er1
29729 cat conftest.err >&5
a848cd7e
SC
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); } &&
07158944 29732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29735 ac_status=$?
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; } &&
29738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; }; then
29744 ac_cv_type_off_t=yes
29745else
29746 echo "$as_me: failed program was:" >&5
29747sed 's/^/| /' conftest.$ac_ext >&5
29748
29749ac_cv_type_off_t=no
29750fi
ac1cb8d3 29751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29752fi
29753echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29754echo "${ECHO_T}$ac_cv_type_off_t" >&6
29755if test $ac_cv_type_off_t = yes; then
29756 :
29757else
29758
29759cat >>confdefs.h <<_ACEOF
29760#define off_t long
29761_ACEOF
29762
29763fi
29764
29765echo "$as_me:$LINENO: checking for pid_t" >&5
29766echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29767if test "${ac_cv_type_pid_t+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29769else
29770 cat >conftest.$ac_ext <<_ACEOF
29771/* confdefs.h. */
29772_ACEOF
29773cat confdefs.h >>conftest.$ac_ext
29774cat >>conftest.$ac_ext <<_ACEOF
29775/* end confdefs.h. */
29776$ac_includes_default
29777int
29778main ()
29779{
29780if ((pid_t *) 0)
29781 return 0;
29782if (sizeof (pid_t))
29783 return 0;
29784 ;
29785 return 0;
29786}
29787_ACEOF
29788rm -f conftest.$ac_objext
29789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29790 (eval $ac_compile) 2>conftest.er1
a848cd7e 29791 ac_status=$?
ac1cb8d3
VS
29792 grep -v '^ *+' conftest.er1 >conftest.err
29793 rm -f conftest.er1
29794 cat conftest.err >&5
a848cd7e
SC
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } &&
07158944 29797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799 (eval $ac_try) 2>&5
29800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; }; then
29809 ac_cv_type_pid_t=yes
29810else
29811 echo "$as_me: failed program was:" >&5
29812sed 's/^/| /' conftest.$ac_ext >&5
29813
29814ac_cv_type_pid_t=no
29815fi
ac1cb8d3 29816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29817fi
29818echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29819echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29820if test $ac_cv_type_pid_t = yes; then
29821 :
29822else
29823
29824cat >>confdefs.h <<_ACEOF
29825#define pid_t int
29826_ACEOF
29827
29828fi
29829
29830echo "$as_me:$LINENO: checking for size_t" >&5
29831echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29832if test "${ac_cv_type_size_t+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29834else
29835 cat >conftest.$ac_ext <<_ACEOF
29836/* confdefs.h. */
29837_ACEOF
29838cat confdefs.h >>conftest.$ac_ext
29839cat >>conftest.$ac_ext <<_ACEOF
29840/* end confdefs.h. */
29841$ac_includes_default
29842int
29843main ()
29844{
29845if ((size_t *) 0)
29846 return 0;
29847if (sizeof (size_t))
29848 return 0;
29849 ;
29850 return 0;
29851}
29852_ACEOF
29853rm -f conftest.$ac_objext
29854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29855 (eval $ac_compile) 2>conftest.er1
a848cd7e 29856 ac_status=$?
ac1cb8d3
VS
29857 grep -v '^ *+' conftest.er1 >conftest.err
29858 rm -f conftest.er1
29859 cat conftest.err >&5
a848cd7e
SC
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } &&
07158944 29862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864 (eval $ac_try) 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; } &&
29868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; }; then
29874 ac_cv_type_size_t=yes
29875else
29876 echo "$as_me: failed program was:" >&5
29877sed 's/^/| /' conftest.$ac_ext >&5
29878
29879ac_cv_type_size_t=no
29880fi
ac1cb8d3 29881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29882fi
29883echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29884echo "${ECHO_T}$ac_cv_type_size_t" >&6
29885if test $ac_cv_type_size_t = yes; then
29886 :
29887else
29888
29889cat >>confdefs.h <<_ACEOF
29890#define size_t unsigned
29891_ACEOF
29892
29893fi
29894
29895echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29896echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29897if test "${ac_cv_type_uid_t+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 cat >conftest.$ac_ext <<_ACEOF
29901/* confdefs.h. */
29902_ACEOF
29903cat confdefs.h >>conftest.$ac_ext
29904cat >>conftest.$ac_ext <<_ACEOF
29905/* end confdefs.h. */
29906#include <sys/types.h>
29907
29908_ACEOF
29909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29910 $EGREP "uid_t" >/dev/null 2>&1; then
29911 ac_cv_type_uid_t=yes
29912else
29913 ac_cv_type_uid_t=no
29914fi
29915rm -f conftest*
29916
29917fi
29918echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29919echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29920if test $ac_cv_type_uid_t = no; then
29921
29922cat >>confdefs.h <<\_ACEOF
29923#define uid_t int
29924_ACEOF
29925
29926
29927cat >>confdefs.h <<\_ACEOF
29928#define gid_t int
29929_ACEOF
29930
29931fi
29932
29933
d51253e8
RL
29934echo "$as_me:$LINENO: checking for ssize_t" >&5
29935echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29936if test "${ac_cv_type_ssize_t+set}" = set; then
29937 echo $ECHO_N "(cached) $ECHO_C" >&6
29938else
29939 cat >conftest.$ac_ext <<_ACEOF
29940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
29945$ac_includes_default
29946int
29947main ()
29948{
29949if ((ssize_t *) 0)
29950 return 0;
29951if (sizeof (ssize_t))
29952 return 0;
29953 ;
29954 return 0;
29955}
29956_ACEOF
29957rm -f conftest.$ac_objext
29958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29959 (eval $ac_compile) 2>conftest.er1
29960 ac_status=$?
29961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
07158944 29966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; } &&
29972 { ac_try='test -s conftest.$ac_objext'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 ac_cv_type_ssize_t=yes
29979else
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983ac_cv_type_ssize_t=no
29984fi
29985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29986fi
29987echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29988echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29989if test $ac_cv_type_ssize_t = yes; then
29990
29991cat >>confdefs.h <<_ACEOF
29992#define HAVE_SSIZE_T 1
29993_ACEOF
29994
29995
29996fi
29997
29998
a848cd7e
SC
29999
30000
30001ac_ext=cc
30002ac_cpp='$CXXCPP $CPPFLAGS'
30003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30006
30007echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30008echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30009if test "${wx_cv_size_t_is_uint+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30011else
30012
30013 cat >conftest.$ac_ext <<_ACEOF
30014/* confdefs.h. */
30015_ACEOF
30016cat confdefs.h >>conftest.$ac_ext
30017cat >>conftest.$ac_ext <<_ACEOF
30018/* end confdefs.h. */
30019#include <stddef.h>
30020int
30021main ()
30022{
30023
30024 return 0; }
30025
30026 struct Foo { void foo(size_t); void foo(unsigned int); };
30027
30028 int bar() {
30029
30030 ;
30031 return 0;
30032}
30033_ACEOF
30034rm -f conftest.$ac_objext
30035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30036 (eval $ac_compile) 2>conftest.er1
a848cd7e 30037 ac_status=$?
ac1cb8d3
VS
30038 grep -v '^ *+' conftest.er1 >conftest.err
30039 rm -f conftest.er1
30040 cat conftest.err >&5
a848cd7e
SC
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } &&
07158944 30043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045 (eval $ac_try) 2>&5
30046 ac_status=$?
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; } &&
30049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
30055 wx_cv_size_t_is_uint=no
30056else
30057 echo "$as_me: failed program was:" >&5
30058sed 's/^/| /' conftest.$ac_ext >&5
30059
30060wx_cv_size_t_is_uint=yes
30061
30062fi
ac1cb8d3 30063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30064
30065
30066fi
30067echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30068echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30069
30070if test "$wx_cv_size_t_is_uint" = "yes"; then
30071 cat >>confdefs.h <<\_ACEOF
30072#define wxSIZE_T_IS_UINT 1
30073_ACEOF
30074
30075else
30076 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30077echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30078if test "${wx_cv_size_t_is_ulong+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
30081 cat >conftest.$ac_ext <<_ACEOF
30082/* confdefs.h. */
30083_ACEOF
30084cat confdefs.h >>conftest.$ac_ext
30085cat >>conftest.$ac_ext <<_ACEOF
30086/* end confdefs.h. */
30087#include <stddef.h>
30088int
30089main ()
30090{
30091
30092 return 0; }
30093
30094 struct Foo { void foo(size_t); void foo(unsigned long); };
30095
30096 int bar() {
30097
30098 ;
30099 return 0;
30100}
30101_ACEOF
30102rm -f conftest.$ac_objext
30103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30104 (eval $ac_compile) 2>conftest.er1
a848cd7e 30105 ac_status=$?
ac1cb8d3
VS
30106 grep -v '^ *+' conftest.er1 >conftest.err
30107 rm -f conftest.er1
30108 cat conftest.err >&5
a848cd7e
SC
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } &&
07158944 30111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; } &&
30117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30119 (eval $ac_try) 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; }; then
30123 wx_cv_size_t_is_ulong=no
30124else
30125 echo "$as_me: failed program was:" >&5
30126sed 's/^/| /' conftest.$ac_ext >&5
30127
30128wx_cv_size_t_is_ulong=yes
30129
30130fi
ac1cb8d3 30131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30132
30133fi
30134echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30135echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30136
30137 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30138 cat >>confdefs.h <<\_ACEOF
30139#define wxSIZE_T_IS_ULONG 1
30140_ACEOF
30141
30142 fi
30143fi
30144
30145ac_ext=c
30146ac_cpp='$CPP $CPPFLAGS'
30147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30149ac_compiler_gnu=$ac_cv_c_compiler_gnu
30150
30151
30152
30153echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30154echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30155if test "${wx_cv_struct_pw_gecos+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30157else
30158
30159 cat >conftest.$ac_ext <<_ACEOF
30160/* confdefs.h. */
30161_ACEOF
30162cat confdefs.h >>conftest.$ac_ext
30163cat >>conftest.$ac_ext <<_ACEOF
30164/* end confdefs.h. */
30165#include <pwd.h>
30166int
30167main ()
30168{
30169
30170 char *p;
30171 struct passwd *pw;
30172 p = pw->pw_gecos;
30173
30174 ;
30175 return 0;
30176}
30177_ACEOF
30178rm -f conftest.$ac_objext
30179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30180 (eval $ac_compile) 2>conftest.er1
a848cd7e 30181 ac_status=$?
ac1cb8d3
VS
30182 grep -v '^ *+' conftest.er1 >conftest.err
30183 rm -f conftest.er1
30184 cat conftest.err >&5
a848cd7e
SC
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } &&
07158944 30187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30189 (eval $ac_try) 2>&5
30190 ac_status=$?
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; } &&
30193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30196 ac_status=$?
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; }; then
30199
30200 wx_cv_struct_pw_gecos=yes
30201
30202else
30203 echo "$as_me: failed program was:" >&5
30204sed 's/^/| /' conftest.$ac_ext >&5
30205
30206
30207 wx_cv_struct_pw_gecos=no
30208
30209
30210fi
ac1cb8d3 30211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30212
30213
30214fi
30215echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30216echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30217
30218if test "$wx_cv_struct_pw_gecos" = "yes"; then
30219 cat >>confdefs.h <<\_ACEOF
30220#define HAVE_PW_GECOS 1
30221_ACEOF
30222
30223fi
30224
30225
238ecede 30226if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30227 cat >>confdefs.h <<\_ACEOF
30228#define wxUSE_WCHAR_T 1
30229_ACEOF
30230
30231
30232 WCSLEN_FOUND=0
30233 WCHAR_LINK=
30234
30235for ac_func in wcslen
30236do
30237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30238echo "$as_me:$LINENO: checking for $ac_func" >&5
30239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30240if eval "test \"\${$as_ac_var+set}\" = set"; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 cat >conftest.$ac_ext <<_ACEOF
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
ac1cb8d3
VS
30249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30251#define $ac_func innocuous_$ac_func
30252
a848cd7e
SC
30253/* System header to define __stub macros and hopefully few prototypes,
30254 which can conflict with char $ac_func (); below.
30255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30257
a848cd7e
SC
30258#ifdef __STDC__
30259# include <limits.h>
30260#else
30261# include <assert.h>
30262#endif
ac1cb8d3
VS
30263
30264#undef $ac_func
30265
a848cd7e
SC
30266/* Override any gcc2 internal prototype to avoid an error. */
30267#ifdef __cplusplus
30268extern "C"
30269{
30270#endif
30271/* We use char because int might match the return type of a gcc2
30272 builtin and then its argument prototype would still apply. */
30273char $ac_func ();
30274/* The GNU C library defines this for functions which it implements
30275 to always fail with ENOSYS. Some functions are actually named
30276 something starting with __ and the normal name is an alias. */
30277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30278choke me
30279#else
30280char (*f) () = $ac_func;
30281#endif
30282#ifdef __cplusplus
30283}
30284#endif
30285
30286int
30287main ()
30288{
30289return f != $ac_func;
30290 ;
30291 return 0;
30292}
30293_ACEOF
30294rm -f conftest.$ac_objext conftest$ac_exeext
30295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30296 (eval $ac_link) 2>conftest.er1
a848cd7e 30297 ac_status=$?
ac1cb8d3
VS
30298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
a848cd7e
SC
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
07158944 30303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; } &&
30309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311 (eval $ac_try) 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 eval "$as_ac_var=yes"
30316else
30317 echo "$as_me: failed program was:" >&5
30318sed 's/^/| /' conftest.$ac_ext >&5
30319
30320eval "$as_ac_var=no"
30321fi
ac1cb8d3
VS
30322rm -f conftest.err conftest.$ac_objext \
30323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30324fi
30325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30327if test `eval echo '${'$as_ac_var'}'` = yes; then
30328 cat >>confdefs.h <<_ACEOF
30329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30330_ACEOF
30331 WCSLEN_FOUND=1
30332fi
30333done
30334
30335
30336 if test "$WCSLEN_FOUND" = 0; then
30337 if test "$TOOLKIT" = "MSW"; then
30338 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30339echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30340if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342else
30343 ac_check_lib_save_LIBS=$LIBS
30344LIBS="-lmsvcrt $LIBS"
30345cat >conftest.$ac_ext <<_ACEOF
30346/* confdefs.h. */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h. */
30351
30352/* Override any gcc2 internal prototype to avoid an error. */
30353#ifdef __cplusplus
30354extern "C"
30355#endif
30356/* We use char because int might match the return type of a gcc2
30357 builtin and then its argument prototype would still apply. */
30358char wcslen ();
30359int
30360main ()
30361{
30362wcslen ();
30363 ;
30364 return 0;
30365}
30366_ACEOF
30367rm -f conftest.$ac_objext conftest$ac_exeext
30368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30369 (eval $ac_link) 2>conftest.er1
a848cd7e 30370 ac_status=$?
ac1cb8d3
VS
30371 grep -v '^ *+' conftest.er1 >conftest.err
30372 rm -f conftest.er1
30373 cat conftest.err >&5
a848cd7e
SC
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); } &&
07158944 30376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30378 (eval $ac_try) 2>&5
30379 ac_status=$?
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); }; } &&
30382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; }; then
30388 ac_cv_lib_msvcrt_wcslen=yes
30389else
30390 echo "$as_me: failed program was:" >&5
30391sed 's/^/| /' conftest.$ac_ext >&5
30392
30393ac_cv_lib_msvcrt_wcslen=no
30394fi
ac1cb8d3
VS
30395rm -f conftest.err conftest.$ac_objext \
30396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30397LIBS=$ac_check_lib_save_LIBS
30398fi
30399echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30400echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30401if test $ac_cv_lib_msvcrt_wcslen = yes; then
30402 WCHAR_OK=1
30403fi
30404
30405 else
30406 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30407echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30408if test "${ac_cv_lib_w_wcslen+set}" = set; then
30409 echo $ECHO_N "(cached) $ECHO_C" >&6
30410else
30411 ac_check_lib_save_LIBS=$LIBS
30412LIBS="-lw $LIBS"
30413cat >conftest.$ac_ext <<_ACEOF
30414/* confdefs.h. */
30415_ACEOF
30416cat confdefs.h >>conftest.$ac_ext
30417cat >>conftest.$ac_ext <<_ACEOF
30418/* end confdefs.h. */
30419
30420/* Override any gcc2 internal prototype to avoid an error. */
30421#ifdef __cplusplus
30422extern "C"
30423#endif
30424/* We use char because int might match the return type of a gcc2
30425 builtin and then its argument prototype would still apply. */
30426char wcslen ();
30427int
30428main ()
30429{
30430wcslen ();
30431 ;
30432 return 0;
30433}
30434_ACEOF
30435rm -f conftest.$ac_objext conftest$ac_exeext
30436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30437 (eval $ac_link) 2>conftest.er1
a848cd7e 30438 ac_status=$?
ac1cb8d3
VS
30439 grep -v '^ *+' conftest.er1 >conftest.err
30440 rm -f conftest.er1
30441 cat conftest.err >&5
a848cd7e
SC
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
07158944 30444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; } &&
30450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; }; then
30456 ac_cv_lib_w_wcslen=yes
30457else
30458 echo "$as_me: failed program was:" >&5
30459sed 's/^/| /' conftest.$ac_ext >&5
30460
30461ac_cv_lib_w_wcslen=no
30462fi
ac1cb8d3
VS
30463rm -f conftest.err conftest.$ac_objext \
30464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30465LIBS=$ac_check_lib_save_LIBS
30466fi
30467echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30468echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30469if test $ac_cv_lib_w_wcslen = yes; then
30470
30471 WCHAR_LINK=" -lw"
30472 WCSLEN_FOUND=1
30473
30474fi
30475
30476 fi
30477 fi
30478
30479 if test "$WCSLEN_FOUND" = 1; then
30480 cat >>confdefs.h <<\_ACEOF
30481#define HAVE_WCSLEN 1
30482_ACEOF
30483
30484 fi
30485
81f90336 30486 if test "$USE_HPUX" = 1; then
473276a9
VS
30487 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30488 fi
30489
a848cd7e
SC
30490
30491for ac_func in wcsrtombs
30492do
30493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30494echo "$as_me:$LINENO: checking for $ac_func" >&5
30495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30496if eval "test \"\${$as_ac_var+set}\" = set"; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30498else
30499 cat >conftest.$ac_ext <<_ACEOF
30500/* confdefs.h. */
30501_ACEOF
30502cat confdefs.h >>conftest.$ac_ext
30503cat >>conftest.$ac_ext <<_ACEOF
30504/* end confdefs.h. */
ac1cb8d3
VS
30505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30507#define $ac_func innocuous_$ac_func
30508
a848cd7e
SC
30509/* System header to define __stub macros and hopefully few prototypes,
30510 which can conflict with char $ac_func (); below.
30511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30512 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30513
a848cd7e
SC
30514#ifdef __STDC__
30515# include <limits.h>
30516#else
30517# include <assert.h>
30518#endif
ac1cb8d3
VS
30519
30520#undef $ac_func
30521
a848cd7e
SC
30522/* Override any gcc2 internal prototype to avoid an error. */
30523#ifdef __cplusplus
30524extern "C"
30525{
30526#endif
30527/* We use char because int might match the return type of a gcc2
30528 builtin and then its argument prototype would still apply. */
30529char $ac_func ();
30530/* The GNU C library defines this for functions which it implements
30531 to always fail with ENOSYS. Some functions are actually named
30532 something starting with __ and the normal name is an alias. */
30533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30534choke me
30535#else
30536char (*f) () = $ac_func;
30537#endif
30538#ifdef __cplusplus
30539}
30540#endif
30541
30542int
30543main ()
30544{
30545return f != $ac_func;
30546 ;
30547 return 0;
30548}
30549_ACEOF
30550rm -f conftest.$ac_objext conftest$ac_exeext
30551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30552 (eval $ac_link) 2>conftest.er1
a848cd7e 30553 ac_status=$?
ac1cb8d3
VS
30554 grep -v '^ *+' conftest.er1 >conftest.err
30555 rm -f conftest.er1
30556 cat conftest.err >&5
a848cd7e
SC
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); } &&
07158944 30559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561 (eval $ac_try) 2>&5
30562 ac_status=$?
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; } &&
30565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 eval "$as_ac_var=yes"
30572else
30573 echo "$as_me: failed program was:" >&5
30574sed 's/^/| /' conftest.$ac_ext >&5
30575
30576eval "$as_ac_var=no"
30577fi
ac1cb8d3
VS
30578rm -f conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30580fi
30581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30583if test `eval echo '${'$as_ac_var'}'` = yes; then
30584 cat >>confdefs.h <<_ACEOF
30585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586_ACEOF
30587
30588fi
30589done
30590
30591else
30592 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30593echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30594fi
30595
30596
30597
30598ac_ext=cc
30599ac_cpp='$CXXCPP $CPPFLAGS'
30600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30603
30604
30605
30606for ac_func in vsnprintf
30607do
30608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30609echo "$as_me:$LINENO: checking for $ac_func" >&5
30610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30611if eval "test \"\${$as_ac_var+set}\" = set"; then
30612 echo $ECHO_N "(cached) $ECHO_C" >&6
30613else
30614 cat >conftest.$ac_ext <<_ACEOF
30615/* confdefs.h. */
30616_ACEOF
30617cat confdefs.h >>conftest.$ac_ext
30618cat >>conftest.$ac_ext <<_ACEOF
30619/* end confdefs.h. */
ac1cb8d3
VS
30620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30622#define $ac_func innocuous_$ac_func
30623
a848cd7e
SC
30624/* System header to define __stub macros and hopefully few prototypes,
30625 which can conflict with char $ac_func (); below.
30626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30627 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30628
a848cd7e
SC
30629#ifdef __STDC__
30630# include <limits.h>
30631#else
30632# include <assert.h>
30633#endif
ac1cb8d3
VS
30634
30635#undef $ac_func
30636
a848cd7e
SC
30637/* Override any gcc2 internal prototype to avoid an error. */
30638#ifdef __cplusplus
30639extern "C"
30640{
30641#endif
30642/* We use char because int might match the return type of a gcc2
30643 builtin and then its argument prototype would still apply. */
30644char $ac_func ();
30645/* The GNU C library defines this for functions which it implements
30646 to always fail with ENOSYS. Some functions are actually named
30647 something starting with __ and the normal name is an alias. */
30648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30649choke me
30650#else
30651char (*f) () = $ac_func;
30652#endif
30653#ifdef __cplusplus
30654}
30655#endif
30656
30657int
30658main ()
30659{
30660return f != $ac_func;
30661 ;
30662 return 0;
30663}
30664_ACEOF
30665rm -f conftest.$ac_objext conftest$ac_exeext
30666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30667 (eval $ac_link) 2>conftest.er1
a848cd7e 30668 ac_status=$?
ac1cb8d3
VS
30669 grep -v '^ *+' conftest.er1 >conftest.err
30670 rm -f conftest.er1
30671 cat conftest.err >&5
a848cd7e
SC
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); } &&
07158944 30674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; }; then
30686 eval "$as_ac_var=yes"
30687else
30688 echo "$as_me: failed program was:" >&5
30689sed 's/^/| /' conftest.$ac_ext >&5
30690
30691eval "$as_ac_var=no"
30692fi
ac1cb8d3
VS
30693rm -f conftest.err conftest.$ac_objext \
30694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30695fi
30696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30698if test `eval echo '${'$as_ac_var'}'` = yes; then
30699 cat >>confdefs.h <<_ACEOF
30700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30701_ACEOF
30702
30703fi
30704done
30705
30706
30707if test "$ac_cv_func_vsnprintf" = "yes"; then
30708 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30709echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30710if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713
30714 cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
30720
30721 #include <stdio.h>
30722 #include <stdarg.h>
30723
30724int
30725main ()
30726{
30727
30728 char *buf;
30729 va_list ap;
30730 vsnprintf(buf, 10u, "%s", ap);
30731
30732 ;
30733 return 0;
30734}
30735_ACEOF
30736rm -f conftest.$ac_objext
30737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30738 (eval $ac_compile) 2>conftest.er1
a848cd7e 30739 ac_status=$?
ac1cb8d3
VS
30740 grep -v '^ *+' conftest.er1 >conftest.err
30741 rm -f conftest.er1
30742 cat conftest.err >&5
a848cd7e
SC
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } &&
07158944 30745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; } &&
30751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753 (eval $ac_try) 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 wx_cv_func_vsnprintf_decl=yes
30758else
30759 echo "$as_me: failed program was:" >&5
30760sed 's/^/| /' conftest.$ac_ext >&5
30761
c122b164
DE
30762
30763 cat >conftest.$ac_ext <<_ACEOF
30764/* confdefs.h. */
30765_ACEOF
30766cat confdefs.h >>conftest.$ac_ext
30767cat >>conftest.$ac_ext <<_ACEOF
30768/* end confdefs.h. */
30769
30770 #include <stdio.h>
30771 #include <stdarg.h>
30772 using namespace std;
30773
30774int
30775main ()
30776{
30777
30778 char *buf;
30779 va_list ap;
30780 vsnprintf(buf, 10u, "%s", ap);
30781
30782 ;
30783 return 0;
30784}
30785_ACEOF
30786rm -f conftest.$ac_objext
30787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30788 (eval $ac_compile) 2>conftest.er1
30789 ac_status=$?
30790 grep -v '^ *+' conftest.er1 >conftest.err
30791 rm -f conftest.er1
30792 cat conftest.err >&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
07158944 30795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; } &&
30801 { ac_try='test -s conftest.$ac_objext'
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30804 ac_status=$?
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; }; then
30807 wx_cv_func_vsnprintf_decl=yes
30808else
30809 echo "$as_me: failed program was:" >&5
30810sed 's/^/| /' conftest.$ac_ext >&5
30811
a848cd7e
SC
30812wx_cv_func_vsnprintf_decl=no
30813
30814fi
ac1cb8d3 30815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30816
30817
c122b164
DE
30818fi
30819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30820
30821
a848cd7e
SC
30822fi
30823echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30824echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30825
30826 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30827 cat >>confdefs.h <<\_ACEOF
30828#define HAVE_VSNPRINTF_DECL 1
30829_ACEOF
30830
30831 fi
30832fi
30833
30834if test "$wxUSE_UNICODE" = yes; then
30835
30836
30837
fbe47c7b
VS
30838
30839
30840
30841for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30842do
30843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30844echo "$as_me:$LINENO: checking for $ac_func" >&5
30845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30846if eval "test \"\${$as_ac_var+set}\" = set"; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848else
30849 cat >conftest.$ac_ext <<_ACEOF
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
ac1cb8d3
VS
30855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30857#define $ac_func innocuous_$ac_func
30858
a848cd7e
SC
30859/* System header to define __stub macros and hopefully few prototypes,
30860 which can conflict with char $ac_func (); below.
30861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30862 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30863
a848cd7e
SC
30864#ifdef __STDC__
30865# include <limits.h>
30866#else
30867# include <assert.h>
30868#endif
ac1cb8d3
VS
30869
30870#undef $ac_func
30871
a848cd7e
SC
30872/* Override any gcc2 internal prototype to avoid an error. */
30873#ifdef __cplusplus
30874extern "C"
30875{
30876#endif
30877/* We use char because int might match the return type of a gcc2
30878 builtin and then its argument prototype would still apply. */
30879char $ac_func ();
30880/* The GNU C library defines this for functions which it implements
30881 to always fail with ENOSYS. Some functions are actually named
30882 something starting with __ and the normal name is an alias. */
30883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30884choke me
30885#else
30886char (*f) () = $ac_func;
30887#endif
30888#ifdef __cplusplus
30889}
30890#endif
30891
30892int
30893main ()
30894{
30895return f != $ac_func;
30896 ;
30897 return 0;
30898}
30899_ACEOF
30900rm -f conftest.$ac_objext conftest$ac_exeext
30901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30902 (eval $ac_link) 2>conftest.er1
a848cd7e 30903 ac_status=$?
ac1cb8d3
VS
30904 grep -v '^ *+' conftest.er1 >conftest.err
30905 rm -f conftest.er1
30906 cat conftest.err >&5
a848cd7e
SC
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } &&
07158944 30909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30912 ac_status=$?
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; } &&
30915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30917 (eval $ac_try) 2>&5
30918 ac_status=$?
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); }; }; then
30921 eval "$as_ac_var=yes"
30922else
30923 echo "$as_me: failed program was:" >&5
30924sed 's/^/| /' conftest.$ac_ext >&5
30925
30926eval "$as_ac_var=no"
30927fi
ac1cb8d3
VS
30928rm -f conftest.err conftest.$ac_objext \
30929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30930fi
30931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30933if test `eval echo '${'$as_ac_var'}'` = yes; then
30934 cat >>confdefs.h <<_ACEOF
30935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30936_ACEOF
30937
30938fi
30939done
30940
30941
30942 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30943echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30944 cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950#include <wchar.h>
30951int
30952main ()
30953{
30954&_vsnwprintf;
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959rm -f conftest.$ac_objext
30960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30961 (eval $ac_compile) 2>conftest.er1
a848cd7e 30962 ac_status=$?
ac1cb8d3
VS
30963 grep -v '^ *+' conftest.er1 >conftest.err
30964 rm -f conftest.er1
30965 cat conftest.err >&5
a848cd7e
SC
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
07158944 30968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; } &&
30974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976 (eval $ac_try) 2>&5
30977 ac_status=$?
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; }; then
30980 echo "$as_me:$LINENO: result: yes" >&5
30981echo "${ECHO_T}yes" >&6
30982 cat >>confdefs.h <<\_ACEOF
30983#define HAVE__VSNWPRINTF 1
30984_ACEOF
30985
30986else
30987 echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990echo "$as_me:$LINENO: result: no" >&5
30991echo "${ECHO_T}no" >&6
30992fi
ac1cb8d3 30993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30994fi
30995
30996ac_ext=c
30997ac_cpp='$CPP $CPPFLAGS'
30998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31000ac_compiler_gnu=$ac_cv_c_compiler_gnu
31001
31002
31003
31004
31005if test "$TOOLKIT" != "MSW"; then
31006
31007
31008
31009
31010ac_ext=cc
31011ac_cpp='$CXXCPP $CPPFLAGS'
31012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31015
31016
31017
31018
31019# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31020if test "${with_libiconv_prefix+set}" = set; then
31021 withval="$with_libiconv_prefix"
31022
31023 for dir in `echo "$withval" | tr : ' '`; do
31024 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31025 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31026 done
31027
31028fi;
31029
31030 echo "$as_me:$LINENO: checking for iconv" >&5
31031echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31032if test "${am_cv_func_iconv+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31034else
31035
31036 am_cv_func_iconv="no, consider installing GNU libiconv"
31037 am_cv_lib_iconv=no
31038 cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044#include <stdlib.h>
31045#include <iconv.h>
31046int
31047main ()
31048{
31049iconv_t cd = iconv_open("","");
31050 iconv(cd,NULL,NULL,NULL,NULL);
31051 iconv_close(cd);
31052 ;
31053 return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext conftest$ac_exeext
31057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31058 (eval $ac_link) 2>conftest.er1
a848cd7e 31059 ac_status=$?
ac1cb8d3
VS
31060 grep -v '^ *+' conftest.er1 >conftest.err
31061 rm -f conftest.er1
31062 cat conftest.err >&5
a848cd7e
SC
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } &&
07158944 31065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31068 ac_status=$?
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; } &&
31071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 am_cv_func_iconv=yes
31078else
31079 echo "$as_me: failed program was:" >&5
31080sed 's/^/| /' conftest.$ac_ext >&5
31081
31082fi
ac1cb8d3
VS
31083rm -f conftest.err conftest.$ac_objext \
31084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31085 if test "$am_cv_func_iconv" != yes; then
31086 am_save_LIBS="$LIBS"
31087 LIBS="$LIBS -liconv"
31088 cat >conftest.$ac_ext <<_ACEOF
31089/* confdefs.h. */
31090_ACEOF
31091cat confdefs.h >>conftest.$ac_ext
31092cat >>conftest.$ac_ext <<_ACEOF
31093/* end confdefs.h. */
31094#include <stdlib.h>
31095#include <iconv.h>
31096int
31097main ()
31098{
31099iconv_t cd = iconv_open("","");
31100 iconv(cd,NULL,NULL,NULL,NULL);
31101 iconv_close(cd);
31102 ;
31103 return 0;
31104}
31105_ACEOF
31106rm -f conftest.$ac_objext conftest$ac_exeext
31107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31108 (eval $ac_link) 2>conftest.er1
a848cd7e 31109 ac_status=$?
ac1cb8d3
VS
31110 grep -v '^ *+' conftest.er1 >conftest.err
31111 rm -f conftest.er1
31112 cat conftest.err >&5
a848cd7e
SC
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } &&
07158944 31115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; } &&
31121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123 (eval $ac_try) 2>&5
31124 ac_status=$?
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31127 am_cv_lib_iconv=yes
31128 am_cv_func_iconv=yes
31129else
31130 echo "$as_me: failed program was:" >&5
31131sed 's/^/| /' conftest.$ac_ext >&5
31132
31133fi
ac1cb8d3
VS
31134rm -f conftest.err conftest.$ac_objext \
31135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31136 LIBS="$am_save_LIBS"
31137 fi
31138
31139fi
31140echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31141echo "${ECHO_T}$am_cv_func_iconv" >&6
31142 if test "$am_cv_func_iconv" = yes; then
31143
31144cat >>confdefs.h <<\_ACEOF
31145#define HAVE_ICONV 1
31146_ACEOF
31147
31148 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31149echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31150if test "${wx_cv_func_iconv_const+set}" = set; then
31151 echo $ECHO_N "(cached) $ECHO_C" >&6
31152else
31153 cat >conftest.$ac_ext <<_ACEOF
31154/* confdefs.h. */
31155_ACEOF
31156cat confdefs.h >>conftest.$ac_ext
31157cat >>conftest.$ac_ext <<_ACEOF
31158/* end confdefs.h. */
31159
31160#include <stdlib.h>
31161#include <iconv.h>
31162extern
31163#ifdef __cplusplus
31164"C"
31165#endif
31166#if defined(__STDC__) || defined(__cplusplus)
31167size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31168#else
31169size_t iconv();
31170#endif
31171
31172int
31173main ()
31174{
31175
31176 ;
31177 return 0;
31178}
31179_ACEOF
31180rm -f conftest.$ac_objext
31181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31182 (eval $ac_compile) 2>conftest.er1
a848cd7e 31183 ac_status=$?
ac1cb8d3
VS
31184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
a848cd7e
SC
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
07158944 31189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; } &&
31195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31197 (eval $ac_try) 2>&5
31198 ac_status=$?
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); }; }; then
31201 wx_cv_func_iconv_const="no"
31202else
31203 echo "$as_me: failed program was:" >&5
31204sed 's/^/| /' conftest.$ac_ext >&5
31205
31206wx_cv_func_iconv_const="yes"
31207
31208fi
ac1cb8d3 31209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31210
31211fi
31212echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31213echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31214
31215 iconv_const=
31216 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31217 iconv_const="const"
31218 fi
31219
31220
31221cat >>confdefs.h <<_ACEOF
31222#define ICONV_CONST $iconv_const
31223_ACEOF
31224
31225 fi
31226 LIBICONV=
31227 if test "$am_cv_lib_iconv" = yes; then
31228 LIBICONV="-liconv"
31229 fi
31230
31231
31232LIBS="$LIBICONV $LIBS"
31233ac_ext=c
31234ac_cpp='$CPP $CPPFLAGS'
31235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31237ac_compiler_gnu=$ac_cv_c_compiler_gnu
31238
31239
31240if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31241
31242for ac_func in sigaction
31243do
31244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31245echo "$as_me:$LINENO: checking for $ac_func" >&5
31246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31247if eval "test \"\${$as_ac_var+set}\" = set"; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
31250 cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
ac1cb8d3
VS
31256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31258#define $ac_func innocuous_$ac_func
31259
a848cd7e
SC
31260/* System header to define __stub macros and hopefully few prototypes,
31261 which can conflict with char $ac_func (); below.
31262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31264
a848cd7e
SC
31265#ifdef __STDC__
31266# include <limits.h>
31267#else
31268# include <assert.h>
31269#endif
ac1cb8d3
VS
31270
31271#undef $ac_func
31272
a848cd7e
SC
31273/* Override any gcc2 internal prototype to avoid an error. */
31274#ifdef __cplusplus
31275extern "C"
31276{
31277#endif
31278/* We use char because int might match the return type of a gcc2
31279 builtin and then its argument prototype would still apply. */
31280char $ac_func ();
31281/* The GNU C library defines this for functions which it implements
31282 to always fail with ENOSYS. Some functions are actually named
31283 something starting with __ and the normal name is an alias. */
31284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31285choke me
31286#else
31287char (*f) () = $ac_func;
31288#endif
31289#ifdef __cplusplus
31290}
31291#endif
31292
31293int
31294main ()
31295{
31296return f != $ac_func;
31297 ;
31298 return 0;
31299}
31300_ACEOF
31301rm -f conftest.$ac_objext conftest$ac_exeext
31302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31303 (eval $ac_link) 2>conftest.er1
a848cd7e 31304 ac_status=$?
ac1cb8d3
VS
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
a848cd7e
SC
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
07158944 31310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312 (eval $ac_try) 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; } &&
31316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31318 (eval $ac_try) 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; }; then
31322 eval "$as_ac_var=yes"
31323else
31324 echo "$as_me: failed program was:" >&5
31325sed 's/^/| /' conftest.$ac_ext >&5
31326
31327eval "$as_ac_var=no"
31328fi
ac1cb8d3
VS
31329rm -f conftest.err conftest.$ac_objext \
31330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31331fi
31332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31334if test `eval echo '${'$as_ac_var'}'` = yes; then
31335 cat >>confdefs.h <<_ACEOF
31336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31337_ACEOF
31338
31339fi
31340done
31341
31342
31343 if test "$ac_cv_func_sigaction" = "no"; then
31344 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31345echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31346 wxUSE_ON_FATAL_EXCEPTION=no
31347 fi
31348
31349 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31350
31351
31352 ac_ext=cc
31353ac_cpp='$CXXCPP $CPPFLAGS'
31354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31357
31358
31359 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31360echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31361if test "${wx_cv_type_sa_handler+set}" = set; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31363else
31364
31365 cat >conftest.$ac_ext <<_ACEOF
31366/* confdefs.h. */
31367_ACEOF
31368cat confdefs.h >>conftest.$ac_ext
31369cat >>conftest.$ac_ext <<_ACEOF
31370/* end confdefs.h. */
31371#include <signal.h>
31372int
31373main ()
31374{
31375
31376 extern void testSigHandler(int);
31377
31378 struct sigaction sa;
31379 sa.sa_handler = testSigHandler;
31380
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext
31386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31387 (eval $ac_compile) 2>conftest.er1
a848cd7e 31388 ac_status=$?
ac1cb8d3
VS
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
a848cd7e
SC
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } &&
07158944 31394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402 (eval $ac_try) 2>&5
31403 ac_status=$?
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); }; }; then
31406
31407 wx_cv_type_sa_handler=int
31408
31409else
31410 echo "$as_me: failed program was:" >&5
31411sed 's/^/| /' conftest.$ac_ext >&5
31412
31413
31414 wx_cv_type_sa_handler=void
31415
31416fi
ac1cb8d3 31417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31418
31419fi
31420echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31421echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31422
31423 ac_ext=c
31424ac_cpp='$CPP $CPPFLAGS'
31425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31427ac_compiler_gnu=$ac_cv_c_compiler_gnu
31428
31429
31430 cat >>confdefs.h <<_ACEOF
31431#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31432_ACEOF
31433
31434 fi
31435fi
31436
eaff0f0d
VZ
31437if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31438
31439
31440 ac_ext=cc
31441ac_cpp='$CXXCPP $CPPFLAGS'
31442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31445
31446
31447 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31448echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31449if test "${wx_cv_func_backtrace+set}" = set; then
31450 echo $ECHO_N "(cached) $ECHO_C" >&6
31451else
31452
31453 cat >conftest.$ac_ext <<_ACEOF
31454/* confdefs.h. */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h. */
31459#include <execinfo.h>
31460int
31461main ()
31462{
31463
31464 void *trace[1];
31465 char **messages;
31466
31467 backtrace(trace, 1);
31468 messages = backtrace_symbols(trace, 1);
31469
31470 ;
31471 return 0;
31472}
31473_ACEOF
31474rm -f conftest.$ac_objext
31475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31476 (eval $ac_compile) 2>conftest.er1
31477 ac_status=$?
31478 grep -v '^ *+' conftest.er1 >conftest.err
31479 rm -f conftest.er1
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } &&
07158944 31483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; } &&
31489 { ac_try='test -s conftest.$ac_objext'
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31492 ac_status=$?
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 wx_cv_func_backtrace=yes
31496else
31497 echo "$as_me: failed program was:" >&5
31498sed 's/^/| /' conftest.$ac_ext >&5
31499
31500wx_cv_func_backtrace=no
31501
31502fi
31503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31504
31505
31506fi
31507echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31508echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31509
31510
31511 if test "$wx_cv_func_backtrace" = "no"; then
31512 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31513echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31514 wxUSE_STACKWALKER=no
31515 else
31516 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31517echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31518if test "${wx_cv_func_cxa_demangle+set}" = set; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31520else
31521
31522 cat >conftest.$ac_ext <<_ACEOF
31523/* confdefs.h. */
31524_ACEOF
31525cat confdefs.h >>conftest.$ac_ext
31526cat >>conftest.$ac_ext <<_ACEOF
31527/* end confdefs.h. */
31528#include <cxxabi.h>
31529int
31530main ()
31531{
31532
31533 int rc;
31534 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31535
31536 ;
31537 return 0;
31538}
31539_ACEOF
31540rm -f conftest.$ac_objext
31541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542 (eval $ac_compile) 2>conftest.er1
31543 ac_status=$?
31544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
07158944 31549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; } &&
31555 { ac_try='test -s conftest.$ac_objext'
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 wx_cv_func_cxa_demangle=yes
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566wx_cv_func_cxa_demangle=no
31567
31568fi
31569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31570
31571
31572fi
31573echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31574echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31575
31576 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31577 cat >>confdefs.h <<\_ACEOF
31578#define HAVE_CXA_DEMANGLE 1
31579_ACEOF
31580
31581 fi
31582 fi
31583
31584 ac_ext=c
31585ac_cpp='$CPP $CPPFLAGS'
31586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588ac_compiler_gnu=$ac_cv_c_compiler_gnu
31589
31590fi
31591
a848cd7e
SC
31592
31593
31594for ac_func in mkstemp mktemp
31595do
31596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31597echo "$as_me:$LINENO: checking for $ac_func" >&5
31598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31599if eval "test \"\${$as_ac_var+set}\" = set"; then
31600 echo $ECHO_N "(cached) $ECHO_C" >&6
31601else
31602 cat >conftest.$ac_ext <<_ACEOF
31603/* confdefs.h. */
31604_ACEOF
31605cat confdefs.h >>conftest.$ac_ext
31606cat >>conftest.$ac_ext <<_ACEOF
31607/* end confdefs.h. */
ac1cb8d3
VS
31608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31610#define $ac_func innocuous_$ac_func
31611
a848cd7e
SC
31612/* System header to define __stub macros and hopefully few prototypes,
31613 which can conflict with char $ac_func (); below.
31614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31615 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31616
a848cd7e
SC
31617#ifdef __STDC__
31618# include <limits.h>
31619#else
31620# include <assert.h>
31621#endif
ac1cb8d3
VS
31622
31623#undef $ac_func
31624
a848cd7e
SC
31625/* Override any gcc2 internal prototype to avoid an error. */
31626#ifdef __cplusplus
31627extern "C"
31628{
31629#endif
31630/* We use char because int might match the return type of a gcc2
31631 builtin and then its argument prototype would still apply. */
31632char $ac_func ();
31633/* The GNU C library defines this for functions which it implements
31634 to always fail with ENOSYS. Some functions are actually named
31635 something starting with __ and the normal name is an alias. */
31636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31637choke me
31638#else
31639char (*f) () = $ac_func;
31640#endif
31641#ifdef __cplusplus
31642}
31643#endif
31644
31645int
31646main ()
31647{
31648return f != $ac_func;
31649 ;
31650 return 0;
31651}
31652_ACEOF
31653rm -f conftest.$ac_objext conftest$ac_exeext
31654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31655 (eval $ac_link) 2>conftest.er1
a848cd7e 31656 ac_status=$?
ac1cb8d3
VS
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
a848cd7e
SC
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } &&
07158944 31662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31664 (eval $ac_try) 2>&5
31665 ac_status=$?
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); }; } &&
31668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670 (eval $ac_try) 2>&5
31671 ac_status=$?
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
31674 eval "$as_ac_var=yes"
31675else
31676 echo "$as_me: failed program was:" >&5
31677sed 's/^/| /' conftest.$ac_ext >&5
31678
31679eval "$as_ac_var=no"
31680fi
ac1cb8d3
VS
31681rm -f conftest.err conftest.$ac_objext \
31682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31683fi
31684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31686if test `eval echo '${'$as_ac_var'}'` = yes; then
31687 cat >>confdefs.h <<_ACEOF
31688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31689_ACEOF
31690 break
31691fi
31692done
31693
31694
31695echo "$as_me:$LINENO: checking for statfs" >&5
31696echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31697if test "${wx_cv_func_statfs+set}" = set; then
31698 echo $ECHO_N "(cached) $ECHO_C" >&6
31699else
31700 cat >conftest.$ac_ext <<_ACEOF
31701/* confdefs.h. */
31702_ACEOF
31703cat confdefs.h >>conftest.$ac_ext
31704cat >>conftest.$ac_ext <<_ACEOF
31705/* end confdefs.h. */
31706
31707 #if defined(__BSD__)
31708 #include <sys/param.h>
31709 #include <sys/mount.h>
31710 #else
31711 #include <sys/vfs.h>
31712 #endif
31713
31714int
31715main ()
31716{
31717
31718 long l;
31719 struct statfs fs;
31720 statfs("/", &fs);
31721 l = fs.f_bsize;
31722 l += fs.f_blocks;
31723 l += fs.f_bavail;
31724
31725 ;
31726 return 0;
31727}
31728_ACEOF
31729rm -f conftest.$ac_objext
31730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31731 (eval $ac_compile) 2>conftest.er1
a848cd7e 31732 ac_status=$?
ac1cb8d3
VS
31733 grep -v '^ *+' conftest.er1 >conftest.err
31734 rm -f conftest.er1
31735 cat conftest.err >&5
a848cd7e
SC
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); } &&
07158944 31738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740 (eval $ac_try) 2>&5
31741 ac_status=$?
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746 (eval $ac_try) 2>&5
31747 ac_status=$?
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; }; then
31750
31751 wx_cv_func_statfs=yes
31752
31753else
31754 echo "$as_me: failed program was:" >&5
31755sed 's/^/| /' conftest.$ac_ext >&5
31756
31757
31758 wx_cv_func_statfs=no
31759
31760
31761fi
ac1cb8d3 31762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31763
31764fi
31765echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31766echo "${ECHO_T}$wx_cv_func_statfs" >&6
31767
31768if test "$wx_cv_func_statfs" = "yes"; then
31769 wx_cv_type_statvfs_t="struct statfs"
31770 cat >>confdefs.h <<\_ACEOF
31771#define HAVE_STATFS 1
31772_ACEOF
31773
31774else
31775 echo "$as_me:$LINENO: checking for statvfs" >&5
31776echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31777if test "${wx_cv_func_statvfs+set}" = set; then
31778 echo $ECHO_N "(cached) $ECHO_C" >&6
31779else
31780 cat >conftest.$ac_ext <<_ACEOF
31781/* confdefs.h. */
31782_ACEOF
31783cat confdefs.h >>conftest.$ac_ext
31784cat >>conftest.$ac_ext <<_ACEOF
31785/* end confdefs.h. */
31786
31787 #include <stddef.h>
31788 #include <sys/statvfs.h>
31789
31790int
31791main ()
31792{
31793
31794 statvfs("/", NULL);
31795
31796 ;
31797 return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext
31801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31802 (eval $ac_compile) 2>conftest.er1
a848cd7e 31803 ac_status=$?
ac1cb8d3
VS
31804 grep -v '^ *+' conftest.er1 >conftest.err
31805 rm -f conftest.er1
31806 cat conftest.err >&5
a848cd7e
SC
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } &&
07158944 31809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31811 (eval $ac_try) 2>&5
31812 ac_status=$?
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); }; } &&
31815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31818 ac_status=$?
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 wx_cv_func_statvfs=yes
31822else
31823 echo "$as_me: failed program was:" >&5
31824sed 's/^/| /' conftest.$ac_ext >&5
31825
31826wx_cv_func_statvfs=no
31827
31828fi
ac1cb8d3 31829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31830
31831fi
31832echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31833echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31834
31835 if test "$wx_cv_func_statvfs" = "yes"; then
31836
31837
31838 ac_ext=cc
31839ac_cpp='$CXXCPP $CPPFLAGS'
31840ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31841ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31842ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31843
31844
31845 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31846echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31847if test "${wx_cv_type_statvfs_t+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
31850 cat >conftest.$ac_ext <<_ACEOF
31851/* confdefs.h. */
31852_ACEOF
31853cat confdefs.h >>conftest.$ac_ext
31854cat >>conftest.$ac_ext <<_ACEOF
31855/* end confdefs.h. */
31856
31857 #include <sys/statvfs.h>
31858
31859int
31860main ()
31861{
31862
31863 long l;
31864 statvfs_t fs;
31865 statvfs("/", &fs);
31866 l = fs.f_bsize;
31867 l += fs.f_blocks;
31868 l += fs.f_bavail;
31869
31870 ;
31871 return 0;
31872}
31873_ACEOF
31874rm -f conftest.$ac_objext
31875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31876 (eval $ac_compile) 2>conftest.er1
a848cd7e 31877 ac_status=$?
ac1cb8d3
VS
31878 grep -v '^ *+' conftest.er1 >conftest.err
31879 rm -f conftest.er1
31880 cat conftest.err >&5
a848cd7e
SC
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); } &&
07158944 31883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31885 (eval $ac_try) 2>&5
31886 ac_status=$?
31887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); }; } &&
31889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31891 (eval $ac_try) 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); }; }; then
31895 wx_cv_type_statvfs_t=statvfs_t
31896else
31897 echo "$as_me: failed program was:" >&5
31898sed 's/^/| /' conftest.$ac_ext >&5
31899
31900
31901 cat >conftest.$ac_ext <<_ACEOF
31902/* confdefs.h. */
31903_ACEOF
31904cat confdefs.h >>conftest.$ac_ext
31905cat >>conftest.$ac_ext <<_ACEOF
31906/* end confdefs.h. */
31907
31908 #include <sys/statvfs.h>
31909
31910int
31911main ()
31912{
31913
31914 long l;
31915 struct statvfs fs;
31916 statvfs("/", &fs);
31917 l = fs.f_bsize;
31918 l += fs.f_blocks;
31919 l += fs.f_bavail;
31920
31921 ;
31922 return 0;
31923}
31924_ACEOF
31925rm -f conftest.$ac_objext
31926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31927 (eval $ac_compile) 2>conftest.er1
a848cd7e 31928 ac_status=$?
ac1cb8d3
VS
31929 grep -v '^ *+' conftest.er1 >conftest.err
31930 rm -f conftest.er1
31931 cat conftest.err >&5
a848cd7e
SC
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); } &&
07158944 31934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942 (eval $ac_try) 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31946 wx_cv_type_statvfs_t="struct statvfs"
31947else
31948 echo "$as_me: failed program was:" >&5
31949sed 's/^/| /' conftest.$ac_ext >&5
31950
31951wx_cv_type_statvfs_t="unknown"
31952
31953fi
ac1cb8d3 31954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31955
31956
31957fi
ac1cb8d3 31958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31959
31960fi
31961echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31962echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31963
31964 ac_ext=c
31965ac_cpp='$CPP $CPPFLAGS'
31966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31968ac_compiler_gnu=$ac_cv_c_compiler_gnu
31969
31970
31971 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31972 cat >>confdefs.h <<\_ACEOF
31973#define HAVE_STATVFS 1
31974_ACEOF
31975
31976 fi
31977 else
31978 wx_cv_type_statvfs_t="unknown"
31979 fi
31980fi
31981
31982if test "$wx_cv_type_statvfs_t" != "unknown"; then
31983 cat >>confdefs.h <<_ACEOF
31984#define WX_STATFS_T $wx_cv_type_statvfs_t
31985_ACEOF
31986
31987else
31988 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31989echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31990fi
31991
31992if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
31993
31994
31995for ac_func in fcntl flock
31996do
31997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31998echo "$as_me:$LINENO: checking for $ac_func" >&5
31999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32000if eval "test \"\${$as_ac_var+set}\" = set"; then
32001 echo $ECHO_N "(cached) $ECHO_C" >&6
32002else
32003 cat >conftest.$ac_ext <<_ACEOF
32004/* confdefs.h. */
32005_ACEOF
32006cat confdefs.h >>conftest.$ac_ext
32007cat >>conftest.$ac_ext <<_ACEOF
32008/* end confdefs.h. */
ac1cb8d3
VS
32009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32011#define $ac_func innocuous_$ac_func
32012
a848cd7e
SC
32013/* System header to define __stub macros and hopefully few prototypes,
32014 which can conflict with char $ac_func (); below.
32015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32017
a848cd7e
SC
32018#ifdef __STDC__
32019# include <limits.h>
32020#else
32021# include <assert.h>
32022#endif
ac1cb8d3
VS
32023
32024#undef $ac_func
32025
a848cd7e
SC
32026/* Override any gcc2 internal prototype to avoid an error. */
32027#ifdef __cplusplus
32028extern "C"
32029{
32030#endif
32031/* We use char because int might match the return type of a gcc2
32032 builtin and then its argument prototype would still apply. */
32033char $ac_func ();
32034/* The GNU C library defines this for functions which it implements
32035 to always fail with ENOSYS. Some functions are actually named
32036 something starting with __ and the normal name is an alias. */
32037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32038choke me
32039#else
32040char (*f) () = $ac_func;
32041#endif
32042#ifdef __cplusplus
32043}
32044#endif
32045
32046int
32047main ()
32048{
32049return f != $ac_func;
32050 ;
32051 return 0;
32052}
32053_ACEOF
32054rm -f conftest.$ac_objext conftest$ac_exeext
32055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32056 (eval $ac_link) 2>conftest.er1
a848cd7e 32057 ac_status=$?
ac1cb8d3
VS
32058 grep -v '^ *+' conftest.er1 >conftest.err
32059 rm -f conftest.er1
32060 cat conftest.err >&5
a848cd7e
SC
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } &&
07158944 32063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065 (eval $ac_try) 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071 (eval $ac_try) 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; }; then
32075 eval "$as_ac_var=yes"
32076else
32077 echo "$as_me: failed program was:" >&5
32078sed 's/^/| /' conftest.$ac_ext >&5
32079
32080eval "$as_ac_var=no"
32081fi
ac1cb8d3
VS
32082rm -f conftest.err conftest.$ac_objext \
32083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32084fi
32085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32087if test `eval echo '${'$as_ac_var'}'` = yes; then
32088 cat >>confdefs.h <<_ACEOF
32089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32090_ACEOF
32091 break
32092fi
32093done
32094
32095
32096 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32097 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32098echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32099 wxUSE_SNGLINST_CHECKER=no
32100 fi
32101fi
32102
32103
32104for ac_func in timegm
32105do
32106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32107echo "$as_me:$LINENO: checking for $ac_func" >&5
32108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32109if eval "test \"\${$as_ac_var+set}\" = set"; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32111else
32112 cat >conftest.$ac_ext <<_ACEOF
32113/* confdefs.h. */
32114_ACEOF
32115cat confdefs.h >>conftest.$ac_ext
32116cat >>conftest.$ac_ext <<_ACEOF
32117/* end confdefs.h. */
ac1cb8d3
VS
32118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32120#define $ac_func innocuous_$ac_func
32121
a848cd7e
SC
32122/* System header to define __stub macros and hopefully few prototypes,
32123 which can conflict with char $ac_func (); below.
32124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32125 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32126
a848cd7e
SC
32127#ifdef __STDC__
32128# include <limits.h>
32129#else
32130# include <assert.h>
32131#endif
ac1cb8d3
VS
32132
32133#undef $ac_func
32134
a848cd7e
SC
32135/* Override any gcc2 internal prototype to avoid an error. */
32136#ifdef __cplusplus
32137extern "C"
32138{
32139#endif
32140/* We use char because int might match the return type of a gcc2
32141 builtin and then its argument prototype would still apply. */
32142char $ac_func ();
32143/* The GNU C library defines this for functions which it implements
32144 to always fail with ENOSYS. Some functions are actually named
32145 something starting with __ and the normal name is an alias. */
32146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32147choke me
32148#else
32149char (*f) () = $ac_func;
32150#endif
32151#ifdef __cplusplus
32152}
32153#endif
32154
32155int
32156main ()
32157{
32158return f != $ac_func;
32159 ;
32160 return 0;
32161}
32162_ACEOF
32163rm -f conftest.$ac_objext conftest$ac_exeext
32164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32165 (eval $ac_link) 2>conftest.er1
a848cd7e 32166 ac_status=$?
ac1cb8d3
VS
32167 grep -v '^ *+' conftest.er1 >conftest.err
32168 rm -f conftest.er1
32169 cat conftest.err >&5
a848cd7e
SC
32170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); } &&
07158944 32172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32175 ac_status=$?
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; } &&
32178 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; }; then
32184 eval "$as_ac_var=yes"
32185else
32186 echo "$as_me: failed program was:" >&5
32187sed 's/^/| /' conftest.$ac_ext >&5
32188
32189eval "$as_ac_var=no"
32190fi
ac1cb8d3
VS
32191rm -f conftest.err conftest.$ac_objext \
32192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32193fi
32194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32195echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32196if test `eval echo '${'$as_ac_var'}'` = yes; then
32197 cat >>confdefs.h <<_ACEOF
32198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32199_ACEOF
32200
32201fi
32202done
32203
32204
32205
32206
32207for ac_func in putenv setenv
32208do
32209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32210echo "$as_me:$LINENO: checking for $ac_func" >&5
32211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32212if eval "test \"\${$as_ac_var+set}\" = set"; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32214else
32215 cat >conftest.$ac_ext <<_ACEOF
32216/* confdefs.h. */
32217_ACEOF
32218cat confdefs.h >>conftest.$ac_ext
32219cat >>conftest.$ac_ext <<_ACEOF
32220/* end confdefs.h. */
ac1cb8d3
VS
32221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32223#define $ac_func innocuous_$ac_func
32224
a848cd7e
SC
32225/* System header to define __stub macros and hopefully few prototypes,
32226 which can conflict with char $ac_func (); below.
32227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32228 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32229
a848cd7e
SC
32230#ifdef __STDC__
32231# include <limits.h>
32232#else
32233# include <assert.h>
32234#endif
ac1cb8d3
VS
32235
32236#undef $ac_func
32237
a848cd7e
SC
32238/* Override any gcc2 internal prototype to avoid an error. */
32239#ifdef __cplusplus
32240extern "C"
32241{
32242#endif
32243/* We use char because int might match the return type of a gcc2
32244 builtin and then its argument prototype would still apply. */
32245char $ac_func ();
32246/* The GNU C library defines this for functions which it implements
32247 to always fail with ENOSYS. Some functions are actually named
32248 something starting with __ and the normal name is an alias. */
32249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32250choke me
32251#else
32252char (*f) () = $ac_func;
32253#endif
32254#ifdef __cplusplus
32255}
32256#endif
32257
32258int
32259main ()
32260{
32261return f != $ac_func;
32262 ;
32263 return 0;
32264}
32265_ACEOF
32266rm -f conftest.$ac_objext conftest$ac_exeext
32267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32268 (eval $ac_link) 2>conftest.er1
a848cd7e 32269 ac_status=$?
ac1cb8d3
VS
32270 grep -v '^ *+' conftest.er1 >conftest.err
32271 rm -f conftest.er1
32272 cat conftest.err >&5
a848cd7e
SC
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
07158944 32275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; } &&
32281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32284 ac_status=$?
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 eval "$as_ac_var=yes"
32288else
32289 echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292eval "$as_ac_var=no"
32293fi
ac1cb8d3
VS
32294rm -f conftest.err conftest.$ac_objext \
32295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32296fi
32297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32299if test `eval echo '${'$as_ac_var'}'` = yes; then
32300 cat >>confdefs.h <<_ACEOF
32301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32302_ACEOF
32303 break
32304fi
32305done
32306
32307
32308HAVE_SOME_SLEEP_FUNC=0
32309if test "$USE_BEOS" = 1; then
32310 cat >>confdefs.h <<\_ACEOF
32311#define HAVE_SLEEP 1
32312_ACEOF
32313
32314 HAVE_SOME_SLEEP_FUNC=1
32315fi
32316
32317if test "$USE_DARWIN" = 1; then
32318 cat >>confdefs.h <<\_ACEOF
32319#define HAVE_USLEEP 1
32320_ACEOF
32321
32322 HAVE_SOME_SLEEP_FUNC=1
32323fi
32324
32325if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32326 POSIX4_LINK=
32327
32328for ac_func in nanosleep
32329do
32330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32331echo "$as_me:$LINENO: checking for $ac_func" >&5
32332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32333if eval "test \"\${$as_ac_var+set}\" = set"; then
32334 echo $ECHO_N "(cached) $ECHO_C" >&6
32335else
32336 cat >conftest.$ac_ext <<_ACEOF
32337/* confdefs.h. */
32338_ACEOF
32339cat confdefs.h >>conftest.$ac_ext
32340cat >>conftest.$ac_ext <<_ACEOF
32341/* end confdefs.h. */
ac1cb8d3
VS
32342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32344#define $ac_func innocuous_$ac_func
32345
a848cd7e
SC
32346/* System header to define __stub macros and hopefully few prototypes,
32347 which can conflict with char $ac_func (); below.
32348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32349 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32350
a848cd7e
SC
32351#ifdef __STDC__
32352# include <limits.h>
32353#else
32354# include <assert.h>
32355#endif
ac1cb8d3
VS
32356
32357#undef $ac_func
32358
a848cd7e
SC
32359/* Override any gcc2 internal prototype to avoid an error. */
32360#ifdef __cplusplus
32361extern "C"
32362{
32363#endif
32364/* We use char because int might match the return type of a gcc2
32365 builtin and then its argument prototype would still apply. */
32366char $ac_func ();
32367/* The GNU C library defines this for functions which it implements
32368 to always fail with ENOSYS. Some functions are actually named
32369 something starting with __ and the normal name is an alias. */
32370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32371choke me
32372#else
32373char (*f) () = $ac_func;
32374#endif
32375#ifdef __cplusplus
32376}
32377#endif
32378
32379int
32380main ()
32381{
32382return f != $ac_func;
32383 ;
32384 return 0;
32385}
32386_ACEOF
32387rm -f conftest.$ac_objext conftest$ac_exeext
32388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32389 (eval $ac_link) 2>conftest.er1
a848cd7e 32390 ac_status=$?
ac1cb8d3
VS
32391 grep -v '^ *+' conftest.er1 >conftest.err
32392 rm -f conftest.er1
32393 cat conftest.err >&5
a848cd7e
SC
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); } &&
07158944 32396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32405 ac_status=$?
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 eval "$as_ac_var=yes"
32409else
32410 echo "$as_me: failed program was:" >&5
32411sed 's/^/| /' conftest.$ac_ext >&5
32412
32413eval "$as_ac_var=no"
32414fi
ac1cb8d3
VS
32415rm -f conftest.err conftest.$ac_objext \
32416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32417fi
32418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32420if test `eval echo '${'$as_ac_var'}'` = yes; then
32421 cat >>confdefs.h <<_ACEOF
32422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32423_ACEOF
32424 cat >>confdefs.h <<\_ACEOF
32425#define HAVE_NANOSLEEP 1
32426_ACEOF
32427
32428else
32429
32430 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32431echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32432if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32434else
32435 ac_check_lib_save_LIBS=$LIBS
32436LIBS="-lposix4 $LIBS"
32437cat >conftest.$ac_ext <<_ACEOF
32438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
32443
32444/* Override any gcc2 internal prototype to avoid an error. */
32445#ifdef __cplusplus
32446extern "C"
32447#endif
32448/* We use char because int might match the return type of a gcc2
32449 builtin and then its argument prototype would still apply. */
32450char nanosleep ();
32451int
32452main ()
32453{
32454nanosleep ();
32455 ;
32456 return 0;
32457}
32458_ACEOF
32459rm -f conftest.$ac_objext conftest$ac_exeext
32460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32461 (eval $ac_link) 2>conftest.er1
a848cd7e 32462 ac_status=$?
ac1cb8d3
VS
32463 grep -v '^ *+' conftest.er1 >conftest.err
32464 rm -f conftest.er1
32465 cat conftest.err >&5
a848cd7e
SC
32466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } &&
07158944 32468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32470 (eval $ac_try) 2>&5
32471 ac_status=$?
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); }; } &&
32474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476 (eval $ac_try) 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; }; then
32480 ac_cv_lib_posix4_nanosleep=yes
32481else
32482 echo "$as_me: failed program was:" >&5
32483sed 's/^/| /' conftest.$ac_ext >&5
32484
32485ac_cv_lib_posix4_nanosleep=no
32486fi
ac1cb8d3
VS
32487rm -f conftest.err conftest.$ac_objext \
32488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32489LIBS=$ac_check_lib_save_LIBS
32490fi
32491echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32492echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32493if test $ac_cv_lib_posix4_nanosleep = yes; then
32494
32495 cat >>confdefs.h <<\_ACEOF
32496#define HAVE_NANOSLEEP 1
32497_ACEOF
32498
32499 POSIX4_LINK=" -lposix4"
32500
32501else
32502
32503
32504for ac_func in usleep
32505do
32506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32507echo "$as_me:$LINENO: checking for $ac_func" >&5
32508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32509if eval "test \"\${$as_ac_var+set}\" = set"; then
32510 echo $ECHO_N "(cached) $ECHO_C" >&6
32511else
32512 cat >conftest.$ac_ext <<_ACEOF
32513/* confdefs.h. */
32514_ACEOF
32515cat confdefs.h >>conftest.$ac_ext
32516cat >>conftest.$ac_ext <<_ACEOF
32517/* end confdefs.h. */
ac1cb8d3
VS
32518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32520#define $ac_func innocuous_$ac_func
32521
a848cd7e
SC
32522/* System header to define __stub macros and hopefully few prototypes,
32523 which can conflict with char $ac_func (); below.
32524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32525 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32526
a848cd7e
SC
32527#ifdef __STDC__
32528# include <limits.h>
32529#else
32530# include <assert.h>
32531#endif
ac1cb8d3
VS
32532
32533#undef $ac_func
32534
a848cd7e
SC
32535/* Override any gcc2 internal prototype to avoid an error. */
32536#ifdef __cplusplus
32537extern "C"
32538{
32539#endif
32540/* We use char because int might match the return type of a gcc2
32541 builtin and then its argument prototype would still apply. */
32542char $ac_func ();
32543/* The GNU C library defines this for functions which it implements
32544 to always fail with ENOSYS. Some functions are actually named
32545 something starting with __ and the normal name is an alias. */
32546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32547choke me
32548#else
32549char (*f) () = $ac_func;
32550#endif
32551#ifdef __cplusplus
32552}
32553#endif
32554
32555int
32556main ()
32557{
32558return f != $ac_func;
32559 ;
32560 return 0;
32561}
32562_ACEOF
32563rm -f conftest.$ac_objext conftest$ac_exeext
32564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32565 (eval $ac_link) 2>conftest.er1
a848cd7e 32566 ac_status=$?
ac1cb8d3
VS
32567 grep -v '^ *+' conftest.er1 >conftest.err
32568 rm -f conftest.er1
32569 cat conftest.err >&5
a848cd7e
SC
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); } &&
07158944 32572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32574 (eval $ac_try) 2>&5
32575 ac_status=$?
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; } &&
32578 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32580 (eval $ac_try) 2>&5
32581 ac_status=$?
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); }; }; then
32584 eval "$as_ac_var=yes"
32585else
32586 echo "$as_me: failed program was:" >&5
32587sed 's/^/| /' conftest.$ac_ext >&5
32588
32589eval "$as_ac_var=no"
32590fi
ac1cb8d3
VS
32591rm -f conftest.err conftest.$ac_objext \
32592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32593fi
32594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32596if test `eval echo '${'$as_ac_var'}'` = yes; then
32597 cat >>confdefs.h <<_ACEOF
32598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32599_ACEOF
32600 cat >>confdefs.h <<\_ACEOF
32601#define HAVE_USLEEP 1
32602_ACEOF
32603
32604else
32605 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32606echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32607
32608fi
32609done
32610
32611
32612
32613fi
32614
32615
32616
32617fi
32618done
32619
32620fi
32621
32622
32623
32624for ac_func in uname gethostname
32625do
32626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32627echo "$as_me:$LINENO: checking for $ac_func" >&5
32628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32629if eval "test \"\${$as_ac_var+set}\" = set"; then
32630 echo $ECHO_N "(cached) $ECHO_C" >&6
32631else
32632 cat >conftest.$ac_ext <<_ACEOF
32633/* confdefs.h. */
32634_ACEOF
32635cat confdefs.h >>conftest.$ac_ext
32636cat >>conftest.$ac_ext <<_ACEOF
32637/* end confdefs.h. */
ac1cb8d3
VS
32638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32640#define $ac_func innocuous_$ac_func
32641
a848cd7e
SC
32642/* System header to define __stub macros and hopefully few prototypes,
32643 which can conflict with char $ac_func (); below.
32644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32646
a848cd7e
SC
32647#ifdef __STDC__
32648# include <limits.h>
32649#else
32650# include <assert.h>
32651#endif
ac1cb8d3
VS
32652
32653#undef $ac_func
32654
a848cd7e
SC
32655/* Override any gcc2 internal prototype to avoid an error. */
32656#ifdef __cplusplus
32657extern "C"
32658{
32659#endif
32660/* We use char because int might match the return type of a gcc2
32661 builtin and then its argument prototype would still apply. */
32662char $ac_func ();
32663/* The GNU C library defines this for functions which it implements
32664 to always fail with ENOSYS. Some functions are actually named
32665 something starting with __ and the normal name is an alias. */
32666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32667choke me
32668#else
32669char (*f) () = $ac_func;
32670#endif
32671#ifdef __cplusplus
32672}
32673#endif
32674
32675int
32676main ()
32677{
32678return f != $ac_func;
32679 ;
32680 return 0;
32681}
32682_ACEOF
32683rm -f conftest.$ac_objext conftest$ac_exeext
32684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32685 (eval $ac_link) 2>conftest.er1
a848cd7e 32686 ac_status=$?
ac1cb8d3
VS
32687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
a848cd7e
SC
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
07158944 32692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694 (eval $ac_try) 2>&5
32695 ac_status=$?
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); }; } &&
32698 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32700 (eval $ac_try) 2>&5
32701 ac_status=$?
32702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32703 (exit $ac_status); }; }; then
32704 eval "$as_ac_var=yes"
32705else
32706 echo "$as_me: failed program was:" >&5
32707sed 's/^/| /' conftest.$ac_ext >&5
32708
32709eval "$as_ac_var=no"
32710fi
ac1cb8d3
VS
32711rm -f conftest.err conftest.$ac_objext \
32712 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32713fi
32714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32715echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32716if test `eval echo '${'$as_ac_var'}'` = yes; then
32717 cat >>confdefs.h <<_ACEOF
32718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32719_ACEOF
32720 break
32721fi
32722done
32723
32724
32725
32726
32727ac_ext=cc
32728ac_cpp='$CXXCPP $CPPFLAGS'
32729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
32733
32734
32735for ac_func in strtok_r
32736do
32737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32738echo "$as_me:$LINENO: checking for $ac_func" >&5
32739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32740if eval "test \"\${$as_ac_var+set}\" = set"; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32742else
32743 cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
ac1cb8d3
VS
32749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32751#define $ac_func innocuous_$ac_func
32752
a848cd7e
SC
32753/* System header to define __stub macros and hopefully few prototypes,
32754 which can conflict with char $ac_func (); below.
32755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32756 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32757
a848cd7e
SC
32758#ifdef __STDC__
32759# include <limits.h>
32760#else
32761# include <assert.h>
32762#endif
ac1cb8d3
VS
32763
32764#undef $ac_func
32765
a848cd7e
SC
32766/* Override any gcc2 internal prototype to avoid an error. */
32767#ifdef __cplusplus
32768extern "C"
32769{
32770#endif
32771/* We use char because int might match the return type of a gcc2
32772 builtin and then its argument prototype would still apply. */
32773char $ac_func ();
32774/* The GNU C library defines this for functions which it implements
32775 to always fail with ENOSYS. Some functions are actually named
32776 something starting with __ and the normal name is an alias. */
32777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32778choke me
32779#else
32780char (*f) () = $ac_func;
32781#endif
32782#ifdef __cplusplus
32783}
32784#endif
32785
32786int
32787main ()
32788{
32789return f != $ac_func;
32790 ;
32791 return 0;
32792}
32793_ACEOF
32794rm -f conftest.$ac_objext conftest$ac_exeext
32795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32796 (eval $ac_link) 2>conftest.er1
a848cd7e 32797 ac_status=$?
ac1cb8d3
VS
32798 grep -v '^ *+' conftest.er1 >conftest.err
32799 rm -f conftest.er1
32800 cat conftest.err >&5
a848cd7e
SC
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); } &&
07158944 32803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805 (eval $ac_try) 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; } &&
32809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32811 (eval $ac_try) 2>&5
32812 ac_status=$?
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); }; }; then
32815 eval "$as_ac_var=yes"
32816else
32817 echo "$as_me: failed program was:" >&5
32818sed 's/^/| /' conftest.$ac_ext >&5
32819
32820eval "$as_ac_var=no"
32821fi
ac1cb8d3
VS
32822rm -f conftest.err conftest.$ac_objext \
32823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32824fi
32825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32827if test `eval echo '${'$as_ac_var'}'` = yes; then
32828 cat >>confdefs.h <<_ACEOF
32829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32830_ACEOF
32831
32832fi
32833done
32834
32835
32836ac_ext=c
32837ac_cpp='$CPP $CPPFLAGS'
32838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32840ac_compiler_gnu=$ac_cv_c_compiler_gnu
32841
32842
32843INET_LINK=
32844
32845for ac_func in inet_addr
32846do
32847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32848echo "$as_me:$LINENO: checking for $ac_func" >&5
32849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32850if eval "test \"\${$as_ac_var+set}\" = set"; then
32851 echo $ECHO_N "(cached) $ECHO_C" >&6
32852else
32853 cat >conftest.$ac_ext <<_ACEOF
32854/* confdefs.h. */
32855_ACEOF
32856cat confdefs.h >>conftest.$ac_ext
32857cat >>conftest.$ac_ext <<_ACEOF
32858/* end confdefs.h. */
ac1cb8d3
VS
32859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32861#define $ac_func innocuous_$ac_func
32862
a848cd7e
SC
32863/* System header to define __stub macros and hopefully few prototypes,
32864 which can conflict with char $ac_func (); below.
32865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32866 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32867
a848cd7e
SC
32868#ifdef __STDC__
32869# include <limits.h>
32870#else
32871# include <assert.h>
32872#endif
ac1cb8d3
VS
32873
32874#undef $ac_func
32875
a848cd7e
SC
32876/* Override any gcc2 internal prototype to avoid an error. */
32877#ifdef __cplusplus
32878extern "C"
32879{
32880#endif
32881/* We use char because int might match the return type of a gcc2
32882 builtin and then its argument prototype would still apply. */
32883char $ac_func ();
32884/* The GNU C library defines this for functions which it implements
32885 to always fail with ENOSYS. Some functions are actually named
32886 something starting with __ and the normal name is an alias. */
32887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32888choke me
32889#else
32890char (*f) () = $ac_func;
32891#endif
32892#ifdef __cplusplus
32893}
32894#endif
32895
32896int
32897main ()
32898{
32899return f != $ac_func;
32900 ;
32901 return 0;
32902}
32903_ACEOF
32904rm -f conftest.$ac_objext conftest$ac_exeext
32905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32906 (eval $ac_link) 2>conftest.er1
a848cd7e 32907 ac_status=$?
ac1cb8d3
VS
32908 grep -v '^ *+' conftest.er1 >conftest.err
32909 rm -f conftest.er1
32910 cat conftest.err >&5
a848cd7e
SC
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); } &&
07158944 32913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915 (eval $ac_try) 2>&5
32916 ac_status=$?
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; } &&
32919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; }; then
32925 eval "$as_ac_var=yes"
32926else
32927 echo "$as_me: failed program was:" >&5
32928sed 's/^/| /' conftest.$ac_ext >&5
32929
32930eval "$as_ac_var=no"
32931fi
ac1cb8d3
VS
32932rm -f conftest.err conftest.$ac_objext \
32933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32934fi
32935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32937if test `eval echo '${'$as_ac_var'}'` = yes; then
32938 cat >>confdefs.h <<_ACEOF
32939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32940_ACEOF
32941 cat >>confdefs.h <<\_ACEOF
32942#define HAVE_INET_ADDR 1
32943_ACEOF
32944
32945else
32946
32947 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32948echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32949if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32950 echo $ECHO_N "(cached) $ECHO_C" >&6
32951else
32952 ac_check_lib_save_LIBS=$LIBS
32953LIBS="-lnsl $LIBS"
32954cat >conftest.$ac_ext <<_ACEOF
32955/* confdefs.h. */
32956_ACEOF
32957cat confdefs.h >>conftest.$ac_ext
32958cat >>conftest.$ac_ext <<_ACEOF
32959/* end confdefs.h. */
32960
32961/* Override any gcc2 internal prototype to avoid an error. */
32962#ifdef __cplusplus
32963extern "C"
32964#endif
32965/* We use char because int might match the return type of a gcc2
32966 builtin and then its argument prototype would still apply. */
32967char inet_addr ();
32968int
32969main ()
32970{
32971inet_addr ();
32972 ;
32973 return 0;
32974}
32975_ACEOF
32976rm -f conftest.$ac_objext conftest$ac_exeext
32977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32978 (eval $ac_link) 2>conftest.er1
a848cd7e 32979 ac_status=$?
ac1cb8d3
VS
32980 grep -v '^ *+' conftest.er1 >conftest.err
32981 rm -f conftest.er1
32982 cat conftest.err >&5
a848cd7e
SC
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); } &&
07158944 32985 { ac_try='test -z "$ac_c_werror_flag" || 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_lib_nsl_inet_addr=yes
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002ac_cv_lib_nsl_inet_addr=no
33003fi
ac1cb8d3
VS
33004rm -f conftest.err conftest.$ac_objext \
33005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33006LIBS=$ac_check_lib_save_LIBS
33007fi
33008echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33009echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33010if test $ac_cv_lib_nsl_inet_addr = yes; then
33011 INET_LINK="nsl"
33012else
33013
33014 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33015echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33016if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33017 echo $ECHO_N "(cached) $ECHO_C" >&6
33018else
33019 ac_check_lib_save_LIBS=$LIBS
33020LIBS="-lresolv $LIBS"
33021cat >conftest.$ac_ext <<_ACEOF
33022/* confdefs.h. */
33023_ACEOF
33024cat confdefs.h >>conftest.$ac_ext
33025cat >>conftest.$ac_ext <<_ACEOF
33026/* end confdefs.h. */
33027
33028/* Override any gcc2 internal prototype to avoid an error. */
33029#ifdef __cplusplus
33030extern "C"
33031#endif
33032/* We use char because int might match the return type of a gcc2
33033 builtin and then its argument prototype would still apply. */
33034char inet_addr ();
33035int
33036main ()
33037{
33038inet_addr ();
33039 ;
33040 return 0;
33041}
33042_ACEOF
33043rm -f conftest.$ac_objext conftest$ac_exeext
33044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33045 (eval $ac_link) 2>conftest.er1
a848cd7e 33046 ac_status=$?
ac1cb8d3
VS
33047 grep -v '^ *+' conftest.er1 >conftest.err
33048 rm -f conftest.er1
33049 cat conftest.err >&5
a848cd7e
SC
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); } &&
07158944 33052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33055 ac_status=$?
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; } &&
33058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; }; then
33064 ac_cv_lib_resolv_inet_addr=yes
33065else
33066 echo "$as_me: failed program was:" >&5
33067sed 's/^/| /' conftest.$ac_ext >&5
33068
33069ac_cv_lib_resolv_inet_addr=no
33070fi
ac1cb8d3
VS
33071rm -f conftest.err conftest.$ac_objext \
33072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33073LIBS=$ac_check_lib_save_LIBS
33074fi
33075echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33076echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33077if test $ac_cv_lib_resolv_inet_addr = yes; then
33078 INET_LINK="resolv"
33079else
33080
33081 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33082echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33083if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33085else
33086 ac_check_lib_save_LIBS=$LIBS
33087LIBS="-lsocket $LIBS"
33088cat >conftest.$ac_ext <<_ACEOF
33089/* confdefs.h. */
33090_ACEOF
33091cat confdefs.h >>conftest.$ac_ext
33092cat >>conftest.$ac_ext <<_ACEOF
33093/* end confdefs.h. */
33094
33095/* Override any gcc2 internal prototype to avoid an error. */
33096#ifdef __cplusplus
33097extern "C"
33098#endif
33099/* We use char because int might match the return type of a gcc2
33100 builtin and then its argument prototype would still apply. */
33101char inet_addr ();
33102int
33103main ()
33104{
33105inet_addr ();
33106 ;
33107 return 0;
33108}
33109_ACEOF
33110rm -f conftest.$ac_objext conftest$ac_exeext
33111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33112 (eval $ac_link) 2>conftest.er1
a848cd7e 33113 ac_status=$?
ac1cb8d3
VS
33114 grep -v '^ *+' conftest.er1 >conftest.err
33115 rm -f conftest.er1
33116 cat conftest.err >&5
a848cd7e
SC
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } &&
07158944 33119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33121 (eval $ac_try) 2>&5
33122 ac_status=$?
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); }; } &&
33125 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33127 (eval $ac_try) 2>&5
33128 ac_status=$?
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; }; then
33131 ac_cv_lib_socket_inet_addr=yes
33132else
33133 echo "$as_me: failed program was:" >&5
33134sed 's/^/| /' conftest.$ac_ext >&5
33135
33136ac_cv_lib_socket_inet_addr=no
33137fi
ac1cb8d3
VS
33138rm -f conftest.err conftest.$ac_objext \
33139 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33140LIBS=$ac_check_lib_save_LIBS
33141fi
33142echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33143echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33144if test $ac_cv_lib_socket_inet_addr = yes; then
33145 INET_LINK="socket"
33146
33147fi
33148
33149
33150
33151fi
33152
33153
33154
33155fi
33156
33157
33158
33159fi
33160done
33161
33162
33163
33164for ac_func in inet_aton
33165do
33166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33167echo "$as_me:$LINENO: checking for $ac_func" >&5
33168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33169if eval "test \"\${$as_ac_var+set}\" = set"; then
33170 echo $ECHO_N "(cached) $ECHO_C" >&6
33171else
33172 cat >conftest.$ac_ext <<_ACEOF
33173/* confdefs.h. */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h. */
ac1cb8d3
VS
33178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33180#define $ac_func innocuous_$ac_func
33181
a848cd7e
SC
33182/* System header to define __stub macros and hopefully few prototypes,
33183 which can conflict with char $ac_func (); below.
33184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33185 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33186
a848cd7e
SC
33187#ifdef __STDC__
33188# include <limits.h>
33189#else
33190# include <assert.h>
33191#endif
ac1cb8d3
VS
33192
33193#undef $ac_func
33194
a848cd7e
SC
33195/* Override any gcc2 internal prototype to avoid an error. */
33196#ifdef __cplusplus
33197extern "C"
33198{
33199#endif
33200/* We use char because int might match the return type of a gcc2
33201 builtin and then its argument prototype would still apply. */
33202char $ac_func ();
33203/* The GNU C library defines this for functions which it implements
33204 to always fail with ENOSYS. Some functions are actually named
33205 something starting with __ and the normal name is an alias. */
33206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33207choke me
33208#else
33209char (*f) () = $ac_func;
33210#endif
33211#ifdef __cplusplus
33212}
33213#endif
33214
33215int
33216main ()
33217{
33218return f != $ac_func;
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); } &&
07158944 33232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33235 ac_status=$?
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; } &&
33238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240 (eval $ac_try) 2>&5
33241 ac_status=$?
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); }; }; then
33244 eval "$as_ac_var=yes"
33245else
33246 echo "$as_me: failed program was:" >&5
33247sed 's/^/| /' conftest.$ac_ext >&5
33248
33249eval "$as_ac_var=no"
33250fi
ac1cb8d3
VS
33251rm -f conftest.err conftest.$ac_objext \
33252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33253fi
33254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33256if test `eval echo '${'$as_ac_var'}'` = yes; then
33257 cat >>confdefs.h <<_ACEOF
33258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33259_ACEOF
33260 cat >>confdefs.h <<\_ACEOF
33261#define HAVE_INET_ATON 1
33262_ACEOF
33263
33264else
33265
33266 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33267echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33268echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33269if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271else
33272 ac_check_lib_save_LIBS=$LIBS
33273LIBS="-l$INET_LINK $LIBS"
33274cat >conftest.$ac_ext <<_ACEOF
33275/* confdefs.h. */
33276_ACEOF
33277cat confdefs.h >>conftest.$ac_ext
33278cat >>conftest.$ac_ext <<_ACEOF
33279/* end confdefs.h. */
33280
33281/* Override any gcc2 internal prototype to avoid an error. */
33282#ifdef __cplusplus
33283extern "C"
33284#endif
33285/* We use char because int might match the return type of a gcc2
33286 builtin and then its argument prototype would still apply. */
33287char inet_aton ();
33288int
33289main ()
33290{
33291inet_aton ();
33292 ;
33293 return 0;
33294}
33295_ACEOF
33296rm -f conftest.$ac_objext conftest$ac_exeext
33297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33298 (eval $ac_link) 2>conftest.er1
a848cd7e 33299 ac_status=$?
ac1cb8d3
VS
33300 grep -v '^ *+' conftest.er1 >conftest.err
33301 rm -f conftest.er1
33302 cat conftest.err >&5
a848cd7e
SC
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); } &&
07158944 33305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33307 (eval $ac_try) 2>&5
33308 ac_status=$?
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); }; } &&
33311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33313 (eval $ac_try) 2>&5
33314 ac_status=$?
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
33317 eval "$as_ac_Lib=yes"
33318else
33319 echo "$as_me: failed program was:" >&5
33320sed 's/^/| /' conftest.$ac_ext >&5
33321
33322eval "$as_ac_Lib=no"
33323fi
ac1cb8d3
VS
33324rm -f conftest.err conftest.$ac_objext \
33325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33326LIBS=$ac_check_lib_save_LIBS
33327fi
33328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33329echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33330if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33331 cat >>confdefs.h <<\_ACEOF
33332#define HAVE_INET_ATON 1
33333_ACEOF
33334
33335fi
33336
33337
33338fi
33339done
33340
33341
33342if test "x$INET_LINK" != "x"; then
33343 cat >>confdefs.h <<\_ACEOF
33344#define HAVE_INET_ADDR 1
33345_ACEOF
33346
33347 INET_LINK=" -l$INET_LINK"
33348fi
33349
33350fi
33351
33352
33353
33354EXTRALIBS_ESD=
33355echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33356echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33357if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33359else
33360 ac_check_lib_save_LIBS=$LIBS
33361LIBS="-lesd $LIBS"
33362cat >conftest.$ac_ext <<_ACEOF
33363/* confdefs.h. */
33364_ACEOF
33365cat confdefs.h >>conftest.$ac_ext
33366cat >>conftest.$ac_ext <<_ACEOF
33367/* end confdefs.h. */
33368
33369/* Override any gcc2 internal prototype to avoid an error. */
33370#ifdef __cplusplus
33371extern "C"
33372#endif
33373/* We use char because int might match the return type of a gcc2
33374 builtin and then its argument prototype would still apply. */
33375char esd_close ();
33376int
33377main ()
33378{
33379esd_close ();
33380 ;
33381 return 0;
33382}
33383_ACEOF
33384rm -f conftest.$ac_objext conftest$ac_exeext
33385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33386 (eval $ac_link) 2>conftest.er1
a848cd7e 33387 ac_status=$?
ac1cb8d3
VS
33388 grep -v '^ *+' conftest.er1 >conftest.err
33389 rm -f conftest.er1
33390 cat conftest.err >&5
a848cd7e
SC
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); } &&
07158944 33393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33396 ac_status=$?
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; } &&
33399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33401 (eval $ac_try) 2>&5
33402 ac_status=$?
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; }; then
33405 ac_cv_lib_esd_esd_close=yes
33406else
33407 echo "$as_me: failed program was:" >&5
33408sed 's/^/| /' conftest.$ac_ext >&5
33409
33410ac_cv_lib_esd_esd_close=no
33411fi
ac1cb8d3
VS
33412rm -f conftest.err conftest.$ac_objext \
33413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33414LIBS=$ac_check_lib_save_LIBS
33415fi
33416echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33417echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33418if test $ac_cv_lib_esd_esd_close = yes; then
33419
33420
33421for ac_header in esd.h
33422do
33423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33424if eval "test \"\${$as_ac_Header+set}\" = set"; then
33425 echo "$as_me:$LINENO: checking for $ac_header" >&5
33426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33427if eval "test \"\${$as_ac_Header+set}\" = set"; then
33428 echo $ECHO_N "(cached) $ECHO_C" >&6
33429fi
33430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33432else
33433 # Is the header compilable?
33434echo "$as_me:$LINENO: checking $ac_header usability" >&5
33435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33436cat >conftest.$ac_ext <<_ACEOF
33437/* confdefs.h. */
33438_ACEOF
33439cat confdefs.h >>conftest.$ac_ext
33440cat >>conftest.$ac_ext <<_ACEOF
33441/* end confdefs.h. */
33442$ac_includes_default
33443#include <$ac_header>
33444_ACEOF
33445rm -f conftest.$ac_objext
33446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33447 (eval $ac_compile) 2>conftest.er1
a848cd7e 33448 ac_status=$?
ac1cb8d3
VS
33449 grep -v '^ *+' conftest.er1 >conftest.err
33450 rm -f conftest.er1
33451 cat conftest.err >&5
a848cd7e
SC
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } &&
07158944 33454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33457 ac_status=$?
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; } &&
33460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33462 (eval $ac_try) 2>&5
33463 ac_status=$?
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; }; then
33466 ac_header_compiler=yes
33467else
33468 echo "$as_me: failed program was:" >&5
33469sed 's/^/| /' conftest.$ac_ext >&5
33470
33471ac_header_compiler=no
33472fi
ac1cb8d3 33473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33475echo "${ECHO_T}$ac_header_compiler" >&6
33476
33477# Is the header present?
33478echo "$as_me:$LINENO: checking $ac_header presence" >&5
33479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33480cat >conftest.$ac_ext <<_ACEOF
33481/* confdefs.h. */
33482_ACEOF
33483cat confdefs.h >>conftest.$ac_ext
33484cat >>conftest.$ac_ext <<_ACEOF
33485/* end confdefs.h. */
33486#include <$ac_header>
33487_ACEOF
33488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33490 ac_status=$?
33491 grep -v '^ *+' conftest.er1 >conftest.err
33492 rm -f conftest.er1
33493 cat conftest.err >&5
33494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495 (exit $ac_status); } >/dev/null; then
33496 if test -s conftest.err; then
33497 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33499 else
33500 ac_cpp_err=
33501 fi
33502else
33503 ac_cpp_err=yes
33504fi
33505if test -z "$ac_cpp_err"; then
33506 ac_header_preproc=yes
33507else
33508 echo "$as_me: failed program was:" >&5
33509sed 's/^/| /' conftest.$ac_ext >&5
33510
33511 ac_header_preproc=no
33512fi
33513rm -f conftest.err conftest.$ac_ext
33514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33515echo "${ECHO_T}$ac_header_preproc" >&6
33516
33517# So? What about this header?
ac1cb8d3
VS
33518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33519 yes:no: )
a848cd7e
SC
33520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33524 ac_header_preproc=yes
a848cd7e 33525 ;;
ac1cb8d3 33526 no:yes:* )
a848cd7e
SC
33527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33534echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33539 (
33540 cat <<\_ASBOX
ac1cb8d3
VS
33541## ----------------------------------------- ##
33542## Report this to wx-dev@lists.wxwidgets.org ##
33543## ----------------------------------------- ##
a848cd7e
SC
33544_ASBOX
33545 ) |
33546 sed "s/^/$as_me: WARNING: /" >&2
33547 ;;
33548esac
33549echo "$as_me:$LINENO: checking for $ac_header" >&5
33550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33551if eval "test \"\${$as_ac_Header+set}\" = set"; then
33552 echo $ECHO_N "(cached) $ECHO_C" >&6
33553else
ac1cb8d3 33554 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33555fi
33556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33558
33559fi
33560if test `eval echo '${'$as_ac_Header'}'` = yes; then
33561 cat >>confdefs.h <<_ACEOF
33562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33563_ACEOF
33564
33565 EXTRALIBS_ESD="-lesd"
33566
33567fi
33568
33569done
33570
33571
33572fi
33573
33574
33575
33576echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33577echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33578cat >conftest.$ac_ext <<_ACEOF
33579/* confdefs.h. */
33580_ACEOF
33581cat confdefs.h >>conftest.$ac_ext
33582cat >>conftest.$ac_ext <<_ACEOF
33583/* end confdefs.h. */
33584#ifdef __linux__
33585 #include <linux/cdrom.h>
33586 #else
33587 /* For Solaris */
33588 #include <sys/cdio.h>
33589 #endif
33590
33591int
33592main ()
33593{
33594struct cdrom_tocentry entry, old_entry;
33595 ;
33596 return 0;
33597}
33598_ACEOF
33599rm -f conftest.$ac_objext
33600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33601 (eval $ac_compile) 2>conftest.er1
a848cd7e 33602 ac_status=$?
ac1cb8d3
VS
33603 grep -v '^ *+' conftest.er1 >conftest.err
33604 rm -f conftest.er1
33605 cat conftest.err >&5
a848cd7e
SC
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
07158944 33608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; } &&
33614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33616 (eval $ac_try) 2>&5
33617 ac_status=$?
33618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33619 (exit $ac_status); }; }; then
33620 echo "$as_me:$LINENO: result: yes" >&5
33621echo "${ECHO_T}yes" >&6
33622 cat >>confdefs.h <<\_ACEOF
33623#define HAVE_KNOWN_CDROM_INTERFACE 1
33624_ACEOF
33625
33626else
33627 echo "$as_me: failed program was:" >&5
33628sed 's/^/| /' conftest.$ac_ext >&5
33629
33630echo "$as_me:$LINENO: result: no" >&5
33631echo "${ECHO_T}no" >&6
33632fi
ac1cb8d3 33633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33634
33635
33636cat >confcache <<\_ACEOF
33637# This file is a shell script that caches the results of configure
33638# tests run on this system so they can be shared between configure
33639# scripts and configure runs, see configure's option --config-cache.
33640# It is not useful on other systems. If it contains results you don't
33641# want to keep, you may remove or edit it.
33642#
33643# config.status only pays attention to the cache file if you give it
33644# the --recheck option to rerun configure.
33645#
33646# `ac_cv_env_foo' variables (set or unset) will be overridden when
33647# loading this file, other *unset* `ac_cv_foo' will be assigned the
33648# following values.
33649
33650_ACEOF
33651
33652# The following way of writing the cache mishandles newlines in values,
33653# but we know of no workaround that is simple, portable, and efficient.
33654# So, don't put newlines in cache variables' values.
33655# Ultrix sh set writes to stderr and can't be redirected directly,
33656# and sets the high bit in the cache file unless we assign to the vars.
33657{
33658 (set) 2>&1 |
33659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33660 *ac_space=\ *)
33661 # `set' does not quote correctly, so add quotes (double-quote
33662 # substitution turns \\\\ into \\, and sed turns \\ into \).
33663 sed -n \
ac1cb8d3
VS
33664 "s/'/'\\\\''/g;
33665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33666 ;;
33667 *)
33668 # `set' quotes correctly as required by POSIX, so do not add quotes.
33669 sed -n \
ac1cb8d3 33670 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33671 ;;
33672 esac;
33673} |
33674 sed '
33675 t clear
33676 : clear
33677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33678 t end
33679 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33680 : end' >>confcache
33681if diff $cache_file confcache >/dev/null 2>&1; then :; else
33682 if test -w $cache_file; then
33683 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33684 cat confcache >$cache_file
33685 else
33686 echo "not updating unwritable cache $cache_file"
33687 fi
33688fi
33689rm -f confcache
33690
33691
33692CPP_MT_FLAG=
33693if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33694
33695
33696 THREADS_LINK=
33697 THREADS_CFLAGS=
33698
33699 if test "$wxUSE_THREADS" = "yes" ; then
33700 if test "$USE_BEOS" = 1; then
33701 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33702echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33703 wxUSE_THREADS="no"
33704 fi
33705 fi
33706
33707 if test "$wxUSE_THREADS" = "yes" ; then
33708
33709
33710 THREAD_OPTS="-pthread"
33711 case "${host}" in
33712 *-*-solaris2* | *-*-sunos4* )
33713 if test "x$GCC" = "xyes"; then
33714 THREAD_OPTS="-pthreads $THREAD_OPTS"
33715 else
33716 THREAD_OPTS="-mt $THREAD_OPTS"
33717 fi
33718 ;;
33719 *-*-freebsd*)
33720 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33721 ;;
33722 *-*-darwin* | *-*-cygwin* )
33723 THREAD_OPTS=""
33724 ;;
33725 *-*-aix*)
33726 THREAD_OPTS="pthreads"
33727 ;;
33728 *-hp-hpux* )
33729 if test "x$GCC" != "xyes"; then
33730 THREAD_OPTS=""
33731 fi
33732 ;;
33733
33734 *-*-irix* )
33735 if test "x$GCC" = "xyes"; then
33736 THREAD_OPTS=""
33737 fi
33738 ;;
33739
33740 *-*-*UnixWare*)
33741 if test "x$GCC" != "xyes"; then
33742 THREAD_OPTS="-Ethread"
33743 fi
33744 ;;
33745 esac
33746
33747 THREAD_OPTS="$THREAD_OPTS pthread none"
33748
33749 THREADS_OK=no
33750 for flag in $THREAD_OPTS; do
33751 case $flag in
33752 none)
33753 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33754echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33755 ;;
33756
33757 -*)
33758 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33759echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33760 THREADS_CFLAGS="$flag"
33761 ;;
33762
33763 *)
33764 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33765echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33766 THREADS_LINK="-l$flag"
33767 ;;
33768 esac
33769
33770 save_LIBS="$LIBS"
33771 save_CFLAGS="$CFLAGS"
33772 LIBS="$THREADS_LINK $LIBS"
33773 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33774
33775 cat >conftest.$ac_ext <<_ACEOF
33776/* confdefs.h. */
33777_ACEOF
33778cat confdefs.h >>conftest.$ac_ext
33779cat >>conftest.$ac_ext <<_ACEOF
33780/* end confdefs.h. */
33781#include <pthread.h>
33782int
33783main ()
33784{
33785pthread_create(0,0,0,0);
33786 ;
33787 return 0;
33788}
33789_ACEOF
33790rm -f conftest.$ac_objext conftest$ac_exeext
33791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33792 (eval $ac_link) 2>conftest.er1
a848cd7e 33793 ac_status=$?
ac1cb8d3
VS
33794 grep -v '^ *+' conftest.er1 >conftest.err
33795 rm -f conftest.er1
33796 cat conftest.err >&5
a848cd7e
SC
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); } &&
07158944 33799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33801 (eval $ac_try) 2>&5
33802 ac_status=$?
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; } &&
33805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33807 (eval $ac_try) 2>&5
33808 ac_status=$?
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); }; }; then
33811 THREADS_OK=yes
33812else
33813 echo "$as_me: failed program was:" >&5
33814sed 's/^/| /' conftest.$ac_ext >&5
33815
33816fi
ac1cb8d3
VS
33817rm -f conftest.err conftest.$ac_objext \
33818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33819
33820 LIBS="$save_LIBS"
33821 CFLAGS="$save_CFLAGS"
33822
33823 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33824echo "${ECHO_T}$THREADS_OK" >&6
33825 if test "x$THREADS_OK" = "xyes"; then
33826 break;
33827 fi
33828
33829 THREADS_LINK=""
33830 THREADS_CFLAGS=""
33831 done
33832
33833 if test "x$THREADS_OK" != "xyes"; then
33834 wxUSE_THREADS=no
33835 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33836echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33837 else
33838 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33839 LIBS="$THREADS_LINK $LIBS"
33840
33841 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33842echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33843 flag=no
33844 case "${host}" in
33845 *-aix*)
33846 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33847 flag="-D_THREAD_SAFE"
33848 ;;
33849 *-freebsd*)
33850 flag="-D_THREAD_SAFE"
33851 ;;
33852 *-hp-hpux* )
33853 flag="-D_REENTRANT"
33854 if test "x$GCC" != "xyes"; then
33855 flag="$flag -D_RWSTD_MULTI_THREAD"
33856 fi
33857 ;;
33858 *solaris* | alpha*-osf*)
33859 flag="-D_REENTRANT"
33860 ;;
33861 esac
33862 echo "$as_me:$LINENO: result: ${flag}" >&5
33863echo "${ECHO_T}${flag}" >&6
33864 if test "x$flag" != xno; then
33865 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33866 fi
33867
33868 if test "x$THREADS_CFLAGS" != "x"; then
33869 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33870 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33871 fi
33872 fi
33873 fi
33874
33875 if test "$wxUSE_THREADS" = "yes" ; then
33876
33877for ac_func in thr_setconcurrency
33878do
33879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33880echo "$as_me:$LINENO: checking for $ac_func" >&5
33881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33882if eval "test \"\${$as_ac_var+set}\" = set"; then
33883 echo $ECHO_N "(cached) $ECHO_C" >&6
33884else
33885 cat >conftest.$ac_ext <<_ACEOF
33886/* confdefs.h. */
33887_ACEOF
33888cat confdefs.h >>conftest.$ac_ext
33889cat >>conftest.$ac_ext <<_ACEOF
33890/* end confdefs.h. */
ac1cb8d3
VS
33891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33893#define $ac_func innocuous_$ac_func
33894
a848cd7e
SC
33895/* System header to define __stub macros and hopefully few prototypes,
33896 which can conflict with char $ac_func (); below.
33897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33898 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33899
a848cd7e
SC
33900#ifdef __STDC__
33901# include <limits.h>
33902#else
33903# include <assert.h>
33904#endif
ac1cb8d3
VS
33905
33906#undef $ac_func
33907
a848cd7e
SC
33908/* Override any gcc2 internal prototype to avoid an error. */
33909#ifdef __cplusplus
33910extern "C"
33911{
33912#endif
33913/* We use char because int might match the return type of a gcc2
33914 builtin and then its argument prototype would still apply. */
33915char $ac_func ();
33916/* The GNU C library defines this for functions which it implements
33917 to always fail with ENOSYS. Some functions are actually named
33918 something starting with __ and the normal name is an alias. */
33919#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33920choke me
33921#else
33922char (*f) () = $ac_func;
33923#endif
33924#ifdef __cplusplus
33925}
33926#endif
33927
33928int
33929main ()
33930{
33931return f != $ac_func;
33932 ;
33933 return 0;
33934}
33935_ACEOF
33936rm -f conftest.$ac_objext conftest$ac_exeext
33937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33938 (eval $ac_link) 2>conftest.er1
a848cd7e 33939 ac_status=$?
ac1cb8d3
VS
33940 grep -v '^ *+' conftest.er1 >conftest.err
33941 rm -f conftest.er1
33942 cat conftest.err >&5
a848cd7e
SC
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); } &&
07158944 33945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33948 ac_status=$?
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; } &&
33951 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953 (eval $ac_try) 2>&5
33954 ac_status=$?
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; }; then
33957 eval "$as_ac_var=yes"
33958else
33959 echo "$as_me: failed program was:" >&5
33960sed 's/^/| /' conftest.$ac_ext >&5
33961
33962eval "$as_ac_var=no"
33963fi
ac1cb8d3
VS
33964rm -f conftest.err conftest.$ac_objext \
33965 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33966fi
33967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33969if test `eval echo '${'$as_ac_var'}'` = yes; then
33970 cat >>confdefs.h <<_ACEOF
33971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33972_ACEOF
33973
33974fi
33975done
33976
33977
33978
33979for ac_header in sched.h
33980do
33981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33982if eval "test \"\${$as_ac_Header+set}\" = set"; then
33983 echo "$as_me:$LINENO: checking for $ac_header" >&5
33984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33985if eval "test \"\${$as_ac_Header+set}\" = set"; then
33986 echo $ECHO_N "(cached) $ECHO_C" >&6
33987fi
33988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33990else
33991 # Is the header compilable?
33992echo "$as_me:$LINENO: checking $ac_header usability" >&5
33993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33994cat >conftest.$ac_ext <<_ACEOF
33995/* confdefs.h. */
33996_ACEOF
33997cat confdefs.h >>conftest.$ac_ext
33998cat >>conftest.$ac_ext <<_ACEOF
33999/* end confdefs.h. */
34000$ac_includes_default
34001#include <$ac_header>
34002_ACEOF
34003rm -f conftest.$ac_objext
34004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34005 (eval $ac_compile) 2>conftest.er1
a848cd7e 34006 ac_status=$?
ac1cb8d3
VS
34007 grep -v '^ *+' conftest.er1 >conftest.err
34008 rm -f conftest.er1
34009 cat conftest.err >&5
a848cd7e
SC
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); } &&
07158944 34012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34014 (eval $ac_try) 2>&5
34015 ac_status=$?
34016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34017 (exit $ac_status); }; } &&
34018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020 (eval $ac_try) 2>&5
34021 ac_status=$?
34022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023 (exit $ac_status); }; }; then
34024 ac_header_compiler=yes
34025else
34026 echo "$as_me: failed program was:" >&5
34027sed 's/^/| /' conftest.$ac_ext >&5
34028
34029ac_header_compiler=no
34030fi
ac1cb8d3 34031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34033echo "${ECHO_T}$ac_header_compiler" >&6
34034
34035# Is the header present?
34036echo "$as_me:$LINENO: checking $ac_header presence" >&5
34037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34038cat >conftest.$ac_ext <<_ACEOF
34039/* confdefs.h. */
34040_ACEOF
34041cat confdefs.h >>conftest.$ac_ext
34042cat >>conftest.$ac_ext <<_ACEOF
34043/* end confdefs.h. */
34044#include <$ac_header>
34045_ACEOF
34046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34048 ac_status=$?
34049 grep -v '^ *+' conftest.er1 >conftest.err
34050 rm -f conftest.er1
34051 cat conftest.err >&5
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); } >/dev/null; then
34054 if test -s conftest.err; then
34055 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34057 else
34058 ac_cpp_err=
34059 fi
34060else
34061 ac_cpp_err=yes
34062fi
34063if test -z "$ac_cpp_err"; then
34064 ac_header_preproc=yes
34065else
34066 echo "$as_me: failed program was:" >&5
34067sed 's/^/| /' conftest.$ac_ext >&5
34068
34069 ac_header_preproc=no
34070fi
34071rm -f conftest.err conftest.$ac_ext
34072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34073echo "${ECHO_T}$ac_header_preproc" >&6
34074
34075# So? What about this header?
ac1cb8d3
VS
34076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34077 yes:no: )
a848cd7e
SC
34078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34082 ac_header_preproc=yes
a848cd7e 34083 ;;
ac1cb8d3 34084 no:yes:* )
a848cd7e
SC
34085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34097 (
34098 cat <<\_ASBOX
ac1cb8d3
VS
34099## ----------------------------------------- ##
34100## Report this to wx-dev@lists.wxwidgets.org ##
34101## ----------------------------------------- ##
a848cd7e
SC
34102_ASBOX
34103 ) |
34104 sed "s/^/$as_me: WARNING: /" >&2
34105 ;;
34106esac
34107echo "$as_me:$LINENO: checking for $ac_header" >&5
34108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34109if eval "test \"\${$as_ac_Header+set}\" = set"; then
34110 echo $ECHO_N "(cached) $ECHO_C" >&6
34111else
ac1cb8d3 34112 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34113fi
34114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34116
34117fi
34118if test `eval echo '${'$as_ac_Header'}'` = yes; then
34119 cat >>confdefs.h <<_ACEOF
34120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34121_ACEOF
34122
34123fi
34124
34125done
34126
34127 if test "$ac_cv_header_sched_h" = "yes"; then
34128 echo "$as_me:$LINENO: checking for sched_yield" >&5
34129echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34130if test "${ac_cv_func_sched_yield+set}" = set; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34132else
34133 cat >conftest.$ac_ext <<_ACEOF
34134/* confdefs.h. */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h. */
ac1cb8d3
VS
34139/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34141#define sched_yield innocuous_sched_yield
34142
a848cd7e
SC
34143/* System header to define __stub macros and hopefully few prototypes,
34144 which can conflict with char sched_yield (); below.
34145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34147
a848cd7e
SC
34148#ifdef __STDC__
34149# include <limits.h>
34150#else
34151# include <assert.h>
34152#endif
ac1cb8d3
VS
34153
34154#undef sched_yield
34155
a848cd7e
SC
34156/* Override any gcc2 internal prototype to avoid an error. */
34157#ifdef __cplusplus
34158extern "C"
34159{
34160#endif
34161/* We use char because int might match the return type of a gcc2
34162 builtin and then its argument prototype would still apply. */
34163char sched_yield ();
34164/* The GNU C library defines this for functions which it implements
34165 to always fail with ENOSYS. Some functions are actually named
34166 something starting with __ and the normal name is an alias. */
34167#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34168choke me
34169#else
34170char (*f) () = sched_yield;
34171#endif
34172#ifdef __cplusplus
34173}
34174#endif
34175
34176int
34177main ()
34178{
34179return f != sched_yield;
34180 ;
34181 return 0;
34182}
34183_ACEOF
34184rm -f conftest.$ac_objext conftest$ac_exeext
34185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34186 (eval $ac_link) 2>conftest.er1
a848cd7e 34187 ac_status=$?
ac1cb8d3
VS
34188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
a848cd7e
SC
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } &&
07158944 34193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; } &&
34199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
34205 ac_cv_func_sched_yield=yes
34206else
34207 echo "$as_me: failed program was:" >&5
34208sed 's/^/| /' conftest.$ac_ext >&5
34209
34210ac_cv_func_sched_yield=no
34211fi
ac1cb8d3
VS
34212rm -f conftest.err conftest.$ac_objext \
34213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34214fi
34215echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34216echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34217if test $ac_cv_func_sched_yield = yes; then
34218 cat >>confdefs.h <<\_ACEOF
34219#define HAVE_SCHED_YIELD 1
34220_ACEOF
34221
34222else
34223
34224 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34225echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34226if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34227 echo $ECHO_N "(cached) $ECHO_C" >&6
34228else
34229 ac_check_lib_save_LIBS=$LIBS
34230LIBS="-lposix4 $LIBS"
34231cat >conftest.$ac_ext <<_ACEOF
34232/* confdefs.h. */
34233_ACEOF
34234cat confdefs.h >>conftest.$ac_ext
34235cat >>conftest.$ac_ext <<_ACEOF
34236/* end confdefs.h. */
34237
34238/* Override any gcc2 internal prototype to avoid an error. */
34239#ifdef __cplusplus
34240extern "C"
34241#endif
34242/* We use char because int might match the return type of a gcc2
34243 builtin and then its argument prototype would still apply. */
34244char sched_yield ();
34245int
34246main ()
34247{
34248sched_yield ();
34249 ;
34250 return 0;
34251}
34252_ACEOF
34253rm -f conftest.$ac_objext conftest$ac_exeext
34254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34255 (eval $ac_link) 2>conftest.er1
a848cd7e 34256 ac_status=$?
ac1cb8d3
VS
34257 grep -v '^ *+' conftest.er1 >conftest.err
34258 rm -f conftest.er1
34259 cat conftest.err >&5
a848cd7e
SC
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); } &&
07158944 34262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; } &&
34268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34271 ac_status=$?
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; }; then
34274 ac_cv_lib_posix4_sched_yield=yes
34275else
34276 echo "$as_me: failed program was:" >&5
34277sed 's/^/| /' conftest.$ac_ext >&5
34278
34279ac_cv_lib_posix4_sched_yield=no
34280fi
ac1cb8d3
VS
34281rm -f conftest.err conftest.$ac_objext \
34282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34283LIBS=$ac_check_lib_save_LIBS
34284fi
34285echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34286echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34287if test $ac_cv_lib_posix4_sched_yield = yes; then
34288 cat >>confdefs.h <<\_ACEOF
34289#define HAVE_SCHED_YIELD 1
34290_ACEOF
34291 POSIX4_LINK=" -lposix4"
34292else
34293 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34294echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34295
34296fi
34297
34298
34299
34300fi
34301
34302 fi
34303
34304 HAVE_PRIOR_FUNCS=0
34305 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34306echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34307if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34308 echo $ECHO_N "(cached) $ECHO_C" >&6
34309else
34310 cat >conftest.$ac_ext <<_ACEOF
34311/* confdefs.h. */
34312_ACEOF
34313cat confdefs.h >>conftest.$ac_ext
34314cat >>conftest.$ac_ext <<_ACEOF
34315/* end confdefs.h. */
ac1cb8d3
VS
34316/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34318#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34319
a848cd7e
SC
34320/* System header to define __stub macros and hopefully few prototypes,
34321 which can conflict with char pthread_attr_getschedpolicy (); below.
34322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34324
a848cd7e
SC
34325#ifdef __STDC__
34326# include <limits.h>
34327#else
34328# include <assert.h>
34329#endif
ac1cb8d3
VS
34330
34331#undef pthread_attr_getschedpolicy
34332
a848cd7e
SC
34333/* Override any gcc2 internal prototype to avoid an error. */
34334#ifdef __cplusplus
34335extern "C"
34336{
34337#endif
34338/* We use char because int might match the return type of a gcc2
34339 builtin and then its argument prototype would still apply. */
34340char pthread_attr_getschedpolicy ();
34341/* The GNU C library defines this for functions which it implements
34342 to always fail with ENOSYS. Some functions are actually named
34343 something starting with __ and the normal name is an alias. */
34344#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34345choke me
34346#else
34347char (*f) () = pthread_attr_getschedpolicy;
34348#endif
34349#ifdef __cplusplus
34350}
34351#endif
34352
34353int
34354main ()
34355{
34356return f != pthread_attr_getschedpolicy;
34357 ;
34358 return 0;
34359}
34360_ACEOF
34361rm -f conftest.$ac_objext conftest$ac_exeext
34362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34363 (eval $ac_link) 2>conftest.er1
a848cd7e 34364 ac_status=$?
ac1cb8d3
VS
34365 grep -v '^ *+' conftest.er1 >conftest.err
34366 rm -f conftest.er1
34367 cat conftest.err >&5
a848cd7e
SC
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
07158944 34370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372 (eval $ac_try) 2>&5
34373 ac_status=$?
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); }; } &&
34376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378 (eval $ac_try) 2>&5
34379 ac_status=$?
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); }; }; then
34382 ac_cv_func_pthread_attr_getschedpolicy=yes
34383else
34384 echo "$as_me: failed program was:" >&5
34385sed 's/^/| /' conftest.$ac_ext >&5
34386
34387ac_cv_func_pthread_attr_getschedpolicy=no
34388fi
ac1cb8d3
VS
34389rm -f conftest.err conftest.$ac_objext \
34390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34391fi
34392echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34393echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34394if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34395 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34396echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34397if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34398 echo $ECHO_N "(cached) $ECHO_C" >&6
34399else
34400 cat >conftest.$ac_ext <<_ACEOF
34401/* confdefs.h. */
34402_ACEOF
34403cat confdefs.h >>conftest.$ac_ext
34404cat >>conftest.$ac_ext <<_ACEOF
34405/* end confdefs.h. */
ac1cb8d3
VS
34406/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34408#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34409
a848cd7e
SC
34410/* System header to define __stub macros and hopefully few prototypes,
34411 which can conflict with char pthread_attr_setschedparam (); below.
34412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34413 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34414
a848cd7e
SC
34415#ifdef __STDC__
34416# include <limits.h>
34417#else
34418# include <assert.h>
34419#endif
ac1cb8d3
VS
34420
34421#undef pthread_attr_setschedparam
34422
a848cd7e
SC
34423/* Override any gcc2 internal prototype to avoid an error. */
34424#ifdef __cplusplus
34425extern "C"
34426{
34427#endif
34428/* We use char because int might match the return type of a gcc2
34429 builtin and then its argument prototype would still apply. */
34430char pthread_attr_setschedparam ();
34431/* The GNU C library defines this for functions which it implements
34432 to always fail with ENOSYS. Some functions are actually named
34433 something starting with __ and the normal name is an alias. */
34434#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34435choke me
34436#else
34437char (*f) () = pthread_attr_setschedparam;
34438#endif
34439#ifdef __cplusplus
34440}
34441#endif
34442
34443int
34444main ()
34445{
34446return f != pthread_attr_setschedparam;
34447 ;
34448 return 0;
34449}
34450_ACEOF
34451rm -f conftest.$ac_objext conftest$ac_exeext
34452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34453 (eval $ac_link) 2>conftest.er1
a848cd7e 34454 ac_status=$?
ac1cb8d3
VS
34455 grep -v '^ *+' conftest.er1 >conftest.err
34456 rm -f conftest.er1
34457 cat conftest.err >&5
a848cd7e
SC
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); } &&
07158944 34460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34462 (eval $ac_try) 2>&5
34463 ac_status=$?
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); }; } &&
34466 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468 (eval $ac_try) 2>&5
34469 ac_status=$?
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; }; then
34472 ac_cv_func_pthread_attr_setschedparam=yes
34473else
34474 echo "$as_me: failed program was:" >&5
34475sed 's/^/| /' conftest.$ac_ext >&5
34476
34477ac_cv_func_pthread_attr_setschedparam=no
34478fi
ac1cb8d3
VS
34479rm -f conftest.err conftest.$ac_objext \
34480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34481fi
34482echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34483echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34484if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34485 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34486echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34487if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34488 echo $ECHO_N "(cached) $ECHO_C" >&6
34489else
34490 cat >conftest.$ac_ext <<_ACEOF
34491/* confdefs.h. */
34492_ACEOF
34493cat confdefs.h >>conftest.$ac_ext
34494cat >>conftest.$ac_ext <<_ACEOF
34495/* end confdefs.h. */
ac1cb8d3
VS
34496/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34498#define sched_get_priority_max innocuous_sched_get_priority_max
34499
a848cd7e
SC
34500/* System header to define __stub macros and hopefully few prototypes,
34501 which can conflict with char sched_get_priority_max (); below.
34502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34503 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34504
a848cd7e
SC
34505#ifdef __STDC__
34506# include <limits.h>
34507#else
34508# include <assert.h>
34509#endif
ac1cb8d3
VS
34510
34511#undef sched_get_priority_max
34512
a848cd7e
SC
34513/* Override any gcc2 internal prototype to avoid an error. */
34514#ifdef __cplusplus
34515extern "C"
34516{
34517#endif
34518/* We use char because int might match the return type of a gcc2
34519 builtin and then its argument prototype would still apply. */
34520char sched_get_priority_max ();
34521/* The GNU C library defines this for functions which it implements
34522 to always fail with ENOSYS. Some functions are actually named
34523 something starting with __ and the normal name is an alias. */
34524#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34525choke me
34526#else
34527char (*f) () = sched_get_priority_max;
34528#endif
34529#ifdef __cplusplus
34530}
34531#endif
34532
34533int
34534main ()
34535{
34536return f != sched_get_priority_max;
34537 ;
34538 return 0;
34539}
34540_ACEOF
34541rm -f conftest.$ac_objext conftest$ac_exeext
34542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34543 (eval $ac_link) 2>conftest.er1
a848cd7e 34544 ac_status=$?
ac1cb8d3
VS
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
a848cd7e
SC
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
07158944 34550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; } &&
34556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; }; then
34562 ac_cv_func_sched_get_priority_max=yes
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567ac_cv_func_sched_get_priority_max=no
34568fi
ac1cb8d3
VS
34569rm -f conftest.err conftest.$ac_objext \
34570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34571fi
34572echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34573echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34574if test $ac_cv_func_sched_get_priority_max = yes; then
34575 HAVE_PRIOR_FUNCS=1
34576else
34577 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34578echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34579if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34580 echo $ECHO_N "(cached) $ECHO_C" >&6
34581else
34582 ac_check_lib_save_LIBS=$LIBS
34583LIBS="-lposix4 $LIBS"
34584cat >conftest.$ac_ext <<_ACEOF
34585/* confdefs.h. */
34586_ACEOF
34587cat confdefs.h >>conftest.$ac_ext
34588cat >>conftest.$ac_ext <<_ACEOF
34589/* end confdefs.h. */
34590
34591/* Override any gcc2 internal prototype to avoid an error. */
34592#ifdef __cplusplus
34593extern "C"
34594#endif
34595/* We use char because int might match the return type of a gcc2
34596 builtin and then its argument prototype would still apply. */
34597char sched_get_priority_max ();
34598int
34599main ()
34600{
34601sched_get_priority_max ();
34602 ;
34603 return 0;
34604}
34605_ACEOF
34606rm -f conftest.$ac_objext conftest$ac_exeext
34607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34608 (eval $ac_link) 2>conftest.er1
a848cd7e 34609 ac_status=$?
ac1cb8d3
VS
34610 grep -v '^ *+' conftest.er1 >conftest.err
34611 rm -f conftest.er1
34612 cat conftest.err >&5
a848cd7e
SC
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); } &&
07158944 34615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617 (eval $ac_try) 2>&5
34618 ac_status=$?
34619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620 (exit $ac_status); }; } &&
34621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34623 (eval $ac_try) 2>&5
34624 ac_status=$?
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); }; }; then
34627 ac_cv_lib_posix4_sched_get_priority_max=yes
34628else
34629 echo "$as_me: failed program was:" >&5
34630sed 's/^/| /' conftest.$ac_ext >&5
34631
34632ac_cv_lib_posix4_sched_get_priority_max=no
34633fi
ac1cb8d3
VS
34634rm -f conftest.err conftest.$ac_objext \
34635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34636LIBS=$ac_check_lib_save_LIBS
34637fi
34638echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34639echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34640if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34641
34642 HAVE_PRIOR_FUNCS=1
34643 POSIX4_LINK=" -lposix4"
34644
34645fi
34646
34647
34648fi
34649
34650
34651fi
34652
34653
34654fi
34655
34656
34657 if test "$HAVE_PRIOR_FUNCS" = 1; then
34658 cat >>confdefs.h <<\_ACEOF
34659#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34660_ACEOF
34661
34662 else
34663 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34664echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34665 fi
34666
34667 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34668echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34669if test "${ac_cv_func_pthread_cancel+set}" = set; then
34670 echo $ECHO_N "(cached) $ECHO_C" >&6
34671else
34672 cat >conftest.$ac_ext <<_ACEOF
34673/* confdefs.h. */
34674_ACEOF
34675cat confdefs.h >>conftest.$ac_ext
34676cat >>conftest.$ac_ext <<_ACEOF
34677/* end confdefs.h. */
ac1cb8d3
VS
34678/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34680#define pthread_cancel innocuous_pthread_cancel
34681
a848cd7e
SC
34682/* System header to define __stub macros and hopefully few prototypes,
34683 which can conflict with char pthread_cancel (); below.
34684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34686
a848cd7e
SC
34687#ifdef __STDC__
34688# include <limits.h>
34689#else
34690# include <assert.h>
34691#endif
ac1cb8d3
VS
34692
34693#undef pthread_cancel
34694
a848cd7e
SC
34695/* Override any gcc2 internal prototype to avoid an error. */
34696#ifdef __cplusplus
34697extern "C"
34698{
34699#endif
34700/* We use char because int might match the return type of a gcc2
34701 builtin and then its argument prototype would still apply. */
34702char pthread_cancel ();
34703/* The GNU C library defines this for functions which it implements
34704 to always fail with ENOSYS. Some functions are actually named
34705 something starting with __ and the normal name is an alias. */
34706#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34707choke me
34708#else
34709char (*f) () = pthread_cancel;
34710#endif
34711#ifdef __cplusplus
34712}
34713#endif
34714
34715int
34716main ()
34717{
34718return f != pthread_cancel;
34719 ;
34720 return 0;
34721}
34722_ACEOF
34723rm -f conftest.$ac_objext conftest$ac_exeext
34724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34725 (eval $ac_link) 2>conftest.er1
a848cd7e 34726 ac_status=$?
ac1cb8d3
VS
34727 grep -v '^ *+' conftest.er1 >conftest.err
34728 rm -f conftest.er1
34729 cat conftest.err >&5
a848cd7e
SC
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); } &&
07158944 34732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734 (eval $ac_try) 2>&5
34735 ac_status=$?
34736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737 (exit $ac_status); }; } &&
34738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34740 (eval $ac_try) 2>&5
34741 ac_status=$?
34742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34743 (exit $ac_status); }; }; then
34744 ac_cv_func_pthread_cancel=yes
34745else
34746 echo "$as_me: failed program was:" >&5
34747sed 's/^/| /' conftest.$ac_ext >&5
34748
34749ac_cv_func_pthread_cancel=no
34750fi
ac1cb8d3
VS
34751rm -f conftest.err conftest.$ac_objext \
34752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34753fi
34754echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34755echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34756if test $ac_cv_func_pthread_cancel = yes; then
34757 cat >>confdefs.h <<\_ACEOF
34758#define HAVE_PTHREAD_CANCEL 1
34759_ACEOF
34760
34761else
34762 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34763echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34764fi
34765
34766
34767
34768
34769 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34770echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34771if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
34774
34775 cat >conftest.$ac_ext <<_ACEOF
34776/* confdefs.h. */
34777_ACEOF
34778cat confdefs.h >>conftest.$ac_ext
34779cat >>conftest.$ac_ext <<_ACEOF
34780/* end confdefs.h. */
34781#include <pthread.h>
34782int
34783main ()
34784{
34785
34786 pthread_mutexattr_t attr;
34787 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34788
34789 ;
34790 return 0;
34791}
34792_ACEOF
34793rm -f conftest.$ac_objext
34794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34795 (eval $ac_compile) 2>conftest.er1
a848cd7e 34796 ac_status=$?
ac1cb8d3
VS
34797 grep -v '^ *+' conftest.er1 >conftest.err
34798 rm -f conftest.er1
34799 cat conftest.err >&5
a848cd7e
SC
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); } &&
07158944 34802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34804 (eval $ac_try) 2>&5
34805 ac_status=$?
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); }; } &&
34808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34810 (eval $ac_try) 2>&5
34811 ac_status=$?
34812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 (exit $ac_status); }; }; then
34814
34815 wx_cv_type_pthread_mutexattr_t=yes
34816
34817else
34818 echo "$as_me: failed program was:" >&5
34819sed 's/^/| /' conftest.$ac_ext >&5
34820
34821
34822 wx_cv_type_pthread_mutexattr_t=no
34823
34824
34825fi
ac1cb8d3 34826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34827
34828fi
34829echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34830echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34831
34832 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34833 cat >>confdefs.h <<\_ACEOF
34834#define HAVE_PTHREAD_MUTEXATTR_T 1
34835_ACEOF
34836
34837 else
34838 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34839echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34840if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34841 echo $ECHO_N "(cached) $ECHO_C" >&6
34842else
34843
34844 cat >conftest.$ac_ext <<_ACEOF
34845/* confdefs.h. */
34846_ACEOF
34847cat confdefs.h >>conftest.$ac_ext
34848cat >>conftest.$ac_ext <<_ACEOF
34849/* end confdefs.h. */
34850#include <pthread.h>
34851int
34852main ()
34853{
34854
34855 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34856
34857 ;
34858 return 0;
34859}
34860_ACEOF
34861rm -f conftest.$ac_objext
34862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34863 (eval $ac_compile) 2>conftest.er1
a848cd7e 34864 ac_status=$?
ac1cb8d3
VS
34865 grep -v '^ *+' conftest.er1 >conftest.err
34866 rm -f conftest.er1
34867 cat conftest.err >&5
a848cd7e
SC
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } &&
07158944 34870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34878 (eval $ac_try) 2>&5
34879 ac_status=$?
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); }; }; then
34882
34883 wx_cv_type_pthread_rec_mutex_init=yes
34884
34885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889
34890 wx_cv_type_pthread_rec_mutex_init=no
34891
34892
34893fi
ac1cb8d3 34894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34895
34896fi
34897echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34898echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34899 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34900 cat >>confdefs.h <<\_ACEOF
34901#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34902_ACEOF
34903
34904 else
34905 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34906echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34907 fi
34908 fi
34909 fi
34910
34911else
34912 if test "$wxUSE_THREADS" = "yes" ; then
34913 case "${host}" in
34914 *-*-mingw32* )
34915 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34916echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34917if test "${wx_cv_cflags_mthread+set}" = set; then
34918 echo $ECHO_N "(cached) $ECHO_C" >&6
34919else
34920
34921 CFLAGS_OLD="$CFLAGS"
34922 CFLAGS="$CFLAGS -mthreads"
34923 cat >conftest.$ac_ext <<_ACEOF
34924/* confdefs.h. */
34925_ACEOF
34926cat confdefs.h >>conftest.$ac_ext
34927cat >>conftest.$ac_ext <<_ACEOF
34928/* end confdefs.h. */
34929
34930int
34931main ()
34932{
34933
34934 ;
34935 return 0;
34936}
34937_ACEOF
34938rm -f conftest.$ac_objext
34939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34940 (eval $ac_compile) 2>conftest.er1
a848cd7e 34941 ac_status=$?
ac1cb8d3
VS
34942 grep -v '^ *+' conftest.er1 >conftest.err
34943 rm -f conftest.er1
34944 cat conftest.err >&5
a848cd7e
SC
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); } &&
07158944 34947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34949 (eval $ac_try) 2>&5
34950 ac_status=$?
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); }; } &&
34953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; }; then
34959 wx_cv_cflags_mthread=yes
34960else
34961 echo "$as_me: failed program was:" >&5
34962sed 's/^/| /' conftest.$ac_ext >&5
34963
34964wx_cv_cflags_mthread=no
34965
34966fi
ac1cb8d3 34967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34968
34969
34970fi
34971echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34972echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34973
34974 if test "$wx_cv_cflags_mthread" = "yes"; then
34975 CXXFLAGS="$CXXFLAGS -mthreads"
34976 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34977 LDFLAGS="$LDFLAGS -mthreads"
34978 else
34979 CFLAGS="$CFLAGS_OLD"
34980 fi
34981 ;;
34982 *-pc-os2*emx )
34983 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34984 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34985 LDFLAGS="$LDFLAGS -Zmt"
34986 ;;
34987 esac
34988 fi
34989fi
34990
34991if test "$wxUSE_THREADS" = "yes"; then
34992 cat >>confdefs.h <<\_ACEOF
34993#define wxUSE_THREADS 1
34994_ACEOF
34995
34996
34997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
34998else
34999 if test "$ac_cv_func_strtok_r" = "yes"; then
35000 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35001echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35002 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35003 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35004 echo "$as_me:$LINENO: result: yes" >&5
35005echo "${ECHO_T}yes" >&6
35006 else
35007 echo "$as_me:$LINENO: result: no" >&5
35008echo "${ECHO_T}no" >&6
35009 fi
35010 fi
35011fi
35012
35013if test "$WXGTK20" = 1 ; then
35014 cat >>confdefs.h <<_ACEOF
35015#define __WXGTK20__ $WXGTK20
35016_ACEOF
35017
35018 WXGTK12=1
35019fi
35020
35021if test "$WXGTK12" = 1 ; then
35022 cat >>confdefs.h <<_ACEOF
35023#define __WXGTK12__ $WXGTK12
35024_ACEOF
35025
35026fi
35027
35028if test "$WXGTK127" = 1 ; then
35029 cat >>confdefs.h <<_ACEOF
35030#define __WXGTK127__ $WXGTK127
35031_ACEOF
35032
35033fi
35034
35035if test "$WXGPE" = 1 ; then
35036 cat >>confdefs.h <<_ACEOF
35037#define __WXGPE__ $WXGPE
35038_ACEOF
35039
35040fi
35041
35042WXDEBUG=
35043
35044if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35045 WXDEBUG="-g"
35046 wxUSE_OPTIMISE=no
35047fi
35048
35049if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35050 wxUSE_DEBUG_INFO=yes
35051 WXDEBUG="-ggdb"
35052fi
35053
35054if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35055 cat >>confdefs.h <<\_ACEOF
35056#define WXDEBUG 1
35057_ACEOF
35058
35059 WXDEBUG_DEFINE="-D__WXDEBUG__"
35060else
35061 if test "$wxUSE_GTK" = 1 ; then
35062 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35063 fi
35064fi
35065
35066if test "$wxUSE_MEM_TRACING" = "yes" ; then
35067 cat >>confdefs.h <<\_ACEOF
35068#define wxUSE_MEMORY_TRACING 1
35069_ACEOF
35070
35071 cat >>confdefs.h <<\_ACEOF
35072#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35073_ACEOF
35074
35075 cat >>confdefs.h <<\_ACEOF
35076#define wxUSE_DEBUG_NEW_ALWAYS 1
35077_ACEOF
35078
35079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35080fi
35081
35082if test "$wxUSE_DMALLOC" = "yes" ; then
35083 DMALLOC_LIBS="-ldmalloc"
35084fi
35085
35086PROFILE=
35087if test "$wxUSE_PROFILE" = "yes" ; then
35088 PROFILE=" -pg"
35089fi
35090
35091CODE_GEN_FLAGS=
35092CODE_GEN_FLAGS_CXX=
35093if test "$GCC" = "yes" ; then
35094 if test "$wxUSE_NO_RTTI" = "yes" ; then
35095 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35096 fi
35097 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35098 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35099 fi
35100 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35101 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35102 fi
35103
35104 case "${host}" in
35105 powerpc*-*-aix* )
35106 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35107 ;;
35108 *-hppa* )
35109 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35110 ;;
35111 esac
35112fi
35113
35114OPTIMISE=
35115if test "$wxUSE_OPTIMISE" = "no" ; then
35116 if test "$GCC" = yes ; then
35117 OPTIMISE="-O0"
35118 fi
35119else
35120 if test "$GCC" = yes ; then
35121 OPTIMISE="-O2"
35122
35123 case "${host}" in
35124 i586-*-*|i686-*-* )
35125 OPTIMISE="${OPTIMISE} "
35126 ;;
35127 esac
35128 else
35129 OPTIMISE="-O"
35130 fi
35131fi
35132
35133
35134if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35135 cat >>confdefs.h <<\_ACEOF
35136#define WXWIN_COMPATIBILITY_2_2 1
35137_ACEOF
35138
35139
35140 WXWIN_COMPATIBILITY_2_4="yes"
35141fi
35142
35143if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35144 cat >>confdefs.h <<\_ACEOF
35145#define WXWIN_COMPATIBILITY_2_4 1
35146_ACEOF
35147
35148fi
35149
35150
35151if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35152 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35153#define wxUSE_GUI 1
35154_ACEOF
35155
35156
370fd4c2 35157 fi
a848cd7e
SC
35158
35159
35160if test "$wxUSE_UNIX" = "yes"; then
35161 cat >>confdefs.h <<\_ACEOF
35162#define wxUSE_UNIX 1
35163_ACEOF
35164
35165fi
35166
35167
35168if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35169
35170 HAVE_DL_FUNCS=0
35171 HAVE_SHL_FUNCS=0
35172 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35173 if test "$USE_DARWIN" = 1; then
35174 HAVE_DL_FUNCS=1
35175 else
35176
35177for ac_func in dlopen
35178do
35179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35180echo "$as_me:$LINENO: checking for $ac_func" >&5
35181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35182if eval "test \"\${$as_ac_var+set}\" = set"; then
35183 echo $ECHO_N "(cached) $ECHO_C" >&6
35184else
35185 cat >conftest.$ac_ext <<_ACEOF
35186/* confdefs.h. */
35187_ACEOF
35188cat confdefs.h >>conftest.$ac_ext
35189cat >>conftest.$ac_ext <<_ACEOF
35190/* end confdefs.h. */
ac1cb8d3
VS
35191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35193#define $ac_func innocuous_$ac_func
35194
a848cd7e
SC
35195/* System header to define __stub macros and hopefully few prototypes,
35196 which can conflict with char $ac_func (); below.
35197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35198 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35199
a848cd7e
SC
35200#ifdef __STDC__
35201# include <limits.h>
35202#else
35203# include <assert.h>
35204#endif
ac1cb8d3
VS
35205
35206#undef $ac_func
35207
a848cd7e
SC
35208/* Override any gcc2 internal prototype to avoid an error. */
35209#ifdef __cplusplus
35210extern "C"
35211{
35212#endif
35213/* We use char because int might match the return type of a gcc2
35214 builtin and then its argument prototype would still apply. */
35215char $ac_func ();
35216/* The GNU C library defines this for functions which it implements
35217 to always fail with ENOSYS. Some functions are actually named
35218 something starting with __ and the normal name is an alias. */
35219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35220choke me
35221#else
35222char (*f) () = $ac_func;
35223#endif
35224#ifdef __cplusplus
35225}
35226#endif
35227
35228int
35229main ()
35230{
35231return f != $ac_func;
35232 ;
35233 return 0;
35234}
35235_ACEOF
35236rm -f conftest.$ac_objext conftest$ac_exeext
35237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35238 (eval $ac_link) 2>conftest.er1
a848cd7e 35239 ac_status=$?
ac1cb8d3
VS
35240 grep -v '^ *+' conftest.er1 >conftest.err
35241 rm -f conftest.er1
35242 cat conftest.err >&5
a848cd7e
SC
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); } &&
07158944 35245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247 (eval $ac_try) 2>&5
35248 ac_status=$?
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); }; } &&
35251 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35254 ac_status=$?
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; }; then
35257 eval "$as_ac_var=yes"
35258else
35259 echo "$as_me: failed program was:" >&5
35260sed 's/^/| /' conftest.$ac_ext >&5
35261
35262eval "$as_ac_var=no"
35263fi
ac1cb8d3
VS
35264rm -f conftest.err conftest.$ac_objext \
35265 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35266fi
35267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35269if test `eval echo '${'$as_ac_var'}'` = yes; then
35270 cat >>confdefs.h <<_ACEOF
35271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35272_ACEOF
35273
35274 cat >>confdefs.h <<\_ACEOF
35275#define HAVE_DLOPEN 1
35276_ACEOF
35277
35278 HAVE_DL_FUNCS=1
35279
35280else
35281
35282 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35283echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35284if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35285 echo $ECHO_N "(cached) $ECHO_C" >&6
35286else
35287 ac_check_lib_save_LIBS=$LIBS
35288LIBS="-ldl $LIBS"
35289cat >conftest.$ac_ext <<_ACEOF
35290/* confdefs.h. */
35291_ACEOF
35292cat confdefs.h >>conftest.$ac_ext
35293cat >>conftest.$ac_ext <<_ACEOF
35294/* end confdefs.h. */
35295
35296/* Override any gcc2 internal prototype to avoid an error. */
35297#ifdef __cplusplus
35298extern "C"
35299#endif
35300/* We use char because int might match the return type of a gcc2
35301 builtin and then its argument prototype would still apply. */
35302char dlopen ();
35303int
35304main ()
35305{
35306dlopen ();
35307 ;
35308 return 0;
35309}
35310_ACEOF
35311rm -f conftest.$ac_objext conftest$ac_exeext
35312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35313 (eval $ac_link) 2>conftest.er1
a848cd7e 35314 ac_status=$?
ac1cb8d3
VS
35315 grep -v '^ *+' conftest.er1 >conftest.err
35316 rm -f conftest.er1
35317 cat conftest.err >&5
a848cd7e
SC
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); } &&
07158944 35320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
35323 ac_status=$?
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; } &&
35326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35328 (eval $ac_try) 2>&5
35329 ac_status=$?
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; }; then
35332 ac_cv_lib_dl_dlopen=yes
35333else
35334 echo "$as_me: failed program was:" >&5
35335sed 's/^/| /' conftest.$ac_ext >&5
35336
35337ac_cv_lib_dl_dlopen=no
35338fi
ac1cb8d3
VS
35339rm -f conftest.err conftest.$ac_objext \
35340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35341LIBS=$ac_check_lib_save_LIBS
35342fi
35343echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35344echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35345if test $ac_cv_lib_dl_dlopen = yes; then
35346
35347 cat >>confdefs.h <<\_ACEOF
35348#define HAVE_DLOPEN 1
35349_ACEOF
35350
35351 HAVE_DL_FUNCS=1
35352 DL_LINK=" -ldl$DL_LINK"
35353
35354else
35355
35356
35357for ac_func in shl_load
35358do
35359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35360echo "$as_me:$LINENO: checking for $ac_func" >&5
35361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35362if eval "test \"\${$as_ac_var+set}\" = set"; then
35363 echo $ECHO_N "(cached) $ECHO_C" >&6
35364else
35365 cat >conftest.$ac_ext <<_ACEOF
35366/* confdefs.h. */
35367_ACEOF
35368cat confdefs.h >>conftest.$ac_ext
35369cat >>conftest.$ac_ext <<_ACEOF
35370/* end confdefs.h. */
ac1cb8d3
VS
35371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35373#define $ac_func innocuous_$ac_func
35374
a848cd7e
SC
35375/* System header to define __stub macros and hopefully few prototypes,
35376 which can conflict with char $ac_func (); below.
35377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35378 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35379
a848cd7e
SC
35380#ifdef __STDC__
35381# include <limits.h>
35382#else
35383# include <assert.h>
35384#endif
ac1cb8d3
VS
35385
35386#undef $ac_func
35387
a848cd7e
SC
35388/* Override any gcc2 internal prototype to avoid an error. */
35389#ifdef __cplusplus
35390extern "C"
35391{
35392#endif
35393/* We use char because int might match the return type of a gcc2
35394 builtin and then its argument prototype would still apply. */
35395char $ac_func ();
35396/* The GNU C library defines this for functions which it implements
35397 to always fail with ENOSYS. Some functions are actually named
35398 something starting with __ and the normal name is an alias. */
35399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35400choke me
35401#else
35402char (*f) () = $ac_func;
35403#endif
35404#ifdef __cplusplus
35405}
35406#endif
35407
35408int
35409main ()
35410{
35411return f != $ac_func;
35412 ;
35413 return 0;
35414}
35415_ACEOF
35416rm -f conftest.$ac_objext conftest$ac_exeext
35417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35418 (eval $ac_link) 2>conftest.er1
a848cd7e 35419 ac_status=$?
ac1cb8d3
VS
35420 grep -v '^ *+' conftest.er1 >conftest.err
35421 rm -f conftest.er1
35422 cat conftest.err >&5
a848cd7e
SC
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); } &&
07158944 35425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35428 ac_status=$?
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; } &&
35431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35434 ac_status=$?
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437 eval "$as_ac_var=yes"
35438else
35439 echo "$as_me: failed program was:" >&5
35440sed 's/^/| /' conftest.$ac_ext >&5
35441
35442eval "$as_ac_var=no"
35443fi
ac1cb8d3
VS
35444rm -f conftest.err conftest.$ac_objext \
35445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35446fi
35447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35449if test `eval echo '${'$as_ac_var'}'` = yes; then
35450 cat >>confdefs.h <<_ACEOF
35451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35452_ACEOF
35453
35454 cat >>confdefs.h <<\_ACEOF
35455#define HAVE_SHL_LOAD 1
35456_ACEOF
35457
35458 HAVE_SHL_FUNCS=1
35459
35460else
35461
35462 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35463echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35464if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35465 echo $ECHO_N "(cached) $ECHO_C" >&6
35466else
35467 ac_check_lib_save_LIBS=$LIBS
35468LIBS="-lshl_load $LIBS"
35469cat >conftest.$ac_ext <<_ACEOF
35470/* confdefs.h. */
35471_ACEOF
35472cat confdefs.h >>conftest.$ac_ext
35473cat >>conftest.$ac_ext <<_ACEOF
35474/* end confdefs.h. */
35475
35476/* Override any gcc2 internal prototype to avoid an error. */
35477#ifdef __cplusplus
35478extern "C"
35479#endif
35480/* We use char because int might match the return type of a gcc2
35481 builtin and then its argument prototype would still apply. */
35482char dld ();
35483int
35484main ()
35485{
35486dld ();
35487 ;
35488 return 0;
35489}
35490_ACEOF
35491rm -f conftest.$ac_objext conftest$ac_exeext
35492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35493 (eval $ac_link) 2>conftest.er1
a848cd7e 35494 ac_status=$?
ac1cb8d3
VS
35495 grep -v '^ *+' conftest.er1 >conftest.err
35496 rm -f conftest.er1
35497 cat conftest.err >&5
a848cd7e
SC
35498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499 (exit $ac_status); } &&
07158944 35500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35502 (eval $ac_try) 2>&5
35503 ac_status=$?
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); }; } &&
35506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35508 (eval $ac_try) 2>&5
35509 ac_status=$?
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); }; }; then
35512 ac_cv_lib_shl_load_dld=yes
35513else
35514 echo "$as_me: failed program was:" >&5
35515sed 's/^/| /' conftest.$ac_ext >&5
35516
35517ac_cv_lib_shl_load_dld=no
35518fi
ac1cb8d3
VS
35519rm -f conftest.err conftest.$ac_objext \
35520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35521LIBS=$ac_check_lib_save_LIBS
35522fi
35523echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35524echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35525if test $ac_cv_lib_shl_load_dld = yes; then
35526
35527 HAVE_SHL_FUNCS=1
35528 DL_LINK=" -ldld$DL_LINK"
35529
35530fi
35531
35532
35533fi
35534done
35535
35536
35537fi
35538
35539
35540fi
35541done
35542
35543
35544 if test "$HAVE_DL_FUNCS" = 1; then
35545
35546for ac_func in dlerror
35547do
35548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35549echo "$as_me:$LINENO: checking for $ac_func" >&5
35550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35551if eval "test \"\${$as_ac_var+set}\" = set"; then
35552 echo $ECHO_N "(cached) $ECHO_C" >&6
35553else
35554 cat >conftest.$ac_ext <<_ACEOF
35555/* confdefs.h. */
35556_ACEOF
35557cat confdefs.h >>conftest.$ac_ext
35558cat >>conftest.$ac_ext <<_ACEOF
35559/* end confdefs.h. */
ac1cb8d3
VS
35560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35562#define $ac_func innocuous_$ac_func
35563
a848cd7e
SC
35564/* System header to define __stub macros and hopefully few prototypes,
35565 which can conflict with char $ac_func (); below.
35566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35568
a848cd7e
SC
35569#ifdef __STDC__
35570# include <limits.h>
35571#else
35572# include <assert.h>
35573#endif
ac1cb8d3
VS
35574
35575#undef $ac_func
35576
a848cd7e
SC
35577/* Override any gcc2 internal prototype to avoid an error. */
35578#ifdef __cplusplus
35579extern "C"
35580{
35581#endif
35582/* We use char because int might match the return type of a gcc2
35583 builtin and then its argument prototype would still apply. */
35584char $ac_func ();
35585/* The GNU C library defines this for functions which it implements
35586 to always fail with ENOSYS. Some functions are actually named
35587 something starting with __ and the normal name is an alias. */
35588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35589choke me
35590#else
35591char (*f) () = $ac_func;
35592#endif
35593#ifdef __cplusplus
35594}
35595#endif
35596
35597int
35598main ()
35599{
35600return f != $ac_func;
35601 ;
35602 return 0;
35603}
35604_ACEOF
35605rm -f conftest.$ac_objext conftest$ac_exeext
35606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35607 (eval $ac_link) 2>conftest.er1
a848cd7e 35608 ac_status=$?
ac1cb8d3
VS
35609 grep -v '^ *+' conftest.er1 >conftest.err
35610 rm -f conftest.er1
35611 cat conftest.err >&5
a848cd7e
SC
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } &&
07158944 35614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; } &&
35620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; }; then
35626 eval "$as_ac_var=yes"
35627else
35628 echo "$as_me: failed program was:" >&5
35629sed 's/^/| /' conftest.$ac_ext >&5
35630
35631eval "$as_ac_var=no"
35632fi
ac1cb8d3
VS
35633rm -f conftest.err conftest.$ac_objext \
35634 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35635fi
35636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35638if test `eval echo '${'$as_ac_var'}'` = yes; then
35639 cat >>confdefs.h <<_ACEOF
35640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35641_ACEOF
35642 cat >>confdefs.h <<\_ACEOF
35643#define HAVE_DLERROR 1
35644_ACEOF
35645
35646else
35647
35648 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35649echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35650if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35651 echo $ECHO_N "(cached) $ECHO_C" >&6
35652else
35653 ac_check_lib_save_LIBS=$LIBS
35654LIBS="-ldl $LIBS"
35655cat >conftest.$ac_ext <<_ACEOF
35656/* confdefs.h. */
35657_ACEOF
35658cat confdefs.h >>conftest.$ac_ext
35659cat >>conftest.$ac_ext <<_ACEOF
35660/* end confdefs.h. */
35661
35662/* Override any gcc2 internal prototype to avoid an error. */
35663#ifdef __cplusplus
35664extern "C"
35665#endif
35666/* We use char because int might match the return type of a gcc2
35667 builtin and then its argument prototype would still apply. */
35668char dlerror ();
35669int
35670main ()
35671{
35672dlerror ();
35673 ;
35674 return 0;
35675}
35676_ACEOF
35677rm -f conftest.$ac_objext conftest$ac_exeext
35678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35679 (eval $ac_link) 2>conftest.er1
a848cd7e 35680 ac_status=$?
ac1cb8d3
VS
35681 grep -v '^ *+' conftest.er1 >conftest.err
35682 rm -f conftest.er1
35683 cat conftest.err >&5
a848cd7e
SC
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } &&
07158944 35686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; } &&
35692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35695 ac_status=$?
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; }; then
35698 ac_cv_lib_dl_dlerror=yes
35699else
35700 echo "$as_me: failed program was:" >&5
35701sed 's/^/| /' conftest.$ac_ext >&5
35702
35703ac_cv_lib_dl_dlerror=no
35704fi
ac1cb8d3
VS
35705rm -f conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35707LIBS=$ac_check_lib_save_LIBS
35708fi
35709echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35710echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35711if test $ac_cv_lib_dl_dlerror = yes; then
35712 cat >>confdefs.h <<\_ACEOF
35713#define HAVE_DLERROR 1
35714_ACEOF
35715
35716fi
35717
35718
35719
35720fi
35721done
35722
35723 fi
35724 fi
35725
35726 if test "$HAVE_DL_FUNCS" = 0; then
35727 if test "$HAVE_SHL_FUNCS" = 0; then
35728 if test "$USE_UNIX" = 1; then
35729 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35730echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35731 wxUSE_DYNAMIC_LOADER=no
35732 wxUSE_DYNLIB_CLASS=no
35733 else
35734 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35735echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35736 fi
35737 fi
35738 fi
35739 fi
35740fi
35741
35742if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35743 cat >>confdefs.h <<\_ACEOF
35744#define wxUSE_DYNAMIC_LOADER 1
35745_ACEOF
35746
35747fi
35748if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35749 cat >>confdefs.h <<\_ACEOF
35750#define wxUSE_DYNLIB_CLASS 1
35751_ACEOF
35752
35753fi
35754
35755
35756
35757if test "$wxUSE_PLUGINS" = "yes" ; then
35758 if test "$wxUSE_SHARED" = "no" ; then
35759 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35760echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35761 wxUSE_PLUGINS=no
35762 fi
35763 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35764 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35765echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35766 wxUSE_PLUGINS=no
35767 fi
35768 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35769 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35770echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35771 wxUSE_PLUGINS=no
35772 fi
35773 if test "$wxUSE_PLUGINS" = "yes" ; then
35774 cat >>confdefs.h <<\_ACEOF
35775#define wxUSE_PLUGINS 1
35776_ACEOF
35777
35778 fi
35779fi
35780
35781
35782if test "$wxUSE_STL" = "yes"; then
35783 cat >>confdefs.h <<\_ACEOF
35784#define wxUSE_STL 1
35785_ACEOF
35786
35787fi
35788
35789if test "$wxUSE_APPLE_IEEE" = "yes"; then
35790 cat >>confdefs.h <<\_ACEOF
35791#define wxUSE_APPLE_IEEE 1
35792_ACEOF
35793
35794fi
35795
35796if test "$wxUSE_TIMER" = "yes"; then
35797 cat >>confdefs.h <<\_ACEOF
35798#define wxUSE_TIMER 1
35799_ACEOF
35800
35801fi
35802
35803WITH_PLUGIN_SDL=0
35804if test "$wxUSE_SOUND" = "yes"; then
35805 if test "$USE_UNIX" = "1" ; then
35806
35807for ac_header in sys/soundcard.h
35808do
35809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35810if eval "test \"\${$as_ac_Header+set}\" = set"; then
35811 echo "$as_me:$LINENO: checking for $ac_header" >&5
35812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35813if eval "test \"\${$as_ac_Header+set}\" = set"; then
35814 echo $ECHO_N "(cached) $ECHO_C" >&6
35815fi
35816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35818else
35819 # Is the header compilable?
35820echo "$as_me:$LINENO: checking $ac_header usability" >&5
35821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35822cat >conftest.$ac_ext <<_ACEOF
35823/* confdefs.h. */
35824_ACEOF
35825cat confdefs.h >>conftest.$ac_ext
35826cat >>conftest.$ac_ext <<_ACEOF
35827/* end confdefs.h. */
35828$ac_includes_default
35829#include <$ac_header>
35830_ACEOF
35831rm -f conftest.$ac_objext
35832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35833 (eval $ac_compile) 2>conftest.er1
a848cd7e 35834 ac_status=$?
ac1cb8d3
VS
35835 grep -v '^ *+' conftest.er1 >conftest.err
35836 rm -f conftest.er1
35837 cat conftest.err >&5
a848cd7e
SC
35838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839 (exit $ac_status); } &&
07158944 35840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842 (eval $ac_try) 2>&5
35843 ac_status=$?
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); }; } &&
35846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35849 ac_status=$?
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; }; then
35852 ac_header_compiler=yes
35853else
35854 echo "$as_me: failed program was:" >&5
35855sed 's/^/| /' conftest.$ac_ext >&5
35856
35857ac_header_compiler=no
35858fi
ac1cb8d3 35859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35861echo "${ECHO_T}$ac_header_compiler" >&6
35862
35863# Is the header present?
35864echo "$as_me:$LINENO: checking $ac_header presence" >&5
35865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35866cat >conftest.$ac_ext <<_ACEOF
35867/* confdefs.h. */
35868_ACEOF
35869cat confdefs.h >>conftest.$ac_ext
35870cat >>conftest.$ac_ext <<_ACEOF
35871/* end confdefs.h. */
35872#include <$ac_header>
35873_ACEOF
35874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35876 ac_status=$?
35877 grep -v '^ *+' conftest.er1 >conftest.err
35878 rm -f conftest.er1
35879 cat conftest.err >&5
35880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881 (exit $ac_status); } >/dev/null; then
35882 if test -s conftest.err; then
35883 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35885 else
35886 ac_cpp_err=
35887 fi
35888else
35889 ac_cpp_err=yes
35890fi
35891if test -z "$ac_cpp_err"; then
35892 ac_header_preproc=yes
35893else
35894 echo "$as_me: failed program was:" >&5
35895sed 's/^/| /' conftest.$ac_ext >&5
35896
35897 ac_header_preproc=no
35898fi
35899rm -f conftest.err conftest.$ac_ext
35900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35901echo "${ECHO_T}$ac_header_preproc" >&6
35902
35903# So? What about this header?
ac1cb8d3
VS
35904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35905 yes:no: )
a848cd7e
SC
35906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35910 ac_header_preproc=yes
a848cd7e 35911 ;;
ac1cb8d3 35912 no:yes:* )
a848cd7e
SC
35913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35916echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35920echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35925 (
35926 cat <<\_ASBOX
ac1cb8d3
VS
35927## ----------------------------------------- ##
35928## Report this to wx-dev@lists.wxwidgets.org ##
35929## ----------------------------------------- ##
a848cd7e
SC
35930_ASBOX
35931 ) |
35932 sed "s/^/$as_me: WARNING: /" >&2
35933 ;;
35934esac
35935echo "$as_me:$LINENO: checking for $ac_header" >&5
35936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35937if eval "test \"\${$as_ac_Header+set}\" = set"; then
35938 echo $ECHO_N "(cached) $ECHO_C" >&6
35939else
ac1cb8d3 35940 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35941fi
35942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35944
35945fi
35946if test `eval echo '${'$as_ac_Header'}'` = yes; then
35947 cat >>confdefs.h <<_ACEOF
35948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35949_ACEOF
35950
35951fi
35952
35953done
35954
35955
35956 if test "$wxUSE_LIBSDL" != "no"; then
35957
35958# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35959if test "${with_sdl_prefix+set}" = set; then
35960 withval="$with_sdl_prefix"
35961 sdl_prefix="$withval"
35962else
35963 sdl_prefix=""
35964fi;
35965
35966# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35967if test "${with_sdl_exec_prefix+set}" = set; then
35968 withval="$with_sdl_exec_prefix"
35969 sdl_exec_prefix="$withval"
35970else
35971 sdl_exec_prefix=""
35972fi;
35973# Check whether --enable-sdltest or --disable-sdltest was given.
35974if test "${enable_sdltest+set}" = set; then
35975 enableval="$enable_sdltest"
35976
35977else
35978 enable_sdltest=yes
35979fi;
35980
35981 if test x$sdl_exec_prefix != x ; then
35982 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35983 if test x${SDL_CONFIG+set} != xset ; then
35984 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35985 fi
35986 fi
35987 if test x$sdl_prefix != x ; then
35988 sdl_args="$sdl_args --prefix=$sdl_prefix"
35989 if test x${SDL_CONFIG+set} != xset ; then
35990 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35991 fi
35992 fi
35993
35994
35995 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
35996 # Extract the first word of "sdl-config", so it can be a program name with args.
35997set dummy sdl-config; ac_word=$2
35998echo "$as_me:$LINENO: checking for $ac_word" >&5
35999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36000if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36001 echo $ECHO_N "(cached) $ECHO_C" >&6
36002else
36003 case $SDL_CONFIG in
36004 [\\/]* | ?:[\\/]*)
36005 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36006 ;;
36007 *)
36008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36009for as_dir in $PATH
36010do
36011 IFS=$as_save_IFS
36012 test -z "$as_dir" && as_dir=.
36013 for ac_exec_ext in '' $ac_executable_extensions; do
36014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36015 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36017 break 2
36018 fi
36019done
36020done
36021
36022 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36023 ;;
36024esac
36025fi
36026SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36027
36028if test -n "$SDL_CONFIG"; then
36029 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36030echo "${ECHO_T}$SDL_CONFIG" >&6
36031else
36032 echo "$as_me:$LINENO: result: no" >&5
36033echo "${ECHO_T}no" >&6
36034fi
36035
36036 min_sdl_version=1.2.0
36037 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36038echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36039 no_sdl=""
36040 if test "$SDL_CONFIG" = "no" ; then
36041 no_sdl=yes
36042 else
36043 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36044 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36045
36046 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36048 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36049 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36050 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36051 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36052 if test "x$enable_sdltest" = "xyes" ; then
36053 ac_save_CFLAGS="$CFLAGS"
94acd38e 36054 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36055 ac_save_LIBS="$LIBS"
36056 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36057 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36058 LIBS="$LIBS $SDL_LIBS"
36059 rm -f conf.sdltest
36060 if test "$cross_compiling" = yes; then
36061 echo $ac_n "cross compiling; assumed OK... $ac_c"
36062else
36063 cat >conftest.$ac_ext <<_ACEOF
36064/* confdefs.h. */
36065_ACEOF
36066cat confdefs.h >>conftest.$ac_ext
36067cat >>conftest.$ac_ext <<_ACEOF
36068/* end confdefs.h. */
36069
36070#include <stdio.h>
36071#include <stdlib.h>
36072#include <string.h>
36073#include "SDL.h"
36074
36075char*
36076my_strdup (char *str)
36077{
36078 char *new_str;
36079
36080 if (str)
36081 {
36082 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36083 strcpy (new_str, str);
36084 }
36085 else
36086 new_str = NULL;
36087
36088 return new_str;
36089}
36090
36091int main (int argc, char *argv[])
36092{
36093 int major, minor, micro;
36094 char *tmp_version;
36095
36096 /* This hangs on some systems (?)
36097 system ("touch conf.sdltest");
36098 */
36099 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36100
36101 /* HP/UX 9 (%@#!) writes to sscanf strings */
36102 tmp_version = my_strdup("$min_sdl_version");
36103 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36104 printf("%s, bad version string\n", "$min_sdl_version");
36105 exit(1);
36106 }
36107
36108 if (($sdl_major_version > major) ||
36109 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36110 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36111 {
36112 return 0;
36113 }
36114 else
36115 {
36116 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36117 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36118 printf("*** best to upgrade to the required version.\n");
36119 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36120 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36121 printf("*** config.cache before re-running configure\n");
36122 return 1;
36123 }
36124}
36125
36126
36127_ACEOF
36128rm -f conftest$ac_exeext
36129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36130 (eval $ac_link) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135 (eval $ac_try) 2>&5
36136 ac_status=$?
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); }; }; then
36139 :
36140else
36141 echo "$as_me: program exited with status $ac_status" >&5
36142echo "$as_me: failed program was:" >&5
36143sed 's/^/| /' conftest.$ac_ext >&5
36144
36145( exit $ac_status )
36146no_sdl=yes
36147fi
ac1cb8d3 36148rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36149fi
36150 CFLAGS="$ac_save_CFLAGS"
94acd38e 36151 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36152 LIBS="$ac_save_LIBS"
36153 fi
36154 fi
36155 if test "x$no_sdl" = x ; then
36156 echo "$as_me:$LINENO: result: yes" >&5
36157echo "${ECHO_T}yes" >&6
36158
36159 EXTRALIBS_SDL="$SDL_LIBS"
36160 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36161 cat >>confdefs.h <<\_ACEOF
36162#define wxUSE_LIBSDL 1
36163_ACEOF
36164
36165
36166 else
36167 echo "$as_me:$LINENO: result: no" >&5
36168echo "${ECHO_T}no" >&6
36169 if test "$SDL_CONFIG" = "no" ; then
36170 echo "*** The sdl-config script installed by SDL could not be found"
36171 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36172 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36173 echo "*** full path to sdl-config."
36174 else
36175 if test -f conf.sdltest ; then
36176 :
36177 else
36178 echo "*** Could not run SDL test program, checking why..."
36179 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36180 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36181 LIBS="$LIBS $SDL_LIBS"
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 <stdio.h>
36190#include "SDL.h"
36191
36192int main(int argc, char *argv[])
36193{ return 0; }
36194#undef main
36195#define main K_and_R_C_main
36196
36197int
36198main ()
36199{
36200 return 0;
36201 ;
36202 return 0;
36203}
36204_ACEOF
36205rm -f conftest.$ac_objext conftest$ac_exeext
36206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36207 (eval $ac_link) 2>conftest.er1
a848cd7e 36208 ac_status=$?
ac1cb8d3
VS
36209 grep -v '^ *+' conftest.er1 >conftest.err
36210 rm -f conftest.er1
36211 cat conftest.err >&5
a848cd7e
SC
36212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213 (exit $ac_status); } &&
07158944 36214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36216 (eval $ac_try) 2>&5
36217 ac_status=$?
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); }; } &&
36220 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36222 (eval $ac_try) 2>&5
36223 ac_status=$?
36224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36225 (exit $ac_status); }; }; then
36226 echo "*** The test program compiled, but did not run. This usually means"
36227 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36228 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36229 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36230 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36231 echo "*** is required on your system"
36232 echo "***"
36233 echo "*** If you have an old version installed, it is best to remove it, although"
36234 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36235else
36236 echo "$as_me: failed program was:" >&5
36237sed 's/^/| /' conftest.$ac_ext >&5
36238
36239 echo "*** The test program failed to compile or link. See the file config.log for the"
36240 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36241 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36242 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36243fi
ac1cb8d3
VS
36244rm -f conftest.err conftest.$ac_objext \
36245 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36246 CFLAGS="$ac_save_CFLAGS"
94acd38e 36247 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36248 LIBS="$ac_save_LIBS"
36249 fi
36250 fi
36251 SDL_CFLAGS=""
36252 SDL_LIBS=""
36253 wxUSE_LIBSDL="no"
36254 fi
36255
36256
36257 rm -f conf.sdltest
36258
36259 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36260 WITH_PLUGIN_SDL=1
36261 fi
36262 fi
36263 fi
36264
36265 cat >>confdefs.h <<\_ACEOF
36266#define wxUSE_SOUND 1
36267_ACEOF
36268
36269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36270fi
36271
d1c38808
VZ
36272if test "$WXGTK20" = 1; then
36273 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36274 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36275
36276
36277 succeeded=no
36278
36279 if test -z "$PKG_CONFIG"; then
36280 # Extract the first word of "pkg-config", so it can be a program name with args.
36281set dummy pkg-config; ac_word=$2
36282echo "$as_me:$LINENO: checking for $ac_word" >&5
36283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36284if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36285 echo $ECHO_N "(cached) $ECHO_C" >&6
36286else
36287 case $PKG_CONFIG in
36288 [\\/]* | ?:[\\/]*)
36289 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36290 ;;
36291 *)
36292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36293for as_dir in $PATH
36294do
36295 IFS=$as_save_IFS
36296 test -z "$as_dir" && as_dir=.
36297 for ac_exec_ext in '' $ac_executable_extensions; do
36298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36299 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36301 break 2
36302 fi
36303done
36304done
36305
36306 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36307 ;;
36308esac
36309fi
36310PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36311
36312if test -n "$PKG_CONFIG"; then
36313 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36314echo "${ECHO_T}$PKG_CONFIG" >&6
36315else
36316 echo "$as_me:$LINENO: result: no" >&5
36317echo "${ECHO_T}no" >&6
36318fi
36319
36320 fi
36321
36322 if test "$PKG_CONFIG" = "no" ; then
36323 echo "*** The pkg-config script could not be found. Make sure it is"
36324 echo "*** in your path, or set the PKG_CONFIG environment variable"
36325 echo "*** to the full path to pkg-config."
36326 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36327 else
36328 PKG_CONFIG_MIN_VERSION=0.9.0
36329 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36330 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36331echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36332
ffa762ff 36333 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36334 echo "$as_me:$LINENO: result: yes" >&5
36335echo "${ECHO_T}yes" >&6
36336 succeeded=yes
36337
36338 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36339echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36340 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36341 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36342echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36343
36344 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36345echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36346 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36347 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36348echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36349 else
36350 LIBGNOMEPRINTUI_CFLAGS=""
36351 LIBGNOMEPRINTUI_LIBS=""
36352 ## If we have a custom action on failure, don't print errors, but
36353 ## do set a variable so people can do so.
ffa762ff 36354 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36355
36356 fi
36357
36358
36359
36360 else
36361 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36362 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36363 fi
36364 fi
36365
36366 if test $succeeded = yes; then
36367
d1c38808
VZ
36368 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36369 cat >>confdefs.h <<\_ACEOF
36370#define wxUSE_LIBGNOMEPRINT 1
36371_ACEOF
36372
36373
36374 else
36375
36376 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36377echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36378 wxUSE_LIBGNOMEPRINT="no"
36379
36380
36381 fi
36382
36383 fi
36384 fi
36385fi
36386
36387
a848cd7e
SC
36388if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36389 cat >>confdefs.h <<\_ACEOF
36390#define wxUSE_CMDLINE_PARSER 1
36391_ACEOF
36392
36393fi
36394
36395if test "$wxUSE_STOPWATCH" = "yes"; then
36396 cat >>confdefs.h <<\_ACEOF
36397#define wxUSE_STOPWATCH 1
36398_ACEOF
36399
36400fi
36401
36402if test "$wxUSE_DATETIME" = "yes"; then
36403 cat >>confdefs.h <<\_ACEOF
36404#define wxUSE_DATETIME 1
36405_ACEOF
36406
36407fi
36408
36409if test "$wxUSE_FILE" = "yes"; then
36410 cat >>confdefs.h <<\_ACEOF
36411#define wxUSE_FILE 1
36412_ACEOF
36413
36414fi
36415
36416if test "$wxUSE_FFILE" = "yes"; then
36417 cat >>confdefs.h <<\_ACEOF
36418#define wxUSE_FFILE 1
36419_ACEOF
36420
36421fi
36422
36423if test "$wxUSE_FILESYSTEM" = "yes"; then
36424 cat >>confdefs.h <<\_ACEOF
36425#define wxUSE_FILESYSTEM 1
36426_ACEOF
36427
36428fi
36429
36430if test "$wxUSE_FS_ZIP" = "yes"; then
36431 cat >>confdefs.h <<\_ACEOF
36432#define wxUSE_FS_ZIP 1
36433_ACEOF
36434
36435fi
36436
9e8e867f 36437if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36438 cat >>confdefs.h <<\_ACEOF
9e8e867f 36439#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36440_ACEOF
36441
36442fi
36443
36444if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36445 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36446 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36447echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36448 elif test "$wxUSE_ZLIB" = "no"; then
36449 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36450echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36451 else
36452 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36453#define wxUSE_ZIPSTREAM 1
36454_ACEOF
36455
81f90336 36456 fi
a848cd7e
SC
36457fi
36458
a848cd7e
SC
36459if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36460 cat >>confdefs.h <<\_ACEOF
36461#define wxUSE_ON_FATAL_EXCEPTION 1
36462_ACEOF
36463
36464fi
36465
eaff0f0d
VZ
36466if test "$wxUSE_STACKWALKER" = "yes"; then
36467 cat >>confdefs.h <<\_ACEOF
36468#define wxUSE_STACKWALKER 1
36469_ACEOF
36470
36471fi
36472
36b6448c
VZ
36473if test "$wxUSE_DEBUGREPORT" = "yes"; then
36474 cat >>confdefs.h <<\_ACEOF
36475#define wxUSE_DEBUGREPORT 1
36476_ACEOF
36477
a603d77e 36478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36b6448c
VZ
36479fi
36480
a848cd7e
SC
36481if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36482 cat >>confdefs.h <<\_ACEOF
36483#define wxUSE_SNGLINST_CHECKER 1
36484_ACEOF
36485
36486fi
36487
36488if test "$wxUSE_BUSYINFO" = "yes"; then
36489 cat >>confdefs.h <<\_ACEOF
36490#define wxUSE_BUSYINFO 1
36491_ACEOF
36492
36493fi
36494
36495if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36496 cat >>confdefs.h <<\_ACEOF
36497#define wxUSE_STD_IOSTREAM 1
36498_ACEOF
36499
36500fi
36501
07158944
VZ
36502if test "$wxUSE_STDPATHS" = "yes"; then
36503 cat >>confdefs.h <<\_ACEOF
36504#define wxUSE_STDPATHS 1
36505_ACEOF
36506
36507fi
36508
a848cd7e
SC
36509if test "$wxUSE_TEXTBUFFER" = "yes"; then
36510 cat >>confdefs.h <<\_ACEOF
36511#define wxUSE_TEXTBUFFER 1
36512_ACEOF
36513
36514fi
36515
36516if test "$wxUSE_TEXTFILE" = "yes"; then
36517 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36518 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36519echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36520 else
36521 cat >>confdefs.h <<\_ACEOF
36522#define wxUSE_TEXTFILE 1
36523_ACEOF
36524
36525 fi
36526fi
36527
36528if test "$wxUSE_CONFIG" = "yes" ; then
36529 if test "$wxUSE_TEXTFILE" != "yes"; then
36530 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36531echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36532 else
36533 cat >>confdefs.h <<\_ACEOF
36534#define wxUSE_CONFIG 1
89be85c2
VS
36535_ACEOF
36536
36537 cat >>confdefs.h <<\_ACEOF
36538#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36539_ACEOF
36540
36541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36542 fi
36543fi
36544
36545if test "$wxUSE_INTL" = "yes" ; then
36546 if test "$wxUSE_FILE" != "yes"; then
36547 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36548echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36549 else
36550 cat >>confdefs.h <<\_ACEOF
36551#define wxUSE_INTL 1
36552_ACEOF
36553
36554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36555 GUIDIST="$GUIDIST INTL_DIST"
36556 fi
36557fi
36558
36559if test "$wxUSE_LOG" = "yes"; then
36560 cat >>confdefs.h <<\_ACEOF
36561#define wxUSE_LOG 1
36562_ACEOF
36563
36564
36565 if test "$wxUSE_LOGGUI" = "yes"; then
36566 cat >>confdefs.h <<\_ACEOF
36567#define wxUSE_LOGGUI 1
36568_ACEOF
36569
36570 fi
36571
36572 if test "$wxUSE_LOGWINDOW" = "yes"; then
36573 cat >>confdefs.h <<\_ACEOF
36574#define wxUSE_LOGWINDOW 1
36575_ACEOF
36576
36577 fi
36578
36579 if test "$wxUSE_LOGDIALOG" = "yes"; then
36580 cat >>confdefs.h <<\_ACEOF
36581#define wxUSE_LOG_DIALOG 1
36582_ACEOF
36583
36584 fi
0b78747f
MW
36585
36586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36587fi
36588
36589if test "$wxUSE_LONGLONG" = "yes"; then
36590 cat >>confdefs.h <<\_ACEOF
36591#define wxUSE_LONGLONG 1
36592_ACEOF
36593
36594fi
36595
36596if test "$wxUSE_GEOMETRY" = "yes"; then
36597 cat >>confdefs.h <<\_ACEOF
36598#define wxUSE_GEOMETRY 1
36599_ACEOF
36600
36601fi
36602
a848cd7e
SC
36603if test "$wxUSE_STREAMS" = "yes" ; then
36604 cat >>confdefs.h <<\_ACEOF
36605#define wxUSE_STREAMS 1
36606_ACEOF
36607
36608fi
36609
36610
36611if test "$wxUSE_DATETIME" = "yes"; then
36612
36613for ac_func in strptime
36614do
36615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36616echo "$as_me:$LINENO: checking for $ac_func" >&5
36617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36618if eval "test \"\${$as_ac_var+set}\" = set"; then
36619 echo $ECHO_N "(cached) $ECHO_C" >&6
36620else
36621 cat >conftest.$ac_ext <<_ACEOF
36622/* confdefs.h. */
36623_ACEOF
36624cat confdefs.h >>conftest.$ac_ext
36625cat >>conftest.$ac_ext <<_ACEOF
36626/* end confdefs.h. */
ac1cb8d3
VS
36627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36629#define $ac_func innocuous_$ac_func
36630
a848cd7e
SC
36631/* System header to define __stub macros and hopefully few prototypes,
36632 which can conflict with char $ac_func (); below.
36633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36634 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36635
a848cd7e
SC
36636#ifdef __STDC__
36637# include <limits.h>
36638#else
36639# include <assert.h>
36640#endif
ac1cb8d3
VS
36641
36642#undef $ac_func
36643
a848cd7e
SC
36644/* Override any gcc2 internal prototype to avoid an error. */
36645#ifdef __cplusplus
36646extern "C"
36647{
36648#endif
36649/* We use char because int might match the return type of a gcc2
36650 builtin and then its argument prototype would still apply. */
36651char $ac_func ();
36652/* The GNU C library defines this for functions which it implements
36653 to always fail with ENOSYS. Some functions are actually named
36654 something starting with __ and the normal name is an alias. */
36655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36656choke me
36657#else
36658char (*f) () = $ac_func;
36659#endif
36660#ifdef __cplusplus
36661}
36662#endif
36663
36664int
36665main ()
36666{
36667return f != $ac_func;
36668 ;
36669 return 0;
36670}
36671_ACEOF
36672rm -f conftest.$ac_objext conftest$ac_exeext
36673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36674 (eval $ac_link) 2>conftest.er1
a848cd7e 36675 ac_status=$?
ac1cb8d3
VS
36676 grep -v '^ *+' conftest.er1 >conftest.err
36677 rm -f conftest.er1
36678 cat conftest.err >&5
a848cd7e
SC
36679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); } &&
07158944 36681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36683 (eval $ac_try) 2>&5
36684 ac_status=$?
36685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36686 (exit $ac_status); }; } &&
36687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36689 (eval $ac_try) 2>&5
36690 ac_status=$?
36691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36692 (exit $ac_status); }; }; then
36693 eval "$as_ac_var=yes"
36694else
36695 echo "$as_me: failed program was:" >&5
36696sed 's/^/| /' conftest.$ac_ext >&5
36697
36698eval "$as_ac_var=no"
36699fi
ac1cb8d3
VS
36700rm -f conftest.err conftest.$ac_objext \
36701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36702fi
36703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36705if test `eval echo '${'$as_ac_var'}'` = yes; then
36706 cat >>confdefs.h <<_ACEOF
36707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36708_ACEOF
36709
36710fi
36711done
36712
36713
36714 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36715echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36716if test "${wx_cv_var_timezone+set}" = set; then
36717 echo $ECHO_N "(cached) $ECHO_C" >&6
36718else
36719
36720 cat >conftest.$ac_ext <<_ACEOF
36721/* confdefs.h. */
36722_ACEOF
36723cat confdefs.h >>conftest.$ac_ext
36724cat >>conftest.$ac_ext <<_ACEOF
36725/* end confdefs.h. */
36726
36727 #include <time.h>
36728
36729int
36730main ()
36731{
36732
36733 int tz;
36734 tz = timezone;
36735
36736 ;
36737 return 0;
36738}
36739_ACEOF
36740rm -f conftest.$ac_objext
36741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36742 (eval $ac_compile) 2>conftest.er1
a848cd7e 36743 ac_status=$?
ac1cb8d3
VS
36744 grep -v '^ *+' conftest.er1 >conftest.err
36745 rm -f conftest.er1
36746 cat conftest.err >&5
a848cd7e
SC
36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); } &&
07158944 36749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36751 (eval $ac_try) 2>&5
36752 ac_status=$?
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); }; } &&
36755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36757 (eval $ac_try) 2>&5
36758 ac_status=$?
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); }; }; then
36761
36762 wx_cv_var_timezone=timezone
36763
36764else
36765 echo "$as_me: failed program was:" >&5
36766sed 's/^/| /' conftest.$ac_ext >&5
36767
36768
36769 cat >conftest.$ac_ext <<_ACEOF
36770/* confdefs.h. */
36771_ACEOF
36772cat confdefs.h >>conftest.$ac_ext
36773cat >>conftest.$ac_ext <<_ACEOF
36774/* end confdefs.h. */
36775
36776 #include <time.h>
36777
36778int
36779main ()
36780{
36781
36782 int tz;
36783 tz = _timezone;
36784
36785 ;
36786 return 0;
36787}
36788_ACEOF
36789rm -f conftest.$ac_objext
36790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36791 (eval $ac_compile) 2>conftest.er1
a848cd7e 36792 ac_status=$?
ac1cb8d3
VS
36793 grep -v '^ *+' conftest.er1 >conftest.err
36794 rm -f conftest.er1
36795 cat conftest.err >&5
a848cd7e
SC
36796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797 (exit $ac_status); } &&
07158944 36798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36800 (eval $ac_try) 2>&5
36801 ac_status=$?
36802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36803 (exit $ac_status); }; } &&
36804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36806 (eval $ac_try) 2>&5
36807 ac_status=$?
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); }; }; then
36810
36811 wx_cv_var_timezone=_timezone
36812
36813else
36814 echo "$as_me: failed program was:" >&5
36815sed 's/^/| /' conftest.$ac_ext >&5
36816
36817
36818 cat >conftest.$ac_ext <<_ACEOF
36819/* confdefs.h. */
36820_ACEOF
36821cat confdefs.h >>conftest.$ac_ext
36822cat >>conftest.$ac_ext <<_ACEOF
36823/* end confdefs.h. */
36824
36825 #include <time.h>
36826
36827int
36828main ()
36829{
36830
36831 int tz;
36832 tz = __timezone;
36833
36834 ;
36835 return 0;
36836}
36837_ACEOF
36838rm -f conftest.$ac_objext
36839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36840 (eval $ac_compile) 2>conftest.er1
a848cd7e 36841 ac_status=$?
ac1cb8d3
VS
36842 grep -v '^ *+' conftest.er1 >conftest.err
36843 rm -f conftest.er1
36844 cat conftest.err >&5
a848cd7e
SC
36845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); } &&
07158944 36847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36849 (eval $ac_try) 2>&5
36850 ac_status=$?
36851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852 (exit $ac_status); }; } &&
36853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36855 (eval $ac_try) 2>&5
36856 ac_status=$?
36857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36858 (exit $ac_status); }; }; then
36859
36860 wx_cv_var_timezone=__timezone
36861
36862else
36863 echo "$as_me: failed program was:" >&5
36864sed 's/^/| /' conftest.$ac_ext >&5
36865
36866
36867 if test "$USE_DOS" = 0 ; then
36868 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36869echo "$as_me: WARNING: no timezone variable" >&2;}
36870 fi
36871
36872
36873fi
ac1cb8d3 36874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36875
36876
36877fi
ac1cb8d3 36878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36879
36880
36881fi
ac1cb8d3 36882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36883
36884
36885fi
36886echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36887echo "${ECHO_T}$wx_cv_var_timezone" >&6
36888
36889 if test "x$wx_cv_var_timezone" != x ; then
36890 cat >>confdefs.h <<_ACEOF
36891#define WX_TIMEZONE $wx_cv_var_timezone
36892_ACEOF
36893
36894 fi
36895
36896
36897for ac_func in localtime
36898do
36899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36900echo "$as_me:$LINENO: checking for $ac_func" >&5
36901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36902if eval "test \"\${$as_ac_var+set}\" = set"; then
36903 echo $ECHO_N "(cached) $ECHO_C" >&6
36904else
36905 cat >conftest.$ac_ext <<_ACEOF
36906/* confdefs.h. */
36907_ACEOF
36908cat confdefs.h >>conftest.$ac_ext
36909cat >>conftest.$ac_ext <<_ACEOF
36910/* end confdefs.h. */
ac1cb8d3
VS
36911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36913#define $ac_func innocuous_$ac_func
36914
a848cd7e
SC
36915/* System header to define __stub macros and hopefully few prototypes,
36916 which can conflict with char $ac_func (); below.
36917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36918 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36919
a848cd7e
SC
36920#ifdef __STDC__
36921# include <limits.h>
36922#else
36923# include <assert.h>
36924#endif
ac1cb8d3
VS
36925
36926#undef $ac_func
36927
a848cd7e
SC
36928/* Override any gcc2 internal prototype to avoid an error. */
36929#ifdef __cplusplus
36930extern "C"
36931{
36932#endif
36933/* We use char because int might match the return type of a gcc2
36934 builtin and then its argument prototype would still apply. */
36935char $ac_func ();
36936/* The GNU C library defines this for functions which it implements
36937 to always fail with ENOSYS. Some functions are actually named
36938 something starting with __ and the normal name is an alias. */
36939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36940choke me
36941#else
36942char (*f) () = $ac_func;
36943#endif
36944#ifdef __cplusplus
36945}
36946#endif
36947
36948int
36949main ()
36950{
36951return f != $ac_func;
36952 ;
36953 return 0;
36954}
36955_ACEOF
36956rm -f conftest.$ac_objext conftest$ac_exeext
36957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36958 (eval $ac_link) 2>conftest.er1
a848cd7e 36959 ac_status=$?
ac1cb8d3
VS
36960 grep -v '^ *+' conftest.er1 >conftest.err
36961 rm -f conftest.er1
36962 cat conftest.err >&5
a848cd7e
SC
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); } &&
07158944 36965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967 (eval $ac_try) 2>&5
36968 ac_status=$?
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); }; } &&
36971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36973 (eval $ac_try) 2>&5
36974 ac_status=$?
36975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976 (exit $ac_status); }; }; then
36977 eval "$as_ac_var=yes"
36978else
36979 echo "$as_me: failed program was:" >&5
36980sed 's/^/| /' conftest.$ac_ext >&5
36981
36982eval "$as_ac_var=no"
36983fi
ac1cb8d3
VS
36984rm -f conftest.err conftest.$ac_objext \
36985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36986fi
36987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36989if test `eval echo '${'$as_ac_var'}'` = yes; then
36990 cat >>confdefs.h <<_ACEOF
36991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36992_ACEOF
36993
36994fi
36995done
36996
36997
36998 if test "$ac_cv_func_localtime" = "yes"; then
36999 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37000echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37001if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37002 echo $ECHO_N "(cached) $ECHO_C" >&6
37003else
37004
37005 cat >conftest.$ac_ext <<_ACEOF
37006/* confdefs.h. */
37007_ACEOF
37008cat confdefs.h >>conftest.$ac_ext
37009cat >>conftest.$ac_ext <<_ACEOF
37010/* end confdefs.h. */
37011
37012 #include <time.h>
37013
37014int
37015main ()
37016{
37017
37018 struct tm tm;
37019 tm.tm_gmtoff++;
37020
37021 ;
37022 return 0;
37023}
37024_ACEOF
37025rm -f conftest.$ac_objext
37026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37027 (eval $ac_compile) 2>conftest.er1
a848cd7e 37028 ac_status=$?
ac1cb8d3
VS
37029 grep -v '^ *+' conftest.er1 >conftest.err
37030 rm -f conftest.er1
37031 cat conftest.err >&5
a848cd7e
SC
37032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033 (exit $ac_status); } &&
07158944 37034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37036 (eval $ac_try) 2>&5
37037 ac_status=$?
37038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039 (exit $ac_status); }; } &&
37040 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042 (eval $ac_try) 2>&5
37043 ac_status=$?
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; }; then
37046
37047 wx_cv_struct_tm_has_gmtoff=yes
37048
37049else
37050 echo "$as_me: failed program was:" >&5
37051sed 's/^/| /' conftest.$ac_ext >&5
37052
37053wx_cv_struct_tm_has_gmtoff=no
37054
37055fi
ac1cb8d3 37056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37057
37058fi
37059echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37060echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37061 fi
37062
37063 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37064 cat >>confdefs.h <<\_ACEOF
37065#define WX_GMTOFF_IN_TM 1
37066_ACEOF
37067
37068 fi
37069
37070
37071
37072for ac_func in gettimeofday ftime
37073do
37074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37075echo "$as_me:$LINENO: checking for $ac_func" >&5
37076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37077if eval "test \"\${$as_ac_var+set}\" = set"; then
37078 echo $ECHO_N "(cached) $ECHO_C" >&6
37079else
37080 cat >conftest.$ac_ext <<_ACEOF
37081/* confdefs.h. */
37082_ACEOF
37083cat confdefs.h >>conftest.$ac_ext
37084cat >>conftest.$ac_ext <<_ACEOF
37085/* end confdefs.h. */
ac1cb8d3
VS
37086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37088#define $ac_func innocuous_$ac_func
37089
a848cd7e
SC
37090/* System header to define __stub macros and hopefully few prototypes,
37091 which can conflict with char $ac_func (); below.
37092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37093 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37094
a848cd7e
SC
37095#ifdef __STDC__
37096# include <limits.h>
37097#else
37098# include <assert.h>
37099#endif
ac1cb8d3
VS
37100
37101#undef $ac_func
37102
a848cd7e
SC
37103/* Override any gcc2 internal prototype to avoid an error. */
37104#ifdef __cplusplus
37105extern "C"
37106{
37107#endif
37108/* We use char because int might match the return type of a gcc2
37109 builtin and then its argument prototype would still apply. */
37110char $ac_func ();
37111/* The GNU C library defines this for functions which it implements
37112 to always fail with ENOSYS. Some functions are actually named
37113 something starting with __ and the normal name is an alias. */
37114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37115choke me
37116#else
37117char (*f) () = $ac_func;
37118#endif
37119#ifdef __cplusplus
37120}
37121#endif
37122
37123int
37124main ()
37125{
37126return f != $ac_func;
37127 ;
37128 return 0;
37129}
37130_ACEOF
37131rm -f conftest.$ac_objext conftest$ac_exeext
37132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37133 (eval $ac_link) 2>conftest.er1
a848cd7e 37134 ac_status=$?
ac1cb8d3
VS
37135 grep -v '^ *+' conftest.er1 >conftest.err
37136 rm -f conftest.er1
37137 cat conftest.err >&5
a848cd7e
SC
37138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37139 (exit $ac_status); } &&
07158944 37140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37142 (eval $ac_try) 2>&5
37143 ac_status=$?
37144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37145 (exit $ac_status); }; } &&
37146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37148 (eval $ac_try) 2>&5
37149 ac_status=$?
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); }; }; then
37152 eval "$as_ac_var=yes"
37153else
37154 echo "$as_me: failed program was:" >&5
37155sed 's/^/| /' conftest.$ac_ext >&5
37156
37157eval "$as_ac_var=no"
37158fi
ac1cb8d3
VS
37159rm -f conftest.err conftest.$ac_objext \
37160 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37161fi
37162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37164if test `eval echo '${'$as_ac_var'}'` = yes; then
37165 cat >>confdefs.h <<_ACEOF
37166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37167_ACEOF
37168 break
37169fi
37170done
37171
37172
37173 if test "$ac_cv_func_gettimeofday" = "yes"; then
37174 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37175echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37176if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37177 echo $ECHO_N "(cached) $ECHO_C" >&6
37178else
37179
37180
37181
37182 ac_ext=cc
37183ac_cpp='$CXXCPP $CPPFLAGS'
37184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37187
37188
37189 cat >conftest.$ac_ext <<_ACEOF
37190/* confdefs.h. */
37191_ACEOF
37192cat confdefs.h >>conftest.$ac_ext
37193cat >>conftest.$ac_ext <<_ACEOF
37194/* end confdefs.h. */
37195
37196 #include <sys/time.h>
37197 #include <unistd.h>
37198
37199int
37200main ()
37201{
37202
37203 struct timeval tv;
37204 gettimeofday(&tv, NULL);
37205
37206 ;
37207 return 0;
37208}
37209_ACEOF
37210rm -f conftest.$ac_objext
37211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37212 (eval $ac_compile) 2>conftest.er1
a848cd7e 37213 ac_status=$?
ac1cb8d3
VS
37214 grep -v '^ *+' conftest.er1 >conftest.err
37215 rm -f conftest.er1
37216 cat conftest.err >&5
a848cd7e
SC
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); } &&
07158944 37219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37222 ac_status=$?
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; } &&
37225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; }; then
37231 wx_cv_func_gettimeofday_has_2_args=yes
37232else
37233 echo "$as_me: failed program was:" >&5
37234sed 's/^/| /' conftest.$ac_ext >&5
37235
37236cat >conftest.$ac_ext <<_ACEOF
37237/* confdefs.h. */
37238_ACEOF
37239cat confdefs.h >>conftest.$ac_ext
37240cat >>conftest.$ac_ext <<_ACEOF
37241/* end confdefs.h. */
37242
37243 #include <sys/time.h>
37244 #include <unistd.h>
37245
37246int
37247main ()
37248{
37249
37250 struct timeval tv;
37251 gettimeofday(&tv);
37252
37253 ;
37254 return 0;
37255}
37256_ACEOF
37257rm -f conftest.$ac_objext
37258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37259 (eval $ac_compile) 2>conftest.er1
a848cd7e 37260 ac_status=$?
ac1cb8d3
VS
37261 grep -v '^ *+' conftest.er1 >conftest.err
37262 rm -f conftest.er1
37263 cat conftest.err >&5
a848cd7e
SC
37264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37265 (exit $ac_status); } &&
07158944 37266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37268 (eval $ac_try) 2>&5
37269 ac_status=$?
37270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271 (exit $ac_status); }; } &&
37272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37274 (eval $ac_try) 2>&5
37275 ac_status=$?
37276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277 (exit $ac_status); }; }; then
37278 wx_cv_func_gettimeofday_has_2_args=no
37279else
37280 echo "$as_me: failed program was:" >&5
37281sed 's/^/| /' conftest.$ac_ext >&5
37282
37283
37284 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37285echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37286 wx_cv_func_gettimeofday_has_2_args=unknown
37287
37288
37289fi
ac1cb8d3 37290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37291
37292fi
ac1cb8d3 37293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37294 ac_ext=c
37295ac_cpp='$CPP $CPPFLAGS'
37296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37298ac_compiler_gnu=$ac_cv_c_compiler_gnu
37299
37300
37301fi
37302echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37303echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37304
37305 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37306 cat >>confdefs.h <<\_ACEOF
37307#define WX_GETTIMEOFDAY_NO_TZ 1
37308_ACEOF
37309
37310 fi
37311 fi
37312
37313 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37314fi
37315
37316
37317if test "$wxUSE_SOCKETS" = "yes"; then
37318 if test "$wxUSE_MGL" = "1"; then
37319 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37320echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37321 wxUSE_SOCKETS="no"
37322 fi
37323fi
37324
37325if test "$wxUSE_SOCKETS" = "yes"; then
37326 if test "$TOOLKIT" != "MSW"; then
37327 echo "$as_me:$LINENO: checking for socket" >&5
37328echo $ECHO_N "checking for socket... $ECHO_C" >&6
37329if test "${ac_cv_func_socket+set}" = set; then
37330 echo $ECHO_N "(cached) $ECHO_C" >&6
37331else
37332 cat >conftest.$ac_ext <<_ACEOF
37333/* confdefs.h. */
37334_ACEOF
37335cat confdefs.h >>conftest.$ac_ext
37336cat >>conftest.$ac_ext <<_ACEOF
37337/* end confdefs.h. */
ac1cb8d3
VS
37338/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37340#define socket innocuous_socket
37341
a848cd7e
SC
37342/* System header to define __stub macros and hopefully few prototypes,
37343 which can conflict with char socket (); below.
37344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37345 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37346
a848cd7e
SC
37347#ifdef __STDC__
37348# include <limits.h>
37349#else
37350# include <assert.h>
37351#endif
ac1cb8d3
VS
37352
37353#undef socket
37354
a848cd7e
SC
37355/* Override any gcc2 internal prototype to avoid an error. */
37356#ifdef __cplusplus
37357extern "C"
37358{
37359#endif
37360/* We use char because int might match the return type of a gcc2
37361 builtin and then its argument prototype would still apply. */
37362char socket ();
37363/* The GNU C library defines this for functions which it implements
37364 to always fail with ENOSYS. Some functions are actually named
37365 something starting with __ and the normal name is an alias. */
37366#if defined (__stub_socket) || defined (__stub___socket)
37367choke me
37368#else
37369char (*f) () = socket;
37370#endif
37371#ifdef __cplusplus
37372}
37373#endif
37374
37375int
37376main ()
37377{
37378return f != socket;
37379 ;
37380 return 0;
37381}
37382_ACEOF
37383rm -f conftest.$ac_objext conftest$ac_exeext
37384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37385 (eval $ac_link) 2>conftest.er1
a848cd7e 37386 ac_status=$?
ac1cb8d3
VS
37387 grep -v '^ *+' conftest.er1 >conftest.err
37388 rm -f conftest.er1
37389 cat conftest.err >&5
a848cd7e
SC
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } &&
07158944 37392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37394 (eval $ac_try) 2>&5
37395 ac_status=$?
37396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397 (exit $ac_status); }; } &&
37398 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37400 (eval $ac_try) 2>&5
37401 ac_status=$?
37402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); }; }; then
37404 ac_cv_func_socket=yes
37405else
37406 echo "$as_me: failed program was:" >&5
37407sed 's/^/| /' conftest.$ac_ext >&5
37408
37409ac_cv_func_socket=no
37410fi
ac1cb8d3
VS
37411rm -f conftest.err conftest.$ac_objext \
37412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37413fi
37414echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37415echo "${ECHO_T}$ac_cv_func_socket" >&6
37416if test $ac_cv_func_socket = yes; then
37417 :
37418else
37419
37420 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37421echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37422if test "${ac_cv_lib_socket_socket+set}" = set; then
37423 echo $ECHO_N "(cached) $ECHO_C" >&6
37424else
37425 ac_check_lib_save_LIBS=$LIBS
37426LIBS="-lsocket $LIBS"
37427cat >conftest.$ac_ext <<_ACEOF
37428/* confdefs.h. */
37429_ACEOF
37430cat confdefs.h >>conftest.$ac_ext
37431cat >>conftest.$ac_ext <<_ACEOF
37432/* end confdefs.h. */
37433
37434/* Override any gcc2 internal prototype to avoid an error. */
37435#ifdef __cplusplus
37436extern "C"
37437#endif
37438/* We use char because int might match the return type of a gcc2
37439 builtin and then its argument prototype would still apply. */
37440char socket ();
37441int
37442main ()
37443{
37444socket ();
37445 ;
37446 return 0;
37447}
37448_ACEOF
37449rm -f conftest.$ac_objext conftest$ac_exeext
37450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37451 (eval $ac_link) 2>conftest.er1
a848cd7e 37452 ac_status=$?
ac1cb8d3
VS
37453 grep -v '^ *+' conftest.er1 >conftest.err
37454 rm -f conftest.er1
37455 cat conftest.err >&5
a848cd7e
SC
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); } &&
07158944 37458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37460 (eval $ac_try) 2>&5
37461 ac_status=$?
37462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463 (exit $ac_status); }; } &&
37464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37466 (eval $ac_try) 2>&5
37467 ac_status=$?
37468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469 (exit $ac_status); }; }; then
37470 ac_cv_lib_socket_socket=yes
37471else
37472 echo "$as_me: failed program was:" >&5
37473sed 's/^/| /' conftest.$ac_ext >&5
37474
37475ac_cv_lib_socket_socket=no
37476fi
ac1cb8d3
VS
37477rm -f conftest.err conftest.$ac_objext \
37478 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37479LIBS=$ac_check_lib_save_LIBS
37480fi
37481echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37482echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37483if test $ac_cv_lib_socket_socket = yes; then
37484 if test "$INET_LINK" != " -lsocket"; then
37485 INET_LINK="$INET_LINK -lsocket"
37486 fi
37487else
37488
37489 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37490echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37491 wxUSE_SOCKETS=no
37492
37493
37494fi
37495
37496
37497
37498fi
37499
37500 fi
37501fi
37502
37503if test "$wxUSE_SOCKETS" = "yes" ; then
37504 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37505 ac_ext=cc
37506ac_cpp='$CXXCPP $CPPFLAGS'
37507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37510
37511 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37512echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37513if test "${wx_cv_type_getsockname3+set}" = set; then
37514 echo $ECHO_N "(cached) $ECHO_C" >&6
37515else
37516
37517 cat >conftest.$ac_ext <<_ACEOF
37518/* confdefs.h. */
37519_ACEOF
37520cat confdefs.h >>conftest.$ac_ext
37521cat >>conftest.$ac_ext <<_ACEOF
37522/* end confdefs.h. */
37523
37524 #include <sys/types.h>
37525 #include <sys/socket.h>
37526
37527int
37528main ()
37529{
37530
37531 socklen_t len;
37532 getsockname(0, 0, &len);
37533
37534 ;
37535 return 0;
37536}
37537_ACEOF
37538rm -f conftest.$ac_objext
37539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37540 (eval $ac_compile) 2>conftest.er1
a848cd7e 37541 ac_status=$?
ac1cb8d3
VS
37542 grep -v '^ *+' conftest.er1 >conftest.err
37543 rm -f conftest.er1
37544 cat conftest.err >&5
a848cd7e
SC
37545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546 (exit $ac_status); } &&
07158944 37547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37549 (eval $ac_try) 2>&5
37550 ac_status=$?
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); }; } &&
37553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37555 (eval $ac_try) 2>&5
37556 ac_status=$?
37557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558 (exit $ac_status); }; }; then
37559 wx_cv_type_getsockname3=socklen_t
37560else
37561 echo "$as_me: failed program was:" >&5
37562sed 's/^/| /' conftest.$ac_ext >&5
37563
37564
37565 CFLAGS_OLD="$CFLAGS"
37566 if test "$GCC" = yes ; then
37567 CFLAGS="$CFLAGS -Werror"
37568 fi
37569
37570 cat >conftest.$ac_ext <<_ACEOF
37571/* confdefs.h. */
37572_ACEOF
37573cat confdefs.h >>conftest.$ac_ext
37574cat >>conftest.$ac_ext <<_ACEOF
37575/* end confdefs.h. */
37576
37577 #include <sys/types.h>
37578 #include <sys/socket.h>
37579
37580int
37581main ()
37582{
37583
37584 size_t len;
37585 getsockname(0, 0, &len);
37586
37587 ;
37588 return 0;
37589}
37590_ACEOF
37591rm -f conftest.$ac_objext
37592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37593 (eval $ac_compile) 2>conftest.er1
a848cd7e 37594 ac_status=$?
ac1cb8d3
VS
37595 grep -v '^ *+' conftest.er1 >conftest.err
37596 rm -f conftest.er1
37597 cat conftest.err >&5
a848cd7e
SC
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); } &&
07158944 37600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; } &&
37606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37609 ac_status=$?
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; }; then
37612 wx_cv_type_getsockname3=size_t
37613else
37614 echo "$as_me: failed program was:" >&5
37615sed 's/^/| /' conftest.$ac_ext >&5
37616
37617cat >conftest.$ac_ext <<_ACEOF
37618/* confdefs.h. */
37619_ACEOF
37620cat confdefs.h >>conftest.$ac_ext
37621cat >>conftest.$ac_ext <<_ACEOF
37622/* end confdefs.h. */
37623
37624 #include <sys/types.h>
37625 #include <sys/socket.h>
37626
37627int
37628main ()
37629{
37630
37631 int len;
37632 getsockname(0, 0, &len);
37633
37634 ;
37635 return 0;
37636}
37637_ACEOF
37638rm -f conftest.$ac_objext
37639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37640 (eval $ac_compile) 2>conftest.er1
a848cd7e 37641 ac_status=$?
ac1cb8d3
VS
37642 grep -v '^ *+' conftest.er1 >conftest.err
37643 rm -f conftest.er1
37644 cat conftest.err >&5
a848cd7e
SC
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); } &&
07158944 37647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649 (eval $ac_try) 2>&5
37650 ac_status=$?
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); }; } &&
37653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655 (eval $ac_try) 2>&5
37656 ac_status=$?
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); }; }; then
37659 wx_cv_type_getsockname3=int
37660else
37661 echo "$as_me: failed program was:" >&5
37662sed 's/^/| /' conftest.$ac_ext >&5
37663
37664wx_cv_type_getsockname3=unknown
37665
37666fi
ac1cb8d3 37667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37668
37669fi
ac1cb8d3 37670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37671
37672 CFLAGS="$CFLAGS_OLD"
37673
37674
37675fi
ac1cb8d3 37676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37677
37678fi
37679echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37680echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37681
37682 if test "$wx_cv_type_getsockname3" = "unknown"; then
37683 wxUSE_SOCKETS=no
37684 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37685echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37686 else
37687 cat >>confdefs.h <<_ACEOF
37688#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37689_ACEOF
37690
37691 fi
37692 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37693echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37694if test "${wx_cv_type_getsockopt5+set}" = set; then
37695 echo $ECHO_N "(cached) $ECHO_C" >&6
37696else
37697
37698 cat >conftest.$ac_ext <<_ACEOF
37699/* confdefs.h. */
37700_ACEOF
37701cat confdefs.h >>conftest.$ac_ext
37702cat >>conftest.$ac_ext <<_ACEOF
37703/* end confdefs.h. */
37704
37705 #include <sys/types.h>
37706 #include <sys/socket.h>
37707
37708int
37709main ()
37710{
37711
37712 socklen_t len;
37713 getsockopt(0, 0, 0, 0, &len);
37714
37715 ;
37716 return 0;
37717}
37718_ACEOF
37719rm -f conftest.$ac_objext
37720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37721 (eval $ac_compile) 2>conftest.er1
37722 ac_status=$?
37723 grep -v '^ *+' conftest.er1 >conftest.err
37724 rm -f conftest.er1
37725 cat conftest.err >&5
37726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37727 (exit $ac_status); } &&
07158944 37728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37730 (eval $ac_try) 2>&5
37731 ac_status=$?
37732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733 (exit $ac_status); }; } &&
37734 { ac_try='test -s conftest.$ac_objext'
37735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736 (eval $ac_try) 2>&5
37737 ac_status=$?
37738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739 (exit $ac_status); }; }; then
37740 wx_cv_type_getsockopt5=socklen_t
37741else
37742 echo "$as_me: failed program was:" >&5
37743sed 's/^/| /' conftest.$ac_ext >&5
37744
37745
37746 CFLAGS_OLD="$CFLAGS"
37747 if test "$GCC" = yes ; then
37748 CFLAGS="$CFLAGS -Werror"
37749 fi
37750
37751 cat >conftest.$ac_ext <<_ACEOF
37752/* confdefs.h. */
37753_ACEOF
37754cat confdefs.h >>conftest.$ac_ext
37755cat >>conftest.$ac_ext <<_ACEOF
37756/* end confdefs.h. */
37757
37758 #include <sys/types.h>
37759 #include <sys/socket.h>
37760
37761int
37762main ()
37763{
37764
37765 size_t len;
37766 getsockopt(0, 0, 0, 0, &len);
37767
37768 ;
37769 return 0;
37770}
37771_ACEOF
37772rm -f conftest.$ac_objext
37773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37774 (eval $ac_compile) 2>conftest.er1
37775 ac_status=$?
37776 grep -v '^ *+' conftest.er1 >conftest.err
37777 rm -f conftest.er1
37778 cat conftest.err >&5
37779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780 (exit $ac_status); } &&
07158944 37781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37783 (eval $ac_try) 2>&5
37784 ac_status=$?
37785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); }; } &&
37787 { ac_try='test -s conftest.$ac_objext'
37788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37789 (eval $ac_try) 2>&5
37790 ac_status=$?
37791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37792 (exit $ac_status); }; }; then
37793 wx_cv_type_getsockopt5=size_t
37794else
37795 echo "$as_me: failed program was:" >&5
37796sed 's/^/| /' conftest.$ac_ext >&5
37797
37798cat >conftest.$ac_ext <<_ACEOF
37799/* confdefs.h. */
37800_ACEOF
37801cat confdefs.h >>conftest.$ac_ext
37802cat >>conftest.$ac_ext <<_ACEOF
37803/* end confdefs.h. */
37804
37805 #include <sys/types.h>
37806 #include <sys/socket.h>
37807
37808int
37809main ()
37810{
37811
37812 int len;
37813 getsockopt(0, 0, 0, 0, &len);
37814
37815 ;
37816 return 0;
37817}
37818_ACEOF
37819rm -f conftest.$ac_objext
37820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37821 (eval $ac_compile) 2>conftest.er1
37822 ac_status=$?
37823 grep -v '^ *+' conftest.er1 >conftest.err
37824 rm -f conftest.er1
37825 cat conftest.err >&5
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); } &&
07158944 37828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37830 (eval $ac_try) 2>&5
37831 ac_status=$?
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); }; } &&
37834 { ac_try='test -s conftest.$ac_objext'
37835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37836 (eval $ac_try) 2>&5
37837 ac_status=$?
37838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839 (exit $ac_status); }; }; then
37840 wx_cv_type_getsockopt5=int
37841else
37842 echo "$as_me: failed program was:" >&5
37843sed 's/^/| /' conftest.$ac_ext >&5
37844
37845wx_cv_type_getsockopt5=unknown
37846
37847fi
37848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37849
37850fi
37851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37852
37853 CFLAGS="$CFLAGS_OLD"
37854
37855
37856fi
37857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37858
37859fi
37860echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37861echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37862
37863 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37864 wxUSE_SOCKETS=no
37865 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37866echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37867 else
37868 cat >>confdefs.h <<_ACEOF
37869#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37870_ACEOF
37871
37872 fi
4d4ff94c
VZ
37873 ac_ext=c
37874ac_cpp='$CPP $CPPFLAGS'
37875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37877ac_compiler_gnu=$ac_cv_c_compiler_gnu
37878
a848cd7e
SC
37879 fi
37880fi
37881
37882if test "$wxUSE_SOCKETS" = "yes" ; then
37883 cat >>confdefs.h <<\_ACEOF
37884#define wxUSE_SOCKETS 1
37885_ACEOF
37886
37887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37888fi
37889
37890if test "$wxUSE_PROTOCOL" = "yes"; then
37891 if test "$wxUSE_SOCKETS" != "yes"; then
37892 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37893echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37894 wxUSE_PROTOCOL=no
37895 fi
37896fi
37897
37898if test "$wxUSE_PROTOCOL" = "yes"; then
37899 cat >>confdefs.h <<\_ACEOF
37900#define wxUSE_PROTOCOL 1
37901_ACEOF
37902
37903
37904 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37905 cat >>confdefs.h <<\_ACEOF
37906#define wxUSE_PROTOCOL_HTTP 1
37907_ACEOF
37908
37909 fi
37910 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37911 cat >>confdefs.h <<\_ACEOF
37912#define wxUSE_PROTOCOL_FTP 1
37913_ACEOF
37914
37915 fi
37916 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37917 cat >>confdefs.h <<\_ACEOF
37918#define wxUSE_PROTOCOL_FILE 1
37919_ACEOF
37920
37921 fi
37922else
37923 if test "$wxUSE_FS_INET" = "yes"; then
37924 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37925echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37926 wxUSE_FS_INET="no"
37927 fi
37928fi
37929
37930if test "$wxUSE_URL" = "yes"; then
37931 if test "$wxUSE_PROTOCOL" != "yes"; then
37932 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37933echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37934 wxUSE_URL=no
37935 fi
37936 if test "$wxUSE_URL" = "yes"; then
37937 cat >>confdefs.h <<\_ACEOF
37938#define wxUSE_URL 1
37939_ACEOF
37940
37941 fi
37942fi
37943
37944if test "$wxUSE_FS_INET" = "yes"; then
37945 cat >>confdefs.h <<\_ACEOF
37946#define wxUSE_FS_INET 1
37947_ACEOF
37948
37949fi
37950
37951
37952if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37953 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37954
4cb1d3da 37955 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37956
37957for ac_header in linux/joystick.h
37958do
37959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37960if eval "test \"\${$as_ac_Header+set}\" = set"; then
37961 echo "$as_me:$LINENO: checking for $ac_header" >&5
37962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37963if eval "test \"\${$as_ac_Header+set}\" = set"; then
37964 echo $ECHO_N "(cached) $ECHO_C" >&6
37965fi
37966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37968else
37969 # Is the header compilable?
37970echo "$as_me:$LINENO: checking $ac_header usability" >&5
37971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37972cat >conftest.$ac_ext <<_ACEOF
37973/* confdefs.h. */
37974_ACEOF
37975cat confdefs.h >>conftest.$ac_ext
37976cat >>conftest.$ac_ext <<_ACEOF
37977/* end confdefs.h. */
37978$ac_includes_default
37979#include <$ac_header>
37980_ACEOF
37981rm -f conftest.$ac_objext
37982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37983 (eval $ac_compile) 2>conftest.er1
a848cd7e 37984 ac_status=$?
ac1cb8d3
VS
37985 grep -v '^ *+' conftest.er1 >conftest.err
37986 rm -f conftest.er1
37987 cat conftest.err >&5
a848cd7e
SC
37988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); } &&
07158944 37990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37993 ac_status=$?
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; } &&
37996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; }; then
38002 ac_header_compiler=yes
38003else
38004 echo "$as_me: failed program was:" >&5
38005sed 's/^/| /' conftest.$ac_ext >&5
38006
38007ac_header_compiler=no
38008fi
ac1cb8d3 38009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38011echo "${ECHO_T}$ac_header_compiler" >&6
38012
38013# Is the header present?
38014echo "$as_me:$LINENO: checking $ac_header presence" >&5
38015echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38016cat >conftest.$ac_ext <<_ACEOF
38017/* confdefs.h. */
38018_ACEOF
38019cat confdefs.h >>conftest.$ac_ext
38020cat >>conftest.$ac_ext <<_ACEOF
38021/* end confdefs.h. */
38022#include <$ac_header>
38023_ACEOF
38024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38026 ac_status=$?
38027 grep -v '^ *+' conftest.er1 >conftest.err
38028 rm -f conftest.er1
38029 cat conftest.err >&5
38030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031 (exit $ac_status); } >/dev/null; then
38032 if test -s conftest.err; then
38033 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38035 else
38036 ac_cpp_err=
38037 fi
38038else
38039 ac_cpp_err=yes
38040fi
38041if test -z "$ac_cpp_err"; then
38042 ac_header_preproc=yes
38043else
38044 echo "$as_me: failed program was:" >&5
38045sed 's/^/| /' conftest.$ac_ext >&5
38046
38047 ac_header_preproc=no
38048fi
38049rm -f conftest.err conftest.$ac_ext
38050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38051echo "${ECHO_T}$ac_header_preproc" >&6
38052
38053# So? What about this header?
ac1cb8d3
VS
38054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38055 yes:no: )
a848cd7e
SC
38056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38057echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38059echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38060 ac_header_preproc=yes
a848cd7e 38061 ;;
ac1cb8d3 38062 no:yes:* )
a848cd7e
SC
38063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38068echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38070echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38074echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38075 (
38076 cat <<\_ASBOX
ac1cb8d3
VS
38077## ----------------------------------------- ##
38078## Report this to wx-dev@lists.wxwidgets.org ##
38079## ----------------------------------------- ##
a848cd7e
SC
38080_ASBOX
38081 ) |
38082 sed "s/^/$as_me: WARNING: /" >&2
38083 ;;
38084esac
38085echo "$as_me:$LINENO: checking for $ac_header" >&5
38086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38087if eval "test \"\${$as_ac_Header+set}\" = set"; then
38088 echo $ECHO_N "(cached) $ECHO_C" >&6
38089else
ac1cb8d3 38090 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38091fi
38092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38094
38095fi
38096if test `eval echo '${'$as_ac_Header'}'` = yes; then
38097 cat >>confdefs.h <<_ACEOF
38098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38099_ACEOF
38100
38101fi
38102
38103done
38104
38105 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38106 wxUSE_JOYSTICK=no
38107 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38108echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38109 fi
4cb1d3da
RN
38110 else
38111 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38112 wxUSE_JOYSTICK=no
38113 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38114echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38115 fi
a848cd7e 38116 fi
a848cd7e 38117
4cb1d3da
RN
38118
38119 if test "$wxUSE_JOYSTICK" = "yes"; then
38120 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38121#define wxUSE_JOYSTICK 1
38122_ACEOF
38123
4cb1d3da
RN
38124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38125 fi
a848cd7e
SC
38126 fi
38127fi
38128
38129
38130
38131if test "$wxUSE_FONTMAP" = "yes" ; then
38132 cat >>confdefs.h <<\_ACEOF
38133#define wxUSE_FONTMAP 1
38134_ACEOF
38135
38136fi
38137
38138if test "$wxUSE_UNICODE" = "yes" ; then
38139 cat >>confdefs.h <<\_ACEOF
38140#define wxUSE_UNICODE 1
38141_ACEOF
38142
38143
38144 if test "$USE_WIN32" != 1; then
38145 wxUSE_UNICODE_MSLU=no
38146 fi
38147
38148 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38149 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38150echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38151if test "${ac_cv_lib_unicows_main+set}" = set; then
38152 echo $ECHO_N "(cached) $ECHO_C" >&6
38153else
38154 ac_check_lib_save_LIBS=$LIBS
38155LIBS="-lunicows $LIBS"
38156cat >conftest.$ac_ext <<_ACEOF
38157/* confdefs.h. */
38158_ACEOF
38159cat confdefs.h >>conftest.$ac_ext
38160cat >>conftest.$ac_ext <<_ACEOF
38161/* end confdefs.h. */
38162
38163
38164int
38165main ()
38166{
38167main ();
38168 ;
38169 return 0;
38170}
38171_ACEOF
38172rm -f conftest.$ac_objext conftest$ac_exeext
38173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38174 (eval $ac_link) 2>conftest.er1
a848cd7e 38175 ac_status=$?
ac1cb8d3
VS
38176 grep -v '^ *+' conftest.er1 >conftest.err
38177 rm -f conftest.er1
38178 cat conftest.err >&5
a848cd7e
SC
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); } &&
07158944 38181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183 (eval $ac_try) 2>&5
38184 ac_status=$?
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); }; } &&
38187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189 (eval $ac_try) 2>&5
38190 ac_status=$?
38191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192 (exit $ac_status); }; }; then
38193 ac_cv_lib_unicows_main=yes
38194else
38195 echo "$as_me: failed program was:" >&5
38196sed 's/^/| /' conftest.$ac_ext >&5
38197
38198ac_cv_lib_unicows_main=no
38199fi
ac1cb8d3
VS
38200rm -f conftest.err conftest.$ac_objext \
38201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38202LIBS=$ac_check_lib_save_LIBS
38203fi
38204echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38205echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38206if test $ac_cv_lib_unicows_main = yes; then
38207
38208 cat >>confdefs.h <<\_ACEOF
38209#define wxUSE_UNICODE_MSLU 1
38210_ACEOF
38211
38212
38213else
38214
38215 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38216 Applications will only run on Windows NT/2000/XP!" >&5
38217echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38218 Applications will only run on Windows NT/2000/XP!" >&2;}
38219 wxUSE_UNICODE_MSLU=no
38220
38221fi
38222
38223 fi
38224fi
38225
38226if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38227 cat >>confdefs.h <<\_ACEOF
38228#define wxUSE_EXPERIMENTAL_PRINTF 1
38229_ACEOF
38230
38231fi
38232
38233
38234if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38235 cat >>confdefs.h <<\_ACEOF
38236#define wxUSE_POSTSCRIPT 1
38237_ACEOF
38238
38239fi
38240
38241cat >>confdefs.h <<\_ACEOF
38242#define wxUSE_AFM_FOR_POSTSCRIPT 1
38243_ACEOF
38244
38245
38246cat >>confdefs.h <<\_ACEOF
38247#define wxUSE_NORMALIZED_PS_FONTS 1
38248_ACEOF
38249
38250
38251
38252if test "$wxUSE_CONSTRAINTS" = "yes"; then
38253 cat >>confdefs.h <<\_ACEOF
38254#define wxUSE_CONSTRAINTS 1
38255_ACEOF
38256
38257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38258fi
38259
8a7b1113
VZ
38260if test "$wxUSE_MDI" = "yes"; then
38261 cat >>confdefs.h <<\_ACEOF
38262#define wxUSE_MDI 1
38263_ACEOF
38264
38265
38266 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38267 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38268#define wxUSE_MDI_ARCHITECTURE 1
38269_ACEOF
38270
8a7b1113
VZ
38271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38272 fi
a848cd7e
SC
38273fi
38274
38275if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38276 cat >>confdefs.h <<\_ACEOF
38277#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38278_ACEOF
38279
38280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38281 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38283 fi
38284fi
38285
38286if test "$wxUSE_HELP" = "yes"; then
38287 cat >>confdefs.h <<\_ACEOF
38288#define wxUSE_HELP 1
38289_ACEOF
38290
38291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38292
38293 if test "$wxUSE_MSW" = 1; then
38294 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38295 cat >>confdefs.h <<\_ACEOF
38296#define wxUSE_MS_HTML_HELP 1
38297_ACEOF
38298
38299 fi
38300 fi
38301
38302 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38303 if test "$wxUSE_HTML" = "yes"; then
38304 cat >>confdefs.h <<\_ACEOF
38305#define wxUSE_WXHTML_HELP 1
38306_ACEOF
38307
38308 else
38309 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38310echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38311 wxUSE_WXHTML_HELP=no
38312 fi
38313 fi
38314fi
38315
38316if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38317 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38318 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38319echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38320 else
38321 cat >>confdefs.h <<\_ACEOF
38322#define wxUSE_PRINTING_ARCHITECTURE 1
38323_ACEOF
38324
38325 fi
38326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38327fi
38328
38329if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38330 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38331echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38332 { (exit 1); exit 1; }; }
38333fi
38334
38335
38336if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38337 -o "$wxUSE_CLIPBOARD" = "yes" \
38338 -o "$wxUSE_OLE" = "yes" \
38339 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38340
38341for ac_header in ole2.h
38342do
38343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38344if eval "test \"\${$as_ac_Header+set}\" = set"; then
38345 echo "$as_me:$LINENO: checking for $ac_header" >&5
38346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38347if eval "test \"\${$as_ac_Header+set}\" = set"; then
38348 echo $ECHO_N "(cached) $ECHO_C" >&6
38349fi
38350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38352else
38353 # Is the header compilable?
38354echo "$as_me:$LINENO: checking $ac_header usability" >&5
38355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38356cat >conftest.$ac_ext <<_ACEOF
38357/* confdefs.h. */
38358_ACEOF
38359cat confdefs.h >>conftest.$ac_ext
38360cat >>conftest.$ac_ext <<_ACEOF
38361/* end confdefs.h. */
38362$ac_includes_default
38363#include <$ac_header>
38364_ACEOF
38365rm -f conftest.$ac_objext
38366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38367 (eval $ac_compile) 2>conftest.er1
a848cd7e 38368 ac_status=$?
ac1cb8d3
VS
38369 grep -v '^ *+' conftest.er1 >conftest.err
38370 rm -f conftest.er1
38371 cat conftest.err >&5
a848cd7e
SC
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); } &&
07158944 38374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; } &&
38380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38383 ac_status=$?
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; }; then
38386 ac_header_compiler=yes
38387else
38388 echo "$as_me: failed program was:" >&5
38389sed 's/^/| /' conftest.$ac_ext >&5
38390
38391ac_header_compiler=no
38392fi
ac1cb8d3 38393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38395echo "${ECHO_T}$ac_header_compiler" >&6
38396
38397# Is the header present?
38398echo "$as_me:$LINENO: checking $ac_header presence" >&5
38399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38400cat >conftest.$ac_ext <<_ACEOF
38401/* confdefs.h. */
38402_ACEOF
38403cat confdefs.h >>conftest.$ac_ext
38404cat >>conftest.$ac_ext <<_ACEOF
38405/* end confdefs.h. */
38406#include <$ac_header>
38407_ACEOF
38408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38410 ac_status=$?
38411 grep -v '^ *+' conftest.er1 >conftest.err
38412 rm -f conftest.er1
38413 cat conftest.err >&5
38414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415 (exit $ac_status); } >/dev/null; then
38416 if test -s conftest.err; then
38417 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38419 else
38420 ac_cpp_err=
38421 fi
38422else
38423 ac_cpp_err=yes
38424fi
38425if test -z "$ac_cpp_err"; then
38426 ac_header_preproc=yes
38427else
38428 echo "$as_me: failed program was:" >&5
38429sed 's/^/| /' conftest.$ac_ext >&5
38430
38431 ac_header_preproc=no
38432fi
38433rm -f conftest.err conftest.$ac_ext
38434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38435echo "${ECHO_T}$ac_header_preproc" >&6
38436
38437# So? What about this header?
ac1cb8d3
VS
38438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38439 yes:no: )
a848cd7e
SC
38440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38444 ac_header_preproc=yes
a848cd7e 38445 ;;
ac1cb8d3 38446 no:yes:* )
a848cd7e
SC
38447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38459 (
38460 cat <<\_ASBOX
ac1cb8d3
VS
38461## ----------------------------------------- ##
38462## Report this to wx-dev@lists.wxwidgets.org ##
38463## ----------------------------------------- ##
a848cd7e
SC
38464_ASBOX
38465 ) |
38466 sed "s/^/$as_me: WARNING: /" >&2
38467 ;;
38468esac
38469echo "$as_me:$LINENO: checking for $ac_header" >&5
38470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38471if eval "test \"\${$as_ac_Header+set}\" = set"; then
38472 echo $ECHO_N "(cached) $ECHO_C" >&6
38473else
ac1cb8d3 38474 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38475fi
38476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38478
38479fi
38480if test `eval echo '${'$as_ac_Header'}'` = yes; then
38481 cat >>confdefs.h <<_ACEOF
38482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38483_ACEOF
38484
38485fi
38486
38487done
38488
38489
38490 if test "$ac_cv_header_ole2_h" = "yes" ; then
38491 if test "$GCC" = yes ; then
38492
38493
38494 ac_ext=cc
38495ac_cpp='$CXXCPP $CPPFLAGS'
38496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38499
38500
38501 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38502echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38503 cat >conftest.$ac_ext <<_ACEOF
38504/* confdefs.h. */
38505_ACEOF
38506cat confdefs.h >>conftest.$ac_ext
38507cat >>conftest.$ac_ext <<_ACEOF
38508/* end confdefs.h. */
38509#include <windows.h>
38510 #include <ole2.h>
38511int
38512main ()
38513{
38514
38515 ;
38516 return 0;
38517}
38518_ACEOF
38519rm -f conftest.$ac_objext
38520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38521 (eval $ac_compile) 2>conftest.er1
a848cd7e 38522 ac_status=$?
ac1cb8d3
VS
38523 grep -v '^ *+' conftest.er1 >conftest.err
38524 rm -f conftest.er1
38525 cat conftest.err >&5
a848cd7e
SC
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); } &&
07158944 38528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38531 ac_status=$?
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; } &&
38534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38536 (eval $ac_try) 2>&5
38537 ac_status=$?
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); }; }; then
38540 echo "$as_me:$LINENO: result: no" >&5
38541echo "${ECHO_T}no" >&6
38542else
38543 echo "$as_me: failed program was:" >&5
38544sed 's/^/| /' conftest.$ac_ext >&5
38545
38546echo "$as_me:$LINENO: result: yes" >&5
38547echo "${ECHO_T}yes" >&6
38548 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38549fi
ac1cb8d3 38550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38551 ac_ext=c
38552ac_cpp='$CPP $CPPFLAGS'
38553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38555ac_compiler_gnu=$ac_cv_c_compiler_gnu
38556
a848cd7e
SC
38557 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38558 if test "$wxUSE_OLE" = "yes" ; then
38559 cat >>confdefs.h <<\_ACEOF
38560#define wxUSE_OLE 1
38561_ACEOF
38562
0b78747f 38563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38564 fi
38565 fi
38566
38567 if test "$wxUSE_DATAOBJ" = "yes" ; then
38568 cat >>confdefs.h <<\_ACEOF
38569#define wxUSE_DATAOBJ 1
38570_ACEOF
38571
38572 fi
38573 else
38574 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38575echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38576
38577 wxUSE_CLIPBOARD=no
38578 wxUSE_DRAG_AND_DROP=no
38579 wxUSE_DATAOBJ=no
38580 wxUSE_OLE=no
38581 fi
38582
38583 if test "$wxUSE_METAFILE" = "yes"; then
38584 cat >>confdefs.h <<\_ACEOF
38585#define wxUSE_METAFILE 1
38586_ACEOF
38587
38588
38589 cat >>confdefs.h <<\_ACEOF
38590#define wxUSE_ENH_METAFILE 1
38591_ACEOF
38592
38593 fi
38594fi
38595
38596if test "$wxUSE_IPC" = "yes"; then
0b78747f 38597 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38598 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38599echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38600 wxUSE_IPC=no
a848cd7e
SC
38601 fi
38602
0b78747f
MW
38603 if test "$wxUSE_IPC" = "yes"; then
38604 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38605#define wxUSE_IPC 1
38606_ACEOF
38607
0b78747f
MW
38608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38609 fi
a848cd7e
SC
38610fi
38611
38612if test "$wxUSE_CLIPBOARD" = "yes"; then
38613 if test "$wxUSE_MGL" = 1; then
38614 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38615echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38616 wxUSE_CLIPBOARD=no
38617 fi
38618
38619 if test "$wxUSE_CLIPBOARD" = "yes"; then
38620 cat >>confdefs.h <<\_ACEOF
38621#define wxUSE_CLIPBOARD 1
38622_ACEOF
38623
38624
38625 cat >>confdefs.h <<\_ACEOF
38626#define wxUSE_DATAOBJ 1
38627_ACEOF
38628
38629 fi
38630fi
38631
38632if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38633 if test "$wxUSE_GTK" = 1; then
38634 if test "$WXGTK12" != 1; then
38635 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38636echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38637 wxUSE_DRAG_AND_DROP=no
38638 fi
38639 fi
38640
38641 if test "$wxUSE_MOTIF" = 1; then
38642 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38643echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38644 wxUSE_DRAG_AND_DROP=no
38645 fi
38646
38647 if test "$wxUSE_X11" = 1; then
38648 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38649echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38650 wxUSE_DRAG_AND_DROP=no
38651 fi
38652
38653 if test "$wxUSE_MGL" = 1; then
38654 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38655echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38656 wxUSE_DRAG_AND_DROP=no
38657 fi
38658
38659 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38660 cat >>confdefs.h <<\_ACEOF
38661#define wxUSE_DRAG_AND_DROP 1
38662_ACEOF
38663
38664 fi
38665
38666fi
38667
38668if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38670fi
38671
38672if test "$wxUSE_SPLINES" = "yes" ; then
38673 cat >>confdefs.h <<\_ACEOF
38674#define wxUSE_SPLINES 1
38675_ACEOF
38676
38677fi
38678
38679
38680USES_CONTROLS=0
38681if test "$wxUSE_CONTROLS" = "yes"; then
38682 USES_CONTROLS=1
38683fi
38684
38685if test "$wxUSE_ACCEL" = "yes"; then
38686 cat >>confdefs.h <<\_ACEOF
38687#define wxUSE_ACCEL 1
38688_ACEOF
38689
38690 USES_CONTROLS=1
38691fi
38692
38693if test "$wxUSE_BUTTON" = "yes"; then
38694 cat >>confdefs.h <<\_ACEOF
38695#define wxUSE_BUTTON 1
38696_ACEOF
38697
38698 USES_CONTROLS=1
38699fi
38700
38701if test "$wxUSE_BMPBUTTON" = "yes"; then
38702 cat >>confdefs.h <<\_ACEOF
38703#define wxUSE_BMPBUTTON 1
38704_ACEOF
38705
38706 USES_CONTROLS=1
38707fi
38708
38709if test "$wxUSE_CALCTRL" = "yes"; then
38710 cat >>confdefs.h <<\_ACEOF
38711#define wxUSE_CALENDARCTRL 1
38712_ACEOF
38713
38714 USES_CONTROLS=1
38715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38716fi
38717
38718if test "$wxUSE_CARET" = "yes"; then
38719 cat >>confdefs.h <<\_ACEOF
38720#define wxUSE_CARET 1
38721_ACEOF
38722
38723 USES_CONTROLS=1
38724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38725fi
38726
38727if test "$wxUSE_COMBOBOX" = "yes"; then
38728 cat >>confdefs.h <<\_ACEOF
38729#define wxUSE_COMBOBOX 1
38730_ACEOF
38731
38732 USES_CONTROLS=1
38733fi
38734
38735if test "$wxUSE_CHOICE" = "yes"; then
38736 cat >>confdefs.h <<\_ACEOF
38737#define wxUSE_CHOICE 1
38738_ACEOF
38739
38740 USES_CONTROLS=1
38741fi
38742
92bbdbcd
WS
38743if test "$wxUSE_CHOICEBOOK" = "yes"; then
38744 cat >>confdefs.h <<\_ACEOF
38745#define wxUSE_CHOICEBOOK 1
38746_ACEOF
38747
38748 USES_CONTROLS=1
38749fi
38750
a848cd7e
SC
38751if test "$wxUSE_CHECKBOX" = "yes"; then
38752 cat >>confdefs.h <<\_ACEOF
38753#define wxUSE_CHECKBOX 1
38754_ACEOF
38755
38756 USES_CONTROLS=1
38757fi
38758
38759if test "$wxUSE_CHECKLST" = "yes"; then
38760 cat >>confdefs.h <<\_ACEOF
38761#define wxUSE_CHECKLISTBOX 1
38762_ACEOF
38763
38764 USES_CONTROLS=1
38765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38766fi
38767
da98e9be
VZ
38768if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38769 cat >>confdefs.h <<\_ACEOF
38770#define wxUSE_DATEPICKCTRL 1
38771_ACEOF
38772
38773 USES_CONTROLS=1
38774fi
38775
a848cd7e
SC
38776if test "$wxUSE_DISPLAY" = "yes"; then
38777 cat >>confdefs.h <<\_ACEOF
38778#define wxUSE_DISPLAY 1
38779_ACEOF
38780
0b78747f 38781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38782fi
38783
38784if test "$wxUSE_GAUGE" = "yes"; then
38785 cat >>confdefs.h <<\_ACEOF
38786#define wxUSE_GAUGE 1
38787_ACEOF
38788
38789 USES_CONTROLS=1
38790fi
38791
38792if test "$wxUSE_GRID" = "yes"; then
38793 cat >>confdefs.h <<\_ACEOF
38794#define wxUSE_GRID 1
38795_ACEOF
38796
38797 USES_CONTROLS=1
38798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38799fi
38800
38801if test "$wxUSE_IMAGLIST" = "yes"; then
38802 cat >>confdefs.h <<\_ACEOF
38803#define wxUSE_IMAGLIST 1
38804_ACEOF
38805
38806fi
38807
38808if test "$wxUSE_LISTBOOK" = "yes"; then
38809 cat >>confdefs.h <<\_ACEOF
38810#define wxUSE_LISTBOOK 1
38811_ACEOF
38812
38813 USES_CONTROLS=1
38814fi
38815
38816if test "$wxUSE_LISTBOX" = "yes"; then
38817 cat >>confdefs.h <<\_ACEOF
38818#define wxUSE_LISTBOX 1
38819_ACEOF
38820
38821 USES_CONTROLS=1
0b78747f 38822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38823fi
38824
38825if test "$wxUSE_LISTCTRL" = "yes"; then
38826 if test "$wxUSE_IMAGLIST" = "yes"; then
38827 cat >>confdefs.h <<\_ACEOF
38828#define wxUSE_LISTCTRL 1
38829_ACEOF
38830
38831 USES_CONTROLS=1
38832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38833 else
38834 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38835echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38836 fi
38837fi
38838
38839if test "$wxUSE_NOTEBOOK" = "yes"; then
38840 cat >>confdefs.h <<\_ACEOF
38841#define wxUSE_NOTEBOOK 1
38842_ACEOF
38843
38844 USES_CONTROLS=1
38845 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38846fi
38847
38848
38849if test "$wxUSE_RADIOBOX" = "yes"; then
38850 cat >>confdefs.h <<\_ACEOF
38851#define wxUSE_RADIOBOX 1
38852_ACEOF
38853
38854 USES_CONTROLS=1
38855fi
38856
38857if test "$wxUSE_RADIOBTN" = "yes"; then
38858 cat >>confdefs.h <<\_ACEOF
38859#define wxUSE_RADIOBTN 1
38860_ACEOF
38861
38862 USES_CONTROLS=1
38863fi
38864
38865if test "$wxUSE_SASH" = "yes"; then
38866 cat >>confdefs.h <<\_ACEOF
38867#define wxUSE_SASH 1
38868_ACEOF
38869
38870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38871fi
38872
38873if test "$wxUSE_SCROLLBAR" = "yes"; then
38874 cat >>confdefs.h <<\_ACEOF
38875#define wxUSE_SCROLLBAR 1
38876_ACEOF
38877
38878 USES_CONTROLS=1
38879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38880fi
38881
38882if test "$wxUSE_SLIDER" = "yes"; then
38883 cat >>confdefs.h <<\_ACEOF
38884#define wxUSE_SLIDER 1
38885_ACEOF
38886
38887 USES_CONTROLS=1
38888fi
38889
38890if test "$wxUSE_SPINBTN" = "yes"; then
38891 cat >>confdefs.h <<\_ACEOF
38892#define wxUSE_SPINBTN 1
38893_ACEOF
38894
38895 USES_CONTROLS=1
38896fi
38897
38898if test "$wxUSE_SPINCTRL" = "yes"; then
38899 cat >>confdefs.h <<\_ACEOF
38900#define wxUSE_SPINCTRL 1
38901_ACEOF
38902
38903 USES_CONTROLS=1
38904fi
38905
38906if test "$wxUSE_SPLITTER" = "yes"; then
38907 cat >>confdefs.h <<\_ACEOF
38908#define wxUSE_SPLITTER 1
38909_ACEOF
38910
38911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38912fi
38913
38914if test "$wxUSE_STATBMP" = "yes"; then
38915 cat >>confdefs.h <<\_ACEOF
38916#define wxUSE_STATBMP 1
38917_ACEOF
38918
38919 USES_CONTROLS=1
38920fi
38921
38922if test "$wxUSE_STATBOX" = "yes"; then
38923 cat >>confdefs.h <<\_ACEOF
38924#define wxUSE_STATBOX 1
38925_ACEOF
38926
38927 USES_CONTROLS=1
38928fi
38929
38930if test "$wxUSE_STATTEXT" = "yes"; then
38931 cat >>confdefs.h <<\_ACEOF
38932#define wxUSE_STATTEXT 1
38933_ACEOF
38934
38935 USES_CONTROLS=1
38936fi
38937
38938if test "$wxUSE_STATLINE" = "yes"; then
38939 cat >>confdefs.h <<\_ACEOF
38940#define wxUSE_STATLINE 1
38941_ACEOF
38942
38943 USES_CONTROLS=1
38944fi
38945
38946if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38947 cat >>confdefs.h <<\_ACEOF
38948#define wxUSE_NATIVE_STATUSBAR 1
38949_ACEOF
38950
a848cd7e
SC
38951 cat >>confdefs.h <<\_ACEOF
38952#define wxUSE_STATUSBAR 1
38953_ACEOF
38954
38955 USES_CONTROLS=1
38956
38957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38958fi
38959
38960if test "$wxUSE_TABDIALOG" = "yes"; then
38961 cat >>confdefs.h <<\_ACEOF
38962#define wxUSE_TAB_DIALOG 1
38963_ACEOF
38964
a848cd7e
SC
38965fi
38966
38967if test "$wxUSE_TEXTCTRL" = "yes"; then
38968 cat >>confdefs.h <<\_ACEOF
38969#define wxUSE_TEXTCTRL 1
38970_ACEOF
38971
38972 USES_CONTROLS=1
38973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38974fi
38975
38976if test "$wxUSE_TOGGLEBTN" = "yes"; then
38977 if test "$wxUSE_COCOA" = 1 ; then
38978 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38979echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38980 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38981 else
38982 if test "$wxUSE_PM" = 1; then
38983 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38984echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38985 wxUSE_TOGGLEBTN=no
38986 fi
a848cd7e
SC
38987 fi
38988 if test "$wxUSE_UNIVERSAL" = "yes"; then
38989 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38990echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38991 wxUSE_TOGGLEBTN=no
38992 fi
38993
38994 if test "$wxUSE_TOGGLEBTN" = "yes"; then
38995 cat >>confdefs.h <<\_ACEOF
38996#define wxUSE_TOGGLEBTN 1
38997_ACEOF
38998
38999 USES_CONTROLS=1
39000 fi
39001fi
39002
39003if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39004 cat >>confdefs.h <<\_ACEOF
39005#define wxUSE_TOOLBAR_SIMPLE 1
39006_ACEOF
39007
39008 wxUSE_TOOLBAR="yes"
39009 USES_CONTROLS=1
39010fi
39011
39012if test "$wxUSE_TOOLBAR" = "yes"; then
39013 cat >>confdefs.h <<\_ACEOF
39014#define wxUSE_TOOLBAR 1
39015_ACEOF
39016
39017 USES_CONTROLS=1
39018
39019 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39020 wxUSE_TOOLBAR_NATIVE="yes"
39021 fi
39022
39023 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39024 cat >>confdefs.h <<\_ACEOF
39025#define wxUSE_TOOLBAR_NATIVE 1
39026_ACEOF
39027
39028 USES_CONTROLS=1
39029 fi
39030
39031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39032fi
39033
39034if test "$wxUSE_TOOLTIPS" = "yes"; then
39035 if test "$wxUSE_MOTIF" = 1; then
39036 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39037echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39038 else
39039 if test "$wxUSE_UNIVERSAL" = "yes"; then
39040 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39041echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39042 else
39043 cat >>confdefs.h <<\_ACEOF
39044#define wxUSE_TOOLTIPS 1
39045_ACEOF
39046
39047 fi
39048 fi
39049fi
39050
39051if test "$wxUSE_TREECTRL" = "yes"; then
39052 if test "$wxUSE_IMAGLIST" = "yes"; then
39053 cat >>confdefs.h <<\_ACEOF
39054#define wxUSE_TREECTRL 1
39055_ACEOF
39056
39057 USES_CONTROLS=1
39058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39059 else
39060 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39061echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39062 fi
39063fi
39064
39065if test "$wxUSE_POPUPWIN" = "yes"; then
39066 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39067 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39068echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39069 else
39070 if test "$wxUSE_PM" = 1; then
39071 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39072echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39073 else
39074 cat >>confdefs.h <<\_ACEOF
39075#define wxUSE_POPUPWIN 1
39076_ACEOF
39077
0b78747f 39078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39079
39080 USES_CONTROLS=1
39081 fi
39082 fi
39083fi
39084
0dcd06dd 39085if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39086 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39087 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39088echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39089 else
39090 cat >>confdefs.h <<\_ACEOF
39091#define wxUSE_DIALUP_MANAGER 1
39092_ACEOF
39093
39094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39095 fi
39096fi
39097
a848cd7e
SC
39098if test "$wxUSE_TIPWINDOW" = "yes"; then
39099 if test "$wxUSE_PM" = 1; then
39100 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39101echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39102 else
39103 cat >>confdefs.h <<\_ACEOF
39104#define wxUSE_TIPWINDOW 1
39105_ACEOF
39106
39107 fi
39108fi
39109
39110if test "$USES_CONTROLS" = 1; then
39111 cat >>confdefs.h <<\_ACEOF
39112#define wxUSE_CONTROLS 1
39113_ACEOF
39114
39115fi
39116
39117
39118if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39119 cat >>confdefs.h <<\_ACEOF
39120#define wxUSE_ACCESSIBILITY 1
39121_ACEOF
39122
39123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39124fi
39125
39126if test "$wxUSE_DRAGIMAGE" = "yes"; then
39127 cat >>confdefs.h <<\_ACEOF
39128#define wxUSE_DRAGIMAGE 1
39129_ACEOF
39130
39131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39132fi
39133
39134if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39135 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39136 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39137echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39138 else
39139 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39140#define wxUSE_EXCEPTIONS 1
39141_ACEOF
39142
07bea8f0
VS
39143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39144 fi
a848cd7e
SC
39145fi
39146
39147USE_HTML=0
39148if test "$wxUSE_HTML" = "yes"; then
39149 cat >>confdefs.h <<\_ACEOF
39150#define wxUSE_HTML 1
39151_ACEOF
39152
39153 USE_HTML=1
39154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39155 if test "$wxUSE_MAC" = 1; then
39156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39157 fi
a848cd7e 39158fi
646b6ec1 39159if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39160 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39161 old_CPPFLAGS="$CPPFLAGS"
39162 CPPFLAGS="$CPPFLAGS -x objective-c++"
39163 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39164echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39165if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39166 echo $ECHO_N "(cached) $ECHO_C" >&6
39167else
39168 cat >conftest.$ac_ext <<_ACEOF
39169/* confdefs.h. */
39170_ACEOF
39171cat confdefs.h >>conftest.$ac_ext
39172cat >>conftest.$ac_ext <<_ACEOF
39173/* end confdefs.h. */
39174#include <Carbon/Carbon.h>
39175
39176#include <WebKit/HIWebView.h>
39177_ACEOF
39178rm -f conftest.$ac_objext
39179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39180 (eval $ac_compile) 2>conftest.er1
39181 ac_status=$?
39182 grep -v '^ *+' conftest.er1 >conftest.err
39183 rm -f conftest.er1
39184 cat conftest.err >&5
39185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186 (exit $ac_status); } &&
07158944 39187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39189 (eval $ac_try) 2>&5
39190 ac_status=$?
39191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192 (exit $ac_status); }; } &&
39193 { ac_try='test -s conftest.$ac_objext'
39194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195 (eval $ac_try) 2>&5
39196 ac_status=$?
39197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198 (exit $ac_status); }; }; then
39199 ac_cv_header_WebKit_HIWebView_h=yes
39200else
39201 echo "$as_me: failed program was:" >&5
39202sed 's/^/| /' conftest.$ac_ext >&5
39203
39204ac_cv_header_WebKit_HIWebView_h=no
39205fi
39206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39207fi
39208echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39209echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39210if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39211
39212 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39213#define wxUSE_WEBKIT 1
39214_ACEOF
39215
07bea8f0
VS
39216 WEBKIT_LINK="-framework WebKit"
39217
39218else
39219
39220 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39221echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39222 wxUSE_WEBKIT=no
39223
646b6ec1
VS
39224fi
39225
07bea8f0
VS
39226
39227 CPPFLAGS="$old_CPPFLAGS"
39228 elif test "$wxUSE_COCOA" = 1; then
39229 cat >>confdefs.h <<\_ACEOF
39230#define wxUSE_WEBKIT 1
39231_ACEOF
39232
39233 else
39234 wxUSE_WEBKIT=no
39235 fi
39236fi
39237
9a8f0513
VS
39238USE_XRC=0
39239if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39240 if test "$wxUSE_XML" != "yes"; then
39241 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39242echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39243 wxUSE_XRC=no
39244 else
39245 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39246#define wxUSE_XRC 1
39247_ACEOF
39248
d2ebf0b7
VS
39249 USE_XRC=1
39250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39251 fi
9a8f0513 39252fi
07bea8f0 39253
a848cd7e
SC
39254if test "$wxUSE_MENUS" = "yes"; then
39255 cat >>confdefs.h <<\_ACEOF
39256#define wxUSE_MENUS 1
39257_ACEOF
39258
39259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39260fi
39261
39262if test "$wxUSE_METAFILE" = "yes"; then
39263 cat >>confdefs.h <<\_ACEOF
39264#define wxUSE_METAFILE 1
39265_ACEOF
39266
39267fi
39268
39269if test "$wxUSE_MIMETYPE" = "yes"; then
39270 cat >>confdefs.h <<\_ACEOF
39271#define wxUSE_MIMETYPE 1
39272_ACEOF
39273
39274fi
39275
39276if test "$wxUSE_MINIFRAME" = "yes"; then
39277 cat >>confdefs.h <<\_ACEOF
39278#define wxUSE_MINIFRAME 1
39279_ACEOF
39280
39281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39282fi
39283
39284if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39285 cat >>confdefs.h <<\_ACEOF
39286#define wxUSE_SYSTEM_OPTIONS 1
39287_ACEOF
39288
39289 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39290 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39292 fi
39293fi
39294
39295
39296if test "$wxUSE_VALIDATORS" = "yes"; then
39297 cat >>confdefs.h <<\_ACEOF
39298#define wxUSE_VALIDATORS 1
39299_ACEOF
39300
39301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39302fi
39303
39304if test "$wxUSE_PALETTE" = "yes" ; then
39305 cat >>confdefs.h <<\_ACEOF
39306#define wxUSE_PALETTE 1
39307_ACEOF
39308
39309fi
39310
39311if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39312 LIBS=" -lunicows $LIBS"
39313fi
39314
39315
39316if test "$wxUSE_IMAGE" = "yes" ; then
39317 cat >>confdefs.h <<\_ACEOF
39318#define wxUSE_IMAGE 1
39319_ACEOF
39320
39321
39322 if test "$wxUSE_GIF" = "yes" ; then
39323 cat >>confdefs.h <<\_ACEOF
39324#define wxUSE_GIF 1
39325_ACEOF
39326
39327 fi
39328
39329 if test "$wxUSE_PCX" = "yes" ; then
39330 cat >>confdefs.h <<\_ACEOF
39331#define wxUSE_PCX 1
39332_ACEOF
39333
39334 fi
39335
39336 if test "$wxUSE_IFF" = "yes" ; then
39337 cat >>confdefs.h <<\_ACEOF
39338#define wxUSE_IFF 1
39339_ACEOF
39340
39341 fi
39342
39343 if test "$wxUSE_PNM" = "yes" ; then
39344 cat >>confdefs.h <<\_ACEOF
39345#define wxUSE_PNM 1
39346_ACEOF
39347
39348 fi
39349
39350 if test "$wxUSE_XPM" = "yes" ; then
39351 cat >>confdefs.h <<\_ACEOF
39352#define wxUSE_XPM 1
39353_ACEOF
39354
39355 fi
39356
39357 if test "$wxUSE_ICO_CUR" = "yes" ; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define wxUSE_ICO_CUR 1
39360_ACEOF
39361
39362 fi
39363fi
39364
39365
39366if test "$wxUSE_CHOICEDLG" = "yes"; then
39367 cat >>confdefs.h <<\_ACEOF
39368#define wxUSE_CHOICEDLG 1
39369_ACEOF
39370
39371fi
39372
39373if test "$wxUSE_COLOURDLG" = "yes"; then
39374 cat >>confdefs.h <<\_ACEOF
39375#define wxUSE_COLOURDLG 1
39376_ACEOF
39377
39378fi
39379
39380if test "$wxUSE_FILEDLG" = "yes"; then
39381 cat >>confdefs.h <<\_ACEOF
39382#define wxUSE_FILEDLG 1
39383_ACEOF
39384
39385fi
39386
39387if test "$wxUSE_FINDREPLDLG" = "yes"; then
39388 cat >>confdefs.h <<\_ACEOF
39389#define wxUSE_FINDREPLDLG 1
39390_ACEOF
39391
39392fi
39393
39394if test "$wxUSE_FONTDLG" = "yes"; then
39395 cat >>confdefs.h <<\_ACEOF
39396#define wxUSE_FONTDLG 1
39397_ACEOF
39398
39399fi
39400
39401if test "$wxUSE_DIRDLG" = "yes"; then
39402 if test "$wxUSE_TREECTRL" != "yes"; then
39403 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39404echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39405 else
39406 cat >>confdefs.h <<\_ACEOF
39407#define wxUSE_DIRDLG 1
39408_ACEOF
39409
39410 fi
39411fi
39412
39413if test "$wxUSE_MSGDLG" = "yes"; then
39414 cat >>confdefs.h <<\_ACEOF
39415#define wxUSE_MSGDLG 1
39416_ACEOF
39417
39418fi
39419
39420if test "$wxUSE_NUMBERDLG" = "yes"; then
39421 cat >>confdefs.h <<\_ACEOF
39422#define wxUSE_NUMBERDLG 1
39423_ACEOF
39424
39425fi
39426
39427if test "$wxUSE_PROGRESSDLG" = "yes"; then
39428 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39429 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39430echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39431 else
39432 cat >>confdefs.h <<\_ACEOF
39433#define wxUSE_PROGRESSDLG 1
39434_ACEOF
39435
39436 fi
39437fi
39438
39439if test "$wxUSE_SPLASH" = "yes"; then
39440 cat >>confdefs.h <<\_ACEOF
39441#define wxUSE_SPLASH 1
39442_ACEOF
39443
2057db16 39444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39445fi
39446
39447if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39448 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39449 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39450echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39451 else
39452 cat >>confdefs.h <<\_ACEOF
39453#define wxUSE_STARTUP_TIPS 1
39454_ACEOF
39455
39456 fi
39457fi
39458
39459if test "$wxUSE_TEXTDLG" = "yes"; then
39460 cat >>confdefs.h <<\_ACEOF
39461#define wxUSE_TEXTDLG 1
39462_ACEOF
39463
39464fi
39465
39466if test "$wxUSE_WIZARDDLG" = "yes"; then
39467 cat >>confdefs.h <<\_ACEOF
39468#define wxUSE_WIZARDDLG 1
39469_ACEOF
39470
39471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39472fi
39473
39474
ce756cb0
RN
39475if test "$wxUSE_MEDIACTRL" = "yes"; then
39476 if test "$wxUSE_MSW" = 1; then
39477 wxUSE_DIRECTSHOW="yes"
39478
39479for ac_header in dshow.h
39480do
39481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39482echo "$as_me:$LINENO: checking for $ac_header" >&5
39483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39484if eval "test \"\${$as_ac_Header+set}\" = set"; then
39485 echo $ECHO_N "(cached) $ECHO_C" >&6
39486else
39487 cat >conftest.$ac_ext <<_ACEOF
39488/* confdefs.h. */
39489_ACEOF
39490cat confdefs.h >>conftest.$ac_ext
39491cat >>conftest.$ac_ext <<_ACEOF
39492/* end confdefs.h. */
39493#include <windows.h>
39494
39495#include <$ac_header>
39496_ACEOF
39497rm -f conftest.$ac_objext
39498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39499 (eval $ac_compile) 2>conftest.er1
39500 ac_status=$?
39501 grep -v '^ *+' conftest.er1 >conftest.err
39502 rm -f conftest.er1
39503 cat conftest.err >&5
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); } &&
07158944 39506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39508 (eval $ac_try) 2>&5
39509 ac_status=$?
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); }; } &&
39512 { ac_try='test -s conftest.$ac_objext'
39513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39514 (eval $ac_try) 2>&5
39515 ac_status=$?
39516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517 (exit $ac_status); }; }; then
39518 eval "$as_ac_Header=yes"
39519else
39520 echo "$as_me: failed program was:" >&5
39521sed 's/^/| /' conftest.$ac_ext >&5
39522
39523eval "$as_ac_Header=no"
39524fi
39525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39526fi
39527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39529if test `eval echo '${'$as_ac_Header'}'` = yes; then
39530 cat >>confdefs.h <<_ACEOF
39531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39532_ACEOF
39533
39534else
39535
39536 wxUSE_DIRECTSHOW="no"
39537 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39538echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39539
39540fi
39541
39542done
39543
39544
39545 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39546 cat >>confdefs.h <<\_ACEOF
39547#define wxUSE_DIRECTSHOW 1
39548_ACEOF
39549
39550 LIBS="$LIBS -lstrmiids"
39551 fi
39552 fi
39553
39554 if test "$wxUSE_GTK" = 1; then
39555 wxUSE_GSTREAMER="yes"
39556
ce756cb0 39557
dae87f93 39558 succeeded=no
ce756cb0 39559
dae87f93
RN
39560 if test -z "$PKG_CONFIG"; then
39561 # Extract the first word of "pkg-config", so it can be a program name with args.
39562set dummy pkg-config; ac_word=$2
39563echo "$as_me:$LINENO: checking for $ac_word" >&5
39564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39565if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39566 echo $ECHO_N "(cached) $ECHO_C" >&6
39567else
39568 case $PKG_CONFIG in
39569 [\\/]* | ?:[\\/]*)
39570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39571 ;;
39572 *)
39573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39574for as_dir in $PATH
39575do
39576 IFS=$as_save_IFS
39577 test -z "$as_dir" && as_dir=.
39578 for ac_exec_ext in '' $ac_executable_extensions; do
39579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39582 break 2
39583 fi
39584done
39585done
39586
39587 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39588 ;;
39589esac
39590fi
39591PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39592
39593if test -n "$PKG_CONFIG"; then
39594 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39595echo "${ECHO_T}$PKG_CONFIG" >&6
39596else
39597 echo "$as_me:$LINENO: result: no" >&5
39598echo "${ECHO_T}no" >&6
39599fi
39600
39601 fi
39602
39603 if test "$PKG_CONFIG" = "no" ; then
39604 echo "*** The pkg-config script could not be found. Make sure it is"
39605 echo "*** in your path, or set the PKG_CONFIG environment variable"
39606 echo "*** to the full path to pkg-config."
39607 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39608 else
39609 PKG_CONFIG_MIN_VERSION=0.9.0
39610 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39611 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39612echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39613
39614 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39615 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39616echo "${ECHO_T}yes" >&6
dae87f93 39617 succeeded=yes
ce756cb0 39618
dae87f93
RN
39619 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39620echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39621 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39622 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39623echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39624
39625 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39626echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39627 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39628 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39629echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39630 else
39631 GSTREAMER_CFLAGS=""
39632 GSTREAMER_LIBS=""
39633 ## If we have a custom action on failure, don't print errors, but
39634 ## do set a variable so people can do so.
39635 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39636
dae87f93
RN
39637 fi
39638
39639
39640
39641 else
39642 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39643 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39644 fi
39645 fi
39646
39647 if test $succeeded = yes; then
39648
39649 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39650 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39651
ce756cb0 39652 else
dae87f93
RN
39653
39654 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39655echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39656 wxUSE_GSTREAMER="no"
39657
39658 fi
39659
39660
39661
39662
39663
39664 if test "x$GST_INSPECT" == "x"; then
39665 # Extract the first word of "gst-inspect", so it can be a program name with args.
39666set dummy gst-inspect; ac_word=$2
39667echo "$as_me:$LINENO: checking for $ac_word" >&5
39668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39669if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39670 echo $ECHO_N "(cached) $ECHO_C" >&6
39671else
39672 if test -n "$GST_INSPECT"; then
39673 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39674else
39675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39676for as_dir in $PATH
39677do
39678 IFS=$as_save_IFS
39679 test -z "$as_dir" && as_dir=.
39680 for ac_exec_ext in '' $ac_executable_extensions; do
39681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39682 ac_cv_prog_GST_INSPECT="gst-inspect"
39683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39684 break 2
ce756cb0 39685 fi
dae87f93
RN
39686done
39687done
39688
39689fi
39690fi
39691GST_INSPECT=$ac_cv_prog_GST_INSPECT
39692if test -n "$GST_INSPECT"; then
39693 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39694echo "${ECHO_T}$GST_INSPECT" >&6
39695else
39696 echo "$as_me:$LINENO: result: no" >&5
39697echo "${ECHO_T}no" >&6
39698fi
39699
39700 fi
39701
39702 if test "x$GST_INSPECT" != "x"; then
39703 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39704echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39705 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39706 echo "$as_me:$LINENO: result: found." >&5
39707echo "${ECHO_T}found." >&6
ce756cb0 39708
ce756cb0 39709 else
dae87f93
RN
39710 echo "$as_me:$LINENO: result: not found." >&5
39711echo "${ECHO_T}not found." >&6
39712
39713 wxUSE_GSTREAMER="no"
39714 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39715echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39716
39717 fi
39718 fi
39719
39720
39721 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39722echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39723if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39724 echo $ECHO_N "(cached) $ECHO_C" >&6
39725else
39726 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39727/* confdefs.h. */
39728_ACEOF
39729cat confdefs.h >>conftest.$ac_ext
39730cat >>conftest.$ac_ext <<_ACEOF
39731/* end confdefs.h. */
dae87f93 39732#include <gst/gst.h>
ce756cb0 39733
dae87f93 39734#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39735_ACEOF
39736rm -f conftest.$ac_objext
39737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39738 (eval $ac_compile) 2>conftest.er1
39739 ac_status=$?
39740 grep -v '^ *+' conftest.er1 >conftest.err
39741 rm -f conftest.er1
39742 cat conftest.err >&5
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); } &&
07158944 39745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39748 ac_status=$?
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; } &&
39751 { ac_try='test -s conftest.$ac_objext'
39752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39753 (eval $ac_try) 2>&5
39754 ac_status=$?
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); }; }; then
dae87f93 39757 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39758else
39759 echo "$as_me: failed program was:" >&5
39760sed 's/^/| /' conftest.$ac_ext >&5
39761
dae87f93 39762ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39763fi
39764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39765fi
39766echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39767echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39768if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39769 :
39770else
ce756cb0 39771
dae87f93
RN
39772 wxUSE_GSTREAMER="no"
39773 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39774echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39775
dae87f93 39776fi
ce756cb0 39777
dae87f93
RN
39778
39779
39780 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39781echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39782
39783ac_find_libraries=
39784for ac_dir in $SEARCH_LIB /usr/lib;
39785 do
39786 for ac_extension in a so sl dylib; do
39787 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39788 ac_find_libraries=$ac_dir
39789 break 2
39790 fi
39791 done
39792 done
39793
ce756cb0 39794
dae87f93
RN
39795 if test "$ac_find_libraries" = "" ; then
39796 echo "$as_me:$LINENO: result: no" >&5
39797echo "${ECHO_T}no" >&6
39798 wxUSE_GSTREAMER="no"
39799 else
39800 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39801echo "${ECHO_T}yes" >&6
dae87f93 39802 fi
ce756cb0 39803
dae87f93
RN
39804 if test "$wxUSE_GSTREAMER" = "yes"; then
39805 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39806#define wxUSE_GSTREAMER 1
39807_ACEOF
39808
dae87f93
RN
39809 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39810echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39811 fi
39812 fi
39813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39814 cat >>confdefs.h <<\_ACEOF
39815#define wxUSE_MEDIACTRL 1
39816_ACEOF
39817
39818fi
39819
39820
a848cd7e
SC
39821if test "$cross_compiling" = "yes"; then
39822 OSINFO="\"$host\""
39823else
39824 OSINFO=`uname -s -r -m`
39825 OSINFO="\"$OSINFO\""
39826fi
39827
39828cat >>confdefs.h <<_ACEOF
39829#define WXWIN_OS_DESCRIPTION $OSINFO
39830_ACEOF
39831
39832
39833
39834if test "x$prefix" != "xNONE"; then
39835 wxPREFIX=$prefix
39836else
39837 wxPREFIX=$ac_default_prefix
39838fi
39839
39840cat >>confdefs.h <<_ACEOF
39841#define wxINSTALL_PREFIX "$wxPREFIX"
39842_ACEOF
39843
39844
a848cd7e
SC
39845
39846
39847CORE_BASE_LIBS="net base"
39848CORE_GUI_LIBS="adv core"
39849
39850if test "$wxUSE_XML" = "yes" ; then
39851 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39852fi
39853if test "$wxUSE_ODBC" != "no" ; then
39854 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39855 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39856fi
39857if test "$wxUSE_HTML" = "yes" ; then
39858 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39859fi
61639efb
VZ
39860if test "$wxUSE_DEBUGREPORT" = "yes" ; then
39861 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
39862fi
9a8f0513
VS
39863if test "$wxUSE_XRC" = "yes" ; then
39864 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39865fi
a848cd7e
SC
39866
39867if test "$wxUSE_GUI" != "yes"; then
39868 CORE_GUI_LIBS=""
39869fi
39870
39871
39872
39873
39874
39875
39876
39877
39878if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39879 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39880 if test "$USE_DARWIN" = 1; then
39881 LDFLAGS="$LDFLAGS -framework QuickTime"
39882 else
39883 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39884 fi
07bea8f0 39885 fi
5dcf30a0 39886 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39887 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39888 else
39889 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39890 fi
a848cd7e
SC
39891fi
39892if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39893 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39894 if test "$wxUSE_MEDIACTRL" = "yes"; then
39895 LDFLAGS="$LDFLAGS -framework QuickTime"
39896 fi
a848cd7e
SC
39897fi
39898
39899
39900LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39901
39902have_cos=0
39903have_floor=0
39904
39905for ac_func in cos
39906do
39907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39908echo "$as_me:$LINENO: checking for $ac_func" >&5
39909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39910if eval "test \"\${$as_ac_var+set}\" = set"; then
39911 echo $ECHO_N "(cached) $ECHO_C" >&6
39912else
39913 cat >conftest.$ac_ext <<_ACEOF
39914/* confdefs.h. */
39915_ACEOF
39916cat confdefs.h >>conftest.$ac_ext
39917cat >>conftest.$ac_ext <<_ACEOF
39918/* end confdefs.h. */
ac1cb8d3
VS
39919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39921#define $ac_func innocuous_$ac_func
39922
a848cd7e
SC
39923/* System header to define __stub macros and hopefully few prototypes,
39924 which can conflict with char $ac_func (); below.
39925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39926 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39927
a848cd7e
SC
39928#ifdef __STDC__
39929# include <limits.h>
39930#else
39931# include <assert.h>
39932#endif
ac1cb8d3
VS
39933
39934#undef $ac_func
39935
a848cd7e
SC
39936/* Override any gcc2 internal prototype to avoid an error. */
39937#ifdef __cplusplus
39938extern "C"
39939{
39940#endif
39941/* We use char because int might match the return type of a gcc2
39942 builtin and then its argument prototype would still apply. */
39943char $ac_func ();
39944/* The GNU C library defines this for functions which it implements
39945 to always fail with ENOSYS. Some functions are actually named
39946 something starting with __ and the normal name is an alias. */
39947#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39948choke me
39949#else
39950char (*f) () = $ac_func;
39951#endif
39952#ifdef __cplusplus
39953}
39954#endif
39955
39956int
39957main ()
39958{
39959return f != $ac_func;
39960 ;
39961 return 0;
39962}
39963_ACEOF
39964rm -f conftest.$ac_objext conftest$ac_exeext
39965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39966 (eval $ac_link) 2>conftest.er1
a848cd7e 39967 ac_status=$?
ac1cb8d3
VS
39968 grep -v '^ *+' conftest.er1 >conftest.err
39969 rm -f conftest.er1
39970 cat conftest.err >&5
a848cd7e
SC
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); } &&
07158944 39973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39975 (eval $ac_try) 2>&5
39976 ac_status=$?
39977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978 (exit $ac_status); }; } &&
39979 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39982 ac_status=$?
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; }; then
39985 eval "$as_ac_var=yes"
39986else
39987 echo "$as_me: failed program was:" >&5
39988sed 's/^/| /' conftest.$ac_ext >&5
39989
39990eval "$as_ac_var=no"
39991fi
ac1cb8d3
VS
39992rm -f conftest.err conftest.$ac_objext \
39993 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39994fi
39995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39996echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39997if test `eval echo '${'$as_ac_var'}'` = yes; then
39998 cat >>confdefs.h <<_ACEOF
39999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40000_ACEOF
40001 have_cos=1
40002fi
40003done
40004
40005
40006for ac_func in floor
40007do
40008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40009echo "$as_me:$LINENO: checking for $ac_func" >&5
40010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40011if eval "test \"\${$as_ac_var+set}\" = set"; then
40012 echo $ECHO_N "(cached) $ECHO_C" >&6
40013else
40014 cat >conftest.$ac_ext <<_ACEOF
40015/* confdefs.h. */
40016_ACEOF
40017cat confdefs.h >>conftest.$ac_ext
40018cat >>conftest.$ac_ext <<_ACEOF
40019/* end confdefs.h. */
ac1cb8d3
VS
40020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40022#define $ac_func innocuous_$ac_func
40023
a848cd7e
SC
40024/* System header to define __stub macros and hopefully few prototypes,
40025 which can conflict with char $ac_func (); below.
40026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40027 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40028
a848cd7e
SC
40029#ifdef __STDC__
40030# include <limits.h>
40031#else
40032# include <assert.h>
40033#endif
ac1cb8d3
VS
40034
40035#undef $ac_func
40036
a848cd7e
SC
40037/* Override any gcc2 internal prototype to avoid an error. */
40038#ifdef __cplusplus
40039extern "C"
40040{
40041#endif
40042/* We use char because int might match the return type of a gcc2
40043 builtin and then its argument prototype would still apply. */
40044char $ac_func ();
40045/* The GNU C library defines this for functions which it implements
40046 to always fail with ENOSYS. Some functions are actually named
40047 something starting with __ and the normal name is an alias. */
40048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40049choke me
40050#else
40051char (*f) () = $ac_func;
40052#endif
40053#ifdef __cplusplus
40054}
40055#endif
40056
40057int
40058main ()
40059{
40060return f != $ac_func;
40061 ;
40062 return 0;
40063}
40064_ACEOF
40065rm -f conftest.$ac_objext conftest$ac_exeext
40066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40067 (eval $ac_link) 2>conftest.er1
a848cd7e 40068 ac_status=$?
ac1cb8d3
VS
40069 grep -v '^ *+' conftest.er1 >conftest.err
40070 rm -f conftest.er1
40071 cat conftest.err >&5
a848cd7e
SC
40072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073 (exit $ac_status); } &&
07158944 40074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40076 (eval $ac_try) 2>&5
40077 ac_status=$?
40078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40079 (exit $ac_status); }; } &&
40080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40082 (eval $ac_try) 2>&5
40083 ac_status=$?
40084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40085 (exit $ac_status); }; }; then
40086 eval "$as_ac_var=yes"
40087else
40088 echo "$as_me: failed program was:" >&5
40089sed 's/^/| /' conftest.$ac_ext >&5
40090
40091eval "$as_ac_var=no"
40092fi
ac1cb8d3
VS
40093rm -f conftest.err conftest.$ac_objext \
40094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40095fi
40096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40097echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40098if test `eval echo '${'$as_ac_var'}'` = yes; then
40099 cat >>confdefs.h <<_ACEOF
40100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40101_ACEOF
40102 have_floor=1
40103fi
40104done
40105
40106echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40107echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40108if test "$have_cos" = 1 -a "$have_floor" = 1; then
40109 echo "$as_me:$LINENO: result: yes" >&5
40110echo "${ECHO_T}yes" >&6
40111else
40112 echo "$as_me:$LINENO: result: no" >&5
40113echo "${ECHO_T}no" >&6
40114 LIBS="$LIBS -lm"
40115 # use different functions to avoid configure caching
40116 have_sin=0
40117 have_ceil=0
40118
40119for ac_func in sin
40120do
40121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40122echo "$as_me:$LINENO: checking for $ac_func" >&5
40123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40124if eval "test \"\${$as_ac_var+set}\" = set"; then
40125 echo $ECHO_N "(cached) $ECHO_C" >&6
40126else
40127 cat >conftest.$ac_ext <<_ACEOF
40128/* confdefs.h. */
40129_ACEOF
40130cat confdefs.h >>conftest.$ac_ext
40131cat >>conftest.$ac_ext <<_ACEOF
40132/* end confdefs.h. */
ac1cb8d3
VS
40133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40135#define $ac_func innocuous_$ac_func
40136
a848cd7e
SC
40137/* System header to define __stub macros and hopefully few prototypes,
40138 which can conflict with char $ac_func (); below.
40139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40141
a848cd7e
SC
40142#ifdef __STDC__
40143# include <limits.h>
40144#else
40145# include <assert.h>
40146#endif
ac1cb8d3
VS
40147
40148#undef $ac_func
40149
a848cd7e
SC
40150/* Override any gcc2 internal prototype to avoid an error. */
40151#ifdef __cplusplus
40152extern "C"
40153{
40154#endif
40155/* We use char because int might match the return type of a gcc2
40156 builtin and then its argument prototype would still apply. */
40157char $ac_func ();
40158/* The GNU C library defines this for functions which it implements
40159 to always fail with ENOSYS. Some functions are actually named
40160 something starting with __ and the normal name is an alias. */
40161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40162choke me
40163#else
40164char (*f) () = $ac_func;
40165#endif
40166#ifdef __cplusplus
40167}
40168#endif
40169
40170int
40171main ()
40172{
40173return f != $ac_func;
40174 ;
40175 return 0;
40176}
40177_ACEOF
40178rm -f conftest.$ac_objext conftest$ac_exeext
40179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40180 (eval $ac_link) 2>conftest.er1
a848cd7e 40181 ac_status=$?
ac1cb8d3
VS
40182 grep -v '^ *+' conftest.er1 >conftest.err
40183 rm -f conftest.er1
40184 cat conftest.err >&5
a848cd7e
SC
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); } &&
07158944 40187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189 (eval $ac_try) 2>&5
40190 ac_status=$?
40191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192 (exit $ac_status); }; } &&
40193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195 (eval $ac_try) 2>&5
40196 ac_status=$?
40197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198 (exit $ac_status); }; }; then
40199 eval "$as_ac_var=yes"
40200else
40201 echo "$as_me: failed program was:" >&5
40202sed 's/^/| /' conftest.$ac_ext >&5
40203
40204eval "$as_ac_var=no"
40205fi
ac1cb8d3
VS
40206rm -f conftest.err conftest.$ac_objext \
40207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40208fi
40209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40211if test `eval echo '${'$as_ac_var'}'` = yes; then
40212 cat >>confdefs.h <<_ACEOF
40213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40214_ACEOF
40215 have_sin=1
40216fi
40217done
40218
40219
40220for ac_func in ceil
40221do
40222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40223echo "$as_me:$LINENO: checking for $ac_func" >&5
40224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40225if eval "test \"\${$as_ac_var+set}\" = set"; then
40226 echo $ECHO_N "(cached) $ECHO_C" >&6
40227else
40228 cat >conftest.$ac_ext <<_ACEOF
40229/* confdefs.h. */
40230_ACEOF
40231cat confdefs.h >>conftest.$ac_ext
40232cat >>conftest.$ac_ext <<_ACEOF
40233/* end confdefs.h. */
ac1cb8d3
VS
40234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40236#define $ac_func innocuous_$ac_func
40237
a848cd7e
SC
40238/* System header to define __stub macros and hopefully few prototypes,
40239 which can conflict with char $ac_func (); below.
40240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40241 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40242
a848cd7e
SC
40243#ifdef __STDC__
40244# include <limits.h>
40245#else
40246# include <assert.h>
40247#endif
ac1cb8d3
VS
40248
40249#undef $ac_func
40250
a848cd7e
SC
40251/* Override any gcc2 internal prototype to avoid an error. */
40252#ifdef __cplusplus
40253extern "C"
40254{
40255#endif
40256/* We use char because int might match the return type of a gcc2
40257 builtin and then its argument prototype would still apply. */
40258char $ac_func ();
40259/* The GNU C library defines this for functions which it implements
40260 to always fail with ENOSYS. Some functions are actually named
40261 something starting with __ and the normal name is an alias. */
40262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40263choke me
40264#else
40265char (*f) () = $ac_func;
40266#endif
40267#ifdef __cplusplus
40268}
40269#endif
40270
40271int
40272main ()
40273{
40274return f != $ac_func;
40275 ;
40276 return 0;
40277}
40278_ACEOF
40279rm -f conftest.$ac_objext conftest$ac_exeext
40280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40281 (eval $ac_link) 2>conftest.er1
a848cd7e 40282 ac_status=$?
ac1cb8d3
VS
40283 grep -v '^ *+' conftest.er1 >conftest.err
40284 rm -f conftest.er1
40285 cat conftest.err >&5
a848cd7e
SC
40286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40287 (exit $ac_status); } &&
07158944 40288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40290 (eval $ac_try) 2>&5
40291 ac_status=$?
40292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); }; } &&
40294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40296 (eval $ac_try) 2>&5
40297 ac_status=$?
40298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299 (exit $ac_status); }; }; then
40300 eval "$as_ac_var=yes"
40301else
40302 echo "$as_me: failed program was:" >&5
40303sed 's/^/| /' conftest.$ac_ext >&5
40304
40305eval "$as_ac_var=no"
40306fi
ac1cb8d3
VS
40307rm -f conftest.err conftest.$ac_objext \
40308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40309fi
40310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40312if test `eval echo '${'$as_ac_var'}'` = yes; then
40313 cat >>confdefs.h <<_ACEOF
40314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40315_ACEOF
40316 have_ceil=1
40317fi
40318done
40319
40320 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40321echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40322 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40323 echo "$as_me:$LINENO: result: yes" >&5
40324echo "${ECHO_T}yes" >&6
40325 else
40326 echo "$as_me:$LINENO: result: no" >&5
40327echo "${ECHO_T}no" >&6
40328 # not sure we should warn the user, crash, etc.
40329 fi
40330fi
40331
40332if test "$wxUSE_GUI" = "yes"; then
40333
40334
8bce5cda
MW
40335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40336 dynamic erase event exec font image minimal mobile \
40337 mobile/wxedit mobile/styles propsize render \
40338 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40339
40340 if test "$wxUSE_MONOLITHIC" != "yes"; then
40341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40342 fi
0b78747f 40343 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40345 if test "$wxUSE_UNIVERSAL" != "yes"; then
40346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40347 fi
40348 fi
40349 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40351 fi
a848cd7e
SC
40352else
40353 SAMPLES_SUBDIRS="console"
40354fi
40355
40356
ceec2216 40357INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40358-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40359
40360if test "$GXX" = yes ; then
5294a27e
VZ
40361 CWARNINGS="-Wall"
40362 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40363 fi
40364
40365EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40366
0c3c69fc 40367CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40368CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40369CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40370
95986553
DE
40371if test "x$MWCC" = "xyes"; then
40372
40373 CC="$CC -cwd source -I-"
40374 CXX="$CXX -cwd source -I-"
40375fi
40376
a848cd7e 40377
0c3c69fc 40378LIBS=`echo $LIBS`
a848cd7e
SC
40379EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40380EXTRALIBS_XML="$EXPAT_LINK"
40381EXTRALIBS_HTML="$MSPACK_LINK"
40382EXTRALIBS_ODBC="$ODBC_LINK"
40383if test "$wxUSE_GUI" = "yes"; then
2e350179 40384 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40385fi
40386if test "$wxUSE_OPENGL" = "yes"; then
40387 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40388fi
40389
40390LDFLAGS="$LDFLAGS $PROFILE"
40391
40392if test "$wxUSE_GTK" = 1; then
40393 WXCONFIG_INCLUDE=
40394else
40395 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40396fi
40397
40398WXCONFIG_EXTRALIBS="$LIBS"
40399
40400if test "$wxUSE_REGEX" = "builtin" ; then
40401 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40402fi
40403if test "$wxUSE_EXPAT" = "builtin" ; then
40404 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40405fi
40406if test "$wxUSE_ODBC" = "builtin" ; then
40407 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40408fi
40409if test "$wxUSE_LIBTIFF" = "builtin" ; then
40410 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40411fi
40412if test "$wxUSE_LIBJPEG" = "builtin" ; then
40413 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40414fi
40415if test "$wxUSE_LIBPNG" = "builtin" ; then
40416 wxconfig_3rdparty="$wxconfig_3rdparty png"
40417fi
40418if test "$wxUSE_ZLIB" = "builtin" ; then
40419 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40420fi
40421if test "$wxUSE_ODBC" = "builtin" ; then
40422 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40423fi
40424
40425for i in $wxconfig_3rdparty ; do
ceec2216 40426 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40427done
40428
40429
40430if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40431 WXUNIV=1
40432else
40433 WXUNIV=0
40434fi
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444if test $wxUSE_MONOLITHIC = "yes" ; then
40445 MONOLITHIC=1
40446else
40447 MONOLITHIC=0
40448fi
40449
40450if test $wxUSE_PLUGINS = "yes" ; then
40451 USE_PLUGINS=1
40452else
40453 USE_PLUGINS=0
40454fi
40455
40456if test $wxUSE_ODBC != "no" ; then
40457 USE_ODBC=1
40458else
40459 USE_ODBC=0
40460fi
40461
16358932
VZ
40462if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40463 USE_QA=1
40464else
40465 USE_QA=0
40466fi
40467
a848cd7e
SC
40468if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40469 OFFICIAL_BUILD=1
40470else
40471 OFFICIAL_BUILD=0
40472fi
40473
40474
40475
40476
40477
40478
40479
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
ceec2216 40492
d1c38808 40493
a848cd7e
SC
40494
40495
40496TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40497
40498
40499
40500
40501
40502
40503
40504
4d4ff94c
VZ
40505case "$TOOLKIT" in
40506 GTK)
40507 TOOLKIT_USER="GTK+"
40508 if test "$WXGTK20" = 1; then
40509 TOOLKIT_USER="$TOOLKIT_USER 2"
40510 fi
9a8f0513 40511 ;;
4d4ff94c
VZ
40512
40513 *)
40514 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40515 ;;
4d4ff94c 40516esac
a848cd7e 40517
9a8f0513 40518
1e9e8aba
DE
40519
40520
a848cd7e
SC
40521 if test "x$BAKEFILE_HOST" = "x"; then
40522 BAKEFILE_HOST="${host}"
40523 fi
40524
40525 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40526
40527 if test -n "$ac_tool_prefix"; then
40528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40529set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40530echo "$as_me:$LINENO: checking for $ac_word" >&5
40531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40532if test "${ac_cv_prog_RANLIB+set}" = set; then
40533 echo $ECHO_N "(cached) $ECHO_C" >&6
40534else
40535 if test -n "$RANLIB"; then
40536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40537else
40538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40539for as_dir in $PATH
40540do
40541 IFS=$as_save_IFS
40542 test -z "$as_dir" && as_dir=.
40543 for ac_exec_ext in '' $ac_executable_extensions; do
40544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40547 break 2
40548 fi
40549done
40550done
40551
40552fi
40553fi
40554RANLIB=$ac_cv_prog_RANLIB
40555if test -n "$RANLIB"; then
40556 echo "$as_me:$LINENO: result: $RANLIB" >&5
40557echo "${ECHO_T}$RANLIB" >&6
40558else
40559 echo "$as_me:$LINENO: result: no" >&5
40560echo "${ECHO_T}no" >&6
40561fi
40562
40563fi
40564if test -z "$ac_cv_prog_RANLIB"; then
40565 ac_ct_RANLIB=$RANLIB
40566 # Extract the first word of "ranlib", so it can be a program name with args.
40567set dummy ranlib; ac_word=$2
40568echo "$as_me:$LINENO: checking for $ac_word" >&5
40569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40570if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40571 echo $ECHO_N "(cached) $ECHO_C" >&6
40572else
40573 if test -n "$ac_ct_RANLIB"; then
40574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40575else
40576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40577for as_dir in $PATH
40578do
40579 IFS=$as_save_IFS
40580 test -z "$as_dir" && as_dir=.
40581 for ac_exec_ext in '' $ac_executable_extensions; do
40582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40583 ac_cv_prog_ac_ct_RANLIB="ranlib"
40584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40585 break 2
40586 fi
40587done
40588done
40589
40590 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40591fi
40592fi
40593ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40594if test -n "$ac_ct_RANLIB"; then
40595 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40596echo "${ECHO_T}$ac_ct_RANLIB" >&6
40597else
40598 echo "$as_me:$LINENO: result: no" >&5
40599echo "${ECHO_T}no" >&6
40600fi
40601
40602 RANLIB=$ac_ct_RANLIB
40603else
40604 RANLIB="$ac_cv_prog_RANLIB"
40605fi
40606
40607 # Find a good install program. We prefer a C program (faster),
40608# so one script is as good as another. But avoid the broken or
40609# incompatible versions:
40610# SysV /etc/install, /usr/sbin/install
40611# SunOS /usr/etc/install
40612# IRIX /sbin/install
40613# AIX /bin/install
40614# AmigaOS /C/install, which installs bootblocks on floppy discs
40615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40616# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40618# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40619# ./install, which can be erroneously created by make from ./install.sh.
40620echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40621echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40622if test -z "$INSTALL"; then
40623if test "${ac_cv_path_install+set}" = set; then
40624 echo $ECHO_N "(cached) $ECHO_C" >&6
40625else
40626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40627for as_dir in $PATH
40628do
40629 IFS=$as_save_IFS
40630 test -z "$as_dir" && as_dir=.
40631 # Account for people who put trailing slashes in PATH elements.
40632case $as_dir/ in
40633 ./ | .// | /cC/* | \
40634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40635 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40636 /usr/ucb/* ) ;;
40637 *)
40638 # OSF1 and SCO ODT 3.0 have their own names for install.
40639 # Don't use installbsd from OSF since it installs stuff as root
40640 # by default.
40641 for ac_prog in ginstall scoinst install; do
40642 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40643 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40644 if test $ac_prog = install &&
40645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40646 # AIX install. It has an incompatible calling convention.
40647 :
40648 elif test $ac_prog = install &&
40649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40650 # program-specific install script used by HP pwplus--don't use.
40651 :
40652 else
40653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40654 break 3
40655 fi
40656 fi
a848cd7e
SC
40657 done
40658 done
40659 ;;
40660esac
40661done
40662
40663
40664fi
40665 if test "${ac_cv_path_install+set}" = set; then
40666 INSTALL=$ac_cv_path_install
40667 else
40668 # As a last resort, use the slow shell script. We don't cache a
40669 # path for INSTALL within a source directory, because that will
40670 # break other packages using the cache if that directory is
40671 # removed, or if the path is relative.
40672 INSTALL=$ac_install_sh
40673 fi
40674fi
40675echo "$as_me:$LINENO: result: $INSTALL" >&5
40676echo "${ECHO_T}$INSTALL" >&6
40677
40678# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40679# It thinks the first close brace ends the variable substitution.
40680test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40681
40682test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40683
40684test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40685
40686 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40687echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40688LN_S=$as_ln_s
40689if test "$LN_S" = "ln -s"; then
40690 echo "$as_me:$LINENO: result: yes" >&5
40691echo "${ECHO_T}yes" >&6
40692else
40693 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40694echo "${ECHO_T}no, using $LN_S" >&6
40695fi
40696
40697
40698 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40699echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40700set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40701if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40702 echo $ECHO_N "(cached) $ECHO_C" >&6
40703else
40704 cat >conftest.make <<\_ACEOF
40705all:
40706 @echo 'ac_maketemp="$(MAKE)"'
40707_ACEOF
40708# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40709eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40710if test -n "$ac_maketemp"; then
40711 eval ac_cv_prog_make_${ac_make}_set=yes
40712else
40713 eval ac_cv_prog_make_${ac_make}_set=no
40714fi
40715rm -f conftest.make
40716fi
40717if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40718 echo "$as_me:$LINENO: result: yes" >&5
40719echo "${ECHO_T}yes" >&6
40720 SET_MAKE=
40721else
40722 echo "$as_me:$LINENO: result: no" >&5
40723echo "${ECHO_T}no" >&6
40724 SET_MAKE="MAKE=${MAKE-make}"
40725fi
40726
40727
40728
40729 if test -n "$ac_tool_prefix"; then
40730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40731set dummy ${ac_tool_prefix}ar; ac_word=$2
40732echo "$as_me:$LINENO: checking for $ac_word" >&5
40733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40734if test "${ac_cv_prog_AR+set}" = set; then
40735 echo $ECHO_N "(cached) $ECHO_C" >&6
40736else
40737 if test -n "$AR"; then
40738 ac_cv_prog_AR="$AR" # Let the user override the test.
40739else
40740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40741for as_dir in $PATH
40742do
40743 IFS=$as_save_IFS
40744 test -z "$as_dir" && as_dir=.
40745 for ac_exec_ext in '' $ac_executable_extensions; do
40746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40747 ac_cv_prog_AR="${ac_tool_prefix}ar"
40748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40749 break 2
40750 fi
40751done
40752done
40753
40754fi
40755fi
40756AR=$ac_cv_prog_AR
40757if test -n "$AR"; then
40758 echo "$as_me:$LINENO: result: $AR" >&5
40759echo "${ECHO_T}$AR" >&6
40760else
40761 echo "$as_me:$LINENO: result: no" >&5
40762echo "${ECHO_T}no" >&6
40763fi
40764
40765fi
40766if test -z "$ac_cv_prog_AR"; then
40767 ac_ct_AR=$AR
40768 # Extract the first word of "ar", so it can be a program name with args.
40769set dummy ar; ac_word=$2
40770echo "$as_me:$LINENO: checking for $ac_word" >&5
40771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40772if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40773 echo $ECHO_N "(cached) $ECHO_C" >&6
40774else
40775 if test -n "$ac_ct_AR"; then
40776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40777else
40778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40779for as_dir in $PATH
40780do
40781 IFS=$as_save_IFS
40782 test -z "$as_dir" && as_dir=.
40783 for ac_exec_ext in '' $ac_executable_extensions; do
40784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40785 ac_cv_prog_ac_ct_AR="ar"
40786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40787 break 2
40788 fi
40789done
40790done
40791
40792 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40793fi
40794fi
40795ac_ct_AR=$ac_cv_prog_ac_ct_AR
40796if test -n "$ac_ct_AR"; then
40797 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40798echo "${ECHO_T}$ac_ct_AR" >&6
40799else
40800 echo "$as_me:$LINENO: result: no" >&5
40801echo "${ECHO_T}no" >&6
40802fi
40803
40804 AR=$ac_ct_AR
40805else
40806 AR="$ac_cv_prog_AR"
40807fi
40808
40809 if test -n "$ac_tool_prefix"; then
40810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40811set dummy ${ac_tool_prefix}strip; ac_word=$2
40812echo "$as_me:$LINENO: checking for $ac_word" >&5
40813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40814if test "${ac_cv_prog_STRIP+set}" = set; then
40815 echo $ECHO_N "(cached) $ECHO_C" >&6
40816else
40817 if test -n "$STRIP"; then
40818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40819else
40820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40821for as_dir in $PATH
40822do
40823 IFS=$as_save_IFS
40824 test -z "$as_dir" && as_dir=.
40825 for ac_exec_ext in '' $ac_executable_extensions; do
40826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40829 break 2
40830 fi
40831done
40832done
40833
40834fi
40835fi
40836STRIP=$ac_cv_prog_STRIP
40837if test -n "$STRIP"; then
40838 echo "$as_me:$LINENO: result: $STRIP" >&5
40839echo "${ECHO_T}$STRIP" >&6
40840else
40841 echo "$as_me:$LINENO: result: no" >&5
40842echo "${ECHO_T}no" >&6
40843fi
40844
40845fi
40846if test -z "$ac_cv_prog_STRIP"; then
40847 ac_ct_STRIP=$STRIP
40848 # Extract the first word of "strip", so it can be a program name with args.
40849set dummy strip; ac_word=$2
40850echo "$as_me:$LINENO: checking for $ac_word" >&5
40851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40852if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40853 echo $ECHO_N "(cached) $ECHO_C" >&6
40854else
40855 if test -n "$ac_ct_STRIP"; then
40856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40857else
40858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40859for as_dir in $PATH
40860do
40861 IFS=$as_save_IFS
40862 test -z "$as_dir" && as_dir=.
40863 for ac_exec_ext in '' $ac_executable_extensions; do
40864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40865 ac_cv_prog_ac_ct_STRIP="strip"
40866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40867 break 2
40868 fi
40869done
40870done
40871
40872 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40873fi
40874fi
40875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40876if test -n "$ac_ct_STRIP"; then
40877 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40878echo "${ECHO_T}$ac_ct_STRIP" >&6
40879else
40880 echo "$as_me:$LINENO: result: no" >&5
40881echo "${ECHO_T}no" >&6
40882fi
40883
40884 STRIP=$ac_ct_STRIP
40885else
40886 STRIP="$ac_cv_prog_STRIP"
40887fi
40888
40889 if test -n "$ac_tool_prefix"; then
40890 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40891set dummy ${ac_tool_prefix}nm; ac_word=$2
40892echo "$as_me:$LINENO: checking for $ac_word" >&5
40893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40894if test "${ac_cv_prog_NM+set}" = set; then
40895 echo $ECHO_N "(cached) $ECHO_C" >&6
40896else
40897 if test -n "$NM"; then
40898 ac_cv_prog_NM="$NM" # Let the user override the test.
40899else
40900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40901for as_dir in $PATH
40902do
40903 IFS=$as_save_IFS
40904 test -z "$as_dir" && as_dir=.
40905 for ac_exec_ext in '' $ac_executable_extensions; do
40906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40907 ac_cv_prog_NM="${ac_tool_prefix}nm"
40908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40909 break 2
40910 fi
40911done
40912done
40913
40914fi
40915fi
40916NM=$ac_cv_prog_NM
40917if test -n "$NM"; then
40918 echo "$as_me:$LINENO: result: $NM" >&5
40919echo "${ECHO_T}$NM" >&6
40920else
40921 echo "$as_me:$LINENO: result: no" >&5
40922echo "${ECHO_T}no" >&6
40923fi
40924
40925fi
40926if test -z "$ac_cv_prog_NM"; then
40927 ac_ct_NM=$NM
40928 # Extract the first word of "nm", so it can be a program name with args.
40929set dummy nm; ac_word=$2
40930echo "$as_me:$LINENO: checking for $ac_word" >&5
40931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40932if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40933 echo $ECHO_N "(cached) $ECHO_C" >&6
40934else
40935 if test -n "$ac_ct_NM"; then
40936 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40937else
40938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40939for as_dir in $PATH
40940do
40941 IFS=$as_save_IFS
40942 test -z "$as_dir" && as_dir=.
40943 for ac_exec_ext in '' $ac_executable_extensions; do
40944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40945 ac_cv_prog_ac_ct_NM="nm"
40946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40947 break 2
40948 fi
40949done
40950done
40951
40952 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40953fi
40954fi
40955ac_ct_NM=$ac_cv_prog_ac_ct_NM
40956if test -n "$ac_ct_NM"; then
40957 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40958echo "${ECHO_T}$ac_ct_NM" >&6
40959else
40960 echo "$as_me:$LINENO: result: no" >&5
40961echo "${ECHO_T}no" >&6
40962fi
40963
40964 NM=$ac_ct_NM
40965else
40966 NM="$ac_cv_prog_NM"
40967fi
40968
40969
40970 case ${BAKEFILE_HOST} in
40971 *-hp-hpux* )
1e9e8aba 40972 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40973 ;;
40974 *) INSTALL_DIR="$INSTALL -d"
40975 ;;
40976 esac
40977
40978
40979 LDFLAGS_GUI=
40980 case ${BAKEFILE_HOST} in
40981 *-*-cygwin* | *-*-mingw32* )
40982 LDFLAGS_GUI="-mwindows"
40983 esac
40984
40985
40986 fi
40987
40988 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40989echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40990if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40991 echo $ECHO_N "(cached) $ECHO_C" >&6
40992else
40993
40994 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
40995 egrep -s GNU > /dev/null); then
40996 bakefile_cv_prog_makeisgnu="yes"
40997 else
40998 bakefile_cv_prog_makeisgnu="no"
40999 fi
41000
41001fi
41002echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41003echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41004
41005 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41006 IF_GNU_MAKE=""
41007 else
41008 IF_GNU_MAKE="#"
41009 fi
41010
41011
41012
41013 PLATFORM_UNIX=0
41014 PLATFORM_WIN32=0
41015 PLATFORM_MSDOS=0
41016 PLATFORM_MAC=0
1e9e8aba 41017 PLATFORM_MACOS=0
a848cd7e
SC
41018 PLATFORM_MACOSX=0
41019 PLATFORM_OS2=0
1e9e8aba 41020 PLATFORM_BEOS=0
a848cd7e
SC
41021
41022 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41023 case "${BAKEFILE_HOST}" in
41024 *-*-cygwin* | *-*-mingw32* )
41025 PLATFORM_WIN32=1
41026 ;;
41027 *-pc-msdosdjgpp )
41028 PLATFORM_MSDOS=1
41029 ;;
41030 *-pc-os2_emx | *-pc-os2-emx )
41031 PLATFORM_OS2=1
41032 ;;
41033 powerpc-*-darwin* )
41034 PLATFORM_MAC=1
41035 PLATFORM_MACOSX=1
41036 ;;
1e9e8aba
DE
41037 *-*-beos* )
41038 PLATFORM_BEOS=1
41039 ;;
41040 powerpc-apple-macos* )
41041 PLATFORM_MAC=1
41042 PLATFORM_MACOS=1
41043 ;;
a848cd7e
SC
41044 * )
41045 PLATFORM_UNIX=1
41046 ;;
41047 esac
41048 else
41049 case "$BAKEFILE_FORCE_PLATFORM" in
41050 win32 )
41051 PLATFORM_WIN32=1
41052 ;;
41053 msdos )
41054 PLATFORM_MSDOS=1
41055 ;;
41056 os2 )
41057 PLATFORM_OS2=1
41058 ;;
41059 darwin )
41060 PLATFORM_MAC=1
41061 PLATFORM_MACOSX=1
41062 ;;
41063 unix )
41064 PLATFORM_UNIX=1
41065 ;;
1e9e8aba
DE
41066 beos )
41067 PLATFORM_BEOS=1
41068 ;;
a848cd7e
SC
41069 * )
41070 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41071echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41072 { (exit 1); exit 1; }; }
41073 ;;
41074 esac
41075 fi
41076
41077
41078
41079
41080
41081
41082
41083
41084
1e9e8aba
DE
41085
41086
a848cd7e
SC
41087 # Check whether --enable-omf or --disable-omf was given.
41088if test "${enable_omf+set}" = set; then
41089 enableval="$enable_omf"
41090 bk_os2_use_omf="$enableval"
41091fi;
41092
41093 case "${BAKEFILE_HOST}" in
41094 *-*-darwin* )
41095 CFLAGS="$CFLAGS -fno-common"
41096 CXXFLAGS="$CXXFLAGS -fno-common"
41097 ;;
41098
41099 *-pc-os2_emx | *-pc-os2-emx )
41100 if test "x$bk_os2_use_omf" = "xyes" ; then
41101 AR=emxomfar
41102 RANLIB=:
41103 LDFLAGS="-Zomf $LDFLAGS"
41104 CFLAGS="-Zomf $CFLAGS"
41105 CXXFLAGS="-Zomf $CXXFLAGS"
41106 OS2_LIBEXT="lib"
41107 else
41108 OS2_LIBEXT="a"
41109 fi
41110 ;;
1e9e8aba
DE
41111
41112 i*86-*-beos* )
41113 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41114 ;;
a848cd7e
SC
41115 esac
41116
41117
41118 SO_SUFFIX="so"
41119 SO_SUFFIX_MODULE="so"
41120 EXEEXT=""
41121 LIBPREFIX="lib"
41122 LIBEXT=".a"
41123 DLLPREFIX="lib"
41124 DLLPREFIX_MODULE=""
41125 DLLIMP_SUFFIX=""
41126
41127 case "${BAKEFILE_HOST}" in
41128 *-hp-hpux* )
41129 SO_SUFFIX="sl"
41130 SO_SUFFIX_MODULE="sl"
41131 ;;
41132 *-*-aix* )
41133 SO_SUFFIX="a"
41134 SO_SUFFIX_MODULE="a"
41135 ;;
41136 *-*-cygwin* | *-*-mingw32* )
41137 SO_SUFFIX="dll"
41138 SO_SUFFIX_MODULE="dll"
41139 DLLIMP_SUFFIX="dll.a"
41140 EXEEXT=".exe"
41141 DLLPREFIX=""
41142 ;;
41143 *-pc-msdosdjgpp )
41144 EXEEXT=".exe"
41145 DLLPREFIX=""
41146 ;;
41147 *-pc-os2_emx | *-pc-os2-emx )
41148 SO_SUFFIX="dll"
41149 SO_SUFFIX_MODULE="dll"
41150 DLLIMP_SUFFIX=$OS2_LIBEXT
41151 EXEEXT=".exe"
41152 DLLPREFIX=""
41153 LIBPREFIX=""
41154 LIBEXT=".$OS2_LIBEXT"
41155 ;;
41156 powerpc-*-darwin* )
41157 SO_SUFFIX="dylib"
41158 SO_SUFFIX_MODULE="bundle"
41159 ;;
41160 esac
41161
41162 if test "x$DLLIMP_SUFFIX" = "x" ; then
41163 DLLIMP_SUFFIX="$SO_SUFFIX"
41164 fi
41165
41166
41167
41168
41169
41170
41171
41172
41173
41174
41175
1e9e8aba
DE
41176 PIC_FLAG=""
41177 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41178 PIC_FLAG="-fPIC"
41179 fi
41180
1e9e8aba
DE
41181 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41182 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41183
a848cd7e
SC
41184 case "${BAKEFILE_HOST}" in
41185 *-hp-hpux* )
1e9e8aba 41186 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41187 LDFLAGS="$LDFLAGS -L/usr/lib"
41188
41189 SHARED_LD_CC="${CC} -b -o"
41190 SHARED_LD_CXX="${CXX} -b -o"
41191 PIC_FLAG="+Z"
41192 fi
41193 ;;
41194
41195 *-*-linux* )
41196 if test "x$GCC" != "xyes"; then
41197 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41198echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41199if test "${bakefile_cv_prog_icc+set}" = set; then
41200 echo $ECHO_N "(cached) $ECHO_C" >&6
41201else
41202
41203 cat >conftest.$ac_ext <<_ACEOF
41204/* confdefs.h. */
41205_ACEOF
41206cat confdefs.h >>conftest.$ac_ext
41207cat >>conftest.$ac_ext <<_ACEOF
41208/* end confdefs.h. */
41209
41210int
41211main ()
41212{
41213
41214 #ifndef __INTEL_COMPILER
41215 #error Not icc
41216 #endif
41217
41218 ;
41219 return 0;
41220}
41221_ACEOF
41222rm -f conftest.$ac_objext
41223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41224 (eval $ac_compile) 2>conftest.er1
a848cd7e 41225 ac_status=$?
ac1cb8d3
VS
41226 grep -v '^ *+' conftest.er1 >conftest.err
41227 rm -f conftest.er1
41228 cat conftest.err >&5
a848cd7e
SC
41229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230 (exit $ac_status); } &&
07158944 41231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41233 (eval $ac_try) 2>&5
41234 ac_status=$?
41235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236 (exit $ac_status); }; } &&
41237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41239 (eval $ac_try) 2>&5
41240 ac_status=$?
41241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41242 (exit $ac_status); }; }; then
41243 bakefile_cv_prog_icc=yes
41244else
41245 echo "$as_me: failed program was:" >&5
41246sed 's/^/| /' conftest.$ac_ext >&5
41247
41248bakefile_cv_prog_icc=no
41249
41250fi
ac1cb8d3 41251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41252
41253fi
41254echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41255echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41256 if test "$bakefile_cv_prog_icc" = "yes"; then
41257 PIC_FLAG="-KPIC"
41258 fi
41259 fi
41260 ;;
41261
41262 *-*-solaris2* )
41263 if test "x$GCC" != xyes ; then
41264 SHARED_LD_CC="${CC} -G -o"
41265 SHARED_LD_CXX="${CXX} -G -o"
41266 PIC_FLAG="-KPIC"
41267 fi
41268 ;;
41269
41270 *-*-darwin* )
41271
41272 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41273echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41274if test "${wx_cv_gcc31+set}" = set; then
41275 echo $ECHO_N "(cached) $ECHO_C" >&6
41276else
41277
41278 cat >conftest.$ac_ext <<_ACEOF
41279/* confdefs.h. */
41280_ACEOF
41281cat confdefs.h >>conftest.$ac_ext
41282cat >>conftest.$ac_ext <<_ACEOF
41283/* end confdefs.h. */
41284
41285int
41286main ()
41287{
41288
41289 #if (__GNUC__ < 3) || \
41290 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41291 #error old gcc
41292 #endif
41293
41294 ;
41295 return 0;
41296}
41297_ACEOF
41298rm -f conftest.$ac_objext
41299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41300 (eval $ac_compile) 2>conftest.er1
a848cd7e 41301 ac_status=$?
ac1cb8d3
VS
41302 grep -v '^ *+' conftest.er1 >conftest.err
41303 rm -f conftest.er1
41304 cat conftest.err >&5
a848cd7e
SC
41305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41306 (exit $ac_status); } &&
07158944 41307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41309 (eval $ac_try) 2>&5
41310 ac_status=$?
41311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312 (exit $ac_status); }; } &&
41313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41315 (eval $ac_try) 2>&5
41316 ac_status=$?
41317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41318 (exit $ac_status); }; }; then
41319
41320 wx_cv_gcc31=yes
41321
41322else
41323 echo "$as_me: failed program was:" >&5
41324sed 's/^/| /' conftest.$ac_ext >&5
41325
41326
41327 wx_cv_gcc31=no
41328
41329
41330fi
ac1cb8d3 41331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41332
41333fi
41334echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41335echo "${ECHO_T}$wx_cv_gcc31" >&6
41336 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41337
41338D='$'
41339cat <<EOF >shared-ld-sh
a848cd7e
SC
41340#!/bin/sh
41341#-----------------------------------------------------------------------------
41342#-- Name: distrib/mac/shared-ld-sh
41343#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41344#-- Author: Gilles Depeyrot
41345#-- Copyright: (c) 2002 Gilles Depeyrot
41346#-- Licence: any use permitted
41347#-----------------------------------------------------------------------------
41348
41349verbose=0
41350args=""
41351objects=""
41352linking_flag="-dynamiclib"
41353
473276a9
VS
41354while test ${D}# -gt 0; do
41355 case ${D}1 in
a848cd7e
SC
41356
41357 -v)
41358 verbose=1
41359 ;;
41360
41361 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41362 # collect these options and values
473276a9 41363 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41364 shift
41365 ;;
41366
41367 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41368 # collect these options
473276a9 41369 args="${D}{args} ${D}1"
a848cd7e
SC
41370 ;;
41371
41372 -dynamiclib|-bundle)
473276a9 41373 linking_flag="${D}1"
a848cd7e
SC
41374 ;;
41375
41376 -*)
473276a9 41377 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41378 exit 1
41379 ;;
41380
41381 *.o | *.a | *.dylib)
41382 # collect object files
473276a9 41383 objects="${D}{objects} ${D}1"
a848cd7e
SC
41384 ;;
41385
41386 *)
473276a9 41387 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41388 exit 1
41389 ;;
41390
41391 esac
41392 shift
41393done
41394
41395#
41396# Link one module containing all the others
41397#
473276a9
VS
41398if test ${D}{verbose} = 1; then
41399 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41400fi
473276a9
VS
41401c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41402status=${D}?
41403if test ${D}{status} != 0; then
41404 exit ${D}{status}
a848cd7e
SC
41405fi
41406
41407#
41408# Link the shared library from the single module created
41409#
473276a9
VS
41410if test ${D}{verbose} = 1; then
41411 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41412fi
473276a9
VS
41413c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41414status=${D}?
41415if test ${D}{status} != 0; then
41416 exit ${D}{status}
a848cd7e
SC
41417fi
41418
41419#
41420# Remove intermediate module
41421#
473276a9 41422rm -f master.${D}${D}.o
a848cd7e
SC
41423
41424exit 0
41425EOF
473276a9 41426
a848cd7e
SC
41427 chmod +x shared-ld-sh
41428
41429 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41430 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41431 SHARED_LD_CXX="$SHARED_LD_CC"
41432 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41433 else
41434 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41435 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41436 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41437 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41438 fi
41439
41440 PIC_FLAG="-dynamic -fPIC"
41441 ;;
41442
41443 *-*-aix* )
41444 if test "x$GCC" != "xyes"; then
41445 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41446set dummy makeC++SharedLib; ac_word=$2
41447echo "$as_me:$LINENO: checking for $ac_word" >&5
41448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41449if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41450 echo $ECHO_N "(cached) $ECHO_C" >&6
41451else
41452 if test -n "$AIX_CXX_LD"; then
41453 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41454else
41455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41456for as_dir in $PATH
41457do
41458 IFS=$as_save_IFS
41459 test -z "$as_dir" && as_dir=.
41460 for ac_exec_ext in '' $ac_executable_extensions; do
41461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41462 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41464 break 2
41465 fi
41466done
41467done
41468
41469 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41470fi
41471fi
41472AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41473if test -n "$AIX_CXX_LD"; then
41474 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41475echo "${ECHO_T}$AIX_CXX_LD" >&6
41476else
41477 echo "$as_me:$LINENO: result: no" >&5
41478echo "${ECHO_T}no" >&6
41479fi
41480
41481 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41482 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41483 fi
41484 ;;
41485
41486 *-*-beos* )
1e9e8aba
DE
41487 SHARED_LD_CC="${LD} -nostart -o"
41488 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41489 ;;
41490
41491 *-*-irix* )
41492 if test "x$GCC" != "xyes"; then
41493 PIC_FLAG="-KPIC"
41494 fi
41495 ;;
41496
41497 *-*-cygwin* | *-*-mingw32* )
41498 PIC_FLAG=""
1e9e8aba
DE
41499 SHARED_LD_CC="\$(CC) -shared -o"
41500 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41501 ;;
41502
41503 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41504 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41505 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41506 PIC_FLAG=""
473276a9
VS
41507
41508D='$'
41509cat <<EOF >dllar.sh
41510#!/bin/sh
41511#
41512# dllar - a tool to build both a .dll and an .a file
41513# from a set of object (.o) files for EMX/OS2.
41514#
41515# Written by Andrew Zabolotny, bit@freya.etu.ru
41516# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41517#
41518# This script will accept a set of files on the command line.
41519# All the public symbols from the .o files will be exported into
41520# a .DEF file, then linker will be run (through gcc) against them to
41521# build a shared library consisting of all given .o files. All libraries
41522# (.a) will be first decompressed into component .o files then act as
41523# described above. You can optionally give a description (-d "description")
41524# which will be put into .DLL. To see the list of accepted options (as well
41525# as command-line format) simply run this program without options. The .DLL
41526# is built to be imported by name (there is no guarantee that new versions
41527# of the library you build will have same ordinals for same symbols).
41528#
41529# dllar is free software; you can redistribute it and/or modify
41530# it under the terms of the GNU General Public License as published by
41531# the Free Software Foundation; either version 2, or (at your option)
41532# any later version.
41533#
41534# dllar is distributed in the hope that it will be useful,
41535# but WITHOUT ANY WARRANTY; without even the implied warranty of
41536# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41537# GNU General Public License for more details.
41538#
41539# You should have received a copy of the GNU General Public License
41540# along with dllar; see the file COPYING. If not, write to the Free
41541# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41542# 02111-1307, USA.
41543
41544# To successfuly run this program you will need:
41545# - Current drive should have LFN support (HPFS, ext2, network, etc)
41546# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41547# - gcc
41548# (used to build the .dll)
41549# - emxexp
41550# (used to create .def file from .o files)
41551# - emximp
41552# (used to create .a file from .def file)
41553# - GNU text utilites (cat, sort, uniq)
41554# used to process emxexp output
41555# - GNU file utilities (mv, rm)
41556# - GNU sed
41557# - lxlite (optional, see flag below)
41558# (used for general .dll cleanup)
41559#
41560
41561flag_USE_LXLITE=1;
41562
41563#
41564# helper functions
41565# basnam, variant of basename, which does _not_ remove the path, _iff_
41566# second argument (suffix to remove) is given
41567basnam(){
41568 case ${D}# in
41569 1)
1e9e8aba 41570 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41571 ;;
41572 2)
41573 echo ${D}1 | sed 's/'${D}2'${D}//'
41574 ;;
41575 *)
41576 echo "error in basnam ${D}*"
41577 exit 8
41578 ;;
41579 esac
41580}
41581
41582# Cleanup temporary files and output
41583CleanUp() {
41584 cd ${D}curDir
41585 for i in ${D}inputFiles ; do
41586 case ${D}i in
41587 *!)
41588 rm -rf \`basnam ${D}i !\`
41589 ;;
41590 *)
41591 ;;
41592 esac
41593 done
41594
41595 # Kill result in case of failure as there is just to many stupid make/nmake
41596 # things out there which doesn't do this.
1e9e8aba 41597 if [ ${D}# -eq 0 ]; then
473276a9
VS
41598 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41599 fi
41600}
41601
41602# Print usage and exit script with rc=1.
41603PrintHelp() {
b1d22ded
DE
41604 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41605 echo ' [-name-mangler-script script.sh]'
41606 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41607 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41608 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41609 echo ' [*.o] [*.a]'
473276a9
VS
41610 echo '*> "output_file" should have no extension.'
41611 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41612 echo ' The import library name is derived from this and is set to "name".a,'
41613 echo ' unless overridden by -import'
41614 echo '*> "importlib_name" should have no extension.'
41615 echo ' If it has the .o, or .a extension, it is automatically removed.'
41616 echo ' This name is used as the import library name and may be longer and'
41617 echo ' more descriptive than the DLL name which has to follow the old '
41618 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41619 echo '*> "script.sh may be given to override the output_file name by a'
41620 echo ' different name. It is mainly useful if the regular make process'
41621 echo ' of some package does not take into account OS/2 restriction of'
41622 echo ' DLL name lengths. It takes the importlib name as input and is'
41623 echo ' supposed to procude a shorter name as output. The script should'
41624 echo ' expect to get importlib_name without extension and should produce'
41625 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41626 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41627 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41628 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41629 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41630 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41631 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41632 echo ' If the last character of a symbol is "*", all symbols beginning'
41633 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41634 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41635 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41636 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41637 echo ' C runtime DLLs.'
b1d22ded 41638 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41639 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41640 echo ' unchanged to GCC at the end of command line.'
41641 echo '*> If you create a DLL from a library and you do not specify -o,'
41642 echo ' the basename for DLL and import library will be set to library name,'
41643 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41644 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41645 echo ' library will be renamed into gcc_s.a.'
41646 echo '--------'
41647 echo 'Example:'
41648 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41649 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41650 CleanUp
41651 exit 1
41652}
41653
41654# Execute a command.
41655# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41656# @Uses Whatever CleanUp() uses.
41657doCommand() {
41658 echo "${D}*"
41659 eval ${D}*
41660 rcCmd=${D}?
41661
1e9e8aba 41662 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41663 echo "command failed, exit code="${D}rcCmd
41664 CleanUp
41665 exit ${D}rcCmd
41666 fi
41667}
41668
41669# main routine
41670# setup globals
41671cmdLine=${D}*
41672outFile=""
41673outimpFile=""
41674inputFiles=""
b1d22ded 41675renameScript=""
473276a9
VS
41676description=""
41677CC=gcc.exe
41678CFLAGS="-s -Zcrtdll"
41679EXTRA_CFLAGS=""
41680EXPORT_BY_ORDINALS=0
41681exclude_symbols=""
41682library_flags=""
41683curDir=\`pwd\`
41684curDirS=curDir
41685case ${D}curDirS in
41686*/)
41687 ;;
41688*)
41689 curDirS=${D}{curDirS}"/"
41690 ;;
41691esac
41692# Parse commandline
41693libsToLink=0
b1d22ded 41694omfLinking=0
1e9e8aba 41695while [ ${D}1 ]; do
473276a9
VS
41696 case ${D}1 in
41697 -ord*)
41698 EXPORT_BY_ORDINALS=1;
41699 ;;
41700 -o*)
41701 shift
41702 outFile=${D}1
41703 ;;
41704 -i*)
41705 shift
41706 outimpFile=${D}1
41707 ;;
b1d22ded
DE
41708 -name-mangler-script)
41709 shift
41710 renameScript=${D}1
41711 ;;
473276a9
VS
41712 -d*)
41713 shift
41714 description=${D}1
41715 ;;
41716 -f*)
41717 shift
41718 CFLAGS=${D}1
41719 ;;
41720 -c*)
41721 shift
41722 CC=${D}1
41723 ;;
41724 -h*)
41725 PrintHelp
41726 ;;
41727 -ex*)
41728 shift
41729 exclude_symbols=${D}{exclude_symbols}${D}1" "
41730 ;;
41731 -libf*)
41732 shift
41733 library_flags=${D}{library_flags}${D}1" "
41734 ;;
41735 -nocrt*)
41736 CFLAGS="-s"
41737 ;;
41738 -nolxl*)
41739 flag_USE_LXLITE=0
41740 ;;
41741 -* | /*)
41742 case ${D}1 in
41743 -L* | -l*)
41744 libsToLink=1
41745 ;;
b1d22ded
DE
41746 -Zomf)
41747 omfLinking=1
41748 ;;
473276a9
VS
41749 *)
41750 ;;
41751 esac
41752 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41753 ;;
b1d22ded
DE
41754 *.dll)
41755 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41756 if [ ${D}omfLinking -eq 1 ]; then
41757 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41758 else
41759 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41760 fi
41761 ;;
473276a9
VS
41762 *)
41763 found=0;
1e9e8aba 41764 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41765 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41766 else
41767 for file in ${D}1 ; do
1e9e8aba 41768 if [ -f ${D}file ]; then
473276a9
VS
41769 inputFiles="${D}{inputFiles} ${D}file"
41770 found=1
41771 fi
41772 done
1e9e8aba 41773 if [ ${D}found -eq 0 ]; then
473276a9
VS
41774 echo "ERROR: No file(s) found: "${D}1
41775 exit 8
41776 fi
41777 fi
41778 ;;
41779 esac
41780 shift
41781done # iterate cmdline words
41782
41783#
1e9e8aba 41784if [ -z "${D}inputFiles" ]; then
473276a9
VS
41785 echo "dllar: no input files"
41786 PrintHelp
41787fi
41788
41789# Now extract all .o files from .a files
41790newInputFiles=""
41791for file in ${D}inputFiles ; do
41792 case ${D}file in
41793 *.a | *.lib)
41794 case ${D}file in
41795 *.a)
41796 suffix=".a"
41797 AR="ar"
41798 ;;
41799 *.lib)
41800 suffix=".lib"
41801 AR="emxomfar"
41802 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41803 ;;
41804 *)
41805 ;;
41806 esac
41807 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41808 mkdir ${D}dirname
1e9e8aba 41809 if [ ${D}? -ne 0 ]; then
473276a9
VS
41810 echo "Failed to create subdirectory ./${D}dirname"
41811 CleanUp
41812 exit 8;
41813 fi
41814 # Append '!' to indicate archive
41815 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41816 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41817 cd ${D}curDir
41818 found=0;
41819 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41820 if [ -f ${D}subfile ]; then
473276a9 41821 found=1
1e9e8aba 41822 if [ -s ${D}subfile ]; then
473276a9
VS
41823 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41824 newInputFiles="${D}newInputFiles ${D}subfile"
41825 fi
41826 fi
41827 done
1e9e8aba
DE
41828 if [ ${D}found -eq 0 ]; then
41829 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41830 fi
41831 ;;
41832 *)
41833 newInputFiles="${D}{newInputFiles} ${D}file"
41834 ;;
41835 esac
41836done
41837inputFiles="${D}newInputFiles"
41838
41839# Output filename(s).
41840do_backup=0;
1e9e8aba 41841if [ -z ${D}outFile ]; then
473276a9
VS
41842 do_backup=1;
41843 set outFile ${D}inputFiles; outFile=${D}2
41844fi
41845
41846# If it is an archive, remove the '!' and the '_%' suffixes
41847case ${D}outFile in
41848*_%!)
41849 outFile=\`basnam ${D}outFile _%!\`
41850 ;;
41851*)
41852 ;;
41853esac
41854case ${D}outFile in
41855*.dll)
41856 outFile=\`basnam ${D}outFile .dll\`
41857 ;;
41858*.DLL)
41859 outFile=\`basnam ${D}outFile .DLL\`
41860 ;;
41861*.o)
41862 outFile=\`basnam ${D}outFile .o\`
41863 ;;
41864*.obj)
41865 outFile=\`basnam ${D}outFile .obj\`
41866 ;;
41867*.a)
41868 outFile=\`basnam ${D}outFile .a\`
41869 ;;
41870*.lib)
41871 outFile=\`basnam ${D}outFile .lib\`
41872 ;;
41873*)
41874 ;;
41875esac
41876case ${D}outimpFile in
41877*.a)
41878 outimpFile=\`basnam ${D}outimpFile .a\`
41879 ;;
41880*.lib)
41881 outimpFile=\`basnam ${D}outimpFile .lib\`
41882 ;;
41883*)
41884 ;;
41885esac
1e9e8aba 41886if [ -z ${D}outimpFile ]; then
473276a9
VS
41887 outimpFile=${D}outFile
41888fi
41889defFile="${D}{outFile}.def"
41890arcFile="${D}{outimpFile}.a"
41891arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41892
41893#create ${D}dllFile as something matching 8.3 restrictions,
41894if [ -z ${D}renameScript ] ; then
41895 dllFile="${D}outFile"
41896else
41897 dllFile=\`${D}renameScript ${D}outimpFile\`
41898fi
473276a9 41899
1e9e8aba
DE
41900if [ ${D}do_backup -ne 0 ] ; then
41901 if [ -f ${D}arcFile ] ; then
473276a9
VS
41902 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41903 fi
1e9e8aba 41904 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41905 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41906 fi
41907fi
41908
41909# Extract public symbols from all the object files.
41910tmpdefFile=${D}{defFile}_%
41911rm -f ${D}tmpdefFile
41912for file in ${D}inputFiles ; do
41913 case ${D}file in
41914 *!)
41915 ;;
41916 *)
41917 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41918 ;;
41919 esac
41920done
41921
41922# Create the def file.
41923rm -f ${D}defFile
41924echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41925dllFile="${D}{dllFile}.dll"
41926if [ ! -z ${D}description ]; then
1e9e8aba 41927 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41928fi
41929echo "EXPORTS" >> ${D}defFile
41930
41931doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41932grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41933
41934# Checks if the export is ok or not.
41935for word in ${D}exclude_symbols; do
41936 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41937 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41938done
41939
41940
1e9e8aba
DE
41941if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41942 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41943 sed '
41944 N
41945 : loop
1e9e8aba 41946 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41947 t loop
41948 ' > ${D}{tmpdefFile}%
41949 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41950else
41951 rm -f ${D}{tmpdefFile}%
41952fi
41953cat ${D}tmpdefFile >> ${D}defFile
41954rm -f ${D}tmpdefFile
41955
41956# Do linking, create implib, and apply lxlite.
41957gccCmdl="";
41958for file in ${D}inputFiles ; do
41959 case ${D}file in
41960 *!)
41961 ;;
41962 *)
41963 gccCmdl="${D}gccCmdl ${D}file"
41964 ;;
41965 esac
41966done
41967doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41968touch "${D}{outFile}.dll"
41969
41970doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41971if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41972 add_flags="";
1e9e8aba 41973 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41974 add_flags="-ynd"
41975 fi
41976 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41977fi
41978doCommand "emxomf -s -l ${D}arcFile"
41979
41980# Successful exit.
41981CleanUp 1
41982exit 0
41983EOF
41984
41985 chmod +x dllar.sh
a848cd7e
SC
41986 ;;
41987
1e9e8aba 41988 powerpc-apple-macos* | \
a848cd7e
SC
41989 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41990 *-*-sunos4* | \
41991 *-*-osf* | \
41992 *-*-dgux5* | \
41993 *-*-sysv5* )
41994 ;;
41995
41996 *)
41997 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
41998echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
41999 { (exit 1); exit 1; }; }
42000 esac
42001
2057db16
VS
42002 if test "x$PIC_FLAG" != "x" ; then
42003 PIC_FLAG="$PIC_FLAG -DPIC"
42004 fi
42005
a848cd7e
SC
42006 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42007 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42008 fi
42009 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42010 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42011 fi
42012
42013
42014
42015
42016
42017
42018
42019
42020 USE_SOVERSION=0
42021 USE_SOVERLINUX=0
42022 USE_SOVERSOLARIS=0
42023 USE_SOSYMLINKS=0
42024 USE_MACVERSION=0
42025 SONAME_FLAG=
42026
42027 case "${BAKEFILE_HOST}" in
b1d22ded 42028 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42029 SONAME_FLAG="-Wl,-soname,"
42030 USE_SOVERSION=1
42031 USE_SOVERLINUX=1
42032 USE_SOSYMLINKS=1
42033 ;;
42034
a848cd7e
SC
42035 *-*-solaris2* )
42036 SONAME_FLAG="-h "
42037 USE_SOVERSION=1
42038 USE_SOVERSOLARIS=1
42039 USE_SOSYMLINKS=1
42040 ;;
42041
42042 *-*-darwin* )
42043 USE_MACVERSION=1
42044 USE_SOVERSION=1
42045 USE_SOSYMLINKS=1
42046 ;;
42047 esac
42048
42049
42050
42051
42052
42053
42054
42055
42056
42057 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42058echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42059 DEPS_TRACKING=0
42060
42061 if test "x$GCC" = "xyes"; then
42062 DEPSMODE=gcc
42063 DEPS_TRACKING=1
42064 case "${BAKEFILE_HOST}" in
42065 powerpc-*-darwin* )
42066 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42067 ;;
42068 * )
42069 DEPSFLAG_GCC="-MMD"
42070 ;;
42071 esac
42072 echo "$as_me:$LINENO: result: gcc" >&5
42073echo "${ECHO_T}gcc" >&6
b1d22ded 42074 elif test "x$MWCC" = "xyes"; then
81f90336 42075 DEPSMODE=mwcc
b1d22ded 42076 DEPS_TRACKING=1
81f90336 42077 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42078 echo "$as_me:$LINENO: result: mwcc" >&5
42079echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42080 else
42081 echo "$as_me:$LINENO: result: none" >&5
42082echo "${ECHO_T}none" >&6
42083 fi
42084
42085 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42086
42087D='$'
42088cat <<EOF >bk-deps
a848cd7e
SC
42089#!/bin/sh
42090
42091# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42092# script. It is used to track C/C++ files dependencies in portable way.
42093#
42094# Permission is given to use this file in any way.
42095
473276a9 42096DEPSMODE=${DEPSMODE}
a848cd7e 42097DEPSDIR=.deps
473276a9 42098DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42099DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42100
473276a9 42101mkdir -p ${D}DEPSDIR
a848cd7e 42102
473276a9
VS
42103if test ${D}DEPSMODE = gcc ; then
42104 ${D}* ${D}{DEPSFLAG_GCC}
42105 status=${D}?
42106 if test ${D}{status} != 0 ; then
42107 exit ${D}{status}
a848cd7e
SC
42108 fi
42109 # move created file to the location we want it in:
473276a9
VS
42110 while test ${D}# -gt 0; do
42111 case "${D}1" in
a848cd7e
SC
42112 -o )
42113 shift
473276a9 42114 objfile=${D}1
a848cd7e
SC
42115 ;;
42116 -* )
42117 ;;
42118 * )
473276a9 42119 srcfile=${D}1
a848cd7e
SC
42120 ;;
42121 esac
42122 shift
42123 done
1e9e8aba
DE
42124 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42125 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42126 if test -f ${D}depfile ; then
42127 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42128 rm -f ${D}depfile
a848cd7e 42129 else
1e9e8aba 42130 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42131 if test -f ${D}depfile ; then
42132 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42133 rm -f ${D}depfile
a848cd7e
SC
42134 fi
42135 fi
42136 exit 0
81f90336
MW
42137elif test ${D}DEPSMODE = mwcc ; then
42138 ${D}*
42139 status=${D}?
42140 if test ${D}{status} != 0 ; then
42141 exit ${D}{status}
42142 fi
42143 # Run mwcc again with -MM and redirect into the dep file we want
42144 # NOTE: We can't use shift here because we need ${D}* to be valid
42145 prevarg=
42146 for arg in ${D}* ; do
42147 if test "${D}prevarg" = "-o"; then
42148 objfile=${D}arg
42149 else
42150 case "${D}arg" in
42151 -* )
42152 ;;
42153 * )
42154 srcfile=${D}arg
42155 ;;
42156 esac
42157 fi
42158 prevarg="${D}arg"
42159 done
42160 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42161 exit 0
a848cd7e 42162else
473276a9
VS
42163 ${D}*
42164 exit ${D}?
a848cd7e
SC
42165fi
42166EOF
473276a9 42167
a848cd7e
SC
42168 chmod +x bk-deps
42169 fi
42170
42171
42172
42173
42174 RESCOMP=
42175 SETFILE=
42176
42177 case ${BAKEFILE_HOST} in
42178 *-*-cygwin* | *-*-mingw32* )
42179 if test "$build" != "$host" ; then
42180 RESCOMP=$host_alias-windres
42181 else
42182 # Extract the first word of "windres", so it can be a program name with args.
42183set dummy windres; ac_word=$2
42184echo "$as_me:$LINENO: checking for $ac_word" >&5
42185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42186if test "${ac_cv_prog_RESCOMP+set}" = set; then
42187 echo $ECHO_N "(cached) $ECHO_C" >&6
42188else
42189 if test -n "$RESCOMP"; then
42190 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42191else
42192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42193for as_dir in $PATH
42194do
42195 IFS=$as_save_IFS
42196 test -z "$as_dir" && as_dir=.
42197 for ac_exec_ext in '' $ac_executable_extensions; do
42198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42199 ac_cv_prog_RESCOMP="windres"
42200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42201 break 2
42202 fi
42203done
42204done
42205
42206 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42207fi
42208fi
42209RESCOMP=$ac_cv_prog_RESCOMP
42210if test -n "$RESCOMP"; then
42211 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42212echo "${ECHO_T}$RESCOMP" >&6
42213else
42214 echo "$as_me:$LINENO: result: no" >&5
42215echo "${ECHO_T}no" >&6
42216fi
42217
42218 fi
42219 ;;
42220
1e9e8aba 42221 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42222 # Extract the first word of "Rez", so it can be a program name with args.
42223set dummy Rez; ac_word=$2
42224echo "$as_me:$LINENO: checking for $ac_word" >&5
42225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42226if test "${ac_cv_prog_RESCOMP+set}" = set; then
42227 echo $ECHO_N "(cached) $ECHO_C" >&6
42228else
42229 if test -n "$RESCOMP"; then
42230 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42231else
42232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42233for as_dir in $PATH
42234do
42235 IFS=$as_save_IFS
42236 test -z "$as_dir" && as_dir=.
42237 for ac_exec_ext in '' $ac_executable_extensions; do
42238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42239 ac_cv_prog_RESCOMP="Rez"
42240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42241 break 2
42242 fi
42243done
42244done
42245
42246 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42247fi
42248fi
42249RESCOMP=$ac_cv_prog_RESCOMP
42250if test -n "$RESCOMP"; then
42251 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42252echo "${ECHO_T}$RESCOMP" >&6
42253else
42254 echo "$as_me:$LINENO: result: no" >&5
42255echo "${ECHO_T}no" >&6
42256fi
42257
42258 # Extract the first word of "SetFile", so it can be a program name with args.
42259set dummy SetFile; ac_word=$2
42260echo "$as_me:$LINENO: checking for $ac_word" >&5
42261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42262if test "${ac_cv_prog_SETFILE+set}" = set; then
42263 echo $ECHO_N "(cached) $ECHO_C" >&6
42264else
42265 if test -n "$SETFILE"; then
42266 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42267else
42268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42269for as_dir in $PATH
42270do
42271 IFS=$as_save_IFS
42272 test -z "$as_dir" && as_dir=.
42273 for ac_exec_ext in '' $ac_executable_extensions; do
42274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42275 ac_cv_prog_SETFILE="SetFile"
42276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42277 break 2
42278 fi
42279done
42280done
42281
42282 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42283fi
42284fi
42285SETFILE=$ac_cv_prog_SETFILE
42286if test -n "$SETFILE"; then
42287 echo "$as_me:$LINENO: result: $SETFILE" >&5
42288echo "${ECHO_T}$SETFILE" >&6
42289else
42290 echo "$as_me:$LINENO: result: no" >&5
42291echo "${ECHO_T}no" >&6
42292fi
42293
42294 ;;
42295 esac
42296
42297
42298
42299
42300
fbb7dfff 42301 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42302
dcc1b6ad 42303
fbb7dfff 42304BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42305
646b6ec1 42306
74b84332 42307
a848cd7e
SC
42308 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42309if test "${enable_precomp_headers+set}" = set; then
42310 enableval="$enable_precomp_headers"
42311 bk_use_pch="$enableval"
42312fi;
42313
42314 GCC_PCH=0
42315
42316 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42317 if test "x$GCC" = "xyes"; then
42318 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42319echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42320 cat >conftest.$ac_ext <<_ACEOF
42321/* confdefs.h. */
42322_ACEOF
42323cat confdefs.h >>conftest.$ac_ext
42324cat >>conftest.$ac_ext <<_ACEOF
42325/* end confdefs.h. */
42326
42327int
42328main ()
42329{
42330
42331 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42332 #error "no pch support"
42333 #endif
42334 #if (__GNUC__ < 3)
42335 #error "no pch support"
42336 #endif
42337 #if (__GNUC__ == 3) && \
42338 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42339 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42340 #error "no pch support"
42341 #endif
42342
42343 ;
42344 return 0;
42345}
42346_ACEOF
42347rm -f conftest.$ac_objext
42348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42349 (eval $ac_compile) 2>conftest.er1
a848cd7e 42350 ac_status=$?
ac1cb8d3
VS
42351 grep -v '^ *+' conftest.er1 >conftest.err
42352 rm -f conftest.er1
42353 cat conftest.err >&5
a848cd7e
SC
42354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); } &&
07158944 42356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42358 (eval $ac_try) 2>&5
42359 ac_status=$?
42360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361 (exit $ac_status); }; } &&
42362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42364 (eval $ac_try) 2>&5
42365 ac_status=$?
42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); }; }; then
42368
42369 echo "$as_me:$LINENO: result: yes" >&5
42370echo "${ECHO_T}yes" >&6
a848cd7e
SC
42371 GCC_PCH=1
42372
42373else
42374 echo "$as_me: failed program was:" >&5
42375sed 's/^/| /' conftest.$ac_ext >&5
42376
42377
42378 echo "$as_me:$LINENO: result: no" >&5
42379echo "${ECHO_T}no" >&6
42380
42381fi
ac1cb8d3 42382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42383 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42384
42385D='$'
42386cat <<EOF >bk-make-pch
a848cd7e
SC
42387#!/bin/sh
42388
42389# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42390# script. It is used to generated precompiled headers.
42391#
42392# Permission is given to use this file in any way.
42393
1e9e8aba
DE
42394outfile="${D}{1}"
42395header="${D}{2}"
a848cd7e
SC
42396shift
42397shift
42398
42399compiler=
42400headerfile=
1e9e8aba
DE
42401while test ${D}{#} -gt 0; do
42402 case "${D}{1}" in
a848cd7e 42403 -I* )
1e9e8aba
DE
42404 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42405 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42406 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42407 fi
42408 ;;
42409 esac
1e9e8aba 42410 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42411 shift
42412done
42413
1e9e8aba
DE
42414if test "x${D}{headerfile}" = "x" ; then
42415 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42416else
1e9e8aba
DE
42417 if test -f ${D}{outfile} ; then
42418 rm -f ${D}{outfile}
a848cd7e 42419 else
1e9e8aba 42420 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42421 fi
1e9e8aba 42422 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42423 mkdir -p .deps
42424 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42425 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42426 exit ${D}{?}
a848cd7e
SC
42427fi
42428EOF
1e9e8aba 42429
a848cd7e
SC
42430 chmod +x bk-make-pch
42431 fi
42432 fi
42433 fi
42434
42435
42436
a848cd7e
SC
42437 COND_BUILD_DEBUG="#"
42438 if test "x$BUILD" = "xdebug" ; then
42439 COND_BUILD_DEBUG=""
42440 fi
42441
42442 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42443 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42444 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42445 fi
42446
42447 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42448 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42449 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42450 fi
42451
42452 COND_BUILD_DEBUG_UNICODE_0="#"
42453 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42454 COND_BUILD_DEBUG_UNICODE_0=""
42455 fi
42456
42457 COND_BUILD_DEBUG_UNICODE_1="#"
42458 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42459 COND_BUILD_DEBUG_UNICODE_1=""
42460 fi
42461
42462 COND_BUILD_RELEASE="#"
42463 if test "x$BUILD" = "xrelease" ; then
42464 COND_BUILD_RELEASE=""
42465 fi
42466
42467 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42468 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42469 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42470 fi
42471
42472 COND_BUILD_RELEASE_UNICODE_0="#"
42473 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42474 COND_BUILD_RELEASE_UNICODE_0=""
42475 fi
42476
42477 COND_BUILD_RELEASE_UNICODE_1="#"
42478 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42479 COND_BUILD_RELEASE_UNICODE_1=""
42480 fi
42481
42482 COND_DEBUG_FLAG_1="#"
42483 if test "x$DEBUG_FLAG" = "x1" ; then
42484 COND_DEBUG_FLAG_1=""
42485 fi
42486
42487 COND_DEBUG_INFO_0="#"
42488 if test "x$DEBUG_INFO" = "x0" ; then
42489 COND_DEBUG_INFO_0=""
42490 fi
42491
42492 COND_DEBUG_INFO_1="#"
42493 if test "x$DEBUG_INFO" = "x1" ; then
42494 COND_DEBUG_INFO_1=""
42495 fi
42496
42497 COND_DEPS_TRACKING_0="#"
42498 if test "x$DEPS_TRACKING" = "x0" ; then
42499 COND_DEPS_TRACKING_0=""
42500 fi
42501
42502 COND_DEPS_TRACKING_1="#"
42503 if test "x$DEPS_TRACKING" = "x1" ; then
42504 COND_DEPS_TRACKING_1=""
42505 fi
42506
42507 COND_GCC_PCH_1="#"
42508 if test "x$GCC_PCH" = "x1" ; then
42509 COND_GCC_PCH_1=""
42510 fi
42511
42512 COND_MONOLITHIC_0="#"
42513 if test "x$MONOLITHIC" = "x0" ; then
42514 COND_MONOLITHIC_0=""
42515 fi
42516
42517 COND_MONOLITHIC_0_SHARED_0="#"
42518 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42519 COND_MONOLITHIC_0_SHARED_0=""
42520 fi
42521
42522 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42523 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42524 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42525 fi
42526
90970d69
DE
42527 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42528 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42529 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42530 fi
42531
a848cd7e
SC
42532 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42533 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42534 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42535 fi
42536
6671c68b
VZ
42537 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42538 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42539 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42540 fi
42541
a848cd7e
SC
42542 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42543 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42544 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42545 fi
42546
ceec2216
RL
42547 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42548 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42549 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42550 fi
42551
a848cd7e
SC
42552 COND_MONOLITHIC_0_SHARED_1="#"
42553 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42554 COND_MONOLITHIC_0_SHARED_1=""
42555 fi
42556
42557 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42558 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42559 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42560 fi
42561
90970d69
DE
42562 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42563 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42564 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42565 fi
42566
a848cd7e
SC
42567 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42568 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42569 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42570 fi
42571
6671c68b
VZ
42572 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42573 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42574 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42575 fi
42576
a848cd7e
SC
42577 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42578 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42579 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42580 fi
42581
ceec2216
RL
42582 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42583 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42584 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42585 fi
42586
a848cd7e
SC
42587 COND_MONOLITHIC_0_USE_ODBC_1="#"
42588 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42589 COND_MONOLITHIC_0_USE_ODBC_1=""
42590 fi
42591
42592 COND_MONOLITHIC_1="#"
42593 if test "x$MONOLITHIC" = "x1" ; then
42594 COND_MONOLITHIC_1=""
42595 fi
42596
42597 COND_MONOLITHIC_1_SHARED_0="#"
42598 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42599 COND_MONOLITHIC_1_SHARED_0=""
42600 fi
42601
42602 COND_MONOLITHIC_1_SHARED_1="#"
42603 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42604 COND_MONOLITHIC_1_SHARED_1=""
42605 fi
42606
42607 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42608 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42609 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42610 fi
42611
42612 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42613 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42614 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42615 fi
42616
42617 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42618 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42619 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42620 fi
42621
42622 COND_PLATFORM_MACOSX_1="#"
42623 if test "x$PLATFORM_MACOSX" = "x1" ; then
42624 COND_PLATFORM_MACOSX_1=""
42625 fi
42626
a30f955f
VS
42627 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42628 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42629 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42630 fi
42631
a848cd7e
SC
42632 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42633 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42634 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42635 fi
42636
42637 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42638 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42639 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42640 fi
42641
42642 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42643 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42644 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42645 fi
42646
fc480dc1
DE
42647 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42648 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42649 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42650 fi
42651
1e9e8aba
DE
42652 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42653 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42654 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42655 fi
42656
ebee3cd0
VS
42657 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42658 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42659 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42660 fi
42661
42662 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42663 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42664 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42665 fi
42666
a848cd7e
SC
42667 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42668 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42669 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42670 fi
42671
42672 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42673 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42674 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42675 fi
42676
b48a2016
DE
42677 COND_PLATFORM_MACOS_1="#"
42678 if test "x$PLATFORM_MACOS" = "x1" ; then
42679 COND_PLATFORM_MACOS_1=""
42680 fi
42681
a848cd7e
SC
42682 COND_PLATFORM_MAC_1="#"
42683 if test "x$PLATFORM_MAC" = "x1" ; then
42684 COND_PLATFORM_MAC_1=""
42685 fi
42686
42687 COND_PLATFORM_OS2_1="#"
42688 if test "x$PLATFORM_OS2" = "x1" ; then
42689 COND_PLATFORM_OS2_1=""
42690 fi
42691
42692 COND_PLATFORM_UNIX_0="#"
42693 if test "x$PLATFORM_UNIX" = "x0" ; then
42694 COND_PLATFORM_UNIX_0=""
42695 fi
42696
42697 COND_PLATFORM_UNIX_1="#"
42698 if test "x$PLATFORM_UNIX" = "x1" ; then
42699 COND_PLATFORM_UNIX_1=""
42700 fi
42701
42702 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42703 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42704 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42705 fi
42706
42707 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42708 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42709 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42710 fi
42711
42712 COND_PLATFORM_WIN32_0="#"
42713 if test "x$PLATFORM_WIN32" = "x0" ; then
42714 COND_PLATFORM_WIN32_0=""
42715 fi
42716
42717 COND_PLATFORM_WIN32_1="#"
42718 if test "x$PLATFORM_WIN32" = "x1" ; then
42719 COND_PLATFORM_WIN32_1=""
42720 fi
42721
42722 COND_SHARED_0="#"
42723 if test "x$SHARED" = "x0" ; then
42724 COND_SHARED_0=""
42725 fi
42726
ceec2216
RL
42727 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42728 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42729 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42730 fi
42731
42732 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42733 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42734 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42735 fi
42736
42737 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42738 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42739 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42740 fi
42741
a848cd7e
SC
42742 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42743 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42744 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42745 fi
42746
42747 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42748 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42749 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42750 fi
42751
42752 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42753 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42754 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42755 fi
42756
42757 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42758 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42759 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42760 fi
42761
42762 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42763 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42764 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42765 fi
42766
42767 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42768 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42769 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42770 fi
42771
42772 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42773 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42774 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42775 fi
42776
42777 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42778 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42779 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42780 fi
42781
42782 COND_SHARED_1="#"
42783 if test "x$SHARED" = "x1" ; then
42784 COND_SHARED_1=""
42785 fi
42786
42787 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42788 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42789 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42790 fi
42791
a30f955f
VS
42792 COND_TOOLKIT_="#"
42793 if test "x$TOOLKIT" = "x" ; then
42794 COND_TOOLKIT_=""
42795 fi
42796
a848cd7e
SC
42797 COND_TOOLKIT_COCOA="#"
42798 if test "x$TOOLKIT" = "xCOCOA" ; then
42799 COND_TOOLKIT_COCOA=""
42800 fi
42801
a49baeab
DE
42802 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42803 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42804 COND_TOOLKIT_COCOA_USE_GUI_1=""
42805 fi
42806
a848cd7e
SC
42807 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42808 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42809 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42810 fi
42811
42812 COND_TOOLKIT_GTK="#"
42813 if test "x$TOOLKIT" = "xGTK" ; then
42814 COND_TOOLKIT_GTK=""
42815 fi
42816
42817 COND_TOOLKIT_GTK_USE_GUI_1="#"
42818 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42819 COND_TOOLKIT_GTK_USE_GUI_1=""
42820 fi
42821
42822 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42823 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42824 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42825 fi
42826
42827 COND_TOOLKIT_MAC="#"
42828 if test "x$TOOLKIT" = "xMAC" ; then
42829 COND_TOOLKIT_MAC=""
42830 fi
42831
42832 COND_TOOLKIT_MAC_USE_GUI_1="#"
42833 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42834 COND_TOOLKIT_MAC_USE_GUI_1=""
42835 fi
42836
42837 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42838 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42839 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42840 fi
42841
42842 COND_TOOLKIT_MGL="#"
42843 if test "x$TOOLKIT" = "xMGL" ; then
42844 COND_TOOLKIT_MGL=""
42845 fi
42846
42847 COND_TOOLKIT_MGL_USE_GUI_1="#"
42848 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42849 COND_TOOLKIT_MGL_USE_GUI_1=""
42850 fi
42851
42852 COND_TOOLKIT_MOTIF="#"
42853 if test "x$TOOLKIT" = "xMOTIF" ; then
42854 COND_TOOLKIT_MOTIF=""
42855 fi
42856
42857 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42858 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42859 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42860 fi
42861
42862 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42863 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42864 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42865 fi
42866
42867 COND_TOOLKIT_MSW="#"
42868 if test "x$TOOLKIT" = "xMSW" ; then
42869 COND_TOOLKIT_MSW=""
42870 fi
42871
42872 COND_TOOLKIT_MSW_USE_GUI_1="#"
42873 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42874 COND_TOOLKIT_MSW_USE_GUI_1=""
42875 fi
42876
42877 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42878 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42879 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42880 fi
42881
42882 COND_TOOLKIT_PM="#"
42883 if test "x$TOOLKIT" = "xPM" ; then
42884 COND_TOOLKIT_PM=""
42885 fi
42886
42887 COND_TOOLKIT_PM_USE_GUI_1="#"
42888 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42889 COND_TOOLKIT_PM_USE_GUI_1=""
42890 fi
42891
42892 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42893 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42894 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42895 fi
42896
3fd9c298
DE
42897 COND_TOOLKIT_WINCE="#"
42898 if test "x$TOOLKIT" = "xWINCE" ; then
42899 COND_TOOLKIT_WINCE=""
42900 fi
42901
42902 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42903 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42904 COND_TOOLKIT_WINCE_USE_GUI_1=""
42905 fi
42906
42907 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42908 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42909 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42910 fi
42911
a848cd7e
SC
42912 COND_TOOLKIT_X11="#"
42913 if test "x$TOOLKIT" = "xX11" ; then
42914 COND_TOOLKIT_X11=""
42915 fi
42916
42917 COND_TOOLKIT_X11_USE_GUI_1="#"
42918 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42919 COND_TOOLKIT_X11_USE_GUI_1=""
42920 fi
42921
42922 COND_UNICODE_1="#"
42923 if test "x$UNICODE" = "x1" ; then
42924 COND_UNICODE_1=""
42925 fi
42926
42927 COND_USE_EXCEPTIONS_0="#"
42928 if test "x$USE_EXCEPTIONS" = "x0" ; then
42929 COND_USE_EXCEPTIONS_0=""
42930 fi
42931
42932 COND_USE_EXCEPTIONS_1="#"
42933 if test "x$USE_EXCEPTIONS" = "x1" ; then
42934 COND_USE_EXCEPTIONS_1=""
42935 fi
42936
42937 COND_USE_GUI_0="#"
42938 if test "x$USE_GUI" = "x0" ; then
42939 COND_USE_GUI_0=""
42940 fi
42941
42942 COND_USE_GUI_1="#"
42943 if test "x$USE_GUI" = "x1" ; then
42944 COND_USE_GUI_1=""
42945 fi
42946
42947 COND_USE_GUI_1_WXUNIV_0="#"
42948 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42949 COND_USE_GUI_1_WXUNIV_0=""
42950 fi
42951
42952 COND_USE_GUI_1_WXUNIV_1="#"
42953 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42954 COND_USE_GUI_1_WXUNIV_1=""
42955 fi
42956
42957 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42958 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42959 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42960 fi
42961
42962 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42963 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42964 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42965 fi
42966
42967 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42968 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42969 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42970 fi
42971
ceec2216
RL
42972 COND_USE_ODBC_1="#"
42973 if test "x$USE_ODBC" = "x1" ; then
42974 COND_USE_ODBC_1=""
42975 fi
42976
ffa0583f
RL
42977 COND_USE_OPENGL_1="#"
42978 if test "x$USE_OPENGL" = "x1" ; then
42979 COND_USE_OPENGL_1=""
42980 fi
42981
a848cd7e
SC
42982 COND_USE_PLUGINS_0="#"
42983 if test "x$USE_PLUGINS" = "x0" ; then
42984 COND_USE_PLUGINS_0=""
42985 fi
42986
0b78747f
MW
42987 COND_USE_RTTI_0="#"
42988 if test "x$USE_RTTI" = "x0" ; then
42989 COND_USE_RTTI_0=""
42990 fi
42991
42992 COND_USE_RTTI_1="#"
42993 if test "x$USE_RTTI" = "x1" ; then
42994 COND_USE_RTTI_1=""
42995 fi
42996
a848cd7e
SC
42997 COND_USE_SOSYMLINKS_1="#"
42998 if test "x$USE_SOSYMLINKS" = "x1" ; then
42999 COND_USE_SOSYMLINKS_1=""
43000 fi
43001
43002 COND_USE_SOVERLINUX_1="#"
43003 if test "x$USE_SOVERLINUX" = "x1" ; then
43004 COND_USE_SOVERLINUX_1=""
43005 fi
43006
43007 COND_USE_SOVERSION_0="#"
43008 if test "x$USE_SOVERSION" = "x0" ; then
43009 COND_USE_SOVERSION_0=""
43010 fi
43011
43012 COND_USE_SOVERSOLARIS_1="#"
43013 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43014 COND_USE_SOVERSOLARIS_1=""
43015 fi
43016
0b78747f
MW
43017 COND_USE_THREADS_0="#"
43018 if test "x$USE_THREADS" = "x0" ; then
43019 COND_USE_THREADS_0=""
43020 fi
43021
43022 COND_USE_THREADS_1="#"
43023 if test "x$USE_THREADS" = "x1" ; then
43024 COND_USE_THREADS_1=""
43025 fi
43026
a13a7f89
RL
43027 COND_USE_XRC_1="#"
43028 if test "x$USE_XRC" = "x1" ; then
43029 COND_USE_XRC_1=""
43030 fi
43031
a848cd7e
SC
43032 COND_WITH_PLUGIN_SDL_1="#"
43033 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43034 COND_WITH_PLUGIN_SDL_1=""
43035 fi
43036
1e6eb025
VZ
43037 COND_WXUNIV_0="#"
43038 if test "x$WXUNIV" = "x0" ; then
43039 COND_WXUNIV_0=""
43040 fi
43041
a848cd7e
SC
43042 COND_WXUNIV_1="#"
43043 if test "x$WXUNIV" = "x1" ; then
43044 COND_WXUNIV_1=""
43045 fi
43046
43047 COND_WXUSE_EXPAT_BUILTIN="#"
43048 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43049 COND_WXUSE_EXPAT_BUILTIN=""
43050 fi
43051
43052 COND_WXUSE_LIBJPEG_BUILTIN="#"
43053 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43054 COND_WXUSE_LIBJPEG_BUILTIN=""
43055 fi
43056
43057 COND_WXUSE_LIBPNG_BUILTIN="#"
43058 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43059 COND_WXUSE_LIBPNG_BUILTIN=""
43060 fi
43061
43062 COND_WXUSE_LIBTIFF_BUILTIN="#"
43063 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43064 COND_WXUSE_LIBTIFF_BUILTIN=""
43065 fi
43066
43067 COND_WXUSE_ODBC_BUILTIN="#"
43068 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43069 COND_WXUSE_ODBC_BUILTIN=""
43070 fi
43071
43072 COND_WXUSE_REGEX_BUILTIN="#"
43073 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43074 COND_WXUSE_REGEX_BUILTIN=""
43075 fi
43076
43077 COND_WXUSE_ZLIB_BUILTIN="#"
43078 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43079 COND_WXUSE_ZLIB_BUILTIN=""
43080 fi
43081
43082
43083
2057db16
VS
43084 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43085 { { 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
43086echo "$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;}
43087 { (exit 1); exit 1; }; }
43088 fi
43089
a848cd7e 43090
ceec2216
RL
43091if test "$wxUSE_SHARED" = "yes"; then
43092
43093 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43094 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43095
5b674b9d
DE
43096 case "${host}" in
43097 *-pc-os2_emx | *-pc-os2-emx )
43098 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43099 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43100 cp -p ${srcdir}/src/os2/dllnames.sh .
43101 cp -p ${srcdir}/src/os2/dllar.sh .
43102 ;;
43103 esac
ceec2216
RL
43104else
43105
43106 EXE_LINKER="$CXX -o"
43107
43108fi
a848cd7e 43109
74b84332 43110GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43111PCH_FLAGS=""
43112if test $GCC_PCH = 1 ; then
43113 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43114 PCH_FLAGS="-DWX_PRECOMP"
43115else
a848cd7e
SC
43116 case "${host}" in
43117 powerpc-*-darwin* )
74b84332 43118 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43119 ;;
bea8e651 43120 *-*-mingw32* )
1f344abf
VS
43121 if test "$wxUSE_STL" = "yes" -o \
43122 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43123 "$wxUSE_NO_RTTI" != "yes"; then
43124 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43125echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43126 cat >conftest.$ac_ext <<_ACEOF
43127/* confdefs.h. */
43128_ACEOF
43129cat confdefs.h >>conftest.$ac_ext
43130cat >>conftest.$ac_ext <<_ACEOF
43131/* end confdefs.h. */
43132
3314e67b
RR
43133int
43134main ()
43135{
43136#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43137 #error "Not GCC 3.2 or greater"
43138 #endif
43139
43140 ;
43141 return 0;
43142}
43143_ACEOF
43144rm -f conftest.$ac_objext
43145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43146 (eval $ac_compile) 2>conftest.er1
43147 ac_status=$?
43148 grep -v '^ *+' conftest.er1 >conftest.err
43149 rm -f conftest.er1
43150 cat conftest.err >&5
43151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); } &&
07158944 43153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43155 (eval $ac_try) 2>&5
43156 ac_status=$?
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); }; } &&
43159 { ac_try='test -s conftest.$ac_objext'
43160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43161 (eval $ac_try) 2>&5
43162 ac_status=$?
43163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43164 (exit $ac_status); }; }; then
43165 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43166 echo "$as_me:$LINENO: result: yes" >&5
43167echo "${ECHO_T}yes" >&6
43168else
43169 echo "$as_me: failed program was:" >&5
43170sed 's/^/| /' conftest.$ac_ext >&5
43171
43172echo "$as_me:$LINENO: result: no" >&5
43173echo "${ECHO_T}no" >&6
43174fi
43175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43176 fi
43177 ;;
43178 *-pc-os2_emx | *-pc-os2-emx )
43179 if test "$wxUSE_STL" = "yes"; then
43180 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43181echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43182 cat >conftest.$ac_ext <<_ACEOF
43183/* confdefs.h. */
43184_ACEOF
43185cat confdefs.h >>conftest.$ac_ext
43186cat >>conftest.$ac_ext <<_ACEOF
43187/* end confdefs.h. */
43188
bea8e651
MB
43189int
43190main ()
43191{
1f344abf 43192#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43193 #error "Not GCC 3.2 or greater"
43194 #endif
43195
43196 ;
43197 return 0;
43198}
43199_ACEOF
43200rm -f conftest.$ac_objext
43201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43202 (eval $ac_compile) 2>conftest.er1
bea8e651 43203 ac_status=$?
ac1cb8d3
VS
43204 grep -v '^ *+' conftest.er1 >conftest.err
43205 rm -f conftest.er1
43206 cat conftest.err >&5
bea8e651
MB
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); } &&
07158944 43209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43212 ac_status=$?
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; } &&
43215 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43217 (eval $ac_try) 2>&5
43218 ac_status=$?
43219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43220 (exit $ac_status); }; }; then
74b84332 43221 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43222 echo "$as_me:$LINENO: result: yes" >&5
43223echo "${ECHO_T}yes" >&6
43224else
43225 echo "$as_me: failed program was:" >&5
43226sed 's/^/| /' conftest.$ac_ext >&5
43227
43228echo "$as_me:$LINENO: result: no" >&5
43229echo "${ECHO_T}no" >&6
43230fi
ac1cb8d3 43231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43232 fi
43233 ;;
a848cd7e
SC
43234 esac
43235fi
d2083416 43236CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43237
43238
43239SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43240
43241
43242
43243
43244
43245
43246
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267
43268
43269
43270
43271
43272
43273
43274
43275
43276
43277
43278
43279
43280
43281
a848cd7e
SC
43282
43283
43284
43285
43286
43287
43288
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
74b84332 43300
a848cd7e
SC
43301
43302
43303echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43304echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43305set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43306if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43307 echo $ECHO_N "(cached) $ECHO_C" >&6
43308else
43309 cat >conftest.make <<\_ACEOF
43310all:
43311 @echo 'ac_maketemp="$(MAKE)"'
43312_ACEOF
43313# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43314eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43315if test -n "$ac_maketemp"; then
43316 eval ac_cv_prog_make_${ac_make}_set=yes
43317else
43318 eval ac_cv_prog_make_${ac_make}_set=no
43319fi
43320rm -f conftest.make
43321fi
43322if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43323 echo "$as_me:$LINENO: result: yes" >&5
43324echo "${ECHO_T}yes" >&6
43325 SET_MAKE=
43326else
43327 echo "$as_me:$LINENO: result: no" >&5
43328echo "${ECHO_T}no" >&6
43329 SET_MAKE="MAKE=${MAKE-make}"
43330fi
43331
43332
a848cd7e 43333
ceec2216
RL
43334 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43335
a848cd7e 43336
ceec2216 43337 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43338
a848cd7e 43339
ceec2216 43340 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43341
ceec2216
RL
43342
43343 ac_config_files="$ac_config_files version-script Makefile"
43344
43345
43346 ac_config_commands="$ac_config_commands wx-config
43347 "
a848cd7e
SC
43348
43349
9103d280
RL
43350
43351
a848cd7e
SC
43352if test "$wxUSE_GUI" = "yes"; then
43353 SUBDIRS="samples demos utils contrib"
43354else SUBDIRS="samples utils"
43355fi
43356
43357
43358
43359# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43360if test "${with_cppunit_prefix+set}" = set; then
43361 withval="$with_cppunit_prefix"
43362 cppunit_config_prefix="$withval"
43363else
43364 cppunit_config_prefix=""
43365fi;
43366
43367# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43368if test "${with_cppunit_exec_prefix+set}" = set; then
43369 withval="$with_cppunit_exec_prefix"
43370 cppunit_config_exec_prefix="$withval"
43371else
43372 cppunit_config_exec_prefix=""
43373fi;
43374
43375 if test x$cppunit_config_exec_prefix != x ; then
43376 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43377 if test x${CPPUNIT_CONFIG+set} != xset ; then
43378 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43379 fi
43380 fi
43381 if test x$cppunit_config_prefix != x ; then
43382 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43383 if test x${CPPUNIT_CONFIG+set} != xset ; then
43384 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43385 fi
43386 fi
43387
43388 # Extract the first word of "cppunit-config", so it can be a program name with args.
43389set dummy cppunit-config; ac_word=$2
43390echo "$as_me:$LINENO: checking for $ac_word" >&5
43391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43392if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43393 echo $ECHO_N "(cached) $ECHO_C" >&6
43394else
43395 case $CPPUNIT_CONFIG in
43396 [\\/]* | ?:[\\/]*)
43397 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43398 ;;
43399 *)
43400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43401for as_dir in $PATH
43402do
43403 IFS=$as_save_IFS
43404 test -z "$as_dir" && as_dir=.
43405 for ac_exec_ext in '' $ac_executable_extensions; do
43406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43407 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43409 break 2
43410 fi
43411done
43412done
43413
43414 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43415 ;;
43416esac
43417fi
43418CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43419
43420if test -n "$CPPUNIT_CONFIG"; then
43421 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43422echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43423else
43424 echo "$as_me:$LINENO: result: no" >&5
43425echo "${ECHO_T}no" >&6
43426fi
43427
43428 cppunit_version_min=1.8.0
43429
43430 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43431echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43432 no_cppunit=""
43433 if test "$CPPUNIT_CONFIG" = "no" ; then
43434 no_cppunit=yes
43435 else
43436 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43437 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43438 cppunit_version=`$CPPUNIT_CONFIG --version`
43439
43440 cppunit_major_version=`echo $cppunit_version | \
43441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43442 cppunit_minor_version=`echo $cppunit_version | \
43443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43444 cppunit_micro_version=`echo $cppunit_version | \
43445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43446
43447 cppunit_major_min=`echo $cppunit_version_min | \
43448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43449 cppunit_minor_min=`echo $cppunit_version_min | \
43450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43451 cppunit_micro_min=`echo $cppunit_version_min | \
43452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43453
43454 cppunit_version_proper=`expr \
43455 $cppunit_major_version \> $cppunit_major_min \| \
43456 $cppunit_major_version \= $cppunit_major_min \& \
43457 $cppunit_minor_version \> $cppunit_minor_min \| \
43458 $cppunit_major_version \= $cppunit_major_min \& \
43459 $cppunit_minor_version \= $cppunit_minor_min \& \
43460 $cppunit_micro_version \>= $cppunit_micro_min `
43461
43462 if test "$cppunit_version_proper" = "1" ; then
43463 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43464echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43465 else
43466 echo "$as_me:$LINENO: result: no" >&5
43467echo "${ECHO_T}no" >&6
43468 no_cppunit=yes
43469 fi
43470 fi
43471
43472 if test "x$no_cppunit" = x ; then
c2218763 43473 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43474 else
43475 CPPUNIT_CFLAGS=""
43476 CPPUNIT_LIBS=""
c2218763 43477 :
a848cd7e
SC
43478 fi
43479
43480
43481
43482
43483
43484for subdir in `echo $SUBDIRS`; do
43485 if test -d ${srcdir}/${subdir} ; then
43486 if test "$wxUSE_GUI" = "yes"; then
43487 if test ${subdir} = "samples"; then
43488 makefiles="samples/Makefile.in $makefiles"
43489 for sample in `echo $SAMPLES_SUBDIRS`; do
43490 if test -d $srcdir/samples/$sample; then
43491 makefiles="samples/$sample/Makefile.in $makefiles"
43492 fi
43493 done
43494 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43495 fi
43496 else if test ${subdir} = "samples"; then
43497 makefiles="samples/Makefile.in samples/console/Makefile.in"
43498 elif test ${subdir} = "utils"; then
6537ccf8
VS
43499 makefiles=""
43500 for util in HelpGen tex2rtf ; do
43501 if test -d $srcdir/utils/$util ; then
43502 makefiles="utils/$util/Makefile.in \
43503 utils/$util/src/Makefile.in \
43504 $makefiles"
43505 fi
43506 done
a848cd7e
SC
43507 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43508 fi
43509 fi
43510
43511 for mkin in $makefiles ; do
43512 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43513 ac_config_files="$ac_config_files $mk"
43514
43515 done
43516 fi
43517done
43518
43519
43520cat >confcache <<\_ACEOF
43521# This file is a shell script that caches the results of configure
43522# tests run on this system so they can be shared between configure
43523# scripts and configure runs, see configure's option --config-cache.
43524# It is not useful on other systems. If it contains results you don't
43525# want to keep, you may remove or edit it.
43526#
43527# config.status only pays attention to the cache file if you give it
43528# the --recheck option to rerun configure.
43529#
43530# `ac_cv_env_foo' variables (set or unset) will be overridden when
43531# loading this file, other *unset* `ac_cv_foo' will be assigned the
43532# following values.
43533
43534_ACEOF
43535
43536# The following way of writing the cache mishandles newlines in values,
43537# but we know of no workaround that is simple, portable, and efficient.
43538# So, don't put newlines in cache variables' values.
43539# Ultrix sh set writes to stderr and can't be redirected directly,
43540# and sets the high bit in the cache file unless we assign to the vars.
43541{
43542 (set) 2>&1 |
43543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43544 *ac_space=\ *)
43545 # `set' does not quote correctly, so add quotes (double-quote
43546 # substitution turns \\\\ into \\, and sed turns \\ into \).
43547 sed -n \
ac1cb8d3
VS
43548 "s/'/'\\\\''/g;
43549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43550 ;;
43551 *)
43552 # `set' quotes correctly as required by POSIX, so do not add quotes.
43553 sed -n \
ac1cb8d3 43554 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43555 ;;
43556 esac;
43557} |
43558 sed '
43559 t clear
43560 : clear
43561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43562 t end
43563 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43564 : end' >>confcache
43565if diff $cache_file confcache >/dev/null 2>&1; then :; else
43566 if test -w $cache_file; then
43567 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43568 cat confcache >$cache_file
43569 else
43570 echo "not updating unwritable cache $cache_file"
43571 fi
43572fi
43573rm -f confcache
43574
43575test "x$prefix" = xNONE && prefix=$ac_default_prefix
43576# Let make expand exec_prefix.
43577test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43578
43579# VPATH may cause trouble with some makes, so we remove $(srcdir),
43580# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43581# trailing colons and then remove the whole line if VPATH becomes empty
43582# (actually we leave an empty line to preserve line numbers).
43583if test "x$srcdir" = x.; then
ac1cb8d3 43584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43585s/:*\$(srcdir):*/:/;
43586s/:*\${srcdir}:*/:/;
43587s/:*@srcdir@:*/:/;
ac1cb8d3 43588s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43589s/:*$//;
ac1cb8d3 43590s/^[^=]*=[ ]*$//;
a848cd7e
SC
43591}'
43592fi
43593
43594DEFS=-DHAVE_CONFIG_H
43595
43596ac_libobjs=
43597ac_ltlibobjs=
43598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43599 # 1. Remove the extension, and $U if already installed.
43600 ac_i=`echo "$ac_i" |
ac1cb8d3 43601 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43602 # 2. Add them.
43603 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43604 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43605done
43606LIBOBJS=$ac_libobjs
43607
43608LTLIBOBJS=$ac_ltlibobjs
43609
43610
43611
43612: ${CONFIG_STATUS=./config.status}
43613ac_clean_files_save=$ac_clean_files
43614ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43615{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43616echo "$as_me: creating $CONFIG_STATUS" >&6;}
43617cat >$CONFIG_STATUS <<_ACEOF
43618#! $SHELL
43619# Generated by $as_me.
43620# Run this file to recreate the current configuration.
43621# Compiler output produced by configure, useful for debugging
43622# configure, is in config.log if it exists.
43623
43624debug=false
43625ac_cs_recheck=false
43626ac_cs_silent=false
43627SHELL=\${CONFIG_SHELL-$SHELL}
43628_ACEOF
43629
43630cat >>$CONFIG_STATUS <<\_ACEOF
43631## --------------------- ##
43632## M4sh Initialization. ##
43633## --------------------- ##
43634
43635# Be Bourne compatible
43636if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43637 emulate sh
43638 NULLCMD=:
43639 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43640 # is contrary to our usage. Disable this feature.
43641 alias -g '${1+"$@"}'='"$@"'
43642elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43643 set -o posix
43644fi
ac1cb8d3 43645DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43646
43647# Support unset when possible.
ac1cb8d3 43648if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43649 as_unset=unset
43650else
43651 as_unset=false
43652fi
43653
43654
43655# Work around bugs in pre-3.0 UWIN ksh.
43656$as_unset ENV MAIL MAILPATH
43657PS1='$ '
43658PS2='> '
43659PS4='+ '
43660
43661# NLS nuisances.
43662for as_var in \
43663 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43664 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43665 LC_TELEPHONE LC_TIME
43666do
ac1cb8d3 43667 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43668 eval $as_var=C; export $as_var
43669 else
43670 $as_unset $as_var
43671 fi
43672done
43673
43674# Required to use basename.
43675if expr a : '\(a\)' >/dev/null 2>&1; then
43676 as_expr=expr
43677else
43678 as_expr=false
43679fi
43680
43681if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43682 as_basename=basename
43683else
43684 as_basename=false
43685fi
43686
43687
43688# Name of the executable.
43689as_me=`$as_basename "$0" ||
43690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43691 X"$0" : 'X\(//\)$' \| \
43692 X"$0" : 'X\(/\)$' \| \
43693 . : '\(.\)' 2>/dev/null ||
43694echo X/"$0" |
43695 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43696 /^X\/\(\/\/\)$/{ s//\1/; q; }
43697 /^X\/\(\/\).*/{ s//\1/; q; }
43698 s/.*/./; q'`
43699
43700
43701# PATH needs CR, and LINENO needs CR and PATH.
43702# Avoid depending upon Character Ranges.
43703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43706as_cr_digits='0123456789'
43707as_cr_alnum=$as_cr_Letters$as_cr_digits
43708
43709# The user is always right.
43710if test "${PATH_SEPARATOR+set}" != set; then
43711 echo "#! /bin/sh" >conf$$.sh
43712 echo "exit 0" >>conf$$.sh
43713 chmod +x conf$$.sh
43714 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43715 PATH_SEPARATOR=';'
43716 else
43717 PATH_SEPARATOR=:
43718 fi
43719 rm -f conf$$.sh
43720fi
43721
43722
43723 as_lineno_1=$LINENO
43724 as_lineno_2=$LINENO
43725 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43726 test "x$as_lineno_1" != "x$as_lineno_2" &&
43727 test "x$as_lineno_3" = "x$as_lineno_2" || {
43728 # Find who we are. Look in the path if we contain no path at all
43729 # relative or not.
43730 case $0 in
43731 *[\\/]* ) as_myself=$0 ;;
43732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43733for as_dir in $PATH
43734do
43735 IFS=$as_save_IFS
43736 test -z "$as_dir" && as_dir=.
43737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43738done
43739
43740 ;;
43741 esac
43742 # We did not find ourselves, most probably we were run as `sh COMMAND'
43743 # in which case we are not to be found in the path.
43744 if test "x$as_myself" = x; then
43745 as_myself=$0
43746 fi
43747 if test ! -f "$as_myself"; then
43748 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43749echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43750 { (exit 1); exit 1; }; }
43751 fi
43752 case $CONFIG_SHELL in
43753 '')
43754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43755for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43756do
43757 IFS=$as_save_IFS
43758 test -z "$as_dir" && as_dir=.
43759 for as_base in sh bash ksh sh5; do
43760 case $as_dir in
43761 /*)
43762 if ("$as_dir/$as_base" -c '
43763 as_lineno_1=$LINENO
43764 as_lineno_2=$LINENO
43765 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43766 test "x$as_lineno_1" != "x$as_lineno_2" &&
43767 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43768 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43769 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43770 CONFIG_SHELL=$as_dir/$as_base
43771 export CONFIG_SHELL
43772 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43773 fi;;
43774 esac
43775 done
43776done
43777;;
43778 esac
43779
43780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43781 # uniformly replaced by the line number. The first 'sed' inserts a
43782 # line-number line before each line; the second 'sed' does the real
43783 # work. The second script uses 'N' to pair each line-number line
43784 # with the numbered line, and appends trailing '-' during
43785 # substitution so that $LINENO is not a special case at line end.
43786 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43787 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43788 sed '=' <$as_myself |
43789 sed '
43790 N
43791 s,$,-,
43792 : loop
43793 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43794 t loop
43795 s,-$,,
43796 s,^['$as_cr_digits']*\n,,
43797 ' >$as_me.lineno &&
43798 chmod +x $as_me.lineno ||
43799 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43800echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43801 { (exit 1); exit 1; }; }
43802
43803 # Don't try to exec as it changes $[0], causing all sort of problems
43804 # (the dirname of $[0] is not the place where we might find the
43805 # original and so on. Autoconf is especially sensible to this).
43806 . ./$as_me.lineno
43807 # Exit status is that of the last command.
43808 exit
43809}
43810
43811
43812case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43813 *c*,-n*) ECHO_N= ECHO_C='
43814' ECHO_T=' ' ;;
43815 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43816 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43817esac
43818
43819if expr a : '\(a\)' >/dev/null 2>&1; then
43820 as_expr=expr
43821else
43822 as_expr=false
43823fi
43824
43825rm -f conf$$ conf$$.exe conf$$.file
43826echo >conf$$.file
43827if ln -s conf$$.file conf$$ 2>/dev/null; then
43828 # We could just check for DJGPP; but this test a) works b) is more generic
43829 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43830 if test -f conf$$.exe; then
43831 # Don't use ln at all; we don't have any links
43832 as_ln_s='cp -p'
43833 else
43834 as_ln_s='ln -s'
43835 fi
43836elif ln conf$$.file conf$$ 2>/dev/null; then
43837 as_ln_s=ln
43838else
43839 as_ln_s='cp -p'
43840fi
43841rm -f conf$$ conf$$.exe conf$$.file
43842
43843if mkdir -p . 2>/dev/null; then
43844 as_mkdir_p=:
43845else
ac1cb8d3 43846 test -d ./-p && rmdir ./-p
a848cd7e
SC
43847 as_mkdir_p=false
43848fi
43849
43850as_executable_p="test -f"
43851
43852# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43854
43855# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43857
43858
43859# IFS
43860# We need space, tab and new line, in precisely that order.
43861as_nl='
43862'
43863IFS=" $as_nl"
43864
43865# CDPATH.
43866$as_unset CDPATH
43867
43868exec 6>&1
43869
43870# Open the log real soon, to keep \$[0] and so on meaningful, and to
43871# report actual input values of CONFIG_FILES etc. instead of their
43872# values after options handling. Logging --version etc. is OK.
43873exec 5>>config.log
43874{
43875 echo
43876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43877## Running $as_me. ##
43878_ASBOX
43879} >&5
43880cat >&5 <<_CSEOF
43881
63c4f6da 43882This file was extended by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 43883generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43884
43885 CONFIG_FILES = $CONFIG_FILES
43886 CONFIG_HEADERS = $CONFIG_HEADERS
43887 CONFIG_LINKS = $CONFIG_LINKS
43888 CONFIG_COMMANDS = $CONFIG_COMMANDS
43889 $ $0 $@
43890
43891_CSEOF
43892echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43893echo >&5
43894_ACEOF
43895
43896# Files that config.status was made for.
43897if test -n "$ac_config_files"; then
43898 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43899fi
43900
43901if test -n "$ac_config_headers"; then
43902 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43903fi
43904
43905if test -n "$ac_config_links"; then
43906 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43907fi
43908
43909if test -n "$ac_config_commands"; then
43910 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43911fi
43912
43913cat >>$CONFIG_STATUS <<\_ACEOF
43914
43915ac_cs_usage="\
43916\`$as_me' instantiates files from templates according to the
43917current configuration.
43918
43919Usage: $0 [OPTIONS] [FILE]...
43920
43921 -h, --help print this help, then exit
43922 -V, --version print version number, then exit
43923 -q, --quiet do not print progress messages
43924 -d, --debug don't remove temporary files
43925 --recheck update $as_me by reconfiguring in the same conditions
43926 --file=FILE[:TEMPLATE]
ac1cb8d3 43927 instantiate the configuration file FILE
a848cd7e 43928 --header=FILE[:TEMPLATE]
ac1cb8d3 43929 instantiate the configuration header FILE
a848cd7e
SC
43930
43931Configuration files:
43932$config_files
43933
43934Configuration headers:
43935$config_headers
43936
43937Configuration commands:
43938$config_commands
43939
43940Report bugs to <bug-autoconf@gnu.org>."
43941_ACEOF
43942
43943cat >>$CONFIG_STATUS <<_ACEOF
43944ac_cs_version="\\
63c4f6da 43945wxWidgets config.status 2.5.5
ac1cb8d3 43946configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43947 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43948
ac1cb8d3 43949Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43950This config.status script is free software; the Free Software Foundation
43951gives unlimited permission to copy, distribute and modify it."
43952srcdir=$srcdir
43953INSTALL="$INSTALL"
43954_ACEOF
43955
43956cat >>$CONFIG_STATUS <<\_ACEOF
43957# If no file are specified by the user, then we need to provide default
43958# value. By we need to know if files were specified by the user.
43959ac_need_defaults=:
43960while test $# != 0
43961do
43962 case $1 in
43963 --*=*)
43964 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43965 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43966 ac_shift=:
43967 ;;
43968 -*)
43969 ac_option=$1
43970 ac_optarg=$2
43971 ac_shift=shift
43972 ;;
43973 *) # This is not an option, so the user has probably given explicit
43974 # arguments.
43975 ac_option=$1
43976 ac_need_defaults=false;;
43977 esac
43978
43979 case $ac_option in
43980 # Handling of the options.
43981_ACEOF
43982cat >>$CONFIG_STATUS <<\_ACEOF
43983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43984 ac_cs_recheck=: ;;
43985 --version | --vers* | -V )
43986 echo "$ac_cs_version"; exit 0 ;;
43987 --he | --h)
43988 # Conflict between --help and --header
43989 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43990Try \`$0 --help' for more information." >&5
43991echo "$as_me: error: ambiguous option: $1
43992Try \`$0 --help' for more information." >&2;}
43993 { (exit 1); exit 1; }; };;
43994 --help | --hel | -h )
43995 echo "$ac_cs_usage"; exit 0 ;;
43996 --debug | --d* | -d )
43997 debug=: ;;
43998 --file | --fil | --fi | --f )
43999 $ac_shift
44000 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44001 ac_need_defaults=false;;
44002 --header | --heade | --head | --hea )
44003 $ac_shift
44004 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44005 ac_need_defaults=false;;
44006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44008 ac_cs_silent=: ;;
44009
44010 # This is an error.
44011 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44012Try \`$0 --help' for more information." >&5
44013echo "$as_me: error: unrecognized option: $1
44014Try \`$0 --help' for more information." >&2;}
44015 { (exit 1); exit 1; }; } ;;
44016
44017 *) ac_config_targets="$ac_config_targets $1" ;;
44018
44019 esac
44020 shift
44021done
44022
44023ac_configure_extra_args=
44024
44025if $ac_cs_silent; then
44026 exec 6>/dev/null
44027 ac_configure_extra_args="$ac_configure_extra_args --silent"
44028fi
44029
44030_ACEOF
44031cat >>$CONFIG_STATUS <<_ACEOF
44032if \$ac_cs_recheck; then
44033 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44034 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44035fi
44036
44037_ACEOF
44038
44039cat >>$CONFIG_STATUS <<_ACEOF
44040#
44041# INIT-COMMANDS section.
44042#
44043
ceec2216
RL
44044 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44045 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44046 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44047 LN_S="${LN_S}"
a848cd7e
SC
44048
44049
44050_ACEOF
44051
44052
44053
44054cat >>$CONFIG_STATUS <<\_ACEOF
44055for ac_config_target in $ac_config_targets
44056do
44057 case "$ac_config_target" in
44058 # Handling of arguments.
ceec2216
RL
44059 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44060 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44061 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44062 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44063 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44064 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44065 "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
44066 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44067echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44068 { (exit 1); exit 1; }; };;
44069 esac
44070done
44071
44072# If the user did not use the arguments to specify the items to instantiate,
44073# then the envvar interface is used. Set only those that are not.
44074# We use the long form for the default assignment because of an extremely
44075# bizarre bug on SunOS 4.1.3.
44076if $ac_need_defaults; then
44077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44080fi
44081
44082# Have a temporary directory for convenience. Make it in the build tree
44083# simply because there is no reason to put it here, and in addition,
44084# creating and moving files from /tmp can sometimes cause problems.
44085# Create a temporary directory, and hook for its removal unless debugging.
44086$debug ||
44087{
44088 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44089 trap '{ (exit 1); exit 1; }' 1 2 13 15
44090}
44091
44092# Create a (secure) tmp directory for tmp files.
44093
44094{
44095 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44096 test -n "$tmp" && test -d "$tmp"
44097} ||
44098{
44099 tmp=./confstat$$-$RANDOM
44100 (umask 077 && mkdir $tmp)
44101} ||
44102{
44103 echo "$me: cannot create a temporary directory in ." >&2
44104 { (exit 1); exit 1; }
44105}
44106
44107_ACEOF
44108
44109cat >>$CONFIG_STATUS <<_ACEOF
44110
44111#
44112# CONFIG_FILES section.
44113#
44114
44115# No need to generate the scripts if there are no CONFIG_FILES.
44116# This happens for instance when ./config.status config.h
44117if test -n "\$CONFIG_FILES"; then
44118 # Protect against being on the right side of a sed subst in config.status.
44119 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44120 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44121s,@SHELL@,$SHELL,;t t
44122s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44123s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44124s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44125s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44126s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44127s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44128s,@exec_prefix@,$exec_prefix,;t t
44129s,@prefix@,$prefix,;t t
44130s,@program_transform_name@,$program_transform_name,;t t
44131s,@bindir@,$bindir,;t t
44132s,@sbindir@,$sbindir,;t t
44133s,@libexecdir@,$libexecdir,;t t
44134s,@datadir@,$datadir,;t t
44135s,@sysconfdir@,$sysconfdir,;t t
44136s,@sharedstatedir@,$sharedstatedir,;t t
44137s,@localstatedir@,$localstatedir,;t t
44138s,@libdir@,$libdir,;t t
44139s,@includedir@,$includedir,;t t
44140s,@oldincludedir@,$oldincludedir,;t t
44141s,@infodir@,$infodir,;t t
44142s,@mandir@,$mandir,;t t
44143s,@build_alias@,$build_alias,;t t
44144s,@host_alias@,$host_alias,;t t
44145s,@target_alias@,$target_alias,;t t
44146s,@DEFS@,$DEFS,;t t
44147s,@ECHO_C@,$ECHO_C,;t t
44148s,@ECHO_N@,$ECHO_N,;t t
44149s,@ECHO_T@,$ECHO_T,;t t
44150s,@LIBS@,$LIBS,;t t
44151s,@build@,$build,;t t
44152s,@build_cpu@,$build_cpu,;t t
44153s,@build_vendor@,$build_vendor,;t t
44154s,@build_os@,$build_os,;t t
44155s,@host@,$host,;t t
44156s,@host_cpu@,$host_cpu,;t t
44157s,@host_vendor@,$host_vendor,;t t
44158s,@host_os@,$host_os,;t t
44159s,@target@,$target,;t t
44160s,@target_cpu@,$target_cpu,;t t
44161s,@target_vendor@,$target_vendor,;t t
44162s,@target_os@,$target_os,;t t
44163s,@CC@,$CC,;t t
44164s,@CFLAGS@,$CFLAGS,;t t
44165s,@LDFLAGS@,$LDFLAGS,;t t
44166s,@CPPFLAGS@,$CPPFLAGS,;t t
44167s,@ac_ct_CC@,$ac_ct_CC,;t t
44168s,@EXEEXT@,$EXEEXT,;t t
44169s,@OBJEXT@,$OBJEXT,;t t
44170s,@CPP@,$CPP,;t t
44171s,@EGREP@,$EGREP,;t t
44172s,@CXX@,$CXX,;t t
44173s,@CXXFLAGS@,$CXXFLAGS,;t t
44174s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44175s,@RANLIB@,$RANLIB,;t t
44176s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44177s,@AR@,$AR,;t t
44178s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44179s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44180s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44181s,@STRIP@,$STRIP,;t t
44182s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44183s,@LN_S@,$LN_S,;t t
44184s,@CXXCPP@,$CXXCPP,;t t
44185s,@subdirs@,$subdirs,;t t
44186s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44187s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44188s,@GTK_LIBS@,$GTK_LIBS,;t t
44189s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44190s,@X_CFLAGS@,$X_CFLAGS,;t t
44191s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44192s,@X_LIBS@,$X_LIBS,;t t
44193s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44194s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44195s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44196s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44197s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44198s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44199s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44200s,@RESCOMP@,$RESCOMP,;t t
44201s,@DEREZ@,$DEREZ,;t t
44202s,@SETFILE@,$SETFILE,;t t
44203s,@LIBICONV@,$LIBICONV,;t t
44204s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44205s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44206s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44207s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44208s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44209s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44210s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44211s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44212s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44213s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44214s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44215s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44216s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44217s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44218s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44219s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44220s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44221s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44222s,@VENDOR@,$VENDOR,;t t
44223s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44224s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44225s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44226s,@WXUNIV@,$WXUNIV,;t t
44227s,@MONOLITHIC@,$MONOLITHIC,;t t
44228s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44229s,@EXTRALIBS@,$EXTRALIBS,;t t
44230s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44231s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44232s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44233s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44234s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44235s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44236s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44237s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44238s,@UNICODE@,$UNICODE,;t t
44239s,@BUILD@,$BUILD,;t t
44240s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44241s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44242s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44243s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44244s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44245s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44246s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44247s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44248s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44249s,@SET_MAKE@,$SET_MAKE,;t t
44250s,@MAKE_SET@,$MAKE_SET,;t t
44251s,@ac_ct_AR@,$ac_ct_AR,;t t
44252s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44253s,@NM@,$NM,;t t
44254s,@ac_ct_NM@,$ac_ct_NM,;t t
44255s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44256s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44257s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44258s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44259s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44260s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44261s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44262s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44263s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44264s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44265s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44266s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44267s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44268s,@LIBPREFIX@,$LIBPREFIX,;t t
44269s,@LIBEXT@,$LIBEXT,;t t
44270s,@DLLPREFIX@,$DLLPREFIX,;t t
44271s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44272s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44273s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44274s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44275s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44276s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44277s,@PIC_FLAG@,$PIC_FLAG,;t t
44278s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44279s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44280s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44281s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44282s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44283s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44284s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44285s,@GCC_PCH@,$GCC_PCH,;t t
44286s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44287s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44288s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44289s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44290s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44291s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44292s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44293s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44294s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44295s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44296s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44297s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44298s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44299s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44300s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44301s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44302s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44303s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44304s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44305s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 44306s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 44307s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44308s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44309s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44310s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44311s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44312s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 44313s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 44314s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44315s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44316s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44317s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44318s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44319s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44320s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44321s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44322s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44323s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44324s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44325s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44326s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44327s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44328s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44329s,@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
44330s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44331s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44332s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44333s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44334s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44335s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44336s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44337s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44338s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44339s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44340s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44341s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44342s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44343s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44344s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44345s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44346s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44347s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44348s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44349s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44350s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44351s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44352s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44353s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44354s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44355s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44356s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44357s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44358s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44359s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44360s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44361s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44362s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44363s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44364s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44365s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44366s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44367s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44368s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44369s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44370s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44371s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44372s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44373s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44374s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44375s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44376s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44377s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44378s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44379s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44380s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44381s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44382s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44383s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44384s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44385s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44386s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44387s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44388s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44389s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44390s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44391s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44392s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44393s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44394s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44395s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44396s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44397s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44398s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44399s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44400s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44401s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44402s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44403s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44404s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44405s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44406s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44407s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44408s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44409s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44410s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44411s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44412s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44413s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44414s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44415s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44416s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44417s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44418s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44419s,@USE_GUI@,$USE_GUI,;t t
44420s,@AFMINSTALL@,$AFMINSTALL,;t t
44421s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44422s,@TOOLKIT@,$TOOLKIT,;t t
44423s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44424s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44425s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44426s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44427s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44428s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44429s,@WIDGET_SET@,$WIDGET_SET,;t t
44430s,@WX_RELEASE@,$WX_RELEASE,;t t
44431s,@WX_VERSION@,$WX_VERSION,;t t
44432s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44433s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44434s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44435s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44436s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44437s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44438s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44439s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44440s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44441s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44442s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44443s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44444s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44445s,@DISTDIR@,$DISTDIR,;t t
44446s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44447s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44448s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44449s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44450s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44451s,@RESFLAGS@,$RESFLAGS,;t t
44452s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44453s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44454s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44455s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44456s,@MACRESCOMP@,$MACRESCOMP,;t t
44457s,@MACSETFILE@,$MACSETFILE,;t t
44458s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44459s,@GCC@,$GCC,;t t
a848cd7e 44460s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44461s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44462s,@LIBOBJS@,$LIBOBJS,;t t
44463s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44464CEOF
44465
44466_ACEOF
44467
44468 cat >>$CONFIG_STATUS <<\_ACEOF
44469 # Split the substitutions into bite-sized pieces for seds with
44470 # small command number limits, like on Digital OSF/1 and HP-UX.
44471 ac_max_sed_lines=48
44472 ac_sed_frag=1 # Number of current file.
44473 ac_beg=1 # First line for current file.
44474 ac_end=$ac_max_sed_lines # Line after last line for current file.
44475 ac_more_lines=:
44476 ac_sed_cmds=
44477 while $ac_more_lines; do
44478 if test $ac_beg -gt 1; then
44479 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44480 else
44481 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44482 fi
44483 if test ! -s $tmp/subs.frag; then
44484 ac_more_lines=false
44485 else
44486 # The purpose of the label and of the branching condition is to
44487 # speed up the sed processing (if there are no `@' at all, there
44488 # is no need to browse any of the substitutions).
44489 # These are the two extra sed commands mentioned above.
44490 (echo ':t
44491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44492 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44493 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44494 else
ac1cb8d3 44495 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44496 fi
44497 ac_sed_frag=`expr $ac_sed_frag + 1`
44498 ac_beg=$ac_end
44499 ac_end=`expr $ac_end + $ac_max_sed_lines`
44500 fi
44501 done
44502 if test -z "$ac_sed_cmds"; then
44503 ac_sed_cmds=cat
44504 fi
44505fi # test -n "$CONFIG_FILES"
44506
44507_ACEOF
44508cat >>$CONFIG_STATUS <<\_ACEOF
44509for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44510 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44511 case $ac_file in
44512 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44513 cat >$tmp/stdin
44514 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44515 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44516 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44517 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44518 * ) ac_file_in=$ac_file.in ;;
44519 esac
44520
44521 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44522 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44524 X"$ac_file" : 'X\(//\)[^/]' \| \
44525 X"$ac_file" : 'X\(//\)$' \| \
44526 X"$ac_file" : 'X\(/\)' \| \
44527 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44528echo X"$ac_file" |
44529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44531 /^X\(\/\/\)$/{ s//\1/; q; }
44532 /^X\(\/\).*/{ s//\1/; q; }
44533 s/.*/./; q'`
44534 { if $as_mkdir_p; then
44535 mkdir -p "$ac_dir"
44536 else
44537 as_dir="$ac_dir"
44538 as_dirs=
44539 while test ! -d "$as_dir"; do
44540 as_dirs="$as_dir $as_dirs"
44541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44542$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44543 X"$as_dir" : 'X\(//\)[^/]' \| \
44544 X"$as_dir" : 'X\(//\)$' \| \
44545 X"$as_dir" : 'X\(/\)' \| \
44546 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44547echo X"$as_dir" |
44548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44550 /^X\(\/\/\)$/{ s//\1/; q; }
44551 /^X\(\/\).*/{ s//\1/; q; }
44552 s/.*/./; q'`
44553 done
44554 test ! -n "$as_dirs" || mkdir $as_dirs
44555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44556echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44557 { (exit 1); exit 1; }; }; }
44558
44559 ac_builddir=.
44560
44561if test "$ac_dir" != .; then
44562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44563 # A "../" for each directory in $ac_dir_suffix.
44564 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44565else
44566 ac_dir_suffix= ac_top_builddir=
44567fi
44568
44569case $srcdir in
44570 .) # No --srcdir option. We are building in place.
44571 ac_srcdir=.
44572 if test -z "$ac_top_builddir"; then
44573 ac_top_srcdir=.
44574 else
44575 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44576 fi ;;
44577 [\\/]* | ?:[\\/]* ) # Absolute path.
44578 ac_srcdir=$srcdir$ac_dir_suffix;
44579 ac_top_srcdir=$srcdir ;;
44580 *) # Relative path.
44581 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44582 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44583esac
ac1cb8d3
VS
44584
44585# Do not use `cd foo && pwd` to compute absolute paths, because
44586# the directories may not exist.
44587case `pwd` in
44588.) ac_abs_builddir="$ac_dir";;
44589*)
44590 case "$ac_dir" in
44591 .) ac_abs_builddir=`pwd`;;
44592 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44593 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44594 esac;;
44595esac
44596case $ac_abs_builddir in
44597.) ac_abs_top_builddir=${ac_top_builddir}.;;
44598*)
44599 case ${ac_top_builddir}. in
44600 .) ac_abs_top_builddir=$ac_abs_builddir;;
44601 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44602 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44603 esac;;
44604esac
44605case $ac_abs_builddir in
44606.) ac_abs_srcdir=$ac_srcdir;;
44607*)
44608 case $ac_srcdir in
44609 .) ac_abs_srcdir=$ac_abs_builddir;;
44610 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44611 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44612 esac;;
44613esac
44614case $ac_abs_builddir in
44615.) ac_abs_top_srcdir=$ac_top_srcdir;;
44616*)
44617 case $ac_top_srcdir in
44618 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44619 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44620 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44621 esac;;
44622esac
a848cd7e
SC
44623
44624
44625 case $INSTALL in
44626 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44627 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44628 esac
44629
a848cd7e
SC
44630 # Let's still pretend it is `configure' which instantiates (i.e., don't
44631 # use $as_me), people would be surprised to read:
44632 # /* config.h. Generated by config.status. */
44633 if test x"$ac_file" = x-; then
44634 configure_input=
44635 else
44636 configure_input="$ac_file. "
44637 fi
44638 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44639 sed 's,.*/,,'` by configure."
a848cd7e
SC
44640
44641 # First look for the input files in the build tree, otherwise in the
44642 # src tree.
44643 ac_file_inputs=`IFS=:
44644 for f in $ac_file_in; do
44645 case $f in
44646 -) echo $tmp/stdin ;;
44647 [\\/$]*)
ac1cb8d3
VS
44648 # Absolute (can't be DOS-style, as IFS=:)
44649 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44650echo "$as_me: error: cannot find input file: $f" >&2;}
44651 { (exit 1); exit 1; }; }
ac1cb8d3 44652 echo "$f";;
a848cd7e 44653 *) # Relative
ac1cb8d3
VS
44654 if test -f "$f"; then
44655 # Build tree
44656 echo "$f"
44657 elif test -f "$srcdir/$f"; then
44658 # Source tree
44659 echo "$srcdir/$f"
44660 else
44661 # /dev/null tree
44662 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44663echo "$as_me: error: cannot find input file: $f" >&2;}
44664 { (exit 1); exit 1; }; }
ac1cb8d3 44665 fi;;
a848cd7e
SC
44666 esac
44667 done` || { (exit 1); exit 1; }
07158944
VZ
44668
44669 if test x"$ac_file" != x-; then
44670 { echo "$as_me:$LINENO: creating $ac_file" >&5
44671echo "$as_me: creating $ac_file" >&6;}
44672 rm -f "$ac_file"
44673 fi
a848cd7e
SC
44674_ACEOF
44675cat >>$CONFIG_STATUS <<_ACEOF
44676 sed "$ac_vpsub
44677$extrasub
44678_ACEOF
44679cat >>$CONFIG_STATUS <<\_ACEOF
44680:t
44681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44682s,@configure_input@,$configure_input,;t t
44683s,@srcdir@,$ac_srcdir,;t t
44684s,@abs_srcdir@,$ac_abs_srcdir,;t t
44685s,@top_srcdir@,$ac_top_srcdir,;t t
44686s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44687s,@builddir@,$ac_builddir,;t t
44688s,@abs_builddir@,$ac_abs_builddir,;t t
44689s,@top_builddir@,$ac_top_builddir,;t t
44690s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44691s,@INSTALL@,$ac_INSTALL,;t t
44692" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44693 rm -f $tmp/stdin
44694 if test x"$ac_file" != x-; then
44695 mv $tmp/out $ac_file
44696 else
44697 cat $tmp/out
44698 rm -f $tmp/out
44699 fi
44700
ceec2216
RL
44701 # Run the commands associated with the file.
44702 case $ac_file in
44703 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44704 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44705 esac
a848cd7e
SC
44706done
44707_ACEOF
44708cat >>$CONFIG_STATUS <<\_ACEOF
44709
44710#
44711# CONFIG_HEADER section.
44712#
44713
44714# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44715# NAME is the cpp macro being defined and VALUE is the value it is being given.
44716#
44717# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44718ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44719ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44720ac_dC=' '
44721ac_dD=',;t'
44722# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44723ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44724ac_uB='$,\1#\2define\3'
44725ac_uC=' '
44726ac_uD=',;t'
44727
44728for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44729 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44730 case $ac_file in
44731 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44732 cat >$tmp/stdin
44733 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44735 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44736 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44737 * ) ac_file_in=$ac_file.in ;;
44738 esac
44739
44740 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44741echo "$as_me: creating $ac_file" >&6;}
44742
44743 # First look for the input files in the build tree, otherwise in the
44744 # src tree.
44745 ac_file_inputs=`IFS=:
44746 for f in $ac_file_in; do
44747 case $f in
44748 -) echo $tmp/stdin ;;
44749 [\\/$]*)
ac1cb8d3
VS
44750 # Absolute (can't be DOS-style, as IFS=:)
44751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44752echo "$as_me: error: cannot find input file: $f" >&2;}
44753 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44754 # Do quote $f, to prevent DOS paths from being IFS'd.
44755 echo "$f";;
a848cd7e 44756 *) # Relative
ac1cb8d3
VS
44757 if test -f "$f"; then
44758 # Build tree
44759 echo "$f"
44760 elif test -f "$srcdir/$f"; then
44761 # Source tree
44762 echo "$srcdir/$f"
44763 else
44764 # /dev/null tree
44765 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44766echo "$as_me: error: cannot find input file: $f" >&2;}
44767 { (exit 1); exit 1; }; }
ac1cb8d3 44768 fi;;
a848cd7e
SC
44769 esac
44770 done` || { (exit 1); exit 1; }
44771 # Remove the trailing spaces.
ac1cb8d3 44772 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44773
44774_ACEOF
44775
44776# Transform confdefs.h into two sed scripts, `conftest.defines' and
44777# `conftest.undefs', that substitutes the proper values into
44778# config.h.in to produce config.h. The first handles `#define'
44779# templates, and the second `#undef' templates.
44780# And first: Protect against being on the right side of a sed subst in
44781# config.status. Protect against being in an unquoted here document
44782# in config.status.
44783rm -f conftest.defines conftest.undefs
44784# Using a here document instead of a string reduces the quoting nightmare.
44785# Putting comments in sed scripts is not portable.
44786#
44787# `end' is used to avoid that the second main sed command (meant for
44788# 0-ary CPP macros) applies to n-ary macro definitions.
44789# See the Autoconf documentation for `clear'.
44790cat >confdef2sed.sed <<\_ACEOF
44791s/[\\&,]/\\&/g
44792s,[\\$`],\\&,g
44793t clear
44794: clear
ac1cb8d3 44795s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44796t end
ac1cb8d3 44797s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44798: end
44799_ACEOF
44800# If some macros were called several times there might be several times
44801# the same #defines, which is useless. Nevertheless, we may not want to
44802# sort them, since we want the *last* AC-DEFINE to be honored.
44803uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44804sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44805rm -f confdef2sed.sed
44806
44807# This sed command replaces #undef with comments. This is necessary, for
44808# example, in the case of _POSIX_SOURCE, which is predefined and required
44809# on some systems where configure will not decide to define it.
44810cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44811s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44812_ACEOF
44813
44814# Break up conftest.defines because some shells have a limit on the size
44815# of here documents, and old seds have small limits too (100 cmds).
44816echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44817echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44818echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44819echo ' :' >>$CONFIG_STATUS
44820rm -f conftest.tail
44821while grep . conftest.defines >/dev/null
44822do
44823 # Write a limited-size here document to $tmp/defines.sed.
44824 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44825 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44826 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44827 # Work around the forget-to-reset-the-flag bug.
44828 echo 't clr' >>$CONFIG_STATUS
44829 echo ': clr' >>$CONFIG_STATUS
44830 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44831 echo 'CEOF
44832 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44833 rm -f $tmp/in
44834 mv $tmp/out $tmp/in
44835' >>$CONFIG_STATUS
44836 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44837 rm -f conftest.defines
44838 mv conftest.tail conftest.defines
44839done
44840rm -f conftest.defines
44841echo ' fi # grep' >>$CONFIG_STATUS
44842echo >>$CONFIG_STATUS
44843
44844# Break up conftest.undefs because some shells have a limit on the size
44845# of here documents, and old seds have small limits too (100 cmds).
44846echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44847rm -f conftest.tail
44848while grep . conftest.undefs >/dev/null
44849do
44850 # Write a limited-size here document to $tmp/undefs.sed.
44851 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44852 # Speed up: don't consider the non `#undef'
ac1cb8d3 44853 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44854 # Work around the forget-to-reset-the-flag bug.
44855 echo 't clr' >>$CONFIG_STATUS
44856 echo ': clr' >>$CONFIG_STATUS
44857 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44858 echo 'CEOF
44859 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44860 rm -f $tmp/in
44861 mv $tmp/out $tmp/in
44862' >>$CONFIG_STATUS
44863 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44864 rm -f conftest.undefs
44865 mv conftest.tail conftest.undefs
44866done
44867rm -f conftest.undefs
44868
44869cat >>$CONFIG_STATUS <<\_ACEOF
44870 # Let's still pretend it is `configure' which instantiates (i.e., don't
44871 # use $as_me), people would be surprised to read:
44872 # /* config.h. Generated by config.status. */
44873 if test x"$ac_file" = x-; then
44874 echo "/* Generated by configure. */" >$tmp/config.h
44875 else
44876 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44877 fi
44878 cat $tmp/in >>$tmp/config.h
44879 rm -f $tmp/in
44880 if test x"$ac_file" != x-; then
44881 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44883echo "$as_me: $ac_file is unchanged" >&6;}
44884 else
44885 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44886$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44887 X"$ac_file" : 'X\(//\)[^/]' \| \
44888 X"$ac_file" : 'X\(//\)$' \| \
44889 X"$ac_file" : 'X\(/\)' \| \
44890 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44891echo X"$ac_file" |
44892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44894 /^X\(\/\/\)$/{ s//\1/; q; }
44895 /^X\(\/\).*/{ s//\1/; q; }
44896 s/.*/./; q'`
44897 { if $as_mkdir_p; then
44898 mkdir -p "$ac_dir"
44899 else
44900 as_dir="$ac_dir"
44901 as_dirs=
44902 while test ! -d "$as_dir"; do
44903 as_dirs="$as_dir $as_dirs"
44904 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44905$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44906 X"$as_dir" : 'X\(//\)[^/]' \| \
44907 X"$as_dir" : 'X\(//\)$' \| \
44908 X"$as_dir" : 'X\(/\)' \| \
44909 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44910echo X"$as_dir" |
44911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44913 /^X\(\/\/\)$/{ s//\1/; q; }
44914 /^X\(\/\).*/{ s//\1/; q; }
44915 s/.*/./; q'`
44916 done
44917 test ! -n "$as_dirs" || mkdir $as_dirs
44918 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44919echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44920 { (exit 1); exit 1; }; }; }
44921
44922 rm -f $ac_file
44923 mv $tmp/config.h $ac_file
44924 fi
44925 else
44926 cat $tmp/config.h
44927 rm -f $tmp/config.h
44928 fi
44929done
44930_ACEOF
44931cat >>$CONFIG_STATUS <<\_ACEOF
44932
44933#
44934# CONFIG_COMMANDS section.
44935#
44936for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44937 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44938 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44939 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44940$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44941 X"$ac_dest" : 'X\(//\)[^/]' \| \
44942 X"$ac_dest" : 'X\(//\)$' \| \
44943 X"$ac_dest" : 'X\(/\)' \| \
44944 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44945echo X"$ac_dest" |
44946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44948 /^X\(\/\/\)$/{ s//\1/; q; }
44949 /^X\(\/\).*/{ s//\1/; q; }
44950 s/.*/./; q'`
ac1cb8d3
VS
44951 { if $as_mkdir_p; then
44952 mkdir -p "$ac_dir"
44953 else
44954 as_dir="$ac_dir"
44955 as_dirs=
44956 while test ! -d "$as_dir"; do
44957 as_dirs="$as_dir $as_dirs"
44958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44960 X"$as_dir" : 'X\(//\)[^/]' \| \
44961 X"$as_dir" : 'X\(//\)$' \| \
44962 X"$as_dir" : 'X\(/\)' \| \
44963 . : '\(.\)' 2>/dev/null ||
44964echo X"$as_dir" |
44965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44967 /^X\(\/\/\)$/{ s//\1/; q; }
44968 /^X\(\/\).*/{ s//\1/; q; }
44969 s/.*/./; q'`
44970 done
44971 test ! -n "$as_dirs" || mkdir $as_dirs
44972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44973echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44974 { (exit 1); exit 1; }; }; }
44975
a848cd7e
SC
44976 ac_builddir=.
44977
44978if test "$ac_dir" != .; then
44979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44980 # A "../" for each directory in $ac_dir_suffix.
44981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44982else
44983 ac_dir_suffix= ac_top_builddir=
44984fi
44985
44986case $srcdir in
44987 .) # No --srcdir option. We are building in place.
44988 ac_srcdir=.
44989 if test -z "$ac_top_builddir"; then
44990 ac_top_srcdir=.
44991 else
44992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44993 fi ;;
44994 [\\/]* | ?:[\\/]* ) # Absolute path.
44995 ac_srcdir=$srcdir$ac_dir_suffix;
44996 ac_top_srcdir=$srcdir ;;
44997 *) # Relative path.
44998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45000esac
ac1cb8d3
VS
45001
45002# Do not use `cd foo && pwd` to compute absolute paths, because
45003# the directories may not exist.
45004case `pwd` in
45005.) ac_abs_builddir="$ac_dir";;
45006*)
45007 case "$ac_dir" in
45008 .) ac_abs_builddir=`pwd`;;
45009 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45010 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45011 esac;;
45012esac
45013case $ac_abs_builddir in
45014.) ac_abs_top_builddir=${ac_top_builddir}.;;
45015*)
45016 case ${ac_top_builddir}. in
45017 .) ac_abs_top_builddir=$ac_abs_builddir;;
45018 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45019 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45020 esac;;
45021esac
45022case $ac_abs_builddir in
45023.) ac_abs_srcdir=$ac_srcdir;;
45024*)
45025 case $ac_srcdir in
45026 .) ac_abs_srcdir=$ac_abs_builddir;;
45027 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45028 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45029 esac;;
45030esac
45031case $ac_abs_builddir in
45032.) ac_abs_top_srcdir=$ac_top_srcdir;;
45033*)
45034 case $ac_top_srcdir in
45035 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45036 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45037 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45038 esac;;
45039esac
a848cd7e
SC
45040
45041
45042 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45043echo "$as_me: executing $ac_dest commands" >&6;}
45044 case $ac_dest in
ceec2216
RL
45045 wx-config ) rm -f wx-config
45046 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45047 ;;
a848cd7e
SC
45048 esac
45049done
45050_ACEOF
45051
45052cat >>$CONFIG_STATUS <<\_ACEOF
45053
45054{ (exit 0); exit 0; }
45055_ACEOF
45056chmod +x $CONFIG_STATUS
45057ac_clean_files=$ac_clean_files_save
45058
45059
45060# configure is writing to config.log, and then calls config.status.
45061# config.status does its own redirection, appending to config.log.
45062# Unfortunately, on DOS this fails, as config.log is still kept open
45063# by configure, so config.status won't be able to write to it; its
45064# output is simply discarded. So we exec the FD to /dev/null,
45065# effectively closing config.log, so it can be properly (re)opened and
45066# appended to by config.status. When coming back to configure, we
45067# need to make the FD available again.
45068if test "$no_create" != yes; then
45069 ac_cs_success=:
45070 ac_config_status_args=
45071 test "$silent" = yes &&
45072 ac_config_status_args="$ac_config_status_args --quiet"
45073 exec 5>/dev/null
45074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45075 exec 5>>config.log
45076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45077 # would make configure fail if this is the last instruction.
45078 $ac_cs_success || { (exit 1); exit 1; }
45079fi
45080
45081#
45082# CONFIG_SUBDIRS section.
45083#
45084if test "$no_recursion" != yes; then
45085
45086 # Remove --cache-file and --srcdir arguments so they do not pile up.
45087 ac_sub_configure_args=
45088 ac_prev=
45089 for ac_arg in $ac_configure_args; do
45090 if test -n "$ac_prev"; then
45091 ac_prev=
45092 continue
45093 fi
45094 case $ac_arg in
45095 -cache-file | --cache-file | --cache-fil | --cache-fi \
45096 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45097 ac_prev=cache_file ;;
45098 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45099 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45100 | --c=*)
45101 ;;
45102 --config-cache | -C)
45103 ;;
45104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45105 ac_prev=srcdir ;;
45106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45107 ;;
45108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45109 ac_prev=prefix ;;
45110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45111 ;;
45112 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45113 esac
45114 done
45115
45116 # Always prepend --prefix to ensure using the same prefix
45117 # in subdir configurations.
45118 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45119
45120 ac_popdir=`pwd`
45121 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45122
45123 # Do not complain, so a configure script can configure whichever
45124 # parts of a large source tree are present.
45125 test -d $srcdir/$ac_dir || continue
45126
45127 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45128echo "$as_me: configuring in $ac_dir" >&6;}
45129 { if $as_mkdir_p; then
45130 mkdir -p "$ac_dir"
45131 else
45132 as_dir="$ac_dir"
45133 as_dirs=
45134 while test ! -d "$as_dir"; do
45135 as_dirs="$as_dir $as_dirs"
45136 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45137$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45138 X"$as_dir" : 'X\(//\)[^/]' \| \
45139 X"$as_dir" : 'X\(//\)$' \| \
45140 X"$as_dir" : 'X\(/\)' \| \
45141 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45142echo X"$as_dir" |
45143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45145 /^X\(\/\/\)$/{ s//\1/; q; }
45146 /^X\(\/\).*/{ s//\1/; q; }
45147 s/.*/./; q'`
45148 done
45149 test ! -n "$as_dirs" || mkdir $as_dirs
45150 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45151echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45152 { (exit 1); exit 1; }; }; }
45153
45154 ac_builddir=.
45155
45156if test "$ac_dir" != .; then
45157 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45158 # A "../" for each directory in $ac_dir_suffix.
45159 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45160else
45161 ac_dir_suffix= ac_top_builddir=
45162fi
45163
45164case $srcdir in
45165 .) # No --srcdir option. We are building in place.
45166 ac_srcdir=.
45167 if test -z "$ac_top_builddir"; then
45168 ac_top_srcdir=.
45169 else
45170 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45171 fi ;;
45172 [\\/]* | ?:[\\/]* ) # Absolute path.
45173 ac_srcdir=$srcdir$ac_dir_suffix;
45174 ac_top_srcdir=$srcdir ;;
45175 *) # Relative path.
45176 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45177 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45178esac
ac1cb8d3
VS
45179
45180# Do not use `cd foo && pwd` to compute absolute paths, because
45181# the directories may not exist.
45182case `pwd` in
45183.) ac_abs_builddir="$ac_dir";;
45184*)
45185 case "$ac_dir" in
45186 .) ac_abs_builddir=`pwd`;;
45187 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45188 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45189 esac;;
45190esac
45191case $ac_abs_builddir in
45192.) ac_abs_top_builddir=${ac_top_builddir}.;;
45193*)
45194 case ${ac_top_builddir}. in
45195 .) ac_abs_top_builddir=$ac_abs_builddir;;
45196 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45197 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45198 esac;;
45199esac
45200case $ac_abs_builddir in
45201.) ac_abs_srcdir=$ac_srcdir;;
45202*)
45203 case $ac_srcdir in
45204 .) ac_abs_srcdir=$ac_abs_builddir;;
45205 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45206 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45207 esac;;
45208esac
45209case $ac_abs_builddir in
45210.) ac_abs_top_srcdir=$ac_top_srcdir;;
45211*)
45212 case $ac_top_srcdir in
45213 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45214 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45215 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45216 esac;;
45217esac
a848cd7e
SC
45218
45219
45220 cd $ac_dir
45221
45222 # Check for guested configure; otherwise get Cygnus style configure.
45223 if test -f $ac_srcdir/configure.gnu; then
45224 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45225 elif test -f $ac_srcdir/configure; then
45226 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45227 elif test -f $ac_srcdir/configure.in; then
45228 ac_sub_configure=$ac_configure
45229 else
45230 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45231echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45232 ac_sub_configure=
45233 fi
45234
45235 # The recursion is here.
45236 if test -n "$ac_sub_configure"; then
45237 # Make the cache file name correct relative to the subdirectory.
45238 case $cache_file in
45239 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45240 *) # Relative path.
ac1cb8d3 45241 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45242 esac
45243
45244 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45245echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45246 # The eval makes quoting arguments work.
45247 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45248 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45249 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45250echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45251 { (exit 1); exit 1; }; }
45252 fi
45253
07158944 45254 cd "$ac_popdir"
a848cd7e
SC
45255 done
45256fi
45257
45258
45259echo
77ffb593 45260echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45261echo ""
4d4ff94c 45262echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45263echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45264
77ffb593
JS
45265echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45266echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45267echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45268
77ffb593
JS
45269echo " What level of wxWidgets compatibility should be enabled?"
45270echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45271echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45272
77ffb593 45273echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45274echo " jpeg ${wxUSE_LIBJPEG-none}"
45275echo " png ${wxUSE_LIBPNG-none}"
45276echo " regex ${wxUSE_REGEX}"
45277echo " tiff ${wxUSE_LIBTIFF-none}"
45278if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45279echo " xpm ${wxUSE_LIBXPM-none}"
45280fi
45281echo " zlib ${wxUSE_ZLIB}"
45282echo " odbc ${wxUSE_ODBC}"
45283echo " expat ${wxUSE_EXPAT}"
45284echo " libmspack ${wxUSE_LIBMSPACK}"
45285echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45286echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45287
45288echo ""
45289